@uniformdev/design-system 19.170.1 → 19.173.1-alpha.17
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 +1022 -797
- package/dist/index.d.mts +103 -23
- package/dist/index.d.ts +103 -23
- package/dist/index.js +1203 -958
- 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;
|
|
@@ -3115,10 +3119,37 @@ var customIcons = {
|
|
|
3115
3119
|
|
|
3116
3120
|
// src/components/Icons/systemIcons.tsx
|
|
3117
3121
|
import { GenIcon as GenIcon2 } from "@react-icons/all-files";
|
|
3122
|
+
import { CgGlobeAlt } from "@react-icons/all-files/cg/CgGlobeAlt";
|
|
3118
3123
|
import { CgList } from "@react-icons/all-files/cg/CgList";
|
|
3119
3124
|
import { CgPen } from "@react-icons/all-files/cg/CgPen";
|
|
3125
|
+
import { TbBinaryTree2 } from "@react-icons/all-files/tb/TbBinaryTree2";
|
|
3120
3126
|
import { TbBox } from "@react-icons/all-files/tb/TbBox";
|
|
3121
3127
|
var uniformComponentIcon = TbBox;
|
|
3128
|
+
var uniformConditionalValuesIcon = TbBinaryTree2;
|
|
3129
|
+
var uniformAiIcon = customIcons["magic-wand"];
|
|
3130
|
+
var uniformLocaleIcon = CgGlobeAlt;
|
|
3131
|
+
var uniformLocaleDisabledIcon = GenIcon2({
|
|
3132
|
+
tag: "svg",
|
|
3133
|
+
attr: { fill: "currentColor", viewBox: "0 0 24 24", role: "img" },
|
|
3134
|
+
child: [
|
|
3135
|
+
{
|
|
3136
|
+
tag: "path",
|
|
3137
|
+
attr: {
|
|
3138
|
+
fillRule: "evenodd",
|
|
3139
|
+
d: "M20.123 15.88A9 9 0 0 0 8.12 3.877l2.787 2.787c.03-.073.06-.145.092-.216.294-.661.592-1.073.823-1.292a.988.988 0 0 1 .178-.14.991.991 0 0 1 .178.14c.23.22.528.63.823 1.292.366.825.665 1.901.838 3.148l3.593 3.594a9.739 9.739 0 0 0 1.548-.665 6.968 6.968 0 0 1-.385 1.827l1.528 1.528ZM14.805 5.585c.691 1.53 1.136 3.62 1.19 5.945a9.939 9.939 0 0 0 1.557-.53c.6-.266.994-.536 1.226-.756a7.016 7.016 0 0 0-3.973-4.66ZM3.877 8.12A9 9 0 0 0 15.88 20.123l-2.787-2.787a7.89 7.89 0 0 1-.092.216c-.294.661-.593 1.073-.823 1.292a.996.996 0 0 1-.178.14.99.99 0 0 1-.178-.14c-.23-.22-.529-.63-.823-1.292-.367-.825-.666-1.901-.838-3.148L6.967 11.21a8.334 8.334 0 0 1-.519-.21c-.6-.266-.995-.536-1.226-.756a6.95 6.95 0 0 1 .183-.596L3.877 8.12Zm5.317 10.295c-.577-1.278-.982-2.947-1.131-4.817-1.183-.256-2.22-.624-3.044-1.073a7.004 7.004 0 0 0 4.175 5.89Z",
|
|
3140
|
+
clipRule: "evenodd"
|
|
3141
|
+
},
|
|
3142
|
+
child: []
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
tag: "path",
|
|
3146
|
+
attr: {
|
|
3147
|
+
d: "M20.031 20.031a1.5 1.5 0 0 1-2.121 0L3.06 5.182a1.5 1.5 0 0 1 2.122-2.121L20.03 17.91a1.5 1.5 0 0 1 0 2.121Z"
|
|
3148
|
+
},
|
|
3149
|
+
child: []
|
|
3150
|
+
}
|
|
3151
|
+
]
|
|
3152
|
+
});
|
|
3122
3153
|
var uniformComponentPatternIcon = GenIcon2({
|
|
3123
3154
|
tag: "svg",
|
|
3124
3155
|
attr: {
|
|
@@ -12418,6 +12449,19 @@ var menuStyles = (maxMenuHeight) => css27`
|
|
|
12418
12449
|
${scrollbarStyles}
|
|
12419
12450
|
` : ""}
|
|
12420
12451
|
`;
|
|
12452
|
+
var menuTriggerStyles = css27`
|
|
12453
|
+
border: none;
|
|
12454
|
+
background: transparent;
|
|
12455
|
+
padding: var(--spacing-xs);
|
|
12456
|
+
color: var(--gray-300);
|
|
12457
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
12458
|
+
|
|
12459
|
+
&:focus,
|
|
12460
|
+
&:hover {
|
|
12461
|
+
outline: none;
|
|
12462
|
+
color: var(--gray-500);
|
|
12463
|
+
}
|
|
12464
|
+
`;
|
|
12421
12465
|
|
|
12422
12466
|
// src/components/Menu/Menu.tsx
|
|
12423
12467
|
import { jsx as jsx28, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
@@ -12442,6 +12486,7 @@ var Menu = React7.forwardRef(function Menu2({
|
|
|
12442
12486
|
/* @__PURE__ */ jsx28(
|
|
12443
12487
|
BaseMenu,
|
|
12444
12488
|
{
|
|
12489
|
+
portal: !withoutPortal,
|
|
12445
12490
|
unmountOnHide: true,
|
|
12446
12491
|
gutter: 0,
|
|
12447
12492
|
shift: menu.parent ? -4 : 0,
|
|
@@ -12559,8 +12604,8 @@ var MenuButton2 = forwardRef4(({ children, ...props }, ref) => {
|
|
|
12559
12604
|
return /* @__PURE__ */ jsx30("button", { ref, type: "button", ...props, children });
|
|
12560
12605
|
});
|
|
12561
12606
|
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" }) });
|
|
12607
|
+
({ buttonTitle = "More options", iconSize = "1rem", ...props }, ref) => {
|
|
12608
|
+
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
12609
|
}
|
|
12565
12610
|
);
|
|
12566
12611
|
|
|
@@ -14835,7 +14880,20 @@ var ChipContainer = css48`
|
|
|
14835
14880
|
[role='presentation'],
|
|
14836
14881
|
[role='separator'] {
|
|
14837
14882
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
14838
|
-
opacity: 100;
|
|
14883
|
+
opacity: var(--opacity-100);
|
|
14884
|
+
}
|
|
14885
|
+
}
|
|
14886
|
+
|
|
14887
|
+
:where([aria-disabled='true']) {
|
|
14888
|
+
opacity: var(--opacity-50);
|
|
14889
|
+
cursor: not-allowed;
|
|
14890
|
+
}
|
|
14891
|
+
|
|
14892
|
+
:where([aria-disabled='true'], :disabled):hover {
|
|
14893
|
+
[role='presentation'],
|
|
14894
|
+
[role='separator'] {
|
|
14895
|
+
opacity: var(--opacity-50);
|
|
14896
|
+
cursor: not-allowed;
|
|
14839
14897
|
}
|
|
14840
14898
|
}
|
|
14841
14899
|
`;
|
|
@@ -14907,10 +14965,6 @@ var ChipThemeAccentLight = css48`
|
|
|
14907
14965
|
color: var(--white);
|
|
14908
14966
|
}
|
|
14909
14967
|
}
|
|
14910
|
-
|
|
14911
|
-
[data-icon] {
|
|
14912
|
-
color: var(--accent-light);
|
|
14913
|
-
}
|
|
14914
14968
|
`;
|
|
14915
14969
|
var ChipThemeAccentDark = css48`
|
|
14916
14970
|
--outline-color: var(--accent-dark);
|
|
@@ -14955,10 +15009,6 @@ var ChipAltThemeAccentLight = css48`
|
|
|
14955
15009
|
color: var(--white);
|
|
14956
15010
|
}
|
|
14957
15011
|
}
|
|
14958
|
-
|
|
14959
|
-
[data-icon] {
|
|
14960
|
-
color: var(--accent-alt-light);
|
|
14961
|
-
}
|
|
14962
15012
|
`;
|
|
14963
15013
|
var ChipAltThemeAccentDark = css48`
|
|
14964
15014
|
--outline-color: var(--accent-alt-dark);
|
|
@@ -15036,6 +15086,7 @@ var chipTheme = {
|
|
|
15036
15086
|
};
|
|
15037
15087
|
var Chip = ({
|
|
15038
15088
|
icon,
|
|
15089
|
+
iconColor = "currentColor",
|
|
15039
15090
|
text,
|
|
15040
15091
|
size = "sm",
|
|
15041
15092
|
theme = "accent-light",
|
|
@@ -15062,7 +15113,7 @@ var Chip = ({
|
|
|
15062
15113
|
...props,
|
|
15063
15114
|
children: [
|
|
15064
15115
|
icon ? /* @__PURE__ */ jsxs38(Fragment9, { children: [
|
|
15065
|
-
/* @__PURE__ */ jsx61("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx61(Icon, { icon, iconColor
|
|
15116
|
+
/* @__PURE__ */ jsx61("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx61(Icon, { icon, iconColor, size: "1rem" }) }),
|
|
15066
15117
|
/* @__PURE__ */ jsx61("span", { role: "separator", css: ChipSeparator })
|
|
15067
15118
|
] }) : null,
|
|
15068
15119
|
/* @__PURE__ */ jsx61("span", { css: ChipText, children: text }),
|
|
@@ -15179,17 +15230,19 @@ var MultilineChip = ({ children, onClick, ...props }) => {
|
|
|
15179
15230
|
|
|
15180
15231
|
// src/components/Counter/Counter.styles.ts
|
|
15181
15232
|
import { css as css50 } from "@emotion/react";
|
|
15182
|
-
var counterContainer = (bgColor) => css50`
|
|
15233
|
+
var counterContainer = (bgColor, hasIcon) => css50`
|
|
15183
15234
|
align-items: center;
|
|
15184
15235
|
border-radius: var(--rounded-full);
|
|
15185
15236
|
border: 1px solid var(--gray-300);
|
|
15186
15237
|
background: ${bgColor};
|
|
15187
|
-
color: var(--typography-base);
|
|
15238
|
+
color: ${bgColor === "var(--accent-dark)" ? "white" : "var(--typography-base)"};
|
|
15188
15239
|
display: inline-flex;
|
|
15189
|
-
|
|
15240
|
+
gap: var(--spacing-xs);
|
|
15241
|
+
font-size: var(--fs-xs);
|
|
15190
15242
|
font-weight: var(--fw-regular);
|
|
15191
15243
|
justify-content: center;
|
|
15192
|
-
|
|
15244
|
+
padding: 4px;
|
|
15245
|
+
width: ${hasIcon ? "auto" : "var(--spacing-base)"};
|
|
15193
15246
|
height: var(--spacing-base);
|
|
15194
15247
|
`;
|
|
15195
15248
|
var counterZeroValue = css50`
|
|
@@ -15213,7 +15266,13 @@ var counterIcon = css50`
|
|
|
15213
15266
|
|
|
15214
15267
|
// src/components/Counter/Counter.tsx
|
|
15215
15268
|
import { jsx as jsx63, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
15216
|
-
var Counter = ({
|
|
15269
|
+
var Counter = ({
|
|
15270
|
+
count,
|
|
15271
|
+
bgColor = "transparent",
|
|
15272
|
+
icon,
|
|
15273
|
+
iconColor = "auto",
|
|
15274
|
+
...props
|
|
15275
|
+
}) => {
|
|
15217
15276
|
if (typeof count === "undefined") {
|
|
15218
15277
|
return null;
|
|
15219
15278
|
}
|
|
@@ -15222,7 +15281,19 @@ var Counter = ({ count, bgColor = "transparent", ...props }) => {
|
|
|
15222
15281
|
/* @__PURE__ */ jsx63(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
15223
15282
|
] }) : count;
|
|
15224
15283
|
const formatCount = count === 0 ? /* @__PURE__ */ jsx63("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
15225
|
-
return /* @__PURE__ */
|
|
15284
|
+
return /* @__PURE__ */ jsxs39("div", { css: counterContainer(bgColor, Boolean(icon)), ...props, children: [
|
|
15285
|
+
icon ? /* @__PURE__ */ jsx63(
|
|
15286
|
+
"span",
|
|
15287
|
+
{
|
|
15288
|
+
css: [
|
|
15289
|
+
iconColor ? functionalColors : void 0,
|
|
15290
|
+
{ color: iconColor ? iconColor === "red" ? "var(--brand-secondary-5)" : iconColor : "inherit" }
|
|
15291
|
+
],
|
|
15292
|
+
children: /* @__PURE__ */ jsx63(Icon, { icon, iconColor: "currentColor", size: "0.6rem" })
|
|
15293
|
+
}
|
|
15294
|
+
) : null,
|
|
15295
|
+
/* @__PURE__ */ jsx63("span", { children: formatCount })
|
|
15296
|
+
] });
|
|
15226
15297
|
};
|
|
15227
15298
|
|
|
15228
15299
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
@@ -15293,7 +15364,7 @@ var PopoverDefaulterTriggerBtn = css52`
|
|
|
15293
15364
|
background-color: rgba(0, 0, 0, 0.05);
|
|
15294
15365
|
}
|
|
15295
15366
|
`;
|
|
15296
|
-
var Popover = css52`
|
|
15367
|
+
var Popover = (maxWidth = "220px") => css52`
|
|
15297
15368
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
15298
15369
|
border-radius: var(--rounded-base);
|
|
15299
15370
|
box-shadow: var(--shadow-base);
|
|
@@ -15302,7 +15373,7 @@ var Popover = css52`
|
|
|
15302
15373
|
gap: var(--spacing-sm);
|
|
15303
15374
|
padding: var(--spacing-sm);
|
|
15304
15375
|
font-size: var(--fs-sm);
|
|
15305
|
-
max-width:
|
|
15376
|
+
max-width: ${maxWidth};
|
|
15306
15377
|
z-index: var(--z-tooltip);
|
|
15307
15378
|
`;
|
|
15308
15379
|
|
|
@@ -15621,7 +15692,7 @@ var DateTimePicker = ({
|
|
|
15621
15692
|
]
|
|
15622
15693
|
}
|
|
15623
15694
|
),
|
|
15624
|
-
/* @__PURE__ */ jsxs41(Popover2, { ...popover2, css: [Popover, popover], "aria-label": "Pick a date", children: [
|
|
15695
|
+
/* @__PURE__ */ jsxs41(Popover2, { ...popover2, css: [Popover(), popover], "aria-label": "Pick a date", children: [
|
|
15625
15696
|
/* @__PURE__ */ jsxs41("div", { css: popoverInnerContent, children: [
|
|
15626
15697
|
/* @__PURE__ */ jsx66("div", { css: calendarSection, children: /* @__PURE__ */ jsx66(
|
|
15627
15698
|
Calendar,
|
|
@@ -15851,14 +15922,63 @@ var Details = ({
|
|
|
15851
15922
|
);
|
|
15852
15923
|
};
|
|
15853
15924
|
|
|
15925
|
+
// src/components/DragHandle/DragHandle.tsx
|
|
15926
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
15927
|
+
|
|
15928
|
+
// src/components/DragHandle/DragHandle.styles.ts
|
|
15929
|
+
import { css as css56 } from "@emotion/react";
|
|
15930
|
+
var DragHandleStyles = css56`
|
|
15931
|
+
background: transparent;
|
|
15932
|
+
border: 0;
|
|
15933
|
+
position: relative;
|
|
15934
|
+
height: 3.125rem;
|
|
15935
|
+
width: 1rem;
|
|
15936
|
+
cursor: grab;
|
|
15937
|
+
|
|
15938
|
+
&::after {
|
|
15939
|
+
content: '';
|
|
15940
|
+
display: block;
|
|
15941
|
+
position: absolute;
|
|
15942
|
+
left: 2px;
|
|
15943
|
+
top: var(--spacing-xs);
|
|
15944
|
+
bottom: var(--spacing-xs);
|
|
15945
|
+
width: 5px;
|
|
15946
|
+
border: 2px dotted var(--gray-300);
|
|
15947
|
+
border-top: 0;
|
|
15948
|
+
border-bottom: 0;
|
|
15949
|
+
opacity: 1;
|
|
15950
|
+
}
|
|
15951
|
+
`;
|
|
15952
|
+
var DragHandleDisabled = css56`
|
|
15953
|
+
opacity: 0.3;
|
|
15954
|
+
pointer-events: none;
|
|
15955
|
+
`;
|
|
15956
|
+
|
|
15957
|
+
// src/components/DragHandle/DragHandle.tsx
|
|
15958
|
+
import { jsx as jsx69 } from "@emotion/react/jsx-runtime";
|
|
15959
|
+
var DragHandle = forwardRef14(
|
|
15960
|
+
({ disableDnd, ...props }, ref) => {
|
|
15961
|
+
return /* @__PURE__ */ jsx69(
|
|
15962
|
+
"button",
|
|
15963
|
+
{
|
|
15964
|
+
type: "button",
|
|
15965
|
+
ref,
|
|
15966
|
+
css: [DragHandleStyles, disableDnd ? DragHandleDisabled : null],
|
|
15967
|
+
disabled: disableDnd,
|
|
15968
|
+
...props
|
|
15969
|
+
}
|
|
15970
|
+
);
|
|
15971
|
+
}
|
|
15972
|
+
);
|
|
15973
|
+
|
|
15854
15974
|
// src/components/Drawer/Drawer.tsx
|
|
15855
15975
|
import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
|
|
15856
15976
|
import React17, { createContext as createContext4, useContext as useContext5, useEffect as useEffect6, useRef as useRef5, useState as useState9 } from "react";
|
|
15857
15977
|
import { createPortal } from "react-dom";
|
|
15858
15978
|
|
|
15859
15979
|
// src/components/Drawer/Drawer.styles.ts
|
|
15860
|
-
import { css as
|
|
15861
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
15980
|
+
import { css as css57, keyframes as keyframes2 } from "@emotion/react";
|
|
15981
|
+
var drawerStyles = (bgColor = "var(--white)") => css57`
|
|
15862
15982
|
background-color: ${bgColor};
|
|
15863
15983
|
display: flex;
|
|
15864
15984
|
gap: var(--spacing-sm);
|
|
@@ -15868,20 +15988,20 @@ var drawerStyles = (bgColor = "var(--white)") => css56`
|
|
|
15868
15988
|
padding-top: var(--spacing-sm);
|
|
15869
15989
|
height: 100%;
|
|
15870
15990
|
`;
|
|
15871
|
-
var drawerCloseButtonStyles =
|
|
15991
|
+
var drawerCloseButtonStyles = css57`
|
|
15872
15992
|
display: block;
|
|
15873
15993
|
padding: 0;
|
|
15874
15994
|
background: transparent;
|
|
15875
15995
|
border: none;
|
|
15876
15996
|
`;
|
|
15877
|
-
var headerWrapperStyles =
|
|
15997
|
+
var headerWrapperStyles = css57`
|
|
15878
15998
|
display: flex;
|
|
15879
15999
|
justify-content: flex-end;
|
|
15880
16000
|
align-items: center;
|
|
15881
16001
|
flex: 1;
|
|
15882
16002
|
margin-right: var(--spacing-sm);
|
|
15883
16003
|
`;
|
|
15884
|
-
var drawerHeaderStyles =
|
|
16004
|
+
var drawerHeaderStyles = css57`
|
|
15885
16005
|
align-items: center;
|
|
15886
16006
|
display: flex;
|
|
15887
16007
|
gap: var(--spacing-sm);
|
|
@@ -15889,18 +16009,18 @@ var drawerHeaderStyles = css56`
|
|
|
15889
16009
|
padding-inline: var(--spacing-base);
|
|
15890
16010
|
flex: 1;
|
|
15891
16011
|
`;
|
|
15892
|
-
var drawerRendererStyles =
|
|
16012
|
+
var drawerRendererStyles = css57`
|
|
15893
16013
|
inset: 0;
|
|
15894
16014
|
overflow: hidden;
|
|
15895
16015
|
z-index: var(--z-drawer);
|
|
15896
16016
|
`;
|
|
15897
|
-
var drawerInnerStyles =
|
|
16017
|
+
var drawerInnerStyles = css57`
|
|
15898
16018
|
height: 100%;
|
|
15899
16019
|
overflow: auto;
|
|
15900
16020
|
padding: 0 var(--spacing-md) var(--spacing-base) var(--spacing-sm);
|
|
15901
16021
|
${scrollbarStyles}
|
|
15902
16022
|
`;
|
|
15903
|
-
var drawerHeading =
|
|
16023
|
+
var drawerHeading = css57`
|
|
15904
16024
|
font-size: var(--fs-base);
|
|
15905
16025
|
`;
|
|
15906
16026
|
var slideDrawerIn = keyframes2`
|
|
@@ -15933,7 +16053,7 @@ var slideDrawerInLeftAligned = keyframes2`
|
|
|
15933
16053
|
transform: translate(0);
|
|
15934
16054
|
}
|
|
15935
16055
|
`;
|
|
15936
|
-
var drawerWrapperStyles =
|
|
16056
|
+
var drawerWrapperStyles = css57`
|
|
15937
16057
|
position: absolute;
|
|
15938
16058
|
inset-block: 0;
|
|
15939
16059
|
right: 0;
|
|
@@ -15946,14 +16066,14 @@ var drawerWrapperStyles = css56`
|
|
|
15946
16066
|
|
|
15947
16067
|
--drawer-close-icon-rotation: 0deg;
|
|
15948
16068
|
`;
|
|
15949
|
-
var drawerWrapperLeftAlignedStyles =
|
|
16069
|
+
var drawerWrapperLeftAlignedStyles = css57`
|
|
15950
16070
|
animation-name: ${slideDrawerInLeftAligned};
|
|
15951
16071
|
left: 0;
|
|
15952
16072
|
right: auto;
|
|
15953
16073
|
|
|
15954
16074
|
--drawer-close-icon-rotation: 180deg;
|
|
15955
16075
|
`;
|
|
15956
|
-
var drawerWrapperOverlayStyles =
|
|
16076
|
+
var drawerWrapperOverlayStyles = css57`
|
|
15957
16077
|
position: absolute;
|
|
15958
16078
|
inset: 0;
|
|
15959
16079
|
animation: ${fadeIn} var(--duration-fast) ease-out;
|
|
@@ -15965,7 +16085,7 @@ var drawerWrapperOverlayStyles = css56`
|
|
|
15965
16085
|
|
|
15966
16086
|
// src/components/Drawer/DrawerProvider.tsx
|
|
15967
16087
|
import { createContext as createContext3, useCallback as useCallback5, useContext as useContext4, useRef as useRef4, useState as useState8 } from "react";
|
|
15968
|
-
import { jsx as
|
|
16088
|
+
import { jsx as jsx70 } from "@emotion/react/jsx-runtime";
|
|
15969
16089
|
var DrawerContext = createContext3({
|
|
15970
16090
|
providerId: "",
|
|
15971
16091
|
drawersRegistry: [],
|
|
@@ -16058,7 +16178,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
16058
16178
|
},
|
|
16059
16179
|
[drawerTakeoverStackId]
|
|
16060
16180
|
);
|
|
16061
|
-
return /* @__PURE__ */
|
|
16181
|
+
return /* @__PURE__ */ jsx70(
|
|
16062
16182
|
DrawerContext.Provider,
|
|
16063
16183
|
{
|
|
16064
16184
|
value: {
|
|
@@ -16092,7 +16212,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
16092
16212
|
}
|
|
16093
16213
|
|
|
16094
16214
|
// src/components/Drawer/Drawer.tsx
|
|
16095
|
-
import { jsx as
|
|
16215
|
+
import { jsx as jsx71, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
16096
16216
|
var defaultSackId = "_default";
|
|
16097
16217
|
var CurrentDrawerContext = createContext4({});
|
|
16098
16218
|
var useCurrentDrawer = () => {
|
|
@@ -16105,9 +16225,9 @@ var Drawer = React17.forwardRef(
|
|
|
16105
16225
|
const { drawerTakeoverStackId } = useDrawer();
|
|
16106
16226
|
const drawerRendererProps = { width: drawerProps.width, minWidth, maxWidth, position, leftAligned };
|
|
16107
16227
|
const resolvedStickyStackIdRef = useRef5((_a = drawerTakeoverStackId != null ? drawerTakeoverStackId : drawerProps.stackId) != null ? _a : inheritedStackId);
|
|
16108
|
-
return resolvedStickyStackIdRef.current ? /* @__PURE__ */
|
|
16109
|
-
/* @__PURE__ */
|
|
16110
|
-
/* @__PURE__ */
|
|
16228
|
+
return resolvedStickyStackIdRef.current ? /* @__PURE__ */ jsx71(DrawerInner, { ref, ...drawerProps, stackId: resolvedStickyStackIdRef.current }) : /* @__PURE__ */ jsxs44(DrawerProvider, { children: [
|
|
16229
|
+
/* @__PURE__ */ jsx71(DrawerInner, { ref, ...drawerProps }),
|
|
16230
|
+
/* @__PURE__ */ jsx71(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
16111
16231
|
] });
|
|
16112
16232
|
}
|
|
16113
16233
|
);
|
|
@@ -16152,7 +16272,7 @@ var DrawerInner = ({
|
|
|
16152
16272
|
return null;
|
|
16153
16273
|
}
|
|
16154
16274
|
const headerId = `dialog-header-${providerId}-${stackId}-${id}`;
|
|
16155
|
-
return /* @__PURE__ */
|
|
16275
|
+
return /* @__PURE__ */ jsx71(CurrentDrawerContext.Provider, { value: { id, stackId, leftAligned }, children: createPortal(
|
|
16156
16276
|
/* @__PURE__ */ jsxs44(
|
|
16157
16277
|
"div",
|
|
16158
16278
|
{
|
|
@@ -16165,8 +16285,8 @@ var DrawerInner = ({
|
|
|
16165
16285
|
"data-testid": testId,
|
|
16166
16286
|
children: [
|
|
16167
16287
|
/* @__PURE__ */ jsxs44("div", { css: headerWrapperStyles, children: [
|
|
16168
|
-
header2 ? /* @__PURE__ */
|
|
16169
|
-
/* @__PURE__ */
|
|
16288
|
+
header2 ? /* @__PURE__ */ jsx71("div", { id: headerId, css: drawerHeaderStyles, "data-testid": "header", children: header2 }) : null,
|
|
16289
|
+
/* @__PURE__ */ jsx71(
|
|
16170
16290
|
Button,
|
|
16171
16291
|
{
|
|
16172
16292
|
ref: closeButtonRef,
|
|
@@ -16176,7 +16296,7 @@ var DrawerInner = ({
|
|
|
16176
16296
|
title: "Close dialog",
|
|
16177
16297
|
buttonType: "ghost",
|
|
16178
16298
|
"data-testid": "close-button",
|
|
16179
|
-
children: /* @__PURE__ */
|
|
16299
|
+
children: /* @__PURE__ */ jsx71(
|
|
16180
16300
|
Icon,
|
|
16181
16301
|
{
|
|
16182
16302
|
icon: CgChevronRight,
|
|
@@ -16188,7 +16308,7 @@ var DrawerInner = ({
|
|
|
16188
16308
|
}
|
|
16189
16309
|
)
|
|
16190
16310
|
] }),
|
|
16191
|
-
/* @__PURE__ */
|
|
16311
|
+
/* @__PURE__ */ jsx71("div", { css: drawerInnerStyles, children })
|
|
16192
16312
|
]
|
|
16193
16313
|
}
|
|
16194
16314
|
),
|
|
@@ -16202,15 +16322,15 @@ var findDrawerRenderer = (params) => {
|
|
|
16202
16322
|
};
|
|
16203
16323
|
|
|
16204
16324
|
// src/components/Drawer/DrawerContent.styles.ts
|
|
16205
|
-
import { css as
|
|
16206
|
-
var DrawerContent =
|
|
16325
|
+
import { css as css58 } from "@emotion/react";
|
|
16326
|
+
var DrawerContent = css58`
|
|
16207
16327
|
background: var(--gray-50);
|
|
16208
16328
|
display: flex;
|
|
16209
16329
|
flex-direction: column;
|
|
16210
16330
|
gap: var(--spacing-base);
|
|
16211
16331
|
height: 100%;
|
|
16212
16332
|
`;
|
|
16213
|
-
var DrawerContentInner =
|
|
16333
|
+
var DrawerContentInner = css58`
|
|
16214
16334
|
background: var(--white);
|
|
16215
16335
|
padding: var(--spacing-base);
|
|
16216
16336
|
flex: 1;
|
|
@@ -16218,24 +16338,24 @@ var DrawerContentInner = css57`
|
|
|
16218
16338
|
overflow-y: auto;
|
|
16219
16339
|
${scrollbarStyles}
|
|
16220
16340
|
`;
|
|
16221
|
-
var DrawerContentBtnGroup =
|
|
16341
|
+
var DrawerContentBtnGroup = css58`
|
|
16222
16342
|
display: flex;
|
|
16223
16343
|
gap: var(--spacing-sm);
|
|
16224
16344
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
16225
16345
|
`;
|
|
16226
16346
|
|
|
16227
16347
|
// src/components/Drawer/DrawerContent.tsx
|
|
16228
|
-
import { jsx as
|
|
16348
|
+
import { jsx as jsx72, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
16229
16349
|
var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) => {
|
|
16230
16350
|
return /* @__PURE__ */ jsxs45("div", { css: DrawerContent, ...props, children: [
|
|
16231
|
-
/* @__PURE__ */
|
|
16232
|
-
buttonGroup ? /* @__PURE__ */
|
|
16351
|
+
/* @__PURE__ */ jsx72("div", { css: [DrawerContentInner, noPadding ? { padding: 0 } : null], children }),
|
|
16352
|
+
buttonGroup ? /* @__PURE__ */ jsx72("div", { css: DrawerContentBtnGroup, children: buttonGroup }) : null
|
|
16233
16353
|
] });
|
|
16234
16354
|
};
|
|
16235
16355
|
|
|
16236
16356
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
16237
16357
|
import { useEffect as useEffect7, useMemo as useMemo3 } from "react";
|
|
16238
|
-
import { Fragment as Fragment10, jsx as
|
|
16358
|
+
import { Fragment as Fragment10, jsx as jsx73, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
16239
16359
|
var drawerWidth = {
|
|
16240
16360
|
narrow: "29rem",
|
|
16241
16361
|
medium: "43rem",
|
|
@@ -16276,7 +16396,7 @@ var DrawerRenderer = ({
|
|
|
16276
16396
|
if (drawersToRender.length === 0) {
|
|
16277
16397
|
return null;
|
|
16278
16398
|
}
|
|
16279
|
-
return /* @__PURE__ */
|
|
16399
|
+
return /* @__PURE__ */ jsx73(
|
|
16280
16400
|
"div",
|
|
16281
16401
|
{
|
|
16282
16402
|
css: [
|
|
@@ -16285,7 +16405,7 @@ var DrawerRenderer = ({
|
|
|
16285
16405
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
16286
16406
|
],
|
|
16287
16407
|
...otherProps,
|
|
16288
|
-
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */
|
|
16408
|
+
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx73(
|
|
16289
16409
|
DrawerWrapper,
|
|
16290
16410
|
{
|
|
16291
16411
|
index,
|
|
@@ -16295,7 +16415,7 @@ var DrawerRenderer = ({
|
|
|
16295
16415
|
maxWidth,
|
|
16296
16416
|
onOverlayClick: onRequestClose,
|
|
16297
16417
|
leftAligned,
|
|
16298
|
-
children: /* @__PURE__ */
|
|
16418
|
+
children: /* @__PURE__ */ jsx73(
|
|
16299
16419
|
"div",
|
|
16300
16420
|
{
|
|
16301
16421
|
...getDrawerAttributes({ providerId, stackId: stackId2, id }),
|
|
@@ -16325,8 +16445,8 @@ var DrawerWrapper = ({
|
|
|
16325
16445
|
}
|
|
16326
16446
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
16327
16447
|
return /* @__PURE__ */ jsxs46(Fragment10, { children: [
|
|
16328
|
-
/* @__PURE__ */
|
|
16329
|
-
/* @__PURE__ */
|
|
16448
|
+
/* @__PURE__ */ jsx73("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
16449
|
+
/* @__PURE__ */ jsx73(
|
|
16330
16450
|
"div",
|
|
16331
16451
|
{
|
|
16332
16452
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
@@ -16346,7 +16466,7 @@ var getDrawerAttributes = ({
|
|
|
16346
16466
|
|
|
16347
16467
|
// src/components/Drawer/TakeoverDrawerRenderer.tsx
|
|
16348
16468
|
import { useEffect as useEffect8 } from "react";
|
|
16349
|
-
import { jsx as
|
|
16469
|
+
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
16350
16470
|
var TAKEOVER_STACK_ID = "takeover-stack";
|
|
16351
16471
|
var TakeoverDrawerRenderer = (props) => {
|
|
16352
16472
|
const { registerTakeoverStackId, unregisterTakeoverStackId } = useDrawer();
|
|
@@ -16356,15 +16476,15 @@ var TakeoverDrawerRenderer = (props) => {
|
|
|
16356
16476
|
unregisterTakeoverStackId(TAKEOVER_STACK_ID);
|
|
16357
16477
|
};
|
|
16358
16478
|
}, [registerTakeoverStackId, unregisterTakeoverStackId]);
|
|
16359
|
-
return /* @__PURE__ */
|
|
16479
|
+
return /* @__PURE__ */ jsx74(DrawerRenderer, { ...props, stackId: TAKEOVER_STACK_ID });
|
|
16360
16480
|
};
|
|
16361
16481
|
|
|
16362
16482
|
// src/components/IconButton/IconButton.tsx
|
|
16363
|
-
import { forwardRef as
|
|
16483
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
16364
16484
|
|
|
16365
16485
|
// src/components/IconButton/IconButton.styles.ts
|
|
16366
|
-
import { css as
|
|
16367
|
-
var iconButton =
|
|
16486
|
+
import { css as css59 } from "@emotion/react";
|
|
16487
|
+
var iconButton = css59`
|
|
16368
16488
|
padding: 0;
|
|
16369
16489
|
max-width: unset;
|
|
16370
16490
|
justify-content: center;
|
|
@@ -16372,28 +16492,28 @@ var iconButton = css58`
|
|
|
16372
16492
|
height: var(--button-size);
|
|
16373
16493
|
`;
|
|
16374
16494
|
var sizes2 = {
|
|
16375
|
-
xs:
|
|
16495
|
+
xs: css59`
|
|
16376
16496
|
--button-size: 2rem;
|
|
16377
16497
|
`,
|
|
16378
|
-
sm:
|
|
16498
|
+
sm: css59`
|
|
16379
16499
|
--button-size: 2.25rem;
|
|
16380
16500
|
`,
|
|
16381
|
-
md:
|
|
16501
|
+
md: css59`
|
|
16382
16502
|
--button-size: 2.5rem;
|
|
16383
16503
|
`
|
|
16384
16504
|
};
|
|
16385
16505
|
var variants = {
|
|
16386
16506
|
square: null,
|
|
16387
|
-
rounded:
|
|
16507
|
+
rounded: css59`
|
|
16388
16508
|
border-radius: 50%;
|
|
16389
16509
|
`
|
|
16390
16510
|
};
|
|
16391
16511
|
|
|
16392
16512
|
// src/components/IconButton/IconButton.tsx
|
|
16393
|
-
import { jsx as
|
|
16394
|
-
var IconButton =
|
|
16513
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
16514
|
+
var IconButton = forwardRef15(
|
|
16395
16515
|
({ children, size = "md", variant = "square", ...props }, ref) => {
|
|
16396
|
-
return /* @__PURE__ */
|
|
16516
|
+
return /* @__PURE__ */ jsx75(Button, { ref, css: [iconButton, variants[variant], sizes2[size]], ...props, children });
|
|
16397
16517
|
}
|
|
16398
16518
|
);
|
|
16399
16519
|
IconButton.displayName = "IconButton";
|
|
@@ -16402,8 +16522,8 @@ IconButton.displayName = "IconButton";
|
|
|
16402
16522
|
import { useCallback as useCallback6, useEffect as useEffect9, useState as useState10 } from "react";
|
|
16403
16523
|
|
|
16404
16524
|
// src/components/Image/Image.styles.ts
|
|
16405
|
-
import { css as
|
|
16406
|
-
var imageWrapper =
|
|
16525
|
+
import { css as css60 } from "@emotion/react";
|
|
16526
|
+
var imageWrapper = css60`
|
|
16407
16527
|
position: relative;
|
|
16408
16528
|
display: inline-flex;
|
|
16409
16529
|
flex-direction: column;
|
|
@@ -16411,10 +16531,10 @@ var imageWrapper = css59`
|
|
|
16411
16531
|
max-width: 100%;
|
|
16412
16532
|
max-height: 100%;
|
|
16413
16533
|
`;
|
|
16414
|
-
var imageWrapperLoading =
|
|
16534
|
+
var imageWrapperLoading = css60`
|
|
16415
16535
|
animation: ${skeletonLoading} var(--duration-slow) linear infinite alternate;
|
|
16416
16536
|
`;
|
|
16417
|
-
var img =
|
|
16537
|
+
var img = css60`
|
|
16418
16538
|
object-fit: contain;
|
|
16419
16539
|
max-width: 100%;
|
|
16420
16540
|
max-height: 100%;
|
|
@@ -16422,17 +16542,17 @@ var img = css59`
|
|
|
16422
16542
|
opacity: var(--opacity-0);
|
|
16423
16543
|
margin: 0 auto;
|
|
16424
16544
|
`;
|
|
16425
|
-
var imgLoading =
|
|
16545
|
+
var imgLoading = css60`
|
|
16426
16546
|
opacity: 0;
|
|
16427
16547
|
`;
|
|
16428
|
-
var imgLoaded =
|
|
16548
|
+
var imgLoaded = css60`
|
|
16429
16549
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
16430
16550
|
opacity: 1;
|
|
16431
16551
|
`;
|
|
16432
|
-
var brokenImage =
|
|
16552
|
+
var brokenImage = css60`
|
|
16433
16553
|
height: 160px;
|
|
16434
16554
|
`;
|
|
16435
|
-
var brokenImageMessage =
|
|
16555
|
+
var brokenImageMessage = css60`
|
|
16436
16556
|
position: absolute;
|
|
16437
16557
|
bottom: var(--spacing-xs);
|
|
16438
16558
|
left: var(--spacing-xs);
|
|
@@ -16441,19 +16561,19 @@ var brokenImageMessage = css59`
|
|
|
16441
16561
|
padding-inline: var(--spacing-xs);
|
|
16442
16562
|
font-size: var(--fs-sm);
|
|
16443
16563
|
`;
|
|
16444
|
-
var variantFillImageWrapper =
|
|
16564
|
+
var variantFillImageWrapper = css60`
|
|
16445
16565
|
display: flex;
|
|
16446
16566
|
justify-content: center;
|
|
16447
16567
|
height: 100%;
|
|
16448
16568
|
width: 100%;
|
|
16449
16569
|
`;
|
|
16450
|
-
var variantFillImageImg =
|
|
16570
|
+
var variantFillImageImg = css60`
|
|
16451
16571
|
height: inherit;
|
|
16452
16572
|
width: inherit;
|
|
16453
16573
|
`;
|
|
16454
16574
|
|
|
16455
16575
|
// src/components/Image/ImageBroken.tsx
|
|
16456
|
-
import { jsx as
|
|
16576
|
+
import { jsx as jsx76, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
16457
16577
|
var ImageBroken = ({ width, height, ...props }) => {
|
|
16458
16578
|
return /* @__PURE__ */ jsxs47(
|
|
16459
16579
|
"svg",
|
|
@@ -16468,11 +16588,11 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
16468
16588
|
"data-testid": "broken-image",
|
|
16469
16589
|
...props,
|
|
16470
16590
|
children: [
|
|
16471
|
-
/* @__PURE__ */
|
|
16472
|
-
/* @__PURE__ */
|
|
16591
|
+
/* @__PURE__ */ jsx76("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
16592
|
+
/* @__PURE__ */ jsx76("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
16473
16593
|
/* @__PURE__ */ jsxs47("defs", { children: [
|
|
16474
|
-
/* @__PURE__ */
|
|
16475
|
-
/* @__PURE__ */
|
|
16594
|
+
/* @__PURE__ */ jsx76("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx76("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
16595
|
+
/* @__PURE__ */ jsx76(
|
|
16476
16596
|
"image",
|
|
16477
16597
|
{
|
|
16478
16598
|
id: "image0_761_4353",
|
|
@@ -16488,7 +16608,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
16488
16608
|
};
|
|
16489
16609
|
|
|
16490
16610
|
// src/components/Image/Image.tsx
|
|
16491
|
-
import { jsx as
|
|
16611
|
+
import { jsx as jsx77, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
16492
16612
|
var MIN_LOADING_MS = 100;
|
|
16493
16613
|
function Image({
|
|
16494
16614
|
alt,
|
|
@@ -16548,7 +16668,7 @@ function Image({
|
|
|
16548
16668
|
variant === "fill-container" ? variantFillImageWrapper : null
|
|
16549
16669
|
],
|
|
16550
16670
|
children: [
|
|
16551
|
-
src && !loadErrorText ? /* @__PURE__ */
|
|
16671
|
+
src && !loadErrorText ? /* @__PURE__ */ jsx77(
|
|
16552
16672
|
"img",
|
|
16553
16673
|
{
|
|
16554
16674
|
...imgAttribs,
|
|
@@ -16576,14 +16696,14 @@ function Image({
|
|
|
16576
16696
|
...variant === "fill-container" ? {} : { width, height }
|
|
16577
16697
|
},
|
|
16578
16698
|
children: [
|
|
16579
|
-
/* @__PURE__ */
|
|
16699
|
+
/* @__PURE__ */ jsx77(
|
|
16580
16700
|
ImageBroken,
|
|
16581
16701
|
{
|
|
16582
16702
|
css: [brokenImage, img, imgLoaded],
|
|
16583
16703
|
"data-testid": "broken-image"
|
|
16584
16704
|
}
|
|
16585
16705
|
),
|
|
16586
|
-
/* @__PURE__ */
|
|
16706
|
+
/* @__PURE__ */ jsx77(ErrorMessage, { message: loadErrorText, css: brokenImageMessage, truncated: true })
|
|
16587
16707
|
]
|
|
16588
16708
|
}
|
|
16589
16709
|
) : null
|
|
@@ -16593,13 +16713,13 @@ function Image({
|
|
|
16593
16713
|
}
|
|
16594
16714
|
|
|
16595
16715
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
16596
|
-
import { css as
|
|
16716
|
+
import { css as css62 } from "@emotion/react";
|
|
16597
16717
|
import { CgAdd as CgAdd2 } from "@react-icons/all-files/cg/CgAdd";
|
|
16598
16718
|
import { CgChevronRight as CgChevronRight2 } from "@react-icons/all-files/cg/CgChevronRight";
|
|
16599
16719
|
|
|
16600
16720
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
16601
|
-
import { css as
|
|
16602
|
-
var IntegrationTileContainer =
|
|
16721
|
+
import { css as css61 } from "@emotion/react";
|
|
16722
|
+
var IntegrationTileContainer = css61`
|
|
16603
16723
|
align-items: center;
|
|
16604
16724
|
box-sizing: border-box;
|
|
16605
16725
|
border-radius: var(--rounded-base);
|
|
@@ -16630,22 +16750,22 @@ var IntegrationTileContainer = css60`
|
|
|
16630
16750
|
}
|
|
16631
16751
|
}
|
|
16632
16752
|
`;
|
|
16633
|
-
var IntegrationTileBtnDashedBorder =
|
|
16753
|
+
var IntegrationTileBtnDashedBorder = css61`
|
|
16634
16754
|
border: 1px dashed var(--gray-800);
|
|
16635
16755
|
`;
|
|
16636
|
-
var IntegrationTileTitle =
|
|
16756
|
+
var IntegrationTileTitle = css61`
|
|
16637
16757
|
display: block;
|
|
16638
16758
|
font-weight: var(--fw-bold);
|
|
16639
16759
|
margin: 0 0 var(--spacing-base);
|
|
16640
16760
|
max-width: 13rem;
|
|
16641
16761
|
`;
|
|
16642
|
-
var IntegrationTitleLogo =
|
|
16762
|
+
var IntegrationTitleLogo = css61`
|
|
16643
16763
|
display: block;
|
|
16644
16764
|
max-width: 10rem;
|
|
16645
16765
|
max-height: 4rem;
|
|
16646
16766
|
margin: 0 auto;
|
|
16647
16767
|
`;
|
|
16648
|
-
var IntegrationTileName =
|
|
16768
|
+
var IntegrationTileName = css61`
|
|
16649
16769
|
color: var(--gray-500);
|
|
16650
16770
|
display: -webkit-box;
|
|
16651
16771
|
-webkit-line-clamp: 1;
|
|
@@ -16658,7 +16778,7 @@ var IntegrationTileName = css60`
|
|
|
16658
16778
|
position: absolute;
|
|
16659
16779
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
16660
16780
|
`;
|
|
16661
|
-
var IntegrationAddedText =
|
|
16781
|
+
var IntegrationAddedText = css61`
|
|
16662
16782
|
align-items: center;
|
|
16663
16783
|
background: var(--brand-secondary-3);
|
|
16664
16784
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -16673,7 +16793,7 @@ var IntegrationAddedText = css60`
|
|
|
16673
16793
|
top: 0;
|
|
16674
16794
|
right: 0;
|
|
16675
16795
|
`;
|
|
16676
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
16796
|
+
var IntegrationCustomBadgeText = (theme) => css61`
|
|
16677
16797
|
align-items: center;
|
|
16678
16798
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
16679
16799
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--typography-base)"};
|
|
@@ -16687,26 +16807,26 @@ var IntegrationCustomBadgeText = (theme) => css60`
|
|
|
16687
16807
|
top: 0;
|
|
16688
16808
|
left: 0;
|
|
16689
16809
|
`;
|
|
16690
|
-
var IntegrationAuthorBadgeIcon =
|
|
16810
|
+
var IntegrationAuthorBadgeIcon = css61`
|
|
16691
16811
|
position: absolute;
|
|
16692
16812
|
bottom: var(--spacing-sm);
|
|
16693
16813
|
right: var(--spacing-xs);
|
|
16694
16814
|
max-height: 1rem;
|
|
16695
16815
|
`;
|
|
16696
|
-
var IntegrationTitleFakeButton =
|
|
16816
|
+
var IntegrationTitleFakeButton = css61`
|
|
16697
16817
|
font-size: var(--fs-xs);
|
|
16698
16818
|
gap: var(--spacing-sm);
|
|
16699
16819
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
16700
16820
|
text-transform: uppercase;
|
|
16701
16821
|
`;
|
|
16702
|
-
var IntegrationTileFloatingButton =
|
|
16822
|
+
var IntegrationTileFloatingButton = css61`
|
|
16703
16823
|
position: absolute;
|
|
16704
16824
|
bottom: var(--spacing-base);
|
|
16705
16825
|
gap: var(--spacing-sm);
|
|
16706
16826
|
font-size: var(--fs-xs);
|
|
16707
16827
|
overflow: hidden;
|
|
16708
16828
|
`;
|
|
16709
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
16829
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css61`
|
|
16710
16830
|
strong,
|
|
16711
16831
|
span:first-of-type {
|
|
16712
16832
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -16727,7 +16847,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css60`
|
|
|
16727
16847
|
`;
|
|
16728
16848
|
|
|
16729
16849
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
16730
|
-
import { jsx as
|
|
16850
|
+
import { jsx as jsx78, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
16731
16851
|
var CreateTeamIntegrationTile = ({
|
|
16732
16852
|
title: title2 = "Create a custom integration for your team",
|
|
16733
16853
|
buttonText = "Add Integration",
|
|
@@ -16736,7 +16856,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
16736
16856
|
...props
|
|
16737
16857
|
}) => {
|
|
16738
16858
|
return /* @__PURE__ */ jsxs49("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
16739
|
-
/* @__PURE__ */
|
|
16859
|
+
/* @__PURE__ */ jsx78("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
16740
16860
|
/* @__PURE__ */ jsxs49(
|
|
16741
16861
|
Button,
|
|
16742
16862
|
{
|
|
@@ -16747,23 +16867,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
16747
16867
|
css: IntegrationTitleFakeButton,
|
|
16748
16868
|
children: [
|
|
16749
16869
|
buttonText,
|
|
16750
|
-
asDeepLink ? /* @__PURE__ */
|
|
16870
|
+
asDeepLink ? /* @__PURE__ */ jsx78(
|
|
16751
16871
|
Icon,
|
|
16752
16872
|
{
|
|
16753
16873
|
icon: CgChevronRight2,
|
|
16754
16874
|
iconColor: "currentColor",
|
|
16755
16875
|
size: 20,
|
|
16756
|
-
css:
|
|
16876
|
+
css: css62`
|
|
16757
16877
|
order: 1;
|
|
16758
16878
|
`
|
|
16759
16879
|
}
|
|
16760
|
-
) : /* @__PURE__ */
|
|
16880
|
+
) : /* @__PURE__ */ jsx78(
|
|
16761
16881
|
Icon,
|
|
16762
16882
|
{
|
|
16763
16883
|
icon: CgAdd2,
|
|
16764
16884
|
iconColor: "currentColor",
|
|
16765
16885
|
size: 16,
|
|
16766
|
-
css:
|
|
16886
|
+
css: css62`
|
|
16767
16887
|
order: -1;
|
|
16768
16888
|
`
|
|
16769
16889
|
}
|
|
@@ -16778,31 +16898,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
16778
16898
|
import { CgCheck as CgCheck2 } from "@react-icons/all-files/cg/CgCheck";
|
|
16779
16899
|
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
16780
16900
|
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
16781
|
-
import { jsx as
|
|
16901
|
+
import { jsx as jsx79, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
16782
16902
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
16783
16903
|
return /* @__PURE__ */ jsxs50("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
16784
|
-
/* @__PURE__ */
|
|
16904
|
+
/* @__PURE__ */ jsx79(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
16785
16905
|
text
|
|
16786
16906
|
] });
|
|
16787
16907
|
};
|
|
16788
16908
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
16789
|
-
return /* @__PURE__ */
|
|
16909
|
+
return /* @__PURE__ */ jsx79("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
16790
16910
|
};
|
|
16791
16911
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
16792
16912
|
return /* @__PURE__ */ jsxs50("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
16793
|
-
/* @__PURE__ */
|
|
16913
|
+
/* @__PURE__ */ jsx79(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
16794
16914
|
text
|
|
16795
16915
|
] });
|
|
16796
16916
|
};
|
|
16797
16917
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
16798
16918
|
return /* @__PURE__ */ jsxs50("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
16799
|
-
/* @__PURE__ */
|
|
16919
|
+
/* @__PURE__ */ jsx79(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
16800
16920
|
text
|
|
16801
16921
|
] });
|
|
16802
16922
|
};
|
|
16803
16923
|
|
|
16804
16924
|
// src/components/Tiles/ResolveIcon.tsx
|
|
16805
|
-
import { jsx as
|
|
16925
|
+
import { jsx as jsx80 } from "@emotion/react/jsx-runtime";
|
|
16806
16926
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
16807
16927
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
16808
16928
|
const mapClassName = {
|
|
@@ -16810,13 +16930,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
16810
16930
|
logo: IntegrationTitleLogo
|
|
16811
16931
|
};
|
|
16812
16932
|
if (icon) {
|
|
16813
|
-
return CompIcon ? /* @__PURE__ */
|
|
16933
|
+
return CompIcon ? /* @__PURE__ */ jsx80(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx80("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
16814
16934
|
}
|
|
16815
16935
|
return null;
|
|
16816
16936
|
};
|
|
16817
16937
|
|
|
16818
16938
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
16819
|
-
import { jsx as
|
|
16939
|
+
import { jsx as jsx81, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
16820
16940
|
var EditTeamIntegrationTile = ({
|
|
16821
16941
|
id,
|
|
16822
16942
|
icon,
|
|
@@ -16832,10 +16952,10 @@ var EditTeamIntegrationTile = ({
|
|
|
16832
16952
|
"data-testid": "configure-integration-container",
|
|
16833
16953
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
16834
16954
|
children: [
|
|
16835
|
-
/* @__PURE__ */
|
|
16836
|
-
/* @__PURE__ */
|
|
16837
|
-
!isPublic ? /* @__PURE__ */
|
|
16838
|
-
canEdit ? /* @__PURE__ */
|
|
16955
|
+
/* @__PURE__ */ jsx81(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
16956
|
+
/* @__PURE__ */ jsx81("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
16957
|
+
!isPublic ? /* @__PURE__ */ jsx81(IntegrationCustomBadge, {}) : null,
|
|
16958
|
+
canEdit ? /* @__PURE__ */ jsx81(
|
|
16839
16959
|
Button,
|
|
16840
16960
|
{
|
|
16841
16961
|
buttonType: "unimportant",
|
|
@@ -16853,10 +16973,10 @@ var EditTeamIntegrationTile = ({
|
|
|
16853
16973
|
};
|
|
16854
16974
|
|
|
16855
16975
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
16856
|
-
import { css as
|
|
16976
|
+
import { css as css63 } from "@emotion/react";
|
|
16857
16977
|
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
16858
16978
|
import { useEffect as useEffect10, useState as useState11 } from "react";
|
|
16859
|
-
import { jsx as
|
|
16979
|
+
import { jsx as jsx82, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
16860
16980
|
var IntegrationComingSoon = ({
|
|
16861
16981
|
name,
|
|
16862
16982
|
icon,
|
|
@@ -16885,9 +17005,9 @@ var IntegrationComingSoon = ({
|
|
|
16885
17005
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
16886
17006
|
...props,
|
|
16887
17007
|
children: [
|
|
16888
|
-
/* @__PURE__ */
|
|
16889
|
-
/* @__PURE__ */
|
|
16890
|
-
/* @__PURE__ */
|
|
17008
|
+
/* @__PURE__ */ jsx82(IntegrationComingSoonBadge, {}),
|
|
17009
|
+
/* @__PURE__ */ jsx82(ResolveIcon, { icon, name }),
|
|
17010
|
+
/* @__PURE__ */ jsx82("span", { css: IntegrationTileName, title: name, children: name }),
|
|
16891
17011
|
/* @__PURE__ */ jsxs52(
|
|
16892
17012
|
Button,
|
|
16893
17013
|
{
|
|
@@ -16898,11 +17018,11 @@ var IntegrationComingSoon = ({
|
|
|
16898
17018
|
role: "link",
|
|
16899
17019
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
16900
17020
|
children: [
|
|
16901
|
-
/* @__PURE__ */
|
|
16902
|
-
/* @__PURE__ */
|
|
17021
|
+
/* @__PURE__ */ jsx82("strong", { children: "+1" }),
|
|
17022
|
+
/* @__PURE__ */ jsx82(
|
|
16903
17023
|
"span",
|
|
16904
17024
|
{
|
|
16905
|
-
css:
|
|
17025
|
+
css: css63`
|
|
16906
17026
|
text-transform: uppercase;
|
|
16907
17027
|
color: var(--gray-500);
|
|
16908
17028
|
`,
|
|
@@ -16910,7 +17030,7 @@ var IntegrationComingSoon = ({
|
|
|
16910
17030
|
}
|
|
16911
17031
|
),
|
|
16912
17032
|
/* @__PURE__ */ jsxs52("span", { "aria-hidden": !upVote, children: [
|
|
16913
|
-
/* @__PURE__ */
|
|
17033
|
+
/* @__PURE__ */ jsx82(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
16914
17034
|
"Thanks!"
|
|
16915
17035
|
] })
|
|
16916
17036
|
]
|
|
@@ -16922,8 +17042,8 @@ var IntegrationComingSoon = ({
|
|
|
16922
17042
|
};
|
|
16923
17043
|
|
|
16924
17044
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
16925
|
-
import { css as
|
|
16926
|
-
var IntegrationLoadingTileContainer =
|
|
17045
|
+
import { css as css64 } from "@emotion/react";
|
|
17046
|
+
var IntegrationLoadingTileContainer = css64`
|
|
16927
17047
|
align-items: center;
|
|
16928
17048
|
box-sizing: border-box;
|
|
16929
17049
|
border-radius: var(--rounded-base);
|
|
@@ -16950,39 +17070,39 @@ var IntegrationLoadingTileContainer = css63`
|
|
|
16950
17070
|
}
|
|
16951
17071
|
}
|
|
16952
17072
|
`;
|
|
16953
|
-
var IntegrationLoadingTileImg =
|
|
17073
|
+
var IntegrationLoadingTileImg = css64`
|
|
16954
17074
|
width: 10rem;
|
|
16955
17075
|
height: 4rem;
|
|
16956
17076
|
margin: 0 auto;
|
|
16957
17077
|
`;
|
|
16958
|
-
var IntegrationLoadingTileText =
|
|
17078
|
+
var IntegrationLoadingTileText = css64`
|
|
16959
17079
|
width: 5rem;
|
|
16960
17080
|
height: var(--spacing-sm);
|
|
16961
17081
|
margin: var(--spacing-sm) 0;
|
|
16962
17082
|
`;
|
|
16963
|
-
var IntegrationLoadingFrame =
|
|
17083
|
+
var IntegrationLoadingFrame = css64`
|
|
16964
17084
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
16965
17085
|
border-radius: var(--rounded-base);
|
|
16966
17086
|
`;
|
|
16967
17087
|
|
|
16968
17088
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
16969
|
-
import { Fragment as Fragment11, jsx as
|
|
17089
|
+
import { Fragment as Fragment11, jsx as jsx83, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
16970
17090
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
16971
17091
|
const componentCount = Array.from(Array(count).keys());
|
|
16972
|
-
return /* @__PURE__ */
|
|
16973
|
-
/* @__PURE__ */
|
|
16974
|
-
/* @__PURE__ */
|
|
17092
|
+
return /* @__PURE__ */ jsx83(Fragment11, { children: componentCount.map((i) => /* @__PURE__ */ jsxs53("div", { css: IntegrationLoadingTileContainer, children: [
|
|
17093
|
+
/* @__PURE__ */ jsx83("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
17094
|
+
/* @__PURE__ */ jsx83("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
16975
17095
|
] }, i)) });
|
|
16976
17096
|
};
|
|
16977
17097
|
|
|
16978
17098
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
16979
|
-
import { css as
|
|
16980
|
-
var IntegrationModalIconContainer =
|
|
17099
|
+
import { css as css65 } from "@emotion/react";
|
|
17100
|
+
var IntegrationModalIconContainer = css65`
|
|
16981
17101
|
position: relative;
|
|
16982
17102
|
width: 50px;
|
|
16983
17103
|
margin-bottom: var(--spacing-base);
|
|
16984
17104
|
`;
|
|
16985
|
-
var IntegrationModalImage =
|
|
17105
|
+
var IntegrationModalImage = css65`
|
|
16986
17106
|
position: absolute;
|
|
16987
17107
|
inset: 0;
|
|
16988
17108
|
margin: auto;
|
|
@@ -16991,7 +17111,7 @@ var IntegrationModalImage = css64`
|
|
|
16991
17111
|
`;
|
|
16992
17112
|
|
|
16993
17113
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
16994
|
-
import { jsx as
|
|
17114
|
+
import { jsx as jsx84, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
16995
17115
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
16996
17116
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
16997
17117
|
let iconSrc = void 0;
|
|
@@ -17009,7 +17129,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
17009
17129
|
}
|
|
17010
17130
|
return /* @__PURE__ */ jsxs54("div", { css: IntegrationModalIconContainer, children: [
|
|
17011
17131
|
/* @__PURE__ */ jsxs54("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
17012
|
-
/* @__PURE__ */
|
|
17132
|
+
/* @__PURE__ */ jsx84(
|
|
17013
17133
|
"path",
|
|
17014
17134
|
{
|
|
17015
17135
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -17018,12 +17138,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
17018
17138
|
strokeWidth: "2"
|
|
17019
17139
|
}
|
|
17020
17140
|
),
|
|
17021
|
-
/* @__PURE__ */
|
|
17022
|
-
/* @__PURE__ */
|
|
17023
|
-
/* @__PURE__ */
|
|
17141
|
+
/* @__PURE__ */ jsx84("defs", { children: /* @__PURE__ */ jsxs54("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
17142
|
+
/* @__PURE__ */ jsx84("stop", { stopColor: "#1768B2" }),
|
|
17143
|
+
/* @__PURE__ */ jsx84("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
17024
17144
|
] }) })
|
|
17025
17145
|
] }),
|
|
17026
|
-
CompIcon ? /* @__PURE__ */
|
|
17146
|
+
CompIcon ? /* @__PURE__ */ jsx84(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx84(
|
|
17027
17147
|
"img",
|
|
17028
17148
|
{
|
|
17029
17149
|
src: iconSrc,
|
|
@@ -17037,7 +17157,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
17037
17157
|
};
|
|
17038
17158
|
|
|
17039
17159
|
// src/components/Tiles/IntegrationTile.tsx
|
|
17040
|
-
import { jsx as
|
|
17160
|
+
import { jsx as jsx85, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
17041
17161
|
var IntegrationTile = ({
|
|
17042
17162
|
id,
|
|
17043
17163
|
icon,
|
|
@@ -17059,21 +17179,21 @@ var IntegrationTile = ({
|
|
|
17059
17179
|
"aria-label": name,
|
|
17060
17180
|
...btnProps,
|
|
17061
17181
|
children: [
|
|
17062
|
-
/* @__PURE__ */
|
|
17063
|
-
/* @__PURE__ */
|
|
17064
|
-
isInstalled ? /* @__PURE__ */
|
|
17065
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
17066
|
-
!isPublic ? /* @__PURE__ */
|
|
17067
|
-
authorIcon ? /* @__PURE__ */
|
|
17182
|
+
/* @__PURE__ */ jsx85(ResolveIcon, { icon, name }),
|
|
17183
|
+
/* @__PURE__ */ jsx85("span", { css: IntegrationTileName, title: name, children: name }),
|
|
17184
|
+
isInstalled ? /* @__PURE__ */ jsx85(IntegrationedAddedBadge, {}) : null,
|
|
17185
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx85(IntegrationPremiumBadge, {}) : null,
|
|
17186
|
+
!isPublic ? /* @__PURE__ */ jsx85(IntegrationCustomBadge, {}) : null,
|
|
17187
|
+
authorIcon ? /* @__PURE__ */ jsx85(ResolveIcon, { icon: authorIcon, name }) : null
|
|
17068
17188
|
]
|
|
17069
17189
|
}
|
|
17070
17190
|
);
|
|
17071
17191
|
};
|
|
17072
17192
|
|
|
17073
17193
|
// src/components/Tiles/styles/Tile.styles.ts
|
|
17074
|
-
import { css as
|
|
17194
|
+
import { css as css66 } from "@emotion/react";
|
|
17075
17195
|
var tileBorderSize = "1px";
|
|
17076
|
-
var Tile =
|
|
17196
|
+
var Tile = css66`
|
|
17077
17197
|
background: var(--white);
|
|
17078
17198
|
cursor: pointer;
|
|
17079
17199
|
border: ${tileBorderSize} solid var(--gray-300);
|
|
@@ -17095,15 +17215,15 @@ var Tile = css65`
|
|
|
17095
17215
|
pointer-events: none;
|
|
17096
17216
|
}
|
|
17097
17217
|
`;
|
|
17098
|
-
var TileIsSelected =
|
|
17218
|
+
var TileIsSelected = css66`
|
|
17099
17219
|
border: calc(${tileBorderSize} + 1px) solid var(--primary-action-active);
|
|
17100
17220
|
z-index: 1; // Used to elevate active state border over other Tile borders
|
|
17101
17221
|
`;
|
|
17102
17222
|
|
|
17103
17223
|
// src/components/Tiles/Tile.tsx
|
|
17104
|
-
import { jsx as
|
|
17224
|
+
import { jsx as jsx86 } from "@emotion/react/jsx-runtime";
|
|
17105
17225
|
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
17106
|
-
return /* @__PURE__ */
|
|
17226
|
+
return /* @__PURE__ */ jsx86(
|
|
17107
17227
|
"button",
|
|
17108
17228
|
{
|
|
17109
17229
|
type: "button",
|
|
@@ -17116,12 +17236,12 @@ var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
|
17116
17236
|
};
|
|
17117
17237
|
|
|
17118
17238
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
17119
|
-
import { css as
|
|
17120
|
-
var TileContainerWrapper = (theme, padding) =>
|
|
17239
|
+
import { css as css67 } from "@emotion/react";
|
|
17240
|
+
var TileContainerWrapper = (theme, padding) => css67`
|
|
17121
17241
|
background: ${theme};
|
|
17122
17242
|
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
17123
17243
|
`;
|
|
17124
|
-
var TileContainerInner = (gap, templateColumns) =>
|
|
17244
|
+
var TileContainerInner = (gap, templateColumns) => css67`
|
|
17125
17245
|
display: grid;
|
|
17126
17246
|
grid-template-columns: ${templateColumns};
|
|
17127
17247
|
gap: var(--spacing-${gap});
|
|
@@ -17135,7 +17255,7 @@ var TileContainerInner = (gap, templateColumns) => css66`
|
|
|
17135
17255
|
`;
|
|
17136
17256
|
|
|
17137
17257
|
// src/components/Tiles/TileContainer.tsx
|
|
17138
|
-
import { jsx as
|
|
17258
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
17139
17259
|
var TileContainer = ({
|
|
17140
17260
|
bgColor = "var(--brand-secondary-2)",
|
|
17141
17261
|
containerPadding = "base",
|
|
@@ -17144,25 +17264,25 @@ var TileContainer = ({
|
|
|
17144
17264
|
children,
|
|
17145
17265
|
...props
|
|
17146
17266
|
}) => {
|
|
17147
|
-
return /* @__PURE__ */
|
|
17267
|
+
return /* @__PURE__ */ jsx87("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx87("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
17148
17268
|
};
|
|
17149
17269
|
|
|
17150
17270
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
17151
|
-
import { css as
|
|
17152
|
-
var TileHeading =
|
|
17271
|
+
import { css as css68 } from "@emotion/react";
|
|
17272
|
+
var TileHeading = css68`
|
|
17153
17273
|
font-size: var(--fs-base);
|
|
17154
17274
|
`;
|
|
17155
|
-
var TileText =
|
|
17275
|
+
var TileText = css68`
|
|
17156
17276
|
color: var(--gray-500);
|
|
17157
17277
|
font-size: var(--fs-sm);
|
|
17158
17278
|
line-height: 1.2;
|
|
17159
17279
|
`;
|
|
17160
17280
|
|
|
17161
17281
|
// src/components/Tiles/TileText.tsx
|
|
17162
|
-
import { jsx as
|
|
17282
|
+
import { jsx as jsx88 } from "@emotion/react/jsx-runtime";
|
|
17163
17283
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
17164
17284
|
const isHeading = as === "heading";
|
|
17165
|
-
return /* @__PURE__ */
|
|
17285
|
+
return /* @__PURE__ */ jsx88(
|
|
17166
17286
|
"span",
|
|
17167
17287
|
{
|
|
17168
17288
|
role: isHeading ? "heading" : void 0,
|
|
@@ -17174,32 +17294,32 @@ var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
|
17174
17294
|
};
|
|
17175
17295
|
|
|
17176
17296
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.styles.ts
|
|
17177
|
-
import { css as
|
|
17178
|
-
var IntegrationModalHeaderSVGBackground =
|
|
17297
|
+
import { css as css69 } from "@emotion/react";
|
|
17298
|
+
var IntegrationModalHeaderSVGBackground = css69`
|
|
17179
17299
|
position: absolute;
|
|
17180
17300
|
top: 0;
|
|
17181
17301
|
left: 0;
|
|
17182
17302
|
`;
|
|
17183
|
-
var IntegrationModalHeaderGroup =
|
|
17303
|
+
var IntegrationModalHeaderGroup = css69`
|
|
17184
17304
|
align-items: center;
|
|
17185
17305
|
display: flex;
|
|
17186
17306
|
gap: var(--spacing-sm);
|
|
17187
17307
|
margin: 0 0 var(--spacing-md);
|
|
17188
17308
|
position: relative;
|
|
17189
17309
|
`;
|
|
17190
|
-
var IntegrationModalHeaderTitleGroup =
|
|
17310
|
+
var IntegrationModalHeaderTitleGroup = css69`
|
|
17191
17311
|
align-items: center;
|
|
17192
17312
|
display: flex;
|
|
17193
17313
|
gap: var(--spacing-base);
|
|
17194
17314
|
padding: 0 var(--spacing-base);
|
|
17195
17315
|
`;
|
|
17196
|
-
var IntegrationModalHeaderTitle =
|
|
17316
|
+
var IntegrationModalHeaderTitle = css69`
|
|
17197
17317
|
margin-top: 0;
|
|
17198
17318
|
`;
|
|
17199
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
17319
|
+
var IntegrationModalHeaderMenuPlacement = css69`
|
|
17200
17320
|
margin-bottom: var(--spacing-base);
|
|
17201
17321
|
`;
|
|
17202
|
-
var IntegrationModalHeaderContentWrapper =
|
|
17322
|
+
var IntegrationModalHeaderContentWrapper = css69`
|
|
17203
17323
|
background: var(--white);
|
|
17204
17324
|
display: flex;
|
|
17205
17325
|
padding: var(--spacing-base);
|
|
@@ -17211,7 +17331,7 @@ var IntegrationModalHeaderContentWrapper = css68`
|
|
|
17211
17331
|
`;
|
|
17212
17332
|
|
|
17213
17333
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
17214
|
-
import { Fragment as Fragment12, jsx as
|
|
17334
|
+
import { Fragment as Fragment12, jsx as jsx89, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
17215
17335
|
var HexModalBackground = ({ ...props }) => {
|
|
17216
17336
|
return /* @__PURE__ */ jsxs56(
|
|
17217
17337
|
"svg",
|
|
@@ -17223,7 +17343,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17223
17343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17224
17344
|
...props,
|
|
17225
17345
|
children: [
|
|
17226
|
-
/* @__PURE__ */
|
|
17346
|
+
/* @__PURE__ */ jsx89(
|
|
17227
17347
|
"path",
|
|
17228
17348
|
{
|
|
17229
17349
|
fillRule: "evenodd",
|
|
@@ -17232,7 +17352,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17232
17352
|
fill: "url(#paint0_linear_196_2737)"
|
|
17233
17353
|
}
|
|
17234
17354
|
),
|
|
17235
|
-
/* @__PURE__ */
|
|
17355
|
+
/* @__PURE__ */ jsx89("defs", { children: /* @__PURE__ */ jsxs56(
|
|
17236
17356
|
"linearGradient",
|
|
17237
17357
|
{
|
|
17238
17358
|
id: "paint0_linear_196_2737",
|
|
@@ -17242,8 +17362,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17242
17362
|
y2: "-95.2742",
|
|
17243
17363
|
gradientUnits: "userSpaceOnUse",
|
|
17244
17364
|
children: [
|
|
17245
|
-
/* @__PURE__ */
|
|
17246
|
-
/* @__PURE__ */
|
|
17365
|
+
/* @__PURE__ */ jsx89("stop", { stopColor: "#81DCDE" }),
|
|
17366
|
+
/* @__PURE__ */ jsx89("stop", { offset: "1", stopColor: "#428ED4" })
|
|
17247
17367
|
]
|
|
17248
17368
|
}
|
|
17249
17369
|
) })
|
|
@@ -17253,22 +17373,22 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17253
17373
|
};
|
|
17254
17374
|
var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
17255
17375
|
return /* @__PURE__ */ jsxs56(Fragment12, { children: [
|
|
17256
|
-
/* @__PURE__ */
|
|
17257
|
-
/* @__PURE__ */
|
|
17258
|
-
icon ? /* @__PURE__ */
|
|
17259
|
-
/* @__PURE__ */
|
|
17376
|
+
/* @__PURE__ */ jsx89(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
17377
|
+
/* @__PURE__ */ jsx89("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs56("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
17378
|
+
icon ? /* @__PURE__ */ jsx89(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
17379
|
+
/* @__PURE__ */ jsx89(Heading2, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
17260
17380
|
menu ? /* @__PURE__ */ jsxs56("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
17261
17381
|
menu,
|
|
17262
17382
|
" "
|
|
17263
17383
|
] }) : null
|
|
17264
17384
|
] }) }),
|
|
17265
|
-
/* @__PURE__ */
|
|
17385
|
+
/* @__PURE__ */ jsx89("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
17266
17386
|
] });
|
|
17267
17387
|
};
|
|
17268
17388
|
|
|
17269
17389
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
17270
17390
|
import MonacoEditor from "@monaco-editor/react";
|
|
17271
|
-
import { jsx as
|
|
17391
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
17272
17392
|
var minEditorHeightPx = 150;
|
|
17273
17393
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
17274
17394
|
let effectiveHeight = height;
|
|
@@ -17278,7 +17398,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
17278
17398
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
17279
17399
|
effectiveHeight = minEditorHeightPx;
|
|
17280
17400
|
}
|
|
17281
|
-
return /* @__PURE__ */
|
|
17401
|
+
return /* @__PURE__ */ jsx90(
|
|
17282
17402
|
MonacoEditor,
|
|
17283
17403
|
{
|
|
17284
17404
|
height: effectiveHeight,
|
|
@@ -17384,12 +17504,12 @@ function useDebouncedCallback(callback, deps, delay, maxWait = 0) {
|
|
|
17384
17504
|
}
|
|
17385
17505
|
|
|
17386
17506
|
// src/components/KeyValueInput/KeyValueInput.styles.ts
|
|
17387
|
-
import { css as
|
|
17388
|
-
var LabelStyles =
|
|
17507
|
+
import { css as css70 } from "@emotion/react";
|
|
17508
|
+
var LabelStyles = css70`
|
|
17389
17509
|
text-transform: uppercase;
|
|
17390
17510
|
font-weight: var(--fw-medium);
|
|
17391
17511
|
`;
|
|
17392
|
-
var SelectKeyValueRowStyles =
|
|
17512
|
+
var SelectKeyValueRowStyles = css70`
|
|
17393
17513
|
animation: var(--duration-fast) var(--timing-ease-out);
|
|
17394
17514
|
align-items: flex-start;
|
|
17395
17515
|
display: grid;
|
|
@@ -17398,40 +17518,14 @@ var SelectKeyValueRowStyles = css69`
|
|
|
17398
17518
|
background-color: white;
|
|
17399
17519
|
flex: 1;
|
|
17400
17520
|
`;
|
|
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`
|
|
17521
|
+
var rowWrapper = css70`
|
|
17428
17522
|
display: flex;
|
|
17429
17523
|
background-color: white;
|
|
17430
17524
|
border-radius: var(--rounded-sm);
|
|
17431
17525
|
`;
|
|
17432
17526
|
|
|
17433
17527
|
// src/components/KeyValueInput/KeyValueInput.tsx
|
|
17434
|
-
import { jsx as
|
|
17528
|
+
import { jsx as jsx91, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
17435
17529
|
var initialSelectOptionValue = { key: "", value: "" };
|
|
17436
17530
|
var generateItemId = (item, index) => item.uniqueId || item.value || item.key || `$index-${index}`;
|
|
17437
17531
|
var KeyValueInput = ({
|
|
@@ -17517,11 +17611,11 @@ var KeyValueInput = ({
|
|
|
17517
17611
|
}
|
|
17518
17612
|
}, [value.length]);
|
|
17519
17613
|
return /* @__PURE__ */ jsxs57(VerticalRhythm, { gap: "xs", children: [
|
|
17520
|
-
/* @__PURE__ */
|
|
17614
|
+
/* @__PURE__ */ jsx91(HorizontalRhythm, { align: "center", justify: "space-between", css: { marginBottom: "var(--spacing-xs)" }, children: /* @__PURE__ */ jsx91("span", { css: LabelStyles, children: label }) }),
|
|
17521
17615
|
/* @__PURE__ */ jsxs57("div", { css: [SelectKeyValueRowStyles, { paddingLeft: "var(--spacing-base)" }], children: [
|
|
17522
17616
|
/* @__PURE__ */ jsxs57(HorizontalRhythm, { align: "center", gap: "xs", children: [
|
|
17523
|
-
/* @__PURE__ */
|
|
17524
|
-
!keyInfoPopover ? null : /* @__PURE__ */
|
|
17617
|
+
/* @__PURE__ */ jsx91("span", { children: keyLabel }),
|
|
17618
|
+
!keyInfoPopover ? null : /* @__PURE__ */ jsx91(
|
|
17525
17619
|
Popover3,
|
|
17526
17620
|
{
|
|
17527
17621
|
buttonText: `${keyLabel} info`,
|
|
@@ -17533,8 +17627,8 @@ var KeyValueInput = ({
|
|
|
17533
17627
|
)
|
|
17534
17628
|
] }),
|
|
17535
17629
|
/* @__PURE__ */ jsxs57(HorizontalRhythm, { align: "center", gap: "xs", children: [
|
|
17536
|
-
/* @__PURE__ */
|
|
17537
|
-
!valueInfoPopover ? null : /* @__PURE__ */
|
|
17630
|
+
/* @__PURE__ */ jsx91("span", { children: valueLabel }),
|
|
17631
|
+
!valueInfoPopover ? null : /* @__PURE__ */ jsx91(
|
|
17538
17632
|
Popover3,
|
|
17539
17633
|
{
|
|
17540
17634
|
buttonText: `${valueLabel} info`,
|
|
@@ -17546,7 +17640,7 @@ var KeyValueInput = ({
|
|
|
17546
17640
|
)
|
|
17547
17641
|
] })
|
|
17548
17642
|
] }),
|
|
17549
|
-
/* @__PURE__ */
|
|
17643
|
+
/* @__PURE__ */ jsx91(VerticalRhythm, { gap: "sm", children: /* @__PURE__ */ jsx91(
|
|
17550
17644
|
DndContext,
|
|
17551
17645
|
{
|
|
17552
17646
|
sensors,
|
|
@@ -17555,7 +17649,7 @@ var KeyValueInput = ({
|
|
|
17555
17649
|
onDragStart: handleDragStart,
|
|
17556
17650
|
onDragCancel: handleDragCancel,
|
|
17557
17651
|
modifiers: [restrictToParentElement],
|
|
17558
|
-
children: /* @__PURE__ */
|
|
17652
|
+
children: /* @__PURE__ */ jsx91(SortableContext, { items: valueWithIds, strategy: verticalListSortingStrategy, children: valueWithIds.map(({ id, ...item }, index) => /* @__PURE__ */ jsx91(
|
|
17559
17653
|
KeyValueInputItem,
|
|
17560
17654
|
{
|
|
17561
17655
|
id,
|
|
@@ -17586,7 +17680,7 @@ var KeyValueInput = ({
|
|
|
17586
17680
|
disabled: disabled2,
|
|
17587
17681
|
css: { marginTop: "var(--spacing-base)" },
|
|
17588
17682
|
children: [
|
|
17589
|
-
/* @__PURE__ */
|
|
17683
|
+
/* @__PURE__ */ jsx91(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.85rem" }),
|
|
17590
17684
|
" Add option"
|
|
17591
17685
|
]
|
|
17592
17686
|
}
|
|
@@ -17616,18 +17710,9 @@ var KeyValueInputItem = ({
|
|
|
17616
17710
|
transition
|
|
17617
17711
|
};
|
|
17618
17712
|
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
|
-
),
|
|
17713
|
+
/* @__PURE__ */ jsx91(DragHandle, { disableDnd: disabledDnd, ref: setActivatorNodeRef, ...attributes, ...listeners }),
|
|
17629
17714
|
/* @__PURE__ */ jsxs57("div", { css: SelectKeyValueRowStyles, "data-testid": "key-value-input-item", children: [
|
|
17630
|
-
/* @__PURE__ */
|
|
17715
|
+
/* @__PURE__ */ jsx91(
|
|
17631
17716
|
Input,
|
|
17632
17717
|
{
|
|
17633
17718
|
ref: firstInputRef,
|
|
@@ -17648,7 +17733,7 @@ var KeyValueInputItem = ({
|
|
|
17648
17733
|
"data-testid": "key"
|
|
17649
17734
|
}
|
|
17650
17735
|
),
|
|
17651
|
-
/* @__PURE__ */
|
|
17736
|
+
/* @__PURE__ */ jsx91(
|
|
17652
17737
|
Input,
|
|
17653
17738
|
{
|
|
17654
17739
|
label: valueLabel,
|
|
@@ -17665,7 +17750,7 @@ var KeyValueInputItem = ({
|
|
|
17665
17750
|
"data-testid": "value"
|
|
17666
17751
|
}
|
|
17667
17752
|
),
|
|
17668
|
-
/* @__PURE__ */
|
|
17753
|
+
/* @__PURE__ */ jsx91("div", { css: { marginTop: "1rem" }, children: /* @__PURE__ */ jsx91(
|
|
17669
17754
|
Button,
|
|
17670
17755
|
{
|
|
17671
17756
|
type: "button",
|
|
@@ -17674,7 +17759,7 @@ var KeyValueInputItem = ({
|
|
|
17674
17759
|
onClick: onDelete,
|
|
17675
17760
|
disabled: disabled2 || disabledDelete,
|
|
17676
17761
|
size: "zero",
|
|
17677
|
-
children: /* @__PURE__ */
|
|
17762
|
+
children: /* @__PURE__ */ jsx91(Icon, { icon: "trash", size: 16, iconColor: "currentColor" })
|
|
17678
17763
|
}
|
|
17679
17764
|
) })
|
|
17680
17765
|
] })
|
|
@@ -17682,39 +17767,39 @@ var KeyValueInputItem = ({
|
|
|
17682
17767
|
};
|
|
17683
17768
|
|
|
17684
17769
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
17685
|
-
import { css as
|
|
17686
|
-
var LimitsBarContainer =
|
|
17770
|
+
import { css as css71 } from "@emotion/react";
|
|
17771
|
+
var LimitsBarContainer = css71`
|
|
17687
17772
|
margin-block: var(--spacing-sm);
|
|
17688
17773
|
`;
|
|
17689
|
-
var LimitsBarProgressBar =
|
|
17774
|
+
var LimitsBarProgressBar = css71`
|
|
17690
17775
|
background: var(--gray-100);
|
|
17691
17776
|
margin-top: var(--spacing-sm);
|
|
17692
17777
|
position: relative;
|
|
17693
17778
|
overflow: hidden;
|
|
17694
17779
|
height: 0.25rem;
|
|
17695
17780
|
`;
|
|
17696
|
-
var LimitsBarProgressBarLine =
|
|
17781
|
+
var LimitsBarProgressBarLine = css71`
|
|
17697
17782
|
position: absolute;
|
|
17698
17783
|
inset: 0;
|
|
17699
17784
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
17700
17785
|
`;
|
|
17701
|
-
var LimitsBarLabelContainer =
|
|
17786
|
+
var LimitsBarLabelContainer = css71`
|
|
17702
17787
|
display: flex;
|
|
17703
17788
|
justify-content: space-between;
|
|
17704
17789
|
font-weight: var(--fw-bold);
|
|
17705
17790
|
`;
|
|
17706
|
-
var LimitsBarLabel =
|
|
17791
|
+
var LimitsBarLabel = css71`
|
|
17707
17792
|
font-size: var(--fs-baase);
|
|
17708
17793
|
`;
|
|
17709
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
17794
|
+
var LimitsBarBgColor = (statusColor) => css71`
|
|
17710
17795
|
background: ${statusColor};
|
|
17711
17796
|
`;
|
|
17712
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
17797
|
+
var LimitsBarTextColor = (statusColor) => css71`
|
|
17713
17798
|
color: ${statusColor};
|
|
17714
17799
|
`;
|
|
17715
17800
|
|
|
17716
17801
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
17717
|
-
import { jsx as
|
|
17802
|
+
import { jsx as jsx92, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
17718
17803
|
var LimitsBar = ({ current, max, label }) => {
|
|
17719
17804
|
const maxPercentage = 100;
|
|
17720
17805
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -17727,14 +17812,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
17727
17812
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
17728
17813
|
return /* @__PURE__ */ jsxs58("div", { css: LimitsBarContainer, children: [
|
|
17729
17814
|
/* @__PURE__ */ jsxs58("div", { css: LimitsBarLabelContainer, children: [
|
|
17730
|
-
/* @__PURE__ */
|
|
17815
|
+
/* @__PURE__ */ jsx92("span", { css: LimitsBarLabel, children: label }),
|
|
17731
17816
|
/* @__PURE__ */ jsxs58("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
17732
17817
|
current,
|
|
17733
17818
|
" of ",
|
|
17734
17819
|
max
|
|
17735
17820
|
] })
|
|
17736
17821
|
] }),
|
|
17737
|
-
/* @__PURE__ */
|
|
17822
|
+
/* @__PURE__ */ jsx92(
|
|
17738
17823
|
"div",
|
|
17739
17824
|
{
|
|
17740
17825
|
role: "progressbar",
|
|
@@ -17743,7 +17828,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
17743
17828
|
"aria-valuemax": max,
|
|
17744
17829
|
"aria-valuetext": `${current} of ${max}`,
|
|
17745
17830
|
css: LimitsBarProgressBar,
|
|
17746
|
-
children: /* @__PURE__ */
|
|
17831
|
+
children: /* @__PURE__ */ jsx92(
|
|
17747
17832
|
"span",
|
|
17748
17833
|
{
|
|
17749
17834
|
role: "presentation",
|
|
@@ -17759,8 +17844,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
17759
17844
|
};
|
|
17760
17845
|
|
|
17761
17846
|
// src/components/LinkList/LinkList.styles.ts
|
|
17762
|
-
import { css as
|
|
17763
|
-
var LinkListContainer = (padding) =>
|
|
17847
|
+
import { css as css72 } from "@emotion/react";
|
|
17848
|
+
var LinkListContainer = (padding) => css72`
|
|
17764
17849
|
padding: ${padding};
|
|
17765
17850
|
|
|
17766
17851
|
${mq("sm")} {
|
|
@@ -17768,30 +17853,30 @@ var LinkListContainer = (padding) => css71`
|
|
|
17768
17853
|
grid-row: 1 / last-line;
|
|
17769
17854
|
}
|
|
17770
17855
|
`;
|
|
17771
|
-
var LinkListTitle =
|
|
17856
|
+
var LinkListTitle = css72`
|
|
17772
17857
|
font-weight: var(--fw-bold);
|
|
17773
17858
|
font-size: var(--fs-sm);
|
|
17774
17859
|
text-transform: uppercase;
|
|
17775
17860
|
`;
|
|
17776
17861
|
|
|
17777
17862
|
// src/components/LinkList/LinkList.tsx
|
|
17778
|
-
import { jsx as
|
|
17863
|
+
import { jsx as jsx93, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
17779
17864
|
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
17780
17865
|
return /* @__PURE__ */ jsxs59("div", { css: LinkListContainer(padding), ...props, children: [
|
|
17781
|
-
/* @__PURE__ */
|
|
17866
|
+
/* @__PURE__ */ jsx93(Heading2, { level: 3, css: LinkListTitle, children: title2 }),
|
|
17782
17867
|
children
|
|
17783
17868
|
] });
|
|
17784
17869
|
};
|
|
17785
17870
|
|
|
17786
17871
|
// src/components/List/ScrollableList.tsx
|
|
17787
|
-
import { css as
|
|
17872
|
+
import { css as css74 } from "@emotion/react";
|
|
17788
17873
|
|
|
17789
17874
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
17790
|
-
import { css as
|
|
17791
|
-
var ScrollableListContainer =
|
|
17875
|
+
import { css as css73 } from "@emotion/react";
|
|
17876
|
+
var ScrollableListContainer = css73`
|
|
17792
17877
|
position: relative;
|
|
17793
17878
|
`;
|
|
17794
|
-
var ScrollableListInner =
|
|
17879
|
+
var ScrollableListInner = css73`
|
|
17795
17880
|
background: var(--gray-50);
|
|
17796
17881
|
border-top: 1px solid var(--gray-200);
|
|
17797
17882
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -17814,19 +17899,19 @@ var ScrollableListInner = css72`
|
|
|
17814
17899
|
`;
|
|
17815
17900
|
|
|
17816
17901
|
// src/components/List/ScrollableList.tsx
|
|
17817
|
-
import { jsx as
|
|
17902
|
+
import { jsx as jsx94, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
17818
17903
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
17819
17904
|
return /* @__PURE__ */ jsxs60("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
17820
|
-
label ? /* @__PURE__ */
|
|
17905
|
+
label ? /* @__PURE__ */ jsx94(
|
|
17821
17906
|
"span",
|
|
17822
17907
|
{
|
|
17823
|
-
css:
|
|
17908
|
+
css: css74`
|
|
17824
17909
|
${labelText}
|
|
17825
17910
|
`,
|
|
17826
17911
|
children: label
|
|
17827
17912
|
}
|
|
17828
17913
|
) : null,
|
|
17829
|
-
/* @__PURE__ */
|
|
17914
|
+
/* @__PURE__ */ jsx94("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
17830
17915
|
] });
|
|
17831
17916
|
};
|
|
17832
17917
|
|
|
@@ -17834,8 +17919,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
17834
17919
|
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
17835
17920
|
|
|
17836
17921
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
17837
|
-
import { css as
|
|
17838
|
-
var ScrollableListItemContainer =
|
|
17922
|
+
import { css as css75 } from "@emotion/react";
|
|
17923
|
+
var ScrollableListItemContainer = css75`
|
|
17839
17924
|
align-items: center;
|
|
17840
17925
|
background: var(--white);
|
|
17841
17926
|
border-radius: var(--rounded-base);
|
|
@@ -17844,13 +17929,13 @@ var ScrollableListItemContainer = css74`
|
|
|
17844
17929
|
min-height: 52px;
|
|
17845
17930
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
17846
17931
|
`;
|
|
17847
|
-
var ScrollableListItemShadow =
|
|
17932
|
+
var ScrollableListItemShadow = css75`
|
|
17848
17933
|
box-shadow: var(--shadow-base);
|
|
17849
17934
|
`;
|
|
17850
|
-
var ScrollableListItemActive =
|
|
17935
|
+
var ScrollableListItemActive = css75`
|
|
17851
17936
|
border-color: var(--brand-secondary-3);
|
|
17852
17937
|
`;
|
|
17853
|
-
var ScrollableListItemBtn =
|
|
17938
|
+
var ScrollableListItemBtn = css75`
|
|
17854
17939
|
align-items: center;
|
|
17855
17940
|
border: none;
|
|
17856
17941
|
background: transparent;
|
|
@@ -17865,27 +17950,27 @@ var ScrollableListItemBtn = css74`
|
|
|
17865
17950
|
outline: none;
|
|
17866
17951
|
}
|
|
17867
17952
|
`;
|
|
17868
|
-
var ScrollableListInputLabel =
|
|
17953
|
+
var ScrollableListInputLabel = css75`
|
|
17869
17954
|
align-items: center;
|
|
17870
17955
|
cursor: pointer;
|
|
17871
17956
|
display: flex;
|
|
17872
17957
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
17873
17958
|
flex-grow: 1;
|
|
17874
17959
|
`;
|
|
17875
|
-
var ScrollableListInputText =
|
|
17960
|
+
var ScrollableListInputText = css75`
|
|
17876
17961
|
align-items: center;
|
|
17877
17962
|
display: flex;
|
|
17878
17963
|
gap: var(--spacing-sm);
|
|
17879
17964
|
flex-grow: 1;
|
|
17880
17965
|
flex-wrap: wrap;
|
|
17881
17966
|
`;
|
|
17882
|
-
var ScrollableListHiddenInput =
|
|
17967
|
+
var ScrollableListHiddenInput = css75`
|
|
17883
17968
|
position: absolute;
|
|
17884
17969
|
height: 0;
|
|
17885
17970
|
width: 0;
|
|
17886
17971
|
opacity: 0;
|
|
17887
17972
|
`;
|
|
17888
|
-
var ScrollableListIcon =
|
|
17973
|
+
var ScrollableListIcon = css75`
|
|
17889
17974
|
border-radius: var(--rounded-full);
|
|
17890
17975
|
background: var(--brand-secondary-3);
|
|
17891
17976
|
color: var(--white);
|
|
@@ -17893,12 +17978,12 @@ var ScrollableListIcon = css74`
|
|
|
17893
17978
|
min-width: 24px;
|
|
17894
17979
|
opacity: 0;
|
|
17895
17980
|
`;
|
|
17896
|
-
var ScrollableListIconVisible =
|
|
17981
|
+
var ScrollableListIconVisible = css75`
|
|
17897
17982
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
17898
17983
|
`;
|
|
17899
17984
|
|
|
17900
17985
|
// src/components/List/ScrollableListInputItem.tsx
|
|
17901
|
-
import { jsx as
|
|
17986
|
+
import { jsx as jsx95, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
17902
17987
|
var ScrollableListInputItem = ({
|
|
17903
17988
|
label,
|
|
17904
17989
|
icon,
|
|
@@ -17908,7 +17993,7 @@ var ScrollableListInputItem = ({
|
|
|
17908
17993
|
labelTestId,
|
|
17909
17994
|
...props
|
|
17910
17995
|
}) => {
|
|
17911
|
-
return /* @__PURE__ */
|
|
17996
|
+
return /* @__PURE__ */ jsx95(
|
|
17912
17997
|
"div",
|
|
17913
17998
|
{
|
|
17914
17999
|
css: [
|
|
@@ -17922,8 +18007,8 @@ var ScrollableListInputItem = ({
|
|
|
17922
18007
|
icon,
|
|
17923
18008
|
label
|
|
17924
18009
|
] }),
|
|
17925
|
-
/* @__PURE__ */
|
|
17926
|
-
/* @__PURE__ */
|
|
18010
|
+
/* @__PURE__ */ jsx95("div", { css: ScrollableListHiddenInput, children }),
|
|
18011
|
+
/* @__PURE__ */ jsx95(
|
|
17927
18012
|
Icon,
|
|
17928
18013
|
{
|
|
17929
18014
|
icon: CgCheck3,
|
|
@@ -17941,7 +18026,7 @@ var ScrollableListInputItem = ({
|
|
|
17941
18026
|
|
|
17942
18027
|
// src/components/List/ScrollableListItem.tsx
|
|
17943
18028
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
17944
|
-
import { jsx as
|
|
18029
|
+
import { jsx as jsx96, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
17945
18030
|
var ScrollableListItem = ({
|
|
17946
18031
|
buttonText,
|
|
17947
18032
|
icon,
|
|
@@ -17949,7 +18034,7 @@ var ScrollableListItem = ({
|
|
|
17949
18034
|
disableShadow,
|
|
17950
18035
|
...props
|
|
17951
18036
|
}) => {
|
|
17952
|
-
return /* @__PURE__ */
|
|
18037
|
+
return /* @__PURE__ */ jsx96(
|
|
17953
18038
|
"div",
|
|
17954
18039
|
{
|
|
17955
18040
|
css: [
|
|
@@ -17960,9 +18045,9 @@ var ScrollableListItem = ({
|
|
|
17960
18045
|
children: /* @__PURE__ */ jsxs62("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
17961
18046
|
/* @__PURE__ */ jsxs62(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
17962
18047
|
icon,
|
|
17963
|
-
/* @__PURE__ */
|
|
18048
|
+
/* @__PURE__ */ jsx96("span", { children: buttonText })
|
|
17964
18049
|
] }),
|
|
17965
|
-
/* @__PURE__ */
|
|
18050
|
+
/* @__PURE__ */ jsx96(
|
|
17966
18051
|
Icon,
|
|
17967
18052
|
{
|
|
17968
18053
|
icon: CgCheck4,
|
|
@@ -17977,7 +18062,7 @@ var ScrollableListItem = ({
|
|
|
17977
18062
|
};
|
|
17978
18063
|
|
|
17979
18064
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
17980
|
-
import { css as
|
|
18065
|
+
import { css as css76, keyframes as keyframes3 } from "@emotion/react";
|
|
17981
18066
|
function bounceFade(size) {
|
|
17982
18067
|
const bounceHeight = size === "lg" ? 10 : 5;
|
|
17983
18068
|
return keyframes3`
|
|
@@ -17998,13 +18083,13 @@ function bounceFade(size) {
|
|
|
17998
18083
|
}
|
|
17999
18084
|
`;
|
|
18000
18085
|
}
|
|
18001
|
-
var loader =
|
|
18086
|
+
var loader = css76`
|
|
18002
18087
|
display: inline-flex;
|
|
18003
18088
|
justify-content: center;
|
|
18004
18089
|
`;
|
|
18005
18090
|
function loadingDot(size) {
|
|
18006
18091
|
const dotSize = size === "lg" ? 8 : 4;
|
|
18007
|
-
return
|
|
18092
|
+
return css76`
|
|
18008
18093
|
background-color: var(--gray-700);
|
|
18009
18094
|
display: block;
|
|
18010
18095
|
border-radius: var(--rounded-full);
|
|
@@ -18029,16 +18114,16 @@ function loadingDot(size) {
|
|
|
18029
18114
|
}
|
|
18030
18115
|
|
|
18031
18116
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
18032
|
-
import { jsx as
|
|
18117
|
+
import { jsx as jsx97, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
18033
18118
|
var LoadingIndicator = ({
|
|
18034
18119
|
size = "lg",
|
|
18035
18120
|
...props
|
|
18036
18121
|
}) => {
|
|
18037
18122
|
const dotStyle = loadingDot(size);
|
|
18038
18123
|
return /* @__PURE__ */ jsxs63("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
18039
|
-
/* @__PURE__ */
|
|
18040
|
-
/* @__PURE__ */
|
|
18041
|
-
/* @__PURE__ */
|
|
18124
|
+
/* @__PURE__ */ jsx97("span", { css: dotStyle }),
|
|
18125
|
+
/* @__PURE__ */ jsx97("span", { css: dotStyle }),
|
|
18126
|
+
/* @__PURE__ */ jsx97("span", { css: dotStyle })
|
|
18042
18127
|
] });
|
|
18043
18128
|
};
|
|
18044
18129
|
|
|
@@ -18046,8 +18131,8 @@ var LoadingIndicator = ({
|
|
|
18046
18131
|
import { useCallback as useCallback8, useEffect as useEffect13, useRef as useRef8 } from "react";
|
|
18047
18132
|
|
|
18048
18133
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
18049
|
-
import { css as
|
|
18050
|
-
var loadingOverlayContainer =
|
|
18134
|
+
import { css as css77 } from "@emotion/react";
|
|
18135
|
+
var loadingOverlayContainer = css77`
|
|
18051
18136
|
position: absolute;
|
|
18052
18137
|
inset: 0;
|
|
18053
18138
|
overflow: hidden;
|
|
@@ -18055,30 +18140,30 @@ var loadingOverlayContainer = css76`
|
|
|
18055
18140
|
padding: var(--spacing-xl);
|
|
18056
18141
|
overflow-y: auto;
|
|
18057
18142
|
`;
|
|
18058
|
-
var loadingOverlayVisible =
|
|
18143
|
+
var loadingOverlayVisible = css77`
|
|
18059
18144
|
display: flex;
|
|
18060
18145
|
`;
|
|
18061
|
-
var loadingOverlayHidden =
|
|
18146
|
+
var loadingOverlayHidden = css77`
|
|
18062
18147
|
display: none;
|
|
18063
18148
|
`;
|
|
18064
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
18149
|
+
var loadingOverlayBackground = (bgColor) => css77`
|
|
18065
18150
|
background: ${bgColor};
|
|
18066
18151
|
opacity: 0.92;
|
|
18067
18152
|
position: absolute;
|
|
18068
18153
|
inset: 0 0;
|
|
18069
18154
|
`;
|
|
18070
|
-
var loadingOverlayBody =
|
|
18155
|
+
var loadingOverlayBody = css77`
|
|
18071
18156
|
align-items: center;
|
|
18072
18157
|
display: flex;
|
|
18073
18158
|
flex-direction: column;
|
|
18074
18159
|
`;
|
|
18075
|
-
var loadingOverlayMessage =
|
|
18160
|
+
var loadingOverlayMessage = css77`
|
|
18076
18161
|
color: var(--gray-600);
|
|
18077
18162
|
margin: var(--spacing-base) 0 0;
|
|
18078
18163
|
`;
|
|
18079
18164
|
|
|
18080
18165
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
18081
|
-
import { jsx as
|
|
18166
|
+
import { jsx as jsx98, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
18082
18167
|
var LoadingOverlay = ({
|
|
18083
18168
|
isActive,
|
|
18084
18169
|
statusMessage,
|
|
@@ -18112,9 +18197,9 @@ var LoadingOverlay = ({
|
|
|
18112
18197
|
"aria-hidden": !isActive,
|
|
18113
18198
|
"aria-busy": isActive && !isPaused,
|
|
18114
18199
|
children: [
|
|
18115
|
-
/* @__PURE__ */
|
|
18116
|
-
/* @__PURE__ */
|
|
18117
|
-
/* @__PURE__ */
|
|
18200
|
+
/* @__PURE__ */ jsx98("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
18201
|
+
/* @__PURE__ */ jsx98("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs64("div", { css: loadingOverlayBody, children: [
|
|
18202
|
+
/* @__PURE__ */ jsx98(
|
|
18118
18203
|
AnimationFile,
|
|
18119
18204
|
{
|
|
18120
18205
|
lottieRef,
|
|
@@ -18129,15 +18214,15 @@ var LoadingOverlay = ({
|
|
|
18129
18214
|
}
|
|
18130
18215
|
}
|
|
18131
18216
|
),
|
|
18132
|
-
statusMessage ? /* @__PURE__ */
|
|
18133
|
-
/* @__PURE__ */
|
|
18217
|
+
statusMessage ? /* @__PURE__ */ jsx98("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
18218
|
+
/* @__PURE__ */ jsx98("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
18134
18219
|
] }) })
|
|
18135
18220
|
]
|
|
18136
18221
|
}
|
|
18137
18222
|
);
|
|
18138
18223
|
};
|
|
18139
18224
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
18140
|
-
return /* @__PURE__ */
|
|
18225
|
+
return /* @__PURE__ */ jsx98(
|
|
18141
18226
|
"svg",
|
|
18142
18227
|
{
|
|
18143
18228
|
viewBox: "0 0 38 38",
|
|
@@ -18147,9 +18232,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
18147
18232
|
stroke: "currentColor",
|
|
18148
18233
|
...props,
|
|
18149
18234
|
"data-testid": "loading-icon",
|
|
18150
|
-
children: /* @__PURE__ */
|
|
18151
|
-
/* @__PURE__ */
|
|
18152
|
-
/* @__PURE__ */
|
|
18235
|
+
children: /* @__PURE__ */ jsx98("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs64("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
18236
|
+
/* @__PURE__ */ jsx98("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
18237
|
+
/* @__PURE__ */ jsx98("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx98(
|
|
18153
18238
|
"animateTransform",
|
|
18154
18239
|
{
|
|
18155
18240
|
attributeName: "transform",
|
|
@@ -18177,7 +18262,7 @@ import {
|
|
|
18177
18262
|
usePopoverStore
|
|
18178
18263
|
} from "@ariakit/react";
|
|
18179
18264
|
import { useEffect as useEffect14 } from "react";
|
|
18180
|
-
import { Fragment as Fragment13, jsx as
|
|
18265
|
+
import { Fragment as Fragment13, jsx as jsx99, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
18181
18266
|
var Popover3 = ({
|
|
18182
18267
|
iconColor = "action",
|
|
18183
18268
|
icon = "info",
|
|
@@ -18190,6 +18275,7 @@ var Popover3 = ({
|
|
|
18190
18275
|
children,
|
|
18191
18276
|
baseId,
|
|
18192
18277
|
onInit,
|
|
18278
|
+
maxWidth,
|
|
18193
18279
|
...otherProps
|
|
18194
18280
|
}) => {
|
|
18195
18281
|
const popover2 = usePopoverStore({ placement });
|
|
@@ -18197,19 +18283,19 @@ var Popover3 = ({
|
|
|
18197
18283
|
onInit == null ? void 0 : onInit({ store: popover2 });
|
|
18198
18284
|
}, [popover2]);
|
|
18199
18285
|
return /* @__PURE__ */ jsxs65(PopoverProvider, { store: popover2, children: [
|
|
18200
|
-
/* @__PURE__ */
|
|
18286
|
+
/* @__PURE__ */ jsx99(
|
|
18201
18287
|
PopoverDisclosure2,
|
|
18202
18288
|
{
|
|
18203
18289
|
css: [PopoverBtn, trigger2 ? void 0 : PopoverDefaulterTriggerBtn],
|
|
18204
18290
|
title: buttonText,
|
|
18205
18291
|
"data-testid": testId,
|
|
18206
18292
|
children: trigger2 ? trigger2 : /* @__PURE__ */ jsxs65(Fragment13, { children: [
|
|
18207
|
-
/* @__PURE__ */
|
|
18208
|
-
/* @__PURE__ */
|
|
18293
|
+
/* @__PURE__ */ jsx99(Icon, { icon, iconColor, size: iconSize }),
|
|
18294
|
+
/* @__PURE__ */ jsx99("span", { hidden: true, children: buttonText })
|
|
18209
18295
|
] })
|
|
18210
18296
|
}
|
|
18211
18297
|
),
|
|
18212
|
-
/* @__PURE__ */
|
|
18298
|
+
/* @__PURE__ */ jsx99(AriakitPopover, { unmountOnHide: true, css: Popover(maxWidth), ...otherProps, "aria-label": ariaLabel, children })
|
|
18213
18299
|
] });
|
|
18214
18300
|
};
|
|
18215
18301
|
var usePopoverComponentContext = () => {
|
|
@@ -18218,8 +18304,8 @@ var usePopoverComponentContext = () => {
|
|
|
18218
18304
|
};
|
|
18219
18305
|
|
|
18220
18306
|
// src/components/MediaCard/MediaCard.styles.ts
|
|
18221
|
-
import { css as
|
|
18222
|
-
var cardBase =
|
|
18307
|
+
import { css as css78 } from "@emotion/react";
|
|
18308
|
+
var cardBase = css78`
|
|
18223
18309
|
--mediacard-title-color: var(--gray-500);
|
|
18224
18310
|
display: flex;
|
|
18225
18311
|
flex-direction: column;
|
|
@@ -18243,7 +18329,7 @@ var cardBase = css77`
|
|
|
18243
18329
|
cursor: default;
|
|
18244
18330
|
}
|
|
18245
18331
|
`;
|
|
18246
|
-
var coverWrapper =
|
|
18332
|
+
var coverWrapper = css78`
|
|
18247
18333
|
position: relative;
|
|
18248
18334
|
display: flex;
|
|
18249
18335
|
align-items: center;
|
|
@@ -18256,10 +18342,10 @@ var coverWrapper = css77`
|
|
|
18256
18342
|
outline: none;
|
|
18257
18343
|
border: 0;
|
|
18258
18344
|
`;
|
|
18259
|
-
var contentWrapper =
|
|
18345
|
+
var contentWrapper = css78`
|
|
18260
18346
|
padding: var(--spacing-sm);
|
|
18261
18347
|
`;
|
|
18262
|
-
var title =
|
|
18348
|
+
var title = css78`
|
|
18263
18349
|
font-size: var(--fs-sm);
|
|
18264
18350
|
color: var(--mediacard-title-color);
|
|
18265
18351
|
white-space: nowrap;
|
|
@@ -18274,7 +18360,7 @@ var title = css77`
|
|
|
18274
18360
|
outline: 2px solid var(--primary-action-default);
|
|
18275
18361
|
}
|
|
18276
18362
|
`;
|
|
18277
|
-
var subtitle =
|
|
18363
|
+
var subtitle = css78`
|
|
18278
18364
|
font-size: var(--fs-xs);
|
|
18279
18365
|
color: var(--gray-500);
|
|
18280
18366
|
white-space: nowrap;
|
|
@@ -18283,14 +18369,15 @@ var subtitle = css77`
|
|
|
18283
18369
|
outline: none;
|
|
18284
18370
|
border: 0;
|
|
18285
18371
|
background-color: transparent;
|
|
18372
|
+
max-width: 100%;
|
|
18286
18373
|
`;
|
|
18287
|
-
var sideSection =
|
|
18374
|
+
var sideSection = css78`
|
|
18288
18375
|
cursor: default;
|
|
18289
18376
|
`;
|
|
18290
|
-
var menuSection =
|
|
18377
|
+
var menuSection = css78`
|
|
18291
18378
|
cursor: default;
|
|
18292
18379
|
`;
|
|
18293
|
-
var menuButton =
|
|
18380
|
+
var menuButton = css78`
|
|
18294
18381
|
padding: var(--spacing-2xs);
|
|
18295
18382
|
border-radius: var(--rounded-sm);
|
|
18296
18383
|
border-width: 0;
|
|
@@ -18302,7 +18389,7 @@ var menuButton = css77`
|
|
|
18302
18389
|
`;
|
|
18303
18390
|
|
|
18304
18391
|
// src/components/MediaCard/MediaCard.tsx
|
|
18305
|
-
import { jsx as
|
|
18392
|
+
import { jsx as jsx100, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
18306
18393
|
var MediaCard = ({
|
|
18307
18394
|
title: title2,
|
|
18308
18395
|
subtitle: subtitle2,
|
|
@@ -18319,12 +18406,12 @@ var MediaCard = ({
|
|
|
18319
18406
|
}, []);
|
|
18320
18407
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
18321
18408
|
return /* @__PURE__ */ jsxs66(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
|
|
18322
|
-
/* @__PURE__ */
|
|
18323
|
-
/* @__PURE__ */
|
|
18409
|
+
/* @__PURE__ */ jsx100("button", { tabIndex: -1, css: coverWrapper, type: buttonType, children: cover }),
|
|
18410
|
+
/* @__PURE__ */ jsx100("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs66(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
18324
18411
|
/* @__PURE__ */ jsxs66(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
18325
18412
|
/* @__PURE__ */ jsxs66(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
18326
|
-
/* @__PURE__ */
|
|
18327
|
-
!infoPopover ? null : /* @__PURE__ */
|
|
18413
|
+
/* @__PURE__ */ jsx100("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
18414
|
+
!infoPopover ? null : /* @__PURE__ */ jsx100("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx100(
|
|
18328
18415
|
Popover3,
|
|
18329
18416
|
{
|
|
18330
18417
|
baseId: `info-of-${title2}`,
|
|
@@ -18333,31 +18420,31 @@ var MediaCard = ({
|
|
|
18333
18420
|
iconColor: "default",
|
|
18334
18421
|
tabIndex: 0,
|
|
18335
18422
|
css: { display: "block", maxWidth: "20rem" },
|
|
18336
|
-
children: /* @__PURE__ */
|
|
18423
|
+
children: /* @__PURE__ */ jsx100("div", { children: infoPopover })
|
|
18337
18424
|
}
|
|
18338
18425
|
) })
|
|
18339
18426
|
] }),
|
|
18340
|
-
subtitle2 ? /* @__PURE__ */
|
|
18427
|
+
subtitle2 ? /* @__PURE__ */ jsx100("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
18341
18428
|
] }),
|
|
18342
|
-
sideSection2 ? /* @__PURE__ */
|
|
18343
|
-
hasMenuItems ? /* @__PURE__ */
|
|
18429
|
+
sideSection2 ? /* @__PURE__ */ jsx100("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
18430
|
+
hasMenuItems ? /* @__PURE__ */ jsx100(
|
|
18344
18431
|
VerticalRhythm,
|
|
18345
18432
|
{
|
|
18346
18433
|
css: menuSection,
|
|
18347
18434
|
align: "center",
|
|
18348
18435
|
justify: "center",
|
|
18349
18436
|
onClick: onStopPropogation,
|
|
18350
|
-
children: /* @__PURE__ */
|
|
18437
|
+
children: /* @__PURE__ */ jsx100(
|
|
18351
18438
|
Menu,
|
|
18352
18439
|
{
|
|
18353
|
-
menuTrigger: /* @__PURE__ */
|
|
18440
|
+
menuTrigger: /* @__PURE__ */ jsx100(
|
|
18354
18441
|
"button",
|
|
18355
18442
|
{
|
|
18356
18443
|
type: "button",
|
|
18357
18444
|
"aria-label": "More options",
|
|
18358
18445
|
css: menuButton,
|
|
18359
18446
|
"data-testid": "button-more",
|
|
18360
|
-
children: /* @__PURE__ */
|
|
18447
|
+
children: /* @__PURE__ */ jsx100(Icon, { icon: "more-alt", iconColor: "gray", size: 16 })
|
|
18361
18448
|
}
|
|
18362
18449
|
),
|
|
18363
18450
|
menuLabel: `Menu of ${title2}`,
|
|
@@ -18377,8 +18464,8 @@ import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
|
18377
18464
|
import React20, { useEffect as useEffect15, useRef as useRef9 } from "react";
|
|
18378
18465
|
|
|
18379
18466
|
// src/components/Modal/Modal.styles.ts
|
|
18380
|
-
import { css as
|
|
18381
|
-
var modalStyles =
|
|
18467
|
+
import { css as css79 } from "@emotion/react";
|
|
18468
|
+
var modalStyles = css79`
|
|
18382
18469
|
border: none;
|
|
18383
18470
|
position: relative;
|
|
18384
18471
|
max-width: calc(100% - var(--spacing-base) * 2);
|
|
@@ -18392,16 +18479,16 @@ var modalStyles = css78`
|
|
|
18392
18479
|
opacity: 0.4;
|
|
18393
18480
|
}
|
|
18394
18481
|
`;
|
|
18395
|
-
var modalSizeSmall =
|
|
18482
|
+
var modalSizeSmall = css79`
|
|
18396
18483
|
width: clamp(280px, 100vw, 400px);
|
|
18397
18484
|
`;
|
|
18398
|
-
var modalSizeMedium =
|
|
18485
|
+
var modalSizeMedium = css79`
|
|
18399
18486
|
width: clamp(280px, 100vw, 600px);
|
|
18400
18487
|
`;
|
|
18401
|
-
var modalSizeLarge =
|
|
18488
|
+
var modalSizeLarge = css79`
|
|
18402
18489
|
width: clamp(280px, 100vw, 800px);
|
|
18403
18490
|
`;
|
|
18404
|
-
var modalInnerStyles =
|
|
18491
|
+
var modalInnerStyles = css79`
|
|
18405
18492
|
position: relative;
|
|
18406
18493
|
width: 100%;
|
|
18407
18494
|
display: flex;
|
|
@@ -18414,7 +18501,7 @@ var modalInnerStyles = css78`
|
|
|
18414
18501
|
box-shadow: var(--elevation-500);
|
|
18415
18502
|
border-radius: var(--rounded-base);
|
|
18416
18503
|
`;
|
|
18417
|
-
var modalHeaderStyles =
|
|
18504
|
+
var modalHeaderStyles = css79`
|
|
18418
18505
|
display: flex;
|
|
18419
18506
|
align-items: flex-start;
|
|
18420
18507
|
gap: var(--spacing-base);
|
|
@@ -18422,10 +18509,10 @@ var modalHeaderStyles = css78`
|
|
|
18422
18509
|
font-family: var(--ff-base);
|
|
18423
18510
|
line-height: 1.2;
|
|
18424
18511
|
`;
|
|
18425
|
-
var modalHeaderHeaderStyles =
|
|
18512
|
+
var modalHeaderHeaderStyles = css79`
|
|
18426
18513
|
max-width: calc(100% - 3rem);
|
|
18427
18514
|
`;
|
|
18428
|
-
var modalCloseButtonStyles =
|
|
18515
|
+
var modalCloseButtonStyles = css79`
|
|
18429
18516
|
background: transparent;
|
|
18430
18517
|
border: none;
|
|
18431
18518
|
color: var(--gray-300);
|
|
@@ -18440,7 +18527,7 @@ var modalCloseButtonStyles = css78`
|
|
|
18440
18527
|
color: var(--gray-400);
|
|
18441
18528
|
}
|
|
18442
18529
|
`;
|
|
18443
|
-
var modalContentStyles =
|
|
18530
|
+
var modalContentStyles = css79`
|
|
18444
18531
|
position: relative;
|
|
18445
18532
|
flex: 1;
|
|
18446
18533
|
overflow: auto;
|
|
@@ -18449,10 +18536,10 @@ var modalContentStyles = css78`
|
|
|
18449
18536
|
border-radius: var(--rounded-sm);
|
|
18450
18537
|
${scrollbarStyles}
|
|
18451
18538
|
`;
|
|
18452
|
-
var modalDialogWrapper =
|
|
18539
|
+
var modalDialogWrapper = css79`
|
|
18453
18540
|
padding: 0 var(--spacing-lg) var(--spacing-md);
|
|
18454
18541
|
`;
|
|
18455
|
-
var modalDialogInnerStyles =
|
|
18542
|
+
var modalDialogInnerStyles = css79`
|
|
18456
18543
|
// we need to override the gap of the modalInnerStyles when using a modal dialog
|
|
18457
18544
|
> div {
|
|
18458
18545
|
gap: 0;
|
|
@@ -18460,7 +18547,7 @@ var modalDialogInnerStyles = css78`
|
|
|
18460
18547
|
`;
|
|
18461
18548
|
|
|
18462
18549
|
// src/components/Modal/Modal.tsx
|
|
18463
|
-
import { jsx as
|
|
18550
|
+
import { jsx as jsx101, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
18464
18551
|
var defaultModalWidth = "75rem";
|
|
18465
18552
|
var defaultModalHeight = "51rem";
|
|
18466
18553
|
var Modal = React20.forwardRef(
|
|
@@ -18502,7 +18589,7 @@ var Modal = React20.forwardRef(
|
|
|
18502
18589
|
(_a2 = dialogRef.current) == null ? void 0 : _a2.close();
|
|
18503
18590
|
};
|
|
18504
18591
|
}, []);
|
|
18505
|
-
return /* @__PURE__ */
|
|
18592
|
+
return /* @__PURE__ */ jsx101(
|
|
18506
18593
|
"dialog",
|
|
18507
18594
|
{
|
|
18508
18595
|
ref: (element) => {
|
|
@@ -18524,15 +18611,15 @@ var Modal = React20.forwardRef(
|
|
|
18524
18611
|
e.preventDefault();
|
|
18525
18612
|
},
|
|
18526
18613
|
...modalProps,
|
|
18527
|
-
children: /* @__PURE__ */
|
|
18614
|
+
children: /* @__PURE__ */ jsx101(PortalContext.Provider, { value: dialogRef.current, children: /* @__PURE__ */ jsxs67(
|
|
18528
18615
|
"div",
|
|
18529
18616
|
{
|
|
18530
18617
|
css: [modalInnerStyles, { height: height === "auto" ? "auto" : "100%" }],
|
|
18531
18618
|
onClick: (e) => e.stopPropagation(),
|
|
18532
18619
|
children: [
|
|
18533
18620
|
/* @__PURE__ */ jsxs67("div", { css: modalHeaderStyles, children: [
|
|
18534
|
-
!header2 ? null : /* @__PURE__ */
|
|
18535
|
-
/* @__PURE__ */
|
|
18621
|
+
!header2 ? null : /* @__PURE__ */ jsx101("div", { css: modalHeaderHeaderStyles, children: header2 }),
|
|
18622
|
+
/* @__PURE__ */ jsx101(
|
|
18536
18623
|
Button,
|
|
18537
18624
|
{
|
|
18538
18625
|
type: "button",
|
|
@@ -18541,11 +18628,11 @@ var Modal = React20.forwardRef(
|
|
|
18541
18628
|
title: "Close dialog",
|
|
18542
18629
|
buttonType: "ghost",
|
|
18543
18630
|
"data-testid": "close-dialog",
|
|
18544
|
-
children: /* @__PURE__ */
|
|
18631
|
+
children: /* @__PURE__ */ jsx101(Icon, { icon: CgClose4, iconColor: "currentColor", size: 24 })
|
|
18545
18632
|
}
|
|
18546
18633
|
)
|
|
18547
18634
|
] }),
|
|
18548
|
-
/* @__PURE__ */
|
|
18635
|
+
/* @__PURE__ */ jsx101(
|
|
18549
18636
|
"div",
|
|
18550
18637
|
{
|
|
18551
18638
|
css: [
|
|
@@ -18556,7 +18643,7 @@ var Modal = React20.forwardRef(
|
|
|
18556
18643
|
children
|
|
18557
18644
|
}
|
|
18558
18645
|
),
|
|
18559
|
-
buttonGroup ? /* @__PURE__ */
|
|
18646
|
+
buttonGroup ? /* @__PURE__ */ jsx101(HorizontalRhythm, { children: buttonGroup }) : null
|
|
18560
18647
|
]
|
|
18561
18648
|
}
|
|
18562
18649
|
) })
|
|
@@ -18567,11 +18654,11 @@ var Modal = React20.forwardRef(
|
|
|
18567
18654
|
Modal.displayName = "Modal";
|
|
18568
18655
|
|
|
18569
18656
|
// src/components/Modal/ModalDialog.tsx
|
|
18570
|
-
import { forwardRef as
|
|
18571
|
-
import { jsx as
|
|
18572
|
-
var ModalDialog =
|
|
18657
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
18658
|
+
import { jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
18659
|
+
var ModalDialog = forwardRef16(
|
|
18573
18660
|
({ header: header2, buttonGroup, modalSize = "lg", children, height = "auto", onRequestClose, ...props }, ref) => {
|
|
18574
|
-
return /* @__PURE__ */
|
|
18661
|
+
return /* @__PURE__ */ jsx102(
|
|
18575
18662
|
Modal,
|
|
18576
18663
|
{
|
|
18577
18664
|
...props,
|
|
@@ -18584,9 +18671,9 @@ var ModalDialog = forwardRef15(
|
|
|
18584
18671
|
css: modalDialogInnerStyles,
|
|
18585
18672
|
width: "",
|
|
18586
18673
|
children: /* @__PURE__ */ jsxs68(VerticalRhythm, { css: modalDialogWrapper, children: [
|
|
18587
|
-
/* @__PURE__ */
|
|
18588
|
-
/* @__PURE__ */
|
|
18589
|
-
/* @__PURE__ */
|
|
18674
|
+
/* @__PURE__ */ jsx102("div", { css: modalHeaderStyles, children: header2 }),
|
|
18675
|
+
/* @__PURE__ */ jsx102("div", { children }),
|
|
18676
|
+
/* @__PURE__ */ jsx102(HorizontalRhythm, { children: buttonGroup })
|
|
18590
18677
|
] })
|
|
18591
18678
|
}
|
|
18592
18679
|
);
|
|
@@ -18595,22 +18682,22 @@ var ModalDialog = forwardRef15(
|
|
|
18595
18682
|
ModalDialog.displayName = "ModalDialog";
|
|
18596
18683
|
|
|
18597
18684
|
// src/components/Objects/styles/ObjectGridContainer.styles.ts
|
|
18598
|
-
import { css as
|
|
18599
|
-
var ObjectGridContainer = (gridCount) =>
|
|
18685
|
+
import { css as css80 } from "@emotion/react";
|
|
18686
|
+
var ObjectGridContainer = (gridCount) => css80`
|
|
18600
18687
|
display: grid;
|
|
18601
18688
|
grid-template-columns: repeat(${gridCount}, minmax(250px, 1fr));
|
|
18602
18689
|
gap: var(--spacing-base);
|
|
18603
18690
|
`;
|
|
18604
18691
|
|
|
18605
18692
|
// src/components/Objects/ObjectGridContainer.tsx
|
|
18606
|
-
import { jsx as
|
|
18693
|
+
import { jsx as jsx103 } from "@emotion/react/jsx-runtime";
|
|
18607
18694
|
var ObjectGridContainer2 = ({ gridCount = 3, children }) => {
|
|
18608
|
-
return /* @__PURE__ */
|
|
18695
|
+
return /* @__PURE__ */ jsx103("div", { "data-testid": "object-grid-container", css: ObjectGridContainer(gridCount), children });
|
|
18609
18696
|
};
|
|
18610
18697
|
|
|
18611
18698
|
// src/components/Objects/styles/ObjectGridItem.styles.ts
|
|
18612
|
-
import { css as
|
|
18613
|
-
var ObjectGridItem =
|
|
18699
|
+
import { css as css81 } from "@emotion/react";
|
|
18700
|
+
var ObjectGridItem = css81`
|
|
18614
18701
|
border: 1px solid var(--gray-300);
|
|
18615
18702
|
border-radius: var(--rounded-base);
|
|
18616
18703
|
background: var(--white);
|
|
@@ -18628,36 +18715,23 @@ var ObjectGridItem = css80`
|
|
|
18628
18715
|
}
|
|
18629
18716
|
}
|
|
18630
18717
|
`;
|
|
18631
|
-
var ObjectGridItemMediaWrapper =
|
|
18718
|
+
var ObjectGridItemMediaWrapper = css81`
|
|
18632
18719
|
display: flex;
|
|
18633
18720
|
flex: 1 1 0;
|
|
18634
18721
|
position: relative;
|
|
18635
18722
|
`;
|
|
18636
|
-
var ObjectGridItemContentWrapper =
|
|
18723
|
+
var ObjectGridItemContentWrapper = css81`
|
|
18637
18724
|
padding: 0 var(--spacing-sm) var(--spacing-sm);
|
|
18638
18725
|
min-height: 52px;
|
|
18639
18726
|
`;
|
|
18640
|
-
var ObjectGridItemImage =
|
|
18727
|
+
var ObjectGridItemImage = css81`
|
|
18641
18728
|
object-fit: cover;
|
|
18642
18729
|
width: 100%;
|
|
18643
18730
|
height: auto;
|
|
18644
18731
|
`;
|
|
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
18732
|
|
|
18659
18733
|
// src/components/Objects/ObjectGridItem.tsx
|
|
18660
|
-
import { jsx as
|
|
18734
|
+
import { jsx as jsx104, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
18661
18735
|
var ObjectGridItem2 = ({
|
|
18662
18736
|
header: header2,
|
|
18663
18737
|
cover,
|
|
@@ -18667,30 +18741,18 @@ var ObjectGridItem2 = ({
|
|
|
18667
18741
|
children
|
|
18668
18742
|
}) => {
|
|
18669
18743
|
return /* @__PURE__ */ jsxs69("div", { css: ObjectGridItem, "aria-selected": isSelected, children: [
|
|
18670
|
-
/* @__PURE__ */
|
|
18744
|
+
/* @__PURE__ */ jsx104("div", { css: ObjectGridItemMediaWrapper, children: cover }),
|
|
18671
18745
|
/* @__PURE__ */ jsxs69(HorizontalRhythm, { css: ObjectGridItemContentWrapper, justify: "space-between", gap: "sm", children: [
|
|
18672
18746
|
/* @__PURE__ */ jsxs69(VerticalRhythm, { gap: "0", children: [
|
|
18673
|
-
/* @__PURE__ */
|
|
18747
|
+
/* @__PURE__ */ jsx104(HorizontalRhythm, { gap: "xs", align: "center", children: header2 }),
|
|
18674
18748
|
children
|
|
18675
18749
|
] }),
|
|
18676
18750
|
/* @__PURE__ */ jsxs69(HorizontalRhythm, { gap: "xs", align: "flex-start", children: [
|
|
18677
18751
|
rightSlot,
|
|
18678
|
-
menuItems ? /* @__PURE__ */
|
|
18752
|
+
menuItems ? /* @__PURE__ */ jsx104(
|
|
18679
18753
|
Menu,
|
|
18680
18754
|
{
|
|
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
|
-
),
|
|
18755
|
+
menuTrigger: /* @__PURE__ */ jsx104(MenuThreeDots, { "data-testid": "object-grid-item-menu-btn" }),
|
|
18694
18756
|
placement: "bottom-end",
|
|
18695
18757
|
children: menuItems
|
|
18696
18758
|
}
|
|
@@ -18701,15 +18763,15 @@ var ObjectGridItem2 = ({
|
|
|
18701
18763
|
};
|
|
18702
18764
|
|
|
18703
18765
|
// src/components/Objects/styles/ObjectGridItemCardCover.styles.ts
|
|
18704
|
-
import { css as
|
|
18705
|
-
var CoverImage =
|
|
18766
|
+
import { css as css82 } from "@emotion/react";
|
|
18767
|
+
var CoverImage = css82`
|
|
18706
18768
|
aspect-ratio: 16/9;
|
|
18707
18769
|
max-width: 100%;
|
|
18708
18770
|
max-height: 100%;
|
|
18709
18771
|
height: auto;
|
|
18710
18772
|
padding: var(--spacing-sm);
|
|
18711
18773
|
`;
|
|
18712
|
-
var CoverIconWrapper =
|
|
18774
|
+
var CoverIconWrapper = css82`
|
|
18713
18775
|
position: relative;
|
|
18714
18776
|
display: flex;
|
|
18715
18777
|
align-items: center;
|
|
@@ -18717,7 +18779,7 @@ var CoverIconWrapper = css81`
|
|
|
18717
18779
|
flex: 1;
|
|
18718
18780
|
overflow: hidden;
|
|
18719
18781
|
`;
|
|
18720
|
-
var CoverIconGhost =
|
|
18782
|
+
var CoverIconGhost = css82`
|
|
18721
18783
|
position: absolute;
|
|
18722
18784
|
width: 60%;
|
|
18723
18785
|
height: auto;
|
|
@@ -18725,7 +18787,7 @@ var CoverIconGhost = css81`
|
|
|
18725
18787
|
opacity: 0.05;
|
|
18726
18788
|
transform: rotateZ(-15deg) translate(35%, 30%);
|
|
18727
18789
|
`;
|
|
18728
|
-
var CoverSlot =
|
|
18790
|
+
var CoverSlot = css82`
|
|
18729
18791
|
align-items: center;
|
|
18730
18792
|
background: var(--white);
|
|
18731
18793
|
display: flex;
|
|
@@ -18736,15 +18798,15 @@ var CoverSlot = css81`
|
|
|
18736
18798
|
width: 24px;
|
|
18737
18799
|
height: 24px;
|
|
18738
18800
|
`;
|
|
18739
|
-
var CoverSlotLeft =
|
|
18801
|
+
var CoverSlotLeft = css82`
|
|
18740
18802
|
border-bottom-right-radius: var(--rounded-base);
|
|
18741
18803
|
left: var(--spacing-sm);
|
|
18742
18804
|
`;
|
|
18743
|
-
var CoverSlotRight =
|
|
18805
|
+
var CoverSlotRight = css82`
|
|
18744
18806
|
border-bottom-left-radius: var(--rounded-base);
|
|
18745
18807
|
right: var(--spacing-sm);
|
|
18746
18808
|
`;
|
|
18747
|
-
var CoverButton =
|
|
18809
|
+
var CoverButton = css82`
|
|
18748
18810
|
align-items: stretch;
|
|
18749
18811
|
border: none;
|
|
18750
18812
|
background: none;
|
|
@@ -18757,7 +18819,7 @@ var CoverButton = css81`
|
|
|
18757
18819
|
outline: none;
|
|
18758
18820
|
}
|
|
18759
18821
|
`;
|
|
18760
|
-
var CoverSelectedChip =
|
|
18822
|
+
var CoverSelectedChip = css82`
|
|
18761
18823
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
18762
18824
|
opacity: 0;
|
|
18763
18825
|
position: absolute;
|
|
@@ -18766,11 +18828,11 @@ var CoverSelectedChip = css81`
|
|
|
18766
18828
|
`;
|
|
18767
18829
|
|
|
18768
18830
|
// src/components/Objects/ObjectGridItemCardCover.tsx
|
|
18769
|
-
import { Fragment as Fragment14, jsx as
|
|
18831
|
+
import { Fragment as Fragment14, jsx as jsx105, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18770
18832
|
var ObjectGridItemCardCover = (props) => {
|
|
18771
18833
|
if ("imageUrl" in props && props.imageUrl) {
|
|
18772
18834
|
const { imageUrl } = props;
|
|
18773
|
-
return /* @__PURE__ */
|
|
18835
|
+
return /* @__PURE__ */ jsx105(
|
|
18774
18836
|
"img",
|
|
18775
18837
|
{
|
|
18776
18838
|
src: imageUrl,
|
|
@@ -18784,8 +18846,8 @@ var ObjectGridItemCardCover = (props) => {
|
|
|
18784
18846
|
if ("icon" in props && props.icon) {
|
|
18785
18847
|
const { icon } = props;
|
|
18786
18848
|
return /* @__PURE__ */ jsxs70("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", children: [
|
|
18787
|
-
/* @__PURE__ */
|
|
18788
|
-
/* @__PURE__ */
|
|
18849
|
+
/* @__PURE__ */ jsx105(Icon, { icon, iconColor: "currentColor", css: CoverIconGhost }),
|
|
18850
|
+
/* @__PURE__ */ jsx105(Icon, { icon, iconColor: "currentColor", size: 48 })
|
|
18789
18851
|
] });
|
|
18790
18852
|
}
|
|
18791
18853
|
};
|
|
@@ -18795,9 +18857,9 @@ var ObjectGridItemCover = ({
|
|
|
18795
18857
|
...props
|
|
18796
18858
|
}) => {
|
|
18797
18859
|
return /* @__PURE__ */ jsxs70(Fragment14, { children: [
|
|
18798
|
-
coverSlotLeft ? /* @__PURE__ */
|
|
18799
|
-
/* @__PURE__ */
|
|
18800
|
-
coverSlotRight ? /* @__PURE__ */
|
|
18860
|
+
coverSlotLeft ? /* @__PURE__ */ jsx105("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
|
|
18861
|
+
/* @__PURE__ */ jsx105(ObjectGridItemCardCover, { ...props }),
|
|
18862
|
+
coverSlotRight ? /* @__PURE__ */ jsx105("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null
|
|
18801
18863
|
] });
|
|
18802
18864
|
};
|
|
18803
18865
|
var ObjectGridItemCoverButton = ({
|
|
@@ -18810,10 +18872,10 @@ var ObjectGridItemCoverButton = ({
|
|
|
18810
18872
|
...props
|
|
18811
18873
|
}) => {
|
|
18812
18874
|
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__ */
|
|
18875
|
+
coverSlotLeft ? /* @__PURE__ */ jsx105("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
|
|
18876
|
+
/* @__PURE__ */ jsx105(ObjectGridItemCardCover, { ...props }),
|
|
18877
|
+
coverSlotRight ? /* @__PURE__ */ jsx105("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null,
|
|
18878
|
+
isSelected ? /* @__PURE__ */ jsx105("div", { css: CoverSelectedChip, children: /* @__PURE__ */ jsx105(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) : null
|
|
18817
18879
|
] });
|
|
18818
18880
|
};
|
|
18819
18881
|
|
|
@@ -18821,8 +18883,8 @@ var ObjectGridItemCoverButton = ({
|
|
|
18821
18883
|
import { useEffect as useEffect16, useRef as useRef10, useState as useState13 } from "react";
|
|
18822
18884
|
|
|
18823
18885
|
// src/components/Objects/styles/ObjectGridItemHeading.styles.ts
|
|
18824
|
-
import { css as
|
|
18825
|
-
var ObjectGridItemHeading =
|
|
18886
|
+
import { css as css83 } from "@emotion/react";
|
|
18887
|
+
var ObjectGridItemHeading = css83`
|
|
18826
18888
|
overflow: hidden;
|
|
18827
18889
|
text-overflow: ellipsis;
|
|
18828
18890
|
white-space: initial;
|
|
@@ -18830,12 +18892,12 @@ var ObjectGridItemHeading = css82`
|
|
|
18830
18892
|
-webkit-line-clamp: 1;
|
|
18831
18893
|
-webkit-box-orient: vertical;
|
|
18832
18894
|
`;
|
|
18833
|
-
var PopoverContent =
|
|
18895
|
+
var PopoverContent = css83`
|
|
18834
18896
|
min-width: 50px;
|
|
18835
18897
|
`;
|
|
18836
18898
|
|
|
18837
18899
|
// src/components/Objects/ObjectGridItemHeading.tsx
|
|
18838
|
-
import { jsx as
|
|
18900
|
+
import { jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18839
18901
|
var ObjectGridItemHeading2 = ({
|
|
18840
18902
|
heading,
|
|
18841
18903
|
beforeHeadingSlot,
|
|
@@ -18862,55 +18924,208 @@ var ObjectGridItemHeading2 = ({
|
|
|
18862
18924
|
}, []);
|
|
18863
18925
|
return /* @__PURE__ */ jsxs71(HorizontalRhythm, { align: "center", gap: "xs", children: [
|
|
18864
18926
|
beforeHeadingSlot,
|
|
18865
|
-
/* @__PURE__ */
|
|
18927
|
+
/* @__PURE__ */ jsx106(Tooltip, { title: hasTruncation ? heading : "", children: /* @__PURE__ */ jsx106("div", { role: "heading", css: ObjectGridItemHeading, ref: headingRef, children: heading }) }),
|
|
18866
18928
|
afterHeadingSlot
|
|
18867
18929
|
] });
|
|
18868
18930
|
};
|
|
18869
18931
|
|
|
18870
18932
|
// src/components/Objects/ObjectGridItemIconWithTooltip.tsx
|
|
18871
|
-
import { jsx as
|
|
18933
|
+
import { jsx as jsx107 } from "@emotion/react/jsx-runtime";
|
|
18872
18934
|
var ObjectGridItemIconWithTooltip = ({
|
|
18873
18935
|
tooltipTitle,
|
|
18874
18936
|
placement = "bottom-start",
|
|
18875
18937
|
icon,
|
|
18876
18938
|
iconColor = "accent-dark"
|
|
18877
18939
|
}) => {
|
|
18878
|
-
return /* @__PURE__ */
|
|
18940
|
+
return /* @__PURE__ */ jsx107(Tooltip, { title: tooltipTitle, placement, children: /* @__PURE__ */ jsx107("span", { children: /* @__PURE__ */ jsx107(Icon, { icon, iconColor, size: "1rem" }) }) });
|
|
18941
|
+
};
|
|
18942
|
+
|
|
18943
|
+
// src/components/Objects/styles/ObjectListItem.styles.ts
|
|
18944
|
+
import { css as css84 } from "@emotion/react";
|
|
18945
|
+
var ObjectListItem = css84`
|
|
18946
|
+
background: var(--white);
|
|
18947
|
+
display: flex;
|
|
18948
|
+
gap: var(--spacing-sm);
|
|
18949
|
+
flex-grow: 1;
|
|
18950
|
+
padding: var(--spacing-sm);
|
|
18951
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
18952
|
+
|
|
18953
|
+
&:hover {
|
|
18954
|
+
background: var(--gray-50);
|
|
18955
|
+
}
|
|
18956
|
+
`;
|
|
18957
|
+
var ObjectListItemSingle = css84`
|
|
18958
|
+
align-items: center;
|
|
18959
|
+
`;
|
|
18960
|
+
var ObjectListItemContentWrapper = css84`
|
|
18961
|
+
flex-grow: 1;
|
|
18962
|
+
`;
|
|
18963
|
+
var ObjectListItemContainer = css84`
|
|
18964
|
+
> [role='listitem'] {
|
|
18965
|
+
border-top: 1px solid var(--gray-200);
|
|
18966
|
+
}
|
|
18967
|
+
`;
|
|
18968
|
+
var ObjectListItemCover = css84`
|
|
18969
|
+
max-width: 80px;
|
|
18970
|
+
min-height: 45px;
|
|
18971
|
+
object-fit: cover;
|
|
18972
|
+
|
|
18973
|
+
[role='presentation'] {
|
|
18974
|
+
background: var(--gray-200);
|
|
18975
|
+
height: 45px;
|
|
18976
|
+
}
|
|
18977
|
+
`;
|
|
18978
|
+
var ObjectListItemLoading = css84`
|
|
18979
|
+
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
18980
|
+
background: var(--white);
|
|
18981
|
+
display: flex;
|
|
18982
|
+
gap: var(--spacing-sm);
|
|
18983
|
+
flex-grow: 1;
|
|
18984
|
+
padding: var(--spacing-sm);
|
|
18985
|
+
`;
|
|
18986
|
+
var ObjectListItemLoadingText = (textLength) => css84`
|
|
18987
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
18988
|
+
border-radius: var(--rounded-base);
|
|
18989
|
+
background: var(--gray-300);
|
|
18990
|
+
display: block;
|
|
18991
|
+
width: ${textLength};
|
|
18992
|
+
height: var(--fs-base);
|
|
18993
|
+
`;
|
|
18994
|
+
var ObjectListItemLoadingImage = css84`
|
|
18995
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
18996
|
+
border-radius: var(--rounded-base);
|
|
18997
|
+
background: var(--gray-300);
|
|
18998
|
+
display: block;
|
|
18999
|
+
width: 80px;
|
|
19000
|
+
height: 55px;
|
|
19001
|
+
`;
|
|
19002
|
+
|
|
19003
|
+
// src/components/Objects/ObjectItemLoadingSkeleton.tsx
|
|
19004
|
+
import { jsx as jsx108, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
19005
|
+
var ObjectItemLoadingSkeleton = ({ showCover }) => {
|
|
19006
|
+
return /* @__PURE__ */ jsxs72("div", { css: ObjectListItemLoading, children: [
|
|
19007
|
+
showCover ? /* @__PURE__ */ jsx108("div", { "data-testid": "object-list-item-cover-skeleton", children: /* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingImage }) }) : null,
|
|
19008
|
+
/* @__PURE__ */ jsxs72(HorizontalRhythm, { css: ObjectListItemContentWrapper, justify: "space-between", gap: "sm", children: [
|
|
19009
|
+
/* @__PURE__ */ jsxs72(VerticalRhythm, { gap: "xs", children: [
|
|
19010
|
+
/* @__PURE__ */ jsx108(HorizontalRhythm, { gap: "xs", align: "center", children: /* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("30ch") }) }),
|
|
19011
|
+
/* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("20ch") })
|
|
19012
|
+
] }),
|
|
19013
|
+
/* @__PURE__ */ jsxs72(HorizontalRhythm, { gap: "xs", align: "flex-start", children: [
|
|
19014
|
+
/* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("6ch") }),
|
|
19015
|
+
/* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("2ch") })
|
|
19016
|
+
] })
|
|
19017
|
+
] })
|
|
19018
|
+
] });
|
|
19019
|
+
};
|
|
19020
|
+
|
|
19021
|
+
// src/components/Objects/ObjectListItem.tsx
|
|
19022
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
19023
|
+
var ObjectListItem2 = (props) => {
|
|
19024
|
+
const { renderAs, isSelected, cover, header: header2, rightSlot, menuItems, ...divProps } = props;
|
|
19025
|
+
return /* @__PURE__ */ jsxs73(
|
|
19026
|
+
"div",
|
|
19027
|
+
{
|
|
19028
|
+
role: "listitem",
|
|
19029
|
+
css: [ObjectListItem, renderAs === "single" ? ObjectListItemSingle : null],
|
|
19030
|
+
"data-testid": "object-list-item",
|
|
19031
|
+
"aria-selected": isSelected,
|
|
19032
|
+
...divProps,
|
|
19033
|
+
children: [
|
|
19034
|
+
cover ? /* @__PURE__ */ jsx109(HorizontalRhythm, { gap: "sm", align: "center", children: cover }) : null,
|
|
19035
|
+
/* @__PURE__ */ jsxs73(HorizontalRhythm, { css: ObjectListItemContentWrapper, justify: "space-between", gap: "sm", children: [
|
|
19036
|
+
/* @__PURE__ */ jsxs73(VerticalRhythm, { gap: "0", children: [
|
|
19037
|
+
/* @__PURE__ */ jsx109(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: header2 }),
|
|
19038
|
+
renderAs === "multi" ? props.children : null
|
|
19039
|
+
] }),
|
|
19040
|
+
/* @__PURE__ */ jsxs73(HorizontalRhythm, { gap: "xs", align: "flex-start", children: [
|
|
19041
|
+
rightSlot,
|
|
19042
|
+
menuItems ? /* @__PURE__ */ jsx109(
|
|
19043
|
+
Menu,
|
|
19044
|
+
{
|
|
19045
|
+
menuTrigger: /* @__PURE__ */ jsx109(MenuThreeDots, { "data-testid": "object-list-item-menu-btn" }),
|
|
19046
|
+
placement: "bottom-end",
|
|
19047
|
+
children: menuItems
|
|
19048
|
+
}
|
|
19049
|
+
) : null
|
|
19050
|
+
] })
|
|
19051
|
+
] })
|
|
19052
|
+
]
|
|
19053
|
+
}
|
|
19054
|
+
);
|
|
19055
|
+
};
|
|
19056
|
+
|
|
19057
|
+
// src/components/Objects/ObjectListItemContainer.tsx
|
|
19058
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
19059
|
+
var ObjectListItemContainer2 = ({ children, ...props }) => {
|
|
19060
|
+
return /* @__PURE__ */ jsx110(VerticalRhythm, { css: ObjectListItemContainer, role: "list", ...props, children });
|
|
19061
|
+
};
|
|
19062
|
+
|
|
19063
|
+
// src/components/Objects/ObjectListItemCover.tsx
|
|
19064
|
+
import { jsx as jsx111 } from "@emotion/react/jsx-runtime";
|
|
19065
|
+
var ObjectListItemCover2 = ({ imageUrl, ...props }) => {
|
|
19066
|
+
if (!imageUrl) {
|
|
19067
|
+
return /* @__PURE__ */ jsx111("div", { css: ObjectListItemCover, role: "presentation", "data-testid": "object-list-item-thumbnail" });
|
|
19068
|
+
}
|
|
19069
|
+
return /* @__PURE__ */ jsx111(
|
|
19070
|
+
"img",
|
|
19071
|
+
{
|
|
19072
|
+
css: ObjectListItemCover,
|
|
19073
|
+
src: imageUrl,
|
|
19074
|
+
loading: "lazy",
|
|
19075
|
+
"data-testid": "object-list-item-thumbnail",
|
|
19076
|
+
...props
|
|
19077
|
+
}
|
|
19078
|
+
);
|
|
19079
|
+
};
|
|
19080
|
+
|
|
19081
|
+
// src/components/Objects/ObjectListItemHeading.tsx
|
|
19082
|
+
import { jsx as jsx112, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
19083
|
+
var ObjectListItemHeading = ({
|
|
19084
|
+
heading,
|
|
19085
|
+
beforeHeadingSlot,
|
|
19086
|
+
afterHeadingSlot,
|
|
19087
|
+
...props
|
|
19088
|
+
}) => {
|
|
19089
|
+
return /* @__PURE__ */ jsxs74(HorizontalRhythm, { align: "center", gap: "xs", ...props, children: [
|
|
19090
|
+
beforeHeadingSlot,
|
|
19091
|
+
/* @__PURE__ */ jsx112("div", { role: "heading", children: heading }),
|
|
19092
|
+
afterHeadingSlot
|
|
19093
|
+
] });
|
|
18879
19094
|
};
|
|
18880
19095
|
|
|
18881
19096
|
// src/components/Pagination/Pagination.tsx
|
|
18882
19097
|
import Paginate from "react-paginate";
|
|
18883
19098
|
|
|
18884
19099
|
// src/components/Pagination/Pagniation.styles.ts
|
|
18885
|
-
import { css as
|
|
18886
|
-
var container2 =
|
|
19100
|
+
import { css as css85 } from "@emotion/css";
|
|
19101
|
+
var container2 = css85`
|
|
18887
19102
|
align-items: center;
|
|
18888
19103
|
display: flex;
|
|
18889
19104
|
`;
|
|
18890
|
-
var disabled =
|
|
19105
|
+
var disabled = css85`
|
|
18891
19106
|
opacity: var(--opacity-50);
|
|
18892
19107
|
`;
|
|
18893
|
-
var disabledLink =
|
|
19108
|
+
var disabledLink = css85`
|
|
18894
19109
|
cursor: pointer-default;
|
|
18895
19110
|
`;
|
|
18896
|
-
var pageLink =
|
|
19111
|
+
var pageLink = css85`
|
|
18897
19112
|
display: block;
|
|
18898
19113
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
18899
19114
|
`;
|
|
18900
|
-
var prevNextControls =
|
|
19115
|
+
var prevNextControls = css85`
|
|
18901
19116
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
18902
19117
|
`;
|
|
18903
|
-
var active =
|
|
19118
|
+
var active = css85`
|
|
18904
19119
|
border-radius: var(--rounded-base);
|
|
18905
19120
|
background: var(--gray-200);
|
|
18906
19121
|
`;
|
|
18907
|
-
var page =
|
|
19122
|
+
var page = css85`
|
|
18908
19123
|
margin-left: var(--spacing-xs);
|
|
18909
19124
|
margin-right: var(--spacing-xs);
|
|
18910
19125
|
`;
|
|
18911
19126
|
|
|
18912
19127
|
// src/components/Pagination/Pagination.tsx
|
|
18913
|
-
import { jsx as
|
|
19128
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
18914
19129
|
function Pagination({
|
|
18915
19130
|
limit,
|
|
18916
19131
|
offset,
|
|
@@ -18925,12 +19140,12 @@ function Pagination({
|
|
|
18925
19140
|
if (pageCount <= 1) {
|
|
18926
19141
|
return null;
|
|
18927
19142
|
}
|
|
18928
|
-
return /* @__PURE__ */
|
|
19143
|
+
return /* @__PURE__ */ jsx113(
|
|
18929
19144
|
Paginate,
|
|
18930
19145
|
{
|
|
18931
19146
|
forcePage: currentPage,
|
|
18932
|
-
previousLabel: /* @__PURE__ */
|
|
18933
|
-
nextLabel: /* @__PURE__ */
|
|
19147
|
+
previousLabel: /* @__PURE__ */ jsx113("div", { className: prevNextControls, children: "<" }),
|
|
19148
|
+
nextLabel: /* @__PURE__ */ jsx113("div", { className: prevNextControls, children: ">" }),
|
|
18934
19149
|
breakLabel: "...",
|
|
18935
19150
|
pageCount,
|
|
18936
19151
|
marginPagesDisplayed: 2,
|
|
@@ -18970,8 +19185,8 @@ var useParameterShell = () => {
|
|
|
18970
19185
|
};
|
|
18971
19186
|
|
|
18972
19187
|
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
18973
|
-
import { css as
|
|
18974
|
-
var inputIconBtn =
|
|
19188
|
+
import { css as css86 } from "@emotion/react";
|
|
19189
|
+
var inputIconBtn = css86`
|
|
18975
19190
|
align-items: center;
|
|
18976
19191
|
border: none;
|
|
18977
19192
|
border-radius: var(--rounded-base);
|
|
@@ -18997,7 +19212,7 @@ var inputIconBtn = css84`
|
|
|
18997
19212
|
`;
|
|
18998
19213
|
|
|
18999
19214
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
19000
|
-
import { jsx as
|
|
19215
|
+
import { jsx as jsx114, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19001
19216
|
var LabelLeadingIcon = ({
|
|
19002
19217
|
icon,
|
|
19003
19218
|
iconColor,
|
|
@@ -19009,7 +19224,7 @@ var LabelLeadingIcon = ({
|
|
|
19009
19224
|
...props
|
|
19010
19225
|
}) => {
|
|
19011
19226
|
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__ */
|
|
19227
|
+
return /* @__PURE__ */ jsx114(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs75(
|
|
19013
19228
|
"button",
|
|
19014
19229
|
{
|
|
19015
19230
|
css: inputIconBtn,
|
|
@@ -19019,7 +19234,7 @@ var LabelLeadingIcon = ({
|
|
|
19019
19234
|
...props,
|
|
19020
19235
|
"data-testid": "lock-button",
|
|
19021
19236
|
children: [
|
|
19022
|
-
/* @__PURE__ */
|
|
19237
|
+
/* @__PURE__ */ jsx114(
|
|
19023
19238
|
Icon,
|
|
19024
19239
|
{
|
|
19025
19240
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -19035,8 +19250,8 @@ var LabelLeadingIcon = ({
|
|
|
19035
19250
|
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
19036
19251
|
|
|
19037
19252
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
19038
|
-
import { css as
|
|
19039
|
-
var inputContainer2 =
|
|
19253
|
+
import { css as css87 } from "@emotion/react";
|
|
19254
|
+
var inputContainer2 = css87`
|
|
19040
19255
|
position: relative;
|
|
19041
19256
|
scroll-margin: var(--spacing-2xl);
|
|
19042
19257
|
|
|
@@ -19049,14 +19264,14 @@ var inputContainer2 = css85`
|
|
|
19049
19264
|
}
|
|
19050
19265
|
}
|
|
19051
19266
|
`;
|
|
19052
|
-
var labelText2 =
|
|
19267
|
+
var labelText2 = css87`
|
|
19053
19268
|
align-items: center;
|
|
19054
19269
|
display: flex;
|
|
19055
19270
|
gap: var(--spacing-xs);
|
|
19056
19271
|
font-weight: var(--fw-regular);
|
|
19057
19272
|
margin: 0 0 var(--spacing-xs);
|
|
19058
19273
|
`;
|
|
19059
|
-
var input3 =
|
|
19274
|
+
var input3 = css87`
|
|
19060
19275
|
display: block;
|
|
19061
19276
|
appearance: none;
|
|
19062
19277
|
box-sizing: border-box;
|
|
@@ -19104,18 +19319,18 @@ var input3 = css85`
|
|
|
19104
19319
|
color: var(--gray-400);
|
|
19105
19320
|
}
|
|
19106
19321
|
`;
|
|
19107
|
-
var selectInput =
|
|
19322
|
+
var selectInput = css87`
|
|
19108
19323
|
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
19324
|
background-position: right var(--spacing-sm) center;
|
|
19110
19325
|
background-repeat: no-repeat;
|
|
19111
19326
|
background-size: 1rem;
|
|
19112
19327
|
padding-right: var(--spacing-xl);
|
|
19113
19328
|
`;
|
|
19114
|
-
var inputWrapper =
|
|
19329
|
+
var inputWrapper = css87`
|
|
19115
19330
|
display: flex; // used to correct overflow with chrome textarea
|
|
19116
19331
|
position: relative;
|
|
19117
19332
|
`;
|
|
19118
|
-
var inputIcon2 =
|
|
19333
|
+
var inputIcon2 = css87`
|
|
19119
19334
|
align-items: center;
|
|
19120
19335
|
background: var(--white);
|
|
19121
19336
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -19131,7 +19346,7 @@ var inputIcon2 = css85`
|
|
|
19131
19346
|
width: var(--spacing-lg);
|
|
19132
19347
|
z-index: var(--z-10);
|
|
19133
19348
|
`;
|
|
19134
|
-
var inputToggleLabel2 =
|
|
19349
|
+
var inputToggleLabel2 = css87`
|
|
19135
19350
|
--inline-label-color: var(--typography-base);
|
|
19136
19351
|
align-items: center;
|
|
19137
19352
|
cursor: pointer;
|
|
@@ -19146,7 +19361,7 @@ var inputToggleLabel2 = css85`
|
|
|
19146
19361
|
--inline-label-color: var(--gray-400);
|
|
19147
19362
|
}
|
|
19148
19363
|
`;
|
|
19149
|
-
var toggleInput2 =
|
|
19364
|
+
var toggleInput2 = css87`
|
|
19150
19365
|
appearance: none;
|
|
19151
19366
|
border: 1px solid var(--gray-200);
|
|
19152
19367
|
background: var(--white);
|
|
@@ -19199,7 +19414,7 @@ var toggleInput2 = css85`
|
|
|
19199
19414
|
border-color: var(--gray-300);
|
|
19200
19415
|
}
|
|
19201
19416
|
`;
|
|
19202
|
-
var inlineLabel2 =
|
|
19417
|
+
var inlineLabel2 = css87`
|
|
19203
19418
|
color: var(--inline-label-color);
|
|
19204
19419
|
padding-left: var(--spacing-md);
|
|
19205
19420
|
font-size: var(--fs-sm);
|
|
@@ -19216,7 +19431,7 @@ var inlineLabel2 = css85`
|
|
|
19216
19431
|
}
|
|
19217
19432
|
}
|
|
19218
19433
|
`;
|
|
19219
|
-
var inputMenu =
|
|
19434
|
+
var inputMenu = css87`
|
|
19220
19435
|
background: none;
|
|
19221
19436
|
border: none;
|
|
19222
19437
|
padding: var(--spacing-2xs);
|
|
@@ -19224,10 +19439,10 @@ var inputMenu = css85`
|
|
|
19224
19439
|
top: calc(var(--spacing-md) * -1.2);
|
|
19225
19440
|
right: 0;
|
|
19226
19441
|
`;
|
|
19227
|
-
var inputActionItems =
|
|
19442
|
+
var inputActionItems = css87`
|
|
19228
19443
|
display: flex;
|
|
19229
19444
|
`;
|
|
19230
|
-
var inputMenuHover =
|
|
19445
|
+
var inputMenuHover = css87`
|
|
19231
19446
|
opacity: var(--opacity-50);
|
|
19232
19447
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
19233
19448
|
|
|
@@ -19237,11 +19452,11 @@ var inputMenuHover = css85`
|
|
|
19237
19452
|
background-color: var(--gray-200);
|
|
19238
19453
|
}
|
|
19239
19454
|
`;
|
|
19240
|
-
var textarea2 =
|
|
19455
|
+
var textarea2 = css87`
|
|
19241
19456
|
resize: vertical;
|
|
19242
19457
|
min-height: 2rem;
|
|
19243
19458
|
`;
|
|
19244
|
-
var dataConnectButton =
|
|
19459
|
+
var dataConnectButton = css87`
|
|
19245
19460
|
align-items: center;
|
|
19246
19461
|
appearance: none;
|
|
19247
19462
|
box-sizing: border-box;
|
|
@@ -19276,7 +19491,7 @@ var dataConnectButton = css85`
|
|
|
19276
19491
|
pointer-events: none;
|
|
19277
19492
|
}
|
|
19278
19493
|
`;
|
|
19279
|
-
var linkParameterBtn =
|
|
19494
|
+
var linkParameterBtn = css87`
|
|
19280
19495
|
border-radius: var(--rounded-base);
|
|
19281
19496
|
background: transparent;
|
|
19282
19497
|
border: none;
|
|
@@ -19285,7 +19500,7 @@ var linkParameterBtn = css85`
|
|
|
19285
19500
|
font-size: var(--fs-sm);
|
|
19286
19501
|
line-height: 1;
|
|
19287
19502
|
`;
|
|
19288
|
-
var linkParameterControls =
|
|
19503
|
+
var linkParameterControls = css87`
|
|
19289
19504
|
position: absolute;
|
|
19290
19505
|
inset: 0 0 0 auto;
|
|
19291
19506
|
padding: 0 var(--spacing-base);
|
|
@@ -19294,7 +19509,7 @@ var linkParameterControls = css85`
|
|
|
19294
19509
|
justify-content: center;
|
|
19295
19510
|
gap: var(--spacing-base);
|
|
19296
19511
|
`;
|
|
19297
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
19512
|
+
var linkParameterInput = (withExternalLinkIcon) => css87`
|
|
19298
19513
|
padding-right: calc(
|
|
19299
19514
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
19300
19515
|
var(--spacing-base)
|
|
@@ -19307,7 +19522,7 @@ var linkParameterInput = (withExternalLinkIcon) => css85`
|
|
|
19307
19522
|
}
|
|
19308
19523
|
}
|
|
19309
19524
|
`;
|
|
19310
|
-
var linkParameterIcon =
|
|
19525
|
+
var linkParameterIcon = css87`
|
|
19311
19526
|
align-items: center;
|
|
19312
19527
|
color: var(--brand-secondary-3);
|
|
19313
19528
|
display: flex;
|
|
@@ -19322,7 +19537,7 @@ var linkParameterIcon = css85`
|
|
|
19322
19537
|
`;
|
|
19323
19538
|
|
|
19324
19539
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
19325
|
-
import { jsx as
|
|
19540
|
+
import { jsx as jsx115, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19326
19541
|
function ParameterDataResource({
|
|
19327
19542
|
label,
|
|
19328
19543
|
labelLeadingIcon,
|
|
@@ -19332,12 +19547,12 @@ function ParameterDataResource({
|
|
|
19332
19547
|
disabled: disabled2,
|
|
19333
19548
|
children
|
|
19334
19549
|
}) {
|
|
19335
|
-
return /* @__PURE__ */
|
|
19336
|
-
/* @__PURE__ */
|
|
19550
|
+
return /* @__PURE__ */ jsxs76("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
19551
|
+
/* @__PURE__ */ jsxs76("span", { css: labelText2, children: [
|
|
19337
19552
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
19338
19553
|
label
|
|
19339
19554
|
] }),
|
|
19340
|
-
/* @__PURE__ */
|
|
19555
|
+
/* @__PURE__ */ jsxs76(
|
|
19341
19556
|
"button",
|
|
19342
19557
|
{
|
|
19343
19558
|
type: "button",
|
|
@@ -19346,30 +19561,30 @@ function ParameterDataResource({
|
|
|
19346
19561
|
disabled: disabled2,
|
|
19347
19562
|
onClick: onConnectDatasource,
|
|
19348
19563
|
children: [
|
|
19349
|
-
/* @__PURE__ */
|
|
19564
|
+
/* @__PURE__ */ jsx115("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx115(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
19350
19565
|
children
|
|
19351
19566
|
]
|
|
19352
19567
|
}
|
|
19353
19568
|
),
|
|
19354
|
-
caption ? /* @__PURE__ */
|
|
19569
|
+
caption ? /* @__PURE__ */ jsx115(Caption, { children: caption }) : null
|
|
19355
19570
|
] });
|
|
19356
19571
|
}
|
|
19357
19572
|
|
|
19358
19573
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
19359
|
-
import { css as
|
|
19360
|
-
var ParameterDrawerHeaderContainer =
|
|
19574
|
+
import { css as css88 } from "@emotion/react";
|
|
19575
|
+
var ParameterDrawerHeaderContainer = css88`
|
|
19361
19576
|
align-items: center;
|
|
19362
19577
|
display: flex;
|
|
19363
19578
|
gap: var(--spacing-base);
|
|
19364
19579
|
justify-content: space-between;
|
|
19365
19580
|
margin-bottom: var(--spacing-sm);
|
|
19366
19581
|
`;
|
|
19367
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
19582
|
+
var ParameterDrawerHeaderTitleGroup = css88`
|
|
19368
19583
|
align-items: center;
|
|
19369
19584
|
display: flex;
|
|
19370
19585
|
gap: var(--spacing-sm);
|
|
19371
19586
|
`;
|
|
19372
|
-
var ParameterDrawerHeaderTitle =
|
|
19587
|
+
var ParameterDrawerHeaderTitle = css88`
|
|
19373
19588
|
text-overflow: ellipsis;
|
|
19374
19589
|
white-space: nowrap;
|
|
19375
19590
|
overflow: hidden;
|
|
@@ -19377,23 +19592,23 @@ var ParameterDrawerHeaderTitle = css86`
|
|
|
19377
19592
|
`;
|
|
19378
19593
|
|
|
19379
19594
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
19380
|
-
import { jsx as
|
|
19595
|
+
import { jsx as jsx116, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
19381
19596
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
19382
|
-
return /* @__PURE__ */
|
|
19383
|
-
/* @__PURE__ */
|
|
19597
|
+
return /* @__PURE__ */ jsxs77("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
19598
|
+
/* @__PURE__ */ jsxs77("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
19384
19599
|
iconBeforeTitle,
|
|
19385
|
-
/* @__PURE__ */
|
|
19600
|
+
/* @__PURE__ */ jsx116(Heading2, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
19386
19601
|
] }),
|
|
19387
19602
|
children
|
|
19388
19603
|
] });
|
|
19389
19604
|
};
|
|
19390
19605
|
|
|
19391
19606
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
19392
|
-
import { forwardRef as
|
|
19607
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
19393
19608
|
|
|
19394
19609
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
19395
|
-
import { css as
|
|
19396
|
-
var fieldsetStyles =
|
|
19610
|
+
import { css as css89 } from "@emotion/react";
|
|
19611
|
+
var fieldsetStyles = css89`
|
|
19397
19612
|
&:disabled,
|
|
19398
19613
|
[readonly] {
|
|
19399
19614
|
pointer-events: none;
|
|
@@ -19404,7 +19619,7 @@ var fieldsetStyles = css87`
|
|
|
19404
19619
|
}
|
|
19405
19620
|
}
|
|
19406
19621
|
`;
|
|
19407
|
-
var fieldsetLegend2 =
|
|
19622
|
+
var fieldsetLegend2 = css89`
|
|
19408
19623
|
display: block;
|
|
19409
19624
|
font-weight: var(--fw-medium);
|
|
19410
19625
|
margin-bottom: var(--spacing-sm);
|
|
@@ -19412,33 +19627,33 @@ var fieldsetLegend2 = css87`
|
|
|
19412
19627
|
`;
|
|
19413
19628
|
|
|
19414
19629
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
19415
|
-
import { jsx as
|
|
19416
|
-
var ParameterGroup =
|
|
19630
|
+
import { jsx as jsx117, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
19631
|
+
var ParameterGroup = forwardRef17(
|
|
19417
19632
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
19418
|
-
return /* @__PURE__ */
|
|
19419
|
-
/* @__PURE__ */
|
|
19633
|
+
return /* @__PURE__ */ jsxs78("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
19634
|
+
/* @__PURE__ */ jsx117("legend", { css: fieldsetLegend2, children: legend }),
|
|
19420
19635
|
children
|
|
19421
19636
|
] });
|
|
19422
19637
|
}
|
|
19423
19638
|
);
|
|
19424
19639
|
|
|
19425
19640
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
19426
|
-
import { forwardRef as
|
|
19641
|
+
import { forwardRef as forwardRef19, useDeferredValue } from "react";
|
|
19427
19642
|
|
|
19428
19643
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
19429
19644
|
import { useState as useState14 } from "react";
|
|
19430
19645
|
import { createPortal as createPortal2 } from "react-dom";
|
|
19431
19646
|
|
|
19432
19647
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
19433
|
-
import { css as
|
|
19434
|
-
var previewWrapper =
|
|
19648
|
+
import { css as css90 } from "@emotion/react";
|
|
19649
|
+
var previewWrapper = css90`
|
|
19435
19650
|
margin-top: var(--spacing-xs);
|
|
19436
19651
|
background: var(--gray-50);
|
|
19437
19652
|
padding: var(--spacing-sm);
|
|
19438
19653
|
border: solid 1px var(--gray-300);
|
|
19439
19654
|
border-radius: var(--rounded-sm);
|
|
19440
19655
|
`;
|
|
19441
|
-
var previewLink =
|
|
19656
|
+
var previewLink = css90`
|
|
19442
19657
|
display: block;
|
|
19443
19658
|
width: 100%;
|
|
19444
19659
|
|
|
@@ -19446,7 +19661,7 @@ var previewLink = css88`
|
|
|
19446
19661
|
max-height: 9rem;
|
|
19447
19662
|
}
|
|
19448
19663
|
`;
|
|
19449
|
-
var previewModalWrapper =
|
|
19664
|
+
var previewModalWrapper = css90`
|
|
19450
19665
|
background: var(--gray-50);
|
|
19451
19666
|
display: flex;
|
|
19452
19667
|
height: 100%;
|
|
@@ -19455,7 +19670,7 @@ var previewModalWrapper = css88`
|
|
|
19455
19670
|
border: solid 1px var(--gray-300);
|
|
19456
19671
|
border-radius: var(--rounded-sm);
|
|
19457
19672
|
`;
|
|
19458
|
-
var previewModalImage =
|
|
19673
|
+
var previewModalImage = css90`
|
|
19459
19674
|
display: flex;
|
|
19460
19675
|
height: 100%;
|
|
19461
19676
|
width: 100%;
|
|
@@ -19467,32 +19682,32 @@ var previewModalImage = css88`
|
|
|
19467
19682
|
`;
|
|
19468
19683
|
|
|
19469
19684
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
19470
|
-
import { Fragment as Fragment15, jsx as
|
|
19685
|
+
import { Fragment as Fragment15, jsx as jsx118, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
19471
19686
|
function ParameterImagePreview({ imageSrc }) {
|
|
19472
19687
|
const [showModal, setShowModal] = useState14(false);
|
|
19473
|
-
return imageSrc ? /* @__PURE__ */
|
|
19474
|
-
/* @__PURE__ */
|
|
19475
|
-
/* @__PURE__ */
|
|
19688
|
+
return imageSrc ? /* @__PURE__ */ jsxs79("div", { css: previewWrapper, children: [
|
|
19689
|
+
/* @__PURE__ */ jsx118(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
19690
|
+
/* @__PURE__ */ jsx118(
|
|
19476
19691
|
"button",
|
|
19477
19692
|
{
|
|
19478
19693
|
css: previewLink,
|
|
19479
19694
|
onClick: () => {
|
|
19480
19695
|
setShowModal(true);
|
|
19481
19696
|
},
|
|
19482
|
-
children: /* @__PURE__ */
|
|
19697
|
+
children: /* @__PURE__ */ jsx118(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
19483
19698
|
}
|
|
19484
19699
|
)
|
|
19485
19700
|
] }) : null;
|
|
19486
19701
|
}
|
|
19487
19702
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
19488
|
-
return open ? /* @__PURE__ */
|
|
19489
|
-
/* @__PURE__ */
|
|
19703
|
+
return open ? /* @__PURE__ */ jsx118(Fragment15, { children: createPortal2(
|
|
19704
|
+
/* @__PURE__ */ jsx118(
|
|
19490
19705
|
Modal,
|
|
19491
19706
|
{
|
|
19492
19707
|
header: "Image Preview",
|
|
19493
19708
|
onRequestClose,
|
|
19494
|
-
buttonGroup: /* @__PURE__ */
|
|
19495
|
-
children: /* @__PURE__ */
|
|
19709
|
+
buttonGroup: /* @__PURE__ */ jsx118(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
19710
|
+
children: /* @__PURE__ */ jsx118("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx118(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
19496
19711
|
}
|
|
19497
19712
|
),
|
|
19498
19713
|
document.body
|
|
@@ -19500,25 +19715,25 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
19500
19715
|
};
|
|
19501
19716
|
|
|
19502
19717
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
19503
|
-
import { css as
|
|
19718
|
+
import { css as css92 } from "@emotion/react";
|
|
19504
19719
|
import { useState as useState15 } from "react";
|
|
19505
19720
|
|
|
19506
19721
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
19507
|
-
import { jsx as
|
|
19722
|
+
import { jsx as jsx119 } from "@emotion/react/jsx-runtime";
|
|
19508
19723
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
19509
|
-
return !asSpan ? /* @__PURE__ */
|
|
19724
|
+
return !asSpan ? /* @__PURE__ */ jsx119("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx119("span", { "aria-labelledby": id, css: labelText2, children });
|
|
19510
19725
|
};
|
|
19511
19726
|
|
|
19512
19727
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
19513
|
-
import { forwardRef as
|
|
19514
|
-
import { jsx as
|
|
19515
|
-
var ParameterMenuButton =
|
|
19728
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
19729
|
+
import { jsx as jsx120 } from "@emotion/react/jsx-runtime";
|
|
19730
|
+
var ParameterMenuButton = forwardRef18(
|
|
19516
19731
|
({ label, children }, ref) => {
|
|
19517
|
-
return /* @__PURE__ */
|
|
19732
|
+
return /* @__PURE__ */ jsx120(
|
|
19518
19733
|
Menu,
|
|
19519
19734
|
{
|
|
19520
19735
|
menuLabel: `${label} menu`,
|
|
19521
|
-
menuTrigger: /* @__PURE__ */
|
|
19736
|
+
menuTrigger: /* @__PURE__ */ jsx120(
|
|
19522
19737
|
"button",
|
|
19523
19738
|
{
|
|
19524
19739
|
className: "parameter-menu",
|
|
@@ -19526,7 +19741,7 @@ var ParameterMenuButton = forwardRef17(
|
|
|
19526
19741
|
type: "button",
|
|
19527
19742
|
"aria-label": `${label} options`,
|
|
19528
19743
|
ref,
|
|
19529
|
-
children: /* @__PURE__ */
|
|
19744
|
+
children: /* @__PURE__ */ jsx120(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
19530
19745
|
}
|
|
19531
19746
|
),
|
|
19532
19747
|
children
|
|
@@ -19536,14 +19751,14 @@ var ParameterMenuButton = forwardRef17(
|
|
|
19536
19751
|
);
|
|
19537
19752
|
|
|
19538
19753
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
19539
|
-
import { css as
|
|
19540
|
-
var emptyParameterShell =
|
|
19754
|
+
import { css as css91 } from "@emotion/react";
|
|
19755
|
+
var emptyParameterShell = css91`
|
|
19541
19756
|
border-radius: var(--rounded-sm);
|
|
19542
19757
|
flex-grow: 1;
|
|
19543
19758
|
position: relative;
|
|
19544
19759
|
max-width: 100%;
|
|
19545
19760
|
`;
|
|
19546
|
-
var emptyParameterShellText =
|
|
19761
|
+
var emptyParameterShellText = css91`
|
|
19547
19762
|
background: var(--brand-secondary-6);
|
|
19548
19763
|
border-radius: var(--rounded-sm);
|
|
19549
19764
|
padding: var(--spacing-sm);
|
|
@@ -19551,7 +19766,7 @@ var emptyParameterShellText = css89`
|
|
|
19551
19766
|
font-size: var(--fs-sm);
|
|
19552
19767
|
margin: 0;
|
|
19553
19768
|
`;
|
|
19554
|
-
var overrideMarker =
|
|
19769
|
+
var overrideMarker = css91`
|
|
19555
19770
|
border-radius: var(--rounded-sm);
|
|
19556
19771
|
border: 10px solid var(--gray-300);
|
|
19557
19772
|
border-left-color: transparent;
|
|
@@ -19562,7 +19777,7 @@ var overrideMarker = css89`
|
|
|
19562
19777
|
`;
|
|
19563
19778
|
|
|
19564
19779
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
19565
|
-
import { jsx as
|
|
19780
|
+
import { jsx as jsx121, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
19566
19781
|
var extractParameterProps = (props) => {
|
|
19567
19782
|
const {
|
|
19568
19783
|
id,
|
|
@@ -19625,33 +19840,33 @@ var ParameterShell = ({
|
|
|
19625
19840
|
const [manualErrorMessage, setManualErrorMessage] = useState15(void 0);
|
|
19626
19841
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
19627
19842
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
19628
|
-
return /* @__PURE__ */
|
|
19629
|
-
hiddenLabel || title2 ? null : /* @__PURE__ */
|
|
19843
|
+
return /* @__PURE__ */ jsxs80("div", { css: inputContainer2, ...props, id, children: [
|
|
19844
|
+
hiddenLabel || title2 ? null : /* @__PURE__ */ jsxs80(ParameterLabel, { id, css: labelText2, children: [
|
|
19630
19845
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
19631
19846
|
label,
|
|
19632
19847
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
19633
19848
|
] }),
|
|
19634
|
-
!title2 ? null : /* @__PURE__ */
|
|
19849
|
+
!title2 ? null : /* @__PURE__ */ jsxs80(ParameterLabel, { id, asSpan: true, children: [
|
|
19635
19850
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
19636
19851
|
title2,
|
|
19637
19852
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
19638
19853
|
] }),
|
|
19639
|
-
/* @__PURE__ */
|
|
19640
|
-
actionItems ? /* @__PURE__ */
|
|
19854
|
+
/* @__PURE__ */ jsxs80("div", { css: inputWrapper, children: [
|
|
19855
|
+
actionItems ? /* @__PURE__ */ jsx121(
|
|
19641
19856
|
"div",
|
|
19642
19857
|
{
|
|
19643
19858
|
css: [
|
|
19644
19859
|
inputMenu,
|
|
19645
19860
|
inputActionItems,
|
|
19646
|
-
menuItems ?
|
|
19861
|
+
menuItems ? css92`
|
|
19647
19862
|
right: var(--spacing-md);
|
|
19648
19863
|
` : void 0
|
|
19649
19864
|
],
|
|
19650
19865
|
children: actionItems
|
|
19651
19866
|
}
|
|
19652
19867
|
) : null,
|
|
19653
|
-
menuItems ? /* @__PURE__ */
|
|
19654
|
-
/* @__PURE__ */
|
|
19868
|
+
menuItems ? /* @__PURE__ */ jsx121(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
19869
|
+
/* @__PURE__ */ jsx121(
|
|
19655
19870
|
ParameterShellContext.Provider,
|
|
19656
19871
|
{
|
|
19657
19872
|
value: {
|
|
@@ -19661,14 +19876,14 @@ var ParameterShell = ({
|
|
|
19661
19876
|
errorMessage: errorMessaging,
|
|
19662
19877
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
19663
19878
|
},
|
|
19664
|
-
children: isParameterGroup ? /* @__PURE__ */
|
|
19879
|
+
children: isParameterGroup ? /* @__PURE__ */ jsx121("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs80(ParameterShellPlaceholder, { children: [
|
|
19665
19880
|
children,
|
|
19666
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
19881
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx121(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
19667
19882
|
] })
|
|
19668
19883
|
}
|
|
19669
19884
|
)
|
|
19670
19885
|
] }),
|
|
19671
|
-
/* @__PURE__ */
|
|
19886
|
+
/* @__PURE__ */ jsx121(
|
|
19672
19887
|
FieldMessage,
|
|
19673
19888
|
{
|
|
19674
19889
|
helperMessageTestId: captionTestId,
|
|
@@ -19682,27 +19897,27 @@ var ParameterShell = ({
|
|
|
19682
19897
|
] });
|
|
19683
19898
|
};
|
|
19684
19899
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
19685
|
-
return /* @__PURE__ */
|
|
19900
|
+
return /* @__PURE__ */ jsx121("div", { css: emptyParameterShell, children });
|
|
19686
19901
|
};
|
|
19687
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
19902
|
+
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
19903
|
|
|
19689
19904
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
19690
|
-
import { Fragment as Fragment16, jsx as
|
|
19691
|
-
var ParameterImage =
|
|
19905
|
+
import { Fragment as Fragment16, jsx as jsx122, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
19906
|
+
var ParameterImage = forwardRef19(
|
|
19692
19907
|
({ children, ...props }, ref) => {
|
|
19693
19908
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19694
|
-
return /* @__PURE__ */
|
|
19695
|
-
/* @__PURE__ */
|
|
19909
|
+
return /* @__PURE__ */ jsxs81(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
19910
|
+
/* @__PURE__ */ jsx122(ParameterImageInner, { ref, ...innerProps }),
|
|
19696
19911
|
children
|
|
19697
19912
|
] });
|
|
19698
19913
|
}
|
|
19699
19914
|
);
|
|
19700
|
-
var ParameterImageInner =
|
|
19915
|
+
var ParameterImageInner = forwardRef19((props, ref) => {
|
|
19701
19916
|
const { value } = props;
|
|
19702
19917
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
19703
19918
|
const deferredValue = useDeferredValue(value);
|
|
19704
|
-
return /* @__PURE__ */
|
|
19705
|
-
/* @__PURE__ */
|
|
19919
|
+
return /* @__PURE__ */ jsxs81(Fragment16, { children: [
|
|
19920
|
+
/* @__PURE__ */ jsx122(
|
|
19706
19921
|
"input",
|
|
19707
19922
|
{
|
|
19708
19923
|
css: input3,
|
|
@@ -19714,21 +19929,21 @@ var ParameterImageInner = forwardRef18((props, ref) => {
|
|
|
19714
19929
|
...props
|
|
19715
19930
|
}
|
|
19716
19931
|
),
|
|
19717
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
19932
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx122(ParameterImagePreview, { imageSrc: deferredValue })
|
|
19718
19933
|
] });
|
|
19719
19934
|
});
|
|
19720
19935
|
|
|
19721
19936
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
19722
|
-
import { forwardRef as
|
|
19723
|
-
import { jsx as
|
|
19724
|
-
var ParameterInput =
|
|
19937
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
19938
|
+
import { jsx as jsx123 } from "@emotion/react/jsx-runtime";
|
|
19939
|
+
var ParameterInput = forwardRef20((props, ref) => {
|
|
19725
19940
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19726
|
-
return /* @__PURE__ */
|
|
19941
|
+
return /* @__PURE__ */ jsx123(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx123(ParameterInputInner, { ref, ...innerProps }) });
|
|
19727
19942
|
});
|
|
19728
|
-
var ParameterInputInner =
|
|
19943
|
+
var ParameterInputInner = forwardRef20(
|
|
19729
19944
|
({ ...props }, ref) => {
|
|
19730
19945
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
19731
|
-
return /* @__PURE__ */
|
|
19946
|
+
return /* @__PURE__ */ jsx123(
|
|
19732
19947
|
"input",
|
|
19733
19948
|
{
|
|
19734
19949
|
css: input3,
|
|
@@ -19744,19 +19959,19 @@ var ParameterInputInner = forwardRef19(
|
|
|
19744
19959
|
);
|
|
19745
19960
|
|
|
19746
19961
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
19747
|
-
import { forwardRef as
|
|
19748
|
-
import { jsx as
|
|
19749
|
-
var ParameterLink =
|
|
19962
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
19963
|
+
import { jsx as jsx124, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
19964
|
+
var ParameterLink = forwardRef21(
|
|
19750
19965
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
19751
19966
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19752
|
-
return /* @__PURE__ */
|
|
19967
|
+
return /* @__PURE__ */ jsx124(
|
|
19753
19968
|
ParameterShell,
|
|
19754
19969
|
{
|
|
19755
19970
|
"data-testid": "link-parameter-editor",
|
|
19756
19971
|
...shellProps,
|
|
19757
19972
|
label: innerProps.value ? shellProps.label : "",
|
|
19758
19973
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
19759
|
-
children: /* @__PURE__ */
|
|
19974
|
+
children: /* @__PURE__ */ jsx124(
|
|
19760
19975
|
ParameterLinkInner,
|
|
19761
19976
|
{
|
|
19762
19977
|
onConnectLink,
|
|
@@ -19769,13 +19984,13 @@ var ParameterLink = forwardRef20(
|
|
|
19769
19984
|
);
|
|
19770
19985
|
}
|
|
19771
19986
|
);
|
|
19772
|
-
var ParameterLinkInner =
|
|
19987
|
+
var ParameterLinkInner = forwardRef21(
|
|
19773
19988
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
19774
19989
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
19775
19990
|
if (!props.value)
|
|
19776
|
-
return /* @__PURE__ */
|
|
19777
|
-
return /* @__PURE__ */
|
|
19778
|
-
/* @__PURE__ */
|
|
19991
|
+
return /* @__PURE__ */ jsx124("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
19992
|
+
return /* @__PURE__ */ jsxs82("div", { css: inputWrapper, children: [
|
|
19993
|
+
/* @__PURE__ */ jsx124(
|
|
19779
19994
|
"input",
|
|
19780
19995
|
{
|
|
19781
19996
|
type: "text",
|
|
@@ -19787,8 +20002,8 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19787
20002
|
...props
|
|
19788
20003
|
}
|
|
19789
20004
|
),
|
|
19790
|
-
/* @__PURE__ */
|
|
19791
|
-
/* @__PURE__ */
|
|
20005
|
+
/* @__PURE__ */ jsxs82("div", { css: linkParameterControls, children: [
|
|
20006
|
+
/* @__PURE__ */ jsx124(
|
|
19792
20007
|
"button",
|
|
19793
20008
|
{
|
|
19794
20009
|
type: "button",
|
|
@@ -19799,7 +20014,7 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19799
20014
|
children: "edit"
|
|
19800
20015
|
}
|
|
19801
20016
|
),
|
|
19802
|
-
externalLink ? /* @__PURE__ */
|
|
20017
|
+
externalLink ? /* @__PURE__ */ jsx124(
|
|
19803
20018
|
"a",
|
|
19804
20019
|
{
|
|
19805
20020
|
href: externalLink,
|
|
@@ -19807,7 +20022,7 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19807
20022
|
title: "Open link in new tab",
|
|
19808
20023
|
target: "_blank",
|
|
19809
20024
|
rel: "noopener noreferrer",
|
|
19810
|
-
children: /* @__PURE__ */
|
|
20025
|
+
children: /* @__PURE__ */ jsx124(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
19811
20026
|
}
|
|
19812
20027
|
) : null
|
|
19813
20028
|
] })
|
|
@@ -19816,15 +20031,15 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19816
20031
|
);
|
|
19817
20032
|
|
|
19818
20033
|
// src/components/ParameterInputs/ParameterMultiSelect.tsx
|
|
19819
|
-
import { jsx as
|
|
20034
|
+
import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
|
|
19820
20035
|
var ParameterMultiSelect = ({ disabled: disabled2 = false, ...props }) => {
|
|
19821
20036
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19822
|
-
return /* @__PURE__ */
|
|
20037
|
+
return /* @__PURE__ */ jsx125(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx125(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
|
|
19823
20038
|
};
|
|
19824
20039
|
var ParameterMultiSelectInner = (props) => {
|
|
19825
20040
|
var _a;
|
|
19826
20041
|
const { id, label } = useParameterShell();
|
|
19827
|
-
return /* @__PURE__ */
|
|
20042
|
+
return /* @__PURE__ */ jsx125(
|
|
19828
20043
|
InputComboBox,
|
|
19829
20044
|
{
|
|
19830
20045
|
menuPortalTarget: document.body,
|
|
@@ -19874,7 +20089,7 @@ var ParameterMultiSelectInner = (props) => {
|
|
|
19874
20089
|
};
|
|
19875
20090
|
|
|
19876
20091
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
19877
|
-
import { Fragment as Fragment17, jsx as
|
|
20092
|
+
import { Fragment as Fragment17, jsx as jsx126, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
|
|
19878
20093
|
var ParameterNameAndPublicIdInput = ({
|
|
19879
20094
|
id,
|
|
19880
20095
|
onBlur,
|
|
@@ -19900,8 +20115,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19900
20115
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
19901
20116
|
};
|
|
19902
20117
|
autoFocus == null ? void 0 : autoFocus();
|
|
19903
|
-
return /* @__PURE__ */
|
|
19904
|
-
/* @__PURE__ */
|
|
20118
|
+
return /* @__PURE__ */ jsxs83(Fragment17, { children: [
|
|
20119
|
+
/* @__PURE__ */ jsx126(
|
|
19905
20120
|
ParameterInput,
|
|
19906
20121
|
{
|
|
19907
20122
|
id: nameIdField,
|
|
@@ -19920,7 +20135,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19920
20135
|
value: values[nameIdField]
|
|
19921
20136
|
}
|
|
19922
20137
|
),
|
|
19923
|
-
/* @__PURE__ */
|
|
20138
|
+
/* @__PURE__ */ jsx126(
|
|
19924
20139
|
ParameterInput,
|
|
19925
20140
|
{
|
|
19926
20141
|
id: publicIdFieldName,
|
|
@@ -19934,11 +20149,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19934
20149
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
19935
20150
|
placeholder: publicIdPlaceholderText,
|
|
19936
20151
|
errorMessage: publicIdError,
|
|
19937
|
-
menuItems: /* @__PURE__ */
|
|
20152
|
+
menuItems: /* @__PURE__ */ jsx126(
|
|
19938
20153
|
MenuItem,
|
|
19939
20154
|
{
|
|
19940
20155
|
disabled: !values[publicIdFieldName],
|
|
19941
|
-
icon: /* @__PURE__ */
|
|
20156
|
+
icon: /* @__PURE__ */ jsx126(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
19942
20157
|
onClick: handleCopyPidFieldValue,
|
|
19943
20158
|
children: "Copy"
|
|
19944
20159
|
}
|
|
@@ -19946,12 +20161,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19946
20161
|
value: values[publicIdFieldName]
|
|
19947
20162
|
}
|
|
19948
20163
|
),
|
|
19949
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
20164
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx126(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
19950
20165
|
] });
|
|
19951
20166
|
};
|
|
19952
20167
|
|
|
19953
20168
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
19954
|
-
import { css as
|
|
20169
|
+
import { css as css96 } from "@emotion/react";
|
|
19955
20170
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
19956
20171
|
import {
|
|
19957
20172
|
CODE,
|
|
@@ -20103,23 +20318,23 @@ function DisableStylesPlugin() {
|
|
|
20103
20318
|
}
|
|
20104
20319
|
|
|
20105
20320
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
20106
|
-
import { css as
|
|
20107
|
-
var textBold =
|
|
20321
|
+
import { css as css93 } from "@emotion/css";
|
|
20322
|
+
var textBold = css93`
|
|
20108
20323
|
font-weight: 700;
|
|
20109
20324
|
`;
|
|
20110
|
-
var textItalic =
|
|
20325
|
+
var textItalic = css93`
|
|
20111
20326
|
font-style: italic;
|
|
20112
20327
|
`;
|
|
20113
|
-
var textUnderline =
|
|
20328
|
+
var textUnderline = css93`
|
|
20114
20329
|
text-decoration: underline;
|
|
20115
20330
|
`;
|
|
20116
|
-
var textStrikethrough =
|
|
20331
|
+
var textStrikethrough = css93`
|
|
20117
20332
|
text-decoration: line-through;
|
|
20118
20333
|
`;
|
|
20119
|
-
var textUnderlineStrikethrough =
|
|
20334
|
+
var textUnderlineStrikethrough = css93`
|
|
20120
20335
|
text-decoration: underline line-through;
|
|
20121
20336
|
`;
|
|
20122
|
-
var textCode =
|
|
20337
|
+
var textCode = css93`
|
|
20123
20338
|
background-color: var(--gray-100);
|
|
20124
20339
|
border-radius: var(--rounded-sm);
|
|
20125
20340
|
display: inline-block;
|
|
@@ -20130,68 +20345,68 @@ var textCode = css91`
|
|
|
20130
20345
|
padding-left: var(--spacing-xs);
|
|
20131
20346
|
padding-right: var(--spacing-xs);
|
|
20132
20347
|
`;
|
|
20133
|
-
var textSuperscript =
|
|
20348
|
+
var textSuperscript = css93`
|
|
20134
20349
|
vertical-align: super;
|
|
20135
20350
|
font-size: smaller;
|
|
20136
20351
|
`;
|
|
20137
|
-
var textSubscript =
|
|
20352
|
+
var textSubscript = css93`
|
|
20138
20353
|
vertical-align: sub;
|
|
20139
20354
|
font-size: smaller;
|
|
20140
20355
|
`;
|
|
20141
|
-
var linkElement =
|
|
20356
|
+
var linkElement = css93`
|
|
20142
20357
|
${link}
|
|
20143
20358
|
${linkColorDefault}
|
|
20144
20359
|
text-decoration: underline;
|
|
20145
20360
|
`;
|
|
20146
|
-
var h12 =
|
|
20361
|
+
var h12 = css93`
|
|
20147
20362
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
20148
20363
|
`;
|
|
20149
|
-
var h22 =
|
|
20364
|
+
var h22 = css93`
|
|
20150
20365
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
20151
20366
|
`;
|
|
20152
|
-
var h32 =
|
|
20367
|
+
var h32 = css93`
|
|
20153
20368
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
20154
20369
|
`;
|
|
20155
|
-
var h42 =
|
|
20370
|
+
var h42 = css93`
|
|
20156
20371
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
20157
20372
|
`;
|
|
20158
|
-
var h52 =
|
|
20373
|
+
var h52 = css93`
|
|
20159
20374
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
20160
20375
|
`;
|
|
20161
|
-
var h62 =
|
|
20376
|
+
var h62 = css93`
|
|
20162
20377
|
font-size: var(--fs-base);
|
|
20163
20378
|
`;
|
|
20164
|
-
var heading1Element =
|
|
20379
|
+
var heading1Element = css93`
|
|
20165
20380
|
${h12}
|
|
20166
20381
|
${commonHeadingAttr(true)}
|
|
20167
20382
|
${commonLineHeight}
|
|
20168
20383
|
`;
|
|
20169
|
-
var heading2Element =
|
|
20384
|
+
var heading2Element = css93`
|
|
20170
20385
|
${h22}
|
|
20171
20386
|
${commonHeadingAttr(true)}
|
|
20172
20387
|
${commonLineHeight}
|
|
20173
20388
|
`;
|
|
20174
|
-
var heading3Element =
|
|
20389
|
+
var heading3Element = css93`
|
|
20175
20390
|
${h32}
|
|
20176
20391
|
${commonHeadingAttr(true)}
|
|
20177
20392
|
${commonLineHeight}
|
|
20178
20393
|
`;
|
|
20179
|
-
var heading4Element =
|
|
20394
|
+
var heading4Element = css93`
|
|
20180
20395
|
${h42}
|
|
20181
20396
|
${commonHeadingAttr(true)}
|
|
20182
20397
|
${commonLineHeight}
|
|
20183
20398
|
`;
|
|
20184
|
-
var heading5Element =
|
|
20399
|
+
var heading5Element = css93`
|
|
20185
20400
|
${h52}
|
|
20186
20401
|
${commonHeadingAttr(true)}
|
|
20187
20402
|
${commonLineHeight}
|
|
20188
20403
|
`;
|
|
20189
|
-
var heading6Element =
|
|
20404
|
+
var heading6Element = css93`
|
|
20190
20405
|
${h62}
|
|
20191
20406
|
${commonHeadingAttr(true)}
|
|
20192
20407
|
${commonLineHeight}
|
|
20193
20408
|
`;
|
|
20194
|
-
var paragraphElement =
|
|
20409
|
+
var paragraphElement = css93`
|
|
20195
20410
|
line-height: 1.5;
|
|
20196
20411
|
margin-bottom: var(--spacing-base);
|
|
20197
20412
|
|
|
@@ -20199,7 +20414,7 @@ var paragraphElement = css91`
|
|
|
20199
20414
|
margin-bottom: 0;
|
|
20200
20415
|
}
|
|
20201
20416
|
`;
|
|
20202
|
-
var orderedListElement =
|
|
20417
|
+
var orderedListElement = css93`
|
|
20203
20418
|
${commonLineHeight}
|
|
20204
20419
|
display: block;
|
|
20205
20420
|
list-style: decimal;
|
|
@@ -20228,7 +20443,7 @@ var orderedListElement = css91`
|
|
|
20228
20443
|
}
|
|
20229
20444
|
}
|
|
20230
20445
|
`;
|
|
20231
|
-
var unorderedListElement =
|
|
20446
|
+
var unorderedListElement = css93`
|
|
20232
20447
|
${commonLineHeight}
|
|
20233
20448
|
display: block;
|
|
20234
20449
|
list-style: disc;
|
|
@@ -20249,13 +20464,13 @@ var unorderedListElement = css91`
|
|
|
20249
20464
|
}
|
|
20250
20465
|
}
|
|
20251
20466
|
`;
|
|
20252
|
-
var listItemElement =
|
|
20467
|
+
var listItemElement = css93`
|
|
20253
20468
|
margin-left: var(--spacing-md);
|
|
20254
20469
|
`;
|
|
20255
|
-
var nestedListItemElement =
|
|
20470
|
+
var nestedListItemElement = css93`
|
|
20256
20471
|
list-style-type: none;
|
|
20257
20472
|
`;
|
|
20258
|
-
var blockquoteElement =
|
|
20473
|
+
var blockquoteElement = css93`
|
|
20259
20474
|
border-left: 0.25rem solid var(--gray-300);
|
|
20260
20475
|
color: var(--gray-600);
|
|
20261
20476
|
margin-bottom: var(--spacing-base);
|
|
@@ -20265,7 +20480,7 @@ var blockquoteElement = css91`
|
|
|
20265
20480
|
margin-bottom: 0;
|
|
20266
20481
|
}
|
|
20267
20482
|
`;
|
|
20268
|
-
var codeElement =
|
|
20483
|
+
var codeElement = css93`
|
|
20269
20484
|
background-color: var(--gray-100);
|
|
20270
20485
|
border-radius: var(--rounded-sm);
|
|
20271
20486
|
display: block;
|
|
@@ -20282,7 +20497,7 @@ var codeElement = css91`
|
|
|
20282
20497
|
`;
|
|
20283
20498
|
|
|
20284
20499
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
20285
|
-
import { css as
|
|
20500
|
+
import { css as css94 } from "@emotion/react";
|
|
20286
20501
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
20287
20502
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
20288
20503
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -20335,7 +20550,7 @@ var getSelectedNode = (selection) => {
|
|
|
20335
20550
|
};
|
|
20336
20551
|
|
|
20337
20552
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
20338
|
-
import { Fragment as Fragment18, jsx as
|
|
20553
|
+
import { Fragment as Fragment18, jsx as jsx127, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
20339
20554
|
var isProjectMapLinkValue = (value) => {
|
|
20340
20555
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
20341
20556
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -20622,16 +20837,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
20622
20837
|
);
|
|
20623
20838
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
20624
20839
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
20625
|
-
var linkPopover =
|
|
20840
|
+
var linkPopover = css94`
|
|
20626
20841
|
position: absolute;
|
|
20627
20842
|
z-index: 5;
|
|
20628
20843
|
`;
|
|
20629
|
-
var linkPopoverContainer =
|
|
20630
|
-
${Popover};
|
|
20844
|
+
var linkPopoverContainer = css94`
|
|
20845
|
+
${Popover()};
|
|
20631
20846
|
align-items: center;
|
|
20632
20847
|
display: flex;
|
|
20633
20848
|
`;
|
|
20634
|
-
var linkPopoverAnchor =
|
|
20849
|
+
var linkPopoverAnchor = css94`
|
|
20635
20850
|
${link}
|
|
20636
20851
|
${linkColorDefault}
|
|
20637
20852
|
`;
|
|
@@ -20778,8 +20993,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20778
20993
|
});
|
|
20779
20994
|
});
|
|
20780
20995
|
};
|
|
20781
|
-
return /* @__PURE__ */
|
|
20782
|
-
/* @__PURE__ */
|
|
20996
|
+
return /* @__PURE__ */ jsxs84(Fragment18, { children: [
|
|
20997
|
+
/* @__PURE__ */ jsx127(
|
|
20783
20998
|
NodeEventPlugin,
|
|
20784
20999
|
{
|
|
20785
21000
|
nodeType: LinkNode,
|
|
@@ -20789,7 +21004,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20789
21004
|
}
|
|
20790
21005
|
}
|
|
20791
21006
|
),
|
|
20792
|
-
linkPopoverState ? /* @__PURE__ */
|
|
21007
|
+
linkPopoverState ? /* @__PURE__ */ jsx127(
|
|
20793
21008
|
"div",
|
|
20794
21009
|
{
|
|
20795
21010
|
css: linkPopover,
|
|
@@ -20798,8 +21013,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20798
21013
|
top: linkPopoverState.position.y
|
|
20799
21014
|
},
|
|
20800
21015
|
ref: linkPopoverElRef,
|
|
20801
|
-
children: /* @__PURE__ */
|
|
20802
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
21016
|
+
children: /* @__PURE__ */ jsxs84("div", { css: linkPopoverContainer, children: [
|
|
21017
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx127(
|
|
20803
21018
|
"a",
|
|
20804
21019
|
{
|
|
20805
21020
|
href: parsePath(
|
|
@@ -20811,7 +21026,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20811
21026
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
20812
21027
|
}
|
|
20813
21028
|
),
|
|
20814
|
-
/* @__PURE__ */
|
|
21029
|
+
/* @__PURE__ */ jsx127(
|
|
20815
21030
|
Button,
|
|
20816
21031
|
{
|
|
20817
21032
|
size: "xs",
|
|
@@ -20819,7 +21034,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20819
21034
|
onEditLinkNode(linkPopoverState.node);
|
|
20820
21035
|
},
|
|
20821
21036
|
buttonType: "ghost",
|
|
20822
|
-
children: /* @__PURE__ */
|
|
21037
|
+
children: /* @__PURE__ */ jsx127(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
20823
21038
|
}
|
|
20824
21039
|
)
|
|
20825
21040
|
] })
|
|
@@ -20844,7 +21059,7 @@ import {
|
|
|
20844
21059
|
INDENT_CONTENT_COMMAND
|
|
20845
21060
|
} from "lexical";
|
|
20846
21061
|
import { useEffect as useEffect19 } from "react";
|
|
20847
|
-
import { jsx as
|
|
21062
|
+
import { jsx as jsx128 } from "@emotion/react/jsx-runtime";
|
|
20848
21063
|
function isIndentPermitted(maxDepth) {
|
|
20849
21064
|
const selection = $getSelection2();
|
|
20850
21065
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -20874,11 +21089,11 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
20874
21089
|
COMMAND_PRIORITY_CRITICAL
|
|
20875
21090
|
);
|
|
20876
21091
|
}, [editor, maxDepth]);
|
|
20877
|
-
return /* @__PURE__ */
|
|
21092
|
+
return /* @__PURE__ */ jsx128(TabIndentationPlugin, {});
|
|
20878
21093
|
}
|
|
20879
21094
|
|
|
20880
21095
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
20881
|
-
import { css as
|
|
21096
|
+
import { css as css95 } from "@emotion/react";
|
|
20882
21097
|
import { $createCodeNode } from "@lexical/code";
|
|
20883
21098
|
import {
|
|
20884
21099
|
$isListNode as $isListNode2,
|
|
@@ -20901,8 +21116,8 @@ import {
|
|
|
20901
21116
|
SELECTION_CHANGE_COMMAND
|
|
20902
21117
|
} from "lexical";
|
|
20903
21118
|
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 =
|
|
21119
|
+
import { Fragment as Fragment19, jsx as jsx129, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
21120
|
+
var toolbar = css95`
|
|
20906
21121
|
background: var(--gray-50);
|
|
20907
21122
|
border-radius: var(--rounded-base);
|
|
20908
21123
|
display: flex;
|
|
@@ -20914,7 +21129,7 @@ var toolbar = css93`
|
|
|
20914
21129
|
top: calc(var(--spacing-sm) * -2);
|
|
20915
21130
|
z-index: 10;
|
|
20916
21131
|
`;
|
|
20917
|
-
var toolbarGroup =
|
|
21132
|
+
var toolbarGroup = css95`
|
|
20918
21133
|
display: flex;
|
|
20919
21134
|
gap: var(--spacing-xs);
|
|
20920
21135
|
position: relative;
|
|
@@ -20930,7 +21145,7 @@ var toolbarGroup = css93`
|
|
|
20930
21145
|
width: 1px;
|
|
20931
21146
|
}
|
|
20932
21147
|
`;
|
|
20933
|
-
var richTextToolbarButton =
|
|
21148
|
+
var richTextToolbarButton = css95`
|
|
20934
21149
|
align-items: center;
|
|
20935
21150
|
appearance: none;
|
|
20936
21151
|
border: 0;
|
|
@@ -20943,17 +21158,17 @@ var richTextToolbarButton = css93`
|
|
|
20943
21158
|
min-width: 32px;
|
|
20944
21159
|
padding: 0 var(--spacing-sm);
|
|
20945
21160
|
`;
|
|
20946
|
-
var richTextToolbarButtonActive =
|
|
21161
|
+
var richTextToolbarButtonActive = css95`
|
|
20947
21162
|
background: var(--gray-200);
|
|
20948
21163
|
`;
|
|
20949
|
-
var toolbarIcon =
|
|
21164
|
+
var toolbarIcon = css95`
|
|
20950
21165
|
color: inherit;
|
|
20951
21166
|
`;
|
|
20952
|
-
var toolbarChevron =
|
|
21167
|
+
var toolbarChevron = css95`
|
|
20953
21168
|
margin-left: var(--spacing-xs);
|
|
20954
21169
|
`;
|
|
20955
21170
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
20956
|
-
return /* @__PURE__ */
|
|
21171
|
+
return /* @__PURE__ */ jsx129(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
20957
21172
|
};
|
|
20958
21173
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
20959
21174
|
["bold", "format-bold"],
|
|
@@ -21062,15 +21277,15 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21062
21277
|
});
|
|
21063
21278
|
});
|
|
21064
21279
|
}, [editor, updateToolbar]);
|
|
21065
|
-
return /* @__PURE__ */
|
|
21066
|
-
/* @__PURE__ */
|
|
21280
|
+
return /* @__PURE__ */ jsxs85("div", { css: toolbar, children: [
|
|
21281
|
+
/* @__PURE__ */ jsxs85(
|
|
21067
21282
|
Menu,
|
|
21068
21283
|
{
|
|
21069
21284
|
menuLabel: "Elements",
|
|
21070
|
-
menuTrigger: /* @__PURE__ */
|
|
21285
|
+
menuTrigger: /* @__PURE__ */ jsxs85("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
21071
21286
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
21072
21287
|
" ",
|
|
21073
|
-
/* @__PURE__ */
|
|
21288
|
+
/* @__PURE__ */ jsx129(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
21074
21289
|
] }),
|
|
21075
21290
|
placement: "bottom-start",
|
|
21076
21291
|
children: [
|
|
@@ -21080,7 +21295,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21080
21295
|
type: "paragraph"
|
|
21081
21296
|
},
|
|
21082
21297
|
...visibleTextualElements
|
|
21083
|
-
].map((element) => /* @__PURE__ */
|
|
21298
|
+
].map((element) => /* @__PURE__ */ jsx129(
|
|
21084
21299
|
MenuItem,
|
|
21085
21300
|
{
|
|
21086
21301
|
onClick: () => {
|
|
@@ -21090,12 +21305,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21090
21305
|
},
|
|
21091
21306
|
element.type
|
|
21092
21307
|
)),
|
|
21093
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
21308
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx129(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
21094
21309
|
]
|
|
21095
21310
|
}
|
|
21096
21311
|
),
|
|
21097
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
21098
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
21312
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs85("div", { css: toolbarGroup, children: [
|
|
21313
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx129(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21099
21314
|
"button",
|
|
21100
21315
|
{
|
|
21101
21316
|
onClick: () => {
|
|
@@ -21105,16 +21320,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21105
21320
|
richTextToolbarButton,
|
|
21106
21321
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
21107
21322
|
],
|
|
21108
|
-
children: /* @__PURE__ */
|
|
21323
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
21109
21324
|
}
|
|
21110
21325
|
) }, format.type)),
|
|
21111
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
21326
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx129(
|
|
21112
21327
|
Menu,
|
|
21113
21328
|
{
|
|
21114
21329
|
menuLabel: "Alternative text styles",
|
|
21115
|
-
menuTrigger: /* @__PURE__ */
|
|
21330
|
+
menuTrigger: /* @__PURE__ */ jsx129("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx129(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
21116
21331
|
placement: "bottom-start",
|
|
21117
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
21332
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx129(
|
|
21118
21333
|
MenuItem,
|
|
21119
21334
|
{
|
|
21120
21335
|
onClick: () => {
|
|
@@ -21127,19 +21342,19 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21127
21342
|
}
|
|
21128
21343
|
) : null
|
|
21129
21344
|
] }) : null,
|
|
21130
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
21131
|
-
linkElementVisible ? /* @__PURE__ */
|
|
21345
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs85("div", { css: toolbarGroup, children: [
|
|
21346
|
+
linkElementVisible ? /* @__PURE__ */ jsx129(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21132
21347
|
"button",
|
|
21133
21348
|
{
|
|
21134
21349
|
onClick: () => {
|
|
21135
21350
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
21136
21351
|
},
|
|
21137
21352
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
21138
|
-
children: /* @__PURE__ */
|
|
21353
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "link" })
|
|
21139
21354
|
}
|
|
21140
21355
|
) }) : null,
|
|
21141
|
-
visibleLists.size > 0 ? /* @__PURE__ */
|
|
21142
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
21356
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs85(Fragment19, { children: [
|
|
21357
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx129(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21143
21358
|
"button",
|
|
21144
21359
|
{
|
|
21145
21360
|
onClick: () => {
|
|
@@ -21149,10 +21364,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21149
21364
|
richTextToolbarButton,
|
|
21150
21365
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
21151
21366
|
],
|
|
21152
|
-
children: /* @__PURE__ */
|
|
21367
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "layout-list" })
|
|
21153
21368
|
}
|
|
21154
21369
|
) }) : null,
|
|
21155
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
21370
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx129(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21156
21371
|
"button",
|
|
21157
21372
|
{
|
|
21158
21373
|
onClick: () => {
|
|
@@ -21162,32 +21377,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
21162
21377
|
richTextToolbarButton,
|
|
21163
21378
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
21164
21379
|
],
|
|
21165
|
-
children: /* @__PURE__ */
|
|
21380
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
21166
21381
|
}
|
|
21167
21382
|
) }) : null
|
|
21168
21383
|
] }) : null,
|
|
21169
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
21384
|
+
quoteElementVisible ? /* @__PURE__ */ jsx129(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21170
21385
|
"button",
|
|
21171
21386
|
{
|
|
21172
21387
|
onClick: () => {
|
|
21173
21388
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
21174
21389
|
},
|
|
21175
21390
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
21176
|
-
children: /* @__PURE__ */
|
|
21391
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "quote" })
|
|
21177
21392
|
}
|
|
21178
21393
|
) }) : null,
|
|
21179
|
-
codeElementVisible ? /* @__PURE__ */
|
|
21394
|
+
codeElementVisible ? /* @__PURE__ */ jsx129(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx129(
|
|
21180
21395
|
"button",
|
|
21181
21396
|
{
|
|
21182
21397
|
onClick: () => {
|
|
21183
21398
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
21184
21399
|
},
|
|
21185
21400
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
21186
|
-
children: /* @__PURE__ */
|
|
21401
|
+
children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "code-slash" })
|
|
21187
21402
|
}
|
|
21188
21403
|
) }) : null
|
|
21189
21404
|
] }) : null,
|
|
21190
|
-
customControls ? /* @__PURE__ */
|
|
21405
|
+
customControls ? /* @__PURE__ */ jsx129("div", { css: toolbarGroup, children: customControls }) : null
|
|
21191
21406
|
] });
|
|
21192
21407
|
};
|
|
21193
21408
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -21301,7 +21516,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
21301
21516
|
};
|
|
21302
21517
|
|
|
21303
21518
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
21304
|
-
import { Fragment as Fragment20, jsx as
|
|
21519
|
+
import { Fragment as Fragment20, jsx as jsx130, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
21305
21520
|
var ParameterRichText = ({
|
|
21306
21521
|
label,
|
|
21307
21522
|
labelLeadingIcon,
|
|
@@ -21326,7 +21541,7 @@ var ParameterRichText = ({
|
|
|
21326
21541
|
variables,
|
|
21327
21542
|
customControls
|
|
21328
21543
|
}) => {
|
|
21329
|
-
return /* @__PURE__ */
|
|
21544
|
+
return /* @__PURE__ */ jsxs86(
|
|
21330
21545
|
ParameterShell,
|
|
21331
21546
|
{
|
|
21332
21547
|
"data-testid": "parameter-richtext",
|
|
@@ -21340,7 +21555,7 @@ var ParameterRichText = ({
|
|
|
21340
21555
|
captionTestId,
|
|
21341
21556
|
menuItems,
|
|
21342
21557
|
children: [
|
|
21343
|
-
/* @__PURE__ */
|
|
21558
|
+
/* @__PURE__ */ jsx130(
|
|
21344
21559
|
ParameterRichTextInner,
|
|
21345
21560
|
{
|
|
21346
21561
|
value,
|
|
@@ -21358,23 +21573,23 @@ var ParameterRichText = ({
|
|
|
21358
21573
|
children
|
|
21359
21574
|
}
|
|
21360
21575
|
),
|
|
21361
|
-
menuItems ? /* @__PURE__ */
|
|
21576
|
+
menuItems ? /* @__PURE__ */ jsx130(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx130(Fragment20, { children: menuItems }) }) : null
|
|
21362
21577
|
]
|
|
21363
21578
|
}
|
|
21364
21579
|
);
|
|
21365
21580
|
};
|
|
21366
|
-
var editorWrapper =
|
|
21581
|
+
var editorWrapper = css96`
|
|
21367
21582
|
display: flex;
|
|
21368
21583
|
flex-flow: column;
|
|
21369
21584
|
flex-grow: 1;
|
|
21370
21585
|
`;
|
|
21371
|
-
var editorContainer =
|
|
21586
|
+
var editorContainer = css96`
|
|
21372
21587
|
display: flex;
|
|
21373
21588
|
flex-flow: column;
|
|
21374
21589
|
flex-grow: 1;
|
|
21375
21590
|
position: relative;
|
|
21376
21591
|
`;
|
|
21377
|
-
var editorPlaceholder =
|
|
21592
|
+
var editorPlaceholder = css96`
|
|
21378
21593
|
color: var(--gray-500);
|
|
21379
21594
|
font-style: italic;
|
|
21380
21595
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -21385,7 +21600,7 @@ var editorPlaceholder = css94`
|
|
|
21385
21600
|
top: var(--spacing-sm);
|
|
21386
21601
|
user-select: none;
|
|
21387
21602
|
`;
|
|
21388
|
-
var editorInput =
|
|
21603
|
+
var editorInput = css96`
|
|
21389
21604
|
background: var(--white);
|
|
21390
21605
|
border: 1px solid var(--gray-200);
|
|
21391
21606
|
border-radius: var(--rounded-sm);
|
|
@@ -21469,8 +21684,8 @@ var ParameterRichTextInner = ({
|
|
|
21469
21684
|
},
|
|
21470
21685
|
editable: !readOnly
|
|
21471
21686
|
};
|
|
21472
|
-
return /* @__PURE__ */
|
|
21473
|
-
/* @__PURE__ */
|
|
21687
|
+
return /* @__PURE__ */ jsxs86(Fragment20, { children: [
|
|
21688
|
+
/* @__PURE__ */ jsx130("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx130(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx130(
|
|
21474
21689
|
RichText,
|
|
21475
21690
|
{
|
|
21476
21691
|
onChange,
|
|
@@ -21529,20 +21744,20 @@ var RichText = ({
|
|
|
21529
21744
|
useEffect21(() => {
|
|
21530
21745
|
editor.setEditable(!readOnly);
|
|
21531
21746
|
}, [editor, readOnly]);
|
|
21532
|
-
return /* @__PURE__ */
|
|
21533
|
-
readOnly ? null : /* @__PURE__ */
|
|
21534
|
-
/* @__PURE__ */
|
|
21535
|
-
/* @__PURE__ */
|
|
21747
|
+
return /* @__PURE__ */ jsxs86(Fragment20, { children: [
|
|
21748
|
+
readOnly ? null : /* @__PURE__ */ jsx130(RichTextToolbar_default, { config, customControls }),
|
|
21749
|
+
/* @__PURE__ */ jsxs86("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
21750
|
+
/* @__PURE__ */ jsx130(
|
|
21536
21751
|
RichTextPlugin,
|
|
21537
21752
|
{
|
|
21538
|
-
contentEditable: /* @__PURE__ */
|
|
21539
|
-
placeholder: /* @__PURE__ */
|
|
21753
|
+
contentEditable: /* @__PURE__ */ jsx130(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
21754
|
+
placeholder: /* @__PURE__ */ jsx130("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
21540
21755
|
ErrorBoundary: LexicalErrorBoundary
|
|
21541
21756
|
}
|
|
21542
21757
|
),
|
|
21543
|
-
/* @__PURE__ */
|
|
21544
|
-
readOnly ? null : /* @__PURE__ */
|
|
21545
|
-
/* @__PURE__ */
|
|
21758
|
+
/* @__PURE__ */ jsx130(ListPlugin, {}),
|
|
21759
|
+
readOnly ? null : /* @__PURE__ */ jsx130(HistoryPlugin, {}),
|
|
21760
|
+
/* @__PURE__ */ jsx130(
|
|
21546
21761
|
LinkNodePlugin,
|
|
21547
21762
|
{
|
|
21548
21763
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -21552,27 +21767,27 @@ var RichText = ({
|
|
|
21552
21767
|
} : void 0
|
|
21553
21768
|
}
|
|
21554
21769
|
),
|
|
21555
|
-
/* @__PURE__ */
|
|
21556
|
-
/* @__PURE__ */
|
|
21557
|
-
/* @__PURE__ */
|
|
21558
|
-
/* @__PURE__ */
|
|
21770
|
+
/* @__PURE__ */ jsx130(ListIndentPlugin, { maxDepth: 4 }),
|
|
21771
|
+
/* @__PURE__ */ jsx130(DisableStylesPlugin, {}),
|
|
21772
|
+
/* @__PURE__ */ jsx130(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
21773
|
+
/* @__PURE__ */ jsx130(Fragment20, { children })
|
|
21559
21774
|
] })
|
|
21560
21775
|
] });
|
|
21561
21776
|
};
|
|
21562
21777
|
|
|
21563
21778
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
21564
|
-
import { forwardRef as
|
|
21565
|
-
import { jsx as
|
|
21566
|
-
var ParameterSelect =
|
|
21779
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
21780
|
+
import { jsx as jsx131, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
|
|
21781
|
+
var ParameterSelect = forwardRef22(
|
|
21567
21782
|
({ defaultOption, options, ...props }, ref) => {
|
|
21568
21783
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
21569
|
-
return /* @__PURE__ */
|
|
21784
|
+
return /* @__PURE__ */ jsx131(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx131(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
21570
21785
|
}
|
|
21571
21786
|
);
|
|
21572
|
-
var ParameterSelectInner =
|
|
21787
|
+
var ParameterSelectInner = forwardRef22(
|
|
21573
21788
|
({ defaultOption, options, ...props }, ref) => {
|
|
21574
21789
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
21575
|
-
return /* @__PURE__ */
|
|
21790
|
+
return /* @__PURE__ */ jsxs87(
|
|
21576
21791
|
"select",
|
|
21577
21792
|
{
|
|
21578
21793
|
css: [input3, selectInput],
|
|
@@ -21581,10 +21796,10 @@ var ParameterSelectInner = forwardRef21(
|
|
|
21581
21796
|
ref,
|
|
21582
21797
|
...props,
|
|
21583
21798
|
children: [
|
|
21584
|
-
defaultOption ? /* @__PURE__ */
|
|
21799
|
+
defaultOption ? /* @__PURE__ */ jsx131("option", { value: "", children: defaultOption }) : null,
|
|
21585
21800
|
options.map((option) => {
|
|
21586
21801
|
var _a;
|
|
21587
|
-
return /* @__PURE__ */
|
|
21802
|
+
return /* @__PURE__ */ jsx131("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
21588
21803
|
})
|
|
21589
21804
|
]
|
|
21590
21805
|
}
|
|
@@ -21593,15 +21808,15 @@ var ParameterSelectInner = forwardRef21(
|
|
|
21593
21808
|
);
|
|
21594
21809
|
|
|
21595
21810
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
21596
|
-
import { forwardRef as
|
|
21597
|
-
import { jsx as
|
|
21598
|
-
var ParameterTextarea =
|
|
21811
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
21812
|
+
import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
|
|
21813
|
+
var ParameterTextarea = forwardRef23((props, ref) => {
|
|
21599
21814
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
21600
|
-
return /* @__PURE__ */
|
|
21815
|
+
return /* @__PURE__ */ jsx132(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx132(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
21601
21816
|
});
|
|
21602
|
-
var ParameterTextareaInner =
|
|
21817
|
+
var ParameterTextareaInner = forwardRef23(({ ...props }, ref) => {
|
|
21603
21818
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
21604
|
-
return /* @__PURE__ */
|
|
21819
|
+
return /* @__PURE__ */ jsx132(
|
|
21605
21820
|
"textarea",
|
|
21606
21821
|
{
|
|
21607
21822
|
css: [input3, textarea2],
|
|
@@ -21614,26 +21829,26 @@ var ParameterTextareaInner = forwardRef22(({ ...props }, ref) => {
|
|
|
21614
21829
|
});
|
|
21615
21830
|
|
|
21616
21831
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
21617
|
-
import { forwardRef as
|
|
21618
|
-
import { jsx as
|
|
21619
|
-
var ParameterToggle =
|
|
21832
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
21833
|
+
import { jsx as jsx133, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
21834
|
+
var ParameterToggle = forwardRef24((props, ref) => {
|
|
21620
21835
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
21621
|
-
return /* @__PURE__ */
|
|
21836
|
+
return /* @__PURE__ */ jsx133(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx133(ParameterToggleInner, { ref, ...innerProps }) });
|
|
21622
21837
|
});
|
|
21623
|
-
var ParameterToggleInner =
|
|
21838
|
+
var ParameterToggleInner = forwardRef24(
|
|
21624
21839
|
({ children, ...props }, ref) => {
|
|
21625
21840
|
const { id, label } = useParameterShell();
|
|
21626
|
-
return /* @__PURE__ */
|
|
21627
|
-
/* @__PURE__ */
|
|
21628
|
-
/* @__PURE__ */
|
|
21841
|
+
return /* @__PURE__ */ jsxs88("label", { css: inputToggleLabel2, children: [
|
|
21842
|
+
/* @__PURE__ */ jsx133("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
21843
|
+
/* @__PURE__ */ jsx133("span", { css: inlineLabel2, children: label }),
|
|
21629
21844
|
children
|
|
21630
21845
|
] });
|
|
21631
21846
|
}
|
|
21632
21847
|
);
|
|
21633
21848
|
|
|
21634
21849
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
21635
|
-
import { css as
|
|
21636
|
-
var container3 =
|
|
21850
|
+
import { css as css97, keyframes as keyframes4 } from "@emotion/react";
|
|
21851
|
+
var container3 = css97`
|
|
21637
21852
|
background: var(--gray-50);
|
|
21638
21853
|
margin-block: var(--spacing-sm);
|
|
21639
21854
|
position: relative;
|
|
@@ -21643,13 +21858,13 @@ var container3 = css95`
|
|
|
21643
21858
|
border: solid 1px var(--gray-300);
|
|
21644
21859
|
`;
|
|
21645
21860
|
var themeMap = {
|
|
21646
|
-
primary:
|
|
21861
|
+
primary: css97`
|
|
21647
21862
|
--progress-color: var(--accent-light);
|
|
21648
21863
|
`,
|
|
21649
|
-
secondary:
|
|
21864
|
+
secondary: css97`
|
|
21650
21865
|
--progress-color: var(--accent-alt-light);
|
|
21651
21866
|
`,
|
|
21652
|
-
destructive:
|
|
21867
|
+
destructive: css97`
|
|
21653
21868
|
--progress-color: var(--brand-secondary-5);
|
|
21654
21869
|
`
|
|
21655
21870
|
};
|
|
@@ -21661,10 +21876,10 @@ var slidingBackgroundPosition = keyframes4`
|
|
|
21661
21876
|
background-position: 64px 0;
|
|
21662
21877
|
}
|
|
21663
21878
|
`;
|
|
21664
|
-
var determinate =
|
|
21879
|
+
var determinate = css97`
|
|
21665
21880
|
background-color: var(--progress-color);
|
|
21666
21881
|
`;
|
|
21667
|
-
var indeterminate =
|
|
21882
|
+
var indeterminate = css97`
|
|
21668
21883
|
background-image: linear-gradient(
|
|
21669
21884
|
45deg,
|
|
21670
21885
|
var(--progress-color) 25%,
|
|
@@ -21678,7 +21893,7 @@ var indeterminate = css95`
|
|
|
21678
21893
|
background-size: 64px 64px;
|
|
21679
21894
|
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
21680
21895
|
`;
|
|
21681
|
-
var bar =
|
|
21896
|
+
var bar = css97`
|
|
21682
21897
|
position: absolute;
|
|
21683
21898
|
inset: 0;
|
|
21684
21899
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -21686,7 +21901,7 @@ var bar = css95`
|
|
|
21686
21901
|
`;
|
|
21687
21902
|
|
|
21688
21903
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
21689
|
-
import { jsx as
|
|
21904
|
+
import { jsx as jsx134 } from "@emotion/react/jsx-runtime";
|
|
21690
21905
|
function ProgressBar({
|
|
21691
21906
|
current,
|
|
21692
21907
|
max,
|
|
@@ -21696,7 +21911,7 @@ function ProgressBar({
|
|
|
21696
21911
|
}) {
|
|
21697
21912
|
const valueNow = Math.min(current, max);
|
|
21698
21913
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
21699
|
-
return /* @__PURE__ */
|
|
21914
|
+
return /* @__PURE__ */ jsx134(
|
|
21700
21915
|
"div",
|
|
21701
21916
|
{
|
|
21702
21917
|
css: container3,
|
|
@@ -21707,7 +21922,7 @@ function ProgressBar({
|
|
|
21707
21922
|
"aria-valuemax": max,
|
|
21708
21923
|
"aria-valuenow": valueNow,
|
|
21709
21924
|
...props,
|
|
21710
|
-
children: /* @__PURE__ */
|
|
21925
|
+
children: /* @__PURE__ */ jsx134(
|
|
21711
21926
|
"div",
|
|
21712
21927
|
{
|
|
21713
21928
|
css: [
|
|
@@ -21726,28 +21941,28 @@ function ProgressBar({
|
|
|
21726
21941
|
}
|
|
21727
21942
|
|
|
21728
21943
|
// src/components/ProgressList/ProgressList.tsx
|
|
21729
|
-
import { css as
|
|
21944
|
+
import { css as css99 } from "@emotion/react";
|
|
21730
21945
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
21731
21946
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
21732
21947
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
21733
21948
|
import { useMemo as useMemo7 } from "react";
|
|
21734
21949
|
|
|
21735
21950
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
21736
|
-
import { css as
|
|
21737
|
-
var progressListStyles =
|
|
21951
|
+
import { css as css98 } from "@emotion/react";
|
|
21952
|
+
var progressListStyles = css98`
|
|
21738
21953
|
display: flex;
|
|
21739
21954
|
flex-direction: column;
|
|
21740
21955
|
gap: var(--spacing-sm);
|
|
21741
21956
|
list-style-type: none;
|
|
21742
21957
|
`;
|
|
21743
|
-
var progressListItemStyles =
|
|
21958
|
+
var progressListItemStyles = css98`
|
|
21744
21959
|
display: flex;
|
|
21745
21960
|
gap: var(--spacing-base);
|
|
21746
21961
|
align-items: center;
|
|
21747
21962
|
`;
|
|
21748
21963
|
|
|
21749
21964
|
// src/components/ProgressList/ProgressList.tsx
|
|
21750
|
-
import { jsx as
|
|
21965
|
+
import { jsx as jsx135, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
21751
21966
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
21752
21967
|
const itemsWithStatus = useMemo7(() => {
|
|
21753
21968
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -21761,8 +21976,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
21761
21976
|
return { ...item, status };
|
|
21762
21977
|
});
|
|
21763
21978
|
}, [items, inProgressId]);
|
|
21764
|
-
return /* @__PURE__ */
|
|
21765
|
-
return /* @__PURE__ */
|
|
21979
|
+
return /* @__PURE__ */ jsx135("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
21980
|
+
return /* @__PURE__ */ jsx135(
|
|
21766
21981
|
ProgressListItem,
|
|
21767
21982
|
{
|
|
21768
21983
|
status,
|
|
@@ -21795,12 +22010,12 @@ var ProgressListItem = ({
|
|
|
21795
22010
|
}, [status, error]);
|
|
21796
22011
|
const statusStyles = useMemo7(() => {
|
|
21797
22012
|
if (error) {
|
|
21798
|
-
return errorLevel === "caution" ?
|
|
22013
|
+
return errorLevel === "caution" ? css99`
|
|
21799
22014
|
color: rgb(161, 98, 7);
|
|
21800
22015
|
& svg {
|
|
21801
22016
|
color: rgb(250, 204, 21);
|
|
21802
22017
|
}
|
|
21803
|
-
` :
|
|
22018
|
+
` : css99`
|
|
21804
22019
|
color: rgb(185, 28, 28);
|
|
21805
22020
|
& svg {
|
|
21806
22021
|
color: var(--brand-primary-2);
|
|
@@ -21808,38 +22023,38 @@ var ProgressListItem = ({
|
|
|
21808
22023
|
`;
|
|
21809
22024
|
}
|
|
21810
22025
|
const colorPerStatus = {
|
|
21811
|
-
completed:
|
|
22026
|
+
completed: css99`
|
|
21812
22027
|
opacity: 0.75;
|
|
21813
22028
|
`,
|
|
21814
|
-
inProgress:
|
|
22029
|
+
inProgress: css99`
|
|
21815
22030
|
-webkit-text-stroke-width: thin;
|
|
21816
22031
|
`,
|
|
21817
|
-
queued:
|
|
22032
|
+
queued: css99`
|
|
21818
22033
|
opacity: 0.5;
|
|
21819
22034
|
`
|
|
21820
22035
|
};
|
|
21821
22036
|
return colorPerStatus[status];
|
|
21822
22037
|
}, [status, error, errorLevel]);
|
|
21823
|
-
return /* @__PURE__ */
|
|
21824
|
-
/* @__PURE__ */
|
|
21825
|
-
/* @__PURE__ */
|
|
22038
|
+
return /* @__PURE__ */ jsxs89("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
22039
|
+
/* @__PURE__ */ jsx135(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx135("div", { children: /* @__PURE__ */ jsx135(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
22040
|
+
/* @__PURE__ */ jsxs89("div", { children: [
|
|
21826
22041
|
children,
|
|
21827
|
-
/* @__PURE__ */
|
|
22042
|
+
/* @__PURE__ */ jsx135("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
21828
22043
|
] })
|
|
21829
22044
|
] });
|
|
21830
22045
|
};
|
|
21831
22046
|
|
|
21832
22047
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
21833
|
-
import { css as
|
|
22048
|
+
import { css as css101 } from "@emotion/react";
|
|
21834
22049
|
import { CgCheck as CgCheck5 } from "@react-icons/all-files/cg/CgCheck";
|
|
21835
22050
|
import { useCallback as useCallback12, useEffect as useEffect22, useMemo as useMemo8, useRef as useRef13, useState as useState18 } from "react";
|
|
21836
22051
|
|
|
21837
22052
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
21838
|
-
import { css as
|
|
21839
|
-
var segmentedControlRootStyles =
|
|
22053
|
+
import { css as css100 } from "@emotion/react";
|
|
22054
|
+
var segmentedControlRootStyles = css100`
|
|
21840
22055
|
position: relative;
|
|
21841
22056
|
`;
|
|
21842
|
-
var segmentedControlScrollIndicatorsStyles =
|
|
22057
|
+
var segmentedControlScrollIndicatorsStyles = css100`
|
|
21843
22058
|
position: absolute;
|
|
21844
22059
|
inset: 0;
|
|
21845
22060
|
z-index: 1;
|
|
@@ -21867,17 +22082,17 @@ var segmentedControlScrollIndicatorsStyles = css98`
|
|
|
21867
22082
|
background: linear-gradient(to left, var(--background-color) 10%, transparent);
|
|
21868
22083
|
}
|
|
21869
22084
|
`;
|
|
21870
|
-
var segmentedControlScrollIndicatorStartVisibleStyles =
|
|
22085
|
+
var segmentedControlScrollIndicatorStartVisibleStyles = css100`
|
|
21871
22086
|
&::before {
|
|
21872
22087
|
opacity: 1;
|
|
21873
22088
|
}
|
|
21874
22089
|
`;
|
|
21875
|
-
var segmentedControlScrollIndicatorEndVisibleStyles =
|
|
22090
|
+
var segmentedControlScrollIndicatorEndVisibleStyles = css100`
|
|
21876
22091
|
&::after {
|
|
21877
22092
|
opacity: 1;
|
|
21878
22093
|
}
|
|
21879
22094
|
`;
|
|
21880
|
-
var segmentedControlWrapperStyles =
|
|
22095
|
+
var segmentedControlWrapperStyles = css100`
|
|
21881
22096
|
overflow-y: auto;
|
|
21882
22097
|
scroll-behavior: smooth;
|
|
21883
22098
|
scrollbar-width: none;
|
|
@@ -21886,7 +22101,7 @@ var segmentedControlWrapperStyles = css98`
|
|
|
21886
22101
|
height: 0px;
|
|
21887
22102
|
}
|
|
21888
22103
|
`;
|
|
21889
|
-
var segmentedControlStyles =
|
|
22104
|
+
var segmentedControlStyles = css100`
|
|
21890
22105
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
21891
22106
|
--segmented-control-border-width: 1px;
|
|
21892
22107
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -21905,14 +22120,14 @@ var segmentedControlStyles = css98`
|
|
|
21905
22120
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
21906
22121
|
font-size: var(--fs-xs);
|
|
21907
22122
|
`;
|
|
21908
|
-
var segmentedControlVerticalStyles =
|
|
22123
|
+
var segmentedControlVerticalStyles = css100`
|
|
21909
22124
|
flex-direction: column;
|
|
21910
22125
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
21911
22126
|
var(--segmented-control-rounded-value) 0 0;
|
|
21912
22127
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
21913
22128
|
var(--segmented-control-rounded-value);
|
|
21914
22129
|
`;
|
|
21915
|
-
var segmentedControlItemStyles =
|
|
22130
|
+
var segmentedControlItemStyles = css100`
|
|
21916
22131
|
&:first-of-type label {
|
|
21917
22132
|
border-radius: var(--segmented-control-first-border-radius);
|
|
21918
22133
|
}
|
|
@@ -21920,10 +22135,10 @@ var segmentedControlItemStyles = css98`
|
|
|
21920
22135
|
border-radius: var(--segmented-control-last-border-radius);
|
|
21921
22136
|
}
|
|
21922
22137
|
`;
|
|
21923
|
-
var segmentedControlInputStyles =
|
|
22138
|
+
var segmentedControlInputStyles = css100`
|
|
21924
22139
|
${accessibleHidden}
|
|
21925
22140
|
`;
|
|
21926
|
-
var segmentedControlLabelStyles = (checked, disabled2) =>
|
|
22141
|
+
var segmentedControlLabelStyles = (checked, disabled2) => css100`
|
|
21927
22142
|
position: relative;
|
|
21928
22143
|
display: flex;
|
|
21929
22144
|
align-items: center;
|
|
@@ -21990,25 +22205,25 @@ var segmentedControlLabelStyles = (checked, disabled2) => css98`
|
|
|
21990
22205
|
`}
|
|
21991
22206
|
}
|
|
21992
22207
|
`;
|
|
21993
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
22208
|
+
var segmentedControlLabelIconOnlyStyles = css100`
|
|
21994
22209
|
padding-inline: 0.5em;
|
|
21995
22210
|
`;
|
|
21996
|
-
var segmentedControlLabelCheckStyles =
|
|
22211
|
+
var segmentedControlLabelCheckStyles = css100`
|
|
21997
22212
|
opacity: 0.5;
|
|
21998
22213
|
`;
|
|
21999
|
-
var segmentedControlLabelContentStyles =
|
|
22214
|
+
var segmentedControlLabelContentStyles = css100`
|
|
22000
22215
|
display: flex;
|
|
22001
22216
|
align-items: center;
|
|
22002
22217
|
justify-content: center;
|
|
22003
22218
|
gap: var(--spacing-sm);
|
|
22004
22219
|
height: 100%;
|
|
22005
22220
|
`;
|
|
22006
|
-
var segmentedControlLabelTextStyles =
|
|
22221
|
+
var segmentedControlLabelTextStyles = css100`
|
|
22007
22222
|
white-space: nowrap;
|
|
22008
22223
|
`;
|
|
22009
22224
|
|
|
22010
22225
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
22011
|
-
import { jsx as
|
|
22226
|
+
import { jsx as jsx136, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
22012
22227
|
var SegmentedControl = ({
|
|
22013
22228
|
name,
|
|
22014
22229
|
options,
|
|
@@ -22036,10 +22251,10 @@ var SegmentedControl = ({
|
|
|
22036
22251
|
);
|
|
22037
22252
|
const sizeStyles = useMemo8(() => {
|
|
22038
22253
|
const map = {
|
|
22039
|
-
sm:
|
|
22040
|
-
md:
|
|
22041
|
-
lg:
|
|
22042
|
-
xl:
|
|
22254
|
+
sm: css101({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
22255
|
+
md: css101({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
22256
|
+
lg: css101({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" }),
|
|
22257
|
+
xl: css101({ height: "calc(48px - 2px)", fontSize: "var(--fs-base)" })
|
|
22043
22258
|
};
|
|
22044
22259
|
return map[size];
|
|
22045
22260
|
}, [size]);
|
|
@@ -22067,8 +22282,8 @@ var SegmentedControl = ({
|
|
|
22067
22282
|
wrapperElement == null ? void 0 : wrapperElement.removeEventListener("scroll", onScroll);
|
|
22068
22283
|
};
|
|
22069
22284
|
}, []);
|
|
22070
|
-
return /* @__PURE__ */
|
|
22071
|
-
/* @__PURE__ */
|
|
22285
|
+
return /* @__PURE__ */ jsxs90("div", { css: [segmentedControlRootStyles, { "--background-color": currentBackgroundColor }], children: [
|
|
22286
|
+
/* @__PURE__ */ jsx136("div", { ref: wrapperRef, css: segmentedControlWrapperStyles, children: /* @__PURE__ */ jsx136(
|
|
22072
22287
|
"div",
|
|
22073
22288
|
{
|
|
22074
22289
|
css: [
|
|
@@ -22084,12 +22299,12 @@ var SegmentedControl = ({
|
|
|
22084
22299
|
}
|
|
22085
22300
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
22086
22301
|
const isDisabled = disabled2 || option.disabled;
|
|
22087
|
-
return /* @__PURE__ */
|
|
22302
|
+
return /* @__PURE__ */ jsx136(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx136(
|
|
22088
22303
|
"div",
|
|
22089
22304
|
{
|
|
22090
22305
|
css: segmentedControlItemStyles,
|
|
22091
22306
|
"data-testid": option["data-testid"] ? option["data-testid"] : "container-segmented-control",
|
|
22092
|
-
children: /* @__PURE__ */
|
|
22307
|
+
children: /* @__PURE__ */ jsxs90(
|
|
22093
22308
|
"label",
|
|
22094
22309
|
{
|
|
22095
22310
|
css: [
|
|
@@ -22098,7 +22313,7 @@ var SegmentedControl = ({
|
|
|
22098
22313
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
22099
22314
|
],
|
|
22100
22315
|
children: [
|
|
22101
|
-
/* @__PURE__ */
|
|
22316
|
+
/* @__PURE__ */ jsx136(
|
|
22102
22317
|
"input",
|
|
22103
22318
|
{
|
|
22104
22319
|
css: segmentedControlInputStyles,
|
|
@@ -22110,10 +22325,10 @@ var SegmentedControl = ({
|
|
|
22110
22325
|
disabled: isDisabled
|
|
22111
22326
|
}
|
|
22112
22327
|
),
|
|
22113
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
22114
|
-
/* @__PURE__ */
|
|
22115
|
-
!option.icon ? null : /* @__PURE__ */
|
|
22116
|
-
!text || hideOptionText ? null : /* @__PURE__ */
|
|
22328
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx136(CgCheck5, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
22329
|
+
/* @__PURE__ */ jsxs90("span", { css: segmentedControlLabelContentStyles, children: [
|
|
22330
|
+
!option.icon ? null : /* @__PURE__ */ jsx136(Icon, { icon: option.icon, size: iconSize, iconColor: "currentColor" }),
|
|
22331
|
+
!text || hideOptionText ? null : /* @__PURE__ */ jsx136("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
22117
22332
|
] })
|
|
22118
22333
|
]
|
|
22119
22334
|
}
|
|
@@ -22123,7 +22338,7 @@ var SegmentedControl = ({
|
|
|
22123
22338
|
})
|
|
22124
22339
|
}
|
|
22125
22340
|
) }),
|
|
22126
|
-
/* @__PURE__ */
|
|
22341
|
+
/* @__PURE__ */ jsx136(
|
|
22127
22342
|
"div",
|
|
22128
22343
|
{
|
|
22129
22344
|
css: [
|
|
@@ -22137,18 +22352,18 @@ var SegmentedControl = ({
|
|
|
22137
22352
|
};
|
|
22138
22353
|
|
|
22139
22354
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
22140
|
-
import { css as
|
|
22355
|
+
import { css as css102, keyframes as keyframes5 } from "@emotion/react";
|
|
22141
22356
|
var lightFadingOut = keyframes5`
|
|
22142
22357
|
from { opacity: 0.1; }
|
|
22143
22358
|
to { opacity: 0.025; }
|
|
22144
22359
|
`;
|
|
22145
|
-
var skeletonStyles =
|
|
22360
|
+
var skeletonStyles = css102`
|
|
22146
22361
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
22147
22362
|
background-color: var(--gray-900);
|
|
22148
22363
|
`;
|
|
22149
22364
|
|
|
22150
22365
|
// src/components/Skeleton/Skeleton.tsx
|
|
22151
|
-
import { jsx as
|
|
22366
|
+
import { jsx as jsx137 } from "@emotion/react/jsx-runtime";
|
|
22152
22367
|
var Skeleton = ({
|
|
22153
22368
|
width = "100%",
|
|
22154
22369
|
height = "1.25rem",
|
|
@@ -22156,7 +22371,7 @@ var Skeleton = ({
|
|
|
22156
22371
|
circle = false,
|
|
22157
22372
|
children,
|
|
22158
22373
|
...otherProps
|
|
22159
|
-
}) => /* @__PURE__ */
|
|
22374
|
+
}) => /* @__PURE__ */ jsx137(
|
|
22160
22375
|
"div",
|
|
22161
22376
|
{
|
|
22162
22377
|
css: [
|
|
@@ -22176,11 +22391,11 @@ var Skeleton = ({
|
|
|
22176
22391
|
);
|
|
22177
22392
|
|
|
22178
22393
|
// src/components/Switch/Switch.tsx
|
|
22179
|
-
import { forwardRef as
|
|
22394
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
22180
22395
|
|
|
22181
22396
|
// src/components/Switch/Switch.styles.ts
|
|
22182
|
-
import { css as
|
|
22183
|
-
var SwitchInputContainer =
|
|
22397
|
+
import { css as css103 } from "@emotion/react";
|
|
22398
|
+
var SwitchInputContainer = css103`
|
|
22184
22399
|
cursor: pointer;
|
|
22185
22400
|
display: inline-block;
|
|
22186
22401
|
position: relative;
|
|
@@ -22189,7 +22404,7 @@ var SwitchInputContainer = css101`
|
|
|
22189
22404
|
vertical-align: middle;
|
|
22190
22405
|
user-select: none;
|
|
22191
22406
|
`;
|
|
22192
|
-
var SwitchInput = (size) =>
|
|
22407
|
+
var SwitchInput = (size) => css103`
|
|
22193
22408
|
appearance: none;
|
|
22194
22409
|
border-radius: var(--rounded-full);
|
|
22195
22410
|
background-color: var(--white);
|
|
@@ -22228,7 +22443,7 @@ var SwitchInput = (size) => css101`
|
|
|
22228
22443
|
cursor: not-allowed;
|
|
22229
22444
|
}
|
|
22230
22445
|
`;
|
|
22231
|
-
var SwitchInputDisabled =
|
|
22446
|
+
var SwitchInputDisabled = css103`
|
|
22232
22447
|
opacity: var(--opacity-50);
|
|
22233
22448
|
cursor: not-allowed;
|
|
22234
22449
|
|
|
@@ -22236,7 +22451,7 @@ var SwitchInputDisabled = css101`
|
|
|
22236
22451
|
cursor: not-allowed;
|
|
22237
22452
|
}
|
|
22238
22453
|
`;
|
|
22239
|
-
var SwitchInputLabel = (size) =>
|
|
22454
|
+
var SwitchInputLabel = (size) => css103`
|
|
22240
22455
|
align-items: center;
|
|
22241
22456
|
color: var(--typography-base);
|
|
22242
22457
|
display: inline-flex;
|
|
@@ -22258,32 +22473,32 @@ var SwitchInputLabel = (size) => css101`
|
|
|
22258
22473
|
top: 0;
|
|
22259
22474
|
}
|
|
22260
22475
|
`;
|
|
22261
|
-
var SwitchText = (size) =>
|
|
22476
|
+
var SwitchText = (size) => css103`
|
|
22262
22477
|
color: var(--gray-500);
|
|
22263
22478
|
font-size: var(--fs-sm);
|
|
22264
22479
|
padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
|
|
22265
22480
|
`;
|
|
22266
22481
|
|
|
22267
22482
|
// src/components/Switch/Switch.tsx
|
|
22268
|
-
import { Fragment as Fragment21, jsx as
|
|
22269
|
-
var Switch =
|
|
22483
|
+
import { Fragment as Fragment21, jsx as jsx138, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
|
|
22484
|
+
var Switch = forwardRef25(
|
|
22270
22485
|
({ label, infoText, toggleText, children, switchSize = "base", ...inputProps }, ref) => {
|
|
22271
22486
|
let additionalText = infoText;
|
|
22272
22487
|
if (infoText && toggleText) {
|
|
22273
22488
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
22274
22489
|
}
|
|
22275
|
-
return /* @__PURE__ */
|
|
22276
|
-
/* @__PURE__ */
|
|
22490
|
+
return /* @__PURE__ */ jsxs91(Fragment21, { children: [
|
|
22491
|
+
/* @__PURE__ */ jsxs91(
|
|
22277
22492
|
"label",
|
|
22278
22493
|
{
|
|
22279
22494
|
css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0],
|
|
22280
22495
|
children: [
|
|
22281
|
-
/* @__PURE__ */
|
|
22282
|
-
/* @__PURE__ */
|
|
22496
|
+
/* @__PURE__ */ jsx138("input", { type: "checkbox", css: SwitchInput(switchSize), ...inputProps, ref }),
|
|
22497
|
+
/* @__PURE__ */ jsx138("span", { css: SwitchInputLabel(switchSize), children: label })
|
|
22283
22498
|
]
|
|
22284
22499
|
}
|
|
22285
22500
|
),
|
|
22286
|
-
additionalText ? /* @__PURE__ */
|
|
22501
|
+
additionalText ? /* @__PURE__ */ jsx138("p", { css: SwitchText(switchSize), children: additionalText }) : null,
|
|
22287
22502
|
children
|
|
22288
22503
|
] });
|
|
22289
22504
|
}
|
|
@@ -22293,8 +22508,8 @@ var Switch = forwardRef24(
|
|
|
22293
22508
|
import * as React24 from "react";
|
|
22294
22509
|
|
|
22295
22510
|
// src/components/Table/Table.styles.ts
|
|
22296
|
-
import { css as
|
|
22297
|
-
var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) =>
|
|
22511
|
+
import { css as css104 } from "@emotion/react";
|
|
22512
|
+
var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => css104`
|
|
22298
22513
|
border-bottom: 1px solid var(--gray-400);
|
|
22299
22514
|
border-collapse: collapse;
|
|
22300
22515
|
min-width: 100%;
|
|
@@ -22314,54 +22529,54 @@ var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => css102`
|
|
|
22314
22529
|
background-color: var(--gray-50);
|
|
22315
22530
|
}
|
|
22316
22531
|
`;
|
|
22317
|
-
var tableHead =
|
|
22532
|
+
var tableHead = css104`
|
|
22318
22533
|
color: var(--typography-base);
|
|
22319
22534
|
text-align: left;
|
|
22320
22535
|
`;
|
|
22321
|
-
var tableRow =
|
|
22536
|
+
var tableRow = css104`
|
|
22322
22537
|
border-bottom: 1px solid var(--gray-100);
|
|
22323
22538
|
`;
|
|
22324
|
-
var tableCellHead =
|
|
22539
|
+
var tableCellHead = css104`
|
|
22325
22540
|
font-size: var(--fs-sm);
|
|
22326
22541
|
text-transform: uppercase;
|
|
22327
22542
|
font-weight: var(--fw-bold);
|
|
22328
22543
|
`;
|
|
22329
22544
|
|
|
22330
22545
|
// src/components/Table/Table.tsx
|
|
22331
|
-
import { jsx as
|
|
22546
|
+
import { jsx as jsx139 } from "@emotion/react/jsx-runtime";
|
|
22332
22547
|
var Table = React24.forwardRef(
|
|
22333
22548
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
22334
|
-
return /* @__PURE__ */
|
|
22549
|
+
return /* @__PURE__ */ jsx139("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
22335
22550
|
}
|
|
22336
22551
|
);
|
|
22337
22552
|
var TableHead = React24.forwardRef(
|
|
22338
22553
|
({ children, ...otherProps }, ref) => {
|
|
22339
|
-
return /* @__PURE__ */
|
|
22554
|
+
return /* @__PURE__ */ jsx139("thead", { ref, css: tableHead, ...otherProps, children });
|
|
22340
22555
|
}
|
|
22341
22556
|
);
|
|
22342
22557
|
var TableBody = React24.forwardRef(
|
|
22343
22558
|
({ children, ...otherProps }, ref) => {
|
|
22344
|
-
return /* @__PURE__ */
|
|
22559
|
+
return /* @__PURE__ */ jsx139("tbody", { ref, ...otherProps, children });
|
|
22345
22560
|
}
|
|
22346
22561
|
);
|
|
22347
22562
|
var TableFoot = React24.forwardRef(
|
|
22348
22563
|
({ children, ...otherProps }, ref) => {
|
|
22349
|
-
return /* @__PURE__ */
|
|
22564
|
+
return /* @__PURE__ */ jsx139("tfoot", { ref, ...otherProps, children });
|
|
22350
22565
|
}
|
|
22351
22566
|
);
|
|
22352
22567
|
var TableRow = React24.forwardRef(
|
|
22353
22568
|
({ children, ...otherProps }, ref) => {
|
|
22354
|
-
return /* @__PURE__ */
|
|
22569
|
+
return /* @__PURE__ */ jsx139("tr", { ref, css: tableRow, ...otherProps, children });
|
|
22355
22570
|
}
|
|
22356
22571
|
);
|
|
22357
22572
|
var TableCellHead = React24.forwardRef(
|
|
22358
22573
|
({ children, ...otherProps }, ref) => {
|
|
22359
|
-
return /* @__PURE__ */
|
|
22574
|
+
return /* @__PURE__ */ jsx139("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
22360
22575
|
}
|
|
22361
22576
|
);
|
|
22362
22577
|
var TableCellData = React24.forwardRef(
|
|
22363
22578
|
({ children, ...otherProps }, ref) => {
|
|
22364
|
-
return /* @__PURE__ */
|
|
22579
|
+
return /* @__PURE__ */ jsx139("td", { ref, ...otherProps, children });
|
|
22365
22580
|
}
|
|
22366
22581
|
);
|
|
22367
22582
|
|
|
@@ -22376,8 +22591,8 @@ import {
|
|
|
22376
22591
|
import { useCallback as useCallback13, useEffect as useEffect23, useMemo as useMemo9 } from "react";
|
|
22377
22592
|
|
|
22378
22593
|
// src/components/Tabs/Tabs.styles.ts
|
|
22379
|
-
import { css as
|
|
22380
|
-
var tabButtonStyles =
|
|
22594
|
+
import { css as css105 } from "@emotion/react";
|
|
22595
|
+
var tabButtonStyles = css105`
|
|
22381
22596
|
align-items: center;
|
|
22382
22597
|
border: 0;
|
|
22383
22598
|
height: 2.5rem;
|
|
@@ -22394,14 +22609,14 @@ var tabButtonStyles = css103`
|
|
|
22394
22609
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
22395
22610
|
}
|
|
22396
22611
|
`;
|
|
22397
|
-
var tabButtonGroupStyles =
|
|
22612
|
+
var tabButtonGroupStyles = css105`
|
|
22398
22613
|
display: flex;
|
|
22399
22614
|
gap: var(--spacing-base);
|
|
22400
22615
|
border-bottom: 1px solid var(--gray-300);
|
|
22401
22616
|
`;
|
|
22402
22617
|
|
|
22403
22618
|
// src/components/Tabs/Tabs.tsx
|
|
22404
|
-
import { jsx as
|
|
22619
|
+
import { jsx as jsx140 } from "@emotion/react/jsx-runtime";
|
|
22405
22620
|
var useCurrentTab = () => {
|
|
22406
22621
|
const context = useAriakitTabStore();
|
|
22407
22622
|
if (!context) {
|
|
@@ -22438,28 +22653,28 @@ var Tabs = ({
|
|
|
22438
22653
|
tab.setSelectedId(selected);
|
|
22439
22654
|
}
|
|
22440
22655
|
}, [selected, tab]);
|
|
22441
|
-
return /* @__PURE__ */
|
|
22656
|
+
return /* @__PURE__ */ jsx140(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
22442
22657
|
};
|
|
22443
22658
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
22444
|
-
return /* @__PURE__ */
|
|
22659
|
+
return /* @__PURE__ */ jsx140(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
22445
22660
|
};
|
|
22446
22661
|
var TabButton = ({
|
|
22447
22662
|
children,
|
|
22448
22663
|
id,
|
|
22449
22664
|
...props
|
|
22450
22665
|
}) => {
|
|
22451
|
-
return /* @__PURE__ */
|
|
22666
|
+
return /* @__PURE__ */ jsx140(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
22452
22667
|
};
|
|
22453
22668
|
var TabContent = ({
|
|
22454
22669
|
children,
|
|
22455
22670
|
...props
|
|
22456
22671
|
}) => {
|
|
22457
|
-
return /* @__PURE__ */
|
|
22672
|
+
return /* @__PURE__ */ jsx140(AriakitTabPanel, { ...props, children });
|
|
22458
22673
|
};
|
|
22459
22674
|
|
|
22460
22675
|
// src/components/Validation/StatusBullet.styles.ts
|
|
22461
|
-
import { css as
|
|
22462
|
-
var StatusBulletContainer =
|
|
22676
|
+
import { css as css106 } from "@emotion/react";
|
|
22677
|
+
var StatusBulletContainer = css106`
|
|
22463
22678
|
align-items: center;
|
|
22464
22679
|
align-self: center;
|
|
22465
22680
|
color: var(--gray-500);
|
|
@@ -22476,33 +22691,33 @@ var StatusBulletContainer = css104`
|
|
|
22476
22691
|
display: block;
|
|
22477
22692
|
}
|
|
22478
22693
|
`;
|
|
22479
|
-
var StatusBulletBase =
|
|
22694
|
+
var StatusBulletBase = css106`
|
|
22480
22695
|
font-size: var(--fs-sm);
|
|
22481
22696
|
&:before {
|
|
22482
22697
|
width: var(--fs-xs);
|
|
22483
22698
|
height: var(--fs-xs);
|
|
22484
22699
|
}
|
|
22485
22700
|
`;
|
|
22486
|
-
var StatusBulletSmall =
|
|
22701
|
+
var StatusBulletSmall = css106`
|
|
22487
22702
|
font-size: var(--fs-xs);
|
|
22488
22703
|
&:before {
|
|
22489
22704
|
width: var(--fs-xxs);
|
|
22490
22705
|
height: var(--fs-xxs);
|
|
22491
22706
|
}
|
|
22492
22707
|
`;
|
|
22493
|
-
var StatusDraft =
|
|
22708
|
+
var StatusDraft = css106`
|
|
22494
22709
|
&:before {
|
|
22495
22710
|
background: var(--white);
|
|
22496
22711
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
22497
22712
|
}
|
|
22498
22713
|
`;
|
|
22499
|
-
var StatusModified =
|
|
22714
|
+
var StatusModified = css106`
|
|
22500
22715
|
&:before {
|
|
22501
22716
|
background: linear-gradient(to right, var(--white) 50%, var(--accent-dark) 50% 100%);
|
|
22502
22717
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
22503
22718
|
}
|
|
22504
22719
|
`;
|
|
22505
|
-
var StatusError =
|
|
22720
|
+
var StatusError = css106`
|
|
22506
22721
|
color: var(--error);
|
|
22507
22722
|
&:before {
|
|
22508
22723
|
/* TODO: replace this with an svg icon */
|
|
@@ -22515,29 +22730,29 @@ var StatusError = css104`
|
|
|
22515
22730
|
);
|
|
22516
22731
|
}
|
|
22517
22732
|
`;
|
|
22518
|
-
var StatusPublished =
|
|
22733
|
+
var StatusPublished = css106`
|
|
22519
22734
|
&:before {
|
|
22520
22735
|
background: var(--accent-dark);
|
|
22521
22736
|
}
|
|
22522
22737
|
`;
|
|
22523
|
-
var StatusOrphan =
|
|
22738
|
+
var StatusOrphan = css106`
|
|
22524
22739
|
&:before {
|
|
22525
22740
|
background: var(--brand-secondary-5);
|
|
22526
22741
|
}
|
|
22527
22742
|
`;
|
|
22528
|
-
var StatusUnknown =
|
|
22743
|
+
var StatusUnknown = css106`
|
|
22529
22744
|
&:before {
|
|
22530
22745
|
background: var(--gray-800);
|
|
22531
22746
|
}
|
|
22532
22747
|
`;
|
|
22533
|
-
var StatusDeleted =
|
|
22748
|
+
var StatusDeleted = css106`
|
|
22534
22749
|
&:before {
|
|
22535
22750
|
background: var(--error);
|
|
22536
22751
|
}
|
|
22537
22752
|
`;
|
|
22538
22753
|
|
|
22539
22754
|
// src/components/Validation/StatusBullet.tsx
|
|
22540
|
-
import { jsx as
|
|
22755
|
+
import { jsx as jsx141 } from "@emotion/react/jsx-runtime";
|
|
22541
22756
|
var StatusBullet = ({
|
|
22542
22757
|
status,
|
|
22543
22758
|
hideText = false,
|
|
@@ -22557,7 +22772,7 @@ var StatusBullet = ({
|
|
|
22557
22772
|
Deleted: StatusDeleted
|
|
22558
22773
|
};
|
|
22559
22774
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
22560
|
-
return /* @__PURE__ */
|
|
22775
|
+
return /* @__PURE__ */ jsx141(
|
|
22561
22776
|
"span",
|
|
22562
22777
|
{
|
|
22563
22778
|
role: "status",
|
|
@@ -22600,6 +22815,7 @@ export {
|
|
|
22600
22815
|
DescriptionList,
|
|
22601
22816
|
Details,
|
|
22602
22817
|
DismissibleChipAction,
|
|
22818
|
+
DragHandle,
|
|
22603
22819
|
Drawer,
|
|
22604
22820
|
DrawerContent2 as DrawerContent,
|
|
22605
22821
|
DrawerProvider,
|
|
@@ -22666,6 +22882,11 @@ export {
|
|
|
22666
22882
|
ObjectGridItemCoverButton,
|
|
22667
22883
|
ObjectGridItemHeading2 as ObjectGridItemHeading,
|
|
22668
22884
|
ObjectGridItemIconWithTooltip,
|
|
22885
|
+
ObjectItemLoadingSkeleton,
|
|
22886
|
+
ObjectListItem2 as ObjectListItem,
|
|
22887
|
+
ObjectListItemContainer2 as ObjectListItemContainer,
|
|
22888
|
+
ObjectListItemCover2 as ObjectListItemCover,
|
|
22889
|
+
ObjectListItemHeading,
|
|
22669
22890
|
PageHeaderSection,
|
|
22670
22891
|
Pagination,
|
|
22671
22892
|
Paragraph,
|
|
@@ -22809,12 +23030,16 @@ export {
|
|
|
22809
23030
|
supports,
|
|
22810
23031
|
textInput,
|
|
22811
23032
|
toast,
|
|
23033
|
+
uniformAiIcon,
|
|
22812
23034
|
uniformComponentIcon,
|
|
22813
23035
|
uniformComponentPatternIcon,
|
|
22814
23036
|
uniformCompositionPatternIcon,
|
|
23037
|
+
uniformConditionalValuesIcon,
|
|
22815
23038
|
uniformContentTypeIcon,
|
|
22816
23039
|
uniformEntryIcon,
|
|
22817
23040
|
uniformEntryPatternIcon,
|
|
23041
|
+
uniformLocaleDisabledIcon,
|
|
23042
|
+
uniformLocaleIcon,
|
|
22818
23043
|
useBreakpoint,
|
|
22819
23044
|
useCloseCurrentDrawer,
|
|
22820
23045
|
useCurrentDrawer,
|