@uniformdev/design-system 19.170.1-alpha.1 → 19.173.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +964 -791
- package/dist/index.d.mts +90 -20
- package/dist/index.d.ts +90 -20
- package/dist/index.js +1141 -952
- package/package.json +13 -13
package/dist/esm/index.js
CHANGED
|
@@ -2129,6 +2129,9 @@ var IconColorAccentDark = css17`
|
|
|
2129
2129
|
var IconColorAccentLight = css17`
|
|
2130
2130
|
color: var(--accent-light);
|
|
2131
2131
|
`;
|
|
2132
|
+
var IconColorAccentAltDark = css17`
|
|
2133
|
+
color: var(--accent-alt-dark);
|
|
2134
|
+
`;
|
|
2132
2135
|
|
|
2133
2136
|
// src/components/Icons/IconsProvider.tsx
|
|
2134
2137
|
import { createContext, useContext as useContext2, useEffect as useEffect3, useState as useState2 } from "react";
|
|
@@ -2171,7 +2174,8 @@ var IconInner = ({ icon, iconColor = "default", size = "1.5rem", ...otherProps }
|
|
|
2171
2174
|
accent: IconColorAccent,
|
|
2172
2175
|
currentColor: IconColorCurrent,
|
|
2173
2176
|
"accent-dark": IconColorAccentDark,
|
|
2174
|
-
"accent-light": IconColorAccentLight
|
|
2177
|
+
"accent-light": IconColorAccentLight,
|
|
2178
|
+
"accent-alt-dark": IconColorAccentAltDark
|
|
2175
2179
|
};
|
|
2176
2180
|
if (isIconName && isLoading) {
|
|
2177
2181
|
return null;
|
|
@@ -12418,6 +12422,19 @@ var menuStyles = (maxMenuHeight) => css27`
|
|
|
12418
12422
|
${scrollbarStyles}
|
|
12419
12423
|
` : ""}
|
|
12420
12424
|
`;
|
|
12425
|
+
var menuTriggerStyles = css27`
|
|
12426
|
+
border: none;
|
|
12427
|
+
background: transparent;
|
|
12428
|
+
padding: var(--spacing-xs);
|
|
12429
|
+
color: var(--gray-300);
|
|
12430
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
12431
|
+
|
|
12432
|
+
&:focus,
|
|
12433
|
+
&:hover {
|
|
12434
|
+
outline: none;
|
|
12435
|
+
color: var(--gray-500);
|
|
12436
|
+
}
|
|
12437
|
+
`;
|
|
12421
12438
|
|
|
12422
12439
|
// src/components/Menu/Menu.tsx
|
|
12423
12440
|
import { jsx as jsx28, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
@@ -12442,6 +12459,7 @@ var Menu = React7.forwardRef(function Menu2({
|
|
|
12442
12459
|
/* @__PURE__ */ jsx28(
|
|
12443
12460
|
BaseMenu,
|
|
12444
12461
|
{
|
|
12462
|
+
portal: !withoutPortal,
|
|
12445
12463
|
unmountOnHide: true,
|
|
12446
12464
|
gutter: 0,
|
|
12447
12465
|
shift: menu.parent ? -4 : 0,
|
|
@@ -12559,8 +12577,8 @@ var MenuButton2 = forwardRef4(({ children, ...props }, ref) => {
|
|
|
12559
12577
|
return /* @__PURE__ */ jsx30("button", { ref, type: "button", ...props, children });
|
|
12560
12578
|
});
|
|
12561
12579
|
var MenuThreeDots = forwardRef4(
|
|
12562
|
-
({ buttonTitle = "More options", ...props }, ref) => {
|
|
12563
|
-
return /* @__PURE__ */ jsx30(MenuButton2, { ref, "aria-label": buttonTitle, ...props, children: /* @__PURE__ */ jsx30(Icon, { icon: "more-alt", iconColor: "currentColor" }) });
|
|
12580
|
+
({ buttonTitle = "More options", iconSize = "1rem", ...props }, ref) => {
|
|
12581
|
+
return /* @__PURE__ */ jsx30(MenuButton2, { css: menuTriggerStyles, ref, "aria-label": buttonTitle, title: buttonTitle, ...props, children: /* @__PURE__ */ jsx30(Icon, { icon: "more-alt", size: iconSize, iconColor: "currentColor" }) });
|
|
12564
12582
|
}
|
|
12565
12583
|
);
|
|
12566
12584
|
|
|
@@ -14835,7 +14853,20 @@ var ChipContainer = css48`
|
|
|
14835
14853
|
[role='presentation'],
|
|
14836
14854
|
[role='separator'] {
|
|
14837
14855
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
14838
|
-
opacity: 100;
|
|
14856
|
+
opacity: var(--opacity-100);
|
|
14857
|
+
}
|
|
14858
|
+
}
|
|
14859
|
+
|
|
14860
|
+
:where([aria-disabled='true']) {
|
|
14861
|
+
opacity: var(--opacity-50);
|
|
14862
|
+
cursor: not-allowed;
|
|
14863
|
+
}
|
|
14864
|
+
|
|
14865
|
+
:where([aria-disabled='true'], :disabled):hover {
|
|
14866
|
+
[role='presentation'],
|
|
14867
|
+
[role='separator'] {
|
|
14868
|
+
opacity: var(--opacity-50);
|
|
14869
|
+
cursor: not-allowed;
|
|
14839
14870
|
}
|
|
14840
14871
|
}
|
|
14841
14872
|
`;
|
|
@@ -14907,10 +14938,6 @@ var ChipThemeAccentLight = css48`
|
|
|
14907
14938
|
color: var(--white);
|
|
14908
14939
|
}
|
|
14909
14940
|
}
|
|
14910
|
-
|
|
14911
|
-
[data-icon] {
|
|
14912
|
-
color: var(--accent-light);
|
|
14913
|
-
}
|
|
14914
14941
|
`;
|
|
14915
14942
|
var ChipThemeAccentDark = css48`
|
|
14916
14943
|
--outline-color: var(--accent-dark);
|
|
@@ -14955,10 +14982,6 @@ var ChipAltThemeAccentLight = css48`
|
|
|
14955
14982
|
color: var(--white);
|
|
14956
14983
|
}
|
|
14957
14984
|
}
|
|
14958
|
-
|
|
14959
|
-
[data-icon] {
|
|
14960
|
-
color: var(--accent-alt-light);
|
|
14961
|
-
}
|
|
14962
14985
|
`;
|
|
14963
14986
|
var ChipAltThemeAccentDark = css48`
|
|
14964
14987
|
--outline-color: var(--accent-alt-dark);
|
|
@@ -15036,6 +15059,7 @@ var chipTheme = {
|
|
|
15036
15059
|
};
|
|
15037
15060
|
var Chip = ({
|
|
15038
15061
|
icon,
|
|
15062
|
+
iconColor = "currentColor",
|
|
15039
15063
|
text,
|
|
15040
15064
|
size = "sm",
|
|
15041
15065
|
theme = "accent-light",
|
|
@@ -15062,7 +15086,7 @@ var Chip = ({
|
|
|
15062
15086
|
...props,
|
|
15063
15087
|
children: [
|
|
15064
15088
|
icon ? /* @__PURE__ */ jsxs38(Fragment9, { children: [
|
|
15065
|
-
/* @__PURE__ */ jsx61("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx61(Icon, { icon, iconColor
|
|
15089
|
+
/* @__PURE__ */ jsx61("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx61(Icon, { icon, iconColor, size: "1rem" }) }),
|
|
15066
15090
|
/* @__PURE__ */ jsx61("span", { role: "separator", css: ChipSeparator })
|
|
15067
15091
|
] }) : null,
|
|
15068
15092
|
/* @__PURE__ */ jsx61("span", { css: ChipText, children: text }),
|
|
@@ -15293,7 +15317,7 @@ var PopoverDefaulterTriggerBtn = css52`
|
|
|
15293
15317
|
background-color: rgba(0, 0, 0, 0.05);
|
|
15294
15318
|
}
|
|
15295
15319
|
`;
|
|
15296
|
-
var Popover = css52`
|
|
15320
|
+
var Popover = (maxWidth = "220px") => css52`
|
|
15297
15321
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
15298
15322
|
border-radius: var(--rounded-base);
|
|
15299
15323
|
box-shadow: var(--shadow-base);
|
|
@@ -15302,7 +15326,7 @@ var Popover = css52`
|
|
|
15302
15326
|
gap: var(--spacing-sm);
|
|
15303
15327
|
padding: var(--spacing-sm);
|
|
15304
15328
|
font-size: var(--fs-sm);
|
|
15305
|
-
max-width:
|
|
15329
|
+
max-width: ${maxWidth};
|
|
15306
15330
|
z-index: var(--z-tooltip);
|
|
15307
15331
|
`;
|
|
15308
15332
|
|
|
@@ -15621,7 +15645,7 @@ var DateTimePicker = ({
|
|
|
15621
15645
|
]
|
|
15622
15646
|
}
|
|
15623
15647
|
),
|
|
15624
|
-
/* @__PURE__ */ jsxs41(Popover2, { ...popover2, css: [Popover, popover], "aria-label": "Pick a date", children: [
|
|
15648
|
+
/* @__PURE__ */ jsxs41(Popover2, { ...popover2, css: [Popover(), popover], "aria-label": "Pick a date", children: [
|
|
15625
15649
|
/* @__PURE__ */ jsxs41("div", { css: popoverInnerContent, children: [
|
|
15626
15650
|
/* @__PURE__ */ jsx66("div", { css: calendarSection, children: /* @__PURE__ */ jsx66(
|
|
15627
15651
|
Calendar,
|
|
@@ -15851,14 +15875,63 @@ var Details = ({
|
|
|
15851
15875
|
);
|
|
15852
15876
|
};
|
|
15853
15877
|
|
|
15878
|
+
// src/components/DragHandle/DragHandle.tsx
|
|
15879
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
15880
|
+
|
|
15881
|
+
// src/components/DragHandle/DragHandle.styles.ts
|
|
15882
|
+
import { css as css56 } from "@emotion/react";
|
|
15883
|
+
var DragHandleStyles = css56`
|
|
15884
|
+
background: transparent;
|
|
15885
|
+
border: 0;
|
|
15886
|
+
position: relative;
|
|
15887
|
+
height: 3.125rem;
|
|
15888
|
+
width: 1rem;
|
|
15889
|
+
cursor: grab;
|
|
15890
|
+
|
|
15891
|
+
&::after {
|
|
15892
|
+
content: '';
|
|
15893
|
+
display: block;
|
|
15894
|
+
position: absolute;
|
|
15895
|
+
left: 2px;
|
|
15896
|
+
top: var(--spacing-xs);
|
|
15897
|
+
bottom: var(--spacing-xs);
|
|
15898
|
+
width: 5px;
|
|
15899
|
+
border: 2px dotted var(--gray-300);
|
|
15900
|
+
border-top: 0;
|
|
15901
|
+
border-bottom: 0;
|
|
15902
|
+
opacity: 1;
|
|
15903
|
+
}
|
|
15904
|
+
`;
|
|
15905
|
+
var DragHandleDisabled = css56`
|
|
15906
|
+
opacity: 0.3;
|
|
15907
|
+
pointer-events: none;
|
|
15908
|
+
`;
|
|
15909
|
+
|
|
15910
|
+
// src/components/DragHandle/DragHandle.tsx
|
|
15911
|
+
import { jsx as jsx69 } from "@emotion/react/jsx-runtime";
|
|
15912
|
+
var DragHandle = forwardRef14(
|
|
15913
|
+
({ disableDnd, ...props }, ref) => {
|
|
15914
|
+
return /* @__PURE__ */ jsx69(
|
|
15915
|
+
"button",
|
|
15916
|
+
{
|
|
15917
|
+
type: "button",
|
|
15918
|
+
ref,
|
|
15919
|
+
css: [DragHandleStyles, disableDnd ? DragHandleDisabled : null],
|
|
15920
|
+
disabled: disableDnd,
|
|
15921
|
+
...props
|
|
15922
|
+
}
|
|
15923
|
+
);
|
|
15924
|
+
}
|
|
15925
|
+
);
|
|
15926
|
+
|
|
15854
15927
|
// src/components/Drawer/Drawer.tsx
|
|
15855
15928
|
import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
|
|
15856
15929
|
import React17, { createContext as createContext4, useContext as useContext5, useEffect as useEffect6, useRef as useRef5, useState as useState9 } from "react";
|
|
15857
15930
|
import { createPortal } from "react-dom";
|
|
15858
15931
|
|
|
15859
15932
|
// src/components/Drawer/Drawer.styles.ts
|
|
15860
|
-
import { css as
|
|
15861
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
15933
|
+
import { css as css57, keyframes as keyframes2 } from "@emotion/react";
|
|
15934
|
+
var drawerStyles = (bgColor = "var(--white)") => css57`
|
|
15862
15935
|
background-color: ${bgColor};
|
|
15863
15936
|
display: flex;
|
|
15864
15937
|
gap: var(--spacing-sm);
|
|
@@ -15868,20 +15941,20 @@ var drawerStyles = (bgColor = "var(--white)") => css56`
|
|
|
15868
15941
|
padding-top: var(--spacing-sm);
|
|
15869
15942
|
height: 100%;
|
|
15870
15943
|
`;
|
|
15871
|
-
var drawerCloseButtonStyles =
|
|
15944
|
+
var drawerCloseButtonStyles = css57`
|
|
15872
15945
|
display: block;
|
|
15873
15946
|
padding: 0;
|
|
15874
15947
|
background: transparent;
|
|
15875
15948
|
border: none;
|
|
15876
15949
|
`;
|
|
15877
|
-
var headerWrapperStyles =
|
|
15950
|
+
var headerWrapperStyles = css57`
|
|
15878
15951
|
display: flex;
|
|
15879
15952
|
justify-content: flex-end;
|
|
15880
15953
|
align-items: center;
|
|
15881
15954
|
flex: 1;
|
|
15882
15955
|
margin-right: var(--spacing-sm);
|
|
15883
15956
|
`;
|
|
15884
|
-
var drawerHeaderStyles =
|
|
15957
|
+
var drawerHeaderStyles = css57`
|
|
15885
15958
|
align-items: center;
|
|
15886
15959
|
display: flex;
|
|
15887
15960
|
gap: var(--spacing-sm);
|
|
@@ -15889,18 +15962,18 @@ var drawerHeaderStyles = css56`
|
|
|
15889
15962
|
padding-inline: var(--spacing-base);
|
|
15890
15963
|
flex: 1;
|
|
15891
15964
|
`;
|
|
15892
|
-
var drawerRendererStyles =
|
|
15965
|
+
var drawerRendererStyles = css57`
|
|
15893
15966
|
inset: 0;
|
|
15894
15967
|
overflow: hidden;
|
|
15895
15968
|
z-index: var(--z-drawer);
|
|
15896
15969
|
`;
|
|
15897
|
-
var drawerInnerStyles =
|
|
15970
|
+
var drawerInnerStyles = css57`
|
|
15898
15971
|
height: 100%;
|
|
15899
15972
|
overflow: auto;
|
|
15900
15973
|
padding: 0 var(--spacing-md) var(--spacing-base) var(--spacing-sm);
|
|
15901
15974
|
${scrollbarStyles}
|
|
15902
15975
|
`;
|
|
15903
|
-
var drawerHeading =
|
|
15976
|
+
var drawerHeading = css57`
|
|
15904
15977
|
font-size: var(--fs-base);
|
|
15905
15978
|
`;
|
|
15906
15979
|
var slideDrawerIn = keyframes2`
|
|
@@ -15933,7 +16006,7 @@ var slideDrawerInLeftAligned = keyframes2`
|
|
|
15933
16006
|
transform: translate(0);
|
|
15934
16007
|
}
|
|
15935
16008
|
`;
|
|
15936
|
-
var drawerWrapperStyles =
|
|
16009
|
+
var drawerWrapperStyles = css57`
|
|
15937
16010
|
position: absolute;
|
|
15938
16011
|
inset-block: 0;
|
|
15939
16012
|
right: 0;
|
|
@@ -15946,14 +16019,14 @@ var drawerWrapperStyles = css56`
|
|
|
15946
16019
|
|
|
15947
16020
|
--drawer-close-icon-rotation: 0deg;
|
|
15948
16021
|
`;
|
|
15949
|
-
var drawerWrapperLeftAlignedStyles =
|
|
16022
|
+
var drawerWrapperLeftAlignedStyles = css57`
|
|
15950
16023
|
animation-name: ${slideDrawerInLeftAligned};
|
|
15951
16024
|
left: 0;
|
|
15952
16025
|
right: auto;
|
|
15953
16026
|
|
|
15954
16027
|
--drawer-close-icon-rotation: 180deg;
|
|
15955
16028
|
`;
|
|
15956
|
-
var drawerWrapperOverlayStyles =
|
|
16029
|
+
var drawerWrapperOverlayStyles = css57`
|
|
15957
16030
|
position: absolute;
|
|
15958
16031
|
inset: 0;
|
|
15959
16032
|
animation: ${fadeIn} var(--duration-fast) ease-out;
|
|
@@ -15965,7 +16038,7 @@ var drawerWrapperOverlayStyles = css56`
|
|
|
15965
16038
|
|
|
15966
16039
|
// src/components/Drawer/DrawerProvider.tsx
|
|
15967
16040
|
import { createContext as createContext3, useCallback as useCallback5, useContext as useContext4, useRef as useRef4, useState as useState8 } from "react";
|
|
15968
|
-
import { jsx as
|
|
16041
|
+
import { jsx as jsx70 } from "@emotion/react/jsx-runtime";
|
|
15969
16042
|
var DrawerContext = createContext3({
|
|
15970
16043
|
providerId: "",
|
|
15971
16044
|
drawersRegistry: [],
|
|
@@ -16058,7 +16131,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
16058
16131
|
},
|
|
16059
16132
|
[drawerTakeoverStackId]
|
|
16060
16133
|
);
|
|
16061
|
-
return /* @__PURE__ */
|
|
16134
|
+
return /* @__PURE__ */ jsx70(
|
|
16062
16135
|
DrawerContext.Provider,
|
|
16063
16136
|
{
|
|
16064
16137
|
value: {
|
|
@@ -16092,7 +16165,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
16092
16165
|
}
|
|
16093
16166
|
|
|
16094
16167
|
// src/components/Drawer/Drawer.tsx
|
|
16095
|
-
import { jsx as
|
|
16168
|
+
import { jsx as jsx71, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
16096
16169
|
var defaultSackId = "_default";
|
|
16097
16170
|
var CurrentDrawerContext = createContext4({});
|
|
16098
16171
|
var useCurrentDrawer = () => {
|
|
@@ -16105,9 +16178,9 @@ var Drawer = React17.forwardRef(
|
|
|
16105
16178
|
const { drawerTakeoverStackId } = useDrawer();
|
|
16106
16179
|
const drawerRendererProps = { width: drawerProps.width, minWidth, maxWidth, position, leftAligned };
|
|
16107
16180
|
const resolvedStickyStackIdRef = useRef5((_a = drawerTakeoverStackId != null ? drawerTakeoverStackId : drawerProps.stackId) != null ? _a : inheritedStackId);
|
|
16108
|
-
return resolvedStickyStackIdRef.current ? /* @__PURE__ */
|
|
16109
|
-
/* @__PURE__ */
|
|
16110
|
-
/* @__PURE__ */
|
|
16181
|
+
return resolvedStickyStackIdRef.current ? /* @__PURE__ */ jsx71(DrawerInner, { ref, ...drawerProps, stackId: resolvedStickyStackIdRef.current }) : /* @__PURE__ */ jsxs44(DrawerProvider, { children: [
|
|
16182
|
+
/* @__PURE__ */ jsx71(DrawerInner, { ref, ...drawerProps }),
|
|
16183
|
+
/* @__PURE__ */ jsx71(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
16111
16184
|
] });
|
|
16112
16185
|
}
|
|
16113
16186
|
);
|
|
@@ -16152,7 +16225,7 @@ var DrawerInner = ({
|
|
|
16152
16225
|
return null;
|
|
16153
16226
|
}
|
|
16154
16227
|
const headerId = `dialog-header-${providerId}-${stackId}-${id}`;
|
|
16155
|
-
return /* @__PURE__ */
|
|
16228
|
+
return /* @__PURE__ */ jsx71(CurrentDrawerContext.Provider, { value: { id, stackId, leftAligned }, children: createPortal(
|
|
16156
16229
|
/* @__PURE__ */ jsxs44(
|
|
16157
16230
|
"div",
|
|
16158
16231
|
{
|
|
@@ -16165,8 +16238,8 @@ var DrawerInner = ({
|
|
|
16165
16238
|
"data-testid": testId,
|
|
16166
16239
|
children: [
|
|
16167
16240
|
/* @__PURE__ */ jsxs44("div", { css: headerWrapperStyles, children: [
|
|
16168
|
-
header2 ? /* @__PURE__ */
|
|
16169
|
-
/* @__PURE__ */
|
|
16241
|
+
header2 ? /* @__PURE__ */ jsx71("div", { id: headerId, css: drawerHeaderStyles, "data-testid": "header", children: header2 }) : null,
|
|
16242
|
+
/* @__PURE__ */ jsx71(
|
|
16170
16243
|
Button,
|
|
16171
16244
|
{
|
|
16172
16245
|
ref: closeButtonRef,
|
|
@@ -16176,7 +16249,7 @@ var DrawerInner = ({
|
|
|
16176
16249
|
title: "Close dialog",
|
|
16177
16250
|
buttonType: "ghost",
|
|
16178
16251
|
"data-testid": "close-button",
|
|
16179
|
-
children: /* @__PURE__ */
|
|
16252
|
+
children: /* @__PURE__ */ jsx71(
|
|
16180
16253
|
Icon,
|
|
16181
16254
|
{
|
|
16182
16255
|
icon: CgChevronRight,
|
|
@@ -16188,7 +16261,7 @@ var DrawerInner = ({
|
|
|
16188
16261
|
}
|
|
16189
16262
|
)
|
|
16190
16263
|
] }),
|
|
16191
|
-
/* @__PURE__ */
|
|
16264
|
+
/* @__PURE__ */ jsx71("div", { css: drawerInnerStyles, children })
|
|
16192
16265
|
]
|
|
16193
16266
|
}
|
|
16194
16267
|
),
|
|
@@ -16202,15 +16275,15 @@ var findDrawerRenderer = (params) => {
|
|
|
16202
16275
|
};
|
|
16203
16276
|
|
|
16204
16277
|
// src/components/Drawer/DrawerContent.styles.ts
|
|
16205
|
-
import { css as
|
|
16206
|
-
var DrawerContent =
|
|
16278
|
+
import { css as css58 } from "@emotion/react";
|
|
16279
|
+
var DrawerContent = css58`
|
|
16207
16280
|
background: var(--gray-50);
|
|
16208
16281
|
display: flex;
|
|
16209
16282
|
flex-direction: column;
|
|
16210
16283
|
gap: var(--spacing-base);
|
|
16211
16284
|
height: 100%;
|
|
16212
16285
|
`;
|
|
16213
|
-
var DrawerContentInner =
|
|
16286
|
+
var DrawerContentInner = css58`
|
|
16214
16287
|
background: var(--white);
|
|
16215
16288
|
padding: var(--spacing-base);
|
|
16216
16289
|
flex: 1;
|
|
@@ -16218,24 +16291,24 @@ var DrawerContentInner = css57`
|
|
|
16218
16291
|
overflow-y: auto;
|
|
16219
16292
|
${scrollbarStyles}
|
|
16220
16293
|
`;
|
|
16221
|
-
var DrawerContentBtnGroup =
|
|
16294
|
+
var DrawerContentBtnGroup = css58`
|
|
16222
16295
|
display: flex;
|
|
16223
16296
|
gap: var(--spacing-sm);
|
|
16224
16297
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
16225
16298
|
`;
|
|
16226
16299
|
|
|
16227
16300
|
// src/components/Drawer/DrawerContent.tsx
|
|
16228
|
-
import { jsx as
|
|
16301
|
+
import { jsx as jsx72, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
16229
16302
|
var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) => {
|
|
16230
16303
|
return /* @__PURE__ */ jsxs45("div", { css: DrawerContent, ...props, children: [
|
|
16231
|
-
/* @__PURE__ */
|
|
16232
|
-
buttonGroup ? /* @__PURE__ */
|
|
16304
|
+
/* @__PURE__ */ jsx72("div", { css: [DrawerContentInner, noPadding ? { padding: 0 } : null], children }),
|
|
16305
|
+
buttonGroup ? /* @__PURE__ */ jsx72("div", { css: DrawerContentBtnGroup, children: buttonGroup }) : null
|
|
16233
16306
|
] });
|
|
16234
16307
|
};
|
|
16235
16308
|
|
|
16236
16309
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
16237
16310
|
import { useEffect as useEffect7, useMemo as useMemo3 } from "react";
|
|
16238
|
-
import { Fragment as Fragment10, jsx as
|
|
16311
|
+
import { Fragment as Fragment10, jsx as jsx73, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
16239
16312
|
var drawerWidth = {
|
|
16240
16313
|
narrow: "29rem",
|
|
16241
16314
|
medium: "43rem",
|
|
@@ -16276,7 +16349,7 @@ var DrawerRenderer = ({
|
|
|
16276
16349
|
if (drawersToRender.length === 0) {
|
|
16277
16350
|
return null;
|
|
16278
16351
|
}
|
|
16279
|
-
return /* @__PURE__ */
|
|
16352
|
+
return /* @__PURE__ */ jsx73(
|
|
16280
16353
|
"div",
|
|
16281
16354
|
{
|
|
16282
16355
|
css: [
|
|
@@ -16285,7 +16358,7 @@ var DrawerRenderer = ({
|
|
|
16285
16358
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
16286
16359
|
],
|
|
16287
16360
|
...otherProps,
|
|
16288
|
-
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */
|
|
16361
|
+
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx73(
|
|
16289
16362
|
DrawerWrapper,
|
|
16290
16363
|
{
|
|
16291
16364
|
index,
|
|
@@ -16295,7 +16368,7 @@ var DrawerRenderer = ({
|
|
|
16295
16368
|
maxWidth,
|
|
16296
16369
|
onOverlayClick: onRequestClose,
|
|
16297
16370
|
leftAligned,
|
|
16298
|
-
children: /* @__PURE__ */
|
|
16371
|
+
children: /* @__PURE__ */ jsx73(
|
|
16299
16372
|
"div",
|
|
16300
16373
|
{
|
|
16301
16374
|
...getDrawerAttributes({ providerId, stackId: stackId2, id }),
|
|
@@ -16325,8 +16398,8 @@ var DrawerWrapper = ({
|
|
|
16325
16398
|
}
|
|
16326
16399
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
16327
16400
|
return /* @__PURE__ */ jsxs46(Fragment10, { children: [
|
|
16328
|
-
/* @__PURE__ */
|
|
16329
|
-
/* @__PURE__ */
|
|
16401
|
+
/* @__PURE__ */ jsx73("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
16402
|
+
/* @__PURE__ */ jsx73(
|
|
16330
16403
|
"div",
|
|
16331
16404
|
{
|
|
16332
16405
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
@@ -16346,7 +16419,7 @@ var getDrawerAttributes = ({
|
|
|
16346
16419
|
|
|
16347
16420
|
// src/components/Drawer/TakeoverDrawerRenderer.tsx
|
|
16348
16421
|
import { useEffect as useEffect8 } from "react";
|
|
16349
|
-
import { jsx as
|
|
16422
|
+
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
16350
16423
|
var TAKEOVER_STACK_ID = "takeover-stack";
|
|
16351
16424
|
var TakeoverDrawerRenderer = (props) => {
|
|
16352
16425
|
const { registerTakeoverStackId, unregisterTakeoverStackId } = useDrawer();
|
|
@@ -16356,15 +16429,15 @@ var TakeoverDrawerRenderer = (props) => {
|
|
|
16356
16429
|
unregisterTakeoverStackId(TAKEOVER_STACK_ID);
|
|
16357
16430
|
};
|
|
16358
16431
|
}, [registerTakeoverStackId, unregisterTakeoverStackId]);
|
|
16359
|
-
return /* @__PURE__ */
|
|
16432
|
+
return /* @__PURE__ */ jsx74(DrawerRenderer, { ...props, stackId: TAKEOVER_STACK_ID });
|
|
16360
16433
|
};
|
|
16361
16434
|
|
|
16362
16435
|
// src/components/IconButton/IconButton.tsx
|
|
16363
|
-
import { forwardRef as
|
|
16436
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
16364
16437
|
|
|
16365
16438
|
// src/components/IconButton/IconButton.styles.ts
|
|
16366
|
-
import { css as
|
|
16367
|
-
var iconButton =
|
|
16439
|
+
import { css as css59 } from "@emotion/react";
|
|
16440
|
+
var iconButton = css59`
|
|
16368
16441
|
padding: 0;
|
|
16369
16442
|
max-width: unset;
|
|
16370
16443
|
justify-content: center;
|
|
@@ -16372,28 +16445,28 @@ var iconButton = css58`
|
|
|
16372
16445
|
height: var(--button-size);
|
|
16373
16446
|
`;
|
|
16374
16447
|
var sizes2 = {
|
|
16375
|
-
xs:
|
|
16448
|
+
xs: css59`
|
|
16376
16449
|
--button-size: 2rem;
|
|
16377
16450
|
`,
|
|
16378
|
-
sm:
|
|
16451
|
+
sm: css59`
|
|
16379
16452
|
--button-size: 2.25rem;
|
|
16380
16453
|
`,
|
|
16381
|
-
md:
|
|
16454
|
+
md: css59`
|
|
16382
16455
|
--button-size: 2.5rem;
|
|
16383
16456
|
`
|
|
16384
16457
|
};
|
|
16385
16458
|
var variants = {
|
|
16386
16459
|
square: null,
|
|
16387
|
-
rounded:
|
|
16460
|
+
rounded: css59`
|
|
16388
16461
|
border-radius: 50%;
|
|
16389
16462
|
`
|
|
16390
16463
|
};
|
|
16391
16464
|
|
|
16392
16465
|
// src/components/IconButton/IconButton.tsx
|
|
16393
|
-
import { jsx as
|
|
16394
|
-
var IconButton =
|
|
16466
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
16467
|
+
var IconButton = forwardRef15(
|
|
16395
16468
|
({ children, size = "md", variant = "square", ...props }, ref) => {
|
|
16396
|
-
return /* @__PURE__ */
|
|
16469
|
+
return /* @__PURE__ */ jsx75(Button, { ref, css: [iconButton, variants[variant], sizes2[size]], ...props, children });
|
|
16397
16470
|
}
|
|
16398
16471
|
);
|
|
16399
16472
|
IconButton.displayName = "IconButton";
|
|
@@ -16402,8 +16475,8 @@ IconButton.displayName = "IconButton";
|
|
|
16402
16475
|
import { useCallback as useCallback6, useEffect as useEffect9, useState as useState10 } from "react";
|
|
16403
16476
|
|
|
16404
16477
|
// src/components/Image/Image.styles.ts
|
|
16405
|
-
import { css as
|
|
16406
|
-
var imageWrapper =
|
|
16478
|
+
import { css as css60 } from "@emotion/react";
|
|
16479
|
+
var imageWrapper = css60`
|
|
16407
16480
|
position: relative;
|
|
16408
16481
|
display: inline-flex;
|
|
16409
16482
|
flex-direction: column;
|
|
@@ -16411,10 +16484,10 @@ var imageWrapper = css59`
|
|
|
16411
16484
|
max-width: 100%;
|
|
16412
16485
|
max-height: 100%;
|
|
16413
16486
|
`;
|
|
16414
|
-
var imageWrapperLoading =
|
|
16487
|
+
var imageWrapperLoading = css60`
|
|
16415
16488
|
animation: ${skeletonLoading} var(--duration-slow) linear infinite alternate;
|
|
16416
16489
|
`;
|
|
16417
|
-
var img =
|
|
16490
|
+
var img = css60`
|
|
16418
16491
|
object-fit: contain;
|
|
16419
16492
|
max-width: 100%;
|
|
16420
16493
|
max-height: 100%;
|
|
@@ -16422,17 +16495,17 @@ var img = css59`
|
|
|
16422
16495
|
opacity: var(--opacity-0);
|
|
16423
16496
|
margin: 0 auto;
|
|
16424
16497
|
`;
|
|
16425
|
-
var imgLoading =
|
|
16498
|
+
var imgLoading = css60`
|
|
16426
16499
|
opacity: 0;
|
|
16427
16500
|
`;
|
|
16428
|
-
var imgLoaded =
|
|
16501
|
+
var imgLoaded = css60`
|
|
16429
16502
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
16430
16503
|
opacity: 1;
|
|
16431
16504
|
`;
|
|
16432
|
-
var brokenImage =
|
|
16505
|
+
var brokenImage = css60`
|
|
16433
16506
|
height: 160px;
|
|
16434
16507
|
`;
|
|
16435
|
-
var brokenImageMessage =
|
|
16508
|
+
var brokenImageMessage = css60`
|
|
16436
16509
|
position: absolute;
|
|
16437
16510
|
bottom: var(--spacing-xs);
|
|
16438
16511
|
left: var(--spacing-xs);
|
|
@@ -16441,19 +16514,19 @@ var brokenImageMessage = css59`
|
|
|
16441
16514
|
padding-inline: var(--spacing-xs);
|
|
16442
16515
|
font-size: var(--fs-sm);
|
|
16443
16516
|
`;
|
|
16444
|
-
var variantFillImageWrapper =
|
|
16517
|
+
var variantFillImageWrapper = css60`
|
|
16445
16518
|
display: flex;
|
|
16446
16519
|
justify-content: center;
|
|
16447
16520
|
height: 100%;
|
|
16448
16521
|
width: 100%;
|
|
16449
16522
|
`;
|
|
16450
|
-
var variantFillImageImg =
|
|
16523
|
+
var variantFillImageImg = css60`
|
|
16451
16524
|
height: inherit;
|
|
16452
16525
|
width: inherit;
|
|
16453
16526
|
`;
|
|
16454
16527
|
|
|
16455
16528
|
// src/components/Image/ImageBroken.tsx
|
|
16456
|
-
import { jsx as
|
|
16529
|
+
import { jsx as jsx76, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
16457
16530
|
var ImageBroken = ({ width, height, ...props }) => {
|
|
16458
16531
|
return /* @__PURE__ */ jsxs47(
|
|
16459
16532
|
"svg",
|
|
@@ -16468,11 +16541,11 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
16468
16541
|
"data-testid": "broken-image",
|
|
16469
16542
|
...props,
|
|
16470
16543
|
children: [
|
|
16471
|
-
/* @__PURE__ */
|
|
16472
|
-
/* @__PURE__ */
|
|
16544
|
+
/* @__PURE__ */ jsx76("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
16545
|
+
/* @__PURE__ */ jsx76("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
16473
16546
|
/* @__PURE__ */ jsxs47("defs", { children: [
|
|
16474
|
-
/* @__PURE__ */
|
|
16475
|
-
/* @__PURE__ */
|
|
16547
|
+
/* @__PURE__ */ jsx76("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx76("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
16548
|
+
/* @__PURE__ */ jsx76(
|
|
16476
16549
|
"image",
|
|
16477
16550
|
{
|
|
16478
16551
|
id: "image0_761_4353",
|
|
@@ -16488,7 +16561,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
16488
16561
|
};
|
|
16489
16562
|
|
|
16490
16563
|
// src/components/Image/Image.tsx
|
|
16491
|
-
import { jsx as
|
|
16564
|
+
import { jsx as jsx77, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
16492
16565
|
var MIN_LOADING_MS = 100;
|
|
16493
16566
|
function Image({
|
|
16494
16567
|
alt,
|
|
@@ -16548,7 +16621,7 @@ function Image({
|
|
|
16548
16621
|
variant === "fill-container" ? variantFillImageWrapper : null
|
|
16549
16622
|
],
|
|
16550
16623
|
children: [
|
|
16551
|
-
src && !loadErrorText ? /* @__PURE__ */
|
|
16624
|
+
src && !loadErrorText ? /* @__PURE__ */ jsx77(
|
|
16552
16625
|
"img",
|
|
16553
16626
|
{
|
|
16554
16627
|
...imgAttribs,
|
|
@@ -16576,14 +16649,14 @@ function Image({
|
|
|
16576
16649
|
...variant === "fill-container" ? {} : { width, height }
|
|
16577
16650
|
},
|
|
16578
16651
|
children: [
|
|
16579
|
-
/* @__PURE__ */
|
|
16652
|
+
/* @__PURE__ */ jsx77(
|
|
16580
16653
|
ImageBroken,
|
|
16581
16654
|
{
|
|
16582
16655
|
css: [brokenImage, img, imgLoaded],
|
|
16583
16656
|
"data-testid": "broken-image"
|
|
16584
16657
|
}
|
|
16585
16658
|
),
|
|
16586
|
-
/* @__PURE__ */
|
|
16659
|
+
/* @__PURE__ */ jsx77(ErrorMessage, { message: loadErrorText, css: brokenImageMessage, truncated: true })
|
|
16587
16660
|
]
|
|
16588
16661
|
}
|
|
16589
16662
|
) : null
|
|
@@ -16593,13 +16666,13 @@ function Image({
|
|
|
16593
16666
|
}
|
|
16594
16667
|
|
|
16595
16668
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
16596
|
-
import { css as
|
|
16669
|
+
import { css as css62 } from "@emotion/react";
|
|
16597
16670
|
import { CgAdd as CgAdd2 } from "@react-icons/all-files/cg/CgAdd";
|
|
16598
16671
|
import { CgChevronRight as CgChevronRight2 } from "@react-icons/all-files/cg/CgChevronRight";
|
|
16599
16672
|
|
|
16600
16673
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
16601
|
-
import { css as
|
|
16602
|
-
var IntegrationTileContainer =
|
|
16674
|
+
import { css as css61 } from "@emotion/react";
|
|
16675
|
+
var IntegrationTileContainer = css61`
|
|
16603
16676
|
align-items: center;
|
|
16604
16677
|
box-sizing: border-box;
|
|
16605
16678
|
border-radius: var(--rounded-base);
|
|
@@ -16630,22 +16703,22 @@ var IntegrationTileContainer = css60`
|
|
|
16630
16703
|
}
|
|
16631
16704
|
}
|
|
16632
16705
|
`;
|
|
16633
|
-
var IntegrationTileBtnDashedBorder =
|
|
16706
|
+
var IntegrationTileBtnDashedBorder = css61`
|
|
16634
16707
|
border: 1px dashed var(--gray-800);
|
|
16635
16708
|
`;
|
|
16636
|
-
var IntegrationTileTitle =
|
|
16709
|
+
var IntegrationTileTitle = css61`
|
|
16637
16710
|
display: block;
|
|
16638
16711
|
font-weight: var(--fw-bold);
|
|
16639
16712
|
margin: 0 0 var(--spacing-base);
|
|
16640
16713
|
max-width: 13rem;
|
|
16641
16714
|
`;
|
|
16642
|
-
var IntegrationTitleLogo =
|
|
16715
|
+
var IntegrationTitleLogo = css61`
|
|
16643
16716
|
display: block;
|
|
16644
16717
|
max-width: 10rem;
|
|
16645
16718
|
max-height: 4rem;
|
|
16646
16719
|
margin: 0 auto;
|
|
16647
16720
|
`;
|
|
16648
|
-
var IntegrationTileName =
|
|
16721
|
+
var IntegrationTileName = css61`
|
|
16649
16722
|
color: var(--gray-500);
|
|
16650
16723
|
display: -webkit-box;
|
|
16651
16724
|
-webkit-line-clamp: 1;
|
|
@@ -16658,7 +16731,7 @@ var IntegrationTileName = css60`
|
|
|
16658
16731
|
position: absolute;
|
|
16659
16732
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
16660
16733
|
`;
|
|
16661
|
-
var IntegrationAddedText =
|
|
16734
|
+
var IntegrationAddedText = css61`
|
|
16662
16735
|
align-items: center;
|
|
16663
16736
|
background: var(--brand-secondary-3);
|
|
16664
16737
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -16673,7 +16746,7 @@ var IntegrationAddedText = css60`
|
|
|
16673
16746
|
top: 0;
|
|
16674
16747
|
right: 0;
|
|
16675
16748
|
`;
|
|
16676
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
16749
|
+
var IntegrationCustomBadgeText = (theme) => css61`
|
|
16677
16750
|
align-items: center;
|
|
16678
16751
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
16679
16752
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--typography-base)"};
|
|
@@ -16687,26 +16760,26 @@ var IntegrationCustomBadgeText = (theme) => css60`
|
|
|
16687
16760
|
top: 0;
|
|
16688
16761
|
left: 0;
|
|
16689
16762
|
`;
|
|
16690
|
-
var IntegrationAuthorBadgeIcon =
|
|
16763
|
+
var IntegrationAuthorBadgeIcon = css61`
|
|
16691
16764
|
position: absolute;
|
|
16692
16765
|
bottom: var(--spacing-sm);
|
|
16693
16766
|
right: var(--spacing-xs);
|
|
16694
16767
|
max-height: 1rem;
|
|
16695
16768
|
`;
|
|
16696
|
-
var IntegrationTitleFakeButton =
|
|
16769
|
+
var IntegrationTitleFakeButton = css61`
|
|
16697
16770
|
font-size: var(--fs-xs);
|
|
16698
16771
|
gap: var(--spacing-sm);
|
|
16699
16772
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
16700
16773
|
text-transform: uppercase;
|
|
16701
16774
|
`;
|
|
16702
|
-
var IntegrationTileFloatingButton =
|
|
16775
|
+
var IntegrationTileFloatingButton = css61`
|
|
16703
16776
|
position: absolute;
|
|
16704
16777
|
bottom: var(--spacing-base);
|
|
16705
16778
|
gap: var(--spacing-sm);
|
|
16706
16779
|
font-size: var(--fs-xs);
|
|
16707
16780
|
overflow: hidden;
|
|
16708
16781
|
`;
|
|
16709
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
16782
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css61`
|
|
16710
16783
|
strong,
|
|
16711
16784
|
span:first-of-type {
|
|
16712
16785
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -16727,7 +16800,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css60`
|
|
|
16727
16800
|
`;
|
|
16728
16801
|
|
|
16729
16802
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
16730
|
-
import { jsx as
|
|
16803
|
+
import { jsx as jsx78, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
16731
16804
|
var CreateTeamIntegrationTile = ({
|
|
16732
16805
|
title: title2 = "Create a custom integration for your team",
|
|
16733
16806
|
buttonText = "Add Integration",
|
|
@@ -16736,7 +16809,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
16736
16809
|
...props
|
|
16737
16810
|
}) => {
|
|
16738
16811
|
return /* @__PURE__ */ jsxs49("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
16739
|
-
/* @__PURE__ */
|
|
16812
|
+
/* @__PURE__ */ jsx78("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
16740
16813
|
/* @__PURE__ */ jsxs49(
|
|
16741
16814
|
Button,
|
|
16742
16815
|
{
|
|
@@ -16747,23 +16820,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
16747
16820
|
css: IntegrationTitleFakeButton,
|
|
16748
16821
|
children: [
|
|
16749
16822
|
buttonText,
|
|
16750
|
-
asDeepLink ? /* @__PURE__ */
|
|
16823
|
+
asDeepLink ? /* @__PURE__ */ jsx78(
|
|
16751
16824
|
Icon,
|
|
16752
16825
|
{
|
|
16753
16826
|
icon: CgChevronRight2,
|
|
16754
16827
|
iconColor: "currentColor",
|
|
16755
16828
|
size: 20,
|
|
16756
|
-
css:
|
|
16829
|
+
css: css62`
|
|
16757
16830
|
order: 1;
|
|
16758
16831
|
`
|
|
16759
16832
|
}
|
|
16760
|
-
) : /* @__PURE__ */
|
|
16833
|
+
) : /* @__PURE__ */ jsx78(
|
|
16761
16834
|
Icon,
|
|
16762
16835
|
{
|
|
16763
16836
|
icon: CgAdd2,
|
|
16764
16837
|
iconColor: "currentColor",
|
|
16765
16838
|
size: 16,
|
|
16766
|
-
css:
|
|
16839
|
+
css: css62`
|
|
16767
16840
|
order: -1;
|
|
16768
16841
|
`
|
|
16769
16842
|
}
|
|
@@ -16778,31 +16851,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
16778
16851
|
import { CgCheck as CgCheck2 } from "@react-icons/all-files/cg/CgCheck";
|
|
16779
16852
|
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
16780
16853
|
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
16781
|
-
import { jsx as
|
|
16854
|
+
import { jsx as jsx79, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
16782
16855
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
16783
16856
|
return /* @__PURE__ */ jsxs50("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
16784
|
-
/* @__PURE__ */
|
|
16857
|
+
/* @__PURE__ */ jsx79(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
16785
16858
|
text
|
|
16786
16859
|
] });
|
|
16787
16860
|
};
|
|
16788
16861
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
16789
|
-
return /* @__PURE__ */
|
|
16862
|
+
return /* @__PURE__ */ jsx79("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
16790
16863
|
};
|
|
16791
16864
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
16792
16865
|
return /* @__PURE__ */ jsxs50("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
16793
|
-
/* @__PURE__ */
|
|
16866
|
+
/* @__PURE__ */ jsx79(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
16794
16867
|
text
|
|
16795
16868
|
] });
|
|
16796
16869
|
};
|
|
16797
16870
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
16798
16871
|
return /* @__PURE__ */ jsxs50("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
16799
|
-
/* @__PURE__ */
|
|
16872
|
+
/* @__PURE__ */ jsx79(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
16800
16873
|
text
|
|
16801
16874
|
] });
|
|
16802
16875
|
};
|
|
16803
16876
|
|
|
16804
16877
|
// src/components/Tiles/ResolveIcon.tsx
|
|
16805
|
-
import { jsx as
|
|
16878
|
+
import { jsx as jsx80 } from "@emotion/react/jsx-runtime";
|
|
16806
16879
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
16807
16880
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
16808
16881
|
const mapClassName = {
|
|
@@ -16810,13 +16883,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
16810
16883
|
logo: IntegrationTitleLogo
|
|
16811
16884
|
};
|
|
16812
16885
|
if (icon) {
|
|
16813
|
-
return CompIcon ? /* @__PURE__ */
|
|
16886
|
+
return CompIcon ? /* @__PURE__ */ jsx80(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx80("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
16814
16887
|
}
|
|
16815
16888
|
return null;
|
|
16816
16889
|
};
|
|
16817
16890
|
|
|
16818
16891
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
16819
|
-
import { jsx as
|
|
16892
|
+
import { jsx as jsx81, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
16820
16893
|
var EditTeamIntegrationTile = ({
|
|
16821
16894
|
id,
|
|
16822
16895
|
icon,
|
|
@@ -16832,10 +16905,10 @@ var EditTeamIntegrationTile = ({
|
|
|
16832
16905
|
"data-testid": "configure-integration-container",
|
|
16833
16906
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
16834
16907
|
children: [
|
|
16835
|
-
/* @__PURE__ */
|
|
16836
|
-
/* @__PURE__ */
|
|
16837
|
-
!isPublic ? /* @__PURE__ */
|
|
16838
|
-
canEdit ? /* @__PURE__ */
|
|
16908
|
+
/* @__PURE__ */ jsx81(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
16909
|
+
/* @__PURE__ */ jsx81("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
16910
|
+
!isPublic ? /* @__PURE__ */ jsx81(IntegrationCustomBadge, {}) : null,
|
|
16911
|
+
canEdit ? /* @__PURE__ */ jsx81(
|
|
16839
16912
|
Button,
|
|
16840
16913
|
{
|
|
16841
16914
|
buttonType: "unimportant",
|
|
@@ -16853,10 +16926,10 @@ var EditTeamIntegrationTile = ({
|
|
|
16853
16926
|
};
|
|
16854
16927
|
|
|
16855
16928
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
16856
|
-
import { css as
|
|
16929
|
+
import { css as css63 } from "@emotion/react";
|
|
16857
16930
|
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
16858
16931
|
import { useEffect as useEffect10, useState as useState11 } from "react";
|
|
16859
|
-
import { jsx as
|
|
16932
|
+
import { jsx as jsx82, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
16860
16933
|
var IntegrationComingSoon = ({
|
|
16861
16934
|
name,
|
|
16862
16935
|
icon,
|
|
@@ -16885,9 +16958,9 @@ var IntegrationComingSoon = ({
|
|
|
16885
16958
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
16886
16959
|
...props,
|
|
16887
16960
|
children: [
|
|
16888
|
-
/* @__PURE__ */
|
|
16889
|
-
/* @__PURE__ */
|
|
16890
|
-
/* @__PURE__ */
|
|
16961
|
+
/* @__PURE__ */ jsx82(IntegrationComingSoonBadge, {}),
|
|
16962
|
+
/* @__PURE__ */ jsx82(ResolveIcon, { icon, name }),
|
|
16963
|
+
/* @__PURE__ */ jsx82("span", { css: IntegrationTileName, title: name, children: name }),
|
|
16891
16964
|
/* @__PURE__ */ jsxs52(
|
|
16892
16965
|
Button,
|
|
16893
16966
|
{
|
|
@@ -16898,11 +16971,11 @@ var IntegrationComingSoon = ({
|
|
|
16898
16971
|
role: "link",
|
|
16899
16972
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
16900
16973
|
children: [
|
|
16901
|
-
/* @__PURE__ */
|
|
16902
|
-
/* @__PURE__ */
|
|
16974
|
+
/* @__PURE__ */ jsx82("strong", { children: "+1" }),
|
|
16975
|
+
/* @__PURE__ */ jsx82(
|
|
16903
16976
|
"span",
|
|
16904
16977
|
{
|
|
16905
|
-
css:
|
|
16978
|
+
css: css63`
|
|
16906
16979
|
text-transform: uppercase;
|
|
16907
16980
|
color: var(--gray-500);
|
|
16908
16981
|
`,
|
|
@@ -16910,7 +16983,7 @@ var IntegrationComingSoon = ({
|
|
|
16910
16983
|
}
|
|
16911
16984
|
),
|
|
16912
16985
|
/* @__PURE__ */ jsxs52("span", { "aria-hidden": !upVote, children: [
|
|
16913
|
-
/* @__PURE__ */
|
|
16986
|
+
/* @__PURE__ */ jsx82(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
16914
16987
|
"Thanks!"
|
|
16915
16988
|
] })
|
|
16916
16989
|
]
|
|
@@ -16922,8 +16995,8 @@ var IntegrationComingSoon = ({
|
|
|
16922
16995
|
};
|
|
16923
16996
|
|
|
16924
16997
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
16925
|
-
import { css as
|
|
16926
|
-
var IntegrationLoadingTileContainer =
|
|
16998
|
+
import { css as css64 } from "@emotion/react";
|
|
16999
|
+
var IntegrationLoadingTileContainer = css64`
|
|
16927
17000
|
align-items: center;
|
|
16928
17001
|
box-sizing: border-box;
|
|
16929
17002
|
border-radius: var(--rounded-base);
|
|
@@ -16950,39 +17023,39 @@ var IntegrationLoadingTileContainer = css63`
|
|
|
16950
17023
|
}
|
|
16951
17024
|
}
|
|
16952
17025
|
`;
|
|
16953
|
-
var IntegrationLoadingTileImg =
|
|
17026
|
+
var IntegrationLoadingTileImg = css64`
|
|
16954
17027
|
width: 10rem;
|
|
16955
17028
|
height: 4rem;
|
|
16956
17029
|
margin: 0 auto;
|
|
16957
17030
|
`;
|
|
16958
|
-
var IntegrationLoadingTileText =
|
|
17031
|
+
var IntegrationLoadingTileText = css64`
|
|
16959
17032
|
width: 5rem;
|
|
16960
17033
|
height: var(--spacing-sm);
|
|
16961
17034
|
margin: var(--spacing-sm) 0;
|
|
16962
17035
|
`;
|
|
16963
|
-
var IntegrationLoadingFrame =
|
|
17036
|
+
var IntegrationLoadingFrame = css64`
|
|
16964
17037
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
16965
17038
|
border-radius: var(--rounded-base);
|
|
16966
17039
|
`;
|
|
16967
17040
|
|
|
16968
17041
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
16969
|
-
import { Fragment as Fragment11, jsx as
|
|
17042
|
+
import { Fragment as Fragment11, jsx as jsx83, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
16970
17043
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
16971
17044
|
const componentCount = Array.from(Array(count).keys());
|
|
16972
|
-
return /* @__PURE__ */
|
|
16973
|
-
/* @__PURE__ */
|
|
16974
|
-
/* @__PURE__ */
|
|
17045
|
+
return /* @__PURE__ */ jsx83(Fragment11, { children: componentCount.map((i) => /* @__PURE__ */ jsxs53("div", { css: IntegrationLoadingTileContainer, children: [
|
|
17046
|
+
/* @__PURE__ */ jsx83("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
17047
|
+
/* @__PURE__ */ jsx83("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
16975
17048
|
] }, i)) });
|
|
16976
17049
|
};
|
|
16977
17050
|
|
|
16978
17051
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
16979
|
-
import { css as
|
|
16980
|
-
var IntegrationModalIconContainer =
|
|
17052
|
+
import { css as css65 } from "@emotion/react";
|
|
17053
|
+
var IntegrationModalIconContainer = css65`
|
|
16981
17054
|
position: relative;
|
|
16982
17055
|
width: 50px;
|
|
16983
17056
|
margin-bottom: var(--spacing-base);
|
|
16984
17057
|
`;
|
|
16985
|
-
var IntegrationModalImage =
|
|
17058
|
+
var IntegrationModalImage = css65`
|
|
16986
17059
|
position: absolute;
|
|
16987
17060
|
inset: 0;
|
|
16988
17061
|
margin: auto;
|
|
@@ -16991,7 +17064,7 @@ var IntegrationModalImage = css64`
|
|
|
16991
17064
|
`;
|
|
16992
17065
|
|
|
16993
17066
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
16994
|
-
import { jsx as
|
|
17067
|
+
import { jsx as jsx84, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
16995
17068
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
16996
17069
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
16997
17070
|
let iconSrc = void 0;
|
|
@@ -17009,7 +17082,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
17009
17082
|
}
|
|
17010
17083
|
return /* @__PURE__ */ jsxs54("div", { css: IntegrationModalIconContainer, children: [
|
|
17011
17084
|
/* @__PURE__ */ jsxs54("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
17012
|
-
/* @__PURE__ */
|
|
17085
|
+
/* @__PURE__ */ jsx84(
|
|
17013
17086
|
"path",
|
|
17014
17087
|
{
|
|
17015
17088
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -17018,12 +17091,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
17018
17091
|
strokeWidth: "2"
|
|
17019
17092
|
}
|
|
17020
17093
|
),
|
|
17021
|
-
/* @__PURE__ */
|
|
17022
|
-
/* @__PURE__ */
|
|
17023
|
-
/* @__PURE__ */
|
|
17094
|
+
/* @__PURE__ */ jsx84("defs", { children: /* @__PURE__ */ jsxs54("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
17095
|
+
/* @__PURE__ */ jsx84("stop", { stopColor: "#1768B2" }),
|
|
17096
|
+
/* @__PURE__ */ jsx84("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
17024
17097
|
] }) })
|
|
17025
17098
|
] }),
|
|
17026
|
-
CompIcon ? /* @__PURE__ */
|
|
17099
|
+
CompIcon ? /* @__PURE__ */ jsx84(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx84(
|
|
17027
17100
|
"img",
|
|
17028
17101
|
{
|
|
17029
17102
|
src: iconSrc,
|
|
@@ -17037,7 +17110,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
17037
17110
|
};
|
|
17038
17111
|
|
|
17039
17112
|
// src/components/Tiles/IntegrationTile.tsx
|
|
17040
|
-
import { jsx as
|
|
17113
|
+
import { jsx as jsx85, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
17041
17114
|
var IntegrationTile = ({
|
|
17042
17115
|
id,
|
|
17043
17116
|
icon,
|
|
@@ -17059,21 +17132,21 @@ var IntegrationTile = ({
|
|
|
17059
17132
|
"aria-label": name,
|
|
17060
17133
|
...btnProps,
|
|
17061
17134
|
children: [
|
|
17062
|
-
/* @__PURE__ */
|
|
17063
|
-
/* @__PURE__ */
|
|
17064
|
-
isInstalled ? /* @__PURE__ */
|
|
17065
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
17066
|
-
!isPublic ? /* @__PURE__ */
|
|
17067
|
-
authorIcon ? /* @__PURE__ */
|
|
17135
|
+
/* @__PURE__ */ jsx85(ResolveIcon, { icon, name }),
|
|
17136
|
+
/* @__PURE__ */ jsx85("span", { css: IntegrationTileName, title: name, children: name }),
|
|
17137
|
+
isInstalled ? /* @__PURE__ */ jsx85(IntegrationedAddedBadge, {}) : null,
|
|
17138
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx85(IntegrationPremiumBadge, {}) : null,
|
|
17139
|
+
!isPublic ? /* @__PURE__ */ jsx85(IntegrationCustomBadge, {}) : null,
|
|
17140
|
+
authorIcon ? /* @__PURE__ */ jsx85(ResolveIcon, { icon: authorIcon, name }) : null
|
|
17068
17141
|
]
|
|
17069
17142
|
}
|
|
17070
17143
|
);
|
|
17071
17144
|
};
|
|
17072
17145
|
|
|
17073
17146
|
// src/components/Tiles/styles/Tile.styles.ts
|
|
17074
|
-
import { css as
|
|
17147
|
+
import { css as css66 } from "@emotion/react";
|
|
17075
17148
|
var tileBorderSize = "1px";
|
|
17076
|
-
var Tile =
|
|
17149
|
+
var Tile = css66`
|
|
17077
17150
|
background: var(--white);
|
|
17078
17151
|
cursor: pointer;
|
|
17079
17152
|
border: ${tileBorderSize} solid var(--gray-300);
|
|
@@ -17095,15 +17168,15 @@ var Tile = css65`
|
|
|
17095
17168
|
pointer-events: none;
|
|
17096
17169
|
}
|
|
17097
17170
|
`;
|
|
17098
|
-
var TileIsSelected =
|
|
17171
|
+
var TileIsSelected = css66`
|
|
17099
17172
|
border: calc(${tileBorderSize} + 1px) solid var(--primary-action-active);
|
|
17100
17173
|
z-index: 1; // Used to elevate active state border over other Tile borders
|
|
17101
17174
|
`;
|
|
17102
17175
|
|
|
17103
17176
|
// src/components/Tiles/Tile.tsx
|
|
17104
|
-
import { jsx as
|
|
17177
|
+
import { jsx as jsx86 } from "@emotion/react/jsx-runtime";
|
|
17105
17178
|
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
17106
|
-
return /* @__PURE__ */
|
|
17179
|
+
return /* @__PURE__ */ jsx86(
|
|
17107
17180
|
"button",
|
|
17108
17181
|
{
|
|
17109
17182
|
type: "button",
|
|
@@ -17116,12 +17189,12 @@ var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
|
17116
17189
|
};
|
|
17117
17190
|
|
|
17118
17191
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
17119
|
-
import { css as
|
|
17120
|
-
var TileContainerWrapper = (theme, padding) =>
|
|
17192
|
+
import { css as css67 } from "@emotion/react";
|
|
17193
|
+
var TileContainerWrapper = (theme, padding) => css67`
|
|
17121
17194
|
background: ${theme};
|
|
17122
17195
|
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
17123
17196
|
`;
|
|
17124
|
-
var TileContainerInner = (gap, templateColumns) =>
|
|
17197
|
+
var TileContainerInner = (gap, templateColumns) => css67`
|
|
17125
17198
|
display: grid;
|
|
17126
17199
|
grid-template-columns: ${templateColumns};
|
|
17127
17200
|
gap: var(--spacing-${gap});
|
|
@@ -17135,7 +17208,7 @@ var TileContainerInner = (gap, templateColumns) => css66`
|
|
|
17135
17208
|
`;
|
|
17136
17209
|
|
|
17137
17210
|
// src/components/Tiles/TileContainer.tsx
|
|
17138
|
-
import { jsx as
|
|
17211
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
17139
17212
|
var TileContainer = ({
|
|
17140
17213
|
bgColor = "var(--brand-secondary-2)",
|
|
17141
17214
|
containerPadding = "base",
|
|
@@ -17144,25 +17217,25 @@ var TileContainer = ({
|
|
|
17144
17217
|
children,
|
|
17145
17218
|
...props
|
|
17146
17219
|
}) => {
|
|
17147
|
-
return /* @__PURE__ */
|
|
17220
|
+
return /* @__PURE__ */ jsx87("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx87("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
17148
17221
|
};
|
|
17149
17222
|
|
|
17150
17223
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
17151
|
-
import { css as
|
|
17152
|
-
var TileHeading =
|
|
17224
|
+
import { css as css68 } from "@emotion/react";
|
|
17225
|
+
var TileHeading = css68`
|
|
17153
17226
|
font-size: var(--fs-base);
|
|
17154
17227
|
`;
|
|
17155
|
-
var TileText =
|
|
17228
|
+
var TileText = css68`
|
|
17156
17229
|
color: var(--gray-500);
|
|
17157
17230
|
font-size: var(--fs-sm);
|
|
17158
17231
|
line-height: 1.2;
|
|
17159
17232
|
`;
|
|
17160
17233
|
|
|
17161
17234
|
// src/components/Tiles/TileText.tsx
|
|
17162
|
-
import { jsx as
|
|
17235
|
+
import { jsx as jsx88 } from "@emotion/react/jsx-runtime";
|
|
17163
17236
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
17164
17237
|
const isHeading = as === "heading";
|
|
17165
|
-
return /* @__PURE__ */
|
|
17238
|
+
return /* @__PURE__ */ jsx88(
|
|
17166
17239
|
"span",
|
|
17167
17240
|
{
|
|
17168
17241
|
role: isHeading ? "heading" : void 0,
|
|
@@ -17174,32 +17247,32 @@ var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
|
17174
17247
|
};
|
|
17175
17248
|
|
|
17176
17249
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.styles.ts
|
|
17177
|
-
import { css as
|
|
17178
|
-
var IntegrationModalHeaderSVGBackground =
|
|
17250
|
+
import { css as css69 } from "@emotion/react";
|
|
17251
|
+
var IntegrationModalHeaderSVGBackground = css69`
|
|
17179
17252
|
position: absolute;
|
|
17180
17253
|
top: 0;
|
|
17181
17254
|
left: 0;
|
|
17182
17255
|
`;
|
|
17183
|
-
var IntegrationModalHeaderGroup =
|
|
17256
|
+
var IntegrationModalHeaderGroup = css69`
|
|
17184
17257
|
align-items: center;
|
|
17185
17258
|
display: flex;
|
|
17186
17259
|
gap: var(--spacing-sm);
|
|
17187
17260
|
margin: 0 0 var(--spacing-md);
|
|
17188
17261
|
position: relative;
|
|
17189
17262
|
`;
|
|
17190
|
-
var IntegrationModalHeaderTitleGroup =
|
|
17263
|
+
var IntegrationModalHeaderTitleGroup = css69`
|
|
17191
17264
|
align-items: center;
|
|
17192
17265
|
display: flex;
|
|
17193
17266
|
gap: var(--spacing-base);
|
|
17194
17267
|
padding: 0 var(--spacing-base);
|
|
17195
17268
|
`;
|
|
17196
|
-
var IntegrationModalHeaderTitle =
|
|
17269
|
+
var IntegrationModalHeaderTitle = css69`
|
|
17197
17270
|
margin-top: 0;
|
|
17198
17271
|
`;
|
|
17199
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
17272
|
+
var IntegrationModalHeaderMenuPlacement = css69`
|
|
17200
17273
|
margin-bottom: var(--spacing-base);
|
|
17201
17274
|
`;
|
|
17202
|
-
var IntegrationModalHeaderContentWrapper =
|
|
17275
|
+
var IntegrationModalHeaderContentWrapper = css69`
|
|
17203
17276
|
background: var(--white);
|
|
17204
17277
|
display: flex;
|
|
17205
17278
|
padding: var(--spacing-base);
|
|
@@ -17211,7 +17284,7 @@ var IntegrationModalHeaderContentWrapper = css68`
|
|
|
17211
17284
|
`;
|
|
17212
17285
|
|
|
17213
17286
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
17214
|
-
import { Fragment as Fragment12, jsx as
|
|
17287
|
+
import { Fragment as Fragment12, jsx as jsx89, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
17215
17288
|
var HexModalBackground = ({ ...props }) => {
|
|
17216
17289
|
return /* @__PURE__ */ jsxs56(
|
|
17217
17290
|
"svg",
|
|
@@ -17223,7 +17296,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17223
17296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17224
17297
|
...props,
|
|
17225
17298
|
children: [
|
|
17226
|
-
/* @__PURE__ */
|
|
17299
|
+
/* @__PURE__ */ jsx89(
|
|
17227
17300
|
"path",
|
|
17228
17301
|
{
|
|
17229
17302
|
fillRule: "evenodd",
|
|
@@ -17232,7 +17305,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17232
17305
|
fill: "url(#paint0_linear_196_2737)"
|
|
17233
17306
|
}
|
|
17234
17307
|
),
|
|
17235
|
-
/* @__PURE__ */
|
|
17308
|
+
/* @__PURE__ */ jsx89("defs", { children: /* @__PURE__ */ jsxs56(
|
|
17236
17309
|
"linearGradient",
|
|
17237
17310
|
{
|
|
17238
17311
|
id: "paint0_linear_196_2737",
|
|
@@ -17242,8 +17315,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17242
17315
|
y2: "-95.2742",
|
|
17243
17316
|
gradientUnits: "userSpaceOnUse",
|
|
17244
17317
|
children: [
|
|
17245
|
-
/* @__PURE__ */
|
|
17246
|
-
/* @__PURE__ */
|
|
17318
|
+
/* @__PURE__ */ jsx89("stop", { stopColor: "#81DCDE" }),
|
|
17319
|
+
/* @__PURE__ */ jsx89("stop", { offset: "1", stopColor: "#428ED4" })
|
|
17247
17320
|
]
|
|
17248
17321
|
}
|
|
17249
17322
|
) })
|
|
@@ -17253,22 +17326,22 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17253
17326
|
};
|
|
17254
17327
|
var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
17255
17328
|
return /* @__PURE__ */ jsxs56(Fragment12, { children: [
|
|
17256
|
-
/* @__PURE__ */
|
|
17257
|
-
/* @__PURE__ */
|
|
17258
|
-
icon ? /* @__PURE__ */
|
|
17259
|
-
/* @__PURE__ */
|
|
17329
|
+
/* @__PURE__ */ jsx89(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
17330
|
+
/* @__PURE__ */ jsx89("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs56("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
17331
|
+
icon ? /* @__PURE__ */ jsx89(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
17332
|
+
/* @__PURE__ */ jsx89(Heading2, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
17260
17333
|
menu ? /* @__PURE__ */ jsxs56("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
17261
17334
|
menu,
|
|
17262
17335
|
" "
|
|
17263
17336
|
] }) : null
|
|
17264
17337
|
] }) }),
|
|
17265
|
-
/* @__PURE__ */
|
|
17338
|
+
/* @__PURE__ */ jsx89("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
17266
17339
|
] });
|
|
17267
17340
|
};
|
|
17268
17341
|
|
|
17269
17342
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
17270
17343
|
import MonacoEditor from "@monaco-editor/react";
|
|
17271
|
-
import { jsx as
|
|
17344
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
17272
17345
|
var minEditorHeightPx = 150;
|
|
17273
17346
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
17274
17347
|
let effectiveHeight = height;
|
|
@@ -17278,7 +17351,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
17278
17351
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
17279
17352
|
effectiveHeight = minEditorHeightPx;
|
|
17280
17353
|
}
|
|
17281
|
-
return /* @__PURE__ */
|
|
17354
|
+
return /* @__PURE__ */ jsx90(
|
|
17282
17355
|
MonacoEditor,
|
|
17283
17356
|
{
|
|
17284
17357
|
height: effectiveHeight,
|
|
@@ -17384,12 +17457,12 @@ function useDebouncedCallback(callback, deps, delay, maxWait = 0) {
|
|
|
17384
17457
|
}
|
|
17385
17458
|
|
|
17386
17459
|
// src/components/KeyValueInput/KeyValueInput.styles.ts
|
|
17387
|
-
import { css as
|
|
17388
|
-
var LabelStyles =
|
|
17460
|
+
import { css as css70 } from "@emotion/react";
|
|
17461
|
+
var LabelStyles = css70`
|
|
17389
17462
|
text-transform: uppercase;
|
|
17390
17463
|
font-weight: var(--fw-medium);
|
|
17391
17464
|
`;
|
|
17392
|
-
var SelectKeyValueRowStyles =
|
|
17465
|
+
var SelectKeyValueRowStyles = css70`
|
|
17393
17466
|
animation: var(--duration-fast) var(--timing-ease-out);
|
|
17394
17467
|
align-items: flex-start;
|
|
17395
17468
|
display: grid;
|
|
@@ -17398,40 +17471,14 @@ var SelectKeyValueRowStyles = css69`
|
|
|
17398
17471
|
background-color: white;
|
|
17399
17472
|
flex: 1;
|
|
17400
17473
|
`;
|
|
17401
|
-
var
|
|
17402
|
-
position: relative;
|
|
17403
|
-
height: 3.125rem;
|
|
17404
|
-
width: 1rem;
|
|
17405
|
-
cursor: grab;
|
|
17406
|
-
background: transparent;
|
|
17407
|
-
border: 0;
|
|
17408
|
-
|
|
17409
|
-
&::after {
|
|
17410
|
-
content: '';
|
|
17411
|
-
display: block;
|
|
17412
|
-
position: absolute;
|
|
17413
|
-
left: 2px;
|
|
17414
|
-
top: var(--spacing-xs);
|
|
17415
|
-
bottom: var(--spacing-xs);
|
|
17416
|
-
width: 5px;
|
|
17417
|
-
border: 2px dotted var(--gray-300);
|
|
17418
|
-
border-top: 0;
|
|
17419
|
-
border-bottom: 0;
|
|
17420
|
-
opacity: 1;
|
|
17421
|
-
}
|
|
17422
|
-
`;
|
|
17423
|
-
var DragHandleDisabled = css69`
|
|
17424
|
-
opacity: 0.3;
|
|
17425
|
-
pointer-events: none;
|
|
17426
|
-
`;
|
|
17427
|
-
var rowWrapper = css69`
|
|
17474
|
+
var rowWrapper = css70`
|
|
17428
17475
|
display: flex;
|
|
17429
17476
|
background-color: white;
|
|
17430
17477
|
border-radius: var(--rounded-sm);
|
|
17431
17478
|
`;
|
|
17432
17479
|
|
|
17433
17480
|
// src/components/KeyValueInput/KeyValueInput.tsx
|
|
17434
|
-
import { jsx as
|
|
17481
|
+
import { jsx as jsx91, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
17435
17482
|
var initialSelectOptionValue = { key: "", value: "" };
|
|
17436
17483
|
var generateItemId = (item, index) => item.uniqueId || item.value || item.key || `$index-${index}`;
|
|
17437
17484
|
var KeyValueInput = ({
|
|
@@ -17517,11 +17564,11 @@ var KeyValueInput = ({
|
|
|
17517
17564
|
}
|
|
17518
17565
|
}, [value.length]);
|
|
17519
17566
|
return /* @__PURE__ */ jsxs57(VerticalRhythm, { gap: "xs", children: [
|
|
17520
|
-
/* @__PURE__ */
|
|
17567
|
+
/* @__PURE__ */ jsx91(HorizontalRhythm, { align: "center", justify: "space-between", css: { marginBottom: "var(--spacing-xs)" }, children: /* @__PURE__ */ jsx91("span", { css: LabelStyles, children: label }) }),
|
|
17521
17568
|
/* @__PURE__ */ jsxs57("div", { css: [SelectKeyValueRowStyles, { paddingLeft: "var(--spacing-base)" }], children: [
|
|
17522
17569
|
/* @__PURE__ */ jsxs57(HorizontalRhythm, { align: "center", gap: "xs", children: [
|
|
17523
|
-
/* @__PURE__ */
|
|
17524
|
-
!keyInfoPopover ? null : /* @__PURE__ */
|
|
17570
|
+
/* @__PURE__ */ jsx91("span", { children: keyLabel }),
|
|
17571
|
+
!keyInfoPopover ? null : /* @__PURE__ */ jsx91(
|
|
17525
17572
|
Popover3,
|
|
17526
17573
|
{
|
|
17527
17574
|
buttonText: `${keyLabel} info`,
|
|
@@ -17533,8 +17580,8 @@ var KeyValueInput = ({
|
|
|
17533
17580
|
)
|
|
17534
17581
|
] }),
|
|
17535
17582
|
/* @__PURE__ */ jsxs57(HorizontalRhythm, { align: "center", gap: "xs", children: [
|
|
17536
|
-
/* @__PURE__ */
|
|
17537
|
-
!valueInfoPopover ? null : /* @__PURE__ */
|
|
17583
|
+
/* @__PURE__ */ jsx91("span", { children: valueLabel }),
|
|
17584
|
+
!valueInfoPopover ? null : /* @__PURE__ */ jsx91(
|
|
17538
17585
|
Popover3,
|
|
17539
17586
|
{
|
|
17540
17587
|
buttonText: `${valueLabel} info`,
|
|
@@ -17546,7 +17593,7 @@ var KeyValueInput = ({
|
|
|
17546
17593
|
)
|
|
17547
17594
|
] })
|
|
17548
17595
|
] }),
|
|
17549
|
-
/* @__PURE__ */
|
|
17596
|
+
/* @__PURE__ */ jsx91(VerticalRhythm, { gap: "sm", children: /* @__PURE__ */ jsx91(
|
|
17550
17597
|
DndContext,
|
|
17551
17598
|
{
|
|
17552
17599
|
sensors,
|
|
@@ -17555,7 +17602,7 @@ var KeyValueInput = ({
|
|
|
17555
17602
|
onDragStart: handleDragStart,
|
|
17556
17603
|
onDragCancel: handleDragCancel,
|
|
17557
17604
|
modifiers: [restrictToParentElement],
|
|
17558
|
-
children: /* @__PURE__ */
|
|
17605
|
+
children: /* @__PURE__ */ jsx91(SortableContext, { items: valueWithIds, strategy: verticalListSortingStrategy, children: valueWithIds.map(({ id, ...item }, index) => /* @__PURE__ */ jsx91(
|
|
17559
17606
|
KeyValueInputItem,
|
|
17560
17607
|
{
|
|
17561
17608
|
id,
|
|
@@ -17586,7 +17633,7 @@ var KeyValueInput = ({
|
|
|
17586
17633
|
disabled: disabled2,
|
|
17587
17634
|
css: { marginTop: "var(--spacing-base)" },
|
|
17588
17635
|
children: [
|
|
17589
|
-
/* @__PURE__ */
|
|
17636
|
+
/* @__PURE__ */ jsx91(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.85rem" }),
|
|
17590
17637
|
" Add option"
|
|
17591
17638
|
]
|
|
17592
17639
|
}
|
|
@@ -17616,18 +17663,9 @@ var KeyValueInputItem = ({
|
|
|
17616
17663
|
transition
|
|
17617
17664
|
};
|
|
17618
17665
|
return /* @__PURE__ */ jsxs57("div", { css: rowWrapper, ref: setNodeRef, style, children: [
|
|
17619
|
-
/* @__PURE__ */
|
|
17620
|
-
"button",
|
|
17621
|
-
{
|
|
17622
|
-
type: "button",
|
|
17623
|
-
css: [DragHandle, disabledDnd ? DragHandleDisabled : null],
|
|
17624
|
-
ref: setActivatorNodeRef,
|
|
17625
|
-
...attributes,
|
|
17626
|
-
...listeners
|
|
17627
|
-
}
|
|
17628
|
-
),
|
|
17666
|
+
/* @__PURE__ */ jsx91(DragHandle, { disableDnd: disabledDnd, ref: setActivatorNodeRef, ...attributes, ...listeners }),
|
|
17629
17667
|
/* @__PURE__ */ jsxs57("div", { css: SelectKeyValueRowStyles, "data-testid": "key-value-input-item", children: [
|
|
17630
|
-
/* @__PURE__ */
|
|
17668
|
+
/* @__PURE__ */ jsx91(
|
|
17631
17669
|
Input,
|
|
17632
17670
|
{
|
|
17633
17671
|
ref: firstInputRef,
|
|
@@ -17648,7 +17686,7 @@ var KeyValueInputItem = ({
|
|
|
17648
17686
|
"data-testid": "key"
|
|
17649
17687
|
}
|
|
17650
17688
|
),
|
|
17651
|
-
/* @__PURE__ */
|
|
17689
|
+
/* @__PURE__ */ jsx91(
|
|
17652
17690
|
Input,
|
|
17653
17691
|
{
|
|
17654
17692
|
label: valueLabel,
|
|
@@ -17665,7 +17703,7 @@ var KeyValueInputItem = ({
|
|
|
17665
17703
|
"data-testid": "value"
|
|
17666
17704
|
}
|
|
17667
17705
|
),
|
|
17668
|
-
/* @__PURE__ */
|
|
17706
|
+
/* @__PURE__ */ jsx91("div", { css: { marginTop: "1rem" }, children: /* @__PURE__ */ jsx91(
|
|
17669
17707
|
Button,
|
|
17670
17708
|
{
|
|
17671
17709
|
type: "button",
|
|
@@ -17674,7 +17712,7 @@ var KeyValueInputItem = ({
|
|
|
17674
17712
|
onClick: onDelete,
|
|
17675
17713
|
disabled: disabled2 || disabledDelete,
|
|
17676
17714
|
size: "zero",
|
|
17677
|
-
children: /* @__PURE__ */
|
|
17715
|
+
children: /* @__PURE__ */ jsx91(Icon, { icon: "trash", size: 16, iconColor: "currentColor" })
|
|
17678
17716
|
}
|
|
17679
17717
|
) })
|
|
17680
17718
|
] })
|
|
@@ -17682,39 +17720,39 @@ var KeyValueInputItem = ({
|
|
|
17682
17720
|
};
|
|
17683
17721
|
|
|
17684
17722
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
17685
|
-
import { css as
|
|
17686
|
-
var LimitsBarContainer =
|
|
17723
|
+
import { css as css71 } from "@emotion/react";
|
|
17724
|
+
var LimitsBarContainer = css71`
|
|
17687
17725
|
margin-block: var(--spacing-sm);
|
|
17688
17726
|
`;
|
|
17689
|
-
var LimitsBarProgressBar =
|
|
17727
|
+
var LimitsBarProgressBar = css71`
|
|
17690
17728
|
background: var(--gray-100);
|
|
17691
17729
|
margin-top: var(--spacing-sm);
|
|
17692
17730
|
position: relative;
|
|
17693
17731
|
overflow: hidden;
|
|
17694
17732
|
height: 0.25rem;
|
|
17695
17733
|
`;
|
|
17696
|
-
var LimitsBarProgressBarLine =
|
|
17734
|
+
var LimitsBarProgressBarLine = css71`
|
|
17697
17735
|
position: absolute;
|
|
17698
17736
|
inset: 0;
|
|
17699
17737
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
17700
17738
|
`;
|
|
17701
|
-
var LimitsBarLabelContainer =
|
|
17739
|
+
var LimitsBarLabelContainer = css71`
|
|
17702
17740
|
display: flex;
|
|
17703
17741
|
justify-content: space-between;
|
|
17704
17742
|
font-weight: var(--fw-bold);
|
|
17705
17743
|
`;
|
|
17706
|
-
var LimitsBarLabel =
|
|
17744
|
+
var LimitsBarLabel = css71`
|
|
17707
17745
|
font-size: var(--fs-baase);
|
|
17708
17746
|
`;
|
|
17709
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
17747
|
+
var LimitsBarBgColor = (statusColor) => css71`
|
|
17710
17748
|
background: ${statusColor};
|
|
17711
17749
|
`;
|
|
17712
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
17750
|
+
var LimitsBarTextColor = (statusColor) => css71`
|
|
17713
17751
|
color: ${statusColor};
|
|
17714
17752
|
`;
|
|
17715
17753
|
|
|
17716
17754
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
17717
|
-
import { jsx as
|
|
17755
|
+
import { jsx as jsx92, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
17718
17756
|
var LimitsBar = ({ current, max, label }) => {
|
|
17719
17757
|
const maxPercentage = 100;
|
|
17720
17758
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -17727,14 +17765,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
17727
17765
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
17728
17766
|
return /* @__PURE__ */ jsxs58("div", { css: LimitsBarContainer, children: [
|
|
17729
17767
|
/* @__PURE__ */ jsxs58("div", { css: LimitsBarLabelContainer, children: [
|
|
17730
|
-
/* @__PURE__ */
|
|
17768
|
+
/* @__PURE__ */ jsx92("span", { css: LimitsBarLabel, children: label }),
|
|
17731
17769
|
/* @__PURE__ */ jsxs58("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
17732
17770
|
current,
|
|
17733
17771
|
" of ",
|
|
17734
17772
|
max
|
|
17735
17773
|
] })
|
|
17736
17774
|
] }),
|
|
17737
|
-
/* @__PURE__ */
|
|
17775
|
+
/* @__PURE__ */ jsx92(
|
|
17738
17776
|
"div",
|
|
17739
17777
|
{
|
|
17740
17778
|
role: "progressbar",
|
|
@@ -17743,7 +17781,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
17743
17781
|
"aria-valuemax": max,
|
|
17744
17782
|
"aria-valuetext": `${current} of ${max}`,
|
|
17745
17783
|
css: LimitsBarProgressBar,
|
|
17746
|
-
children: /* @__PURE__ */
|
|
17784
|
+
children: /* @__PURE__ */ jsx92(
|
|
17747
17785
|
"span",
|
|
17748
17786
|
{
|
|
17749
17787
|
role: "presentation",
|
|
@@ -17759,8 +17797,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
17759
17797
|
};
|
|
17760
17798
|
|
|
17761
17799
|
// src/components/LinkList/LinkList.styles.ts
|
|
17762
|
-
import { css as
|
|
17763
|
-
var LinkListContainer = (padding) =>
|
|
17800
|
+
import { css as css72 } from "@emotion/react";
|
|
17801
|
+
var LinkListContainer = (padding) => css72`
|
|
17764
17802
|
padding: ${padding};
|
|
17765
17803
|
|
|
17766
17804
|
${mq("sm")} {
|
|
@@ -17768,30 +17806,30 @@ var LinkListContainer = (padding) => css71`
|
|
|
17768
17806
|
grid-row: 1 / last-line;
|
|
17769
17807
|
}
|
|
17770
17808
|
`;
|
|
17771
|
-
var LinkListTitle =
|
|
17809
|
+
var LinkListTitle = css72`
|
|
17772
17810
|
font-weight: var(--fw-bold);
|
|
17773
17811
|
font-size: var(--fs-sm);
|
|
17774
17812
|
text-transform: uppercase;
|
|
17775
17813
|
`;
|
|
17776
17814
|
|
|
17777
17815
|
// src/components/LinkList/LinkList.tsx
|
|
17778
|
-
import { jsx as
|
|
17816
|
+
import { jsx as jsx93, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
17779
17817
|
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
17780
17818
|
return /* @__PURE__ */ jsxs59("div", { css: LinkListContainer(padding), ...props, children: [
|
|
17781
|
-
/* @__PURE__ */
|
|
17819
|
+
/* @__PURE__ */ jsx93(Heading2, { level: 3, css: LinkListTitle, children: title2 }),
|
|
17782
17820
|
children
|
|
17783
17821
|
] });
|
|
17784
17822
|
};
|
|
17785
17823
|
|
|
17786
17824
|
// src/components/List/ScrollableList.tsx
|
|
17787
|
-
import { css as
|
|
17825
|
+
import { css as css74 } from "@emotion/react";
|
|
17788
17826
|
|
|
17789
17827
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
17790
|
-
import { css as
|
|
17791
|
-
var ScrollableListContainer =
|
|
17828
|
+
import { css as css73 } from "@emotion/react";
|
|
17829
|
+
var ScrollableListContainer = css73`
|
|
17792
17830
|
position: relative;
|
|
17793
17831
|
`;
|
|
17794
|
-
var ScrollableListInner =
|
|
17832
|
+
var ScrollableListInner = css73`
|
|
17795
17833
|
background: var(--gray-50);
|
|
17796
17834
|
border-top: 1px solid var(--gray-200);
|
|
17797
17835
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -17814,19 +17852,19 @@ var ScrollableListInner = css72`
|
|
|
17814
17852
|
`;
|
|
17815
17853
|
|
|
17816
17854
|
// src/components/List/ScrollableList.tsx
|
|
17817
|
-
import { jsx as
|
|
17855
|
+
import { jsx as jsx94, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
17818
17856
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
17819
17857
|
return /* @__PURE__ */ jsxs60("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
17820
|
-
label ? /* @__PURE__ */
|
|
17858
|
+
label ? /* @__PURE__ */ jsx94(
|
|
17821
17859
|
"span",
|
|
17822
17860
|
{
|
|
17823
|
-
css:
|
|
17861
|
+
css: css74`
|
|
17824
17862
|
${labelText}
|
|
17825
17863
|
`,
|
|
17826
17864
|
children: label
|
|
17827
17865
|
}
|
|
17828
17866
|
) : null,
|
|
17829
|
-
/* @__PURE__ */
|
|
17867
|
+
/* @__PURE__ */ jsx94("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
17830
17868
|
] });
|
|
17831
17869
|
};
|
|
17832
17870
|
|
|
@@ -17834,8 +17872,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
17834
17872
|
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
17835
17873
|
|
|
17836
17874
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
17837
|
-
import { css as
|
|
17838
|
-
var ScrollableListItemContainer =
|
|
17875
|
+
import { css as css75 } from "@emotion/react";
|
|
17876
|
+
var ScrollableListItemContainer = css75`
|
|
17839
17877
|
align-items: center;
|
|
17840
17878
|
background: var(--white);
|
|
17841
17879
|
border-radius: var(--rounded-base);
|
|
@@ -17844,13 +17882,13 @@ var ScrollableListItemContainer = css74`
|
|
|
17844
17882
|
min-height: 52px;
|
|
17845
17883
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
17846
17884
|
`;
|
|
17847
|
-
var ScrollableListItemShadow =
|
|
17885
|
+
var ScrollableListItemShadow = css75`
|
|
17848
17886
|
box-shadow: var(--shadow-base);
|
|
17849
17887
|
`;
|
|
17850
|
-
var ScrollableListItemActive =
|
|
17888
|
+
var ScrollableListItemActive = css75`
|
|
17851
17889
|
border-color: var(--brand-secondary-3);
|
|
17852
17890
|
`;
|
|
17853
|
-
var ScrollableListItemBtn =
|
|
17891
|
+
var ScrollableListItemBtn = css75`
|
|
17854
17892
|
align-items: center;
|
|
17855
17893
|
border: none;
|
|
17856
17894
|
background: transparent;
|
|
@@ -17865,27 +17903,27 @@ var ScrollableListItemBtn = css74`
|
|
|
17865
17903
|
outline: none;
|
|
17866
17904
|
}
|
|
17867
17905
|
`;
|
|
17868
|
-
var ScrollableListInputLabel =
|
|
17906
|
+
var ScrollableListInputLabel = css75`
|
|
17869
17907
|
align-items: center;
|
|
17870
17908
|
cursor: pointer;
|
|
17871
17909
|
display: flex;
|
|
17872
17910
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
17873
17911
|
flex-grow: 1;
|
|
17874
17912
|
`;
|
|
17875
|
-
var ScrollableListInputText =
|
|
17913
|
+
var ScrollableListInputText = css75`
|
|
17876
17914
|
align-items: center;
|
|
17877
17915
|
display: flex;
|
|
17878
17916
|
gap: var(--spacing-sm);
|
|
17879
17917
|
flex-grow: 1;
|
|
17880
17918
|
flex-wrap: wrap;
|
|
17881
17919
|
`;
|
|
17882
|
-
var ScrollableListHiddenInput =
|
|
17920
|
+
var ScrollableListHiddenInput = css75`
|
|
17883
17921
|
position: absolute;
|
|
17884
17922
|
height: 0;
|
|
17885
17923
|
width: 0;
|
|
17886
17924
|
opacity: 0;
|
|
17887
17925
|
`;
|
|
17888
|
-
var ScrollableListIcon =
|
|
17926
|
+
var ScrollableListIcon = css75`
|
|
17889
17927
|
border-radius: var(--rounded-full);
|
|
17890
17928
|
background: var(--brand-secondary-3);
|
|
17891
17929
|
color: var(--white);
|
|
@@ -17893,12 +17931,12 @@ var ScrollableListIcon = css74`
|
|
|
17893
17931
|
min-width: 24px;
|
|
17894
17932
|
opacity: 0;
|
|
17895
17933
|
`;
|
|
17896
|
-
var ScrollableListIconVisible =
|
|
17934
|
+
var ScrollableListIconVisible = css75`
|
|
17897
17935
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
17898
17936
|
`;
|
|
17899
17937
|
|
|
17900
17938
|
// src/components/List/ScrollableListInputItem.tsx
|
|
17901
|
-
import { jsx as
|
|
17939
|
+
import { jsx as jsx95, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
17902
17940
|
var ScrollableListInputItem = ({
|
|
17903
17941
|
label,
|
|
17904
17942
|
icon,
|
|
@@ -17908,7 +17946,7 @@ var ScrollableListInputItem = ({
|
|
|
17908
17946
|
labelTestId,
|
|
17909
17947
|
...props
|
|
17910
17948
|
}) => {
|
|
17911
|
-
return /* @__PURE__ */
|
|
17949
|
+
return /* @__PURE__ */ jsx95(
|
|
17912
17950
|
"div",
|
|
17913
17951
|
{
|
|
17914
17952
|
css: [
|
|
@@ -17922,8 +17960,8 @@ var ScrollableListInputItem = ({
|
|
|
17922
17960
|
icon,
|
|
17923
17961
|
label
|
|
17924
17962
|
] }),
|
|
17925
|
-
/* @__PURE__ */
|
|
17926
|
-
/* @__PURE__ */
|
|
17963
|
+
/* @__PURE__ */ jsx95("div", { css: ScrollableListHiddenInput, children }),
|
|
17964
|
+
/* @__PURE__ */ jsx95(
|
|
17927
17965
|
Icon,
|
|
17928
17966
|
{
|
|
17929
17967
|
icon: CgCheck3,
|
|
@@ -17941,7 +17979,7 @@ var ScrollableListInputItem = ({
|
|
|
17941
17979
|
|
|
17942
17980
|
// src/components/List/ScrollableListItem.tsx
|
|
17943
17981
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
17944
|
-
import { jsx as
|
|
17982
|
+
import { jsx as jsx96, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
17945
17983
|
var ScrollableListItem = ({
|
|
17946
17984
|
buttonText,
|
|
17947
17985
|
icon,
|
|
@@ -17949,7 +17987,7 @@ var ScrollableListItem = ({
|
|
|
17949
17987
|
disableShadow,
|
|
17950
17988
|
...props
|
|
17951
17989
|
}) => {
|
|
17952
|
-
return /* @__PURE__ */
|
|
17990
|
+
return /* @__PURE__ */ jsx96(
|
|
17953
17991
|
"div",
|
|
17954
17992
|
{
|
|
17955
17993
|
css: [
|
|
@@ -17960,9 +17998,9 @@ var ScrollableListItem = ({
|
|
|
17960
17998
|
children: /* @__PURE__ */ jsxs62("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
17961
17999
|
/* @__PURE__ */ jsxs62(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
17962
18000
|
icon,
|
|
17963
|
-
/* @__PURE__ */
|
|
18001
|
+
/* @__PURE__ */ jsx96("span", { children: buttonText })
|
|
17964
18002
|
] }),
|
|
17965
|
-
/* @__PURE__ */
|
|
18003
|
+
/* @__PURE__ */ jsx96(
|
|
17966
18004
|
Icon,
|
|
17967
18005
|
{
|
|
17968
18006
|
icon: CgCheck4,
|
|
@@ -17977,7 +18015,7 @@ var ScrollableListItem = ({
|
|
|
17977
18015
|
};
|
|
17978
18016
|
|
|
17979
18017
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
17980
|
-
import { css as
|
|
18018
|
+
import { css as css76, keyframes as keyframes3 } from "@emotion/react";
|
|
17981
18019
|
function bounceFade(size) {
|
|
17982
18020
|
const bounceHeight = size === "lg" ? 10 : 5;
|
|
17983
18021
|
return keyframes3`
|
|
@@ -17998,13 +18036,13 @@ function bounceFade(size) {
|
|
|
17998
18036
|
}
|
|
17999
18037
|
`;
|
|
18000
18038
|
}
|
|
18001
|
-
var loader =
|
|
18039
|
+
var loader = css76`
|
|
18002
18040
|
display: inline-flex;
|
|
18003
18041
|
justify-content: center;
|
|
18004
18042
|
`;
|
|
18005
18043
|
function loadingDot(size) {
|
|
18006
18044
|
const dotSize = size === "lg" ? 8 : 4;
|
|
18007
|
-
return
|
|
18045
|
+
return css76`
|
|
18008
18046
|
background-color: var(--gray-700);
|
|
18009
18047
|
display: block;
|
|
18010
18048
|
border-radius: var(--rounded-full);
|
|
@@ -18029,16 +18067,16 @@ function loadingDot(size) {
|
|
|
18029
18067
|
}
|
|
18030
18068
|
|
|
18031
18069
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
18032
|
-
import { jsx as
|
|
18070
|
+
import { jsx as jsx97, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
18033
18071
|
var LoadingIndicator = ({
|
|
18034
18072
|
size = "lg",
|
|
18035
18073
|
...props
|
|
18036
18074
|
}) => {
|
|
18037
18075
|
const dotStyle = loadingDot(size);
|
|
18038
18076
|
return /* @__PURE__ */ jsxs63("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
18039
|
-
/* @__PURE__ */
|
|
18040
|
-
/* @__PURE__ */
|
|
18041
|
-
/* @__PURE__ */
|
|
18077
|
+
/* @__PURE__ */ jsx97("span", { css: dotStyle }),
|
|
18078
|
+
/* @__PURE__ */ jsx97("span", { css: dotStyle }),
|
|
18079
|
+
/* @__PURE__ */ jsx97("span", { css: dotStyle })
|
|
18042
18080
|
] });
|
|
18043
18081
|
};
|
|
18044
18082
|
|
|
@@ -18046,8 +18084,8 @@ var LoadingIndicator = ({
|
|
|
18046
18084
|
import { useCallback as useCallback8, useEffect as useEffect13, useRef as useRef8 } from "react";
|
|
18047
18085
|
|
|
18048
18086
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
18049
|
-
import { css as
|
|
18050
|
-
var loadingOverlayContainer =
|
|
18087
|
+
import { css as css77 } from "@emotion/react";
|
|
18088
|
+
var loadingOverlayContainer = css77`
|
|
18051
18089
|
position: absolute;
|
|
18052
18090
|
inset: 0;
|
|
18053
18091
|
overflow: hidden;
|
|
@@ -18055,30 +18093,30 @@ var loadingOverlayContainer = css76`
|
|
|
18055
18093
|
padding: var(--spacing-xl);
|
|
18056
18094
|
overflow-y: auto;
|
|
18057
18095
|
`;
|
|
18058
|
-
var loadingOverlayVisible =
|
|
18096
|
+
var loadingOverlayVisible = css77`
|
|
18059
18097
|
display: flex;
|
|
18060
18098
|
`;
|
|
18061
|
-
var loadingOverlayHidden =
|
|
18099
|
+
var loadingOverlayHidden = css77`
|
|
18062
18100
|
display: none;
|
|
18063
18101
|
`;
|
|
18064
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
18102
|
+
var loadingOverlayBackground = (bgColor) => css77`
|
|
18065
18103
|
background: ${bgColor};
|
|
18066
18104
|
opacity: 0.92;
|
|
18067
18105
|
position: absolute;
|
|
18068
18106
|
inset: 0 0;
|
|
18069
18107
|
`;
|
|
18070
|
-
var loadingOverlayBody =
|
|
18108
|
+
var loadingOverlayBody = css77`
|
|
18071
18109
|
align-items: center;
|
|
18072
18110
|
display: flex;
|
|
18073
18111
|
flex-direction: column;
|
|
18074
18112
|
`;
|
|
18075
|
-
var loadingOverlayMessage =
|
|
18113
|
+
var loadingOverlayMessage = css77`
|
|
18076
18114
|
color: var(--gray-600);
|
|
18077
18115
|
margin: var(--spacing-base) 0 0;
|
|
18078
18116
|
`;
|
|
18079
18117
|
|
|
18080
18118
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
18081
|
-
import { jsx as
|
|
18119
|
+
import { jsx as jsx98, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
18082
18120
|
var LoadingOverlay = ({
|
|
18083
18121
|
isActive,
|
|
18084
18122
|
statusMessage,
|
|
@@ -18112,9 +18150,9 @@ var LoadingOverlay = ({
|
|
|
18112
18150
|
"aria-hidden": !isActive,
|
|
18113
18151
|
"aria-busy": isActive && !isPaused,
|
|
18114
18152
|
children: [
|
|
18115
|
-
/* @__PURE__ */
|
|
18116
|
-
/* @__PURE__ */
|
|
18117
|
-
/* @__PURE__ */
|
|
18153
|
+
/* @__PURE__ */ jsx98("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
18154
|
+
/* @__PURE__ */ jsx98("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs64("div", { css: loadingOverlayBody, children: [
|
|
18155
|
+
/* @__PURE__ */ jsx98(
|
|
18118
18156
|
AnimationFile,
|
|
18119
18157
|
{
|
|
18120
18158
|
lottieRef,
|
|
@@ -18129,15 +18167,15 @@ var LoadingOverlay = ({
|
|
|
18129
18167
|
}
|
|
18130
18168
|
}
|
|
18131
18169
|
),
|
|
18132
|
-
statusMessage ? /* @__PURE__ */
|
|
18133
|
-
/* @__PURE__ */
|
|
18170
|
+
statusMessage ? /* @__PURE__ */ jsx98("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
18171
|
+
/* @__PURE__ */ jsx98("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
18134
18172
|
] }) })
|
|
18135
18173
|
]
|
|
18136
18174
|
}
|
|
18137
18175
|
);
|
|
18138
18176
|
};
|
|
18139
18177
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
18140
|
-
return /* @__PURE__ */
|
|
18178
|
+
return /* @__PURE__ */ jsx98(
|
|
18141
18179
|
"svg",
|
|
18142
18180
|
{
|
|
18143
18181
|
viewBox: "0 0 38 38",
|
|
@@ -18147,9 +18185,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
18147
18185
|
stroke: "currentColor",
|
|
18148
18186
|
...props,
|
|
18149
18187
|
"data-testid": "loading-icon",
|
|
18150
|
-
children: /* @__PURE__ */
|
|
18151
|
-
/* @__PURE__ */
|
|
18152
|
-
/* @__PURE__ */
|
|
18188
|
+
children: /* @__PURE__ */ jsx98("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs64("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
18189
|
+
/* @__PURE__ */ jsx98("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
18190
|
+
/* @__PURE__ */ jsx98("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx98(
|
|
18153
18191
|
"animateTransform",
|
|
18154
18192
|
{
|
|
18155
18193
|
attributeName: "transform",
|
|
@@ -18177,7 +18215,7 @@ import {
|
|
|
18177
18215
|
usePopoverStore
|
|
18178
18216
|
} from "@ariakit/react";
|
|
18179
18217
|
import { useEffect as useEffect14 } from "react";
|
|
18180
|
-
import { Fragment as Fragment13, jsx as
|
|
18218
|
+
import { Fragment as Fragment13, jsx as jsx99, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
18181
18219
|
var Popover3 = ({
|
|
18182
18220
|
iconColor = "action",
|
|
18183
18221
|
icon = "info",
|
|
@@ -18190,6 +18228,7 @@ var Popover3 = ({
|
|
|
18190
18228
|
children,
|
|
18191
18229
|
baseId,
|
|
18192
18230
|
onInit,
|
|
18231
|
+
maxWidth,
|
|
18193
18232
|
...otherProps
|
|
18194
18233
|
}) => {
|
|
18195
18234
|
const popover2 = usePopoverStore({ placement });
|
|
@@ -18197,19 +18236,19 @@ var Popover3 = ({
|
|
|
18197
18236
|
onInit == null ? void 0 : onInit({ store: popover2 });
|
|
18198
18237
|
}, [popover2]);
|
|
18199
18238
|
return /* @__PURE__ */ jsxs65(PopoverProvider, { store: popover2, children: [
|
|
18200
|
-
/* @__PURE__ */
|
|
18239
|
+
/* @__PURE__ */ jsx99(
|
|
18201
18240
|
PopoverDisclosure2,
|
|
18202
18241
|
{
|
|
18203
18242
|
css: [PopoverBtn, trigger2 ? void 0 : PopoverDefaulterTriggerBtn],
|
|
18204
18243
|
title: buttonText,
|
|
18205
18244
|
"data-testid": testId,
|
|
18206
18245
|
children: trigger2 ? trigger2 : /* @__PURE__ */ jsxs65(Fragment13, { children: [
|
|
18207
|
-
/* @__PURE__ */
|
|
18208
|
-
/* @__PURE__ */
|
|
18246
|
+
/* @__PURE__ */ jsx99(Icon, { icon, iconColor, size: iconSize }),
|
|
18247
|
+
/* @__PURE__ */ jsx99("span", { hidden: true, children: buttonText })
|
|
18209
18248
|
] })
|
|
18210
18249
|
}
|
|
18211
18250
|
),
|
|
18212
|
-
/* @__PURE__ */
|
|
18251
|
+
/* @__PURE__ */ jsx99(AriakitPopover, { unmountOnHide: true, css: Popover(maxWidth), ...otherProps, "aria-label": ariaLabel, children })
|
|
18213
18252
|
] });
|
|
18214
18253
|
};
|
|
18215
18254
|
var usePopoverComponentContext = () => {
|
|
@@ -18218,8 +18257,8 @@ var usePopoverComponentContext = () => {
|
|
|
18218
18257
|
};
|
|
18219
18258
|
|
|
18220
18259
|
// src/components/MediaCard/MediaCard.styles.ts
|
|
18221
|
-
import { css as
|
|
18222
|
-
var cardBase =
|
|
18260
|
+
import { css as css78 } from "@emotion/react";
|
|
18261
|
+
var cardBase = css78`
|
|
18223
18262
|
--mediacard-title-color: var(--gray-500);
|
|
18224
18263
|
display: flex;
|
|
18225
18264
|
flex-direction: column;
|
|
@@ -18243,7 +18282,7 @@ var cardBase = css77`
|
|
|
18243
18282
|
cursor: default;
|
|
18244
18283
|
}
|
|
18245
18284
|
`;
|
|
18246
|
-
var coverWrapper =
|
|
18285
|
+
var coverWrapper = css78`
|
|
18247
18286
|
position: relative;
|
|
18248
18287
|
display: flex;
|
|
18249
18288
|
align-items: center;
|
|
@@ -18256,10 +18295,10 @@ var coverWrapper = css77`
|
|
|
18256
18295
|
outline: none;
|
|
18257
18296
|
border: 0;
|
|
18258
18297
|
`;
|
|
18259
|
-
var contentWrapper =
|
|
18298
|
+
var contentWrapper = css78`
|
|
18260
18299
|
padding: var(--spacing-sm);
|
|
18261
18300
|
`;
|
|
18262
|
-
var title =
|
|
18301
|
+
var title = css78`
|
|
18263
18302
|
font-size: var(--fs-sm);
|
|
18264
18303
|
color: var(--mediacard-title-color);
|
|
18265
18304
|
white-space: nowrap;
|
|
@@ -18274,7 +18313,7 @@ var title = css77`
|
|
|
18274
18313
|
outline: 2px solid var(--primary-action-default);
|
|
18275
18314
|
}
|
|
18276
18315
|
`;
|
|
18277
|
-
var subtitle =
|
|
18316
|
+
var subtitle = css78`
|
|
18278
18317
|
font-size: var(--fs-xs);
|
|
18279
18318
|
color: var(--gray-500);
|
|
18280
18319
|
white-space: nowrap;
|
|
@@ -18284,13 +18323,13 @@ var subtitle = css77`
|
|
|
18284
18323
|
border: 0;
|
|
18285
18324
|
background-color: transparent;
|
|
18286
18325
|
`;
|
|
18287
|
-
var sideSection =
|
|
18326
|
+
var sideSection = css78`
|
|
18288
18327
|
cursor: default;
|
|
18289
18328
|
`;
|
|
18290
|
-
var menuSection =
|
|
18329
|
+
var menuSection = css78`
|
|
18291
18330
|
cursor: default;
|
|
18292
18331
|
`;
|
|
18293
|
-
var menuButton =
|
|
18332
|
+
var menuButton = css78`
|
|
18294
18333
|
padding: var(--spacing-2xs);
|
|
18295
18334
|
border-radius: var(--rounded-sm);
|
|
18296
18335
|
border-width: 0;
|
|
@@ -18302,7 +18341,7 @@ var menuButton = css77`
|
|
|
18302
18341
|
`;
|
|
18303
18342
|
|
|
18304
18343
|
// src/components/MediaCard/MediaCard.tsx
|
|
18305
|
-
import { jsx as
|
|
18344
|
+
import { jsx as jsx100, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
18306
18345
|
var MediaCard = ({
|
|
18307
18346
|
title: title2,
|
|
18308
18347
|
subtitle: subtitle2,
|
|
@@ -18319,12 +18358,12 @@ var MediaCard = ({
|
|
|
18319
18358
|
}, []);
|
|
18320
18359
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
18321
18360
|
return /* @__PURE__ */ jsxs66(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
|
|
18322
|
-
/* @__PURE__ */
|
|
18323
|
-
/* @__PURE__ */
|
|
18361
|
+
/* @__PURE__ */ jsx100("button", { tabIndex: -1, css: coverWrapper, type: buttonType, children: cover }),
|
|
18362
|
+
/* @__PURE__ */ jsx100("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs66(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
18324
18363
|
/* @__PURE__ */ jsxs66(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
18325
18364
|
/* @__PURE__ */ jsxs66(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
18326
|
-
/* @__PURE__ */
|
|
18327
|
-
!infoPopover ? null : /* @__PURE__ */
|
|
18365
|
+
/* @__PURE__ */ jsx100("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
18366
|
+
!infoPopover ? null : /* @__PURE__ */ jsx100("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx100(
|
|
18328
18367
|
Popover3,
|
|
18329
18368
|
{
|
|
18330
18369
|
baseId: `info-of-${title2}`,
|
|
@@ -18333,31 +18372,31 @@ var MediaCard = ({
|
|
|
18333
18372
|
iconColor: "default",
|
|
18334
18373
|
tabIndex: 0,
|
|
18335
18374
|
css: { display: "block", maxWidth: "20rem" },
|
|
18336
|
-
children: /* @__PURE__ */
|
|
18375
|
+
children: /* @__PURE__ */ jsx100("div", { children: infoPopover })
|
|
18337
18376
|
}
|
|
18338
18377
|
) })
|
|
18339
18378
|
] }),
|
|
18340
|
-
subtitle2 ? /* @__PURE__ */
|
|
18379
|
+
subtitle2 ? /* @__PURE__ */ jsx100("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
18341
18380
|
] }),
|
|
18342
|
-
sideSection2 ? /* @__PURE__ */
|
|
18343
|
-
hasMenuItems ? /* @__PURE__ */
|
|
18381
|
+
sideSection2 ? /* @__PURE__ */ jsx100("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
18382
|
+
hasMenuItems ? /* @__PURE__ */ jsx100(
|
|
18344
18383
|
VerticalRhythm,
|
|
18345
18384
|
{
|
|
18346
18385
|
css: menuSection,
|
|
18347
18386
|
align: "center",
|
|
18348
18387
|
justify: "center",
|
|
18349
18388
|
onClick: onStopPropogation,
|
|
18350
|
-
children: /* @__PURE__ */
|
|
18389
|
+
children: /* @__PURE__ */ jsx100(
|
|
18351
18390
|
Menu,
|
|
18352
18391
|
{
|
|
18353
|
-
menuTrigger: /* @__PURE__ */
|
|
18392
|
+
menuTrigger: /* @__PURE__ */ jsx100(
|
|
18354
18393
|
"button",
|
|
18355
18394
|
{
|
|
18356
18395
|
type: "button",
|
|
18357
18396
|
"aria-label": "More options",
|
|
18358
18397
|
css: menuButton,
|
|
18359
18398
|
"data-testid": "button-more",
|
|
18360
|
-
children: /* @__PURE__ */
|
|
18399
|
+
children: /* @__PURE__ */ jsx100(Icon, { icon: "more-alt", iconColor: "gray", size: 16 })
|
|
18361
18400
|
}
|
|
18362
18401
|
),
|
|
18363
18402
|
menuLabel: `Menu of ${title2}`,
|
|
@@ -18377,8 +18416,8 @@ import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
|
18377
18416
|
import React20, { useEffect as useEffect15, useRef as useRef9 } from "react";
|
|
18378
18417
|
|
|
18379
18418
|
// src/components/Modal/Modal.styles.ts
|
|
18380
|
-
import { css as
|
|
18381
|
-
var modalStyles =
|
|
18419
|
+
import { css as css79 } from "@emotion/react";
|
|
18420
|
+
var modalStyles = css79`
|
|
18382
18421
|
border: none;
|
|
18383
18422
|
position: relative;
|
|
18384
18423
|
max-width: calc(100% - var(--spacing-base) * 2);
|
|
@@ -18392,16 +18431,16 @@ var modalStyles = css78`
|
|
|
18392
18431
|
opacity: 0.4;
|
|
18393
18432
|
}
|
|
18394
18433
|
`;
|
|
18395
|
-
var modalSizeSmall =
|
|
18434
|
+
var modalSizeSmall = css79`
|
|
18396
18435
|
width: clamp(280px, 100vw, 400px);
|
|
18397
18436
|
`;
|
|
18398
|
-
var modalSizeMedium =
|
|
18437
|
+
var modalSizeMedium = css79`
|
|
18399
18438
|
width: clamp(280px, 100vw, 600px);
|
|
18400
18439
|
`;
|
|
18401
|
-
var modalSizeLarge =
|
|
18440
|
+
var modalSizeLarge = css79`
|
|
18402
18441
|
width: clamp(280px, 100vw, 800px);
|
|
18403
18442
|
`;
|
|
18404
|
-
var modalInnerStyles =
|
|
18443
|
+
var modalInnerStyles = css79`
|
|
18405
18444
|
position: relative;
|
|
18406
18445
|
width: 100%;
|
|
18407
18446
|
display: flex;
|
|
@@ -18414,7 +18453,7 @@ var modalInnerStyles = css78`
|
|
|
18414
18453
|
box-shadow: var(--elevation-500);
|
|
18415
18454
|
border-radius: var(--rounded-base);
|
|
18416
18455
|
`;
|
|
18417
|
-
var modalHeaderStyles =
|
|
18456
|
+
var modalHeaderStyles = css79`
|
|
18418
18457
|
display: flex;
|
|
18419
18458
|
align-items: flex-start;
|
|
18420
18459
|
gap: var(--spacing-base);
|
|
@@ -18422,10 +18461,10 @@ var modalHeaderStyles = css78`
|
|
|
18422
18461
|
font-family: var(--ff-base);
|
|
18423
18462
|
line-height: 1.2;
|
|
18424
18463
|
`;
|
|
18425
|
-
var modalHeaderHeaderStyles =
|
|
18464
|
+
var modalHeaderHeaderStyles = css79`
|
|
18426
18465
|
max-width: calc(100% - 3rem);
|
|
18427
18466
|
`;
|
|
18428
|
-
var modalCloseButtonStyles =
|
|
18467
|
+
var modalCloseButtonStyles = css79`
|
|
18429
18468
|
background: transparent;
|
|
18430
18469
|
border: none;
|
|
18431
18470
|
color: var(--gray-300);
|
|
@@ -18440,7 +18479,7 @@ var modalCloseButtonStyles = css78`
|
|
|
18440
18479
|
color: var(--gray-400);
|
|
18441
18480
|
}
|
|
18442
18481
|
`;
|
|
18443
|
-
var modalContentStyles =
|
|
18482
|
+
var modalContentStyles = css79`
|
|
18444
18483
|
position: relative;
|
|
18445
18484
|
flex: 1;
|
|
18446
18485
|
overflow: auto;
|
|
@@ -18449,10 +18488,10 @@ var modalContentStyles = css78`
|
|
|
18449
18488
|
border-radius: var(--rounded-sm);
|
|
18450
18489
|
${scrollbarStyles}
|
|
18451
18490
|
`;
|
|
18452
|
-
var modalDialogWrapper =
|
|
18491
|
+
var modalDialogWrapper = css79`
|
|
18453
18492
|
padding: 0 var(--spacing-lg) var(--spacing-md);
|
|
18454
18493
|
`;
|
|
18455
|
-
var modalDialogInnerStyles =
|
|
18494
|
+
var modalDialogInnerStyles = css79`
|
|
18456
18495
|
// we need to override the gap of the modalInnerStyles when using a modal dialog
|
|
18457
18496
|
> div {
|
|
18458
18497
|
gap: 0;
|
|
@@ -18460,7 +18499,7 @@ var modalDialogInnerStyles = css78`
|
|
|
18460
18499
|
`;
|
|
18461
18500
|
|
|
18462
18501
|
// src/components/Modal/Modal.tsx
|
|
18463
|
-
import { jsx as
|
|
18502
|
+
import { jsx as jsx101, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
18464
18503
|
var defaultModalWidth = "75rem";
|
|
18465
18504
|
var defaultModalHeight = "51rem";
|
|
18466
18505
|
var Modal = React20.forwardRef(
|
|
@@ -18502,7 +18541,7 @@ var Modal = React20.forwardRef(
|
|
|
18502
18541
|
(_a2 = dialogRef.current) == null ? void 0 : _a2.close();
|
|
18503
18542
|
};
|
|
18504
18543
|
}, []);
|
|
18505
|
-
return /* @__PURE__ */
|
|
18544
|
+
return /* @__PURE__ */ jsx101(
|
|
18506
18545
|
"dialog",
|
|
18507
18546
|
{
|
|
18508
18547
|
ref: (element) => {
|
|
@@ -18524,15 +18563,15 @@ var Modal = React20.forwardRef(
|
|
|
18524
18563
|
e.preventDefault();
|
|
18525
18564
|
},
|
|
18526
18565
|
...modalProps,
|
|
18527
|
-
children: /* @__PURE__ */
|
|
18566
|
+
children: /* @__PURE__ */ jsx101(PortalContext.Provider, { value: dialogRef.current, children: /* @__PURE__ */ jsxs67(
|
|
18528
18567
|
"div",
|
|
18529
18568
|
{
|
|
18530
18569
|
css: [modalInnerStyles, { height: height === "auto" ? "auto" : "100%" }],
|
|
18531
18570
|
onClick: (e) => e.stopPropagation(),
|
|
18532
18571
|
children: [
|
|
18533
18572
|
/* @__PURE__ */ jsxs67("div", { css: modalHeaderStyles, children: [
|
|
18534
|
-
!header2 ? null : /* @__PURE__ */
|
|
18535
|
-
/* @__PURE__ */
|
|
18573
|
+
!header2 ? null : /* @__PURE__ */ jsx101("div", { css: modalHeaderHeaderStyles, children: header2 }),
|
|
18574
|
+
/* @__PURE__ */ jsx101(
|
|
18536
18575
|
Button,
|
|
18537
18576
|
{
|
|
18538
18577
|
type: "button",
|
|
@@ -18541,11 +18580,11 @@ var Modal = React20.forwardRef(
|
|
|
18541
18580
|
title: "Close dialog",
|
|
18542
18581
|
buttonType: "ghost",
|
|
18543
18582
|
"data-testid": "close-dialog",
|
|
18544
|
-
children: /* @__PURE__ */
|
|
18583
|
+
children: /* @__PURE__ */ jsx101(Icon, { icon: CgClose4, iconColor: "currentColor", size: 24 })
|
|
18545
18584
|
}
|
|
18546
18585
|
)
|
|
18547
18586
|
] }),
|
|
18548
|
-
/* @__PURE__ */
|
|
18587
|
+
/* @__PURE__ */ jsx101(
|
|
18549
18588
|
"div",
|
|
18550
18589
|
{
|
|
18551
18590
|
css: [
|
|
@@ -18556,7 +18595,7 @@ var Modal = React20.forwardRef(
|
|
|
18556
18595
|
children
|
|
18557
18596
|
}
|
|
18558
18597
|
),
|
|
18559
|
-
buttonGroup ? /* @__PURE__ */
|
|
18598
|
+
buttonGroup ? /* @__PURE__ */ jsx101(HorizontalRhythm, { children: buttonGroup }) : null
|
|
18560
18599
|
]
|
|
18561
18600
|
}
|
|
18562
18601
|
) })
|
|
@@ -18567,11 +18606,11 @@ var Modal = React20.forwardRef(
|
|
|
18567
18606
|
Modal.displayName = "Modal";
|
|
18568
18607
|
|
|
18569
18608
|
// src/components/Modal/ModalDialog.tsx
|
|
18570
|
-
import { forwardRef as
|
|
18571
|
-
import { jsx as
|
|
18572
|
-
var ModalDialog =
|
|
18609
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
18610
|
+
import { jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
18611
|
+
var ModalDialog = forwardRef16(
|
|
18573
18612
|
({ header: header2, buttonGroup, modalSize = "lg", children, height = "auto", onRequestClose, ...props }, ref) => {
|
|
18574
|
-
return /* @__PURE__ */
|
|
18613
|
+
return /* @__PURE__ */ jsx102(
|
|
18575
18614
|
Modal,
|
|
18576
18615
|
{
|
|
18577
18616
|
...props,
|
|
@@ -18584,9 +18623,9 @@ var ModalDialog = forwardRef15(
|
|
|
18584
18623
|
css: modalDialogInnerStyles,
|
|
18585
18624
|
width: "",
|
|
18586
18625
|
children: /* @__PURE__ */ jsxs68(VerticalRhythm, { css: modalDialogWrapper, children: [
|
|
18587
|
-
/* @__PURE__ */
|
|
18588
|
-
/* @__PURE__ */
|
|
18589
|
-
/* @__PURE__ */
|
|
18626
|
+
/* @__PURE__ */ jsx102("div", { css: modalHeaderStyles, children: header2 }),
|
|
18627
|
+
/* @__PURE__ */ jsx102("div", { children }),
|
|
18628
|
+
/* @__PURE__ */ jsx102(HorizontalRhythm, { children: buttonGroup })
|
|
18590
18629
|
] })
|
|
18591
18630
|
}
|
|
18592
18631
|
);
|
|
@@ -18595,22 +18634,22 @@ var ModalDialog = forwardRef15(
|
|
|
18595
18634
|
ModalDialog.displayName = "ModalDialog";
|
|
18596
18635
|
|
|
18597
18636
|
// src/components/Objects/styles/ObjectGridContainer.styles.ts
|
|
18598
|
-
import { css as
|
|
18599
|
-
var ObjectGridContainer = (gridCount) =>
|
|
18637
|
+
import { css as css80 } from "@emotion/react";
|
|
18638
|
+
var ObjectGridContainer = (gridCount) => css80`
|
|
18600
18639
|
display: grid;
|
|
18601
18640
|
grid-template-columns: repeat(${gridCount}, minmax(250px, 1fr));
|
|
18602
18641
|
gap: var(--spacing-base);
|
|
18603
18642
|
`;
|
|
18604
18643
|
|
|
18605
18644
|
// src/components/Objects/ObjectGridContainer.tsx
|
|
18606
|
-
import { jsx as
|
|
18645
|
+
import { jsx as jsx103 } from "@emotion/react/jsx-runtime";
|
|
18607
18646
|
var ObjectGridContainer2 = ({ gridCount = 3, children }) => {
|
|
18608
|
-
return /* @__PURE__ */
|
|
18647
|
+
return /* @__PURE__ */ jsx103("div", { "data-testid": "object-grid-container", css: ObjectGridContainer(gridCount), children });
|
|
18609
18648
|
};
|
|
18610
18649
|
|
|
18611
18650
|
// src/components/Objects/styles/ObjectGridItem.styles.ts
|
|
18612
|
-
import { css as
|
|
18613
|
-
var ObjectGridItem =
|
|
18651
|
+
import { css as css81 } from "@emotion/react";
|
|
18652
|
+
var ObjectGridItem = css81`
|
|
18614
18653
|
border: 1px solid var(--gray-300);
|
|
18615
18654
|
border-radius: var(--rounded-base);
|
|
18616
18655
|
background: var(--white);
|
|
@@ -18628,36 +18667,23 @@ var ObjectGridItem = css80`
|
|
|
18628
18667
|
}
|
|
18629
18668
|
}
|
|
18630
18669
|
`;
|
|
18631
|
-
var ObjectGridItemMediaWrapper =
|
|
18670
|
+
var ObjectGridItemMediaWrapper = css81`
|
|
18632
18671
|
display: flex;
|
|
18633
18672
|
flex: 1 1 0;
|
|
18634
18673
|
position: relative;
|
|
18635
18674
|
`;
|
|
18636
|
-
var ObjectGridItemContentWrapper =
|
|
18675
|
+
var ObjectGridItemContentWrapper = css81`
|
|
18637
18676
|
padding: 0 var(--spacing-sm) var(--spacing-sm);
|
|
18638
18677
|
min-height: 52px;
|
|
18639
18678
|
`;
|
|
18640
|
-
var ObjectGridItemImage =
|
|
18679
|
+
var ObjectGridItemImage = css81`
|
|
18641
18680
|
object-fit: cover;
|
|
18642
18681
|
width: 100%;
|
|
18643
18682
|
height: auto;
|
|
18644
18683
|
`;
|
|
18645
|
-
var MenuBtn = css80`
|
|
18646
|
-
border: none;
|
|
18647
|
-
background: transparent;
|
|
18648
|
-
padding: var(--spacing-xs);
|
|
18649
|
-
color: var(--gray-300);
|
|
18650
|
-
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
18651
|
-
|
|
18652
|
-
&:focus,
|
|
18653
|
-
&:hover {
|
|
18654
|
-
outline: none;
|
|
18655
|
-
color: var(--gray-500);
|
|
18656
|
-
}
|
|
18657
|
-
`;
|
|
18658
18684
|
|
|
18659
18685
|
// src/components/Objects/ObjectGridItem.tsx
|
|
18660
|
-
import { jsx as
|
|
18686
|
+
import { jsx as jsx104, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
18661
18687
|
var ObjectGridItem2 = ({
|
|
18662
18688
|
header: header2,
|
|
18663
18689
|
cover,
|
|
@@ -18667,30 +18693,18 @@ var ObjectGridItem2 = ({
|
|
|
18667
18693
|
children
|
|
18668
18694
|
}) => {
|
|
18669
18695
|
return /* @__PURE__ */ jsxs69("div", { css: ObjectGridItem, "aria-selected": isSelected, children: [
|
|
18670
|
-
/* @__PURE__ */
|
|
18696
|
+
/* @__PURE__ */ jsx104("div", { css: ObjectGridItemMediaWrapper, children: cover }),
|
|
18671
18697
|
/* @__PURE__ */ jsxs69(HorizontalRhythm, { css: ObjectGridItemContentWrapper, justify: "space-between", gap: "sm", children: [
|
|
18672
18698
|
/* @__PURE__ */ jsxs69(VerticalRhythm, { gap: "0", children: [
|
|
18673
|
-
/* @__PURE__ */
|
|
18699
|
+
/* @__PURE__ */ jsx104(HorizontalRhythm, { gap: "xs", align: "center", children: header2 }),
|
|
18674
18700
|
children
|
|
18675
18701
|
] }),
|
|
18676
18702
|
/* @__PURE__ */ jsxs69(HorizontalRhythm, { gap: "xs", align: "flex-start", children: [
|
|
18677
18703
|
rightSlot,
|
|
18678
|
-
menuItems ? /* @__PURE__ */
|
|
18704
|
+
menuItems ? /* @__PURE__ */ jsx104(
|
|
18679
18705
|
Menu,
|
|
18680
18706
|
{
|
|
18681
|
-
menuTrigger: (
|
|
18682
|
-
// TODO: once insights lands we should be able to replace this with MenuTrigger component
|
|
18683
|
-
/* @__PURE__ */ jsx103(
|
|
18684
|
-
"button",
|
|
18685
|
-
{
|
|
18686
|
-
type: "button",
|
|
18687
|
-
"data-testid": "object-grid-item-menu-btn",
|
|
18688
|
-
title: "menu options",
|
|
18689
|
-
css: MenuBtn,
|
|
18690
|
-
children: /* @__PURE__ */ jsx103(Icon, { icon: "more-alt", size: "1rem", iconColor: "currentColor" })
|
|
18691
|
-
}
|
|
18692
|
-
)
|
|
18693
|
-
),
|
|
18707
|
+
menuTrigger: /* @__PURE__ */ jsx104(MenuThreeDots, { "data-testid": "object-grid-item-menu-btn" }),
|
|
18694
18708
|
placement: "bottom-end",
|
|
18695
18709
|
children: menuItems
|
|
18696
18710
|
}
|
|
@@ -18701,15 +18715,15 @@ var ObjectGridItem2 = ({
|
|
|
18701
18715
|
};
|
|
18702
18716
|
|
|
18703
18717
|
// src/components/Objects/styles/ObjectGridItemCardCover.styles.ts
|
|
18704
|
-
import { css as
|
|
18705
|
-
var CoverImage =
|
|
18718
|
+
import { css as css82 } from "@emotion/react";
|
|
18719
|
+
var CoverImage = css82`
|
|
18706
18720
|
aspect-ratio: 16/9;
|
|
18707
18721
|
max-width: 100%;
|
|
18708
18722
|
max-height: 100%;
|
|
18709
18723
|
height: auto;
|
|
18710
18724
|
padding: var(--spacing-sm);
|
|
18711
18725
|
`;
|
|
18712
|
-
var CoverIconWrapper =
|
|
18726
|
+
var CoverIconWrapper = css82`
|
|
18713
18727
|
position: relative;
|
|
18714
18728
|
display: flex;
|
|
18715
18729
|
align-items: center;
|
|
@@ -18717,7 +18731,7 @@ var CoverIconWrapper = css81`
|
|
|
18717
18731
|
flex: 1;
|
|
18718
18732
|
overflow: hidden;
|
|
18719
18733
|
`;
|
|
18720
|
-
var CoverIconGhost =
|
|
18734
|
+
var CoverIconGhost = css82`
|
|
18721
18735
|
position: absolute;
|
|
18722
18736
|
width: 60%;
|
|
18723
18737
|
height: auto;
|
|
@@ -18725,7 +18739,7 @@ var CoverIconGhost = css81`
|
|
|
18725
18739
|
opacity: 0.05;
|
|
18726
18740
|
transform: rotateZ(-15deg) translate(35%, 30%);
|
|
18727
18741
|
`;
|
|
18728
|
-
var CoverSlot =
|
|
18742
|
+
var CoverSlot = css82`
|
|
18729
18743
|
align-items: center;
|
|
18730
18744
|
background: var(--white);
|
|
18731
18745
|
display: flex;
|
|
@@ -18736,15 +18750,15 @@ var CoverSlot = css81`
|
|
|
18736
18750
|
width: 24px;
|
|
18737
18751
|
height: 24px;
|
|
18738
18752
|
`;
|
|
18739
|
-
var CoverSlotLeft =
|
|
18753
|
+
var CoverSlotLeft = css82`
|
|
18740
18754
|
border-bottom-right-radius: var(--rounded-base);
|
|
18741
18755
|
left: var(--spacing-sm);
|
|
18742
18756
|
`;
|
|
18743
|
-
var CoverSlotRight =
|
|
18757
|
+
var CoverSlotRight = css82`
|
|
18744
18758
|
border-bottom-left-radius: var(--rounded-base);
|
|
18745
18759
|
right: var(--spacing-sm);
|
|
18746
18760
|
`;
|
|
18747
|
-
var CoverButton =
|
|
18761
|
+
var CoverButton = css82`
|
|
18748
18762
|
align-items: stretch;
|
|
18749
18763
|
border: none;
|
|
18750
18764
|
background: none;
|
|
@@ -18757,7 +18771,7 @@ var CoverButton = css81`
|
|
|
18757
18771
|
outline: none;
|
|
18758
18772
|
}
|
|
18759
18773
|
`;
|
|
18760
|
-
var CoverSelectedChip =
|
|
18774
|
+
var CoverSelectedChip = css82`
|
|
18761
18775
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
18762
18776
|
opacity: 0;
|
|
18763
18777
|
position: absolute;
|
|
@@ -18766,11 +18780,11 @@ var CoverSelectedChip = css81`
|
|
|
18766
18780
|
`;
|
|
18767
18781
|
|
|
18768
18782
|
// src/components/Objects/ObjectGridItemCardCover.tsx
|
|
18769
|
-
import { Fragment as Fragment14, jsx as
|
|
18783
|
+
import { Fragment as Fragment14, jsx as jsx105, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18770
18784
|
var ObjectGridItemCardCover = (props) => {
|
|
18771
18785
|
if ("imageUrl" in props && props.imageUrl) {
|
|
18772
18786
|
const { imageUrl } = props;
|
|
18773
|
-
return /* @__PURE__ */
|
|
18787
|
+
return /* @__PURE__ */ jsx105(
|
|
18774
18788
|
"img",
|
|
18775
18789
|
{
|
|
18776
18790
|
src: imageUrl,
|
|
@@ -18784,8 +18798,8 @@ var ObjectGridItemCardCover = (props) => {
|
|
|
18784
18798
|
if ("icon" in props && props.icon) {
|
|
18785
18799
|
const { icon } = props;
|
|
18786
18800
|
return /* @__PURE__ */ jsxs70("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", children: [
|
|
18787
|
-
/* @__PURE__ */
|
|
18788
|
-
/* @__PURE__ */
|
|
18801
|
+
/* @__PURE__ */ jsx105(Icon, { icon, iconColor: "currentColor", css: CoverIconGhost }),
|
|
18802
|
+
/* @__PURE__ */ jsx105(Icon, { icon, iconColor: "currentColor", size: 48 })
|
|
18789
18803
|
] });
|
|
18790
18804
|
}
|
|
18791
18805
|
};
|
|
@@ -18795,9 +18809,9 @@ var ObjectGridItemCover = ({
|
|
|
18795
18809
|
...props
|
|
18796
18810
|
}) => {
|
|
18797
18811
|
return /* @__PURE__ */ jsxs70(Fragment14, { children: [
|
|
18798
|
-
coverSlotLeft ? /* @__PURE__ */
|
|
18799
|
-
/* @__PURE__ */
|
|
18800
|
-
coverSlotRight ? /* @__PURE__ */
|
|
18812
|
+
coverSlotLeft ? /* @__PURE__ */ jsx105("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
|
|
18813
|
+
/* @__PURE__ */ jsx105(ObjectGridItemCardCover, { ...props }),
|
|
18814
|
+
coverSlotRight ? /* @__PURE__ */ jsx105("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null
|
|
18801
18815
|
] });
|
|
18802
18816
|
};
|
|
18803
18817
|
var ObjectGridItemCoverButton = ({
|
|
@@ -18810,10 +18824,10 @@ var ObjectGridItemCoverButton = ({
|
|
|
18810
18824
|
...props
|
|
18811
18825
|
}) => {
|
|
18812
18826
|
return /* @__PURE__ */ jsxs70("button", { type: "button", css: CoverButton, onClick: () => onSelection(id), "aria-selected": isSelected, children: [
|
|
18813
|
-
coverSlotLeft ? /* @__PURE__ */
|
|
18814
|
-
/* @__PURE__ */
|
|
18815
|
-
coverSlotRight ? /* @__PURE__ */
|
|
18816
|
-
isSelected ? /* @__PURE__ */
|
|
18827
|
+
coverSlotLeft ? /* @__PURE__ */ jsx105("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
|
|
18828
|
+
/* @__PURE__ */ jsx105(ObjectGridItemCardCover, { ...props }),
|
|
18829
|
+
coverSlotRight ? /* @__PURE__ */ jsx105("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null,
|
|
18830
|
+
isSelected ? /* @__PURE__ */ jsx105("div", { css: CoverSelectedChip, children: /* @__PURE__ */ jsx105(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) : null
|
|
18817
18831
|
] });
|
|
18818
18832
|
};
|
|
18819
18833
|
|
|
@@ -18821,8 +18835,8 @@ var ObjectGridItemCoverButton = ({
|
|
|
18821
18835
|
import { useEffect as useEffect16, useRef as useRef10, useState as useState13 } from "react";
|
|
18822
18836
|
|
|
18823
18837
|
// src/components/Objects/styles/ObjectGridItemHeading.styles.ts
|
|
18824
|
-
import { css as
|
|
18825
|
-
var ObjectGridItemHeading =
|
|
18838
|
+
import { css as css83 } from "@emotion/react";
|
|
18839
|
+
var ObjectGridItemHeading = css83`
|
|
18826
18840
|
overflow: hidden;
|
|
18827
18841
|
text-overflow: ellipsis;
|
|
18828
18842
|
white-space: initial;
|
|
@@ -18830,12 +18844,12 @@ var ObjectGridItemHeading = css82`
|
|
|
18830
18844
|
-webkit-line-clamp: 1;
|
|
18831
18845
|
-webkit-box-orient: vertical;
|
|
18832
18846
|
`;
|
|
18833
|
-
var PopoverContent =
|
|
18847
|
+
var PopoverContent = css83`
|
|
18834
18848
|
min-width: 50px;
|
|
18835
18849
|
`;
|
|
18836
18850
|
|
|
18837
18851
|
// src/components/Objects/ObjectGridItemHeading.tsx
|
|
18838
|
-
import { jsx as
|
|
18852
|
+
import { jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18839
18853
|
var ObjectGridItemHeading2 = ({
|
|
18840
18854
|
heading,
|
|
18841
18855
|
beforeHeadingSlot,
|
|
@@ -18862,55 +18876,208 @@ var ObjectGridItemHeading2 = ({
|
|
|
18862
18876
|
}, []);
|
|
18863
18877
|
return /* @__PURE__ */ jsxs71(HorizontalRhythm, { align: "center", gap: "xs", children: [
|
|
18864
18878
|
beforeHeadingSlot,
|
|
18865
|
-
/* @__PURE__ */
|
|
18879
|
+
/* @__PURE__ */ jsx106(Tooltip, { title: hasTruncation ? heading : "", children: /* @__PURE__ */ jsx106("div", { role: "heading", css: ObjectGridItemHeading, ref: headingRef, children: heading }) }),
|
|
18866
18880
|
afterHeadingSlot
|
|
18867
18881
|
] });
|
|
18868
18882
|
};
|
|
18869
18883
|
|
|
18870
18884
|
// src/components/Objects/ObjectGridItemIconWithTooltip.tsx
|
|
18871
|
-
import { jsx as
|
|
18885
|
+
import { jsx as jsx107 } from "@emotion/react/jsx-runtime";
|
|
18872
18886
|
var ObjectGridItemIconWithTooltip = ({
|
|
18873
18887
|
tooltipTitle,
|
|
18874
18888
|
placement = "bottom-start",
|
|
18875
18889
|
icon,
|
|
18876
18890
|
iconColor = "accent-dark"
|
|
18877
18891
|
}) => {
|
|
18878
|
-
return /* @__PURE__ */
|
|
18892
|
+
return /* @__PURE__ */ jsx107(Tooltip, { title: tooltipTitle, placement, children: /* @__PURE__ */ jsx107("span", { children: /* @__PURE__ */ jsx107(Icon, { icon, iconColor, size: "1rem" }) }) });
|
|
18893
|
+
};
|
|
18894
|
+
|
|
18895
|
+
// src/components/Objects/styles/ObjectListItem.styles.ts
|
|
18896
|
+
import { css as css84 } from "@emotion/react";
|
|
18897
|
+
var ObjectListItem = css84`
|
|
18898
|
+
background: var(--white);
|
|
18899
|
+
display: flex;
|
|
18900
|
+
gap: var(--spacing-sm);
|
|
18901
|
+
flex-grow: 1;
|
|
18902
|
+
padding: var(--spacing-sm);
|
|
18903
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
18904
|
+
|
|
18905
|
+
&:hover {
|
|
18906
|
+
background: var(--gray-50);
|
|
18907
|
+
}
|
|
18908
|
+
`;
|
|
18909
|
+
var ObjectListItemSingle = css84`
|
|
18910
|
+
align-items: center;
|
|
18911
|
+
`;
|
|
18912
|
+
var ObjectListItemContentWrapper = css84`
|
|
18913
|
+
flex-grow: 1;
|
|
18914
|
+
`;
|
|
18915
|
+
var ObjectListItemContainer = css84`
|
|
18916
|
+
> [role='listitem'] {
|
|
18917
|
+
border-top: 1px solid var(--gray-200);
|
|
18918
|
+
}
|
|
18919
|
+
`;
|
|
18920
|
+
var ObjectListItemCover = css84`
|
|
18921
|
+
max-width: 80px;
|
|
18922
|
+
min-height: 45px;
|
|
18923
|
+
object-fit: cover;
|
|
18924
|
+
|
|
18925
|
+
[role='presentation'] {
|
|
18926
|
+
background: var(--gray-200);
|
|
18927
|
+
height: 45px;
|
|
18928
|
+
}
|
|
18929
|
+
`;
|
|
18930
|
+
var ObjectListItemLoading = css84`
|
|
18931
|
+
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
18932
|
+
background: var(--white);
|
|
18933
|
+
display: flex;
|
|
18934
|
+
gap: var(--spacing-sm);
|
|
18935
|
+
flex-grow: 1;
|
|
18936
|
+
padding: var(--spacing-sm);
|
|
18937
|
+
`;
|
|
18938
|
+
var ObjectListItemLoadingText = (textLength) => css84`
|
|
18939
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
18940
|
+
border-radius: var(--rounded-base);
|
|
18941
|
+
background: var(--gray-300);
|
|
18942
|
+
display: block;
|
|
18943
|
+
width: ${textLength};
|
|
18944
|
+
height: var(--fs-base);
|
|
18945
|
+
`;
|
|
18946
|
+
var ObjectListItemLoadingImage = css84`
|
|
18947
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
18948
|
+
border-radius: var(--rounded-base);
|
|
18949
|
+
background: var(--gray-300);
|
|
18950
|
+
display: block;
|
|
18951
|
+
width: 80px;
|
|
18952
|
+
height: 55px;
|
|
18953
|
+
`;
|
|
18954
|
+
|
|
18955
|
+
// src/components/Objects/ObjectItemLoadingSkeleton.tsx
|
|
18956
|
+
import { jsx as jsx108, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18957
|
+
var ObjectItemLoadingSkeleton = ({ showCover }) => {
|
|
18958
|
+
return /* @__PURE__ */ jsxs72("div", { css: ObjectListItemLoading, children: [
|
|
18959
|
+
showCover ? /* @__PURE__ */ jsx108("div", { "data-testid": "object-list-item-cover-skeleton", children: /* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingImage }) }) : null,
|
|
18960
|
+
/* @__PURE__ */ jsxs72(HorizontalRhythm, { css: ObjectListItemContentWrapper, justify: "space-between", gap: "sm", children: [
|
|
18961
|
+
/* @__PURE__ */ jsxs72(VerticalRhythm, { gap: "xs", children: [
|
|
18962
|
+
/* @__PURE__ */ jsx108(HorizontalRhythm, { gap: "xs", align: "center", children: /* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("30ch") }) }),
|
|
18963
|
+
/* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("20ch") })
|
|
18964
|
+
] }),
|
|
18965
|
+
/* @__PURE__ */ jsxs72(HorizontalRhythm, { gap: "xs", align: "flex-start", children: [
|
|
18966
|
+
/* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("6ch") }),
|
|
18967
|
+
/* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("2ch") })
|
|
18968
|
+
] })
|
|
18969
|
+
] })
|
|
18970
|
+
] });
|
|
18971
|
+
};
|
|
18972
|
+
|
|
18973
|
+
// src/components/Objects/ObjectListItem.tsx
|
|
18974
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18975
|
+
var ObjectListItem2 = (props) => {
|
|
18976
|
+
const { renderAs, isSelected, cover, header: header2, rightSlot, menuItems, ...divProps } = props;
|
|
18977
|
+
return /* @__PURE__ */ jsxs73(
|
|
18978
|
+
"div",
|
|
18979
|
+
{
|
|
18980
|
+
role: "listitem",
|
|
18981
|
+
css: [ObjectListItem, renderAs === "single" ? ObjectListItemSingle : null],
|
|
18982
|
+
"data-testid": "object-list-item",
|
|
18983
|
+
"aria-selected": isSelected,
|
|
18984
|
+
...divProps,
|
|
18985
|
+
children: [
|
|
18986
|
+
cover ? /* @__PURE__ */ jsx109(HorizontalRhythm, { gap: "sm", align: "center", children: cover }) : null,
|
|
18987
|
+
/* @__PURE__ */ jsxs73(HorizontalRhythm, { css: ObjectListItemContentWrapper, justify: "space-between", gap: "sm", children: [
|
|
18988
|
+
/* @__PURE__ */ jsxs73(VerticalRhythm, { gap: "0", children: [
|
|
18989
|
+
/* @__PURE__ */ jsx109(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: header2 }),
|
|
18990
|
+
renderAs === "multi" ? props.children : null
|
|
18991
|
+
] }),
|
|
18992
|
+
/* @__PURE__ */ jsxs73(HorizontalRhythm, { gap: "xs", align: "flex-start", children: [
|
|
18993
|
+
rightSlot,
|
|
18994
|
+
menuItems ? /* @__PURE__ */ jsx109(
|
|
18995
|
+
Menu,
|
|
18996
|
+
{
|
|
18997
|
+
menuTrigger: /* @__PURE__ */ jsx109(MenuThreeDots, { "data-testid": "object-list-item-menu-btn" }),
|
|
18998
|
+
placement: "bottom-end",
|
|
18999
|
+
children: menuItems
|
|
19000
|
+
}
|
|
19001
|
+
) : null
|
|
19002
|
+
] })
|
|
19003
|
+
] })
|
|
19004
|
+
]
|
|
19005
|
+
}
|
|
19006
|
+
);
|
|
19007
|
+
};
|
|
19008
|
+
|
|
19009
|
+
// src/components/Objects/ObjectListItemContainer.tsx
|
|
19010
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
19011
|
+
var ObjectListItemContainer2 = ({ children, ...props }) => {
|
|
19012
|
+
return /* @__PURE__ */ jsx110(VerticalRhythm, { css: ObjectListItemContainer, role: "list", ...props, children });
|
|
19013
|
+
};
|
|
19014
|
+
|
|
19015
|
+
// src/components/Objects/ObjectListItemCover.tsx
|
|
19016
|
+
import { jsx as jsx111 } from "@emotion/react/jsx-runtime";
|
|
19017
|
+
var ObjectListItemCover2 = ({ imageUrl, ...props }) => {
|
|
19018
|
+
if (!imageUrl) {
|
|
19019
|
+
return /* @__PURE__ */ jsx111("div", { css: ObjectListItemCover, role: "presentation", "data-testid": "object-list-item-thumbnail" });
|
|
19020
|
+
}
|
|
19021
|
+
return /* @__PURE__ */ jsx111(
|
|
19022
|
+
"img",
|
|
19023
|
+
{
|
|
19024
|
+
css: ObjectListItemCover,
|
|
19025
|
+
src: imageUrl,
|
|
19026
|
+
loading: "lazy",
|
|
19027
|
+
"data-testid": "object-list-item-thumbnail",
|
|
19028
|
+
...props
|
|
19029
|
+
}
|
|
19030
|
+
);
|
|
19031
|
+
};
|
|
19032
|
+
|
|
19033
|
+
// src/components/Objects/ObjectListItemHeading.tsx
|
|
19034
|
+
import { jsx as jsx112, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
19035
|
+
var ObjectListItemHeading = ({
|
|
19036
|
+
heading,
|
|
19037
|
+
beforeHeadingSlot,
|
|
19038
|
+
afterHeadingSlot,
|
|
19039
|
+
...props
|
|
19040
|
+
}) => {
|
|
19041
|
+
return /* @__PURE__ */ jsxs74(HorizontalRhythm, { align: "center", gap: "xs", ...props, children: [
|
|
19042
|
+
beforeHeadingSlot,
|
|
19043
|
+
/* @__PURE__ */ jsx112("div", { role: "heading", children: heading }),
|
|
19044
|
+
afterHeadingSlot
|
|
19045
|
+
] });
|
|
18879
19046
|
};
|
|
18880
19047
|
|
|
18881
19048
|
// src/components/Pagination/Pagination.tsx
|
|
18882
19049
|
import Paginate from "react-paginate";
|
|
18883
19050
|
|
|
18884
19051
|
// src/components/Pagination/Pagniation.styles.ts
|
|
18885
|
-
import { css as
|
|
18886
|
-
var container2 =
|
|
19052
|
+
import { css as css85 } from "@emotion/css";
|
|
19053
|
+
var container2 = css85`
|
|
18887
19054
|
align-items: center;
|
|
18888
19055
|
display: flex;
|
|
18889
19056
|
`;
|
|
18890
|
-
var disabled =
|
|
19057
|
+
var disabled = css85`
|
|
18891
19058
|
opacity: var(--opacity-50);
|
|
18892
19059
|
`;
|
|
18893
|
-
var disabledLink =
|
|
19060
|
+
var disabledLink = css85`
|
|
18894
19061
|
cursor: pointer-default;
|
|
18895
19062
|
`;
|
|
18896
|
-
var pageLink =
|
|
19063
|
+
var pageLink = css85`
|
|
18897
19064
|
display: block;
|
|
18898
19065
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
18899
19066
|
`;
|
|
18900
|
-
var prevNextControls =
|
|
19067
|
+
var prevNextControls = css85`
|
|
18901
19068
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
18902
19069
|
`;
|
|
18903
|
-
var active =
|
|
19070
|
+
var active = css85`
|
|
18904
19071
|
border-radius: var(--rounded-base);
|
|
18905
19072
|
background: var(--gray-200);
|
|
18906
19073
|
`;
|
|
18907
|
-
var page =
|
|
19074
|
+
var page = css85`
|
|
18908
19075
|
margin-left: var(--spacing-xs);
|
|
18909
19076
|
margin-right: var(--spacing-xs);
|
|
18910
19077
|
`;
|
|
18911
19078
|
|
|
18912
19079
|
// src/components/Pagination/Pagination.tsx
|
|
18913
|
-
import { jsx as
|
|
19080
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
18914
19081
|
function Pagination({
|
|
18915
19082
|
limit,
|
|
18916
19083
|
offset,
|
|
@@ -18925,12 +19092,12 @@ function Pagination({
|
|
|
18925
19092
|
if (pageCount <= 1) {
|
|
18926
19093
|
return null;
|
|
18927
19094
|
}
|
|
18928
|
-
return /* @__PURE__ */
|
|
19095
|
+
return /* @__PURE__ */ jsx113(
|
|
18929
19096
|
Paginate,
|
|
18930
19097
|
{
|
|
18931
19098
|
forcePage: currentPage,
|
|
18932
|
-
previousLabel: /* @__PURE__ */
|
|
18933
|
-
nextLabel: /* @__PURE__ */
|
|
19099
|
+
previousLabel: /* @__PURE__ */ jsx113("div", { className: prevNextControls, children: "<" }),
|
|
19100
|
+
nextLabel: /* @__PURE__ */ jsx113("div", { className: prevNextControls, children: ">" }),
|
|
18934
19101
|
breakLabel: "...",
|
|
18935
19102
|
pageCount,
|
|
18936
19103
|
marginPagesDisplayed: 2,
|
|
@@ -18970,8 +19137,8 @@ var useParameterShell = () => {
|
|
|
18970
19137
|
};
|
|
18971
19138
|
|
|
18972
19139
|
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
18973
|
-
import { css as
|
|
18974
|
-
var inputIconBtn =
|
|
19140
|
+
import { css as css86 } from "@emotion/react";
|
|
19141
|
+
var inputIconBtn = css86`
|
|
18975
19142
|
align-items: center;
|
|
18976
19143
|
border: none;
|
|
18977
19144
|
border-radius: var(--rounded-base);
|
|
@@ -18997,7 +19164,7 @@ var inputIconBtn = css84`
|
|
|
18997
19164
|
`;
|
|
18998
19165
|
|
|
18999
19166
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
19000
|
-
import { jsx as
|
|
19167
|
+
import { jsx as jsx114, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19001
19168
|
var LabelLeadingIcon = ({
|
|
19002
19169
|
icon,
|
|
19003
19170
|
iconColor,
|
|
@@ -19009,7 +19176,7 @@ var LabelLeadingIcon = ({
|
|
|
19009
19176
|
...props
|
|
19010
19177
|
}) => {
|
|
19011
19178
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
19012
|
-
return /* @__PURE__ */
|
|
19179
|
+
return /* @__PURE__ */ jsx114(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs75(
|
|
19013
19180
|
"button",
|
|
19014
19181
|
{
|
|
19015
19182
|
css: inputIconBtn,
|
|
@@ -19019,7 +19186,7 @@ var LabelLeadingIcon = ({
|
|
|
19019
19186
|
...props,
|
|
19020
19187
|
"data-testid": "lock-button",
|
|
19021
19188
|
children: [
|
|
19022
|
-
/* @__PURE__ */
|
|
19189
|
+
/* @__PURE__ */ jsx114(
|
|
19023
19190
|
Icon,
|
|
19024
19191
|
{
|
|
19025
19192
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -19035,8 +19202,8 @@ var LabelLeadingIcon = ({
|
|
|
19035
19202
|
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
19036
19203
|
|
|
19037
19204
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
19038
|
-
import { css as
|
|
19039
|
-
var inputContainer2 =
|
|
19205
|
+
import { css as css87 } from "@emotion/react";
|
|
19206
|
+
var inputContainer2 = css87`
|
|
19040
19207
|
position: relative;
|
|
19041
19208
|
scroll-margin: var(--spacing-2xl);
|
|
19042
19209
|
|
|
@@ -19049,14 +19216,14 @@ var inputContainer2 = css85`
|
|
|
19049
19216
|
}
|
|
19050
19217
|
}
|
|
19051
19218
|
`;
|
|
19052
|
-
var labelText2 =
|
|
19219
|
+
var labelText2 = css87`
|
|
19053
19220
|
align-items: center;
|
|
19054
19221
|
display: flex;
|
|
19055
19222
|
gap: var(--spacing-xs);
|
|
19056
19223
|
font-weight: var(--fw-regular);
|
|
19057
19224
|
margin: 0 0 var(--spacing-xs);
|
|
19058
19225
|
`;
|
|
19059
|
-
var input3 =
|
|
19226
|
+
var input3 = css87`
|
|
19060
19227
|
display: block;
|
|
19061
19228
|
appearance: none;
|
|
19062
19229
|
box-sizing: border-box;
|
|
@@ -19104,18 +19271,18 @@ var input3 = css85`
|
|
|
19104
19271
|
color: var(--gray-400);
|
|
19105
19272
|
}
|
|
19106
19273
|
`;
|
|
19107
|
-
var selectInput =
|
|
19274
|
+
var selectInput = css87`
|
|
19108
19275
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
|
19109
19276
|
background-position: right var(--spacing-sm) center;
|
|
19110
19277
|
background-repeat: no-repeat;
|
|
19111
19278
|
background-size: 1rem;
|
|
19112
19279
|
padding-right: var(--spacing-xl);
|
|
19113
19280
|
`;
|
|
19114
|
-
var inputWrapper =
|
|
19281
|
+
var inputWrapper = css87`
|
|
19115
19282
|
display: flex; // used to correct overflow with chrome textarea
|
|
19116
19283
|
position: relative;
|
|
19117
19284
|
`;
|
|
19118
|
-
var inputIcon2 =
|
|
19285
|
+
var inputIcon2 = css87`
|
|
19119
19286
|
align-items: center;
|
|
19120
19287
|
background: var(--white);
|
|
19121
19288
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -19131,7 +19298,7 @@ var inputIcon2 = css85`
|
|
|
19131
19298
|
width: var(--spacing-lg);
|
|
19132
19299
|
z-index: var(--z-10);
|
|
19133
19300
|
`;
|
|
19134
|
-
var inputToggleLabel2 =
|
|
19301
|
+
var inputToggleLabel2 = css87`
|
|
19135
19302
|
--inline-label-color: var(--typography-base);
|
|
19136
19303
|
align-items: center;
|
|
19137
19304
|
cursor: pointer;
|
|
@@ -19146,7 +19313,7 @@ var inputToggleLabel2 = css85`
|
|
|
19146
19313
|
--inline-label-color: var(--gray-400);
|
|
19147
19314
|
}
|
|
19148
19315
|
`;
|
|
19149
|
-
var toggleInput2 =
|
|
19316
|
+
var toggleInput2 = css87`
|
|
19150
19317
|
appearance: none;
|
|
19151
19318
|
border: 1px solid var(--gray-200);
|
|
19152
19319
|
background: var(--white);
|
|
@@ -19199,7 +19366,7 @@ var toggleInput2 = css85`
|
|
|
19199
19366
|
border-color: var(--gray-300);
|
|
19200
19367
|
}
|
|
19201
19368
|
`;
|
|
19202
|
-
var inlineLabel2 =
|
|
19369
|
+
var inlineLabel2 = css87`
|
|
19203
19370
|
color: var(--inline-label-color);
|
|
19204
19371
|
padding-left: var(--spacing-md);
|
|
19205
19372
|
font-size: var(--fs-sm);
|
|
@@ -19216,7 +19383,7 @@ var inlineLabel2 = css85`
|
|
|
19216
19383
|
}
|
|
19217
19384
|
}
|
|
19218
19385
|
`;
|
|
19219
|
-
var inputMenu =
|
|
19386
|
+
var inputMenu = css87`
|
|
19220
19387
|
background: none;
|
|
19221
19388
|
border: none;
|
|
19222
19389
|
padding: var(--spacing-2xs);
|
|
@@ -19224,10 +19391,10 @@ var inputMenu = css85`
|
|
|
19224
19391
|
top: calc(var(--spacing-md) * -1.2);
|
|
19225
19392
|
right: 0;
|
|
19226
19393
|
`;
|
|
19227
|
-
var inputActionItems =
|
|
19394
|
+
var inputActionItems = css87`
|
|
19228
19395
|
display: flex;
|
|
19229
19396
|
`;
|
|
19230
|
-
var inputMenuHover =
|
|
19397
|
+
var inputMenuHover = css87`
|
|
19231
19398
|
opacity: var(--opacity-50);
|
|
19232
19399
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
19233
19400
|
|
|
@@ -19237,11 +19404,11 @@ var inputMenuHover = css85`
|
|
|
19237
19404
|
background-color: var(--gray-200);
|
|
19238
19405
|
}
|
|
19239
19406
|
`;
|
|
19240
|
-
var textarea2 =
|
|
19407
|
+
var textarea2 = css87`
|
|
19241
19408
|
resize: vertical;
|
|
19242
19409
|
min-height: 2rem;
|
|
19243
19410
|
`;
|
|
19244
|
-
var dataConnectButton =
|
|
19411
|
+
var dataConnectButton = css87`
|
|
19245
19412
|
align-items: center;
|
|
19246
19413
|
appearance: none;
|
|
19247
19414
|
box-sizing: border-box;
|
|
@@ -19276,7 +19443,7 @@ var dataConnectButton = css85`
|
|
|
19276
19443
|
pointer-events: none;
|
|
19277
19444
|
}
|
|
19278
19445
|
`;
|
|
19279
|
-
var linkParameterBtn =
|
|
19446
|
+
var linkParameterBtn = css87`
|
|
19280
19447
|
border-radius: var(--rounded-base);
|
|
19281
19448
|
background: transparent;
|
|
19282
19449
|
border: none;
|
|
@@ -19285,7 +19452,7 @@ var linkParameterBtn = css85`
|
|
|
19285
19452
|
font-size: var(--fs-sm);
|
|
19286
19453
|
line-height: 1;
|
|
19287
19454
|
`;
|
|
19288
|
-
var linkParameterControls =
|
|
19455
|
+
var linkParameterControls = css87`
|
|
19289
19456
|
position: absolute;
|
|
19290
19457
|
inset: 0 0 0 auto;
|
|
19291
19458
|
padding: 0 var(--spacing-base);
|
|
@@ -19294,7 +19461,7 @@ var linkParameterControls = css85`
|
|
|
19294
19461
|
justify-content: center;
|
|
19295
19462
|
gap: var(--spacing-base);
|
|
19296
19463
|
`;
|
|
19297
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
19464
|
+
var linkParameterInput = (withExternalLinkIcon) => css87`
|
|
19298
19465
|
padding-right: calc(
|
|
19299
19466
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
19300
19467
|
var(--spacing-base)
|
|
@@ -19307,7 +19474,7 @@ var linkParameterInput = (withExternalLinkIcon) => css85`
|
|
|
19307
19474
|
}
|
|
19308
19475
|
}
|
|
19309
19476
|
`;
|
|
19310
|
-
var linkParameterIcon =
|
|
19477
|
+
var linkParameterIcon = css87`
|
|
19311
19478
|
align-items: center;
|
|
19312
19479
|
color: var(--brand-secondary-3);
|
|
19313
19480
|
display: flex;
|
|
@@ -19322,7 +19489,7 @@ var linkParameterIcon = css85`
|
|
|
19322
19489
|
`;
|
|
19323
19490
|
|
|
19324
19491
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
19325
|
-
import { jsx as
|
|
19492
|
+
import { jsx as jsx115, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19326
19493
|
function ParameterDataResource({
|
|
19327
19494
|
label,
|
|
19328
19495
|
labelLeadingIcon,
|
|
@@ -19332,12 +19499,12 @@ function ParameterDataResource({
|
|
|
19332
19499
|
disabled: disabled2,
|
|
19333
19500
|
children
|
|
19334
19501
|
}) {
|
|
19335
|
-
return /* @__PURE__ */
|
|
19336
|
-
/* @__PURE__ */
|
|
19502
|
+
return /* @__PURE__ */ jsxs76("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
19503
|
+
/* @__PURE__ */ jsxs76("span", { css: labelText2, children: [
|
|
19337
19504
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
19338
19505
|
label
|
|
19339
19506
|
] }),
|
|
19340
|
-
/* @__PURE__ */
|
|
19507
|
+
/* @__PURE__ */ jsxs76(
|
|
19341
19508
|
"button",
|
|
19342
19509
|
{
|
|
19343
19510
|
type: "button",
|
|
@@ -19346,30 +19513,30 @@ function ParameterDataResource({
|
|
|
19346
19513
|
disabled: disabled2,
|
|
19347
19514
|
onClick: onConnectDatasource,
|
|
19348
19515
|
children: [
|
|
19349
|
-
/* @__PURE__ */
|
|
19516
|
+
/* @__PURE__ */ jsx115("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx115(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
19350
19517
|
children
|
|
19351
19518
|
]
|
|
19352
19519
|
}
|
|
19353
19520
|
),
|
|
19354
|
-
caption ? /* @__PURE__ */
|
|
19521
|
+
caption ? /* @__PURE__ */ jsx115(Caption, { children: caption }) : null
|
|
19355
19522
|
] });
|
|
19356
19523
|
}
|
|
19357
19524
|
|
|
19358
19525
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
19359
|
-
import { css as
|
|
19360
|
-
var ParameterDrawerHeaderContainer =
|
|
19526
|
+
import { css as css88 } from "@emotion/react";
|
|
19527
|
+
var ParameterDrawerHeaderContainer = css88`
|
|
19361
19528
|
align-items: center;
|
|
19362
19529
|
display: flex;
|
|
19363
19530
|
gap: var(--spacing-base);
|
|
19364
19531
|
justify-content: space-between;
|
|
19365
19532
|
margin-bottom: var(--spacing-sm);
|
|
19366
19533
|
`;
|
|
19367
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
19534
|
+
var ParameterDrawerHeaderTitleGroup = css88`
|
|
19368
19535
|
align-items: center;
|
|
19369
19536
|
display: flex;
|
|
19370
19537
|
gap: var(--spacing-sm);
|
|
19371
19538
|
`;
|
|
19372
|
-
var ParameterDrawerHeaderTitle =
|
|
19539
|
+
var ParameterDrawerHeaderTitle = css88`
|
|
19373
19540
|
text-overflow: ellipsis;
|
|
19374
19541
|
white-space: nowrap;
|
|
19375
19542
|
overflow: hidden;
|
|
@@ -19377,23 +19544,23 @@ var ParameterDrawerHeaderTitle = css86`
|
|
|
19377
19544
|
`;
|
|
19378
19545
|
|
|
19379
19546
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
19380
|
-
import { jsx as
|
|
19547
|
+
import { jsx as jsx116, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
19381
19548
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
19382
|
-
return /* @__PURE__ */
|
|
19383
|
-
/* @__PURE__ */
|
|
19549
|
+
return /* @__PURE__ */ jsxs77("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
19550
|
+
/* @__PURE__ */ jsxs77("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
19384
19551
|
iconBeforeTitle,
|
|
19385
|
-
/* @__PURE__ */
|
|
19552
|
+
/* @__PURE__ */ jsx116(Heading2, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
19386
19553
|
] }),
|
|
19387
19554
|
children
|
|
19388
19555
|
] });
|
|
19389
19556
|
};
|
|
19390
19557
|
|
|
19391
19558
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
19392
|
-
import { forwardRef as
|
|
19559
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
19393
19560
|
|
|
19394
19561
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
19395
|
-
import { css as
|
|
19396
|
-
var fieldsetStyles =
|
|
19562
|
+
import { css as css89 } from "@emotion/react";
|
|
19563
|
+
var fieldsetStyles = css89`
|
|
19397
19564
|
&:disabled,
|
|
19398
19565
|
[readonly] {
|
|
19399
19566
|
pointer-events: none;
|
|
@@ -19404,7 +19571,7 @@ var fieldsetStyles = css87`
|
|
|
19404
19571
|
}
|
|
19405
19572
|
}
|
|
19406
19573
|
`;
|
|
19407
|
-
var fieldsetLegend2 =
|
|
19574
|
+
var fieldsetLegend2 = css89`
|
|
19408
19575
|
display: block;
|
|
19409
19576
|
font-weight: var(--fw-medium);
|
|
19410
19577
|
margin-bottom: var(--spacing-sm);
|
|
@@ -19412,33 +19579,33 @@ var fieldsetLegend2 = css87`
|
|
|
19412
19579
|
`;
|
|
19413
19580
|
|
|
19414
19581
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
19415
|
-
import { jsx as
|
|
19416
|
-
var ParameterGroup =
|
|
19582
|
+
import { jsx as jsx117, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
19583
|
+
var ParameterGroup = forwardRef17(
|
|
19417
19584
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
19418
|
-
return /* @__PURE__ */
|
|
19419
|
-
/* @__PURE__ */
|
|
19585
|
+
return /* @__PURE__ */ jsxs78("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
19586
|
+
/* @__PURE__ */ jsx117("legend", { css: fieldsetLegend2, children: legend }),
|
|
19420
19587
|
children
|
|
19421
19588
|
] });
|
|
19422
19589
|
}
|
|
19423
19590
|
);
|
|
19424
19591
|
|
|
19425
19592
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
19426
|
-
import { forwardRef as
|
|
19593
|
+
import { forwardRef as forwardRef19, useDeferredValue } from "react";
|
|
19427
19594
|
|
|
19428
19595
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
19429
19596
|
import { useState as useState14 } from "react";
|
|
19430
19597
|
import { createPortal as createPortal2 } from "react-dom";
|
|
19431
19598
|
|
|
19432
19599
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
19433
|
-
import { css as
|
|
19434
|
-
var previewWrapper =
|
|
19600
|
+
import { css as css90 } from "@emotion/react";
|
|
19601
|
+
var previewWrapper = css90`
|
|
19435
19602
|
margin-top: var(--spacing-xs);
|
|
19436
19603
|
background: var(--gray-50);
|
|
19437
19604
|
padding: var(--spacing-sm);
|
|
19438
19605
|
border: solid 1px var(--gray-300);
|
|
19439
19606
|
border-radius: var(--rounded-sm);
|
|
19440
19607
|
`;
|
|
19441
|
-
var previewLink =
|
|
19608
|
+
var previewLink = css90`
|
|
19442
19609
|
display: block;
|
|
19443
19610
|
width: 100%;
|
|
19444
19611
|
|
|
@@ -19446,7 +19613,7 @@ var previewLink = css88`
|
|
|
19446
19613
|
max-height: 9rem;
|
|
19447
19614
|
}
|
|
19448
19615
|
`;
|
|
19449
|
-
var previewModalWrapper =
|
|
19616
|
+
var previewModalWrapper = css90`
|
|
19450
19617
|
background: var(--gray-50);
|
|
19451
19618
|
display: flex;
|
|
19452
19619
|
height: 100%;
|
|
@@ -19455,7 +19622,7 @@ var previewModalWrapper = css88`
|
|
|
19455
19622
|
border: solid 1px var(--gray-300);
|
|
19456
19623
|
border-radius: var(--rounded-sm);
|
|
19457
19624
|
`;
|
|
19458
|
-
var previewModalImage =
|
|
19625
|
+
var previewModalImage = css90`
|
|
19459
19626
|
display: flex;
|
|
19460
19627
|
height: 100%;
|
|
19461
19628
|
width: 100%;
|
|
@@ -19467,32 +19634,32 @@ var previewModalImage = css88`
|
|
|
19467
19634
|
`;
|
|
19468
19635
|
|
|
19469
19636
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
19470
|
-
import { Fragment as Fragment15, jsx as
|
|
19637
|
+
import { Fragment as Fragment15, jsx as jsx118, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
19471
19638
|
function ParameterImagePreview({ imageSrc }) {
|
|
19472
19639
|
const [showModal, setShowModal] = useState14(false);
|
|
19473
|
-
return imageSrc ? /* @__PURE__ */
|
|
19474
|
-
/* @__PURE__ */
|
|
19475
|
-
/* @__PURE__ */
|
|
19640
|
+
return imageSrc ? /* @__PURE__ */ jsxs79("div", { css: previewWrapper, children: [
|
|
19641
|
+
/* @__PURE__ */ jsx118(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
19642
|
+
/* @__PURE__ */ jsx118(
|
|
19476
19643
|
"button",
|
|
19477
19644
|
{
|
|
19478
19645
|
css: previewLink,
|
|
19479
19646
|
onClick: () => {
|
|
19480
19647
|
setShowModal(true);
|
|
19481
19648
|
},
|
|
19482
|
-
children: /* @__PURE__ */
|
|
19649
|
+
children: /* @__PURE__ */ jsx118(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
19483
19650
|
}
|
|
19484
19651
|
)
|
|
19485
19652
|
] }) : null;
|
|
19486
19653
|
}
|
|
19487
19654
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
19488
|
-
return open ? /* @__PURE__ */
|
|
19489
|
-
/* @__PURE__ */
|
|
19655
|
+
return open ? /* @__PURE__ */ jsx118(Fragment15, { children: createPortal2(
|
|
19656
|
+
/* @__PURE__ */ jsx118(
|
|
19490
19657
|
Modal,
|
|
19491
19658
|
{
|
|
19492
19659
|
header: "Image Preview",
|
|
19493
19660
|
onRequestClose,
|
|
19494
|
-
buttonGroup: /* @__PURE__ */
|
|
19495
|
-
children: /* @__PURE__ */
|
|
19661
|
+
buttonGroup: /* @__PURE__ */ jsx118(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
19662
|
+
children: /* @__PURE__ */ jsx118("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx118(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
19496
19663
|
}
|
|
19497
19664
|
),
|
|
19498
19665
|
document.body
|
|
@@ -19500,25 +19667,25 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
19500
19667
|
};
|
|
19501
19668
|
|
|
19502
19669
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
19503
|
-
import { css as
|
|
19670
|
+
import { css as css92 } from "@emotion/react";
|
|
19504
19671
|
import { useState as useState15 } from "react";
|
|
19505
19672
|
|
|
19506
19673
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
19507
|
-
import { jsx as
|
|
19674
|
+
import { jsx as jsx119 } from "@emotion/react/jsx-runtime";
|
|
19508
19675
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
19509
|
-
return !asSpan ? /* @__PURE__ */
|
|
19676
|
+
return !asSpan ? /* @__PURE__ */ jsx119("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx119("span", { "aria-labelledby": id, css: labelText2, children });
|
|
19510
19677
|
};
|
|
19511
19678
|
|
|
19512
19679
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
19513
|
-
import { forwardRef as
|
|
19514
|
-
import { jsx as
|
|
19515
|
-
var ParameterMenuButton =
|
|
19680
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
19681
|
+
import { jsx as jsx120 } from "@emotion/react/jsx-runtime";
|
|
19682
|
+
var ParameterMenuButton = forwardRef18(
|
|
19516
19683
|
({ label, children }, ref) => {
|
|
19517
|
-
return /* @__PURE__ */
|
|
19684
|
+
return /* @__PURE__ */ jsx120(
|
|
19518
19685
|
Menu,
|
|
19519
19686
|
{
|
|
19520
19687
|
menuLabel: `${label} menu`,
|
|
19521
|
-
menuTrigger: /* @__PURE__ */
|
|
19688
|
+
menuTrigger: /* @__PURE__ */ jsx120(
|
|
19522
19689
|
"button",
|
|
19523
19690
|
{
|
|
19524
19691
|
className: "parameter-menu",
|
|
@@ -19526,7 +19693,7 @@ var ParameterMenuButton = forwardRef17(
|
|
|
19526
19693
|
type: "button",
|
|
19527
19694
|
"aria-label": `${label} options`,
|
|
19528
19695
|
ref,
|
|
19529
|
-
children: /* @__PURE__ */
|
|
19696
|
+
children: /* @__PURE__ */ jsx120(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
19530
19697
|
}
|
|
19531
19698
|
),
|
|
19532
19699
|
children
|
|
@@ -19536,14 +19703,14 @@ var ParameterMenuButton = forwardRef17(
|
|
|
19536
19703
|
);
|
|
19537
19704
|
|
|
19538
19705
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
19539
|
-
import { css as
|
|
19540
|
-
var emptyParameterShell =
|
|
19706
|
+
import { css as css91 } from "@emotion/react";
|
|
19707
|
+
var emptyParameterShell = css91`
|
|
19541
19708
|
border-radius: var(--rounded-sm);
|
|
19542
19709
|
flex-grow: 1;
|
|
19543
19710
|
position: relative;
|
|
19544
19711
|
max-width: 100%;
|
|
19545
19712
|
`;
|
|
19546
|
-
var emptyParameterShellText =
|
|
19713
|
+
var emptyParameterShellText = css91`
|
|
19547
19714
|
background: var(--brand-secondary-6);
|
|
19548
19715
|
border-radius: var(--rounded-sm);
|
|
19549
19716
|
padding: var(--spacing-sm);
|
|
@@ -19551,7 +19718,7 @@ var emptyParameterShellText = css89`
|
|
|
19551
19718
|
font-size: var(--fs-sm);
|
|
19552
19719
|
margin: 0;
|
|
19553
19720
|
`;
|
|
19554
|
-
var overrideMarker =
|
|
19721
|
+
var overrideMarker = css91`
|
|
19555
19722
|
border-radius: var(--rounded-sm);
|
|
19556
19723
|
border: 10px solid var(--gray-300);
|
|
19557
19724
|
border-left-color: transparent;
|
|
@@ -19562,7 +19729,7 @@ var overrideMarker = css89`
|
|
|
19562
19729
|
`;
|
|
19563
19730
|
|
|
19564
19731
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
19565
|
-
import { jsx as
|
|
19732
|
+
import { jsx as jsx121, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
19566
19733
|
var extractParameterProps = (props) => {
|
|
19567
19734
|
const {
|
|
19568
19735
|
id,
|
|
@@ -19625,33 +19792,33 @@ var ParameterShell = ({
|
|
|
19625
19792
|
const [manualErrorMessage, setManualErrorMessage] = useState15(void 0);
|
|
19626
19793
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
19627
19794
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
19628
|
-
return /* @__PURE__ */
|
|
19629
|
-
hiddenLabel || title2 ? null : /* @__PURE__ */
|
|
19795
|
+
return /* @__PURE__ */ jsxs80("div", { css: inputContainer2, ...props, id, children: [
|
|
19796
|
+
hiddenLabel || title2 ? null : /* @__PURE__ */ jsxs80(ParameterLabel, { id, css: labelText2, children: [
|
|
19630
19797
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
19631
19798
|
label,
|
|
19632
19799
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
19633
19800
|
] }),
|
|
19634
|
-
!title2 ? null : /* @__PURE__ */
|
|
19801
|
+
!title2 ? null : /* @__PURE__ */ jsxs80(ParameterLabel, { id, asSpan: true, children: [
|
|
19635
19802
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
19636
19803
|
title2,
|
|
19637
19804
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
19638
19805
|
] }),
|
|
19639
|
-
/* @__PURE__ */
|
|
19640
|
-
actionItems ? /* @__PURE__ */
|
|
19806
|
+
/* @__PURE__ */ jsxs80("div", { css: inputWrapper, children: [
|
|
19807
|
+
actionItems ? /* @__PURE__ */ jsx121(
|
|
19641
19808
|
"div",
|
|
19642
19809
|
{
|
|
19643
19810
|
css: [
|
|
19644
19811
|
inputMenu,
|
|
19645
19812
|
inputActionItems,
|
|
19646
|
-
menuItems ?
|
|
19813
|
+
menuItems ? css92`
|
|
19647
19814
|
right: var(--spacing-md);
|
|
19648
19815
|
` : void 0
|
|
19649
19816
|
],
|
|
19650
19817
|
children: actionItems
|
|
19651
19818
|
}
|
|
19652
19819
|
) : null,
|
|
19653
|
-
menuItems ? /* @__PURE__ */
|
|
19654
|
-
/* @__PURE__ */
|
|
19820
|
+
menuItems ? /* @__PURE__ */ jsx121(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
19821
|
+
/* @__PURE__ */ jsx121(
|
|
19655
19822
|
ParameterShellContext.Provider,
|
|
19656
19823
|
{
|
|
19657
19824
|
value: {
|
|
@@ -19661,14 +19828,14 @@ var ParameterShell = ({
|
|
|
19661
19828
|
errorMessage: errorMessaging,
|
|
19662
19829
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
19663
19830
|
},
|
|
19664
|
-
children: isParameterGroup ? /* @__PURE__ */
|
|
19831
|
+
children: isParameterGroup ? /* @__PURE__ */ jsx121("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs80(ParameterShellPlaceholder, { children: [
|
|
19665
19832
|
children,
|
|
19666
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
19833
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx121(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
19667
19834
|
] })
|
|
19668
19835
|
}
|
|
19669
19836
|
)
|
|
19670
19837
|
] }),
|
|
19671
|
-
/* @__PURE__ */
|
|
19838
|
+
/* @__PURE__ */ jsx121(
|
|
19672
19839
|
FieldMessage,
|
|
19673
19840
|
{
|
|
19674
19841
|
helperMessageTestId: captionTestId,
|
|
@@ -19682,27 +19849,27 @@ var ParameterShell = ({
|
|
|
19682
19849
|
] });
|
|
19683
19850
|
};
|
|
19684
19851
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
19685
|
-
return /* @__PURE__ */
|
|
19852
|
+
return /* @__PURE__ */ jsx121("div", { css: emptyParameterShell, children });
|
|
19686
19853
|
};
|
|
19687
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
19854
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx121(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx121("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx121("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
19688
19855
|
|
|
19689
19856
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
19690
|
-
import { Fragment as Fragment16, jsx as
|
|
19691
|
-
var ParameterImage =
|
|
19857
|
+
import { Fragment as Fragment16, jsx as jsx122, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
19858
|
+
var ParameterImage = forwardRef19(
|
|
19692
19859
|
({ children, ...props }, ref) => {
|
|
19693
19860
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19694
|
-
return /* @__PURE__ */
|
|
19695
|
-
/* @__PURE__ */
|
|
19861
|
+
return /* @__PURE__ */ jsxs81(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
19862
|
+
/* @__PURE__ */ jsx122(ParameterImageInner, { ref, ...innerProps }),
|
|
19696
19863
|
children
|
|
19697
19864
|
] });
|
|
19698
19865
|
}
|
|
19699
19866
|
);
|
|
19700
|
-
var ParameterImageInner =
|
|
19867
|
+
var ParameterImageInner = forwardRef19((props, ref) => {
|
|
19701
19868
|
const { value } = props;
|
|
19702
19869
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
19703
19870
|
const deferredValue = useDeferredValue(value);
|
|
19704
|
-
return /* @__PURE__ */
|
|
19705
|
-
/* @__PURE__ */
|
|
19871
|
+
return /* @__PURE__ */ jsxs81(Fragment16, { children: [
|
|
19872
|
+
/* @__PURE__ */ jsx122(
|
|
19706
19873
|
"input",
|
|
19707
19874
|
{
|
|
19708
19875
|
css: input3,
|
|
@@ -19714,21 +19881,21 @@ var ParameterImageInner = forwardRef18((props, ref) => {
|
|
|
19714
19881
|
...props
|
|
19715
19882
|
}
|
|
19716
19883
|
),
|
|
19717
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
19884
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx122(ParameterImagePreview, { imageSrc: deferredValue })
|
|
19718
19885
|
] });
|
|
19719
19886
|
});
|
|
19720
19887
|
|
|
19721
19888
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
19722
|
-
import { forwardRef as
|
|
19723
|
-
import { jsx as
|
|
19724
|
-
var ParameterInput =
|
|
19889
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
19890
|
+
import { jsx as jsx123 } from "@emotion/react/jsx-runtime";
|
|
19891
|
+
var ParameterInput = forwardRef20((props, ref) => {
|
|
19725
19892
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19726
|
-
return /* @__PURE__ */
|
|
19893
|
+
return /* @__PURE__ */ jsx123(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx123(ParameterInputInner, { ref, ...innerProps }) });
|
|
19727
19894
|
});
|
|
19728
|
-
var ParameterInputInner =
|
|
19895
|
+
var ParameterInputInner = forwardRef20(
|
|
19729
19896
|
({ ...props }, ref) => {
|
|
19730
19897
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
19731
|
-
return /* @__PURE__ */
|
|
19898
|
+
return /* @__PURE__ */ jsx123(
|
|
19732
19899
|
"input",
|
|
19733
19900
|
{
|
|
19734
19901
|
css: input3,
|
|
@@ -19744,19 +19911,19 @@ var ParameterInputInner = forwardRef19(
|
|
|
19744
19911
|
);
|
|
19745
19912
|
|
|
19746
19913
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
19747
|
-
import { forwardRef as
|
|
19748
|
-
import { jsx as
|
|
19749
|
-
var ParameterLink =
|
|
19914
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
19915
|
+
import { jsx as jsx124, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
19916
|
+
var ParameterLink = forwardRef21(
|
|
19750
19917
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
19751
19918
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19752
|
-
return /* @__PURE__ */
|
|
19919
|
+
return /* @__PURE__ */ jsx124(
|
|
19753
19920
|
ParameterShell,
|
|
19754
19921
|
{
|
|
19755
19922
|
"data-testid": "link-parameter-editor",
|
|
19756
19923
|
...shellProps,
|
|
19757
19924
|
label: innerProps.value ? shellProps.label : "",
|
|
19758
19925
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
19759
|
-
children: /* @__PURE__ */
|
|
19926
|
+
children: /* @__PURE__ */ jsx124(
|
|
19760
19927
|
ParameterLinkInner,
|
|
19761
19928
|
{
|
|
19762
19929
|
onConnectLink,
|
|
@@ -19769,13 +19936,13 @@ var ParameterLink = forwardRef20(
|
|
|
19769
19936
|
);
|
|
19770
19937
|
}
|
|
19771
19938
|
);
|
|
19772
|
-
var ParameterLinkInner =
|
|
19939
|
+
var ParameterLinkInner = forwardRef21(
|
|
19773
19940
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
19774
19941
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
19775
19942
|
if (!props.value)
|
|
19776
|
-
return /* @__PURE__ */
|
|
19777
|
-
return /* @__PURE__ */
|
|
19778
|
-
/* @__PURE__ */
|
|
19943
|
+
return /* @__PURE__ */ jsx124("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
19944
|
+
return /* @__PURE__ */ jsxs82("div", { css: inputWrapper, children: [
|
|
19945
|
+
/* @__PURE__ */ jsx124(
|
|
19779
19946
|
"input",
|
|
19780
19947
|
{
|
|
19781
19948
|
type: "text",
|
|
@@ -19787,8 +19954,8 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19787
19954
|
...props
|
|
19788
19955
|
}
|
|
19789
19956
|
),
|
|
19790
|
-
/* @__PURE__ */
|
|
19791
|
-
/* @__PURE__ */
|
|
19957
|
+
/* @__PURE__ */ jsxs82("div", { css: linkParameterControls, children: [
|
|
19958
|
+
/* @__PURE__ */ jsx124(
|
|
19792
19959
|
"button",
|
|
19793
19960
|
{
|
|
19794
19961
|
type: "button",
|
|
@@ -19799,7 +19966,7 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19799
19966
|
children: "edit"
|
|
19800
19967
|
}
|
|
19801
19968
|
),
|
|
19802
|
-
externalLink ? /* @__PURE__ */
|
|
19969
|
+
externalLink ? /* @__PURE__ */ jsx124(
|
|
19803
19970
|
"a",
|
|
19804
19971
|
{
|
|
19805
19972
|
href: externalLink,
|
|
@@ -19807,7 +19974,7 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19807
19974
|
title: "Open link in new tab",
|
|
19808
19975
|
target: "_blank",
|
|
19809
19976
|
rel: "noopener noreferrer",
|
|
19810
|
-
children: /* @__PURE__ */
|
|
19977
|
+
children: /* @__PURE__ */ jsx124(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
19811
19978
|
}
|
|
19812
19979
|
) : null
|
|
19813
19980
|
] })
|
|
@@ -19816,15 +19983,15 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19816
19983
|
);
|
|
19817
19984
|
|
|
19818
19985
|
// src/components/ParameterInputs/ParameterMultiSelect.tsx
|
|
19819
|
-
import { jsx as
|
|
19986
|
+
import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
|
|
19820
19987
|
var ParameterMultiSelect = ({ disabled: disabled2 = false, ...props }) => {
|
|
19821
19988
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19822
|
-
return /* @__PURE__ */
|
|
19989
|
+
return /* @__PURE__ */ jsx125(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx125(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
|
|
19823
19990
|
};
|
|
19824
19991
|
var ParameterMultiSelectInner = (props) => {
|
|
19825
19992
|
var _a;
|
|
19826
19993
|
const { id, label } = useParameterShell();
|
|
19827
|
-
return /* @__PURE__ */
|
|
19994
|
+
return /* @__PURE__ */ jsx125(
|
|
19828
19995
|
InputComboBox,
|
|
19829
19996
|
{
|
|
19830
19997
|
menuPortalTarget: document.body,
|
|
@@ -19874,7 +20041,7 @@ var ParameterMultiSelectInner = (props) => {
|
|
|
19874
20041
|
};
|
|
19875
20042
|
|
|
19876
20043
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
19877
|
-
import { Fragment as Fragment17, jsx as
|
|
20044
|
+
import { Fragment as Fragment17, jsx as jsx126, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
|
|
19878
20045
|
var ParameterNameAndPublicIdInput = ({
|
|
19879
20046
|
id,
|
|
19880
20047
|
onBlur,
|
|
@@ -19900,8 +20067,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19900
20067
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
19901
20068
|
};
|
|
19902
20069
|
autoFocus == null ? void 0 : autoFocus();
|
|
19903
|
-
return /* @__PURE__ */
|
|
19904
|
-
/* @__PURE__ */
|
|
20070
|
+
return /* @__PURE__ */ jsxs83(Fragment17, { children: [
|
|
20071
|
+
/* @__PURE__ */ jsx126(
|
|
19905
20072
|
ParameterInput,
|
|
19906
20073
|
{
|
|
19907
20074
|
id: nameIdField,
|
|
@@ -19920,7 +20087,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19920
20087
|
value: values[nameIdField]
|
|
19921
20088
|
}
|
|
19922
20089
|
),
|
|
19923
|
-
/* @__PURE__ */
|
|
20090
|
+
/* @__PURE__ */ jsx126(
|
|
19924
20091
|
ParameterInput,
|
|
19925
20092
|
{
|
|
19926
20093
|
id: publicIdFieldName,
|
|
@@ -19934,11 +20101,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19934
20101
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
19935
20102
|
placeholder: publicIdPlaceholderText,
|
|
19936
20103
|
errorMessage: publicIdError,
|
|
19937
|
-
menuItems: /* @__PURE__ */
|
|
20104
|
+
menuItems: /* @__PURE__ */ jsx126(
|
|
19938
20105
|
MenuItem,
|
|
19939
20106
|
{
|
|
19940
20107
|
disabled: !values[publicIdFieldName],
|
|
19941
|
-
icon: /* @__PURE__ */
|
|
20108
|
+
icon: /* @__PURE__ */ jsx126(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
19942
20109
|
onClick: handleCopyPidFieldValue,
|
|
19943
20110
|
children: "Copy"
|
|
19944
20111
|
}
|
|
@@ -19946,12 +20113,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19946
20113
|
value: values[publicIdFieldName]
|
|
19947
20114
|
}
|
|
19948
20115
|
),
|
|
19949
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
20116
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx126(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
19950
20117
|
] });
|
|
19951
20118
|
};
|
|
19952
20119
|
|
|
19953
20120
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
19954
|
-
import { css as
|
|
20121
|
+
import { css as css96 } from "@emotion/react";
|
|
19955
20122
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
19956
20123
|
import {
|
|
19957
20124
|
CODE,
|
|
@@ -20103,23 +20270,23 @@ function DisableStylesPlugin() {
|
|
|
20103
20270
|
}
|
|
20104
20271
|
|
|
20105
20272
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
20106
|
-
import { css as
|
|
20107
|
-
var textBold =
|
|
20273
|
+
import { css as css93 } from "@emotion/css";
|
|
20274
|
+
var textBold = css93`
|
|
20108
20275
|
font-weight: 700;
|
|
20109
20276
|
`;
|
|
20110
|
-
var textItalic =
|
|
20277
|
+
var textItalic = css93`
|
|
20111
20278
|
font-style: italic;
|
|
20112
20279
|
`;
|
|
20113
|
-
var textUnderline =
|
|
20280
|
+
var textUnderline = css93`
|
|
20114
20281
|
text-decoration: underline;
|
|
20115
20282
|
`;
|
|
20116
|
-
var textStrikethrough =
|
|
20283
|
+
var textStrikethrough = css93`
|
|
20117
20284
|
text-decoration: line-through;
|
|
20118
20285
|
`;
|
|
20119
|
-
var textUnderlineStrikethrough =
|
|
20286
|
+
var textUnderlineStrikethrough = css93`
|
|
20120
20287
|
text-decoration: underline line-through;
|
|
20121
20288
|
`;
|
|
20122
|
-
var textCode =
|
|
20289
|
+
var textCode = css93`
|
|
20123
20290
|
background-color: var(--gray-100);
|
|
20124
20291
|
border-radius: var(--rounded-sm);
|
|
20125
20292
|
display: inline-block;
|
|
@@ -20130,68 +20297,68 @@ var textCode = css91`
|
|
|
20130
20297
|
padding-left: var(--spacing-xs);
|
|
20131
20298
|
padding-right: var(--spacing-xs);
|
|
20132
20299
|
`;
|
|
20133
|
-
var textSuperscript =
|
|
20300
|
+
var textSuperscript = css93`
|
|
20134
20301
|
vertical-align: super;
|
|
20135
20302
|
font-size: smaller;
|
|
20136
20303
|
`;
|
|
20137
|
-
var textSubscript =
|
|
20304
|
+
var textSubscript = css93`
|
|
20138
20305
|
vertical-align: sub;
|
|
20139
20306
|
font-size: smaller;
|
|
20140
20307
|
`;
|
|
20141
|
-
var linkElement =
|
|
20308
|
+
var linkElement = css93`
|
|
20142
20309
|
${link}
|
|
20143
20310
|
${linkColorDefault}
|
|
20144
20311
|
text-decoration: underline;
|
|
20145
20312
|
`;
|
|
20146
|
-
var h12 =
|
|
20313
|
+
var h12 = css93`
|
|
20147
20314
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
20148
20315
|
`;
|
|
20149
|
-
var h22 =
|
|
20316
|
+
var h22 = css93`
|
|
20150
20317
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
20151
20318
|
`;
|
|
20152
|
-
var h32 =
|
|
20319
|
+
var h32 = css93`
|
|
20153
20320
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
20154
20321
|
`;
|
|
20155
|
-
var h42 =
|
|
20322
|
+
var h42 = css93`
|
|
20156
20323
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
20157
20324
|
`;
|
|
20158
|
-
var h52 =
|
|
20325
|
+
var h52 = css93`
|
|
20159
20326
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
20160
20327
|
`;
|
|
20161
|
-
var h62 =
|
|
20328
|
+
var h62 = css93`
|
|
20162
20329
|
font-size: var(--fs-base);
|
|
20163
20330
|
`;
|
|
20164
|
-
var heading1Element =
|
|
20331
|
+
var heading1Element = css93`
|
|
20165
20332
|
${h12}
|
|
20166
20333
|
${commonHeadingAttr(true)}
|
|
20167
20334
|
${commonLineHeight}
|
|
20168
20335
|
`;
|
|
20169
|
-
var heading2Element =
|
|
20336
|
+
var heading2Element = css93`
|
|
20170
20337
|
${h22}
|
|
20171
20338
|
${commonHeadingAttr(true)}
|
|
20172
20339
|
${commonLineHeight}
|
|
20173
20340
|
`;
|
|
20174
|
-
var heading3Element =
|
|
20341
|
+
var heading3Element = css93`
|
|
20175
20342
|
${h32}
|
|
20176
20343
|
${commonHeadingAttr(true)}
|
|
20177
20344
|
${commonLineHeight}
|
|
20178
20345
|
`;
|
|
20179
|
-
var heading4Element =
|
|
20346
|
+
var heading4Element = css93`
|
|
20180
20347
|
${h42}
|
|
20181
20348
|
${commonHeadingAttr(true)}
|
|
20182
20349
|
${commonLineHeight}
|
|
20183
20350
|
`;
|
|
20184
|
-
var heading5Element =
|
|
20351
|
+
var heading5Element = css93`
|
|
20185
20352
|
${h52}
|
|
20186
20353
|
${commonHeadingAttr(true)}
|
|
20187
20354
|
${commonLineHeight}
|
|
20188
20355
|
`;
|
|
20189
|
-
var heading6Element =
|
|
20356
|
+
var heading6Element = css93`
|
|
20190
20357
|
${h62}
|
|
20191
20358
|
${commonHeadingAttr(true)}
|
|
20192
20359
|
${commonLineHeight}
|
|
20193
20360
|
`;
|
|
20194
|
-
var paragraphElement =
|
|
20361
|
+
var paragraphElement = css93`
|
|
20195
20362
|
line-height: 1.5;
|
|
20196
20363
|
margin-bottom: var(--spacing-base);
|
|
20197
20364
|
|
|
@@ -20199,7 +20366,7 @@ var paragraphElement = css91`
|
|
|
20199
20366
|
margin-bottom: 0;
|
|
20200
20367
|
}
|
|
20201
20368
|
`;
|
|
20202
|
-
var orderedListElement =
|
|
20369
|
+
var orderedListElement = css93`
|
|
20203
20370
|
${commonLineHeight}
|
|
20204
20371
|
display: block;
|
|
20205
20372
|
list-style: decimal;
|
|
@@ -20228,7 +20395,7 @@ var orderedListElement = css91`
|
|
|
20228
20395
|
}
|
|
20229
20396
|
}
|
|
20230
20397
|
`;
|
|
20231
|
-
var unorderedListElement =
|
|
20398
|
+
var unorderedListElement = css93`
|
|
20232
20399
|
${commonLineHeight}
|
|
20233
20400
|
display: block;
|
|
20234
20401
|
list-style: disc;
|
|
@@ -20249,13 +20416,13 @@ var unorderedListElement = css91`
|
|
|
20249
20416
|
}
|
|
20250
20417
|
}
|
|
20251
20418
|
`;
|
|
20252
|
-
var listItemElement =
|
|
20419
|
+
var listItemElement = css93`
|
|
20253
20420
|
margin-left: var(--spacing-md);
|
|
20254
20421
|
`;
|
|
20255
|
-
var nestedListItemElement =
|
|
20422
|
+
var nestedListItemElement = css93`
|
|
20256
20423
|
list-style-type: none;
|
|
20257
20424
|
`;
|
|
20258
|
-
var blockquoteElement =
|
|
20425
|
+
var blockquoteElement = css93`
|
|
20259
20426
|
border-left: 0.25rem solid var(--gray-300);
|
|
20260
20427
|
color: var(--gray-600);
|
|
20261
20428
|
margin-bottom: var(--spacing-base);
|
|
@@ -20265,7 +20432,7 @@ var blockquoteElement = css91`
|
|
|
20265
20432
|
margin-bottom: 0;
|
|
20266
20433
|
}
|
|
20267
20434
|
`;
|
|
20268
|
-
var codeElement =
|
|
20435
|
+
var codeElement = css93`
|
|
20269
20436
|
background-color: var(--gray-100);
|
|
20270
20437
|
border-radius: var(--rounded-sm);
|
|
20271
20438
|
display: block;
|
|
@@ -20282,7 +20449,7 @@ var codeElement = css91`
|
|
|
20282
20449
|
`;
|
|
20283
20450
|
|
|
20284
20451
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
20285
|
-
import { css as
|
|
20452
|
+
import { css as css94 } from "@emotion/react";
|
|
20286
20453
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
20287
20454
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
20288
20455
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -20335,7 +20502,7 @@ var getSelectedNode = (selection) => {
|
|
|
20335
20502
|
};
|
|
20336
20503
|
|
|
20337
20504
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
20338
|
-
import { Fragment as Fragment18, jsx as
|
|
20505
|
+
import { Fragment as Fragment18, jsx as jsx127, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
20339
20506
|
var isProjectMapLinkValue = (value) => {
|
|
20340
20507
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
20341
20508
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -20622,16 +20789,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
20622
20789
|
);
|
|
20623
20790
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
20624
20791
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
20625
|
-
var linkPopover =
|
|
20792
|
+
var linkPopover = css94`
|
|
20626
20793
|
position: absolute;
|
|
20627
20794
|
z-index: 5;
|
|
20628
20795
|
`;
|
|
20629
|
-
var linkPopoverContainer =
|
|
20630
|
-
${Popover};
|
|
20796
|
+
var linkPopoverContainer = css94`
|
|
20797
|
+
${Popover()};
|
|
20631
20798
|
align-items: center;
|
|
20632
20799
|
display: flex;
|
|
20633
20800
|
`;
|
|
20634
|
-
var linkPopoverAnchor =
|
|
20801
|
+
var linkPopoverAnchor = css94`
|
|
20635
20802
|
${link}
|
|
20636
20803
|
${linkColorDefault}
|
|
20637
20804
|
`;
|
|
@@ -20778,8 +20945,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20778
20945
|
});
|
|
20779
20946
|
});
|
|
20780
20947
|
};
|
|
20781
|
-
return /* @__PURE__ */
|
|
20782
|
-
/* @__PURE__ */
|
|
20948
|
+
return /* @__PURE__ */ jsxs84(Fragment18, { children: [
|
|
20949
|
+
/* @__PURE__ */ jsx127(
|
|
20783
20950
|
NodeEventPlugin,
|
|
20784
20951
|
{
|
|
20785
20952
|
nodeType: LinkNode,
|
|
@@ -20789,7 +20956,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20789
20956
|
}
|
|
20790
20957
|
}
|
|
20791
20958
|
),
|
|
20792
|
-
linkPopoverState ? /* @__PURE__ */
|
|
20959
|
+
linkPopoverState ? /* @__PURE__ */ jsx127(
|
|
20793
20960
|
"div",
|
|
20794
20961
|
{
|
|
20795
20962
|
css: linkPopover,
|
|
@@ -20798,8 +20965,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20798
20965
|
top: linkPopoverState.position.y
|
|
20799
20966
|
},
|
|
20800
20967
|
ref: linkPopoverElRef,
|
|
20801
|
-
children: /* @__PURE__ */
|
|
20802
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
20968
|
+
children: /* @__PURE__ */ jsxs84("div", { css: linkPopoverContainer, children: [
|
|
20969
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx127(
|
|
20803
20970
|
"a",
|
|
20804
20971
|
{
|
|
20805
20972
|
href: parsePath(
|
|
@@ -20811,7 +20978,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20811
20978
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
20812
20979
|
}
|
|
20813
20980
|
),
|
|
20814
|
-
/* @__PURE__ */
|
|
20981
|
+
/* @__PURE__ */ jsx127(
|
|
20815
20982
|
Button,
|
|
20816
20983
|
{
|
|
20817
20984
|
size: "xs",
|
|
@@ -20819,7 +20986,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20819
20986
|
onEditLinkNode(linkPopoverState.node);
|
|
20820
20987
|
},
|
|
20821
20988
|
buttonType: "ghost",
|
|
20822
|
-
children: /* @__PURE__ */
|
|
20989
|
+
children: /* @__PURE__ */ jsx127(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
20823
20990
|
}
|
|
20824
20991
|
)
|
|
20825
20992
|
] })
|
|
@@ -20844,7 +21011,7 @@ import {
|
|
|
20844
21011
|
INDENT_CONTENT_COMMAND
|
|
20845
21012
|
} from "lexical";
|
|
20846
21013
|
import { useEffect as useEffect19 } from "react";
|
|
20847
|
-
import { jsx as
|
|
21014
|
+
import { jsx as jsx128 } from "@emotion/react/jsx-runtime";
|
|
20848
21015
|
function isIndentPermitted(maxDepth) {
|
|
20849
21016
|
const selection = $getSelection2();
|
|
20850
21017
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -20874,11 +21041,11 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
20874
21041
|
COMMAND_PRIORITY_CRITICAL
|
|
20875
21042
|
);
|
|
20876
21043
|
}, [editor, maxDepth]);
|
|
20877
|
-
return /* @__PURE__ */
|
|
21044
|
+
return /* @__PURE__ */ jsx128(TabIndentationPlugin, {});
|
|
20878
21045
|
}
|
|
20879
21046
|
|
|
20880
21047
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
20881
|
-
import { css as
|
|
21048
|
+
import { css as css95 } from "@emotion/react";
|
|
20882
21049
|
import { $createCodeNode } from "@lexical/code";
|
|
20883
21050
|
import {
|
|
20884
21051
|
$isListNode as $isListNode2,
|
|
@@ -20901,8 +21068,8 @@ import {
|
|
|
20901
21068
|
SELECTION_CHANGE_COMMAND
|
|
20902
21069
|
} from "lexical";
|
|
20903
21070
|
import { useCallback as useCallback11, useEffect as useEffect20, useMemo as useMemo6, useState as useState17 } from "react";
|
|
20904
|
-
import { Fragment as Fragment19, jsx as
|
|
20905
|
-
var toolbar =
|
|
21071
|
+
import { Fragment as Fragment19, jsx as jsx129, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
21072
|
+
var toolbar = css95`
|
|
20906
21073
|
background: var(--gray-50);
|
|
20907
21074
|
border-radius: var(--rounded-base);
|
|
20908
21075
|
display: flex;
|
|
@@ -20914,7 +21081,7 @@ var toolbar = css93`
|
|
|
20914
21081
|
top: calc(var(--spacing-sm) * -2);
|
|
20915
21082
|
z-index: 10;
|
|
20916
21083
|
`;
|
|
20917
|
-
var toolbarGroup =
|
|
21084
|
+
var toolbarGroup = css95`
|
|
20918
21085
|
display: flex;
|
|
20919
21086
|
gap: var(--spacing-xs);
|
|
20920
21087
|
position: relative;
|
|
@@ -20930,7 +21097,7 @@ var toolbarGroup = css93`
|
|
|
20930
21097
|
width: 1px;
|
|
20931
21098
|
}
|
|
20932
21099
|
`;
|
|
20933
|
-
var richTextToolbarButton =
|
|
21100
|
+
var richTextToolbarButton = css95`
|
|
20934
21101
|
align-items: center;
|
|
20935
21102
|
appearance: none;
|
|
20936
21103
|
border: 0;
|
|
@@ -20943,17 +21110,17 @@ var richTextToolbarButton = css93`
|
|
|
20943
21110
|
min-width: 32px;
|
|
20944
21111
|
padding: 0 var(--spacing-sm);
|
|
20945
21112
|
`;
|
|
20946
|
-
var richTextToolbarButtonActive =
|
|
21113
|
+
var richTextToolbarButtonActive = css95`
|
|
20947
21114
|
background: var(--gray-200);
|
|
20948
21115
|
`;
|
|
20949
|
-
var toolbarIcon =
|
|
21116
|
+
var toolbarIcon = css95`
|
|
20950
21117
|
color: inherit;
|
|
20951
21118
|
`;
|
|
20952
|
-
var toolbarChevron =
|
|
21119
|
+
var toolbarChevron = css95`
|
|
20953
21120
|
margin-left: var(--spacing-xs);
|
|
20954
21121
|
`;
|
|
20955
21122
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
20956
|
-
return /* @__PURE__ */
|
|
21123
|
+
return /* @__PURE__ */ jsx129(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
20957
21124
|
};
|
|
20958
21125
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
20959
21126
|
["bold", "format-bold"],
|
|
@@ -21062,15 +21229,15 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21062
21229
|
});
|
|
21063
21230
|
});
|
|
21064
21231
|
}, [editor, updateToolbar]);
|
|
21065
|
-
return /* @__PURE__ */
|
|
21066
|
-
/* @__PURE__ */
|
|
21232
|
+
return /* @__PURE__ */ jsxs85("div", { css: toolbar, children: [
|
|
21233
|
+
/* @__PURE__ */ jsxs85(
|
|
21067
21234
|
Menu,
|
|
21068
21235
|
{
|
|
21069
21236
|
menuLabel: "Elements",
|
|
21070
|
-
menuTrigger: /* @__PURE__ */
|
|
21237
|
+
menuTrigger: /* @__PURE__ */ jsxs85("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
21071
21238
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
21072
21239
|
" ",
|
|
21073
|
-
/* @__PURE__ */
|
|
21240
|
+
/* @__PURE__ */ jsx129(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
21074
21241
|
] }),
|
|
21075
21242
|
placement: "bottom-start",
|
|
21076
21243
|
children: [
|
|
@@ -21080,7 +21247,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21080
21247
|
type: "paragraph"
|
|
21081
21248
|
},
|
|
21082
21249
|
...visibleTextualElements
|
|
21083
|
-
].map((element) => /* @__PURE__ */
|
|
21250
|
+
].map((element) => /* @__PURE__ */ jsx129(
|
|
21084
21251
|
MenuItem,
|
|
21085
21252
|
{
|
|
21086
21253
|
onClick: () => {
|
|
@@ -21090,12 +21257,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21090
21257
|
},
|
|
21091
21258
|
element.type
|
|
21092
21259
|
)),
|
|
21093
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
21260
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx129(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
21094
21261
|
]
|
|
21095
21262
|
}
|
|
21096
21263
|
),
|
|
21097
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
21098
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
21264
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs85("div", { css: toolbarGroup, children: [
|
|
21265
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx129(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21099
21266
|
"button",
|
|
21100
21267
|
{
|
|
21101
21268
|
onClick: () => {
|
|
@@ -21105,16 +21272,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21105
21272
|
richTextToolbarButton,
|
|
21106
21273
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
21107
21274
|
],
|
|
21108
|
-
children: /* @__PURE__ */
|
|
21275
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
21109
21276
|
}
|
|
21110
21277
|
) }, format.type)),
|
|
21111
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
21278
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx129(
|
|
21112
21279
|
Menu,
|
|
21113
21280
|
{
|
|
21114
21281
|
menuLabel: "Alternative text styles",
|
|
21115
|
-
menuTrigger: /* @__PURE__ */
|
|
21282
|
+
menuTrigger: /* @__PURE__ */ jsx129("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx129(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
21116
21283
|
placement: "bottom-start",
|
|
21117
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
21284
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx129(
|
|
21118
21285
|
MenuItem,
|
|
21119
21286
|
{
|
|
21120
21287
|
onClick: () => {
|
|
@@ -21127,19 +21294,19 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21127
21294
|
}
|
|
21128
21295
|
) : null
|
|
21129
21296
|
] }) : null,
|
|
21130
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
21131
|
-
linkElementVisible ? /* @__PURE__ */
|
|
21297
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs85("div", { css: toolbarGroup, children: [
|
|
21298
|
+
linkElementVisible ? /* @__PURE__ */ jsx129(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21132
21299
|
"button",
|
|
21133
21300
|
{
|
|
21134
21301
|
onClick: () => {
|
|
21135
21302
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
21136
21303
|
},
|
|
21137
21304
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
21138
|
-
children: /* @__PURE__ */
|
|
21305
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "link" })
|
|
21139
21306
|
}
|
|
21140
21307
|
) }) : null,
|
|
21141
|
-
visibleLists.size > 0 ? /* @__PURE__ */
|
|
21142
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
21308
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs85(Fragment19, { children: [
|
|
21309
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx129(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21143
21310
|
"button",
|
|
21144
21311
|
{
|
|
21145
21312
|
onClick: () => {
|
|
@@ -21149,10 +21316,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21149
21316
|
richTextToolbarButton,
|
|
21150
21317
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
21151
21318
|
],
|
|
21152
|
-
children: /* @__PURE__ */
|
|
21319
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "layout-list" })
|
|
21153
21320
|
}
|
|
21154
21321
|
) }) : null,
|
|
21155
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
21322
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx129(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21156
21323
|
"button",
|
|
21157
21324
|
{
|
|
21158
21325
|
onClick: () => {
|
|
@@ -21162,32 +21329,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21162
21329
|
richTextToolbarButton,
|
|
21163
21330
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
21164
21331
|
],
|
|
21165
|
-
children: /* @__PURE__ */
|
|
21332
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
21166
21333
|
}
|
|
21167
21334
|
) }) : null
|
|
21168
21335
|
] }) : null,
|
|
21169
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
21336
|
+
quoteElementVisible ? /* @__PURE__ */ jsx129(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21170
21337
|
"button",
|
|
21171
21338
|
{
|
|
21172
21339
|
onClick: () => {
|
|
21173
21340
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
21174
21341
|
},
|
|
21175
21342
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
21176
|
-
children: /* @__PURE__ */
|
|
21343
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "quote" })
|
|
21177
21344
|
}
|
|
21178
21345
|
) }) : null,
|
|
21179
|
-
codeElementVisible ? /* @__PURE__ */
|
|
21346
|
+
codeElementVisible ? /* @__PURE__ */ jsx129(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21180
21347
|
"button",
|
|
21181
21348
|
{
|
|
21182
21349
|
onClick: () => {
|
|
21183
21350
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
21184
21351
|
},
|
|
21185
21352
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
21186
|
-
children: /* @__PURE__ */
|
|
21353
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "code-slash" })
|
|
21187
21354
|
}
|
|
21188
21355
|
) }) : null
|
|
21189
21356
|
] }) : null,
|
|
21190
|
-
customControls ? /* @__PURE__ */
|
|
21357
|
+
customControls ? /* @__PURE__ */ jsx129("div", { css: toolbarGroup, children: customControls }) : null
|
|
21191
21358
|
] });
|
|
21192
21359
|
};
|
|
21193
21360
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -21301,7 +21468,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
21301
21468
|
};
|
|
21302
21469
|
|
|
21303
21470
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
21304
|
-
import { Fragment as Fragment20, jsx as
|
|
21471
|
+
import { Fragment as Fragment20, jsx as jsx130, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
21305
21472
|
var ParameterRichText = ({
|
|
21306
21473
|
label,
|
|
21307
21474
|
labelLeadingIcon,
|
|
@@ -21326,7 +21493,7 @@ var ParameterRichText = ({
|
|
|
21326
21493
|
variables,
|
|
21327
21494
|
customControls
|
|
21328
21495
|
}) => {
|
|
21329
|
-
return /* @__PURE__ */
|
|
21496
|
+
return /* @__PURE__ */ jsxs86(
|
|
21330
21497
|
ParameterShell,
|
|
21331
21498
|
{
|
|
21332
21499
|
"data-testid": "parameter-richtext",
|
|
@@ -21340,7 +21507,7 @@ var ParameterRichText = ({
|
|
|
21340
21507
|
captionTestId,
|
|
21341
21508
|
menuItems,
|
|
21342
21509
|
children: [
|
|
21343
|
-
/* @__PURE__ */
|
|
21510
|
+
/* @__PURE__ */ jsx130(
|
|
21344
21511
|
ParameterRichTextInner,
|
|
21345
21512
|
{
|
|
21346
21513
|
value,
|
|
@@ -21358,23 +21525,23 @@ var ParameterRichText = ({
|
|
|
21358
21525
|
children
|
|
21359
21526
|
}
|
|
21360
21527
|
),
|
|
21361
|
-
menuItems ? /* @__PURE__ */
|
|
21528
|
+
menuItems ? /* @__PURE__ */ jsx130(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx130(Fragment20, { children: menuItems }) }) : null
|
|
21362
21529
|
]
|
|
21363
21530
|
}
|
|
21364
21531
|
);
|
|
21365
21532
|
};
|
|
21366
|
-
var editorWrapper =
|
|
21533
|
+
var editorWrapper = css96`
|
|
21367
21534
|
display: flex;
|
|
21368
21535
|
flex-flow: column;
|
|
21369
21536
|
flex-grow: 1;
|
|
21370
21537
|
`;
|
|
21371
|
-
var editorContainer =
|
|
21538
|
+
var editorContainer = css96`
|
|
21372
21539
|
display: flex;
|
|
21373
21540
|
flex-flow: column;
|
|
21374
21541
|
flex-grow: 1;
|
|
21375
21542
|
position: relative;
|
|
21376
21543
|
`;
|
|
21377
|
-
var editorPlaceholder =
|
|
21544
|
+
var editorPlaceholder = css96`
|
|
21378
21545
|
color: var(--gray-500);
|
|
21379
21546
|
font-style: italic;
|
|
21380
21547
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -21385,7 +21552,7 @@ var editorPlaceholder = css94`
|
|
|
21385
21552
|
top: var(--spacing-sm);
|
|
21386
21553
|
user-select: none;
|
|
21387
21554
|
`;
|
|
21388
|
-
var editorInput =
|
|
21555
|
+
var editorInput = css96`
|
|
21389
21556
|
background: var(--white);
|
|
21390
21557
|
border: 1px solid var(--gray-200);
|
|
21391
21558
|
border-radius: var(--rounded-sm);
|
|
@@ -21469,8 +21636,8 @@ var ParameterRichTextInner = ({
|
|
|
21469
21636
|
},
|
|
21470
21637
|
editable: !readOnly
|
|
21471
21638
|
};
|
|
21472
|
-
return /* @__PURE__ */
|
|
21473
|
-
/* @__PURE__ */
|
|
21639
|
+
return /* @__PURE__ */ jsxs86(Fragment20, { children: [
|
|
21640
|
+
/* @__PURE__ */ jsx130("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx130(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx130(
|
|
21474
21641
|
RichText,
|
|
21475
21642
|
{
|
|
21476
21643
|
onChange,
|
|
@@ -21529,20 +21696,20 @@ var RichText = ({
|
|
|
21529
21696
|
useEffect21(() => {
|
|
21530
21697
|
editor.setEditable(!readOnly);
|
|
21531
21698
|
}, [editor, readOnly]);
|
|
21532
|
-
return /* @__PURE__ */
|
|
21533
|
-
readOnly ? null : /* @__PURE__ */
|
|
21534
|
-
/* @__PURE__ */
|
|
21535
|
-
/* @__PURE__ */
|
|
21699
|
+
return /* @__PURE__ */ jsxs86(Fragment20, { children: [
|
|
21700
|
+
readOnly ? null : /* @__PURE__ */ jsx130(RichTextToolbar_default, { config, customControls }),
|
|
21701
|
+
/* @__PURE__ */ jsxs86("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
21702
|
+
/* @__PURE__ */ jsx130(
|
|
21536
21703
|
RichTextPlugin,
|
|
21537
21704
|
{
|
|
21538
|
-
contentEditable: /* @__PURE__ */
|
|
21539
|
-
placeholder: /* @__PURE__ */
|
|
21705
|
+
contentEditable: /* @__PURE__ */ jsx130(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
21706
|
+
placeholder: /* @__PURE__ */ jsx130("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
21540
21707
|
ErrorBoundary: LexicalErrorBoundary
|
|
21541
21708
|
}
|
|
21542
21709
|
),
|
|
21543
|
-
/* @__PURE__ */
|
|
21544
|
-
readOnly ? null : /* @__PURE__ */
|
|
21545
|
-
/* @__PURE__ */
|
|
21710
|
+
/* @__PURE__ */ jsx130(ListPlugin, {}),
|
|
21711
|
+
readOnly ? null : /* @__PURE__ */ jsx130(HistoryPlugin, {}),
|
|
21712
|
+
/* @__PURE__ */ jsx130(
|
|
21546
21713
|
LinkNodePlugin,
|
|
21547
21714
|
{
|
|
21548
21715
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -21552,27 +21719,27 @@ var RichText = ({
|
|
|
21552
21719
|
} : void 0
|
|
21553
21720
|
}
|
|
21554
21721
|
),
|
|
21555
|
-
/* @__PURE__ */
|
|
21556
|
-
/* @__PURE__ */
|
|
21557
|
-
/* @__PURE__ */
|
|
21558
|
-
/* @__PURE__ */
|
|
21722
|
+
/* @__PURE__ */ jsx130(ListIndentPlugin, { maxDepth: 4 }),
|
|
21723
|
+
/* @__PURE__ */ jsx130(DisableStylesPlugin, {}),
|
|
21724
|
+
/* @__PURE__ */ jsx130(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
21725
|
+
/* @__PURE__ */ jsx130(Fragment20, { children })
|
|
21559
21726
|
] })
|
|
21560
21727
|
] });
|
|
21561
21728
|
};
|
|
21562
21729
|
|
|
21563
21730
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
21564
|
-
import { forwardRef as
|
|
21565
|
-
import { jsx as
|
|
21566
|
-
var ParameterSelect =
|
|
21731
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
21732
|
+
import { jsx as jsx131, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
|
|
21733
|
+
var ParameterSelect = forwardRef22(
|
|
21567
21734
|
({ defaultOption, options, ...props }, ref) => {
|
|
21568
21735
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
21569
|
-
return /* @__PURE__ */
|
|
21736
|
+
return /* @__PURE__ */ jsx131(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx131(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
21570
21737
|
}
|
|
21571
21738
|
);
|
|
21572
|
-
var ParameterSelectInner =
|
|
21739
|
+
var ParameterSelectInner = forwardRef22(
|
|
21573
21740
|
({ defaultOption, options, ...props }, ref) => {
|
|
21574
21741
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
21575
|
-
return /* @__PURE__ */
|
|
21742
|
+
return /* @__PURE__ */ jsxs87(
|
|
21576
21743
|
"select",
|
|
21577
21744
|
{
|
|
21578
21745
|
css: [input3, selectInput],
|
|
@@ -21581,10 +21748,10 @@ var ParameterSelectInner = forwardRef21(
|
|
|
21581
21748
|
ref,
|
|
21582
21749
|
...props,
|
|
21583
21750
|
children: [
|
|
21584
|
-
defaultOption ? /* @__PURE__ */
|
|
21751
|
+
defaultOption ? /* @__PURE__ */ jsx131("option", { value: "", children: defaultOption }) : null,
|
|
21585
21752
|
options.map((option) => {
|
|
21586
21753
|
var _a;
|
|
21587
|
-
return /* @__PURE__ */
|
|
21754
|
+
return /* @__PURE__ */ jsx131("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
21588
21755
|
})
|
|
21589
21756
|
]
|
|
21590
21757
|
}
|
|
@@ -21593,15 +21760,15 @@ var ParameterSelectInner = forwardRef21(
|
|
|
21593
21760
|
);
|
|
21594
21761
|
|
|
21595
21762
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
21596
|
-
import { forwardRef as
|
|
21597
|
-
import { jsx as
|
|
21598
|
-
var ParameterTextarea =
|
|
21763
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
21764
|
+
import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
|
|
21765
|
+
var ParameterTextarea = forwardRef23((props, ref) => {
|
|
21599
21766
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
21600
|
-
return /* @__PURE__ */
|
|
21767
|
+
return /* @__PURE__ */ jsx132(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx132(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
21601
21768
|
});
|
|
21602
|
-
var ParameterTextareaInner =
|
|
21769
|
+
var ParameterTextareaInner = forwardRef23(({ ...props }, ref) => {
|
|
21603
21770
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
21604
|
-
return /* @__PURE__ */
|
|
21771
|
+
return /* @__PURE__ */ jsx132(
|
|
21605
21772
|
"textarea",
|
|
21606
21773
|
{
|
|
21607
21774
|
css: [input3, textarea2],
|
|
@@ -21614,26 +21781,26 @@ var ParameterTextareaInner = forwardRef22(({ ...props }, ref) => {
|
|
|
21614
21781
|
});
|
|
21615
21782
|
|
|
21616
21783
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
21617
|
-
import { forwardRef as
|
|
21618
|
-
import { jsx as
|
|
21619
|
-
var ParameterToggle =
|
|
21784
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
21785
|
+
import { jsx as jsx133, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
21786
|
+
var ParameterToggle = forwardRef24((props, ref) => {
|
|
21620
21787
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
21621
|
-
return /* @__PURE__ */
|
|
21788
|
+
return /* @__PURE__ */ jsx133(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx133(ParameterToggleInner, { ref, ...innerProps }) });
|
|
21622
21789
|
});
|
|
21623
|
-
var ParameterToggleInner =
|
|
21790
|
+
var ParameterToggleInner = forwardRef24(
|
|
21624
21791
|
({ children, ...props }, ref) => {
|
|
21625
21792
|
const { id, label } = useParameterShell();
|
|
21626
|
-
return /* @__PURE__ */
|
|
21627
|
-
/* @__PURE__ */
|
|
21628
|
-
/* @__PURE__ */
|
|
21793
|
+
return /* @__PURE__ */ jsxs88("label", { css: inputToggleLabel2, children: [
|
|
21794
|
+
/* @__PURE__ */ jsx133("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
21795
|
+
/* @__PURE__ */ jsx133("span", { css: inlineLabel2, children: label }),
|
|
21629
21796
|
children
|
|
21630
21797
|
] });
|
|
21631
21798
|
}
|
|
21632
21799
|
);
|
|
21633
21800
|
|
|
21634
21801
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
21635
|
-
import { css as
|
|
21636
|
-
var container3 =
|
|
21802
|
+
import { css as css97, keyframes as keyframes4 } from "@emotion/react";
|
|
21803
|
+
var container3 = css97`
|
|
21637
21804
|
background: var(--gray-50);
|
|
21638
21805
|
margin-block: var(--spacing-sm);
|
|
21639
21806
|
position: relative;
|
|
@@ -21643,13 +21810,13 @@ var container3 = css95`
|
|
|
21643
21810
|
border: solid 1px var(--gray-300);
|
|
21644
21811
|
`;
|
|
21645
21812
|
var themeMap = {
|
|
21646
|
-
primary:
|
|
21813
|
+
primary: css97`
|
|
21647
21814
|
--progress-color: var(--accent-light);
|
|
21648
21815
|
`,
|
|
21649
|
-
secondary:
|
|
21816
|
+
secondary: css97`
|
|
21650
21817
|
--progress-color: var(--accent-alt-light);
|
|
21651
21818
|
`,
|
|
21652
|
-
destructive:
|
|
21819
|
+
destructive: css97`
|
|
21653
21820
|
--progress-color: var(--brand-secondary-5);
|
|
21654
21821
|
`
|
|
21655
21822
|
};
|
|
@@ -21661,10 +21828,10 @@ var slidingBackgroundPosition = keyframes4`
|
|
|
21661
21828
|
background-position: 64px 0;
|
|
21662
21829
|
}
|
|
21663
21830
|
`;
|
|
21664
|
-
var determinate =
|
|
21831
|
+
var determinate = css97`
|
|
21665
21832
|
background-color: var(--progress-color);
|
|
21666
21833
|
`;
|
|
21667
|
-
var indeterminate =
|
|
21834
|
+
var indeterminate = css97`
|
|
21668
21835
|
background-image: linear-gradient(
|
|
21669
21836
|
45deg,
|
|
21670
21837
|
var(--progress-color) 25%,
|
|
@@ -21678,7 +21845,7 @@ var indeterminate = css95`
|
|
|
21678
21845
|
background-size: 64px 64px;
|
|
21679
21846
|
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
21680
21847
|
`;
|
|
21681
|
-
var bar =
|
|
21848
|
+
var bar = css97`
|
|
21682
21849
|
position: absolute;
|
|
21683
21850
|
inset: 0;
|
|
21684
21851
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -21686,7 +21853,7 @@ var bar = css95`
|
|
|
21686
21853
|
`;
|
|
21687
21854
|
|
|
21688
21855
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
21689
|
-
import { jsx as
|
|
21856
|
+
import { jsx as jsx134 } from "@emotion/react/jsx-runtime";
|
|
21690
21857
|
function ProgressBar({
|
|
21691
21858
|
current,
|
|
21692
21859
|
max,
|
|
@@ -21696,7 +21863,7 @@ function ProgressBar({
|
|
|
21696
21863
|
}) {
|
|
21697
21864
|
const valueNow = Math.min(current, max);
|
|
21698
21865
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
21699
|
-
return /* @__PURE__ */
|
|
21866
|
+
return /* @__PURE__ */ jsx134(
|
|
21700
21867
|
"div",
|
|
21701
21868
|
{
|
|
21702
21869
|
css: container3,
|
|
@@ -21707,7 +21874,7 @@ function ProgressBar({
|
|
|
21707
21874
|
"aria-valuemax": max,
|
|
21708
21875
|
"aria-valuenow": valueNow,
|
|
21709
21876
|
...props,
|
|
21710
|
-
children: /* @__PURE__ */
|
|
21877
|
+
children: /* @__PURE__ */ jsx134(
|
|
21711
21878
|
"div",
|
|
21712
21879
|
{
|
|
21713
21880
|
css: [
|
|
@@ -21726,28 +21893,28 @@ function ProgressBar({
|
|
|
21726
21893
|
}
|
|
21727
21894
|
|
|
21728
21895
|
// src/components/ProgressList/ProgressList.tsx
|
|
21729
|
-
import { css as
|
|
21896
|
+
import { css as css99 } from "@emotion/react";
|
|
21730
21897
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
21731
21898
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
21732
21899
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
21733
21900
|
import { useMemo as useMemo7 } from "react";
|
|
21734
21901
|
|
|
21735
21902
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
21736
|
-
import { css as
|
|
21737
|
-
var progressListStyles =
|
|
21903
|
+
import { css as css98 } from "@emotion/react";
|
|
21904
|
+
var progressListStyles = css98`
|
|
21738
21905
|
display: flex;
|
|
21739
21906
|
flex-direction: column;
|
|
21740
21907
|
gap: var(--spacing-sm);
|
|
21741
21908
|
list-style-type: none;
|
|
21742
21909
|
`;
|
|
21743
|
-
var progressListItemStyles =
|
|
21910
|
+
var progressListItemStyles = css98`
|
|
21744
21911
|
display: flex;
|
|
21745
21912
|
gap: var(--spacing-base);
|
|
21746
21913
|
align-items: center;
|
|
21747
21914
|
`;
|
|
21748
21915
|
|
|
21749
21916
|
// src/components/ProgressList/ProgressList.tsx
|
|
21750
|
-
import { jsx as
|
|
21917
|
+
import { jsx as jsx135, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
21751
21918
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
21752
21919
|
const itemsWithStatus = useMemo7(() => {
|
|
21753
21920
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -21761,8 +21928,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
21761
21928
|
return { ...item, status };
|
|
21762
21929
|
});
|
|
21763
21930
|
}, [items, inProgressId]);
|
|
21764
|
-
return /* @__PURE__ */
|
|
21765
|
-
return /* @__PURE__ */
|
|
21931
|
+
return /* @__PURE__ */ jsx135("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
21932
|
+
return /* @__PURE__ */ jsx135(
|
|
21766
21933
|
ProgressListItem,
|
|
21767
21934
|
{
|
|
21768
21935
|
status,
|
|
@@ -21795,12 +21962,12 @@ var ProgressListItem = ({
|
|
|
21795
21962
|
}, [status, error]);
|
|
21796
21963
|
const statusStyles = useMemo7(() => {
|
|
21797
21964
|
if (error) {
|
|
21798
|
-
return errorLevel === "caution" ?
|
|
21965
|
+
return errorLevel === "caution" ? css99`
|
|
21799
21966
|
color: rgb(161, 98, 7);
|
|
21800
21967
|
& svg {
|
|
21801
21968
|
color: rgb(250, 204, 21);
|
|
21802
21969
|
}
|
|
21803
|
-
` :
|
|
21970
|
+
` : css99`
|
|
21804
21971
|
color: rgb(185, 28, 28);
|
|
21805
21972
|
& svg {
|
|
21806
21973
|
color: var(--brand-primary-2);
|
|
@@ -21808,38 +21975,38 @@ var ProgressListItem = ({
|
|
|
21808
21975
|
`;
|
|
21809
21976
|
}
|
|
21810
21977
|
const colorPerStatus = {
|
|
21811
|
-
completed:
|
|
21978
|
+
completed: css99`
|
|
21812
21979
|
opacity: 0.75;
|
|
21813
21980
|
`,
|
|
21814
|
-
inProgress:
|
|
21981
|
+
inProgress: css99`
|
|
21815
21982
|
-webkit-text-stroke-width: thin;
|
|
21816
21983
|
`,
|
|
21817
|
-
queued:
|
|
21984
|
+
queued: css99`
|
|
21818
21985
|
opacity: 0.5;
|
|
21819
21986
|
`
|
|
21820
21987
|
};
|
|
21821
21988
|
return colorPerStatus[status];
|
|
21822
21989
|
}, [status, error, errorLevel]);
|
|
21823
|
-
return /* @__PURE__ */
|
|
21824
|
-
/* @__PURE__ */
|
|
21825
|
-
/* @__PURE__ */
|
|
21990
|
+
return /* @__PURE__ */ jsxs89("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
21991
|
+
/* @__PURE__ */ jsx135(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx135("div", { children: /* @__PURE__ */ jsx135(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
21992
|
+
/* @__PURE__ */ jsxs89("div", { children: [
|
|
21826
21993
|
children,
|
|
21827
|
-
/* @__PURE__ */
|
|
21994
|
+
/* @__PURE__ */ jsx135("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
21828
21995
|
] })
|
|
21829
21996
|
] });
|
|
21830
21997
|
};
|
|
21831
21998
|
|
|
21832
21999
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
21833
|
-
import { css as
|
|
22000
|
+
import { css as css101 } from "@emotion/react";
|
|
21834
22001
|
import { CgCheck as CgCheck5 } from "@react-icons/all-files/cg/CgCheck";
|
|
21835
22002
|
import { useCallback as useCallback12, useEffect as useEffect22, useMemo as useMemo8, useRef as useRef13, useState as useState18 } from "react";
|
|
21836
22003
|
|
|
21837
22004
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
21838
|
-
import { css as
|
|
21839
|
-
var segmentedControlRootStyles =
|
|
22005
|
+
import { css as css100 } from "@emotion/react";
|
|
22006
|
+
var segmentedControlRootStyles = css100`
|
|
21840
22007
|
position: relative;
|
|
21841
22008
|
`;
|
|
21842
|
-
var segmentedControlScrollIndicatorsStyles =
|
|
22009
|
+
var segmentedControlScrollIndicatorsStyles = css100`
|
|
21843
22010
|
position: absolute;
|
|
21844
22011
|
inset: 0;
|
|
21845
22012
|
z-index: 1;
|
|
@@ -21867,17 +22034,17 @@ var segmentedControlScrollIndicatorsStyles = css98`
|
|
|
21867
22034
|
background: linear-gradient(to left, var(--background-color) 10%, transparent);
|
|
21868
22035
|
}
|
|
21869
22036
|
`;
|
|
21870
|
-
var segmentedControlScrollIndicatorStartVisibleStyles =
|
|
22037
|
+
var segmentedControlScrollIndicatorStartVisibleStyles = css100`
|
|
21871
22038
|
&::before {
|
|
21872
22039
|
opacity: 1;
|
|
21873
22040
|
}
|
|
21874
22041
|
`;
|
|
21875
|
-
var segmentedControlScrollIndicatorEndVisibleStyles =
|
|
22042
|
+
var segmentedControlScrollIndicatorEndVisibleStyles = css100`
|
|
21876
22043
|
&::after {
|
|
21877
22044
|
opacity: 1;
|
|
21878
22045
|
}
|
|
21879
22046
|
`;
|
|
21880
|
-
var segmentedControlWrapperStyles =
|
|
22047
|
+
var segmentedControlWrapperStyles = css100`
|
|
21881
22048
|
overflow-y: auto;
|
|
21882
22049
|
scroll-behavior: smooth;
|
|
21883
22050
|
scrollbar-width: none;
|
|
@@ -21886,7 +22053,7 @@ var segmentedControlWrapperStyles = css98`
|
|
|
21886
22053
|
height: 0px;
|
|
21887
22054
|
}
|
|
21888
22055
|
`;
|
|
21889
|
-
var segmentedControlStyles =
|
|
22056
|
+
var segmentedControlStyles = css100`
|
|
21890
22057
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
21891
22058
|
--segmented-control-border-width: 1px;
|
|
21892
22059
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -21905,14 +22072,14 @@ var segmentedControlStyles = css98`
|
|
|
21905
22072
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
21906
22073
|
font-size: var(--fs-xs);
|
|
21907
22074
|
`;
|
|
21908
|
-
var segmentedControlVerticalStyles =
|
|
22075
|
+
var segmentedControlVerticalStyles = css100`
|
|
21909
22076
|
flex-direction: column;
|
|
21910
22077
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
21911
22078
|
var(--segmented-control-rounded-value) 0 0;
|
|
21912
22079
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
21913
22080
|
var(--segmented-control-rounded-value);
|
|
21914
22081
|
`;
|
|
21915
|
-
var segmentedControlItemStyles =
|
|
22082
|
+
var segmentedControlItemStyles = css100`
|
|
21916
22083
|
&:first-of-type label {
|
|
21917
22084
|
border-radius: var(--segmented-control-first-border-radius);
|
|
21918
22085
|
}
|
|
@@ -21920,10 +22087,10 @@ var segmentedControlItemStyles = css98`
|
|
|
21920
22087
|
border-radius: var(--segmented-control-last-border-radius);
|
|
21921
22088
|
}
|
|
21922
22089
|
`;
|
|
21923
|
-
var segmentedControlInputStyles =
|
|
22090
|
+
var segmentedControlInputStyles = css100`
|
|
21924
22091
|
${accessibleHidden}
|
|
21925
22092
|
`;
|
|
21926
|
-
var segmentedControlLabelStyles = (checked, disabled2) =>
|
|
22093
|
+
var segmentedControlLabelStyles = (checked, disabled2) => css100`
|
|
21927
22094
|
position: relative;
|
|
21928
22095
|
display: flex;
|
|
21929
22096
|
align-items: center;
|
|
@@ -21990,25 +22157,25 @@ var segmentedControlLabelStyles = (checked, disabled2) => css98`
|
|
|
21990
22157
|
`}
|
|
21991
22158
|
}
|
|
21992
22159
|
`;
|
|
21993
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
22160
|
+
var segmentedControlLabelIconOnlyStyles = css100`
|
|
21994
22161
|
padding-inline: 0.5em;
|
|
21995
22162
|
`;
|
|
21996
|
-
var segmentedControlLabelCheckStyles =
|
|
22163
|
+
var segmentedControlLabelCheckStyles = css100`
|
|
21997
22164
|
opacity: 0.5;
|
|
21998
22165
|
`;
|
|
21999
|
-
var segmentedControlLabelContentStyles =
|
|
22166
|
+
var segmentedControlLabelContentStyles = css100`
|
|
22000
22167
|
display: flex;
|
|
22001
22168
|
align-items: center;
|
|
22002
22169
|
justify-content: center;
|
|
22003
22170
|
gap: var(--spacing-sm);
|
|
22004
22171
|
height: 100%;
|
|
22005
22172
|
`;
|
|
22006
|
-
var segmentedControlLabelTextStyles =
|
|
22173
|
+
var segmentedControlLabelTextStyles = css100`
|
|
22007
22174
|
white-space: nowrap;
|
|
22008
22175
|
`;
|
|
22009
22176
|
|
|
22010
22177
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
22011
|
-
import { jsx as
|
|
22178
|
+
import { jsx as jsx136, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
22012
22179
|
var SegmentedControl = ({
|
|
22013
22180
|
name,
|
|
22014
22181
|
options,
|
|
@@ -22036,10 +22203,10 @@ var SegmentedControl = ({
|
|
|
22036
22203
|
);
|
|
22037
22204
|
const sizeStyles = useMemo8(() => {
|
|
22038
22205
|
const map = {
|
|
22039
|
-
sm:
|
|
22040
|
-
md:
|
|
22041
|
-
lg:
|
|
22042
|
-
xl:
|
|
22206
|
+
sm: css101({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
22207
|
+
md: css101({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
22208
|
+
lg: css101({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" }),
|
|
22209
|
+
xl: css101({ height: "calc(48px - 2px)", fontSize: "var(--fs-base)" })
|
|
22043
22210
|
};
|
|
22044
22211
|
return map[size];
|
|
22045
22212
|
}, [size]);
|
|
@@ -22067,8 +22234,8 @@ var SegmentedControl = ({
|
|
|
22067
22234
|
wrapperElement == null ? void 0 : wrapperElement.removeEventListener("scroll", onScroll);
|
|
22068
22235
|
};
|
|
22069
22236
|
}, []);
|
|
22070
|
-
return /* @__PURE__ */
|
|
22071
|
-
/* @__PURE__ */
|
|
22237
|
+
return /* @__PURE__ */ jsxs90("div", { css: [segmentedControlRootStyles, { "--background-color": currentBackgroundColor }], children: [
|
|
22238
|
+
/* @__PURE__ */ jsx136("div", { ref: wrapperRef, css: segmentedControlWrapperStyles, children: /* @__PURE__ */ jsx136(
|
|
22072
22239
|
"div",
|
|
22073
22240
|
{
|
|
22074
22241
|
css: [
|
|
@@ -22084,12 +22251,12 @@ var SegmentedControl = ({
|
|
|
22084
22251
|
}
|
|
22085
22252
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
22086
22253
|
const isDisabled = disabled2 || option.disabled;
|
|
22087
|
-
return /* @__PURE__ */
|
|
22254
|
+
return /* @__PURE__ */ jsx136(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx136(
|
|
22088
22255
|
"div",
|
|
22089
22256
|
{
|
|
22090
22257
|
css: segmentedControlItemStyles,
|
|
22091
22258
|
"data-testid": option["data-testid"] ? option["data-testid"] : "container-segmented-control",
|
|
22092
|
-
children: /* @__PURE__ */
|
|
22259
|
+
children: /* @__PURE__ */ jsxs90(
|
|
22093
22260
|
"label",
|
|
22094
22261
|
{
|
|
22095
22262
|
css: [
|
|
@@ -22098,7 +22265,7 @@ var SegmentedControl = ({
|
|
|
22098
22265
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
22099
22266
|
],
|
|
22100
22267
|
children: [
|
|
22101
|
-
/* @__PURE__ */
|
|
22268
|
+
/* @__PURE__ */ jsx136(
|
|
22102
22269
|
"input",
|
|
22103
22270
|
{
|
|
22104
22271
|
css: segmentedControlInputStyles,
|
|
@@ -22110,10 +22277,10 @@ var SegmentedControl = ({
|
|
|
22110
22277
|
disabled: isDisabled
|
|
22111
22278
|
}
|
|
22112
22279
|
),
|
|
22113
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
22114
|
-
/* @__PURE__ */
|
|
22115
|
-
!option.icon ? null : /* @__PURE__ */
|
|
22116
|
-
!text || hideOptionText ? null : /* @__PURE__ */
|
|
22280
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx136(CgCheck5, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
22281
|
+
/* @__PURE__ */ jsxs90("span", { css: segmentedControlLabelContentStyles, children: [
|
|
22282
|
+
!option.icon ? null : /* @__PURE__ */ jsx136(Icon, { icon: option.icon, size: iconSize, iconColor: "currentColor" }),
|
|
22283
|
+
!text || hideOptionText ? null : /* @__PURE__ */ jsx136("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
22117
22284
|
] })
|
|
22118
22285
|
]
|
|
22119
22286
|
}
|
|
@@ -22123,7 +22290,7 @@ var SegmentedControl = ({
|
|
|
22123
22290
|
})
|
|
22124
22291
|
}
|
|
22125
22292
|
) }),
|
|
22126
|
-
/* @__PURE__ */
|
|
22293
|
+
/* @__PURE__ */ jsx136(
|
|
22127
22294
|
"div",
|
|
22128
22295
|
{
|
|
22129
22296
|
css: [
|
|
@@ -22137,18 +22304,18 @@ var SegmentedControl = ({
|
|
|
22137
22304
|
};
|
|
22138
22305
|
|
|
22139
22306
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
22140
|
-
import { css as
|
|
22307
|
+
import { css as css102, keyframes as keyframes5 } from "@emotion/react";
|
|
22141
22308
|
var lightFadingOut = keyframes5`
|
|
22142
22309
|
from { opacity: 0.1; }
|
|
22143
22310
|
to { opacity: 0.025; }
|
|
22144
22311
|
`;
|
|
22145
|
-
var skeletonStyles =
|
|
22312
|
+
var skeletonStyles = css102`
|
|
22146
22313
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
22147
22314
|
background-color: var(--gray-900);
|
|
22148
22315
|
`;
|
|
22149
22316
|
|
|
22150
22317
|
// src/components/Skeleton/Skeleton.tsx
|
|
22151
|
-
import { jsx as
|
|
22318
|
+
import { jsx as jsx137 } from "@emotion/react/jsx-runtime";
|
|
22152
22319
|
var Skeleton = ({
|
|
22153
22320
|
width = "100%",
|
|
22154
22321
|
height = "1.25rem",
|
|
@@ -22156,7 +22323,7 @@ var Skeleton = ({
|
|
|
22156
22323
|
circle = false,
|
|
22157
22324
|
children,
|
|
22158
22325
|
...otherProps
|
|
22159
|
-
}) => /* @__PURE__ */
|
|
22326
|
+
}) => /* @__PURE__ */ jsx137(
|
|
22160
22327
|
"div",
|
|
22161
22328
|
{
|
|
22162
22329
|
css: [
|
|
@@ -22176,11 +22343,11 @@ var Skeleton = ({
|
|
|
22176
22343
|
);
|
|
22177
22344
|
|
|
22178
22345
|
// src/components/Switch/Switch.tsx
|
|
22179
|
-
import { forwardRef as
|
|
22346
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
22180
22347
|
|
|
22181
22348
|
// src/components/Switch/Switch.styles.ts
|
|
22182
|
-
import { css as
|
|
22183
|
-
var SwitchInputContainer =
|
|
22349
|
+
import { css as css103 } from "@emotion/react";
|
|
22350
|
+
var SwitchInputContainer = css103`
|
|
22184
22351
|
cursor: pointer;
|
|
22185
22352
|
display: inline-block;
|
|
22186
22353
|
position: relative;
|
|
@@ -22189,7 +22356,7 @@ var SwitchInputContainer = css101`
|
|
|
22189
22356
|
vertical-align: middle;
|
|
22190
22357
|
user-select: none;
|
|
22191
22358
|
`;
|
|
22192
|
-
var SwitchInput = (size) =>
|
|
22359
|
+
var SwitchInput = (size) => css103`
|
|
22193
22360
|
appearance: none;
|
|
22194
22361
|
border-radius: var(--rounded-full);
|
|
22195
22362
|
background-color: var(--white);
|
|
@@ -22228,7 +22395,7 @@ var SwitchInput = (size) => css101`
|
|
|
22228
22395
|
cursor: not-allowed;
|
|
22229
22396
|
}
|
|
22230
22397
|
`;
|
|
22231
|
-
var SwitchInputDisabled =
|
|
22398
|
+
var SwitchInputDisabled = css103`
|
|
22232
22399
|
opacity: var(--opacity-50);
|
|
22233
22400
|
cursor: not-allowed;
|
|
22234
22401
|
|
|
@@ -22236,7 +22403,7 @@ var SwitchInputDisabled = css101`
|
|
|
22236
22403
|
cursor: not-allowed;
|
|
22237
22404
|
}
|
|
22238
22405
|
`;
|
|
22239
|
-
var SwitchInputLabel = (size) =>
|
|
22406
|
+
var SwitchInputLabel = (size) => css103`
|
|
22240
22407
|
align-items: center;
|
|
22241
22408
|
color: var(--typography-base);
|
|
22242
22409
|
display: inline-flex;
|
|
@@ -22258,32 +22425,32 @@ var SwitchInputLabel = (size) => css101`
|
|
|
22258
22425
|
top: 0;
|
|
22259
22426
|
}
|
|
22260
22427
|
`;
|
|
22261
|
-
var SwitchText = (size) =>
|
|
22428
|
+
var SwitchText = (size) => css103`
|
|
22262
22429
|
color: var(--gray-500);
|
|
22263
22430
|
font-size: var(--fs-sm);
|
|
22264
22431
|
padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
|
|
22265
22432
|
`;
|
|
22266
22433
|
|
|
22267
22434
|
// src/components/Switch/Switch.tsx
|
|
22268
|
-
import { Fragment as Fragment21, jsx as
|
|
22269
|
-
var Switch =
|
|
22435
|
+
import { Fragment as Fragment21, jsx as jsx138, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
|
|
22436
|
+
var Switch = forwardRef25(
|
|
22270
22437
|
({ label, infoText, toggleText, children, switchSize = "base", ...inputProps }, ref) => {
|
|
22271
22438
|
let additionalText = infoText;
|
|
22272
22439
|
if (infoText && toggleText) {
|
|
22273
22440
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
22274
22441
|
}
|
|
22275
|
-
return /* @__PURE__ */
|
|
22276
|
-
/* @__PURE__ */
|
|
22442
|
+
return /* @__PURE__ */ jsxs91(Fragment21, { children: [
|
|
22443
|
+
/* @__PURE__ */ jsxs91(
|
|
22277
22444
|
"label",
|
|
22278
22445
|
{
|
|
22279
22446
|
css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0],
|
|
22280
22447
|
children: [
|
|
22281
|
-
/* @__PURE__ */
|
|
22282
|
-
/* @__PURE__ */
|
|
22448
|
+
/* @__PURE__ */ jsx138("input", { type: "checkbox", css: SwitchInput(switchSize), ...inputProps, ref }),
|
|
22449
|
+
/* @__PURE__ */ jsx138("span", { css: SwitchInputLabel(switchSize), children: label })
|
|
22283
22450
|
]
|
|
22284
22451
|
}
|
|
22285
22452
|
),
|
|
22286
|
-
additionalText ? /* @__PURE__ */
|
|
22453
|
+
additionalText ? /* @__PURE__ */ jsx138("p", { css: SwitchText(switchSize), children: additionalText }) : null,
|
|
22287
22454
|
children
|
|
22288
22455
|
] });
|
|
22289
22456
|
}
|
|
@@ -22293,8 +22460,8 @@ var Switch = forwardRef24(
|
|
|
22293
22460
|
import * as React24 from "react";
|
|
22294
22461
|
|
|
22295
22462
|
// src/components/Table/Table.styles.ts
|
|
22296
|
-
import { css as
|
|
22297
|
-
var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) =>
|
|
22463
|
+
import { css as css104 } from "@emotion/react";
|
|
22464
|
+
var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => css104`
|
|
22298
22465
|
border-bottom: 1px solid var(--gray-400);
|
|
22299
22466
|
border-collapse: collapse;
|
|
22300
22467
|
min-width: 100%;
|
|
@@ -22314,54 +22481,54 @@ var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => css102`
|
|
|
22314
22481
|
background-color: var(--gray-50);
|
|
22315
22482
|
}
|
|
22316
22483
|
`;
|
|
22317
|
-
var tableHead =
|
|
22484
|
+
var tableHead = css104`
|
|
22318
22485
|
color: var(--typography-base);
|
|
22319
22486
|
text-align: left;
|
|
22320
22487
|
`;
|
|
22321
|
-
var tableRow =
|
|
22488
|
+
var tableRow = css104`
|
|
22322
22489
|
border-bottom: 1px solid var(--gray-100);
|
|
22323
22490
|
`;
|
|
22324
|
-
var tableCellHead =
|
|
22491
|
+
var tableCellHead = css104`
|
|
22325
22492
|
font-size: var(--fs-sm);
|
|
22326
22493
|
text-transform: uppercase;
|
|
22327
22494
|
font-weight: var(--fw-bold);
|
|
22328
22495
|
`;
|
|
22329
22496
|
|
|
22330
22497
|
// src/components/Table/Table.tsx
|
|
22331
|
-
import { jsx as
|
|
22498
|
+
import { jsx as jsx139 } from "@emotion/react/jsx-runtime";
|
|
22332
22499
|
var Table = React24.forwardRef(
|
|
22333
22500
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
22334
|
-
return /* @__PURE__ */
|
|
22501
|
+
return /* @__PURE__ */ jsx139("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
22335
22502
|
}
|
|
22336
22503
|
);
|
|
22337
22504
|
var TableHead = React24.forwardRef(
|
|
22338
22505
|
({ children, ...otherProps }, ref) => {
|
|
22339
|
-
return /* @__PURE__ */
|
|
22506
|
+
return /* @__PURE__ */ jsx139("thead", { ref, css: tableHead, ...otherProps, children });
|
|
22340
22507
|
}
|
|
22341
22508
|
);
|
|
22342
22509
|
var TableBody = React24.forwardRef(
|
|
22343
22510
|
({ children, ...otherProps }, ref) => {
|
|
22344
|
-
return /* @__PURE__ */
|
|
22511
|
+
return /* @__PURE__ */ jsx139("tbody", { ref, ...otherProps, children });
|
|
22345
22512
|
}
|
|
22346
22513
|
);
|
|
22347
22514
|
var TableFoot = React24.forwardRef(
|
|
22348
22515
|
({ children, ...otherProps }, ref) => {
|
|
22349
|
-
return /* @__PURE__ */
|
|
22516
|
+
return /* @__PURE__ */ jsx139("tfoot", { ref, ...otherProps, children });
|
|
22350
22517
|
}
|
|
22351
22518
|
);
|
|
22352
22519
|
var TableRow = React24.forwardRef(
|
|
22353
22520
|
({ children, ...otherProps }, ref) => {
|
|
22354
|
-
return /* @__PURE__ */
|
|
22521
|
+
return /* @__PURE__ */ jsx139("tr", { ref, css: tableRow, ...otherProps, children });
|
|
22355
22522
|
}
|
|
22356
22523
|
);
|
|
22357
22524
|
var TableCellHead = React24.forwardRef(
|
|
22358
22525
|
({ children, ...otherProps }, ref) => {
|
|
22359
|
-
return /* @__PURE__ */
|
|
22526
|
+
return /* @__PURE__ */ jsx139("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
22360
22527
|
}
|
|
22361
22528
|
);
|
|
22362
22529
|
var TableCellData = React24.forwardRef(
|
|
22363
22530
|
({ children, ...otherProps }, ref) => {
|
|
22364
|
-
return /* @__PURE__ */
|
|
22531
|
+
return /* @__PURE__ */ jsx139("td", { ref, ...otherProps, children });
|
|
22365
22532
|
}
|
|
22366
22533
|
);
|
|
22367
22534
|
|
|
@@ -22376,8 +22543,8 @@ import {
|
|
|
22376
22543
|
import { useCallback as useCallback13, useEffect as useEffect23, useMemo as useMemo9 } from "react";
|
|
22377
22544
|
|
|
22378
22545
|
// src/components/Tabs/Tabs.styles.ts
|
|
22379
|
-
import { css as
|
|
22380
|
-
var tabButtonStyles =
|
|
22546
|
+
import { css as css105 } from "@emotion/react";
|
|
22547
|
+
var tabButtonStyles = css105`
|
|
22381
22548
|
align-items: center;
|
|
22382
22549
|
border: 0;
|
|
22383
22550
|
height: 2.5rem;
|
|
@@ -22394,14 +22561,14 @@ var tabButtonStyles = css103`
|
|
|
22394
22561
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
22395
22562
|
}
|
|
22396
22563
|
`;
|
|
22397
|
-
var tabButtonGroupStyles =
|
|
22564
|
+
var tabButtonGroupStyles = css105`
|
|
22398
22565
|
display: flex;
|
|
22399
22566
|
gap: var(--spacing-base);
|
|
22400
22567
|
border-bottom: 1px solid var(--gray-300);
|
|
22401
22568
|
`;
|
|
22402
22569
|
|
|
22403
22570
|
// src/components/Tabs/Tabs.tsx
|
|
22404
|
-
import { jsx as
|
|
22571
|
+
import { jsx as jsx140 } from "@emotion/react/jsx-runtime";
|
|
22405
22572
|
var useCurrentTab = () => {
|
|
22406
22573
|
const context = useAriakitTabStore();
|
|
22407
22574
|
if (!context) {
|
|
@@ -22438,28 +22605,28 @@ var Tabs = ({
|
|
|
22438
22605
|
tab.setSelectedId(selected);
|
|
22439
22606
|
}
|
|
22440
22607
|
}, [selected, tab]);
|
|
22441
|
-
return /* @__PURE__ */
|
|
22608
|
+
return /* @__PURE__ */ jsx140(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
22442
22609
|
};
|
|
22443
22610
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
22444
|
-
return /* @__PURE__ */
|
|
22611
|
+
return /* @__PURE__ */ jsx140(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
22445
22612
|
};
|
|
22446
22613
|
var TabButton = ({
|
|
22447
22614
|
children,
|
|
22448
22615
|
id,
|
|
22449
22616
|
...props
|
|
22450
22617
|
}) => {
|
|
22451
|
-
return /* @__PURE__ */
|
|
22618
|
+
return /* @__PURE__ */ jsx140(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
22452
22619
|
};
|
|
22453
22620
|
var TabContent = ({
|
|
22454
22621
|
children,
|
|
22455
22622
|
...props
|
|
22456
22623
|
}) => {
|
|
22457
|
-
return /* @__PURE__ */
|
|
22624
|
+
return /* @__PURE__ */ jsx140(AriakitTabPanel, { ...props, children });
|
|
22458
22625
|
};
|
|
22459
22626
|
|
|
22460
22627
|
// src/components/Validation/StatusBullet.styles.ts
|
|
22461
|
-
import { css as
|
|
22462
|
-
var StatusBulletContainer =
|
|
22628
|
+
import { css as css106 } from "@emotion/react";
|
|
22629
|
+
var StatusBulletContainer = css106`
|
|
22463
22630
|
align-items: center;
|
|
22464
22631
|
align-self: center;
|
|
22465
22632
|
color: var(--gray-500);
|
|
@@ -22476,33 +22643,33 @@ var StatusBulletContainer = css104`
|
|
|
22476
22643
|
display: block;
|
|
22477
22644
|
}
|
|
22478
22645
|
`;
|
|
22479
|
-
var StatusBulletBase =
|
|
22646
|
+
var StatusBulletBase = css106`
|
|
22480
22647
|
font-size: var(--fs-sm);
|
|
22481
22648
|
&:before {
|
|
22482
22649
|
width: var(--fs-xs);
|
|
22483
22650
|
height: var(--fs-xs);
|
|
22484
22651
|
}
|
|
22485
22652
|
`;
|
|
22486
|
-
var StatusBulletSmall =
|
|
22653
|
+
var StatusBulletSmall = css106`
|
|
22487
22654
|
font-size: var(--fs-xs);
|
|
22488
22655
|
&:before {
|
|
22489
22656
|
width: var(--fs-xxs);
|
|
22490
22657
|
height: var(--fs-xxs);
|
|
22491
22658
|
}
|
|
22492
22659
|
`;
|
|
22493
|
-
var StatusDraft =
|
|
22660
|
+
var StatusDraft = css106`
|
|
22494
22661
|
&:before {
|
|
22495
22662
|
background: var(--white);
|
|
22496
22663
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
22497
22664
|
}
|
|
22498
22665
|
`;
|
|
22499
|
-
var StatusModified =
|
|
22666
|
+
var StatusModified = css106`
|
|
22500
22667
|
&:before {
|
|
22501
22668
|
background: linear-gradient(to right, var(--white) 50%, var(--accent-dark) 50% 100%);
|
|
22502
22669
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
22503
22670
|
}
|
|
22504
22671
|
`;
|
|
22505
|
-
var StatusError =
|
|
22672
|
+
var StatusError = css106`
|
|
22506
22673
|
color: var(--error);
|
|
22507
22674
|
&:before {
|
|
22508
22675
|
/* TODO: replace this with an svg icon */
|
|
@@ -22515,29 +22682,29 @@ var StatusError = css104`
|
|
|
22515
22682
|
);
|
|
22516
22683
|
}
|
|
22517
22684
|
`;
|
|
22518
|
-
var StatusPublished =
|
|
22685
|
+
var StatusPublished = css106`
|
|
22519
22686
|
&:before {
|
|
22520
22687
|
background: var(--accent-dark);
|
|
22521
22688
|
}
|
|
22522
22689
|
`;
|
|
22523
|
-
var StatusOrphan =
|
|
22690
|
+
var StatusOrphan = css106`
|
|
22524
22691
|
&:before {
|
|
22525
22692
|
background: var(--brand-secondary-5);
|
|
22526
22693
|
}
|
|
22527
22694
|
`;
|
|
22528
|
-
var StatusUnknown =
|
|
22695
|
+
var StatusUnknown = css106`
|
|
22529
22696
|
&:before {
|
|
22530
22697
|
background: var(--gray-800);
|
|
22531
22698
|
}
|
|
22532
22699
|
`;
|
|
22533
|
-
var StatusDeleted =
|
|
22700
|
+
var StatusDeleted = css106`
|
|
22534
22701
|
&:before {
|
|
22535
22702
|
background: var(--error);
|
|
22536
22703
|
}
|
|
22537
22704
|
`;
|
|
22538
22705
|
|
|
22539
22706
|
// src/components/Validation/StatusBullet.tsx
|
|
22540
|
-
import { jsx as
|
|
22707
|
+
import { jsx as jsx141 } from "@emotion/react/jsx-runtime";
|
|
22541
22708
|
var StatusBullet = ({
|
|
22542
22709
|
status,
|
|
22543
22710
|
hideText = false,
|
|
@@ -22557,7 +22724,7 @@ var StatusBullet = ({
|
|
|
22557
22724
|
Deleted: StatusDeleted
|
|
22558
22725
|
};
|
|
22559
22726
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
22560
|
-
return /* @__PURE__ */
|
|
22727
|
+
return /* @__PURE__ */ jsx141(
|
|
22561
22728
|
"span",
|
|
22562
22729
|
{
|
|
22563
22730
|
role: "status",
|
|
@@ -22600,6 +22767,7 @@ export {
|
|
|
22600
22767
|
DescriptionList,
|
|
22601
22768
|
Details,
|
|
22602
22769
|
DismissibleChipAction,
|
|
22770
|
+
DragHandle,
|
|
22603
22771
|
Drawer,
|
|
22604
22772
|
DrawerContent2 as DrawerContent,
|
|
22605
22773
|
DrawerProvider,
|
|
@@ -22666,6 +22834,11 @@ export {
|
|
|
22666
22834
|
ObjectGridItemCoverButton,
|
|
22667
22835
|
ObjectGridItemHeading2 as ObjectGridItemHeading,
|
|
22668
22836
|
ObjectGridItemIconWithTooltip,
|
|
22837
|
+
ObjectItemLoadingSkeleton,
|
|
22838
|
+
ObjectListItem2 as ObjectListItem,
|
|
22839
|
+
ObjectListItemContainer2 as ObjectListItemContainer,
|
|
22840
|
+
ObjectListItemCover2 as ObjectListItemCover,
|
|
22841
|
+
ObjectListItemHeading,
|
|
22669
22842
|
PageHeaderSection,
|
|
22670
22843
|
Pagination,
|
|
22671
22844
|
Paragraph,
|