@uniformdev/design-system 19.159.0 → 19.159.1-alpha.16
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 +728 -396
- package/dist/index.d.mts +86 -12
- package/dist/index.d.ts +86 -12
- package/dist/index.js +768 -412
- package/package.json +6 -6
package/dist/esm/index.js
CHANGED
|
@@ -66,6 +66,10 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
66
66
|
|
|
67
67
|
--action-destructive-default: var(--brand-secondary-5);
|
|
68
68
|
--action-destructive-hover: #e07571;
|
|
69
|
+
--action-destructive-active: rbga(210, 50, 45, 0.05); /* #d2322d */
|
|
70
|
+
--action-destructive-disabled: #f87171;
|
|
71
|
+
|
|
72
|
+
|
|
69
73
|
|
|
70
74
|
/* tertiary action */
|
|
71
75
|
--tertiary-action-default: var(--gray-700);
|
|
@@ -934,16 +938,16 @@ var buttonPrimary = css8`
|
|
|
934
938
|
})}
|
|
935
939
|
`;
|
|
936
940
|
var buttonDestructive = css8`
|
|
937
|
-
background: var(--
|
|
941
|
+
background: var(--action-destructive-default);
|
|
938
942
|
color: var(--white);
|
|
939
943
|
|
|
940
944
|
&:disabled {
|
|
941
|
-
background: var(--gray-300);
|
|
942
945
|
color: var(--white);
|
|
946
|
+
opacity: var(--opacity-50);
|
|
943
947
|
}
|
|
944
948
|
|
|
945
949
|
${buttonRippleEffect({
|
|
946
|
-
hoverColor: "var(--
|
|
950
|
+
hoverColor: "var(--action-destructive-default)",
|
|
947
951
|
activeColor: "var(--action-destructive-hover)"
|
|
948
952
|
})}
|
|
949
953
|
`;
|
|
@@ -1021,19 +1025,20 @@ var buttonGhost = css8`
|
|
|
1021
1025
|
`;
|
|
1022
1026
|
var buttonGhostDestructive = css8`
|
|
1023
1027
|
background: transparent;
|
|
1024
|
-
color: var(--
|
|
1028
|
+
color: var(--action-destructive-default);
|
|
1025
1029
|
|
|
1026
1030
|
&:hover {
|
|
1027
|
-
|
|
1031
|
+
outline: 1px solid var(--action-destructive-hover);
|
|
1032
|
+
color: var(--action-destructive-hover);
|
|
1028
1033
|
}
|
|
1029
1034
|
|
|
1030
1035
|
&:disabled {
|
|
1031
1036
|
background: transparent;
|
|
1032
|
-
|
|
1033
|
-
|
|
1037
|
+
color: var(--action-destructive-disabled);
|
|
1038
|
+
opacity: var(--opacity-50);
|
|
1034
1039
|
}
|
|
1035
1040
|
|
|
1036
|
-
${buttonRippleEffect({ hoverColor: "var(--white)", activeColor: "var(--
|
|
1041
|
+
${buttonRippleEffect({ hoverColor: "var(--white)", activeColor: "var(--action-destructive-active)" })}
|
|
1037
1042
|
`;
|
|
1038
1043
|
var buttonTertiary = css8`
|
|
1039
1044
|
background: var(--tertiary-action-default);
|
|
@@ -1150,7 +1155,7 @@ var toastContainerStyles = css10`
|
|
|
1150
1155
|
${functionalColors}
|
|
1151
1156
|
|
|
1152
1157
|
--toastify-color-light: white;
|
|
1153
|
-
--toastify-color-info: var(--utility-
|
|
1158
|
+
--toastify-color-info: var(--utility-info-icon);
|
|
1154
1159
|
--toastify-color-success: var(--utility-success-icon);
|
|
1155
1160
|
--toastify-color-warning: var(--utility-caution-icon);
|
|
1156
1161
|
--toastify-color-error: var(--utility-danger-icon);
|
|
@@ -3132,6 +3137,25 @@ var uniformComponentPatternIcon = GenIcon2({
|
|
|
3132
3137
|
}
|
|
3133
3138
|
]
|
|
3134
3139
|
});
|
|
3140
|
+
var uniformCompositionPatternIcon = GenIcon2({
|
|
3141
|
+
tag: "svg",
|
|
3142
|
+
attr: {
|
|
3143
|
+
role: "img",
|
|
3144
|
+
viewBox: "0 0 24 24"
|
|
3145
|
+
},
|
|
3146
|
+
child: [
|
|
3147
|
+
{
|
|
3148
|
+
tag: "path",
|
|
3149
|
+
attr: {
|
|
3150
|
+
fillRule: "evenodd",
|
|
3151
|
+
clipRule: "evenodd",
|
|
3152
|
+
fill: "currentColor",
|
|
3153
|
+
d: "M6.92163 12H4V13.5H8.42163L6.92163 12ZM12.7397 17.8181C12.6083 17.9314 12.4372 18 12.25 18H3.25C2.83579 18 2.5 17.6642 2.5 17.25V6.75C2.5 6.33579 2.83579 6 3.25 6H8.5V9.75H9.17163L10.6716 8.25H10V6.07501C10.7159 6.22033 11.3577 6.56957 11.8622 7.05945L12.9229 5.99871C11.9761 5.07158 10.6798 4.5 9.25 4.5H3.25C2.00736 4.5 1 5.50736 1 6.75V17.25C1 18.4926 2.00736 19.5 3.25 19.5H12.25C12.8514 19.5 13.3977 19.2641 13.8013 18.8797L12.7397 17.8181ZM11.4216 16.5H4V15H9.92163L11.4216 16.5ZM4 10.5H7V9H4V10.5ZM12.5784 12L16.3497 8.22876L20.1209 12L16.3497 15.7712L12.5784 12ZM16.3497 18.5997L9.75 12L16.3497 5.40034L22.9493 12L16.3497 18.5997Z"
|
|
3154
|
+
},
|
|
3155
|
+
child: []
|
|
3156
|
+
}
|
|
3157
|
+
]
|
|
3158
|
+
});
|
|
3135
3159
|
var uniformContentTypeIcon = CgList;
|
|
3136
3160
|
var uniformEntryIcon = CgPen;
|
|
3137
3161
|
var uniformEntryPatternIcon = GenIcon2({
|
|
@@ -12702,9 +12726,9 @@ var InfoIcon2 = css31`
|
|
|
12702
12726
|
|
|
12703
12727
|
// src/components/Input/InfoMessage.tsx
|
|
12704
12728
|
import { jsx as jsx34, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
12705
|
-
var InfoMessage = ({ message, testId, ...props }) => {
|
|
12729
|
+
var InfoMessage = ({ message, testId, icon = MdInfoOutline, ...props }) => {
|
|
12706
12730
|
return message ? /* @__PURE__ */ jsxs19("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
12707
|
-
/* @__PURE__ */ jsx34("span", { children: /* @__PURE__ */ jsx34(Icon, { css: InfoIcon2, icon
|
|
12731
|
+
/* @__PURE__ */ jsx34("span", { children: /* @__PURE__ */ jsx34(Icon, { css: InfoIcon2, icon, size: "1rem", iconColor: "currentColor" }) }),
|
|
12708
12732
|
message
|
|
12709
12733
|
] }) : null;
|
|
12710
12734
|
};
|
|
@@ -13116,10 +13140,11 @@ function convertComboBoxGroupsToSelectableGroups(args) {
|
|
|
13116
13140
|
return { groupedOptions, selectedOptions };
|
|
13117
13141
|
}
|
|
13118
13142
|
function getComboBoxSelectedSelectableGroups(selectedValues) {
|
|
13119
|
-
const
|
|
13143
|
+
const selectedValuesNormalized = selectedValues ? Array.isArray(selectedValues) ? selectedValues : [selectedValues] : null;
|
|
13144
|
+
const selectedOptionValues = selectedValuesNormalized == null ? void 0 : selectedValuesNormalized.flatMap(
|
|
13120
13145
|
(selectedValue) => Array.isArray(selectedValue.value) ? selectedValue.value : [selectedValue.value]
|
|
13121
13146
|
);
|
|
13122
|
-
return new Set(selectedOptionValues.filter((value) => value !== void 0));
|
|
13147
|
+
return new Set(selectedOptionValues == null ? void 0 : selectedOptionValues.filter((value) => value !== void 0));
|
|
13123
13148
|
}
|
|
13124
13149
|
function flatMapOptionValues(options) {
|
|
13125
13150
|
return options.flatMap((option) => {
|
|
@@ -13349,6 +13374,10 @@ var InputKeywordSearch = forwardRef8(
|
|
|
13349
13374
|
minHeight: 0,
|
|
13350
13375
|
padding: "var(--spacing-xs) var(--spacing-lg) var(--spacing-xs) var(--spacing-base)",
|
|
13351
13376
|
fontSize: "var(--fs-sm)"
|
|
13377
|
+
} : compact === "sm" ? {
|
|
13378
|
+
minHeight: "40px",
|
|
13379
|
+
padding: "var(--spacing-xs) var(--spacing-lg) var(--spacing-xs) var(--spacing-base)",
|
|
13380
|
+
fontSize: "var(--fs-sm)"
|
|
13352
13381
|
} : compact ? {
|
|
13353
13382
|
padding: "var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-base)",
|
|
13354
13383
|
fontSize: "var(--fs-sm)"
|
|
@@ -15213,6 +15242,7 @@ var DashedBox = ({
|
|
|
15213
15242
|
|
|
15214
15243
|
// src/components/DateTimePicker/DateTimePicker.tsx
|
|
15215
15244
|
import { CalendarDate as CalendarDate3, parseDate as parseDate2, parseTime as parseTime2, Time as Time2 } from "@internationalized/date";
|
|
15245
|
+
import { CgCalendar } from "@react-icons/all-files/cg/CgCalendar";
|
|
15216
15246
|
import { createContext as createContext2, useCallback as useCallback4, useContext as useContext3, useEffect as useEffect5, useMemo, useState as useState6 } from "react";
|
|
15217
15247
|
import { Popover as Popover2, PopoverDisclosure, usePopoverState } from "reakit/Popover";
|
|
15218
15248
|
|
|
@@ -15428,6 +15458,7 @@ function useDateTimePickerContext() {
|
|
|
15428
15458
|
var DateTimePicker = ({
|
|
15429
15459
|
id,
|
|
15430
15460
|
label,
|
|
15461
|
+
triggerIcon = CgCalendar,
|
|
15431
15462
|
value,
|
|
15432
15463
|
minVisible,
|
|
15433
15464
|
maxVisible,
|
|
@@ -15537,7 +15568,7 @@ var DateTimePicker = ({
|
|
|
15537
15568
|
children: "clear"
|
|
15538
15569
|
}
|
|
15539
15570
|
),
|
|
15540
|
-
/* @__PURE__ */ jsx66(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ jsx66(Icon, { icon:
|
|
15571
|
+
/* @__PURE__ */ jsx66(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ jsx66(Icon, { icon: triggerIcon, iconColor: "currentColor" }) })
|
|
15541
15572
|
]
|
|
15542
15573
|
}
|
|
15543
15574
|
),
|
|
@@ -18129,39 +18160,323 @@ var ModalDialog = forwardRef15(
|
|
|
18129
18160
|
);
|
|
18130
18161
|
ModalDialog.displayName = "ModalDialog";
|
|
18131
18162
|
|
|
18163
|
+
// src/components/Objects/styles/ObjectGridContainer.styles.ts
|
|
18164
|
+
import { css as css78 } from "@emotion/react";
|
|
18165
|
+
var ObjectGridContainer = (gridCount) => css78`
|
|
18166
|
+
display: grid;
|
|
18167
|
+
grid-template-columns: repeat(${gridCount}, minmax(250px, 1fr));
|
|
18168
|
+
gap: var(--spacing-base);
|
|
18169
|
+
`;
|
|
18170
|
+
|
|
18171
|
+
// src/components/Objects/ObjectGridContainer.tsx
|
|
18172
|
+
import { jsx as jsx101 } from "@emotion/react/jsx-runtime";
|
|
18173
|
+
var ObjectGridContainer2 = ({ gridCount = 3, children }) => {
|
|
18174
|
+
return /* @__PURE__ */ jsx101("div", { "data-testid": "object-grid-container", css: ObjectGridContainer(gridCount), children });
|
|
18175
|
+
};
|
|
18176
|
+
|
|
18177
|
+
// src/components/Objects/styles/ObjectGridItem.styles.ts
|
|
18178
|
+
import { css as css79 } from "@emotion/react";
|
|
18179
|
+
var ObjectGridItem = css79`
|
|
18180
|
+
border: 1px solid var(--gray-300);
|
|
18181
|
+
border-radius: var(--rounded-base);
|
|
18182
|
+
background: var(--white);
|
|
18183
|
+
display: flex;
|
|
18184
|
+
flex-direction: column;
|
|
18185
|
+
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
18186
|
+
|
|
18187
|
+
&[aria-selected='true'] {
|
|
18188
|
+
border: 1px solid var(--accent-dark);
|
|
18189
|
+
}
|
|
18190
|
+
|
|
18191
|
+
&[aria-selected='false'] {
|
|
18192
|
+
&:hover {
|
|
18193
|
+
border: 1px solid var(--accent-dark);
|
|
18194
|
+
}
|
|
18195
|
+
}
|
|
18196
|
+
`;
|
|
18197
|
+
var ObjectGridItemMediaWrapper = css79`
|
|
18198
|
+
display: flex;
|
|
18199
|
+
flex: 1 1 0;
|
|
18200
|
+
position: relative;
|
|
18201
|
+
`;
|
|
18202
|
+
var ObjectGridItemContentWrapper = css79`
|
|
18203
|
+
padding: 0 var(--spacing-sm) var(--spacing-sm);
|
|
18204
|
+
min-height: 52px;
|
|
18205
|
+
`;
|
|
18206
|
+
var ObjectGridItemImage = css79`
|
|
18207
|
+
object-fit: cover;
|
|
18208
|
+
width: 100%;
|
|
18209
|
+
height: auto;
|
|
18210
|
+
`;
|
|
18211
|
+
var MenuBtn = css79`
|
|
18212
|
+
border: none;
|
|
18213
|
+
background: transparent;
|
|
18214
|
+
padding: var(--spacing-xs);
|
|
18215
|
+
color: var(--gray-300);
|
|
18216
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
18217
|
+
|
|
18218
|
+
&:focus,
|
|
18219
|
+
&:hover {
|
|
18220
|
+
outline: none;
|
|
18221
|
+
color: var(--gray-500);
|
|
18222
|
+
}
|
|
18223
|
+
`;
|
|
18224
|
+
|
|
18225
|
+
// src/components/Objects/ObjectGridItem.tsx
|
|
18226
|
+
import { jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
18227
|
+
var ObjectGridItem2 = ({
|
|
18228
|
+
header: header2,
|
|
18229
|
+
cover,
|
|
18230
|
+
rightSlot,
|
|
18231
|
+
menuItems,
|
|
18232
|
+
isSelected,
|
|
18233
|
+
children
|
|
18234
|
+
}) => {
|
|
18235
|
+
return /* @__PURE__ */ jsxs68("div", { css: ObjectGridItem, "aria-selected": isSelected, children: [
|
|
18236
|
+
/* @__PURE__ */ jsx102("div", { css: ObjectGridItemMediaWrapper, children: cover }),
|
|
18237
|
+
/* @__PURE__ */ jsxs68(HorizontalRhythm, { css: ObjectGridItemContentWrapper, justify: "space-between", gap: "sm", children: [
|
|
18238
|
+
/* @__PURE__ */ jsxs68(VerticalRhythm, { gap: "0", children: [
|
|
18239
|
+
/* @__PURE__ */ jsx102(HorizontalRhythm, { gap: "xs", align: "center", children: header2 }),
|
|
18240
|
+
children
|
|
18241
|
+
] }),
|
|
18242
|
+
/* @__PURE__ */ jsxs68(HorizontalRhythm, { gap: "xs", align: "flex-start", children: [
|
|
18243
|
+
rightSlot,
|
|
18244
|
+
menuItems ? /* @__PURE__ */ jsx102(
|
|
18245
|
+
Menu,
|
|
18246
|
+
{
|
|
18247
|
+
menuTrigger: (
|
|
18248
|
+
// TODO: once insights lands we should be able to replace this with MenuTrigger component
|
|
18249
|
+
/* @__PURE__ */ jsx102(
|
|
18250
|
+
"button",
|
|
18251
|
+
{
|
|
18252
|
+
type: "button",
|
|
18253
|
+
"data-testid": "object-grid-item-menu-btn",
|
|
18254
|
+
title: "menu options",
|
|
18255
|
+
css: MenuBtn,
|
|
18256
|
+
children: /* @__PURE__ */ jsx102(Icon, { icon: "more-alt", size: "1rem", iconColor: "currentColor" })
|
|
18257
|
+
}
|
|
18258
|
+
)
|
|
18259
|
+
),
|
|
18260
|
+
placement: "bottom-end",
|
|
18261
|
+
children: menuItems
|
|
18262
|
+
}
|
|
18263
|
+
) : null
|
|
18264
|
+
] })
|
|
18265
|
+
] })
|
|
18266
|
+
] });
|
|
18267
|
+
};
|
|
18268
|
+
|
|
18269
|
+
// src/components/Objects/styles/ObjectGridItemCardCover.styles.ts
|
|
18270
|
+
import { css as css80 } from "@emotion/react";
|
|
18271
|
+
var CoverImage = css80`
|
|
18272
|
+
aspect-ratio: 16/9;
|
|
18273
|
+
max-width: 100%;
|
|
18274
|
+
max-height: 100%;
|
|
18275
|
+
height: auto;
|
|
18276
|
+
padding: var(--spacing-sm);
|
|
18277
|
+
`;
|
|
18278
|
+
var CoverIconWrapper = css80`
|
|
18279
|
+
position: relative;
|
|
18280
|
+
display: flex;
|
|
18281
|
+
align-items: center;
|
|
18282
|
+
justify-content: center;
|
|
18283
|
+
flex: 1;
|
|
18284
|
+
overflow: hidden;
|
|
18285
|
+
`;
|
|
18286
|
+
var CoverIconGhost = css80`
|
|
18287
|
+
position: absolute;
|
|
18288
|
+
width: 60%;
|
|
18289
|
+
height: auto;
|
|
18290
|
+
aspect-ratio: 1;
|
|
18291
|
+
opacity: 0.05;
|
|
18292
|
+
transform: rotateZ(-15deg) translate(35%, 30%);
|
|
18293
|
+
`;
|
|
18294
|
+
var CoverSlot = css80`
|
|
18295
|
+
align-items: center;
|
|
18296
|
+
background: var(--white);
|
|
18297
|
+
display: flex;
|
|
18298
|
+
justify-content: center;
|
|
18299
|
+
position: absolute;
|
|
18300
|
+
top: var(--spacing-sm);
|
|
18301
|
+
z-index: 1;
|
|
18302
|
+
width: 24px;
|
|
18303
|
+
height: 24px;
|
|
18304
|
+
`;
|
|
18305
|
+
var CoverSlotLeft = css80`
|
|
18306
|
+
border-bottom-right-radius: var(--rounded-base);
|
|
18307
|
+
left: var(--spacing-sm);
|
|
18308
|
+
`;
|
|
18309
|
+
var CoverSlotRight = css80`
|
|
18310
|
+
border-bottom-left-radius: var(--rounded-base);
|
|
18311
|
+
right: var(--spacing-sm);
|
|
18312
|
+
`;
|
|
18313
|
+
var CoverButton = css80`
|
|
18314
|
+
align-items: stretch;
|
|
18315
|
+
border: none;
|
|
18316
|
+
background: none;
|
|
18317
|
+
display: flex;
|
|
18318
|
+
flex: 1 1 0;
|
|
18319
|
+
padding: 0;
|
|
18320
|
+
|
|
18321
|
+
&:focus,
|
|
18322
|
+
&:hover {
|
|
18323
|
+
outline: none;
|
|
18324
|
+
}
|
|
18325
|
+
`;
|
|
18326
|
+
var CoverSelectedChip = css80`
|
|
18327
|
+
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
18328
|
+
opacity: 0;
|
|
18329
|
+
position: absolute;
|
|
18330
|
+
bottom: var(--spacing-base);
|
|
18331
|
+
right: var(--spacing-base);
|
|
18332
|
+
`;
|
|
18333
|
+
|
|
18334
|
+
// src/components/Objects/ObjectGridItemCardCover.tsx
|
|
18335
|
+
import { Fragment as Fragment14, jsx as jsx103, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
18336
|
+
var ObjectGridItemCardCover = (props) => {
|
|
18337
|
+
if ("imageUrl" in props && props.imageUrl) {
|
|
18338
|
+
const { imageUrl } = props;
|
|
18339
|
+
return /* @__PURE__ */ jsx103(
|
|
18340
|
+
"img",
|
|
18341
|
+
{
|
|
18342
|
+
src: imageUrl,
|
|
18343
|
+
css: CoverImage,
|
|
18344
|
+
loading: "lazy",
|
|
18345
|
+
role: "presentation",
|
|
18346
|
+
"data-testid": "object-grid-item-thumbnail"
|
|
18347
|
+
}
|
|
18348
|
+
);
|
|
18349
|
+
}
|
|
18350
|
+
if ("icon" in props && props.icon) {
|
|
18351
|
+
const { icon } = props;
|
|
18352
|
+
return /* @__PURE__ */ jsxs69("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", children: [
|
|
18353
|
+
/* @__PURE__ */ jsx103(Icon, { icon, iconColor: "currentColor", css: CoverIconGhost }),
|
|
18354
|
+
/* @__PURE__ */ jsx103(Icon, { icon, iconColor: "currentColor", size: 48 })
|
|
18355
|
+
] });
|
|
18356
|
+
}
|
|
18357
|
+
};
|
|
18358
|
+
var ObjectGridItemCover = ({
|
|
18359
|
+
coverSlotLeft,
|
|
18360
|
+
coverSlotRight,
|
|
18361
|
+
...props
|
|
18362
|
+
}) => {
|
|
18363
|
+
return /* @__PURE__ */ jsxs69(Fragment14, { children: [
|
|
18364
|
+
coverSlotLeft ? /* @__PURE__ */ jsx103("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
|
|
18365
|
+
/* @__PURE__ */ jsx103(ObjectGridItemCardCover, { ...props }),
|
|
18366
|
+
coverSlotRight ? /* @__PURE__ */ jsx103("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null
|
|
18367
|
+
] });
|
|
18368
|
+
};
|
|
18369
|
+
var ObjectGridItemCoverButton = ({
|
|
18370
|
+
id,
|
|
18371
|
+
isSelected,
|
|
18372
|
+
onSelection,
|
|
18373
|
+
coverSlotLeft,
|
|
18374
|
+
coverSlotRight,
|
|
18375
|
+
selectedText = "selected",
|
|
18376
|
+
...props
|
|
18377
|
+
}) => {
|
|
18378
|
+
return /* @__PURE__ */ jsxs69("button", { type: "button", css: CoverButton, onClick: () => onSelection(id), "aria-selected": isSelected, children: [
|
|
18379
|
+
coverSlotLeft ? /* @__PURE__ */ jsx103("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
|
|
18380
|
+
/* @__PURE__ */ jsx103(ObjectGridItemCardCover, { ...props }),
|
|
18381
|
+
coverSlotRight ? /* @__PURE__ */ jsx103("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null,
|
|
18382
|
+
isSelected ? /* @__PURE__ */ jsx103("div", { css: CoverSelectedChip, children: /* @__PURE__ */ jsx103(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) : null
|
|
18383
|
+
] });
|
|
18384
|
+
};
|
|
18385
|
+
|
|
18386
|
+
// src/components/Objects/ObjectGridItemHeading.tsx
|
|
18387
|
+
import { useEffect as useEffect14, useRef as useRef8, useState as useState12 } from "react";
|
|
18388
|
+
|
|
18389
|
+
// src/components/Objects/styles/ObjectGridItemHeading.styles.ts
|
|
18390
|
+
import { css as css81 } from "@emotion/react";
|
|
18391
|
+
var ObjectGridItemHeading = css81`
|
|
18392
|
+
overflow: hidden;
|
|
18393
|
+
text-overflow: ellipsis;
|
|
18394
|
+
white-space: initial;
|
|
18395
|
+
display: -webkit-box;
|
|
18396
|
+
-webkit-line-clamp: 1;
|
|
18397
|
+
-webkit-box-orient: vertical;
|
|
18398
|
+
`;
|
|
18399
|
+
var PopoverContent = css81`
|
|
18400
|
+
min-width: 50px;
|
|
18401
|
+
`;
|
|
18402
|
+
|
|
18403
|
+
// src/components/Objects/ObjectGridItemHeading.tsx
|
|
18404
|
+
import { jsx as jsx104, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18405
|
+
var ObjectGridItemHeading2 = ({
|
|
18406
|
+
heading,
|
|
18407
|
+
beforeHeadingSlot,
|
|
18408
|
+
afterHeadingSlot
|
|
18409
|
+
}) => {
|
|
18410
|
+
const [hasTruncation, setHasTruncation] = useState12(false);
|
|
18411
|
+
const headingRef = useRef8(null);
|
|
18412
|
+
useEffect14(() => {
|
|
18413
|
+
const currentHeading = headingRef.current;
|
|
18414
|
+
const observer = new ResizeObserver((entries) => {
|
|
18415
|
+
for (const entry of entries) {
|
|
18416
|
+
const isHeadingTruncated = entry.target.scrollHeight > entry.target.clientHeight;
|
|
18417
|
+
setHasTruncation(isHeadingTruncated);
|
|
18418
|
+
}
|
|
18419
|
+
});
|
|
18420
|
+
if (currentHeading) {
|
|
18421
|
+
observer.observe(currentHeading);
|
|
18422
|
+
}
|
|
18423
|
+
return () => {
|
|
18424
|
+
if (currentHeading) {
|
|
18425
|
+
observer.unobserve(currentHeading);
|
|
18426
|
+
}
|
|
18427
|
+
};
|
|
18428
|
+
}, []);
|
|
18429
|
+
return /* @__PURE__ */ jsxs70(HorizontalRhythm, { align: "center", gap: "xs", children: [
|
|
18430
|
+
beforeHeadingSlot,
|
|
18431
|
+
/* @__PURE__ */ jsx104(Tooltip, { title: hasTruncation ? heading : "", children: /* @__PURE__ */ jsx104("div", { role: "heading", css: ObjectGridItemHeading, ref: headingRef, children: heading }) }),
|
|
18432
|
+
afterHeadingSlot
|
|
18433
|
+
] });
|
|
18434
|
+
};
|
|
18435
|
+
|
|
18436
|
+
// src/components/Objects/ObjectGridItemIconWithTooltip.tsx
|
|
18437
|
+
import { jsx as jsx105 } from "@emotion/react/jsx-runtime";
|
|
18438
|
+
var ObjectGridItemIconWithTooltip = ({
|
|
18439
|
+
tooltipTitle,
|
|
18440
|
+
placement = "bottom-start",
|
|
18441
|
+
icon,
|
|
18442
|
+
iconColor = "accent-dark"
|
|
18443
|
+
}) => {
|
|
18444
|
+
return /* @__PURE__ */ jsx105(Tooltip, { title: tooltipTitle, placement, children: /* @__PURE__ */ jsx105("span", { children: /* @__PURE__ */ jsx105(Icon, { icon, iconColor, size: "1rem" }) }) });
|
|
18445
|
+
};
|
|
18446
|
+
|
|
18132
18447
|
// src/components/Pagination/Pagination.tsx
|
|
18133
18448
|
import Paginate from "react-paginate";
|
|
18134
18449
|
|
|
18135
18450
|
// src/components/Pagination/Pagniation.styles.ts
|
|
18136
|
-
import { css as
|
|
18137
|
-
var container2 =
|
|
18451
|
+
import { css as css82 } from "@emotion/css";
|
|
18452
|
+
var container2 = css82`
|
|
18138
18453
|
align-items: center;
|
|
18139
18454
|
display: flex;
|
|
18140
18455
|
`;
|
|
18141
|
-
var disabled =
|
|
18456
|
+
var disabled = css82`
|
|
18142
18457
|
opacity: var(--opacity-50);
|
|
18143
18458
|
`;
|
|
18144
|
-
var disabledLink =
|
|
18459
|
+
var disabledLink = css82`
|
|
18145
18460
|
cursor: pointer-default;
|
|
18146
18461
|
`;
|
|
18147
|
-
var pageLink =
|
|
18462
|
+
var pageLink = css82`
|
|
18148
18463
|
display: block;
|
|
18149
18464
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
18150
18465
|
`;
|
|
18151
|
-
var prevNextControls =
|
|
18466
|
+
var prevNextControls = css82`
|
|
18152
18467
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
18153
18468
|
`;
|
|
18154
|
-
var active =
|
|
18469
|
+
var active = css82`
|
|
18155
18470
|
border-radius: var(--rounded-base);
|
|
18156
18471
|
background: var(--gray-200);
|
|
18157
18472
|
`;
|
|
18158
|
-
var page =
|
|
18473
|
+
var page = css82`
|
|
18159
18474
|
margin-left: var(--spacing-xs);
|
|
18160
18475
|
margin-right: var(--spacing-xs);
|
|
18161
18476
|
`;
|
|
18162
18477
|
|
|
18163
18478
|
// src/components/Pagination/Pagination.tsx
|
|
18164
|
-
import { jsx as
|
|
18479
|
+
import { jsx as jsx106 } from "@emotion/react/jsx-runtime";
|
|
18165
18480
|
function Pagination({
|
|
18166
18481
|
limit,
|
|
18167
18482
|
offset,
|
|
@@ -18176,12 +18491,12 @@ function Pagination({
|
|
|
18176
18491
|
if (pageCount <= 1) {
|
|
18177
18492
|
return null;
|
|
18178
18493
|
}
|
|
18179
|
-
return /* @__PURE__ */
|
|
18494
|
+
return /* @__PURE__ */ jsx106(
|
|
18180
18495
|
Paginate,
|
|
18181
18496
|
{
|
|
18182
18497
|
forcePage: currentPage,
|
|
18183
|
-
previousLabel: /* @__PURE__ */
|
|
18184
|
-
nextLabel: /* @__PURE__ */
|
|
18498
|
+
previousLabel: /* @__PURE__ */ jsx106("div", { className: prevNextControls, children: "<" }),
|
|
18499
|
+
nextLabel: /* @__PURE__ */ jsx106("div", { className: prevNextControls, children: ">" }),
|
|
18185
18500
|
breakLabel: "...",
|
|
18186
18501
|
pageCount,
|
|
18187
18502
|
marginPagesDisplayed: 2,
|
|
@@ -18221,8 +18536,8 @@ var useParameterShell = () => {
|
|
|
18221
18536
|
};
|
|
18222
18537
|
|
|
18223
18538
|
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
18224
|
-
import { css as
|
|
18225
|
-
var inputIconBtn =
|
|
18539
|
+
import { css as css83 } from "@emotion/react";
|
|
18540
|
+
var inputIconBtn = css83`
|
|
18226
18541
|
align-items: center;
|
|
18227
18542
|
border: none;
|
|
18228
18543
|
border-radius: var(--rounded-base);
|
|
@@ -18248,7 +18563,7 @@ var inputIconBtn = css79`
|
|
|
18248
18563
|
`;
|
|
18249
18564
|
|
|
18250
18565
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
18251
|
-
import { jsx as
|
|
18566
|
+
import { jsx as jsx107, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18252
18567
|
var LabelLeadingIcon = ({
|
|
18253
18568
|
icon,
|
|
18254
18569
|
iconColor,
|
|
@@ -18260,7 +18575,7 @@ var LabelLeadingIcon = ({
|
|
|
18260
18575
|
...props
|
|
18261
18576
|
}) => {
|
|
18262
18577
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
18263
|
-
return /* @__PURE__ */
|
|
18578
|
+
return /* @__PURE__ */ jsx107(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs71(
|
|
18264
18579
|
"button",
|
|
18265
18580
|
{
|
|
18266
18581
|
css: inputIconBtn,
|
|
@@ -18270,7 +18585,7 @@ var LabelLeadingIcon = ({
|
|
|
18270
18585
|
...props,
|
|
18271
18586
|
"data-testid": "lock-button",
|
|
18272
18587
|
children: [
|
|
18273
|
-
/* @__PURE__ */
|
|
18588
|
+
/* @__PURE__ */ jsx107(
|
|
18274
18589
|
Icon,
|
|
18275
18590
|
{
|
|
18276
18591
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -18286,8 +18601,8 @@ var LabelLeadingIcon = ({
|
|
|
18286
18601
|
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
18287
18602
|
|
|
18288
18603
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
18289
|
-
import { css as
|
|
18290
|
-
var inputContainer2 =
|
|
18604
|
+
import { css as css84 } from "@emotion/react";
|
|
18605
|
+
var inputContainer2 = css84`
|
|
18291
18606
|
position: relative;
|
|
18292
18607
|
scroll-margin: var(--spacing-2xl);
|
|
18293
18608
|
|
|
@@ -18300,14 +18615,14 @@ var inputContainer2 = css80`
|
|
|
18300
18615
|
}
|
|
18301
18616
|
}
|
|
18302
18617
|
`;
|
|
18303
|
-
var labelText2 =
|
|
18618
|
+
var labelText2 = css84`
|
|
18304
18619
|
align-items: center;
|
|
18305
18620
|
display: flex;
|
|
18306
18621
|
gap: var(--spacing-xs);
|
|
18307
18622
|
font-weight: var(--fw-regular);
|
|
18308
18623
|
margin: 0 0 var(--spacing-xs);
|
|
18309
18624
|
`;
|
|
18310
|
-
var input3 =
|
|
18625
|
+
var input3 = css84`
|
|
18311
18626
|
display: block;
|
|
18312
18627
|
appearance: none;
|
|
18313
18628
|
box-sizing: border-box;
|
|
@@ -18355,18 +18670,18 @@ var input3 = css80`
|
|
|
18355
18670
|
color: var(--gray-400);
|
|
18356
18671
|
}
|
|
18357
18672
|
`;
|
|
18358
|
-
var selectInput =
|
|
18673
|
+
var selectInput = css84`
|
|
18359
18674
|
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");
|
|
18360
18675
|
background-position: right var(--spacing-sm) center;
|
|
18361
18676
|
background-repeat: no-repeat;
|
|
18362
18677
|
background-size: 1rem;
|
|
18363
18678
|
padding-right: var(--spacing-xl);
|
|
18364
18679
|
`;
|
|
18365
|
-
var inputWrapper =
|
|
18680
|
+
var inputWrapper = css84`
|
|
18366
18681
|
display: flex; // used to correct overflow with chrome textarea
|
|
18367
18682
|
position: relative;
|
|
18368
18683
|
`;
|
|
18369
|
-
var inputIcon2 =
|
|
18684
|
+
var inputIcon2 = css84`
|
|
18370
18685
|
align-items: center;
|
|
18371
18686
|
background: var(--white);
|
|
18372
18687
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -18382,7 +18697,7 @@ var inputIcon2 = css80`
|
|
|
18382
18697
|
width: var(--spacing-lg);
|
|
18383
18698
|
z-index: var(--z-10);
|
|
18384
18699
|
`;
|
|
18385
|
-
var inputToggleLabel2 =
|
|
18700
|
+
var inputToggleLabel2 = css84`
|
|
18386
18701
|
--inline-label-color: var(--typography-base);
|
|
18387
18702
|
align-items: center;
|
|
18388
18703
|
cursor: pointer;
|
|
@@ -18397,7 +18712,7 @@ var inputToggleLabel2 = css80`
|
|
|
18397
18712
|
--inline-label-color: var(--gray-400);
|
|
18398
18713
|
}
|
|
18399
18714
|
`;
|
|
18400
|
-
var toggleInput2 =
|
|
18715
|
+
var toggleInput2 = css84`
|
|
18401
18716
|
appearance: none;
|
|
18402
18717
|
border: 1px solid var(--gray-200);
|
|
18403
18718
|
background: var(--white);
|
|
@@ -18450,7 +18765,7 @@ var toggleInput2 = css80`
|
|
|
18450
18765
|
border-color: var(--gray-300);
|
|
18451
18766
|
}
|
|
18452
18767
|
`;
|
|
18453
|
-
var inlineLabel2 =
|
|
18768
|
+
var inlineLabel2 = css84`
|
|
18454
18769
|
color: var(--inline-label-color);
|
|
18455
18770
|
padding-left: var(--spacing-md);
|
|
18456
18771
|
font-size: var(--fs-sm);
|
|
@@ -18467,7 +18782,7 @@ var inlineLabel2 = css80`
|
|
|
18467
18782
|
}
|
|
18468
18783
|
}
|
|
18469
18784
|
`;
|
|
18470
|
-
var inputMenu =
|
|
18785
|
+
var inputMenu = css84`
|
|
18471
18786
|
background: none;
|
|
18472
18787
|
border: none;
|
|
18473
18788
|
padding: var(--spacing-2xs);
|
|
@@ -18475,10 +18790,10 @@ var inputMenu = css80`
|
|
|
18475
18790
|
top: calc(var(--spacing-md) * -1.2);
|
|
18476
18791
|
right: 0;
|
|
18477
18792
|
`;
|
|
18478
|
-
var inputActionItems =
|
|
18793
|
+
var inputActionItems = css84`
|
|
18479
18794
|
display: flex;
|
|
18480
18795
|
`;
|
|
18481
|
-
var inputMenuHover =
|
|
18796
|
+
var inputMenuHover = css84`
|
|
18482
18797
|
opacity: var(--opacity-50);
|
|
18483
18798
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
18484
18799
|
|
|
@@ -18488,11 +18803,11 @@ var inputMenuHover = css80`
|
|
|
18488
18803
|
background-color: var(--gray-200);
|
|
18489
18804
|
}
|
|
18490
18805
|
`;
|
|
18491
|
-
var textarea2 =
|
|
18806
|
+
var textarea2 = css84`
|
|
18492
18807
|
resize: vertical;
|
|
18493
18808
|
min-height: 2rem;
|
|
18494
18809
|
`;
|
|
18495
|
-
var dataConnectButton =
|
|
18810
|
+
var dataConnectButton = css84`
|
|
18496
18811
|
align-items: center;
|
|
18497
18812
|
appearance: none;
|
|
18498
18813
|
box-sizing: border-box;
|
|
@@ -18527,7 +18842,7 @@ var dataConnectButton = css80`
|
|
|
18527
18842
|
pointer-events: none;
|
|
18528
18843
|
}
|
|
18529
18844
|
`;
|
|
18530
|
-
var linkParameterBtn =
|
|
18845
|
+
var linkParameterBtn = css84`
|
|
18531
18846
|
border-radius: var(--rounded-base);
|
|
18532
18847
|
background: transparent;
|
|
18533
18848
|
border: none;
|
|
@@ -18536,7 +18851,7 @@ var linkParameterBtn = css80`
|
|
|
18536
18851
|
font-size: var(--fs-sm);
|
|
18537
18852
|
line-height: 1;
|
|
18538
18853
|
`;
|
|
18539
|
-
var linkParameterControls =
|
|
18854
|
+
var linkParameterControls = css84`
|
|
18540
18855
|
position: absolute;
|
|
18541
18856
|
inset: 0 0 0 auto;
|
|
18542
18857
|
padding: 0 var(--spacing-base);
|
|
@@ -18545,7 +18860,7 @@ var linkParameterControls = css80`
|
|
|
18545
18860
|
justify-content: center;
|
|
18546
18861
|
gap: var(--spacing-base);
|
|
18547
18862
|
`;
|
|
18548
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
18863
|
+
var linkParameterInput = (withExternalLinkIcon) => css84`
|
|
18549
18864
|
padding-right: calc(
|
|
18550
18865
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
18551
18866
|
var(--spacing-base)
|
|
@@ -18558,7 +18873,7 @@ var linkParameterInput = (withExternalLinkIcon) => css80`
|
|
|
18558
18873
|
}
|
|
18559
18874
|
}
|
|
18560
18875
|
`;
|
|
18561
|
-
var linkParameterIcon =
|
|
18876
|
+
var linkParameterIcon = css84`
|
|
18562
18877
|
align-items: center;
|
|
18563
18878
|
color: var(--brand-secondary-3);
|
|
18564
18879
|
display: flex;
|
|
@@ -18573,7 +18888,7 @@ var linkParameterIcon = css80`
|
|
|
18573
18888
|
`;
|
|
18574
18889
|
|
|
18575
18890
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
18576
|
-
import { jsx as
|
|
18891
|
+
import { jsx as jsx108, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18577
18892
|
function ParameterDataResource({
|
|
18578
18893
|
label,
|
|
18579
18894
|
labelLeadingIcon,
|
|
@@ -18583,12 +18898,12 @@ function ParameterDataResource({
|
|
|
18583
18898
|
disabled: disabled2,
|
|
18584
18899
|
children
|
|
18585
18900
|
}) {
|
|
18586
|
-
return /* @__PURE__ */
|
|
18587
|
-
/* @__PURE__ */
|
|
18901
|
+
return /* @__PURE__ */ jsxs72("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
18902
|
+
/* @__PURE__ */ jsxs72("span", { css: labelText2, children: [
|
|
18588
18903
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
18589
18904
|
label
|
|
18590
18905
|
] }),
|
|
18591
|
-
/* @__PURE__ */
|
|
18906
|
+
/* @__PURE__ */ jsxs72(
|
|
18592
18907
|
"button",
|
|
18593
18908
|
{
|
|
18594
18909
|
type: "button",
|
|
@@ -18597,30 +18912,30 @@ function ParameterDataResource({
|
|
|
18597
18912
|
disabled: disabled2,
|
|
18598
18913
|
onClick: onConnectDatasource,
|
|
18599
18914
|
children: [
|
|
18600
|
-
/* @__PURE__ */
|
|
18915
|
+
/* @__PURE__ */ jsx108("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx108(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
18601
18916
|
children
|
|
18602
18917
|
]
|
|
18603
18918
|
}
|
|
18604
18919
|
),
|
|
18605
|
-
caption ? /* @__PURE__ */
|
|
18920
|
+
caption ? /* @__PURE__ */ jsx108(Caption, { children: caption }) : null
|
|
18606
18921
|
] });
|
|
18607
18922
|
}
|
|
18608
18923
|
|
|
18609
18924
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
18610
|
-
import { css as
|
|
18611
|
-
var ParameterDrawerHeaderContainer =
|
|
18925
|
+
import { css as css85 } from "@emotion/react";
|
|
18926
|
+
var ParameterDrawerHeaderContainer = css85`
|
|
18612
18927
|
align-items: center;
|
|
18613
18928
|
display: flex;
|
|
18614
18929
|
gap: var(--spacing-base);
|
|
18615
18930
|
justify-content: space-between;
|
|
18616
18931
|
margin-bottom: var(--spacing-sm);
|
|
18617
18932
|
`;
|
|
18618
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
18933
|
+
var ParameterDrawerHeaderTitleGroup = css85`
|
|
18619
18934
|
align-items: center;
|
|
18620
18935
|
display: flex;
|
|
18621
18936
|
gap: var(--spacing-sm);
|
|
18622
18937
|
`;
|
|
18623
|
-
var ParameterDrawerHeaderTitle =
|
|
18938
|
+
var ParameterDrawerHeaderTitle = css85`
|
|
18624
18939
|
text-overflow: ellipsis;
|
|
18625
18940
|
white-space: nowrap;
|
|
18626
18941
|
overflow: hidden;
|
|
@@ -18628,12 +18943,12 @@ var ParameterDrawerHeaderTitle = css81`
|
|
|
18628
18943
|
`;
|
|
18629
18944
|
|
|
18630
18945
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
18631
|
-
import { jsx as
|
|
18946
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18632
18947
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
18633
|
-
return /* @__PURE__ */
|
|
18634
|
-
/* @__PURE__ */
|
|
18948
|
+
return /* @__PURE__ */ jsxs73("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
18949
|
+
/* @__PURE__ */ jsxs73("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
18635
18950
|
iconBeforeTitle,
|
|
18636
|
-
/* @__PURE__ */
|
|
18951
|
+
/* @__PURE__ */ jsx109(Heading2, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
18637
18952
|
] }),
|
|
18638
18953
|
children
|
|
18639
18954
|
] });
|
|
@@ -18643,8 +18958,8 @@ var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
|
18643
18958
|
import { forwardRef as forwardRef16 } from "react";
|
|
18644
18959
|
|
|
18645
18960
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
18646
|
-
import { css as
|
|
18647
|
-
var fieldsetStyles =
|
|
18961
|
+
import { css as css86 } from "@emotion/react";
|
|
18962
|
+
var fieldsetStyles = css86`
|
|
18648
18963
|
&:disabled,
|
|
18649
18964
|
[readonly] {
|
|
18650
18965
|
pointer-events: none;
|
|
@@ -18655,7 +18970,7 @@ var fieldsetStyles = css82`
|
|
|
18655
18970
|
}
|
|
18656
18971
|
}
|
|
18657
18972
|
`;
|
|
18658
|
-
var fieldsetLegend2 =
|
|
18973
|
+
var fieldsetLegend2 = css86`
|
|
18659
18974
|
display: block;
|
|
18660
18975
|
font-weight: var(--fw-medium);
|
|
18661
18976
|
margin-bottom: var(--spacing-sm);
|
|
@@ -18663,11 +18978,11 @@ var fieldsetLegend2 = css82`
|
|
|
18663
18978
|
`;
|
|
18664
18979
|
|
|
18665
18980
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
18666
|
-
import { jsx as
|
|
18981
|
+
import { jsx as jsx110, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18667
18982
|
var ParameterGroup = forwardRef16(
|
|
18668
18983
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
18669
|
-
return /* @__PURE__ */
|
|
18670
|
-
/* @__PURE__ */
|
|
18984
|
+
return /* @__PURE__ */ jsxs74("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
18985
|
+
/* @__PURE__ */ jsx110("legend", { css: fieldsetLegend2, children: legend }),
|
|
18671
18986
|
children
|
|
18672
18987
|
] });
|
|
18673
18988
|
}
|
|
@@ -18677,19 +18992,19 @@ var ParameterGroup = forwardRef16(
|
|
|
18677
18992
|
import { forwardRef as forwardRef18, useDeferredValue } from "react";
|
|
18678
18993
|
|
|
18679
18994
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
18680
|
-
import { useState as
|
|
18995
|
+
import { useState as useState13 } from "react";
|
|
18681
18996
|
import { createPortal as createPortal2 } from "react-dom";
|
|
18682
18997
|
|
|
18683
18998
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
18684
|
-
import { css as
|
|
18685
|
-
var previewWrapper =
|
|
18999
|
+
import { css as css87 } from "@emotion/react";
|
|
19000
|
+
var previewWrapper = css87`
|
|
18686
19001
|
margin-top: var(--spacing-xs);
|
|
18687
19002
|
background: var(--gray-50);
|
|
18688
19003
|
padding: var(--spacing-sm);
|
|
18689
19004
|
border: solid 1px var(--gray-300);
|
|
18690
19005
|
border-radius: var(--rounded-sm);
|
|
18691
19006
|
`;
|
|
18692
|
-
var previewLink =
|
|
19007
|
+
var previewLink = css87`
|
|
18693
19008
|
display: block;
|
|
18694
19009
|
width: 100%;
|
|
18695
19010
|
|
|
@@ -18697,7 +19012,7 @@ var previewLink = css83`
|
|
|
18697
19012
|
max-height: 9rem;
|
|
18698
19013
|
}
|
|
18699
19014
|
`;
|
|
18700
|
-
var previewModalWrapper =
|
|
19015
|
+
var previewModalWrapper = css87`
|
|
18701
19016
|
background: var(--gray-50);
|
|
18702
19017
|
display: flex;
|
|
18703
19018
|
height: 100%;
|
|
@@ -18706,7 +19021,7 @@ var previewModalWrapper = css83`
|
|
|
18706
19021
|
border: solid 1px var(--gray-300);
|
|
18707
19022
|
border-radius: var(--rounded-sm);
|
|
18708
19023
|
`;
|
|
18709
|
-
var previewModalImage =
|
|
19024
|
+
var previewModalImage = css87`
|
|
18710
19025
|
display: flex;
|
|
18711
19026
|
height: 100%;
|
|
18712
19027
|
width: 100%;
|
|
@@ -18718,32 +19033,32 @@ var previewModalImage = css83`
|
|
|
18718
19033
|
`;
|
|
18719
19034
|
|
|
18720
19035
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
18721
|
-
import { Fragment as
|
|
19036
|
+
import { Fragment as Fragment15, jsx as jsx111, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
18722
19037
|
function ParameterImagePreview({ imageSrc }) {
|
|
18723
|
-
const [showModal, setShowModal] =
|
|
18724
|
-
return imageSrc ? /* @__PURE__ */
|
|
18725
|
-
/* @__PURE__ */
|
|
18726
|
-
/* @__PURE__ */
|
|
19038
|
+
const [showModal, setShowModal] = useState13(false);
|
|
19039
|
+
return imageSrc ? /* @__PURE__ */ jsxs75("div", { css: previewWrapper, children: [
|
|
19040
|
+
/* @__PURE__ */ jsx111(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
19041
|
+
/* @__PURE__ */ jsx111(
|
|
18727
19042
|
"button",
|
|
18728
19043
|
{
|
|
18729
19044
|
css: previewLink,
|
|
18730
19045
|
onClick: () => {
|
|
18731
19046
|
setShowModal(true);
|
|
18732
19047
|
},
|
|
18733
|
-
children: /* @__PURE__ */
|
|
19048
|
+
children: /* @__PURE__ */ jsx111(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
18734
19049
|
}
|
|
18735
19050
|
)
|
|
18736
19051
|
] }) : null;
|
|
18737
19052
|
}
|
|
18738
19053
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
18739
|
-
return open ? /* @__PURE__ */
|
|
18740
|
-
/* @__PURE__ */
|
|
19054
|
+
return open ? /* @__PURE__ */ jsx111(Fragment15, { children: createPortal2(
|
|
19055
|
+
/* @__PURE__ */ jsx111(
|
|
18741
19056
|
Modal,
|
|
18742
19057
|
{
|
|
18743
19058
|
header: "Image Preview",
|
|
18744
19059
|
onRequestClose,
|
|
18745
|
-
buttonGroup: /* @__PURE__ */
|
|
18746
|
-
children: /* @__PURE__ */
|
|
19060
|
+
buttonGroup: /* @__PURE__ */ jsx111(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
19061
|
+
children: /* @__PURE__ */ jsx111("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx111(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
18747
19062
|
}
|
|
18748
19063
|
),
|
|
18749
19064
|
document.body
|
|
@@ -18751,25 +19066,25 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
18751
19066
|
};
|
|
18752
19067
|
|
|
18753
19068
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
18754
|
-
import { css as
|
|
18755
|
-
import { useState as
|
|
19069
|
+
import { css as css89 } from "@emotion/react";
|
|
19070
|
+
import { useState as useState14 } from "react";
|
|
18756
19071
|
|
|
18757
19072
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
18758
|
-
import { jsx as
|
|
19073
|
+
import { jsx as jsx112 } from "@emotion/react/jsx-runtime";
|
|
18759
19074
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
18760
|
-
return !asSpan ? /* @__PURE__ */
|
|
19075
|
+
return !asSpan ? /* @__PURE__ */ jsx112("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx112("span", { "aria-labelledby": id, css: labelText2, children });
|
|
18761
19076
|
};
|
|
18762
19077
|
|
|
18763
19078
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
18764
19079
|
import { forwardRef as forwardRef17 } from "react";
|
|
18765
|
-
import { jsx as
|
|
19080
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
18766
19081
|
var ParameterMenuButton = forwardRef17(
|
|
18767
19082
|
({ label, children }, ref) => {
|
|
18768
|
-
return /* @__PURE__ */
|
|
19083
|
+
return /* @__PURE__ */ jsx113(
|
|
18769
19084
|
Menu,
|
|
18770
19085
|
{
|
|
18771
19086
|
menuLabel: `${label} menu`,
|
|
18772
|
-
menuTrigger: /* @__PURE__ */
|
|
19087
|
+
menuTrigger: /* @__PURE__ */ jsx113(
|
|
18773
19088
|
"button",
|
|
18774
19089
|
{
|
|
18775
19090
|
className: "parameter-menu",
|
|
@@ -18777,7 +19092,7 @@ var ParameterMenuButton = forwardRef17(
|
|
|
18777
19092
|
type: "button",
|
|
18778
19093
|
"aria-label": `${label} options`,
|
|
18779
19094
|
ref,
|
|
18780
|
-
children: /* @__PURE__ */
|
|
19095
|
+
children: /* @__PURE__ */ jsx113(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
18781
19096
|
}
|
|
18782
19097
|
),
|
|
18783
19098
|
children
|
|
@@ -18787,14 +19102,14 @@ var ParameterMenuButton = forwardRef17(
|
|
|
18787
19102
|
);
|
|
18788
19103
|
|
|
18789
19104
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
18790
|
-
import { css as
|
|
18791
|
-
var emptyParameterShell =
|
|
19105
|
+
import { css as css88 } from "@emotion/react";
|
|
19106
|
+
var emptyParameterShell = css88`
|
|
18792
19107
|
border-radius: var(--rounded-sm);
|
|
18793
19108
|
flex-grow: 1;
|
|
18794
19109
|
position: relative;
|
|
18795
19110
|
max-width: 100%;
|
|
18796
19111
|
`;
|
|
18797
|
-
var emptyParameterShellText =
|
|
19112
|
+
var emptyParameterShellText = css88`
|
|
18798
19113
|
background: var(--brand-secondary-6);
|
|
18799
19114
|
border-radius: var(--rounded-sm);
|
|
18800
19115
|
padding: var(--spacing-sm);
|
|
@@ -18802,7 +19117,7 @@ var emptyParameterShellText = css84`
|
|
|
18802
19117
|
font-size: var(--fs-sm);
|
|
18803
19118
|
margin: 0;
|
|
18804
19119
|
`;
|
|
18805
|
-
var overrideMarker =
|
|
19120
|
+
var overrideMarker = css88`
|
|
18806
19121
|
border-radius: var(--rounded-sm);
|
|
18807
19122
|
border: 10px solid var(--gray-300);
|
|
18808
19123
|
border-left-color: transparent;
|
|
@@ -18813,7 +19128,7 @@ var overrideMarker = css84`
|
|
|
18813
19128
|
`;
|
|
18814
19129
|
|
|
18815
19130
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
18816
|
-
import { jsx as
|
|
19131
|
+
import { jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
18817
19132
|
var extractParameterProps = (props) => {
|
|
18818
19133
|
const {
|
|
18819
19134
|
id,
|
|
@@ -18873,36 +19188,36 @@ var ParameterShell = ({
|
|
|
18873
19188
|
isParameterGroup = false,
|
|
18874
19189
|
...props
|
|
18875
19190
|
}) => {
|
|
18876
|
-
const [manualErrorMessage, setManualErrorMessage] =
|
|
19191
|
+
const [manualErrorMessage, setManualErrorMessage] = useState14(void 0);
|
|
18877
19192
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
18878
19193
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
18879
|
-
return /* @__PURE__ */
|
|
18880
|
-
hiddenLabel || title2 ? null : /* @__PURE__ */
|
|
19194
|
+
return /* @__PURE__ */ jsxs76("div", { css: inputContainer2, ...props, id, children: [
|
|
19195
|
+
hiddenLabel || title2 ? null : /* @__PURE__ */ jsxs76(ParameterLabel, { id, css: labelText2, children: [
|
|
18881
19196
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
18882
19197
|
label,
|
|
18883
19198
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
18884
19199
|
] }),
|
|
18885
|
-
!title2 ? null : /* @__PURE__ */
|
|
19200
|
+
!title2 ? null : /* @__PURE__ */ jsxs76(ParameterLabel, { id, asSpan: true, children: [
|
|
18886
19201
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
18887
19202
|
title2,
|
|
18888
19203
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
18889
19204
|
] }),
|
|
18890
|
-
/* @__PURE__ */
|
|
18891
|
-
actionItems ? /* @__PURE__ */
|
|
19205
|
+
/* @__PURE__ */ jsxs76("div", { css: inputWrapper, children: [
|
|
19206
|
+
actionItems ? /* @__PURE__ */ jsx114(
|
|
18892
19207
|
"div",
|
|
18893
19208
|
{
|
|
18894
19209
|
css: [
|
|
18895
19210
|
inputMenu,
|
|
18896
19211
|
inputActionItems,
|
|
18897
|
-
menuItems ?
|
|
19212
|
+
menuItems ? css89`
|
|
18898
19213
|
right: var(--spacing-md);
|
|
18899
19214
|
` : void 0
|
|
18900
19215
|
],
|
|
18901
19216
|
children: actionItems
|
|
18902
19217
|
}
|
|
18903
19218
|
) : null,
|
|
18904
|
-
menuItems ? /* @__PURE__ */
|
|
18905
|
-
/* @__PURE__ */
|
|
19219
|
+
menuItems ? /* @__PURE__ */ jsx114(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
19220
|
+
/* @__PURE__ */ jsx114(
|
|
18906
19221
|
ParameterShellContext.Provider,
|
|
18907
19222
|
{
|
|
18908
19223
|
value: {
|
|
@@ -18912,14 +19227,14 @@ var ParameterShell = ({
|
|
|
18912
19227
|
errorMessage: errorMessaging,
|
|
18913
19228
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
18914
19229
|
},
|
|
18915
|
-
children: isParameterGroup ? /* @__PURE__ */
|
|
19230
|
+
children: isParameterGroup ? /* @__PURE__ */ jsx114("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs76(ParameterShellPlaceholder, { children: [
|
|
18916
19231
|
children,
|
|
18917
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
19232
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx114(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
18918
19233
|
] })
|
|
18919
19234
|
}
|
|
18920
19235
|
)
|
|
18921
19236
|
] }),
|
|
18922
|
-
/* @__PURE__ */
|
|
19237
|
+
/* @__PURE__ */ jsx114(
|
|
18923
19238
|
FieldMessage,
|
|
18924
19239
|
{
|
|
18925
19240
|
helperMessageTestId: captionTestId,
|
|
@@ -18933,17 +19248,17 @@ var ParameterShell = ({
|
|
|
18933
19248
|
] });
|
|
18934
19249
|
};
|
|
18935
19250
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
18936
|
-
return /* @__PURE__ */
|
|
19251
|
+
return /* @__PURE__ */ jsx114("div", { css: emptyParameterShell, children });
|
|
18937
19252
|
};
|
|
18938
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
19253
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx114(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx114("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx114("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
18939
19254
|
|
|
18940
19255
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
18941
|
-
import { Fragment as
|
|
19256
|
+
import { Fragment as Fragment16, jsx as jsx115, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
18942
19257
|
var ParameterImage = forwardRef18(
|
|
18943
19258
|
({ children, ...props }, ref) => {
|
|
18944
19259
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18945
|
-
return /* @__PURE__ */
|
|
18946
|
-
/* @__PURE__ */
|
|
19260
|
+
return /* @__PURE__ */ jsxs77(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
19261
|
+
/* @__PURE__ */ jsx115(ParameterImageInner, { ref, ...innerProps }),
|
|
18947
19262
|
children
|
|
18948
19263
|
] });
|
|
18949
19264
|
}
|
|
@@ -18952,8 +19267,8 @@ var ParameterImageInner = forwardRef18((props, ref) => {
|
|
|
18952
19267
|
const { value } = props;
|
|
18953
19268
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
18954
19269
|
const deferredValue = useDeferredValue(value);
|
|
18955
|
-
return /* @__PURE__ */
|
|
18956
|
-
/* @__PURE__ */
|
|
19270
|
+
return /* @__PURE__ */ jsxs77(Fragment16, { children: [
|
|
19271
|
+
/* @__PURE__ */ jsx115(
|
|
18957
19272
|
"input",
|
|
18958
19273
|
{
|
|
18959
19274
|
css: input3,
|
|
@@ -18965,21 +19280,21 @@ var ParameterImageInner = forwardRef18((props, ref) => {
|
|
|
18965
19280
|
...props
|
|
18966
19281
|
}
|
|
18967
19282
|
),
|
|
18968
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
19283
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx115(ParameterImagePreview, { imageSrc: deferredValue })
|
|
18969
19284
|
] });
|
|
18970
19285
|
});
|
|
18971
19286
|
|
|
18972
19287
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
18973
19288
|
import { forwardRef as forwardRef19 } from "react";
|
|
18974
|
-
import { jsx as
|
|
19289
|
+
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
18975
19290
|
var ParameterInput = forwardRef19((props, ref) => {
|
|
18976
19291
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18977
|
-
return /* @__PURE__ */
|
|
19292
|
+
return /* @__PURE__ */ jsx116(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx116(ParameterInputInner, { ref, ...innerProps }) });
|
|
18978
19293
|
});
|
|
18979
19294
|
var ParameterInputInner = forwardRef19(
|
|
18980
19295
|
({ ...props }, ref) => {
|
|
18981
19296
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18982
|
-
return /* @__PURE__ */
|
|
19297
|
+
return /* @__PURE__ */ jsx116(
|
|
18983
19298
|
"input",
|
|
18984
19299
|
{
|
|
18985
19300
|
css: input3,
|
|
@@ -18996,18 +19311,18 @@ var ParameterInputInner = forwardRef19(
|
|
|
18996
19311
|
|
|
18997
19312
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
18998
19313
|
import { forwardRef as forwardRef20 } from "react";
|
|
18999
|
-
import { jsx as
|
|
19314
|
+
import { jsx as jsx117, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
19000
19315
|
var ParameterLink = forwardRef20(
|
|
19001
19316
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
19002
19317
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19003
|
-
return /* @__PURE__ */
|
|
19318
|
+
return /* @__PURE__ */ jsx117(
|
|
19004
19319
|
ParameterShell,
|
|
19005
19320
|
{
|
|
19006
19321
|
"data-testid": "link-parameter-editor",
|
|
19007
19322
|
...shellProps,
|
|
19008
19323
|
label: innerProps.value ? shellProps.label : "",
|
|
19009
19324
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
19010
|
-
children: /* @__PURE__ */
|
|
19325
|
+
children: /* @__PURE__ */ jsx117(
|
|
19011
19326
|
ParameterLinkInner,
|
|
19012
19327
|
{
|
|
19013
19328
|
onConnectLink,
|
|
@@ -19024,9 +19339,9 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19024
19339
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
19025
19340
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
19026
19341
|
if (!props.value)
|
|
19027
|
-
return /* @__PURE__ */
|
|
19028
|
-
return /* @__PURE__ */
|
|
19029
|
-
/* @__PURE__ */
|
|
19342
|
+
return /* @__PURE__ */ jsx117("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
19343
|
+
return /* @__PURE__ */ jsxs78("div", { css: inputWrapper, children: [
|
|
19344
|
+
/* @__PURE__ */ jsx117(
|
|
19030
19345
|
"input",
|
|
19031
19346
|
{
|
|
19032
19347
|
type: "text",
|
|
@@ -19038,8 +19353,8 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19038
19353
|
...props
|
|
19039
19354
|
}
|
|
19040
19355
|
),
|
|
19041
|
-
/* @__PURE__ */
|
|
19042
|
-
/* @__PURE__ */
|
|
19356
|
+
/* @__PURE__ */ jsxs78("div", { css: linkParameterControls, children: [
|
|
19357
|
+
/* @__PURE__ */ jsx117(
|
|
19043
19358
|
"button",
|
|
19044
19359
|
{
|
|
19045
19360
|
type: "button",
|
|
@@ -19050,7 +19365,7 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19050
19365
|
children: "edit"
|
|
19051
19366
|
}
|
|
19052
19367
|
),
|
|
19053
|
-
externalLink ? /* @__PURE__ */
|
|
19368
|
+
externalLink ? /* @__PURE__ */ jsx117(
|
|
19054
19369
|
"a",
|
|
19055
19370
|
{
|
|
19056
19371
|
href: externalLink,
|
|
@@ -19058,7 +19373,7 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19058
19373
|
title: "Open link in new tab",
|
|
19059
19374
|
target: "_blank",
|
|
19060
19375
|
rel: "noopener noreferrer",
|
|
19061
|
-
children: /* @__PURE__ */
|
|
19376
|
+
children: /* @__PURE__ */ jsx117(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
19062
19377
|
}
|
|
19063
19378
|
) : null
|
|
19064
19379
|
] })
|
|
@@ -19067,15 +19382,15 @@ var ParameterLinkInner = forwardRef20(
|
|
|
19067
19382
|
);
|
|
19068
19383
|
|
|
19069
19384
|
// src/components/ParameterInputs/ParameterMultiSelect.tsx
|
|
19070
|
-
import { jsx as
|
|
19385
|
+
import { jsx as jsx118 } from "@emotion/react/jsx-runtime";
|
|
19071
19386
|
var ParameterMultiSelect = ({ disabled: disabled2 = false, ...props }) => {
|
|
19072
19387
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19073
|
-
return /* @__PURE__ */
|
|
19388
|
+
return /* @__PURE__ */ jsx118(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx118(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
|
|
19074
19389
|
};
|
|
19075
19390
|
var ParameterMultiSelectInner = (props) => {
|
|
19076
19391
|
var _a;
|
|
19077
19392
|
const { id, label } = useParameterShell();
|
|
19078
|
-
return /* @__PURE__ */
|
|
19393
|
+
return /* @__PURE__ */ jsx118(
|
|
19079
19394
|
InputComboBox,
|
|
19080
19395
|
{
|
|
19081
19396
|
menuPortalTarget: document.body,
|
|
@@ -19125,7 +19440,7 @@ var ParameterMultiSelectInner = (props) => {
|
|
|
19125
19440
|
};
|
|
19126
19441
|
|
|
19127
19442
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
19128
|
-
import { Fragment as
|
|
19443
|
+
import { Fragment as Fragment17, jsx as jsx119, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
19129
19444
|
var ParameterNameAndPublicIdInput = ({
|
|
19130
19445
|
id,
|
|
19131
19446
|
onBlur,
|
|
@@ -19151,8 +19466,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19151
19466
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
19152
19467
|
};
|
|
19153
19468
|
autoFocus == null ? void 0 : autoFocus();
|
|
19154
|
-
return /* @__PURE__ */
|
|
19155
|
-
/* @__PURE__ */
|
|
19469
|
+
return /* @__PURE__ */ jsxs79(Fragment17, { children: [
|
|
19470
|
+
/* @__PURE__ */ jsx119(
|
|
19156
19471
|
ParameterInput,
|
|
19157
19472
|
{
|
|
19158
19473
|
id: nameIdField,
|
|
@@ -19171,7 +19486,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19171
19486
|
value: values[nameIdField]
|
|
19172
19487
|
}
|
|
19173
19488
|
),
|
|
19174
|
-
/* @__PURE__ */
|
|
19489
|
+
/* @__PURE__ */ jsx119(
|
|
19175
19490
|
ParameterInput,
|
|
19176
19491
|
{
|
|
19177
19492
|
id: publicIdFieldName,
|
|
@@ -19185,11 +19500,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19185
19500
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
19186
19501
|
placeholder: publicIdPlaceholderText,
|
|
19187
19502
|
errorMessage: publicIdError,
|
|
19188
|
-
menuItems: /* @__PURE__ */
|
|
19503
|
+
menuItems: /* @__PURE__ */ jsx119(
|
|
19189
19504
|
MenuItem,
|
|
19190
19505
|
{
|
|
19191
19506
|
disabled: !values[publicIdFieldName],
|
|
19192
|
-
icon: /* @__PURE__ */
|
|
19507
|
+
icon: /* @__PURE__ */ jsx119(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
19193
19508
|
onClick: handleCopyPidFieldValue,
|
|
19194
19509
|
children: "Copy"
|
|
19195
19510
|
}
|
|
@@ -19197,12 +19512,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19197
19512
|
value: values[publicIdFieldName]
|
|
19198
19513
|
}
|
|
19199
19514
|
),
|
|
19200
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
19515
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx119(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
19201
19516
|
] });
|
|
19202
19517
|
};
|
|
19203
19518
|
|
|
19204
19519
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
19205
|
-
import { css as
|
|
19520
|
+
import { css as css93 } from "@emotion/react";
|
|
19206
19521
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
19207
19522
|
import {
|
|
19208
19523
|
CODE,
|
|
@@ -19316,7 +19631,7 @@ var getLabelForElement = (type) => {
|
|
|
19316
19631
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
19317
19632
|
import { deepEqual as deepEqual2 } from "fast-equals";
|
|
19318
19633
|
import { ParagraphNode as ParagraphNode2 } from "lexical";
|
|
19319
|
-
import { useEffect as
|
|
19634
|
+
import { useEffect as useEffect19, useRef as useRef10 } from "react";
|
|
19320
19635
|
|
|
19321
19636
|
// src/components/ParameterInputs/rich-text/CustomCodeNode.ts
|
|
19322
19637
|
import { CodeNode } from "@lexical/code";
|
|
@@ -19337,10 +19652,10 @@ CustomCodeNode.importDOM = function() {
|
|
|
19337
19652
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
19338
19653
|
import { mergeRegister } from "@lexical/utils";
|
|
19339
19654
|
import { ParagraphNode } from "lexical";
|
|
19340
|
-
import { useEffect as
|
|
19655
|
+
import { useEffect as useEffect15 } from "react";
|
|
19341
19656
|
function DisableStylesPlugin() {
|
|
19342
19657
|
const [editor] = useLexicalComposerContext();
|
|
19343
|
-
|
|
19658
|
+
useEffect15(() => {
|
|
19344
19659
|
return mergeRegister(
|
|
19345
19660
|
// Disable text alignment on paragraph nodes
|
|
19346
19661
|
editor.registerNodeTransform(ParagraphNode, (node) => {
|
|
@@ -19354,23 +19669,23 @@ function DisableStylesPlugin() {
|
|
|
19354
19669
|
}
|
|
19355
19670
|
|
|
19356
19671
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
19357
|
-
import { css as
|
|
19358
|
-
var textBold =
|
|
19672
|
+
import { css as css90 } from "@emotion/css";
|
|
19673
|
+
var textBold = css90`
|
|
19359
19674
|
font-weight: 700;
|
|
19360
19675
|
`;
|
|
19361
|
-
var textItalic =
|
|
19676
|
+
var textItalic = css90`
|
|
19362
19677
|
font-style: italic;
|
|
19363
19678
|
`;
|
|
19364
|
-
var textUnderline =
|
|
19679
|
+
var textUnderline = css90`
|
|
19365
19680
|
text-decoration: underline;
|
|
19366
19681
|
`;
|
|
19367
|
-
var textStrikethrough =
|
|
19682
|
+
var textStrikethrough = css90`
|
|
19368
19683
|
text-decoration: line-through;
|
|
19369
19684
|
`;
|
|
19370
|
-
var textUnderlineStrikethrough =
|
|
19685
|
+
var textUnderlineStrikethrough = css90`
|
|
19371
19686
|
text-decoration: underline line-through;
|
|
19372
19687
|
`;
|
|
19373
|
-
var textCode =
|
|
19688
|
+
var textCode = css90`
|
|
19374
19689
|
background-color: var(--gray-100);
|
|
19375
19690
|
border-radius: var(--rounded-sm);
|
|
19376
19691
|
display: inline-block;
|
|
@@ -19381,68 +19696,68 @@ var textCode = css86`
|
|
|
19381
19696
|
padding-left: var(--spacing-xs);
|
|
19382
19697
|
padding-right: var(--spacing-xs);
|
|
19383
19698
|
`;
|
|
19384
|
-
var textSuperscript =
|
|
19699
|
+
var textSuperscript = css90`
|
|
19385
19700
|
vertical-align: super;
|
|
19386
19701
|
font-size: smaller;
|
|
19387
19702
|
`;
|
|
19388
|
-
var textSubscript =
|
|
19703
|
+
var textSubscript = css90`
|
|
19389
19704
|
vertical-align: sub;
|
|
19390
19705
|
font-size: smaller;
|
|
19391
19706
|
`;
|
|
19392
|
-
var linkElement =
|
|
19707
|
+
var linkElement = css90`
|
|
19393
19708
|
${link}
|
|
19394
19709
|
${linkColorDefault}
|
|
19395
19710
|
text-decoration: underline;
|
|
19396
19711
|
`;
|
|
19397
|
-
var h12 =
|
|
19712
|
+
var h12 = css90`
|
|
19398
19713
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
19399
19714
|
`;
|
|
19400
|
-
var h22 =
|
|
19715
|
+
var h22 = css90`
|
|
19401
19716
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
19402
19717
|
`;
|
|
19403
|
-
var h32 =
|
|
19718
|
+
var h32 = css90`
|
|
19404
19719
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
19405
19720
|
`;
|
|
19406
|
-
var h42 =
|
|
19721
|
+
var h42 = css90`
|
|
19407
19722
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
19408
19723
|
`;
|
|
19409
|
-
var h52 =
|
|
19724
|
+
var h52 = css90`
|
|
19410
19725
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
19411
19726
|
`;
|
|
19412
|
-
var h62 =
|
|
19727
|
+
var h62 = css90`
|
|
19413
19728
|
font-size: var(--fs-base);
|
|
19414
19729
|
`;
|
|
19415
|
-
var heading1Element =
|
|
19730
|
+
var heading1Element = css90`
|
|
19416
19731
|
${h12}
|
|
19417
19732
|
${commonHeadingAttr(true)}
|
|
19418
19733
|
${commonLineHeight}
|
|
19419
19734
|
`;
|
|
19420
|
-
var heading2Element =
|
|
19735
|
+
var heading2Element = css90`
|
|
19421
19736
|
${h22}
|
|
19422
19737
|
${commonHeadingAttr(true)}
|
|
19423
19738
|
${commonLineHeight}
|
|
19424
19739
|
`;
|
|
19425
|
-
var heading3Element =
|
|
19740
|
+
var heading3Element = css90`
|
|
19426
19741
|
${h32}
|
|
19427
19742
|
${commonHeadingAttr(true)}
|
|
19428
19743
|
${commonLineHeight}
|
|
19429
19744
|
`;
|
|
19430
|
-
var heading4Element =
|
|
19745
|
+
var heading4Element = css90`
|
|
19431
19746
|
${h42}
|
|
19432
19747
|
${commonHeadingAttr(true)}
|
|
19433
19748
|
${commonLineHeight}
|
|
19434
19749
|
`;
|
|
19435
|
-
var heading5Element =
|
|
19750
|
+
var heading5Element = css90`
|
|
19436
19751
|
${h52}
|
|
19437
19752
|
${commonHeadingAttr(true)}
|
|
19438
19753
|
${commonLineHeight}
|
|
19439
19754
|
`;
|
|
19440
|
-
var heading6Element =
|
|
19755
|
+
var heading6Element = css90`
|
|
19441
19756
|
${h62}
|
|
19442
19757
|
${commonHeadingAttr(true)}
|
|
19443
19758
|
${commonLineHeight}
|
|
19444
19759
|
`;
|
|
19445
|
-
var paragraphElement =
|
|
19760
|
+
var paragraphElement = css90`
|
|
19446
19761
|
line-height: 1.5;
|
|
19447
19762
|
margin-bottom: var(--spacing-base);
|
|
19448
19763
|
|
|
@@ -19450,7 +19765,7 @@ var paragraphElement = css86`
|
|
|
19450
19765
|
margin-bottom: 0;
|
|
19451
19766
|
}
|
|
19452
19767
|
`;
|
|
19453
|
-
var orderedListElement =
|
|
19768
|
+
var orderedListElement = css90`
|
|
19454
19769
|
${commonLineHeight}
|
|
19455
19770
|
display: block;
|
|
19456
19771
|
list-style: decimal;
|
|
@@ -19479,7 +19794,7 @@ var orderedListElement = css86`
|
|
|
19479
19794
|
}
|
|
19480
19795
|
}
|
|
19481
19796
|
`;
|
|
19482
|
-
var unorderedListElement =
|
|
19797
|
+
var unorderedListElement = css90`
|
|
19483
19798
|
${commonLineHeight}
|
|
19484
19799
|
display: block;
|
|
19485
19800
|
list-style: disc;
|
|
@@ -19500,13 +19815,13 @@ var unorderedListElement = css86`
|
|
|
19500
19815
|
}
|
|
19501
19816
|
}
|
|
19502
19817
|
`;
|
|
19503
|
-
var listItemElement =
|
|
19818
|
+
var listItemElement = css90`
|
|
19504
19819
|
margin-left: var(--spacing-md);
|
|
19505
19820
|
`;
|
|
19506
|
-
var nestedListItemElement =
|
|
19821
|
+
var nestedListItemElement = css90`
|
|
19507
19822
|
list-style-type: none;
|
|
19508
19823
|
`;
|
|
19509
|
-
var blockquoteElement =
|
|
19824
|
+
var blockquoteElement = css90`
|
|
19510
19825
|
border-left: 0.25rem solid var(--gray-300);
|
|
19511
19826
|
color: var(--gray-600);
|
|
19512
19827
|
margin-bottom: var(--spacing-base);
|
|
@@ -19516,7 +19831,7 @@ var blockquoteElement = css86`
|
|
|
19516
19831
|
margin-bottom: 0;
|
|
19517
19832
|
}
|
|
19518
19833
|
`;
|
|
19519
|
-
var codeElement =
|
|
19834
|
+
var codeElement = css90`
|
|
19520
19835
|
background-color: var(--gray-100);
|
|
19521
19836
|
border-radius: var(--rounded-sm);
|
|
19522
19837
|
display: block;
|
|
@@ -19533,7 +19848,7 @@ var codeElement = css86`
|
|
|
19533
19848
|
`;
|
|
19534
19849
|
|
|
19535
19850
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
19536
|
-
import { css as
|
|
19851
|
+
import { css as css91 } from "@emotion/react";
|
|
19537
19852
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
19538
19853
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
19539
19854
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -19549,7 +19864,7 @@ import {
|
|
|
19549
19864
|
ElementNode as ElementNode2,
|
|
19550
19865
|
FOCUS_COMMAND
|
|
19551
19866
|
} from "lexical";
|
|
19552
|
-
import { useCallback as useCallback9, useEffect as
|
|
19867
|
+
import { useCallback as useCallback9, useEffect as useEffect16, useRef as useRef9, useState as useState15 } from "react";
|
|
19553
19868
|
|
|
19554
19869
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
19555
19870
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
@@ -19587,7 +19902,7 @@ var getSelectedNode = (selection) => {
|
|
|
19587
19902
|
};
|
|
19588
19903
|
|
|
19589
19904
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
19590
|
-
import { Fragment as
|
|
19905
|
+
import { Fragment as Fragment18, jsx as jsx120, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
19591
19906
|
var isProjectMapLinkValue = (value) => {
|
|
19592
19907
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
19593
19908
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -19874,16 +20189,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
19874
20189
|
);
|
|
19875
20190
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
19876
20191
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
19877
|
-
var linkPopover =
|
|
20192
|
+
var linkPopover = css91`
|
|
19878
20193
|
position: absolute;
|
|
19879
20194
|
z-index: 5;
|
|
19880
20195
|
`;
|
|
19881
|
-
var linkPopoverContainer =
|
|
20196
|
+
var linkPopoverContainer = css91`
|
|
19882
20197
|
${Popover};
|
|
19883
20198
|
align-items: center;
|
|
19884
20199
|
display: flex;
|
|
19885
20200
|
`;
|
|
19886
|
-
var linkPopoverAnchor =
|
|
20201
|
+
var linkPopoverAnchor = css91`
|
|
19887
20202
|
${link}
|
|
19888
20203
|
${linkColorDefault}
|
|
19889
20204
|
`;
|
|
@@ -19892,17 +20207,17 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19892
20207
|
return path;
|
|
19893
20208
|
};
|
|
19894
20209
|
const [editor] = useLexicalComposerContext2();
|
|
19895
|
-
const [linkPopoverState, setLinkPopoverState] =
|
|
19896
|
-
const linkPopoverElRef =
|
|
19897
|
-
const [isEditorFocused, setIsEditorFocused] =
|
|
19898
|
-
const [isLinkPopoverFocused, setIsLinkPopoverFocused] =
|
|
19899
|
-
|
|
20210
|
+
const [linkPopoverState, setLinkPopoverState] = useState15();
|
|
20211
|
+
const linkPopoverElRef = useRef9(null);
|
|
20212
|
+
const [isEditorFocused, setIsEditorFocused] = useState15(false);
|
|
20213
|
+
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState15(false);
|
|
20214
|
+
useEffect16(() => {
|
|
19900
20215
|
if (!isEditorFocused && !isLinkPopoverFocused) {
|
|
19901
20216
|
setLinkPopoverState(void 0);
|
|
19902
20217
|
return;
|
|
19903
20218
|
}
|
|
19904
20219
|
}, [isEditorFocused, isLinkPopoverFocused]);
|
|
19905
|
-
|
|
20220
|
+
useEffect16(() => {
|
|
19906
20221
|
if (!editor.hasNodes([LinkNode])) {
|
|
19907
20222
|
throw new Error("LinkNode not registered on editor");
|
|
19908
20223
|
}
|
|
@@ -20003,7 +20318,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20003
20318
|
}
|
|
20004
20319
|
});
|
|
20005
20320
|
}, [editor]);
|
|
20006
|
-
|
|
20321
|
+
useEffect16(() => {
|
|
20007
20322
|
return editor.registerUpdateListener(({ editorState }) => {
|
|
20008
20323
|
requestAnimationFrame(() => {
|
|
20009
20324
|
editorState.read(() => {
|
|
@@ -20030,8 +20345,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20030
20345
|
});
|
|
20031
20346
|
});
|
|
20032
20347
|
};
|
|
20033
|
-
return /* @__PURE__ */
|
|
20034
|
-
/* @__PURE__ */
|
|
20348
|
+
return /* @__PURE__ */ jsxs80(Fragment18, { children: [
|
|
20349
|
+
/* @__PURE__ */ jsx120(
|
|
20035
20350
|
NodeEventPlugin,
|
|
20036
20351
|
{
|
|
20037
20352
|
nodeType: LinkNode,
|
|
@@ -20041,7 +20356,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20041
20356
|
}
|
|
20042
20357
|
}
|
|
20043
20358
|
),
|
|
20044
|
-
linkPopoverState ? /* @__PURE__ */
|
|
20359
|
+
linkPopoverState ? /* @__PURE__ */ jsx120(
|
|
20045
20360
|
"div",
|
|
20046
20361
|
{
|
|
20047
20362
|
css: linkPopover,
|
|
@@ -20050,8 +20365,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20050
20365
|
top: linkPopoverState.position.y
|
|
20051
20366
|
},
|
|
20052
20367
|
ref: linkPopoverElRef,
|
|
20053
|
-
children: /* @__PURE__ */
|
|
20054
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
20368
|
+
children: /* @__PURE__ */ jsxs80("div", { css: linkPopoverContainer, children: [
|
|
20369
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx120(
|
|
20055
20370
|
"a",
|
|
20056
20371
|
{
|
|
20057
20372
|
href: parsePath(
|
|
@@ -20063,7 +20378,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20063
20378
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
20064
20379
|
}
|
|
20065
20380
|
),
|
|
20066
|
-
/* @__PURE__ */
|
|
20381
|
+
/* @__PURE__ */ jsx120(
|
|
20067
20382
|
Button,
|
|
20068
20383
|
{
|
|
20069
20384
|
size: "xs",
|
|
@@ -20071,7 +20386,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20071
20386
|
onEditLinkNode(linkPopoverState.node);
|
|
20072
20387
|
},
|
|
20073
20388
|
buttonType: "ghost",
|
|
20074
|
-
children: /* @__PURE__ */
|
|
20389
|
+
children: /* @__PURE__ */ jsx120(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
20075
20390
|
}
|
|
20076
20391
|
)
|
|
20077
20392
|
] })
|
|
@@ -20095,8 +20410,8 @@ import {
|
|
|
20095
20410
|
COMMAND_PRIORITY_CRITICAL,
|
|
20096
20411
|
INDENT_CONTENT_COMMAND
|
|
20097
20412
|
} from "lexical";
|
|
20098
|
-
import { useEffect as
|
|
20099
|
-
import { jsx as
|
|
20413
|
+
import { useEffect as useEffect17 } from "react";
|
|
20414
|
+
import { jsx as jsx121 } from "@emotion/react/jsx-runtime";
|
|
20100
20415
|
function isIndentPermitted(maxDepth) {
|
|
20101
20416
|
const selection = $getSelection2();
|
|
20102
20417
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -20119,18 +20434,18 @@ function isIndentPermitted(maxDepth) {
|
|
|
20119
20434
|
}
|
|
20120
20435
|
function ListIndentPlugin({ maxDepth }) {
|
|
20121
20436
|
const [editor] = useLexicalComposerContext3();
|
|
20122
|
-
|
|
20437
|
+
useEffect17(() => {
|
|
20123
20438
|
return editor.registerCommand(
|
|
20124
20439
|
INDENT_CONTENT_COMMAND,
|
|
20125
20440
|
() => !isIndentPermitted(maxDepth),
|
|
20126
20441
|
COMMAND_PRIORITY_CRITICAL
|
|
20127
20442
|
);
|
|
20128
20443
|
}, [editor, maxDepth]);
|
|
20129
|
-
return /* @__PURE__ */
|
|
20444
|
+
return /* @__PURE__ */ jsx121(TabIndentationPlugin, {});
|
|
20130
20445
|
}
|
|
20131
20446
|
|
|
20132
20447
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
20133
|
-
import { css as
|
|
20448
|
+
import { css as css92 } from "@emotion/react";
|
|
20134
20449
|
import { $createCodeNode } from "@lexical/code";
|
|
20135
20450
|
import {
|
|
20136
20451
|
$isListNode as $isListNode2,
|
|
@@ -20152,9 +20467,9 @@ import {
|
|
|
20152
20467
|
FORMAT_TEXT_COMMAND,
|
|
20153
20468
|
SELECTION_CHANGE_COMMAND
|
|
20154
20469
|
} from "lexical";
|
|
20155
|
-
import { useCallback as useCallback10, useEffect as
|
|
20156
|
-
import { Fragment as
|
|
20157
|
-
var toolbar =
|
|
20470
|
+
import { useCallback as useCallback10, useEffect as useEffect18, useMemo as useMemo4, useState as useState16 } from "react";
|
|
20471
|
+
import { Fragment as Fragment19, jsx as jsx122, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
20472
|
+
var toolbar = css92`
|
|
20158
20473
|
background: var(--gray-50);
|
|
20159
20474
|
border-radius: var(--rounded-base);
|
|
20160
20475
|
display: flex;
|
|
@@ -20166,7 +20481,7 @@ var toolbar = css88`
|
|
|
20166
20481
|
top: calc(var(--spacing-sm) * -2);
|
|
20167
20482
|
z-index: 10;
|
|
20168
20483
|
`;
|
|
20169
|
-
var toolbarGroup =
|
|
20484
|
+
var toolbarGroup = css92`
|
|
20170
20485
|
display: flex;
|
|
20171
20486
|
gap: var(--spacing-xs);
|
|
20172
20487
|
position: relative;
|
|
@@ -20182,7 +20497,7 @@ var toolbarGroup = css88`
|
|
|
20182
20497
|
width: 1px;
|
|
20183
20498
|
}
|
|
20184
20499
|
`;
|
|
20185
|
-
var richTextToolbarButton =
|
|
20500
|
+
var richTextToolbarButton = css92`
|
|
20186
20501
|
align-items: center;
|
|
20187
20502
|
appearance: none;
|
|
20188
20503
|
border: 0;
|
|
@@ -20195,17 +20510,17 @@ var richTextToolbarButton = css88`
|
|
|
20195
20510
|
min-width: 32px;
|
|
20196
20511
|
padding: 0 var(--spacing-sm);
|
|
20197
20512
|
`;
|
|
20198
|
-
var richTextToolbarButtonActive =
|
|
20513
|
+
var richTextToolbarButtonActive = css92`
|
|
20199
20514
|
background: var(--gray-200);
|
|
20200
20515
|
`;
|
|
20201
|
-
var toolbarIcon =
|
|
20516
|
+
var toolbarIcon = css92`
|
|
20202
20517
|
color: inherit;
|
|
20203
20518
|
`;
|
|
20204
|
-
var toolbarChevron =
|
|
20519
|
+
var toolbarChevron = css92`
|
|
20205
20520
|
margin-left: var(--spacing-xs);
|
|
20206
20521
|
`;
|
|
20207
20522
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
20208
|
-
return /* @__PURE__ */
|
|
20523
|
+
return /* @__PURE__ */ jsx122(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
20209
20524
|
};
|
|
20210
20525
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
20211
20526
|
["bold", "format-bold"],
|
|
@@ -20295,7 +20610,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20295
20610
|
setIsLink(false);
|
|
20296
20611
|
}
|
|
20297
20612
|
}, [editor, setActiveElement, setActiveFormats, setIsLink]);
|
|
20298
|
-
|
|
20613
|
+
useEffect18(() => {
|
|
20299
20614
|
return editor.registerCommand(
|
|
20300
20615
|
SELECTION_CHANGE_COMMAND,
|
|
20301
20616
|
(_payload) => {
|
|
@@ -20305,7 +20620,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20305
20620
|
COMMAND_PRIORITY_CRITICAL2
|
|
20306
20621
|
);
|
|
20307
20622
|
}, [editor, updateToolbar]);
|
|
20308
|
-
|
|
20623
|
+
useEffect18(() => {
|
|
20309
20624
|
return editor.registerUpdateListener(({ editorState }) => {
|
|
20310
20625
|
requestAnimationFrame(() => {
|
|
20311
20626
|
editorState.read(() => {
|
|
@@ -20314,15 +20629,15 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20314
20629
|
});
|
|
20315
20630
|
});
|
|
20316
20631
|
}, [editor, updateToolbar]);
|
|
20317
|
-
return /* @__PURE__ */
|
|
20318
|
-
/* @__PURE__ */
|
|
20632
|
+
return /* @__PURE__ */ jsxs81("div", { css: toolbar, children: [
|
|
20633
|
+
/* @__PURE__ */ jsxs81(
|
|
20319
20634
|
Menu,
|
|
20320
20635
|
{
|
|
20321
20636
|
menuLabel: "Elements",
|
|
20322
|
-
menuTrigger: /* @__PURE__ */
|
|
20637
|
+
menuTrigger: /* @__PURE__ */ jsxs81("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
20323
20638
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
20324
20639
|
" ",
|
|
20325
|
-
/* @__PURE__ */
|
|
20640
|
+
/* @__PURE__ */ jsx122(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
20326
20641
|
] }),
|
|
20327
20642
|
placement: "bottom-start",
|
|
20328
20643
|
children: [
|
|
@@ -20332,7 +20647,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20332
20647
|
type: "paragraph"
|
|
20333
20648
|
},
|
|
20334
20649
|
...visibleTextualElements
|
|
20335
|
-
].map((element) => /* @__PURE__ */
|
|
20650
|
+
].map((element) => /* @__PURE__ */ jsx122(
|
|
20336
20651
|
MenuItem,
|
|
20337
20652
|
{
|
|
20338
20653
|
onClick: () => {
|
|
@@ -20342,12 +20657,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20342
20657
|
},
|
|
20343
20658
|
element.type
|
|
20344
20659
|
)),
|
|
20345
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
20660
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx122(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
20346
20661
|
]
|
|
20347
20662
|
}
|
|
20348
20663
|
),
|
|
20349
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
20350
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
20664
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs81("div", { css: toolbarGroup, children: [
|
|
20665
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx122(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx122(
|
|
20351
20666
|
"button",
|
|
20352
20667
|
{
|
|
20353
20668
|
onClick: () => {
|
|
@@ -20357,16 +20672,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20357
20672
|
richTextToolbarButton,
|
|
20358
20673
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
20359
20674
|
],
|
|
20360
|
-
children: /* @__PURE__ */
|
|
20675
|
+
children: /* @__PURE__ */ jsx122(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
20361
20676
|
}
|
|
20362
20677
|
) }, format.type)),
|
|
20363
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
20678
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx122(
|
|
20364
20679
|
Menu,
|
|
20365
20680
|
{
|
|
20366
20681
|
menuLabel: "Alternative text styles",
|
|
20367
|
-
menuTrigger: /* @__PURE__ */
|
|
20682
|
+
menuTrigger: /* @__PURE__ */ jsx122("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx122(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
20368
20683
|
placement: "bottom-start",
|
|
20369
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
20684
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx122(
|
|
20370
20685
|
MenuItem,
|
|
20371
20686
|
{
|
|
20372
20687
|
onClick: () => {
|
|
@@ -20379,19 +20694,19 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20379
20694
|
}
|
|
20380
20695
|
) : null
|
|
20381
20696
|
] }) : null,
|
|
20382
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
20383
|
-
linkElementVisible ? /* @__PURE__ */
|
|
20697
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs81("div", { css: toolbarGroup, children: [
|
|
20698
|
+
linkElementVisible ? /* @__PURE__ */ jsx122(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx122(
|
|
20384
20699
|
"button",
|
|
20385
20700
|
{
|
|
20386
20701
|
onClick: () => {
|
|
20387
20702
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
20388
20703
|
},
|
|
20389
20704
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
20390
|
-
children: /* @__PURE__ */
|
|
20705
|
+
children: /* @__PURE__ */ jsx122(RichTextToolbarIcon, { icon: "link" })
|
|
20391
20706
|
}
|
|
20392
20707
|
) }) : null,
|
|
20393
|
-
visibleLists.size > 0 ? /* @__PURE__ */
|
|
20394
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
20708
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs81(Fragment19, { children: [
|
|
20709
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx122(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx122(
|
|
20395
20710
|
"button",
|
|
20396
20711
|
{
|
|
20397
20712
|
onClick: () => {
|
|
@@ -20401,10 +20716,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20401
20716
|
richTextToolbarButton,
|
|
20402
20717
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
20403
20718
|
],
|
|
20404
|
-
children: /* @__PURE__ */
|
|
20719
|
+
children: /* @__PURE__ */ jsx122(RichTextToolbarIcon, { icon: "layout-list" })
|
|
20405
20720
|
}
|
|
20406
20721
|
) }) : null,
|
|
20407
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
20722
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx122(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx122(
|
|
20408
20723
|
"button",
|
|
20409
20724
|
{
|
|
20410
20725
|
onClick: () => {
|
|
@@ -20414,32 +20729,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20414
20729
|
richTextToolbarButton,
|
|
20415
20730
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
20416
20731
|
],
|
|
20417
|
-
children: /* @__PURE__ */
|
|
20732
|
+
children: /* @__PURE__ */ jsx122(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
20418
20733
|
}
|
|
20419
20734
|
) }) : null
|
|
20420
20735
|
] }) : null,
|
|
20421
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
20736
|
+
quoteElementVisible ? /* @__PURE__ */ jsx122(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx122(
|
|
20422
20737
|
"button",
|
|
20423
20738
|
{
|
|
20424
20739
|
onClick: () => {
|
|
20425
20740
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
20426
20741
|
},
|
|
20427
20742
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
20428
|
-
children: /* @__PURE__ */
|
|
20743
|
+
children: /* @__PURE__ */ jsx122(RichTextToolbarIcon, { icon: "quote" })
|
|
20429
20744
|
}
|
|
20430
20745
|
) }) : null,
|
|
20431
|
-
codeElementVisible ? /* @__PURE__ */
|
|
20746
|
+
codeElementVisible ? /* @__PURE__ */ jsx122(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx122(
|
|
20432
20747
|
"button",
|
|
20433
20748
|
{
|
|
20434
20749
|
onClick: () => {
|
|
20435
20750
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
20436
20751
|
},
|
|
20437
20752
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
20438
|
-
children: /* @__PURE__ */
|
|
20753
|
+
children: /* @__PURE__ */ jsx122(RichTextToolbarIcon, { icon: "code-slash" })
|
|
20439
20754
|
}
|
|
20440
20755
|
) }) : null
|
|
20441
20756
|
] }) : null,
|
|
20442
|
-
customControls ? /* @__PURE__ */
|
|
20757
|
+
customControls ? /* @__PURE__ */ jsx122("div", { css: toolbarGroup, children: customControls }) : null
|
|
20443
20758
|
] });
|
|
20444
20759
|
};
|
|
20445
20760
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -20463,7 +20778,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
20463
20778
|
const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
|
|
20464
20779
|
(format) => !FORMATS_WITH_ICON.has(format.type)
|
|
20465
20780
|
);
|
|
20466
|
-
const [activeFormats, setActiveFormats] =
|
|
20781
|
+
const [activeFormats, setActiveFormats] = useState16([]);
|
|
20467
20782
|
const visibleFormatsWithIcon = useMemo4(() => {
|
|
20468
20783
|
const visibleFormats = /* @__PURE__ */ new Set();
|
|
20469
20784
|
activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
|
|
@@ -20484,7 +20799,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
20484
20799
|
});
|
|
20485
20800
|
return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
|
|
20486
20801
|
}, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
|
|
20487
|
-
const [activeElement, setActiveElement] =
|
|
20802
|
+
const [activeElement, setActiveElement] = useState16("paragraph");
|
|
20488
20803
|
const enabledTextualElements = enabledBuiltInElements.filter(
|
|
20489
20804
|
(element) => TEXTUAL_ELEMENTS.includes(element.type)
|
|
20490
20805
|
);
|
|
@@ -20499,7 +20814,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
20499
20814
|
}
|
|
20500
20815
|
);
|
|
20501
20816
|
}, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
|
|
20502
|
-
const [isLink, setIsLink] =
|
|
20817
|
+
const [isLink, setIsLink] = useState16(false);
|
|
20503
20818
|
const linkElementVisible = useMemo4(() => {
|
|
20504
20819
|
return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
|
|
20505
20820
|
}, [isLink, enabledBuiltInElements]);
|
|
@@ -20553,7 +20868,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
20553
20868
|
};
|
|
20554
20869
|
|
|
20555
20870
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
20556
|
-
import { Fragment as
|
|
20871
|
+
import { Fragment as Fragment20, jsx as jsx123, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
20557
20872
|
var ParameterRichText = ({
|
|
20558
20873
|
label,
|
|
20559
20874
|
labelLeadingIcon,
|
|
@@ -20578,7 +20893,7 @@ var ParameterRichText = ({
|
|
|
20578
20893
|
variables,
|
|
20579
20894
|
customControls
|
|
20580
20895
|
}) => {
|
|
20581
|
-
return /* @__PURE__ */
|
|
20896
|
+
return /* @__PURE__ */ jsxs82(
|
|
20582
20897
|
ParameterShell,
|
|
20583
20898
|
{
|
|
20584
20899
|
"data-testid": "parameter-richtext",
|
|
@@ -20592,7 +20907,7 @@ var ParameterRichText = ({
|
|
|
20592
20907
|
captionTestId,
|
|
20593
20908
|
menuItems,
|
|
20594
20909
|
children: [
|
|
20595
|
-
/* @__PURE__ */
|
|
20910
|
+
/* @__PURE__ */ jsx123(
|
|
20596
20911
|
ParameterRichTextInner,
|
|
20597
20912
|
{
|
|
20598
20913
|
value,
|
|
@@ -20610,23 +20925,23 @@ var ParameterRichText = ({
|
|
|
20610
20925
|
children
|
|
20611
20926
|
}
|
|
20612
20927
|
),
|
|
20613
|
-
menuItems ? /* @__PURE__ */
|
|
20928
|
+
menuItems ? /* @__PURE__ */ jsx123(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx123(Fragment20, { children: menuItems }) }) : null
|
|
20614
20929
|
]
|
|
20615
20930
|
}
|
|
20616
20931
|
);
|
|
20617
20932
|
};
|
|
20618
|
-
var editorWrapper =
|
|
20933
|
+
var editorWrapper = css93`
|
|
20619
20934
|
display: flex;
|
|
20620
20935
|
flex-flow: column;
|
|
20621
20936
|
flex-grow: 1;
|
|
20622
20937
|
`;
|
|
20623
|
-
var editorContainer =
|
|
20938
|
+
var editorContainer = css93`
|
|
20624
20939
|
display: flex;
|
|
20625
20940
|
flex-flow: column;
|
|
20626
20941
|
flex-grow: 1;
|
|
20627
20942
|
position: relative;
|
|
20628
20943
|
`;
|
|
20629
|
-
var editorPlaceholder =
|
|
20944
|
+
var editorPlaceholder = css93`
|
|
20630
20945
|
color: var(--gray-500);
|
|
20631
20946
|
font-style: italic;
|
|
20632
20947
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -20637,7 +20952,7 @@ var editorPlaceholder = css89`
|
|
|
20637
20952
|
top: var(--spacing-sm);
|
|
20638
20953
|
user-select: none;
|
|
20639
20954
|
`;
|
|
20640
|
-
var editorInput =
|
|
20955
|
+
var editorInput = css93`
|
|
20641
20956
|
background: var(--white);
|
|
20642
20957
|
border: 1px solid var(--gray-200);
|
|
20643
20958
|
border-radius: var(--rounded-sm);
|
|
@@ -20721,8 +21036,8 @@ var ParameterRichTextInner = ({
|
|
|
20721
21036
|
},
|
|
20722
21037
|
editable: !readOnly
|
|
20723
21038
|
};
|
|
20724
|
-
return /* @__PURE__ */
|
|
20725
|
-
/* @__PURE__ */
|
|
21039
|
+
return /* @__PURE__ */ jsxs82(Fragment20, { children: [
|
|
21040
|
+
/* @__PURE__ */ jsx123("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx123(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx123(
|
|
20726
21041
|
RichText,
|
|
20727
21042
|
{
|
|
20728
21043
|
onChange,
|
|
@@ -20759,14 +21074,14 @@ var RichText = ({
|
|
|
20759
21074
|
variables,
|
|
20760
21075
|
customControls
|
|
20761
21076
|
}) => {
|
|
20762
|
-
const editorContainerRef =
|
|
21077
|
+
const editorContainerRef = useRef10(null);
|
|
20763
21078
|
const [editor] = useLexicalComposerContext5();
|
|
20764
|
-
|
|
21079
|
+
useEffect19(() => {
|
|
20765
21080
|
if (onRichTextInit) {
|
|
20766
21081
|
onRichTextInit(editor);
|
|
20767
21082
|
}
|
|
20768
21083
|
}, [editor, onRichTextInit]);
|
|
20769
|
-
|
|
21084
|
+
useEffect19(() => {
|
|
20770
21085
|
const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState }) => {
|
|
20771
21086
|
requestAnimationFrame(() => {
|
|
20772
21087
|
if (!deepEqual2(editorState.toJSON(), prevEditorState.toJSON())) {
|
|
@@ -20778,23 +21093,23 @@ var RichText = ({
|
|
|
20778
21093
|
removeUpdateListener();
|
|
20779
21094
|
};
|
|
20780
21095
|
}, [editor, onChange]);
|
|
20781
|
-
|
|
21096
|
+
useEffect19(() => {
|
|
20782
21097
|
editor.setEditable(!readOnly);
|
|
20783
21098
|
}, [editor, readOnly]);
|
|
20784
|
-
return /* @__PURE__ */
|
|
20785
|
-
readOnly ? null : /* @__PURE__ */
|
|
20786
|
-
/* @__PURE__ */
|
|
20787
|
-
/* @__PURE__ */
|
|
21099
|
+
return /* @__PURE__ */ jsxs82(Fragment20, { children: [
|
|
21100
|
+
readOnly ? null : /* @__PURE__ */ jsx123(RichTextToolbar_default, { config, customControls }),
|
|
21101
|
+
/* @__PURE__ */ jsxs82("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
21102
|
+
/* @__PURE__ */ jsx123(
|
|
20788
21103
|
RichTextPlugin,
|
|
20789
21104
|
{
|
|
20790
|
-
contentEditable: /* @__PURE__ */
|
|
20791
|
-
placeholder: /* @__PURE__ */
|
|
21105
|
+
contentEditable: /* @__PURE__ */ jsx123(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
21106
|
+
placeholder: /* @__PURE__ */ jsx123("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
20792
21107
|
ErrorBoundary: LexicalErrorBoundary
|
|
20793
21108
|
}
|
|
20794
21109
|
),
|
|
20795
|
-
/* @__PURE__ */
|
|
20796
|
-
readOnly ? null : /* @__PURE__ */
|
|
20797
|
-
/* @__PURE__ */
|
|
21110
|
+
/* @__PURE__ */ jsx123(ListPlugin, {}),
|
|
21111
|
+
readOnly ? null : /* @__PURE__ */ jsx123(HistoryPlugin, {}),
|
|
21112
|
+
/* @__PURE__ */ jsx123(
|
|
20798
21113
|
LinkNodePlugin,
|
|
20799
21114
|
{
|
|
20800
21115
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -20804,27 +21119,27 @@ var RichText = ({
|
|
|
20804
21119
|
} : void 0
|
|
20805
21120
|
}
|
|
20806
21121
|
),
|
|
20807
|
-
/* @__PURE__ */
|
|
20808
|
-
/* @__PURE__ */
|
|
20809
|
-
/* @__PURE__ */
|
|
20810
|
-
/* @__PURE__ */
|
|
21122
|
+
/* @__PURE__ */ jsx123(ListIndentPlugin, { maxDepth: 4 }),
|
|
21123
|
+
/* @__PURE__ */ jsx123(DisableStylesPlugin, {}),
|
|
21124
|
+
/* @__PURE__ */ jsx123(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
21125
|
+
/* @__PURE__ */ jsx123(Fragment20, { children })
|
|
20811
21126
|
] })
|
|
20812
21127
|
] });
|
|
20813
21128
|
};
|
|
20814
21129
|
|
|
20815
21130
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
20816
21131
|
import { forwardRef as forwardRef21 } from "react";
|
|
20817
|
-
import { jsx as
|
|
21132
|
+
import { jsx as jsx124, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
|
|
20818
21133
|
var ParameterSelect = forwardRef21(
|
|
20819
21134
|
({ defaultOption, options, ...props }, ref) => {
|
|
20820
21135
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20821
|
-
return /* @__PURE__ */
|
|
21136
|
+
return /* @__PURE__ */ jsx124(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx124(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
20822
21137
|
}
|
|
20823
21138
|
);
|
|
20824
21139
|
var ParameterSelectInner = forwardRef21(
|
|
20825
21140
|
({ defaultOption, options, ...props }, ref) => {
|
|
20826
21141
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20827
|
-
return /* @__PURE__ */
|
|
21142
|
+
return /* @__PURE__ */ jsxs83(
|
|
20828
21143
|
"select",
|
|
20829
21144
|
{
|
|
20830
21145
|
css: [input3, selectInput],
|
|
@@ -20833,10 +21148,10 @@ var ParameterSelectInner = forwardRef21(
|
|
|
20833
21148
|
ref,
|
|
20834
21149
|
...props,
|
|
20835
21150
|
children: [
|
|
20836
|
-
defaultOption ? /* @__PURE__ */
|
|
21151
|
+
defaultOption ? /* @__PURE__ */ jsx124("option", { value: "", children: defaultOption }) : null,
|
|
20837
21152
|
options.map((option) => {
|
|
20838
21153
|
var _a;
|
|
20839
|
-
return /* @__PURE__ */
|
|
21154
|
+
return /* @__PURE__ */ jsx124("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
20840
21155
|
})
|
|
20841
21156
|
]
|
|
20842
21157
|
}
|
|
@@ -20846,14 +21161,14 @@ var ParameterSelectInner = forwardRef21(
|
|
|
20846
21161
|
|
|
20847
21162
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
20848
21163
|
import { forwardRef as forwardRef22 } from "react";
|
|
20849
|
-
import { jsx as
|
|
21164
|
+
import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
|
|
20850
21165
|
var ParameterTextarea = forwardRef22((props, ref) => {
|
|
20851
21166
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20852
|
-
return /* @__PURE__ */
|
|
21167
|
+
return /* @__PURE__ */ jsx125(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx125(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
20853
21168
|
});
|
|
20854
21169
|
var ParameterTextareaInner = forwardRef22(({ ...props }, ref) => {
|
|
20855
21170
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20856
|
-
return /* @__PURE__ */
|
|
21171
|
+
return /* @__PURE__ */ jsx125(
|
|
20857
21172
|
"textarea",
|
|
20858
21173
|
{
|
|
20859
21174
|
css: [input3, textarea2],
|
|
@@ -20867,25 +21182,25 @@ var ParameterTextareaInner = forwardRef22(({ ...props }, ref) => {
|
|
|
20867
21182
|
|
|
20868
21183
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
20869
21184
|
import { forwardRef as forwardRef23 } from "react";
|
|
20870
|
-
import { jsx as
|
|
21185
|
+
import { jsx as jsx126, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
20871
21186
|
var ParameterToggle = forwardRef23((props, ref) => {
|
|
20872
21187
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20873
|
-
return /* @__PURE__ */
|
|
21188
|
+
return /* @__PURE__ */ jsx126(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx126(ParameterToggleInner, { ref, ...innerProps }) });
|
|
20874
21189
|
});
|
|
20875
21190
|
var ParameterToggleInner = forwardRef23(
|
|
20876
21191
|
({ children, ...props }, ref) => {
|
|
20877
21192
|
const { id, label } = useParameterShell();
|
|
20878
|
-
return /* @__PURE__ */
|
|
20879
|
-
/* @__PURE__ */
|
|
20880
|
-
/* @__PURE__ */
|
|
21193
|
+
return /* @__PURE__ */ jsxs84("label", { css: inputToggleLabel2, children: [
|
|
21194
|
+
/* @__PURE__ */ jsx126("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
21195
|
+
/* @__PURE__ */ jsx126("span", { css: inlineLabel2, children: label }),
|
|
20881
21196
|
children
|
|
20882
21197
|
] });
|
|
20883
21198
|
}
|
|
20884
21199
|
);
|
|
20885
21200
|
|
|
20886
21201
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
20887
|
-
import { css as
|
|
20888
|
-
var container3 =
|
|
21202
|
+
import { css as css94, keyframes as keyframes4 } from "@emotion/react";
|
|
21203
|
+
var container3 = css94`
|
|
20889
21204
|
background: var(--gray-50);
|
|
20890
21205
|
margin-block: var(--spacing-sm);
|
|
20891
21206
|
position: relative;
|
|
@@ -20895,13 +21210,13 @@ var container3 = css90`
|
|
|
20895
21210
|
border: solid 1px var(--gray-300);
|
|
20896
21211
|
`;
|
|
20897
21212
|
var themeMap = {
|
|
20898
|
-
primary:
|
|
21213
|
+
primary: css94`
|
|
20899
21214
|
--progress-color: var(--accent-light);
|
|
20900
21215
|
`,
|
|
20901
|
-
secondary:
|
|
21216
|
+
secondary: css94`
|
|
20902
21217
|
--progress-color: var(--accent-alt-light);
|
|
20903
21218
|
`,
|
|
20904
|
-
destructive:
|
|
21219
|
+
destructive: css94`
|
|
20905
21220
|
--progress-color: var(--brand-secondary-5);
|
|
20906
21221
|
`
|
|
20907
21222
|
};
|
|
@@ -20913,10 +21228,10 @@ var slidingBackgroundPosition = keyframes4`
|
|
|
20913
21228
|
background-position: 64px 0;
|
|
20914
21229
|
}
|
|
20915
21230
|
`;
|
|
20916
|
-
var determinate =
|
|
21231
|
+
var determinate = css94`
|
|
20917
21232
|
background-color: var(--progress-color);
|
|
20918
21233
|
`;
|
|
20919
|
-
var indeterminate =
|
|
21234
|
+
var indeterminate = css94`
|
|
20920
21235
|
background-image: linear-gradient(
|
|
20921
21236
|
45deg,
|
|
20922
21237
|
var(--progress-color) 25%,
|
|
@@ -20930,7 +21245,7 @@ var indeterminate = css90`
|
|
|
20930
21245
|
background-size: 64px 64px;
|
|
20931
21246
|
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
20932
21247
|
`;
|
|
20933
|
-
var bar =
|
|
21248
|
+
var bar = css94`
|
|
20934
21249
|
position: absolute;
|
|
20935
21250
|
inset: 0;
|
|
20936
21251
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -20938,7 +21253,7 @@ var bar = css90`
|
|
|
20938
21253
|
`;
|
|
20939
21254
|
|
|
20940
21255
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
20941
|
-
import { jsx as
|
|
21256
|
+
import { jsx as jsx127 } from "@emotion/react/jsx-runtime";
|
|
20942
21257
|
function ProgressBar({
|
|
20943
21258
|
current,
|
|
20944
21259
|
max,
|
|
@@ -20948,7 +21263,7 @@ function ProgressBar({
|
|
|
20948
21263
|
}) {
|
|
20949
21264
|
const valueNow = Math.min(current, max);
|
|
20950
21265
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
20951
|
-
return /* @__PURE__ */
|
|
21266
|
+
return /* @__PURE__ */ jsx127(
|
|
20952
21267
|
"div",
|
|
20953
21268
|
{
|
|
20954
21269
|
css: container3,
|
|
@@ -20959,7 +21274,7 @@ function ProgressBar({
|
|
|
20959
21274
|
"aria-valuemax": max,
|
|
20960
21275
|
"aria-valuenow": valueNow,
|
|
20961
21276
|
...props,
|
|
20962
|
-
children: /* @__PURE__ */
|
|
21277
|
+
children: /* @__PURE__ */ jsx127(
|
|
20963
21278
|
"div",
|
|
20964
21279
|
{
|
|
20965
21280
|
css: [
|
|
@@ -20978,28 +21293,28 @@ function ProgressBar({
|
|
|
20978
21293
|
}
|
|
20979
21294
|
|
|
20980
21295
|
// src/components/ProgressList/ProgressList.tsx
|
|
20981
|
-
import { css as
|
|
21296
|
+
import { css as css96 } from "@emotion/react";
|
|
20982
21297
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
20983
21298
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
20984
21299
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
20985
21300
|
import { useMemo as useMemo5 } from "react";
|
|
20986
21301
|
|
|
20987
21302
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
20988
|
-
import { css as
|
|
20989
|
-
var progressListStyles =
|
|
21303
|
+
import { css as css95 } from "@emotion/react";
|
|
21304
|
+
var progressListStyles = css95`
|
|
20990
21305
|
display: flex;
|
|
20991
21306
|
flex-direction: column;
|
|
20992
21307
|
gap: var(--spacing-sm);
|
|
20993
21308
|
list-style-type: none;
|
|
20994
21309
|
`;
|
|
20995
|
-
var progressListItemStyles =
|
|
21310
|
+
var progressListItemStyles = css95`
|
|
20996
21311
|
display: flex;
|
|
20997
21312
|
gap: var(--spacing-base);
|
|
20998
21313
|
align-items: center;
|
|
20999
21314
|
`;
|
|
21000
21315
|
|
|
21001
21316
|
// src/components/ProgressList/ProgressList.tsx
|
|
21002
|
-
import { jsx as
|
|
21317
|
+
import { jsx as jsx128, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
21003
21318
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
21004
21319
|
const itemsWithStatus = useMemo5(() => {
|
|
21005
21320
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -21013,8 +21328,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
21013
21328
|
return { ...item, status };
|
|
21014
21329
|
});
|
|
21015
21330
|
}, [items, inProgressId]);
|
|
21016
|
-
return /* @__PURE__ */
|
|
21017
|
-
return /* @__PURE__ */
|
|
21331
|
+
return /* @__PURE__ */ jsx128("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
21332
|
+
return /* @__PURE__ */ jsx128(
|
|
21018
21333
|
ProgressListItem,
|
|
21019
21334
|
{
|
|
21020
21335
|
status,
|
|
@@ -21047,12 +21362,12 @@ var ProgressListItem = ({
|
|
|
21047
21362
|
}, [status, error]);
|
|
21048
21363
|
const statusStyles = useMemo5(() => {
|
|
21049
21364
|
if (error) {
|
|
21050
|
-
return errorLevel === "caution" ?
|
|
21365
|
+
return errorLevel === "caution" ? css96`
|
|
21051
21366
|
color: rgb(161, 98, 7);
|
|
21052
21367
|
& svg {
|
|
21053
21368
|
color: rgb(250, 204, 21);
|
|
21054
21369
|
}
|
|
21055
|
-
` :
|
|
21370
|
+
` : css96`
|
|
21056
21371
|
color: rgb(185, 28, 28);
|
|
21057
21372
|
& svg {
|
|
21058
21373
|
color: var(--brand-primary-2);
|
|
@@ -21060,38 +21375,38 @@ var ProgressListItem = ({
|
|
|
21060
21375
|
`;
|
|
21061
21376
|
}
|
|
21062
21377
|
const colorPerStatus = {
|
|
21063
|
-
completed:
|
|
21378
|
+
completed: css96`
|
|
21064
21379
|
opacity: 0.75;
|
|
21065
21380
|
`,
|
|
21066
|
-
inProgress:
|
|
21381
|
+
inProgress: css96`
|
|
21067
21382
|
-webkit-text-stroke-width: thin;
|
|
21068
21383
|
`,
|
|
21069
|
-
queued:
|
|
21384
|
+
queued: css96`
|
|
21070
21385
|
opacity: 0.5;
|
|
21071
21386
|
`
|
|
21072
21387
|
};
|
|
21073
21388
|
return colorPerStatus[status];
|
|
21074
21389
|
}, [status, error, errorLevel]);
|
|
21075
|
-
return /* @__PURE__ */
|
|
21076
|
-
/* @__PURE__ */
|
|
21077
|
-
/* @__PURE__ */
|
|
21390
|
+
return /* @__PURE__ */ jsxs85("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
21391
|
+
/* @__PURE__ */ jsx128(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx128("div", { children: /* @__PURE__ */ jsx128(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
21392
|
+
/* @__PURE__ */ jsxs85("div", { children: [
|
|
21078
21393
|
children,
|
|
21079
|
-
/* @__PURE__ */
|
|
21394
|
+
/* @__PURE__ */ jsx128("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
21080
21395
|
] })
|
|
21081
21396
|
] });
|
|
21082
21397
|
};
|
|
21083
21398
|
|
|
21084
21399
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
21085
|
-
import { css as
|
|
21400
|
+
import { css as css98 } from "@emotion/react";
|
|
21086
21401
|
import { CgCheck as CgCheck5 } from "@react-icons/all-files/cg/CgCheck";
|
|
21087
|
-
import { useCallback as useCallback11, useEffect as
|
|
21402
|
+
import { useCallback as useCallback11, useEffect as useEffect20, useMemo as useMemo6, useRef as useRef11, useState as useState17 } from "react";
|
|
21088
21403
|
|
|
21089
21404
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
21090
|
-
import { css as
|
|
21091
|
-
var segmentedControlRootStyles =
|
|
21405
|
+
import { css as css97 } from "@emotion/react";
|
|
21406
|
+
var segmentedControlRootStyles = css97`
|
|
21092
21407
|
position: relative;
|
|
21093
21408
|
`;
|
|
21094
|
-
var segmentedControlScrollIndicatorsStyles =
|
|
21409
|
+
var segmentedControlScrollIndicatorsStyles = css97`
|
|
21095
21410
|
position: absolute;
|
|
21096
21411
|
inset: 0;
|
|
21097
21412
|
z-index: 1;
|
|
@@ -21119,17 +21434,17 @@ var segmentedControlScrollIndicatorsStyles = css93`
|
|
|
21119
21434
|
background: linear-gradient(to left, var(--background-color) 10%, transparent);
|
|
21120
21435
|
}
|
|
21121
21436
|
`;
|
|
21122
|
-
var segmentedControlScrollIndicatorStartVisibleStyles =
|
|
21437
|
+
var segmentedControlScrollIndicatorStartVisibleStyles = css97`
|
|
21123
21438
|
&::before {
|
|
21124
21439
|
opacity: 1;
|
|
21125
21440
|
}
|
|
21126
21441
|
`;
|
|
21127
|
-
var segmentedControlScrollIndicatorEndVisibleStyles =
|
|
21442
|
+
var segmentedControlScrollIndicatorEndVisibleStyles = css97`
|
|
21128
21443
|
&::after {
|
|
21129
21444
|
opacity: 1;
|
|
21130
21445
|
}
|
|
21131
21446
|
`;
|
|
21132
|
-
var segmentedControlWrapperStyles =
|
|
21447
|
+
var segmentedControlWrapperStyles = css97`
|
|
21133
21448
|
overflow-y: auto;
|
|
21134
21449
|
scroll-behavior: smooth;
|
|
21135
21450
|
scrollbar-width: none;
|
|
@@ -21138,7 +21453,7 @@ var segmentedControlWrapperStyles = css93`
|
|
|
21138
21453
|
height: 0px;
|
|
21139
21454
|
}
|
|
21140
21455
|
`;
|
|
21141
|
-
var segmentedControlStyles =
|
|
21456
|
+
var segmentedControlStyles = css97`
|
|
21142
21457
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
21143
21458
|
--segmented-control-border-width: 1px;
|
|
21144
21459
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -21157,14 +21472,14 @@ var segmentedControlStyles = css93`
|
|
|
21157
21472
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
21158
21473
|
font-size: var(--fs-xs);
|
|
21159
21474
|
`;
|
|
21160
|
-
var segmentedControlVerticalStyles =
|
|
21475
|
+
var segmentedControlVerticalStyles = css97`
|
|
21161
21476
|
flex-direction: column;
|
|
21162
21477
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
21163
21478
|
var(--segmented-control-rounded-value) 0 0;
|
|
21164
21479
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
21165
21480
|
var(--segmented-control-rounded-value);
|
|
21166
21481
|
`;
|
|
21167
|
-
var segmentedControlItemStyles =
|
|
21482
|
+
var segmentedControlItemStyles = css97`
|
|
21168
21483
|
&:first-of-type label {
|
|
21169
21484
|
border-radius: var(--segmented-control-first-border-radius);
|
|
21170
21485
|
}
|
|
@@ -21172,10 +21487,10 @@ var segmentedControlItemStyles = css93`
|
|
|
21172
21487
|
border-radius: var(--segmented-control-last-border-radius);
|
|
21173
21488
|
}
|
|
21174
21489
|
`;
|
|
21175
|
-
var segmentedControlInputStyles =
|
|
21490
|
+
var segmentedControlInputStyles = css97`
|
|
21176
21491
|
${accessibleHidden}
|
|
21177
21492
|
`;
|
|
21178
|
-
var segmentedControlLabelStyles = (checked, disabled2) =>
|
|
21493
|
+
var segmentedControlLabelStyles = (checked, disabled2) => css97`
|
|
21179
21494
|
position: relative;
|
|
21180
21495
|
display: flex;
|
|
21181
21496
|
align-items: center;
|
|
@@ -21242,25 +21557,25 @@ var segmentedControlLabelStyles = (checked, disabled2) => css93`
|
|
|
21242
21557
|
`}
|
|
21243
21558
|
}
|
|
21244
21559
|
`;
|
|
21245
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
21560
|
+
var segmentedControlLabelIconOnlyStyles = css97`
|
|
21246
21561
|
padding-inline: 0.5em;
|
|
21247
21562
|
`;
|
|
21248
|
-
var segmentedControlLabelCheckStyles =
|
|
21563
|
+
var segmentedControlLabelCheckStyles = css97`
|
|
21249
21564
|
opacity: 0.5;
|
|
21250
21565
|
`;
|
|
21251
|
-
var segmentedControlLabelContentStyles =
|
|
21566
|
+
var segmentedControlLabelContentStyles = css97`
|
|
21252
21567
|
display: flex;
|
|
21253
21568
|
align-items: center;
|
|
21254
21569
|
justify-content: center;
|
|
21255
21570
|
gap: var(--spacing-sm);
|
|
21256
21571
|
height: 100%;
|
|
21257
21572
|
`;
|
|
21258
|
-
var segmentedControlLabelTextStyles =
|
|
21573
|
+
var segmentedControlLabelTextStyles = css97`
|
|
21259
21574
|
white-space: nowrap;
|
|
21260
21575
|
`;
|
|
21261
21576
|
|
|
21262
21577
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
21263
|
-
import { jsx as
|
|
21578
|
+
import { jsx as jsx129, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
21264
21579
|
var SegmentedControl = ({
|
|
21265
21580
|
name,
|
|
21266
21581
|
options,
|
|
@@ -21275,9 +21590,9 @@ var SegmentedControl = ({
|
|
|
21275
21590
|
currentBackgroundColor = "white",
|
|
21276
21591
|
...props
|
|
21277
21592
|
}) => {
|
|
21278
|
-
const wrapperRef =
|
|
21279
|
-
const [isOverflowStartShadowVisible, setIsOverflowStartShadowVisible] =
|
|
21280
|
-
const [isOverflowEndShadowVisible, setIsOverflowEndShadowVisible] =
|
|
21593
|
+
const wrapperRef = useRef11(null);
|
|
21594
|
+
const [isOverflowStartShadowVisible, setIsOverflowStartShadowVisible] = useState17(false);
|
|
21595
|
+
const [isOverflowEndShadowVisible, setIsOverflowEndShadowVisible] = useState17(false);
|
|
21281
21596
|
const onOptionChange = useCallback11(
|
|
21282
21597
|
(event) => {
|
|
21283
21598
|
if (event.target.checked) {
|
|
@@ -21288,17 +21603,17 @@ var SegmentedControl = ({
|
|
|
21288
21603
|
);
|
|
21289
21604
|
const sizeStyles = useMemo6(() => {
|
|
21290
21605
|
const map = {
|
|
21291
|
-
sm:
|
|
21292
|
-
md:
|
|
21293
|
-
lg:
|
|
21294
|
-
xl:
|
|
21606
|
+
sm: css98({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
21607
|
+
md: css98({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
21608
|
+
lg: css98({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" }),
|
|
21609
|
+
xl: css98({ height: "calc(48px - 2px)", fontSize: "var(--fs-base)" })
|
|
21295
21610
|
};
|
|
21296
21611
|
return map[size];
|
|
21297
21612
|
}, [size]);
|
|
21298
21613
|
const isIconOnly = useMemo6(() => {
|
|
21299
21614
|
return options.every((option) => option && option.icon && !option.label);
|
|
21300
21615
|
}, [options]);
|
|
21301
|
-
|
|
21616
|
+
useEffect20(() => {
|
|
21302
21617
|
const wrapperElement = wrapperRef.current;
|
|
21303
21618
|
const onScroll = () => {
|
|
21304
21619
|
if (!wrapperElement) {
|
|
@@ -21319,8 +21634,8 @@ var SegmentedControl = ({
|
|
|
21319
21634
|
wrapperElement == null ? void 0 : wrapperElement.removeEventListener("scroll", onScroll);
|
|
21320
21635
|
};
|
|
21321
21636
|
}, []);
|
|
21322
|
-
return /* @__PURE__ */
|
|
21323
|
-
/* @__PURE__ */
|
|
21637
|
+
return /* @__PURE__ */ jsxs86("div", { css: [segmentedControlRootStyles, { "--background-color": currentBackgroundColor }], children: [
|
|
21638
|
+
/* @__PURE__ */ jsx129("div", { ref: wrapperRef, css: segmentedControlWrapperStyles, children: /* @__PURE__ */ jsx129(
|
|
21324
21639
|
"div",
|
|
21325
21640
|
{
|
|
21326
21641
|
css: [
|
|
@@ -21336,12 +21651,12 @@ var SegmentedControl = ({
|
|
|
21336
21651
|
}
|
|
21337
21652
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
21338
21653
|
const isDisabled = disabled2 || option.disabled;
|
|
21339
|
-
return /* @__PURE__ */
|
|
21654
|
+
return /* @__PURE__ */ jsx129(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx129(
|
|
21340
21655
|
"div",
|
|
21341
21656
|
{
|
|
21342
21657
|
css: segmentedControlItemStyles,
|
|
21343
21658
|
"data-testid": option["data-testid"] ? option["data-testid"] : "container-segmented-control",
|
|
21344
|
-
children: /* @__PURE__ */
|
|
21659
|
+
children: /* @__PURE__ */ jsxs86(
|
|
21345
21660
|
"label",
|
|
21346
21661
|
{
|
|
21347
21662
|
css: [
|
|
@@ -21350,7 +21665,7 @@ var SegmentedControl = ({
|
|
|
21350
21665
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
21351
21666
|
],
|
|
21352
21667
|
children: [
|
|
21353
|
-
/* @__PURE__ */
|
|
21668
|
+
/* @__PURE__ */ jsx129(
|
|
21354
21669
|
"input",
|
|
21355
21670
|
{
|
|
21356
21671
|
css: segmentedControlInputStyles,
|
|
@@ -21362,10 +21677,10 @@ var SegmentedControl = ({
|
|
|
21362
21677
|
disabled: isDisabled
|
|
21363
21678
|
}
|
|
21364
21679
|
),
|
|
21365
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
21366
|
-
/* @__PURE__ */
|
|
21367
|
-
!option.icon ? null : /* @__PURE__ */
|
|
21368
|
-
!text || hideOptionText ? null : /* @__PURE__ */
|
|
21680
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx129(CgCheck5, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
21681
|
+
/* @__PURE__ */ jsxs86("span", { css: segmentedControlLabelContentStyles, children: [
|
|
21682
|
+
!option.icon ? null : /* @__PURE__ */ jsx129(Icon, { icon: option.icon, size: iconSize, iconColor: "currentColor" }),
|
|
21683
|
+
!text || hideOptionText ? null : /* @__PURE__ */ jsx129("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
21369
21684
|
] })
|
|
21370
21685
|
]
|
|
21371
21686
|
}
|
|
@@ -21375,7 +21690,7 @@ var SegmentedControl = ({
|
|
|
21375
21690
|
})
|
|
21376
21691
|
}
|
|
21377
21692
|
) }),
|
|
21378
|
-
/* @__PURE__ */
|
|
21693
|
+
/* @__PURE__ */ jsx129(
|
|
21379
21694
|
"div",
|
|
21380
21695
|
{
|
|
21381
21696
|
css: [
|
|
@@ -21389,18 +21704,18 @@ var SegmentedControl = ({
|
|
|
21389
21704
|
};
|
|
21390
21705
|
|
|
21391
21706
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
21392
|
-
import { css as
|
|
21707
|
+
import { css as css99, keyframes as keyframes5 } from "@emotion/react";
|
|
21393
21708
|
var lightFadingOut = keyframes5`
|
|
21394
21709
|
from { opacity: 0.1; }
|
|
21395
21710
|
to { opacity: 0.025; }
|
|
21396
21711
|
`;
|
|
21397
|
-
var skeletonStyles =
|
|
21712
|
+
var skeletonStyles = css99`
|
|
21398
21713
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
21399
21714
|
background-color: var(--gray-900);
|
|
21400
21715
|
`;
|
|
21401
21716
|
|
|
21402
21717
|
// src/components/Skeleton/Skeleton.tsx
|
|
21403
|
-
import { jsx as
|
|
21718
|
+
import { jsx as jsx130 } from "@emotion/react/jsx-runtime";
|
|
21404
21719
|
var Skeleton = ({
|
|
21405
21720
|
width = "100%",
|
|
21406
21721
|
height = "1.25rem",
|
|
@@ -21408,7 +21723,7 @@ var Skeleton = ({
|
|
|
21408
21723
|
circle = false,
|
|
21409
21724
|
children,
|
|
21410
21725
|
...otherProps
|
|
21411
|
-
}) => /* @__PURE__ */
|
|
21726
|
+
}) => /* @__PURE__ */ jsx130(
|
|
21412
21727
|
"div",
|
|
21413
21728
|
{
|
|
21414
21729
|
css: [
|
|
@@ -21431,8 +21746,8 @@ var Skeleton = ({
|
|
|
21431
21746
|
import * as React24 from "react";
|
|
21432
21747
|
|
|
21433
21748
|
// src/components/Switch/Switch.styles.ts
|
|
21434
|
-
import { css as
|
|
21435
|
-
var SwitchInputContainer =
|
|
21749
|
+
import { css as css100 } from "@emotion/react";
|
|
21750
|
+
var SwitchInputContainer = css100`
|
|
21436
21751
|
cursor: pointer;
|
|
21437
21752
|
display: inline-block;
|
|
21438
21753
|
position: relative;
|
|
@@ -21441,7 +21756,7 @@ var SwitchInputContainer = css96`
|
|
|
21441
21756
|
vertical-align: middle;
|
|
21442
21757
|
user-select: none;
|
|
21443
21758
|
`;
|
|
21444
|
-
var SwitchInput =
|
|
21759
|
+
var SwitchInput = css100`
|
|
21445
21760
|
appearance: none;
|
|
21446
21761
|
border-radius: var(--rounded-full);
|
|
21447
21762
|
background-color: var(--white);
|
|
@@ -21479,7 +21794,7 @@ var SwitchInput = css96`
|
|
|
21479
21794
|
cursor: not-allowed;
|
|
21480
21795
|
}
|
|
21481
21796
|
`;
|
|
21482
|
-
var SwitchInputDisabled =
|
|
21797
|
+
var SwitchInputDisabled = css100`
|
|
21483
21798
|
opacity: var(--opacity-50);
|
|
21484
21799
|
cursor: not-allowed;
|
|
21485
21800
|
|
|
@@ -21487,7 +21802,7 @@ var SwitchInputDisabled = css96`
|
|
|
21487
21802
|
cursor: not-allowed;
|
|
21488
21803
|
}
|
|
21489
21804
|
`;
|
|
21490
|
-
var SwitchInputLabel =
|
|
21805
|
+
var SwitchInputLabel = css100`
|
|
21491
21806
|
align-items: center;
|
|
21492
21807
|
color: var(--typography-base);
|
|
21493
21808
|
display: inline-flex;
|
|
@@ -21508,26 +21823,26 @@ var SwitchInputLabel = css96`
|
|
|
21508
21823
|
top: 0;
|
|
21509
21824
|
}
|
|
21510
21825
|
`;
|
|
21511
|
-
var SwitchText =
|
|
21826
|
+
var SwitchText = css100`
|
|
21512
21827
|
color: var(--gray-500);
|
|
21513
21828
|
font-size: var(--fs-sm);
|
|
21514
21829
|
padding-inline: var(--spacing-2xl) 0;
|
|
21515
21830
|
`;
|
|
21516
21831
|
|
|
21517
21832
|
// src/components/Switch/Switch.tsx
|
|
21518
|
-
import { Fragment as
|
|
21833
|
+
import { Fragment as Fragment21, jsx as jsx131, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
|
|
21519
21834
|
var Switch = React24.forwardRef(
|
|
21520
21835
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
21521
21836
|
let additionalText = infoText;
|
|
21522
21837
|
if (infoText && toggleText) {
|
|
21523
21838
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
21524
21839
|
}
|
|
21525
|
-
return /* @__PURE__ */
|
|
21526
|
-
/* @__PURE__ */
|
|
21527
|
-
/* @__PURE__ */
|
|
21528
|
-
/* @__PURE__ */
|
|
21840
|
+
return /* @__PURE__ */ jsxs87(Fragment21, { children: [
|
|
21841
|
+
/* @__PURE__ */ jsxs87("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
21842
|
+
/* @__PURE__ */ jsx131("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
21843
|
+
/* @__PURE__ */ jsx131("span", { css: SwitchInputLabel, children: label })
|
|
21529
21844
|
] }),
|
|
21530
|
-
additionalText ? /* @__PURE__ */
|
|
21845
|
+
additionalText ? /* @__PURE__ */ jsx131("p", { css: SwitchText, children: additionalText }) : null,
|
|
21531
21846
|
children
|
|
21532
21847
|
] });
|
|
21533
21848
|
}
|
|
@@ -21537,67 +21852,75 @@ var Switch = React24.forwardRef(
|
|
|
21537
21852
|
import * as React25 from "react";
|
|
21538
21853
|
|
|
21539
21854
|
// src/components/Table/Table.styles.ts
|
|
21540
|
-
import { css as
|
|
21541
|
-
var table = ({ cellPadding = "var(--spacing-
|
|
21855
|
+
import { css as css101 } from "@emotion/react";
|
|
21856
|
+
var table = ({ cellPadding = "var(--spacing-sm) var(--spacing-md)" }) => css101`
|
|
21542
21857
|
border-bottom: 1px solid var(--gray-400);
|
|
21543
21858
|
border-collapse: collapse;
|
|
21544
21859
|
min-width: 100%;
|
|
21545
21860
|
table-layout: auto;
|
|
21861
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
21546
21862
|
|
|
21547
21863
|
th,
|
|
21548
21864
|
td {
|
|
21549
21865
|
padding: ${cellPadding};
|
|
21550
21866
|
}
|
|
21867
|
+
|
|
21868
|
+
thead tr {
|
|
21869
|
+
border-color: var(--gray-300);
|
|
21870
|
+
}
|
|
21871
|
+
|
|
21872
|
+
tbody tr:hover {
|
|
21873
|
+
background-color: var(--gray-50);
|
|
21874
|
+
}
|
|
21551
21875
|
`;
|
|
21552
|
-
var tableHead =
|
|
21553
|
-
background: var(--gray-100);
|
|
21876
|
+
var tableHead = css101`
|
|
21554
21877
|
color: var(--typography-base);
|
|
21555
21878
|
text-align: left;
|
|
21556
21879
|
`;
|
|
21557
|
-
var tableRow =
|
|
21558
|
-
border-bottom: 1px solid var(--gray-
|
|
21880
|
+
var tableRow = css101`
|
|
21881
|
+
border-bottom: 1px solid var(--gray-100);
|
|
21559
21882
|
`;
|
|
21560
|
-
var tableCellHead =
|
|
21883
|
+
var tableCellHead = css101`
|
|
21561
21884
|
font-size: var(--fs-sm);
|
|
21562
21885
|
text-transform: uppercase;
|
|
21563
21886
|
font-weight: var(--fw-bold);
|
|
21564
21887
|
`;
|
|
21565
21888
|
|
|
21566
21889
|
// src/components/Table/Table.tsx
|
|
21567
|
-
import { jsx as
|
|
21890
|
+
import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
|
|
21568
21891
|
var Table = React25.forwardRef(
|
|
21569
21892
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
21570
|
-
return /* @__PURE__ */
|
|
21893
|
+
return /* @__PURE__ */ jsx132("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
21571
21894
|
}
|
|
21572
21895
|
);
|
|
21573
21896
|
var TableHead = React25.forwardRef(
|
|
21574
21897
|
({ children, ...otherProps }, ref) => {
|
|
21575
|
-
return /* @__PURE__ */
|
|
21898
|
+
return /* @__PURE__ */ jsx132("thead", { ref, css: tableHead, ...otherProps, children });
|
|
21576
21899
|
}
|
|
21577
21900
|
);
|
|
21578
21901
|
var TableBody = React25.forwardRef(
|
|
21579
21902
|
({ children, ...otherProps }, ref) => {
|
|
21580
|
-
return /* @__PURE__ */
|
|
21903
|
+
return /* @__PURE__ */ jsx132("tbody", { ref, ...otherProps, children });
|
|
21581
21904
|
}
|
|
21582
21905
|
);
|
|
21583
21906
|
var TableFoot = React25.forwardRef(
|
|
21584
21907
|
({ children, ...otherProps }, ref) => {
|
|
21585
|
-
return /* @__PURE__ */
|
|
21908
|
+
return /* @__PURE__ */ jsx132("tfoot", { ref, ...otherProps, children });
|
|
21586
21909
|
}
|
|
21587
21910
|
);
|
|
21588
21911
|
var TableRow = React25.forwardRef(
|
|
21589
21912
|
({ children, ...otherProps }, ref) => {
|
|
21590
|
-
return /* @__PURE__ */
|
|
21913
|
+
return /* @__PURE__ */ jsx132("tr", { ref, css: tableRow, ...otherProps, children });
|
|
21591
21914
|
}
|
|
21592
21915
|
);
|
|
21593
21916
|
var TableCellHead = React25.forwardRef(
|
|
21594
21917
|
({ children, ...otherProps }, ref) => {
|
|
21595
|
-
return /* @__PURE__ */
|
|
21918
|
+
return /* @__PURE__ */ jsx132("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
21596
21919
|
}
|
|
21597
21920
|
);
|
|
21598
21921
|
var TableCellData = React25.forwardRef(
|
|
21599
21922
|
({ children, ...otherProps }, ref) => {
|
|
21600
|
-
return /* @__PURE__ */
|
|
21923
|
+
return /* @__PURE__ */ jsx132("td", { ref, ...otherProps, children });
|
|
21601
21924
|
}
|
|
21602
21925
|
);
|
|
21603
21926
|
|
|
@@ -21609,11 +21932,11 @@ import {
|
|
|
21609
21932
|
TabProvider as AriakitTabProvider,
|
|
21610
21933
|
useTabStore as useAriakitTabStore
|
|
21611
21934
|
} from "@ariakit/react";
|
|
21612
|
-
import { useCallback as useCallback12, useEffect as
|
|
21935
|
+
import { useCallback as useCallback12, useEffect as useEffect21, useMemo as useMemo7 } from "react";
|
|
21613
21936
|
|
|
21614
21937
|
// src/components/Tabs/Tabs.styles.ts
|
|
21615
|
-
import { css as
|
|
21616
|
-
var tabButtonStyles =
|
|
21938
|
+
import { css as css102 } from "@emotion/react";
|
|
21939
|
+
var tabButtonStyles = css102`
|
|
21617
21940
|
align-items: center;
|
|
21618
21941
|
border: 0;
|
|
21619
21942
|
height: 2.5rem;
|
|
@@ -21630,14 +21953,14 @@ var tabButtonStyles = css98`
|
|
|
21630
21953
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
21631
21954
|
}
|
|
21632
21955
|
`;
|
|
21633
|
-
var tabButtonGroupStyles =
|
|
21956
|
+
var tabButtonGroupStyles = css102`
|
|
21634
21957
|
display: flex;
|
|
21635
21958
|
gap: var(--spacing-base);
|
|
21636
21959
|
border-bottom: 1px solid var(--gray-300);
|
|
21637
21960
|
`;
|
|
21638
21961
|
|
|
21639
21962
|
// src/components/Tabs/Tabs.tsx
|
|
21640
|
-
import { jsx as
|
|
21963
|
+
import { jsx as jsx133 } from "@emotion/react/jsx-runtime";
|
|
21641
21964
|
var useCurrentTab = () => {
|
|
21642
21965
|
const context = useAriakitTabStore();
|
|
21643
21966
|
if (!context) {
|
|
@@ -21670,33 +21993,33 @@ var Tabs = ({
|
|
|
21670
21993
|
},
|
|
21671
21994
|
[onSelectedIdChange, useHashForState]
|
|
21672
21995
|
);
|
|
21673
|
-
|
|
21996
|
+
useEffect21(() => {
|
|
21674
21997
|
if (selected && selected !== tab.getState().activeId) {
|
|
21675
21998
|
tab.setSelectedId(selected);
|
|
21676
21999
|
}
|
|
21677
22000
|
}, [selected, tab]);
|
|
21678
|
-
return /* @__PURE__ */
|
|
22001
|
+
return /* @__PURE__ */ jsx133(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
21679
22002
|
};
|
|
21680
22003
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
21681
|
-
return /* @__PURE__ */
|
|
22004
|
+
return /* @__PURE__ */ jsx133(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
21682
22005
|
};
|
|
21683
22006
|
var TabButton = ({
|
|
21684
22007
|
children,
|
|
21685
22008
|
id,
|
|
21686
22009
|
...props
|
|
21687
22010
|
}) => {
|
|
21688
|
-
return /* @__PURE__ */
|
|
22011
|
+
return /* @__PURE__ */ jsx133(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
21689
22012
|
};
|
|
21690
22013
|
var TabContent = ({
|
|
21691
22014
|
children,
|
|
21692
22015
|
...props
|
|
21693
22016
|
}) => {
|
|
21694
|
-
return /* @__PURE__ */
|
|
22017
|
+
return /* @__PURE__ */ jsx133(AriakitTabPanel, { ...props, children });
|
|
21695
22018
|
};
|
|
21696
22019
|
|
|
21697
22020
|
// src/components/Validation/StatusBullet.styles.ts
|
|
21698
|
-
import { css as
|
|
21699
|
-
var StatusBulletContainer =
|
|
22021
|
+
import { css as css103 } from "@emotion/react";
|
|
22022
|
+
var StatusBulletContainer = css103`
|
|
21700
22023
|
align-items: center;
|
|
21701
22024
|
align-self: center;
|
|
21702
22025
|
color: var(--gray-500);
|
|
@@ -21713,33 +22036,33 @@ var StatusBulletContainer = css99`
|
|
|
21713
22036
|
display: block;
|
|
21714
22037
|
}
|
|
21715
22038
|
`;
|
|
21716
|
-
var StatusBulletBase =
|
|
22039
|
+
var StatusBulletBase = css103`
|
|
21717
22040
|
font-size: var(--fs-sm);
|
|
21718
22041
|
&:before {
|
|
21719
22042
|
width: var(--fs-xs);
|
|
21720
22043
|
height: var(--fs-xs);
|
|
21721
22044
|
}
|
|
21722
22045
|
`;
|
|
21723
|
-
var StatusBulletSmall =
|
|
22046
|
+
var StatusBulletSmall = css103`
|
|
21724
22047
|
font-size: var(--fs-xs);
|
|
21725
22048
|
&:before {
|
|
21726
22049
|
width: var(--fs-xxs);
|
|
21727
22050
|
height: var(--fs-xxs);
|
|
21728
22051
|
}
|
|
21729
22052
|
`;
|
|
21730
|
-
var StatusDraft =
|
|
22053
|
+
var StatusDraft = css103`
|
|
21731
22054
|
&:before {
|
|
21732
22055
|
background: var(--white);
|
|
21733
22056
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
21734
22057
|
}
|
|
21735
22058
|
`;
|
|
21736
|
-
var StatusModified =
|
|
22059
|
+
var StatusModified = css103`
|
|
21737
22060
|
&:before {
|
|
21738
22061
|
background: linear-gradient(to right, var(--white) 50%, var(--accent-dark) 50% 100%);
|
|
21739
22062
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
21740
22063
|
}
|
|
21741
22064
|
`;
|
|
21742
|
-
var StatusError =
|
|
22065
|
+
var StatusError = css103`
|
|
21743
22066
|
color: var(--error);
|
|
21744
22067
|
&:before {
|
|
21745
22068
|
/* TODO: replace this with an svg icon */
|
|
@@ -21752,29 +22075,29 @@ var StatusError = css99`
|
|
|
21752
22075
|
);
|
|
21753
22076
|
}
|
|
21754
22077
|
`;
|
|
21755
|
-
var StatusPublished =
|
|
22078
|
+
var StatusPublished = css103`
|
|
21756
22079
|
&:before {
|
|
21757
22080
|
background: var(--accent-dark);
|
|
21758
22081
|
}
|
|
21759
22082
|
`;
|
|
21760
|
-
var StatusOrphan =
|
|
22083
|
+
var StatusOrphan = css103`
|
|
21761
22084
|
&:before {
|
|
21762
22085
|
background: var(--brand-secondary-5);
|
|
21763
22086
|
}
|
|
21764
22087
|
`;
|
|
21765
|
-
var StatusUnknown =
|
|
22088
|
+
var StatusUnknown = css103`
|
|
21766
22089
|
&:before {
|
|
21767
22090
|
background: var(--gray-800);
|
|
21768
22091
|
}
|
|
21769
22092
|
`;
|
|
21770
|
-
var StatusDeleted =
|
|
22093
|
+
var StatusDeleted = css103`
|
|
21771
22094
|
&:before {
|
|
21772
22095
|
background: var(--error);
|
|
21773
22096
|
}
|
|
21774
22097
|
`;
|
|
21775
22098
|
|
|
21776
22099
|
// src/components/Validation/StatusBullet.tsx
|
|
21777
|
-
import { jsx as
|
|
22100
|
+
import { jsx as jsx134 } from "@emotion/react/jsx-runtime";
|
|
21778
22101
|
var StatusBullet = ({
|
|
21779
22102
|
status,
|
|
21780
22103
|
hideText = false,
|
|
@@ -21794,7 +22117,7 @@ var StatusBullet = ({
|
|
|
21794
22117
|
Deleted: StatusDeleted
|
|
21795
22118
|
};
|
|
21796
22119
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
21797
|
-
return /* @__PURE__ */
|
|
22120
|
+
return /* @__PURE__ */ jsx134(
|
|
21798
22121
|
"span",
|
|
21799
22122
|
{
|
|
21800
22123
|
role: "status",
|
|
@@ -21831,6 +22154,7 @@ export {
|
|
|
21831
22154
|
CurrentDrawerContext,
|
|
21832
22155
|
DashedBox,
|
|
21833
22156
|
DateTimePicker,
|
|
22157
|
+
DateTimePickerSummary,
|
|
21834
22158
|
DateTimePickerVariant,
|
|
21835
22159
|
DebouncedInputKeywordSearch,
|
|
21836
22160
|
DescriptionList,
|
|
@@ -21894,6 +22218,13 @@ export {
|
|
|
21894
22218
|
Modal,
|
|
21895
22219
|
ModalDialog,
|
|
21896
22220
|
MultilineChip,
|
|
22221
|
+
ObjectGridContainer2 as ObjectGridContainer,
|
|
22222
|
+
ObjectGridItem2 as ObjectGridItem,
|
|
22223
|
+
ObjectGridItemCardCover,
|
|
22224
|
+
ObjectGridItemCover,
|
|
22225
|
+
ObjectGridItemCoverButton,
|
|
22226
|
+
ObjectGridItemHeading2 as ObjectGridItemHeading,
|
|
22227
|
+
ObjectGridItemIconWithTooltip,
|
|
21897
22228
|
PageHeaderSection,
|
|
21898
22229
|
Pagination,
|
|
21899
22230
|
Paragraph,
|
|
@@ -22039,6 +22370,7 @@ export {
|
|
|
22039
22370
|
toast,
|
|
22040
22371
|
uniformComponentIcon,
|
|
22041
22372
|
uniformComponentPatternIcon,
|
|
22373
|
+
uniformCompositionPatternIcon,
|
|
22042
22374
|
uniformContentTypeIcon,
|
|
22043
22375
|
uniformEntryIcon,
|
|
22044
22376
|
uniformEntryPatternIcon,
|