@uniformdev/design-system 19.142.2-alpha.1 → 19.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +370 -222
- package/dist/index.d.mts +31 -9
- package/dist/index.d.ts +31 -9
- package/dist/index.js +802 -645
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -662,12 +662,14 @@ var HorizontalRhythm = ({
|
|
|
662
662
|
tag = "div",
|
|
663
663
|
gap = "base",
|
|
664
664
|
children,
|
|
665
|
+
ref,
|
|
665
666
|
...props
|
|
666
667
|
}) => {
|
|
667
668
|
const Tag = tag;
|
|
668
669
|
return /* @__PURE__ */ jsx6(
|
|
669
670
|
Tag,
|
|
670
671
|
{
|
|
672
|
+
ref,
|
|
671
673
|
css: [
|
|
672
674
|
HorizontalRhythmContainer(gap),
|
|
673
675
|
{
|
|
@@ -755,12 +757,14 @@ var VerticalRhythm = ({
|
|
|
755
757
|
tag = "div",
|
|
756
758
|
gap = "base",
|
|
757
759
|
children,
|
|
760
|
+
ref,
|
|
758
761
|
...props
|
|
759
762
|
}) => {
|
|
760
763
|
const Tag = tag;
|
|
761
764
|
return /* @__PURE__ */ jsx8(
|
|
762
765
|
Tag,
|
|
763
766
|
{
|
|
767
|
+
ref,
|
|
764
768
|
css: [
|
|
765
769
|
VerticalRhythmContainer(gap),
|
|
766
770
|
{
|
|
@@ -2684,6 +2688,53 @@ var customIcons = {
|
|
|
2684
2688
|
"clipboard-paste": clipboardPaste
|
|
2685
2689
|
};
|
|
2686
2690
|
|
|
2691
|
+
// src/components/Icons/systemIcons.tsx
|
|
2692
|
+
import { GenIcon as GenIcon2 } from "@react-icons/all-files";
|
|
2693
|
+
import { CgList } from "@react-icons/all-files/cg/CgList";
|
|
2694
|
+
import { CgPen } from "@react-icons/all-files/cg/CgPen";
|
|
2695
|
+
import { TbBox } from "@react-icons/all-files/tb/TbBox";
|
|
2696
|
+
var uniformComponentIcon = TbBox;
|
|
2697
|
+
var uniformComponentPatternIcon = GenIcon2({
|
|
2698
|
+
tag: "svg",
|
|
2699
|
+
attr: {
|
|
2700
|
+
role: "img",
|
|
2701
|
+
viewBox: "0 0 24 24"
|
|
2702
|
+
},
|
|
2703
|
+
child: [
|
|
2704
|
+
{
|
|
2705
|
+
tag: "path",
|
|
2706
|
+
attr: {
|
|
2707
|
+
fillRule: "evenodd",
|
|
2708
|
+
clipRule: "evenodd",
|
|
2709
|
+
fill: "currentColor",
|
|
2710
|
+
d: "M8.39503 10.7767L7.17163 12.0001L8.5 13.3284V17.4676L11.1491 15.9775L12.2505 17.079L8.1177 19.4037C7.88939 19.5321 7.61061 19.5321 7.3823 19.4037L1.3823 16.0287C1.14615 15.8958 1 15.646 1 15.375V8.625C1 8.35404 1.14615 8.10416 1.3823 7.97132L7.3823 4.59632C7.61061 4.46789 7.88939 4.46789 8.1177 4.59632L12.2506 6.92108L11.1492 8.02254L7.75 6.11051L3.2798 8.625L7.75 11.1395L8.39503 10.7767ZM2.5 9.90739L7 12.4386V17.4676L2.5 14.9364V9.90739ZM12.8284 12.0001L16.5997 8.22883L20.3709 12.0001L16.5997 15.7713L12.8284 12.0001ZM16.5997 18.5997L10 12.0001L16.5997 5.4004L23.1993 12.0001L16.5997 18.5997Z"
|
|
2711
|
+
},
|
|
2712
|
+
child: []
|
|
2713
|
+
}
|
|
2714
|
+
]
|
|
2715
|
+
});
|
|
2716
|
+
var uniformContentTypeIcon = CgList;
|
|
2717
|
+
var uniformEntryIcon = CgPen;
|
|
2718
|
+
var uniformEntryPatternIcon = GenIcon2({
|
|
2719
|
+
tag: "svg",
|
|
2720
|
+
attr: {
|
|
2721
|
+
role: "img",
|
|
2722
|
+
viewBox: "0 0 24 24"
|
|
2723
|
+
},
|
|
2724
|
+
child: [
|
|
2725
|
+
{
|
|
2726
|
+
tag: "path",
|
|
2727
|
+
attr: {
|
|
2728
|
+
fillRule: "evenodd",
|
|
2729
|
+
clipRule: "evenodd",
|
|
2730
|
+
fill: "currentColor",
|
|
2731
|
+
d: "M9.42163 14.25H8.5C8.08579 14.25 7.75 14.5858 7.75 15C7.75 15.4142 8.08579 15.75 8.5 15.75H10.9216L9.42163 14.25ZM13.1716 18H3.25C2.83579 18 2.5 17.6642 2.5 17.25V6.75C2.5 6.33579 2.83579 6 3.25 6H13.1716L14.6716 4.5H3.25C2.00736 4.5 1 5.50736 1 6.75V17.25C1 18.4926 2.00736 19.5 3.25 19.5H14.6716L13.1716 18ZM17.4427 17.7567L16.5997 18.5997L16.5997 18.5996L16.5997 18.5997L10 12L16.5997 5.40034L16.5997 5.40037L16.5997 5.40034L17.4427 6.24334C17.4427 6.24337 17.4427 6.24339 17.4427 6.24342L23.1993 12L17.4427 17.7566C17.4427 17.7566 17.4427 17.7566 17.4427 17.7567ZM10.9216 8.25H8.5C8.08579 8.25 7.75 8.58579 7.75 9C7.75 9.41421 8.08579 9.75 8.5 9.75H9.42163L10.9216 8.25ZM6.25 8.25H4.75V9.75H6.25V8.25ZM4.75 11.25H6.25V12.75H4.75V11.25ZM4.75 14.25H6.25V15.75H4.75V14.25ZM12.8284 12L16.5997 8.22876L20.3709 12L16.5997 15.7712L12.8284 12Z"
|
|
2732
|
+
},
|
|
2733
|
+
child: []
|
|
2734
|
+
}
|
|
2735
|
+
]
|
|
2736
|
+
});
|
|
2737
|
+
|
|
2687
2738
|
// src/components/AddListButton/AddListButton.styles.ts
|
|
2688
2739
|
import { css as css16 } from "@emotion/react";
|
|
2689
2740
|
var AddListButtonBtn = css16`
|
|
@@ -14203,81 +14254,85 @@ var InputInlineSelect = ({
|
|
|
14203
14254
|
// src/components/Input/InputKeywordSearch.tsx
|
|
14204
14255
|
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
14205
14256
|
import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
14206
|
-
import
|
|
14257
|
+
import { forwardRef as forwardRef8, useState as useState5 } from "react";
|
|
14207
14258
|
import { useDebounce } from "react-use";
|
|
14208
14259
|
import { jsx as jsx54 } from "@emotion/react/jsx-runtime";
|
|
14209
|
-
var InputKeywordSearch = (
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
|
|
14222
|
-
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14226
|
-
e.
|
|
14227
|
-
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14234
|
-
|
|
14235
|
-
|
|
14236
|
-
|
|
14237
|
-
|
|
14238
|
-
|
|
14239
|
-
|
|
14240
|
-
|
|
14241
|
-
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14255
|
-
|
|
14256
|
-
|
|
14257
|
-
|
|
14258
|
-
|
|
14259
|
-
|
|
14260
|
-
|
|
14261
|
-
|
|
14262
|
-
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
}
|
|
14260
|
+
var InputKeywordSearch = forwardRef8(
|
|
14261
|
+
({
|
|
14262
|
+
onSearchTextChanged,
|
|
14263
|
+
disabled: disabled2 = false,
|
|
14264
|
+
placeholder = "Keyword search",
|
|
14265
|
+
inputFieldName = "keywordSearch",
|
|
14266
|
+
disabledFieldSubmission = false,
|
|
14267
|
+
value,
|
|
14268
|
+
onClear,
|
|
14269
|
+
compact = false,
|
|
14270
|
+
rounded = false,
|
|
14271
|
+
...props
|
|
14272
|
+
}, ref) => {
|
|
14273
|
+
const handleSearchTextChanged = (e) => {
|
|
14274
|
+
onSearchTextChanged(e.currentTarget.value);
|
|
14275
|
+
};
|
|
14276
|
+
const preventSubmitOnField = (e) => {
|
|
14277
|
+
if (e.key === "Enter" && disabledFieldSubmission) {
|
|
14278
|
+
e.preventDefault();
|
|
14279
|
+
}
|
|
14280
|
+
};
|
|
14281
|
+
const handleClear = () => {
|
|
14282
|
+
onClear ? onClear() : onSearchTextChanged("");
|
|
14283
|
+
};
|
|
14284
|
+
return /* @__PURE__ */ jsx54(
|
|
14285
|
+
Input,
|
|
14286
|
+
{
|
|
14287
|
+
ref,
|
|
14288
|
+
type: "text",
|
|
14289
|
+
name: inputFieldName,
|
|
14290
|
+
placeholder,
|
|
14291
|
+
showLabel: false,
|
|
14292
|
+
value,
|
|
14293
|
+
icon: value ? /* @__PURE__ */ jsx54(
|
|
14294
|
+
"button",
|
|
14295
|
+
{
|
|
14296
|
+
css: inputSearchCloseBtn,
|
|
14297
|
+
onClick: handleClear,
|
|
14298
|
+
type: "button",
|
|
14299
|
+
"data-testid": "keyword-search-clear-button",
|
|
14300
|
+
children: /* @__PURE__ */ jsx54(Icon, { icon: CgClose4, iconColor: "red", size: "1rem" })
|
|
14301
|
+
}
|
|
14302
|
+
) : /* @__PURE__ */ jsx54(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
14303
|
+
onChange: handleSearchTextChanged,
|
|
14304
|
+
onKeyPress: preventSubmitOnField,
|
|
14305
|
+
disabled: disabled2,
|
|
14306
|
+
"aria-label": placeholder,
|
|
14307
|
+
css: [
|
|
14308
|
+
compact ? {
|
|
14309
|
+
padding: "var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-base)",
|
|
14310
|
+
fontSize: "var(--fs-sm)"
|
|
14311
|
+
} : null,
|
|
14312
|
+
rounded ? { borderRadius: "var(--rounded-full)" } : null
|
|
14313
|
+
],
|
|
14314
|
+
"data-testid": "input-search",
|
|
14315
|
+
...props
|
|
14316
|
+
}
|
|
14317
|
+
);
|
|
14318
|
+
}
|
|
14319
|
+
);
|
|
14320
|
+
InputKeywordSearch.displayName = "InputKeywordSearch";
|
|
14266
14321
|
var DebouncedInputKeywordSearch = ({
|
|
14267
14322
|
delay = 300,
|
|
14268
14323
|
onSearchTextChanged,
|
|
14269
14324
|
defaultValue,
|
|
14270
14325
|
...props
|
|
14271
14326
|
}) => {
|
|
14272
|
-
const [searchText, setSearchText] =
|
|
14327
|
+
const [searchText, setSearchText] = useState5(defaultValue != null ? defaultValue : "");
|
|
14273
14328
|
useDebounce(() => onSearchTextChanged(searchText), delay, [searchText]);
|
|
14274
14329
|
return /* @__PURE__ */ jsx54(InputKeywordSearch, { ...props, value: searchText, onSearchTextChanged: setSearchText });
|
|
14275
14330
|
};
|
|
14276
14331
|
|
|
14277
14332
|
// src/components/Input/InputSelect.tsx
|
|
14278
|
-
import { forwardRef as
|
|
14333
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
14279
14334
|
import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
14280
|
-
var InputSelect =
|
|
14335
|
+
var InputSelect = forwardRef9(
|
|
14281
14336
|
({
|
|
14282
14337
|
label,
|
|
14283
14338
|
defaultOption,
|
|
@@ -14341,7 +14396,7 @@ var InputSelect = forwardRef8(
|
|
|
14341
14396
|
|
|
14342
14397
|
// src/components/Input/InputTime.tsx
|
|
14343
14398
|
import { parseTime } from "@internationalized/date";
|
|
14344
|
-
import * as
|
|
14399
|
+
import * as React12 from "react";
|
|
14345
14400
|
import { useCallback as useCallback2 } from "react";
|
|
14346
14401
|
import {
|
|
14347
14402
|
DateInput,
|
|
@@ -14405,7 +14460,7 @@ function tryParseTime(isoTime) {
|
|
|
14405
14460
|
return void 0;
|
|
14406
14461
|
}
|
|
14407
14462
|
}
|
|
14408
|
-
var InputTime =
|
|
14463
|
+
var InputTime = React12.forwardRef(
|
|
14409
14464
|
({
|
|
14410
14465
|
id,
|
|
14411
14466
|
label,
|
|
@@ -14487,9 +14542,9 @@ var InputTime = React13.forwardRef(
|
|
|
14487
14542
|
InputTime.displayName = "InputTime";
|
|
14488
14543
|
|
|
14489
14544
|
// src/components/Input/InputToggle.tsx
|
|
14490
|
-
import * as
|
|
14545
|
+
import * as React13 from "react";
|
|
14491
14546
|
import { jsx as jsx57, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
14492
|
-
var InputToggle =
|
|
14547
|
+
var InputToggle = React13.forwardRef(
|
|
14493
14548
|
({
|
|
14494
14549
|
label,
|
|
14495
14550
|
type,
|
|
@@ -14575,9 +14630,9 @@ var SuccessMessage = ({ message, testId, ...props }) => {
|
|
|
14575
14630
|
};
|
|
14576
14631
|
|
|
14577
14632
|
// src/components/Input/Textarea.tsx
|
|
14578
|
-
import { forwardRef as
|
|
14633
|
+
import { forwardRef as forwardRef12 } from "react";
|
|
14579
14634
|
import { Fragment as Fragment8, jsx as jsx60, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
14580
|
-
var Textarea =
|
|
14635
|
+
var Textarea = forwardRef12(
|
|
14581
14636
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14582
14637
|
return /* @__PURE__ */ jsxs37(Fragment8, { children: [
|
|
14583
14638
|
showLabel ? /* @__PURE__ */ jsx60("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
@@ -14689,22 +14744,42 @@ function DateTimePickerSummary({
|
|
|
14689
14744
|
value,
|
|
14690
14745
|
placeholder
|
|
14691
14746
|
}) {
|
|
14692
|
-
|
|
14747
|
+
let dateFormat = new Intl.DateTimeFormat(void 0, {
|
|
14693
14748
|
day: "numeric",
|
|
14694
14749
|
month: "long",
|
|
14695
|
-
year: "numeric"
|
|
14696
|
-
timeZone: value == null ? void 0 : value.timeZone
|
|
14750
|
+
year: "numeric"
|
|
14697
14751
|
});
|
|
14698
|
-
|
|
14699
|
-
timeStyle: "short"
|
|
14700
|
-
timeZone: value == null ? void 0 : value.timeZone
|
|
14752
|
+
let timeFormat = new Intl.DateTimeFormat(void 0, {
|
|
14753
|
+
timeStyle: "short"
|
|
14701
14754
|
});
|
|
14755
|
+
let timeZoneWasValid = false;
|
|
14756
|
+
if (value == null ? void 0 : value.timeZone) {
|
|
14757
|
+
try {
|
|
14758
|
+
dateFormat = new Intl.DateTimeFormat(void 0, {
|
|
14759
|
+
day: "numeric",
|
|
14760
|
+
month: "long",
|
|
14761
|
+
year: "numeric",
|
|
14762
|
+
timeZone: value.timeZone
|
|
14763
|
+
});
|
|
14764
|
+
timeFormat = new Intl.DateTimeFormat(void 0, {
|
|
14765
|
+
timeStyle: "short",
|
|
14766
|
+
timeZone: value.timeZone
|
|
14767
|
+
});
|
|
14768
|
+
timeZoneWasValid = true;
|
|
14769
|
+
} catch (error) {
|
|
14770
|
+
if (error instanceof RangeError) {
|
|
14771
|
+
console.error("Tried to use an unsupported time zone", value == null ? void 0 : value.timeZone);
|
|
14772
|
+
} else {
|
|
14773
|
+
throw error;
|
|
14774
|
+
}
|
|
14775
|
+
}
|
|
14776
|
+
}
|
|
14702
14777
|
const datePart = (value == null ? void 0 : value.datetime) ? dateFormat.format(new Date(value.datetime)) : null;
|
|
14703
14778
|
const timePart = (value == null ? void 0 : value.datetime) ? timeFormat.format(new Date(value.datetime)) : null;
|
|
14704
14779
|
return datePart ? /* @__PURE__ */ jsxs38("span", { children: [
|
|
14705
14780
|
/* @__PURE__ */ jsx61("em", { css: inputLabelFocal, children: datePart }),
|
|
14706
14781
|
!!timePart && `, ${timePart}`,
|
|
14707
|
-
!!(value == null ? void 0 : value.timeZone) && ` in ${value == null ? void 0 : value.timeZone}`
|
|
14782
|
+
!!(value == null ? void 0 : value.timeZone) && timeZoneWasValid && ` in ${value == null ? void 0 : value.timeZone}`
|
|
14708
14783
|
] }) : /* @__PURE__ */ jsx61("span", { children: placeholder });
|
|
14709
14784
|
}
|
|
14710
14785
|
|
|
@@ -14952,7 +15027,7 @@ var DateTimePicker = ({
|
|
|
14952
15027
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
14953
15028
|
import { TbCheck } from "@react-icons/all-files/tb/TbCheck";
|
|
14954
15029
|
import { TbMinus } from "@react-icons/all-files/tb/TbMinus";
|
|
14955
|
-
import
|
|
15030
|
+
import React14 from "react";
|
|
14956
15031
|
|
|
14957
15032
|
// src/components/DescriptionList/DescriptionList.styles.ts
|
|
14958
15033
|
import { css as css53 } from "@emotion/react";
|
|
@@ -14983,7 +15058,7 @@ var descriptionListValueStyles = css53`
|
|
|
14983
15058
|
|
|
14984
15059
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
14985
15060
|
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14986
|
-
var DescriptionList =
|
|
15061
|
+
var DescriptionList = React14.forwardRef(
|
|
14987
15062
|
({ items, variant = "horizontal", ...listProps }, ref) => {
|
|
14988
15063
|
if (!(items == null ? void 0 : items.length)) {
|
|
14989
15064
|
return null;
|
|
@@ -14994,7 +15069,7 @@ var DescriptionList = React15.forwardRef(
|
|
|
14994
15069
|
ref,
|
|
14995
15070
|
css: variant === "vertical" ? descriptionListVertical : descriptionListHorizontal,
|
|
14996
15071
|
...listProps,
|
|
14997
|
-
children: items == null ? void 0 : items.map(({ label, value }) => /* @__PURE__ */ jsxs40(
|
|
15072
|
+
children: items == null ? void 0 : items.map(({ label, value }) => /* @__PURE__ */ jsxs40(React14.Fragment, { children: [
|
|
14998
15073
|
/* @__PURE__ */ jsx63("dt", { css: descriptionListLabelStyles, children: label }),
|
|
14999
15074
|
/* @__PURE__ */ jsx63("dd", { css: descriptionListValueStyles, children: typeof value === "boolean" ? /* @__PURE__ */ jsx63(DescriptionListValueBoolean, { value }) : value })
|
|
15000
15075
|
] }, label))
|
|
@@ -15010,7 +15085,7 @@ var DescriptionListValueBoolean = ({ value }) => {
|
|
|
15010
15085
|
};
|
|
15011
15086
|
|
|
15012
15087
|
// src/components/Details/Details.tsx
|
|
15013
|
-
import * as
|
|
15088
|
+
import * as React15 from "react";
|
|
15014
15089
|
|
|
15015
15090
|
// src/components/Details/Details.styles.ts
|
|
15016
15091
|
import { css as css54 } from "@emotion/react";
|
|
@@ -15069,9 +15144,9 @@ var Details = ({
|
|
|
15069
15144
|
onChange,
|
|
15070
15145
|
...props
|
|
15071
15146
|
}) => {
|
|
15072
|
-
const detailsRef =
|
|
15073
|
-
const [internalOpen, setInternalOpen] =
|
|
15074
|
-
const memoizedIsOpen =
|
|
15147
|
+
const detailsRef = React15.useRef(null);
|
|
15148
|
+
const [internalOpen, setInternalOpen] = React15.useState(isOpenByDefault);
|
|
15149
|
+
const memoizedIsOpen = React15.useMemo(() => {
|
|
15075
15150
|
return isOpen !== void 0 ? isOpen : internalOpen;
|
|
15076
15151
|
}, [internalOpen, isOpen]);
|
|
15077
15152
|
return /* @__PURE__ */ jsxs41(
|
|
@@ -15114,7 +15189,7 @@ var Details = ({
|
|
|
15114
15189
|
|
|
15115
15190
|
// src/components/Drawer/Drawer.tsx
|
|
15116
15191
|
import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
|
|
15117
|
-
import
|
|
15192
|
+
import React17, { createContext as createContext4, useContext as useContext5, useEffect as useEffect5, useRef as useRef4, useState as useState9 } from "react";
|
|
15118
15193
|
import { createPortal } from "react-dom";
|
|
15119
15194
|
|
|
15120
15195
|
// src/components/Drawer/Drawer.styles.ts
|
|
@@ -15359,7 +15434,7 @@ var CurrentDrawerContext = createContext4({});
|
|
|
15359
15434
|
var useCurrentDrawer = () => {
|
|
15360
15435
|
return useContext5(CurrentDrawerContext);
|
|
15361
15436
|
};
|
|
15362
|
-
var Drawer =
|
|
15437
|
+
var Drawer = React17.forwardRef(
|
|
15363
15438
|
({ minWidth, maxWidth, position, leftAligned, ...drawerProps }, ref) => {
|
|
15364
15439
|
var _a;
|
|
15365
15440
|
const { stackId: inheritedStackId } = useCurrentDrawer();
|
|
@@ -15621,7 +15696,7 @@ var TakeoverDrawerRenderer = (props) => {
|
|
|
15621
15696
|
};
|
|
15622
15697
|
|
|
15623
15698
|
// src/components/IconButton/IconButton.tsx
|
|
15624
|
-
import { forwardRef as
|
|
15699
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
15625
15700
|
|
|
15626
15701
|
// src/components/IconButton/IconButton.styles.ts
|
|
15627
15702
|
import { css as css57 } from "@emotion/react";
|
|
@@ -15652,7 +15727,7 @@ var variants = {
|
|
|
15652
15727
|
|
|
15653
15728
|
// src/components/IconButton/IconButton.tsx
|
|
15654
15729
|
import { jsx as jsx70 } from "@emotion/react/jsx-runtime";
|
|
15655
|
-
var IconButton =
|
|
15730
|
+
var IconButton = forwardRef13(
|
|
15656
15731
|
({ children, size = "md", variant = "square", ...props }, ref) => {
|
|
15657
15732
|
return /* @__PURE__ */ jsx70(Button, { ref, css: [iconButton, variants[variant], sizes[size]], ...props, children });
|
|
15658
15733
|
}
|
|
@@ -17254,7 +17329,7 @@ var MediaCard = ({
|
|
|
17254
17329
|
|
|
17255
17330
|
// src/components/Modal/Modal.tsx
|
|
17256
17331
|
import { CgClose as CgClose5 } from "@react-icons/all-files/cg/CgClose";
|
|
17257
|
-
import
|
|
17332
|
+
import React20, { useEffect as useEffect11, useRef as useRef6 } from "react";
|
|
17258
17333
|
|
|
17259
17334
|
// src/components/Modal/Modal.styles.ts
|
|
17260
17335
|
import { css as css76 } from "@emotion/react";
|
|
@@ -17324,7 +17399,9 @@ var modalContentStyles = css76`
|
|
|
17324
17399
|
position: relative;
|
|
17325
17400
|
flex: 1;
|
|
17326
17401
|
overflow: auto;
|
|
17402
|
+
background-color: white;
|
|
17327
17403
|
padding: var(--spacing-md);
|
|
17404
|
+
border-radius: var(--rounded-sm);
|
|
17328
17405
|
${scrollbarStyles}
|
|
17329
17406
|
`;
|
|
17330
17407
|
var modalDialogWrapper = css76`
|
|
@@ -17341,7 +17418,7 @@ var modalDialogInnerStyles = css76`
|
|
|
17341
17418
|
import { jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
17342
17419
|
var defaultModalWidth = "75rem";
|
|
17343
17420
|
var defaultModalHeight = "51rem";
|
|
17344
|
-
var Modal =
|
|
17421
|
+
var Modal = React20.forwardRef(
|
|
17345
17422
|
({
|
|
17346
17423
|
header: header2,
|
|
17347
17424
|
children,
|
|
@@ -17351,6 +17428,7 @@ var Modal = React21.forwardRef(
|
|
|
17351
17428
|
buttonGroup,
|
|
17352
17429
|
modalSize = "lg",
|
|
17353
17430
|
withoutContentPadding = false,
|
|
17431
|
+
withoutContentBackground = false,
|
|
17354
17432
|
...modalProps
|
|
17355
17433
|
}, ref) => {
|
|
17356
17434
|
const dialogRef = useRef6(null);
|
|
@@ -17422,7 +17500,17 @@ var Modal = React21.forwardRef(
|
|
|
17422
17500
|
}
|
|
17423
17501
|
)
|
|
17424
17502
|
] }),
|
|
17425
|
-
/* @__PURE__ */ jsx95(
|
|
17503
|
+
/* @__PURE__ */ jsx95(
|
|
17504
|
+
"div",
|
|
17505
|
+
{
|
|
17506
|
+
css: [
|
|
17507
|
+
modalContentStyles,
|
|
17508
|
+
!withoutContentPadding ? null : { padding: 0 },
|
|
17509
|
+
!withoutContentBackground ? null : { background: "transparent" }
|
|
17510
|
+
],
|
|
17511
|
+
children
|
|
17512
|
+
}
|
|
17513
|
+
),
|
|
17426
17514
|
buttonGroup ? /* @__PURE__ */ jsx95(HorizontalRhythm, { children: buttonGroup }) : null
|
|
17427
17515
|
]
|
|
17428
17516
|
}
|
|
@@ -17434,9 +17522,9 @@ var Modal = React21.forwardRef(
|
|
|
17434
17522
|
Modal.displayName = "Modal";
|
|
17435
17523
|
|
|
17436
17524
|
// src/components/Modal/ModalDialog.tsx
|
|
17437
|
-
import { forwardRef as
|
|
17525
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
17438
17526
|
import { jsx as jsx96, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
17439
|
-
var ModalDialog =
|
|
17527
|
+
var ModalDialog = forwardRef14(
|
|
17440
17528
|
({ header: header2, buttonGroup, modalSize = "lg", children, height = "auto", onRequestClose, ...props }, ref) => {
|
|
17441
17529
|
return /* @__PURE__ */ jsx96(
|
|
17442
17530
|
Modal,
|
|
@@ -17446,6 +17534,7 @@ var ModalDialog = forwardRef13(
|
|
|
17446
17534
|
ref,
|
|
17447
17535
|
onRequestClose,
|
|
17448
17536
|
height,
|
|
17537
|
+
withoutContentBackground: true,
|
|
17449
17538
|
withoutContentPadding: true,
|
|
17450
17539
|
css: modalDialogInnerStyles,
|
|
17451
17540
|
width: "",
|
|
@@ -17647,7 +17736,7 @@ var input3 = css79`
|
|
|
17647
17736
|
border-radius: var(--rounded-sm);
|
|
17648
17737
|
color: var(--gray-700);
|
|
17649
17738
|
font-size: var(--fs-sm);
|
|
17650
|
-
line-height: 1.
|
|
17739
|
+
line-height: 1.5;
|
|
17651
17740
|
min-height: 2rem;
|
|
17652
17741
|
padding: var(--spacing-sm);
|
|
17653
17742
|
width: 100%;
|
|
@@ -17971,7 +18060,7 @@ var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
|
17971
18060
|
};
|
|
17972
18061
|
|
|
17973
18062
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
17974
|
-
import { forwardRef as
|
|
18063
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
17975
18064
|
|
|
17976
18065
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
17977
18066
|
import { css as css81 } from "@emotion/react";
|
|
@@ -17995,7 +18084,7 @@ var fieldsetLegend2 = css81`
|
|
|
17995
18084
|
|
|
17996
18085
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
17997
18086
|
import { jsx as jsx101, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17998
|
-
var ParameterGroup =
|
|
18087
|
+
var ParameterGroup = forwardRef15(
|
|
17999
18088
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
18000
18089
|
return /* @__PURE__ */ jsxs69("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
18001
18090
|
/* @__PURE__ */ jsx101("legend", { css: fieldsetLegend2, children: legend }),
|
|
@@ -18005,7 +18094,7 @@ var ParameterGroup = forwardRef14(
|
|
|
18005
18094
|
);
|
|
18006
18095
|
|
|
18007
18096
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
18008
|
-
import { forwardRef as
|
|
18097
|
+
import { forwardRef as forwardRef17, useDeferredValue } from "react";
|
|
18009
18098
|
|
|
18010
18099
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
18011
18100
|
import { useState as useState12 } from "react";
|
|
@@ -18092,9 +18181,9 @@ var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
|
18092
18181
|
};
|
|
18093
18182
|
|
|
18094
18183
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
18095
|
-
import { forwardRef as
|
|
18184
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
18096
18185
|
import { jsx as jsx104 } from "@emotion/react/jsx-runtime";
|
|
18097
|
-
var ParameterMenuButton =
|
|
18186
|
+
var ParameterMenuButton = forwardRef16(
|
|
18098
18187
|
({ label, children }, ref) => {
|
|
18099
18188
|
return /* @__PURE__ */ jsx104(
|
|
18100
18189
|
Menu,
|
|
@@ -18270,7 +18359,7 @@ var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx105(Tooltip, { title
|
|
|
18270
18359
|
|
|
18271
18360
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
18272
18361
|
import { Fragment as Fragment14, jsx as jsx106, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18273
|
-
var ParameterImage =
|
|
18362
|
+
var ParameterImage = forwardRef17(
|
|
18274
18363
|
({ children, ...props }, ref) => {
|
|
18275
18364
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18276
18365
|
return /* @__PURE__ */ jsxs72(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
@@ -18279,7 +18368,7 @@ var ParameterImage = forwardRef16(
|
|
|
18279
18368
|
] });
|
|
18280
18369
|
}
|
|
18281
18370
|
);
|
|
18282
|
-
var ParameterImageInner =
|
|
18371
|
+
var ParameterImageInner = forwardRef17((props, ref) => {
|
|
18283
18372
|
const { value } = props;
|
|
18284
18373
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
18285
18374
|
const deferredValue = useDeferredValue(value);
|
|
@@ -18301,13 +18390,13 @@ var ParameterImageInner = forwardRef16((props, ref) => {
|
|
|
18301
18390
|
});
|
|
18302
18391
|
|
|
18303
18392
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
18304
|
-
import { forwardRef as
|
|
18393
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
18305
18394
|
import { jsx as jsx107 } from "@emotion/react/jsx-runtime";
|
|
18306
|
-
var ParameterInput =
|
|
18395
|
+
var ParameterInput = forwardRef18((props, ref) => {
|
|
18307
18396
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18308
18397
|
return /* @__PURE__ */ jsx107(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx107(ParameterInputInner, { ref, ...innerProps }) });
|
|
18309
18398
|
});
|
|
18310
|
-
var ParameterInputInner =
|
|
18399
|
+
var ParameterInputInner = forwardRef18(
|
|
18311
18400
|
({ ...props }, ref) => {
|
|
18312
18401
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18313
18402
|
return /* @__PURE__ */ jsx107(
|
|
@@ -18326,9 +18415,9 @@ var ParameterInputInner = forwardRef17(
|
|
|
18326
18415
|
);
|
|
18327
18416
|
|
|
18328
18417
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
18329
|
-
import { forwardRef as
|
|
18418
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
18330
18419
|
import { jsx as jsx108, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18331
|
-
var ParameterLink =
|
|
18420
|
+
var ParameterLink = forwardRef19(
|
|
18332
18421
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
18333
18422
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18334
18423
|
return /* @__PURE__ */ jsx108(
|
|
@@ -18351,7 +18440,7 @@ var ParameterLink = forwardRef18(
|
|
|
18351
18440
|
);
|
|
18352
18441
|
}
|
|
18353
18442
|
);
|
|
18354
|
-
var ParameterLinkInner =
|
|
18443
|
+
var ParameterLinkInner = forwardRef19(
|
|
18355
18444
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
18356
18445
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18357
18446
|
if (!props.value)
|
|
@@ -18397,8 +18486,60 @@ var ParameterLinkInner = forwardRef18(
|
|
|
18397
18486
|
}
|
|
18398
18487
|
);
|
|
18399
18488
|
|
|
18489
|
+
// src/components/ParameterInputs/ParameterMultiSelect.tsx
|
|
18490
|
+
import { jsx as jsx109 } from "@emotion/react/jsx-runtime";
|
|
18491
|
+
var ParameterMultiSelect = ({ disabled: disabled2 = false, ...props }) => {
|
|
18492
|
+
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18493
|
+
return /* @__PURE__ */ jsx109(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx109(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
|
|
18494
|
+
};
|
|
18495
|
+
var ParameterMultiSelectInner = (props) => {
|
|
18496
|
+
var _a;
|
|
18497
|
+
const { id, label } = useParameterShell();
|
|
18498
|
+
return /* @__PURE__ */ jsx109(
|
|
18499
|
+
InputComboBox,
|
|
18500
|
+
{
|
|
18501
|
+
...props,
|
|
18502
|
+
isMulti: true,
|
|
18503
|
+
isClearable: (_a = props.isClearable) != null ? _a : false,
|
|
18504
|
+
id,
|
|
18505
|
+
"aria-label": label,
|
|
18506
|
+
classNamePrefix: "parameter-multi-select-combobox",
|
|
18507
|
+
styles: {
|
|
18508
|
+
valueContainer: (base) => ({
|
|
18509
|
+
...base,
|
|
18510
|
+
padding: "0 var(--spacing-sm)",
|
|
18511
|
+
fontSize: "var(--fs-sm)"
|
|
18512
|
+
}),
|
|
18513
|
+
control: (base, state) => ({
|
|
18514
|
+
...base,
|
|
18515
|
+
padding: "var(--spacing-sm) 0",
|
|
18516
|
+
border: state.isFocused ? "1px solid var(--accent-dark-hover)" : "1px solid var(--gray-200)",
|
|
18517
|
+
borderRadius: "var(--rounded-sm)",
|
|
18518
|
+
minHeight: "39px",
|
|
18519
|
+
// matches the min-height of other input fields
|
|
18520
|
+
transition: "border-color var(--duration-xfast) ease-in-out",
|
|
18521
|
+
outline: "none",
|
|
18522
|
+
"&:hover": {
|
|
18523
|
+
boxShadow: "none",
|
|
18524
|
+
borderColor: "var(--accent-dark-hover)",
|
|
18525
|
+
outline: "none"
|
|
18526
|
+
},
|
|
18527
|
+
"&:focus-within": {
|
|
18528
|
+
borderColor: "var(--accent-dark-hover)",
|
|
18529
|
+
outline: "none"
|
|
18530
|
+
}
|
|
18531
|
+
}),
|
|
18532
|
+
indicatorsContainer: (base) => ({
|
|
18533
|
+
...base,
|
|
18534
|
+
padding: "0"
|
|
18535
|
+
})
|
|
18536
|
+
}
|
|
18537
|
+
}
|
|
18538
|
+
);
|
|
18539
|
+
};
|
|
18540
|
+
|
|
18400
18541
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
18401
|
-
import { Fragment as Fragment15, jsx as
|
|
18542
|
+
import { Fragment as Fragment15, jsx as jsx110, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18402
18543
|
var ParameterNameAndPublicIdInput = ({
|
|
18403
18544
|
id,
|
|
18404
18545
|
onBlur,
|
|
@@ -18425,7 +18566,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18425
18566
|
};
|
|
18426
18567
|
autoFocus == null ? void 0 : autoFocus();
|
|
18427
18568
|
return /* @__PURE__ */ jsxs74(Fragment15, { children: [
|
|
18428
|
-
/* @__PURE__ */
|
|
18569
|
+
/* @__PURE__ */ jsx110(
|
|
18429
18570
|
ParameterInput,
|
|
18430
18571
|
{
|
|
18431
18572
|
id: nameIdField,
|
|
@@ -18444,7 +18585,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18444
18585
|
value: values[nameIdField]
|
|
18445
18586
|
}
|
|
18446
18587
|
),
|
|
18447
|
-
/* @__PURE__ */
|
|
18588
|
+
/* @__PURE__ */ jsx110(
|
|
18448
18589
|
ParameterInput,
|
|
18449
18590
|
{
|
|
18450
18591
|
id: publicIdFieldName,
|
|
@@ -18458,11 +18599,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18458
18599
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
18459
18600
|
placeholder: publicIdPlaceholderText,
|
|
18460
18601
|
errorMessage: publicIdError,
|
|
18461
|
-
menuItems: /* @__PURE__ */
|
|
18602
|
+
menuItems: /* @__PURE__ */ jsx110(
|
|
18462
18603
|
MenuItem,
|
|
18463
18604
|
{
|
|
18464
18605
|
disabled: !values[publicIdFieldName],
|
|
18465
|
-
icon: /* @__PURE__ */
|
|
18606
|
+
icon: /* @__PURE__ */ jsx110(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
18466
18607
|
onClick: handleCopyPidFieldValue,
|
|
18467
18608
|
children: "Copy"
|
|
18468
18609
|
}
|
|
@@ -18470,7 +18611,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18470
18611
|
value: values[publicIdFieldName]
|
|
18471
18612
|
}
|
|
18472
18613
|
),
|
|
18473
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
18614
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx110(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
18474
18615
|
] });
|
|
18475
18616
|
};
|
|
18476
18617
|
|
|
@@ -18860,7 +19001,7 @@ var getSelectedNode = (selection) => {
|
|
|
18860
19001
|
};
|
|
18861
19002
|
|
|
18862
19003
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
18863
|
-
import { Fragment as Fragment16, jsx as
|
|
19004
|
+
import { Fragment as Fragment16, jsx as jsx111, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
18864
19005
|
var isProjectMapLinkValue = (value) => {
|
|
18865
19006
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
18866
19007
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -19304,7 +19445,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19304
19445
|
});
|
|
19305
19446
|
};
|
|
19306
19447
|
return /* @__PURE__ */ jsxs75(Fragment16, { children: [
|
|
19307
|
-
/* @__PURE__ */
|
|
19448
|
+
/* @__PURE__ */ jsx111(
|
|
19308
19449
|
NodeEventPlugin,
|
|
19309
19450
|
{
|
|
19310
19451
|
nodeType: LinkNode,
|
|
@@ -19314,7 +19455,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19314
19455
|
}
|
|
19315
19456
|
}
|
|
19316
19457
|
),
|
|
19317
|
-
linkPopoverState ? /* @__PURE__ */
|
|
19458
|
+
linkPopoverState ? /* @__PURE__ */ jsx111(
|
|
19318
19459
|
"div",
|
|
19319
19460
|
{
|
|
19320
19461
|
css: linkPopover,
|
|
@@ -19324,7 +19465,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19324
19465
|
},
|
|
19325
19466
|
ref: linkPopoverElRef,
|
|
19326
19467
|
children: /* @__PURE__ */ jsxs75("div", { css: linkPopoverContainer, children: [
|
|
19327
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
19468
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx111(
|
|
19328
19469
|
"a",
|
|
19329
19470
|
{
|
|
19330
19471
|
href: parsePath(
|
|
@@ -19336,7 +19477,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19336
19477
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
19337
19478
|
}
|
|
19338
19479
|
),
|
|
19339
|
-
/* @__PURE__ */
|
|
19480
|
+
/* @__PURE__ */ jsx111(
|
|
19340
19481
|
Button,
|
|
19341
19482
|
{
|
|
19342
19483
|
size: "xs",
|
|
@@ -19344,7 +19485,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19344
19485
|
onEditLinkNode(linkPopoverState.node);
|
|
19345
19486
|
},
|
|
19346
19487
|
buttonType: "ghost",
|
|
19347
|
-
children: /* @__PURE__ */
|
|
19488
|
+
children: /* @__PURE__ */ jsx111(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
19348
19489
|
}
|
|
19349
19490
|
)
|
|
19350
19491
|
] })
|
|
@@ -19369,7 +19510,7 @@ import {
|
|
|
19369
19510
|
INDENT_CONTENT_COMMAND
|
|
19370
19511
|
} from "lexical";
|
|
19371
19512
|
import { useEffect as useEffect14 } from "react";
|
|
19372
|
-
import { jsx as
|
|
19513
|
+
import { jsx as jsx112 } from "@emotion/react/jsx-runtime";
|
|
19373
19514
|
function isIndentPermitted(maxDepth) {
|
|
19374
19515
|
const selection = $getSelection2();
|
|
19375
19516
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -19399,7 +19540,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
19399
19540
|
COMMAND_PRIORITY_CRITICAL
|
|
19400
19541
|
);
|
|
19401
19542
|
}, [editor, maxDepth]);
|
|
19402
|
-
return /* @__PURE__ */
|
|
19543
|
+
return /* @__PURE__ */ jsx112(TabIndentationPlugin, {});
|
|
19403
19544
|
}
|
|
19404
19545
|
|
|
19405
19546
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
@@ -19426,7 +19567,7 @@ import {
|
|
|
19426
19567
|
SELECTION_CHANGE_COMMAND
|
|
19427
19568
|
} from "lexical";
|
|
19428
19569
|
import { useCallback as useCallback9, useEffect as useEffect15, useMemo as useMemo4, useState as useState15 } from "react";
|
|
19429
|
-
import { Fragment as Fragment17, jsx as
|
|
19570
|
+
import { Fragment as Fragment17, jsx as jsx113, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19430
19571
|
var toolbar = css87`
|
|
19431
19572
|
background: var(--gray-50);
|
|
19432
19573
|
border-radius: var(--rounded-base);
|
|
@@ -19478,7 +19619,7 @@ var toolbarChevron = css87`
|
|
|
19478
19619
|
margin-left: var(--spacing-xs);
|
|
19479
19620
|
`;
|
|
19480
19621
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
19481
|
-
return /* @__PURE__ */
|
|
19622
|
+
return /* @__PURE__ */ jsx113(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
19482
19623
|
};
|
|
19483
19624
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
19484
19625
|
["bold", "format-bold"],
|
|
@@ -19595,7 +19736,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19595
19736
|
menuTrigger: /* @__PURE__ */ jsxs76("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
19596
19737
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
19597
19738
|
" ",
|
|
19598
|
-
/* @__PURE__ */
|
|
19739
|
+
/* @__PURE__ */ jsx113(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
19599
19740
|
] }),
|
|
19600
19741
|
placement: "bottom-start",
|
|
19601
19742
|
children: [
|
|
@@ -19605,7 +19746,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19605
19746
|
type: "paragraph"
|
|
19606
19747
|
},
|
|
19607
19748
|
...visibleTextualElements
|
|
19608
|
-
].map((element) => /* @__PURE__ */
|
|
19749
|
+
].map((element) => /* @__PURE__ */ jsx113(
|
|
19609
19750
|
MenuItem,
|
|
19610
19751
|
{
|
|
19611
19752
|
onClick: () => {
|
|
@@ -19615,12 +19756,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19615
19756
|
},
|
|
19616
19757
|
element.type
|
|
19617
19758
|
)),
|
|
19618
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
19759
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx113(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
19619
19760
|
]
|
|
19620
19761
|
}
|
|
19621
19762
|
),
|
|
19622
19763
|
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs76("div", { css: toolbarGroup, children: [
|
|
19623
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
19764
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx113(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx113(
|
|
19624
19765
|
"button",
|
|
19625
19766
|
{
|
|
19626
19767
|
onClick: () => {
|
|
@@ -19630,16 +19771,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19630
19771
|
richTextToolbarButton,
|
|
19631
19772
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
19632
19773
|
],
|
|
19633
|
-
children: /* @__PURE__ */
|
|
19774
|
+
children: /* @__PURE__ */ jsx113(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
19634
19775
|
}
|
|
19635
19776
|
) }, format.type)),
|
|
19636
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
19777
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx113(
|
|
19637
19778
|
Menu,
|
|
19638
19779
|
{
|
|
19639
19780
|
menuLabel: "Alternative text styles",
|
|
19640
|
-
menuTrigger: /* @__PURE__ */
|
|
19781
|
+
menuTrigger: /* @__PURE__ */ jsx113("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx113(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
19641
19782
|
placement: "bottom-start",
|
|
19642
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
19783
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx113(
|
|
19643
19784
|
MenuItem,
|
|
19644
19785
|
{
|
|
19645
19786
|
onClick: () => {
|
|
@@ -19653,18 +19794,18 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19653
19794
|
) : null
|
|
19654
19795
|
] }) : null,
|
|
19655
19796
|
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs76("div", { css: toolbarGroup, children: [
|
|
19656
|
-
linkElementVisible ? /* @__PURE__ */
|
|
19797
|
+
linkElementVisible ? /* @__PURE__ */ jsx113(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx113(
|
|
19657
19798
|
"button",
|
|
19658
19799
|
{
|
|
19659
19800
|
onClick: () => {
|
|
19660
19801
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
19661
19802
|
},
|
|
19662
19803
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
19663
|
-
children: /* @__PURE__ */
|
|
19804
|
+
children: /* @__PURE__ */ jsx113(RichTextToolbarIcon, { icon: "link" })
|
|
19664
19805
|
}
|
|
19665
19806
|
) }) : null,
|
|
19666
19807
|
visibleLists.size > 0 ? /* @__PURE__ */ jsxs76(Fragment17, { children: [
|
|
19667
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
19808
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx113(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx113(
|
|
19668
19809
|
"button",
|
|
19669
19810
|
{
|
|
19670
19811
|
onClick: () => {
|
|
@@ -19674,10 +19815,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19674
19815
|
richTextToolbarButton,
|
|
19675
19816
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
19676
19817
|
],
|
|
19677
|
-
children: /* @__PURE__ */
|
|
19818
|
+
children: /* @__PURE__ */ jsx113(RichTextToolbarIcon, { icon: "layout-list" })
|
|
19678
19819
|
}
|
|
19679
19820
|
) }) : null,
|
|
19680
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
19821
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx113(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx113(
|
|
19681
19822
|
"button",
|
|
19682
19823
|
{
|
|
19683
19824
|
onClick: () => {
|
|
@@ -19687,32 +19828,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19687
19828
|
richTextToolbarButton,
|
|
19688
19829
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
19689
19830
|
],
|
|
19690
|
-
children: /* @__PURE__ */
|
|
19831
|
+
children: /* @__PURE__ */ jsx113(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
19691
19832
|
}
|
|
19692
19833
|
) }) : null
|
|
19693
19834
|
] }) : null,
|
|
19694
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
19835
|
+
quoteElementVisible ? /* @__PURE__ */ jsx113(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx113(
|
|
19695
19836
|
"button",
|
|
19696
19837
|
{
|
|
19697
19838
|
onClick: () => {
|
|
19698
19839
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
19699
19840
|
},
|
|
19700
19841
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
19701
|
-
children: /* @__PURE__ */
|
|
19842
|
+
children: /* @__PURE__ */ jsx113(RichTextToolbarIcon, { icon: "quote" })
|
|
19702
19843
|
}
|
|
19703
19844
|
) }) : null,
|
|
19704
|
-
codeElementVisible ? /* @__PURE__ */
|
|
19845
|
+
codeElementVisible ? /* @__PURE__ */ jsx113(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx113(
|
|
19705
19846
|
"button",
|
|
19706
19847
|
{
|
|
19707
19848
|
onClick: () => {
|
|
19708
19849
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
19709
19850
|
},
|
|
19710
19851
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
19711
|
-
children: /* @__PURE__ */
|
|
19852
|
+
children: /* @__PURE__ */ jsx113(RichTextToolbarIcon, { icon: "code-slash" })
|
|
19712
19853
|
}
|
|
19713
19854
|
) }) : null
|
|
19714
19855
|
] }) : null,
|
|
19715
|
-
customControls ? /* @__PURE__ */
|
|
19856
|
+
customControls ? /* @__PURE__ */ jsx113("div", { css: toolbarGroup, children: customControls }) : null
|
|
19716
19857
|
] });
|
|
19717
19858
|
};
|
|
19718
19859
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -19826,7 +19967,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
19826
19967
|
};
|
|
19827
19968
|
|
|
19828
19969
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
19829
|
-
import { Fragment as Fragment18, jsx as
|
|
19970
|
+
import { Fragment as Fragment18, jsx as jsx114, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
19830
19971
|
var ParameterRichText = ({
|
|
19831
19972
|
label,
|
|
19832
19973
|
labelLeadingIcon,
|
|
@@ -19865,7 +20006,7 @@ var ParameterRichText = ({
|
|
|
19865
20006
|
captionTestId,
|
|
19866
20007
|
menuItems,
|
|
19867
20008
|
children: [
|
|
19868
|
-
/* @__PURE__ */
|
|
20009
|
+
/* @__PURE__ */ jsx114(
|
|
19869
20010
|
ParameterRichTextInner,
|
|
19870
20011
|
{
|
|
19871
20012
|
value,
|
|
@@ -19883,7 +20024,7 @@ var ParameterRichText = ({
|
|
|
19883
20024
|
children
|
|
19884
20025
|
}
|
|
19885
20026
|
),
|
|
19886
|
-
menuItems ? /* @__PURE__ */
|
|
20027
|
+
menuItems ? /* @__PURE__ */ jsx114(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx114(Fragment18, { children: menuItems }) }) : null
|
|
19887
20028
|
]
|
|
19888
20029
|
}
|
|
19889
20030
|
);
|
|
@@ -19995,7 +20136,7 @@ var ParameterRichTextInner = ({
|
|
|
19995
20136
|
editable: !readOnly
|
|
19996
20137
|
};
|
|
19997
20138
|
return /* @__PURE__ */ jsxs77(Fragment18, { children: [
|
|
19998
|
-
/* @__PURE__ */
|
|
20139
|
+
/* @__PURE__ */ jsx114("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx114(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx114(
|
|
19999
20140
|
RichText,
|
|
20000
20141
|
{
|
|
20001
20142
|
onChange,
|
|
@@ -20055,19 +20196,19 @@ var RichText = ({
|
|
|
20055
20196
|
editor.setEditable(!readOnly);
|
|
20056
20197
|
}, [editor, readOnly]);
|
|
20057
20198
|
return /* @__PURE__ */ jsxs77(Fragment18, { children: [
|
|
20058
|
-
readOnly ? null : /* @__PURE__ */
|
|
20199
|
+
readOnly ? null : /* @__PURE__ */ jsx114(RichTextToolbar_default, { config, customControls }),
|
|
20059
20200
|
/* @__PURE__ */ jsxs77("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
20060
|
-
/* @__PURE__ */
|
|
20201
|
+
/* @__PURE__ */ jsx114(
|
|
20061
20202
|
RichTextPlugin,
|
|
20062
20203
|
{
|
|
20063
|
-
contentEditable: /* @__PURE__ */
|
|
20064
|
-
placeholder: /* @__PURE__ */
|
|
20204
|
+
contentEditable: /* @__PURE__ */ jsx114(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
20205
|
+
placeholder: /* @__PURE__ */ jsx114("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
20065
20206
|
ErrorBoundary: LexicalErrorBoundary
|
|
20066
20207
|
}
|
|
20067
20208
|
),
|
|
20068
|
-
/* @__PURE__ */
|
|
20069
|
-
readOnly ? null : /* @__PURE__ */
|
|
20070
|
-
/* @__PURE__ */
|
|
20209
|
+
/* @__PURE__ */ jsx114(ListPlugin, {}),
|
|
20210
|
+
readOnly ? null : /* @__PURE__ */ jsx114(HistoryPlugin, {}),
|
|
20211
|
+
/* @__PURE__ */ jsx114(
|
|
20071
20212
|
LinkNodePlugin,
|
|
20072
20213
|
{
|
|
20073
20214
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -20077,24 +20218,24 @@ var RichText = ({
|
|
|
20077
20218
|
} : void 0
|
|
20078
20219
|
}
|
|
20079
20220
|
),
|
|
20080
|
-
/* @__PURE__ */
|
|
20081
|
-
/* @__PURE__ */
|
|
20082
|
-
/* @__PURE__ */
|
|
20083
|
-
/* @__PURE__ */
|
|
20221
|
+
/* @__PURE__ */ jsx114(ListIndentPlugin, { maxDepth: 4 }),
|
|
20222
|
+
/* @__PURE__ */ jsx114(DisableStylesPlugin, {}),
|
|
20223
|
+
/* @__PURE__ */ jsx114(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
20224
|
+
/* @__PURE__ */ jsx114(Fragment18, { children })
|
|
20084
20225
|
] })
|
|
20085
20226
|
] });
|
|
20086
20227
|
};
|
|
20087
20228
|
|
|
20088
20229
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
20089
|
-
import { forwardRef as
|
|
20090
|
-
import { jsx as
|
|
20091
|
-
var ParameterSelect =
|
|
20230
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
20231
|
+
import { jsx as jsx115, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
20232
|
+
var ParameterSelect = forwardRef20(
|
|
20092
20233
|
({ defaultOption, options, ...props }, ref) => {
|
|
20093
20234
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20094
|
-
return /* @__PURE__ */
|
|
20235
|
+
return /* @__PURE__ */ jsx115(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx115(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
20095
20236
|
}
|
|
20096
20237
|
);
|
|
20097
|
-
var ParameterSelectInner =
|
|
20238
|
+
var ParameterSelectInner = forwardRef20(
|
|
20098
20239
|
({ defaultOption, options, ...props }, ref) => {
|
|
20099
20240
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20100
20241
|
return /* @__PURE__ */ jsxs78(
|
|
@@ -20106,10 +20247,10 @@ var ParameterSelectInner = forwardRef19(
|
|
|
20106
20247
|
ref,
|
|
20107
20248
|
...props,
|
|
20108
20249
|
children: [
|
|
20109
|
-
defaultOption ? /* @__PURE__ */
|
|
20250
|
+
defaultOption ? /* @__PURE__ */ jsx115("option", { value: "", children: defaultOption }) : null,
|
|
20110
20251
|
options.map((option) => {
|
|
20111
20252
|
var _a;
|
|
20112
|
-
return /* @__PURE__ */
|
|
20253
|
+
return /* @__PURE__ */ jsx115("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
20113
20254
|
})
|
|
20114
20255
|
]
|
|
20115
20256
|
}
|
|
@@ -20118,15 +20259,15 @@ var ParameterSelectInner = forwardRef19(
|
|
|
20118
20259
|
);
|
|
20119
20260
|
|
|
20120
20261
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
20121
|
-
import { forwardRef as
|
|
20122
|
-
import { jsx as
|
|
20123
|
-
var ParameterTextarea =
|
|
20262
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
20263
|
+
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
20264
|
+
var ParameterTextarea = forwardRef21((props, ref) => {
|
|
20124
20265
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20125
|
-
return /* @__PURE__ */
|
|
20266
|
+
return /* @__PURE__ */ jsx116(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx116(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
20126
20267
|
});
|
|
20127
|
-
var ParameterTextareaInner =
|
|
20268
|
+
var ParameterTextareaInner = forwardRef21(({ ...props }, ref) => {
|
|
20128
20269
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20129
|
-
return /* @__PURE__ */
|
|
20270
|
+
return /* @__PURE__ */ jsx116(
|
|
20130
20271
|
"textarea",
|
|
20131
20272
|
{
|
|
20132
20273
|
css: [input3, textarea2],
|
|
@@ -20139,18 +20280,18 @@ var ParameterTextareaInner = forwardRef20(({ ...props }, ref) => {
|
|
|
20139
20280
|
});
|
|
20140
20281
|
|
|
20141
20282
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
20142
|
-
import { forwardRef as
|
|
20143
|
-
import { jsx as
|
|
20144
|
-
var ParameterToggle =
|
|
20283
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
20284
|
+
import { jsx as jsx117, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
20285
|
+
var ParameterToggle = forwardRef22((props, ref) => {
|
|
20145
20286
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20146
|
-
return /* @__PURE__ */
|
|
20287
|
+
return /* @__PURE__ */ jsx117(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx117(ParameterToggleInner, { ref, ...innerProps }) });
|
|
20147
20288
|
});
|
|
20148
|
-
var ParameterToggleInner =
|
|
20289
|
+
var ParameterToggleInner = forwardRef22(
|
|
20149
20290
|
({ children, ...props }, ref) => {
|
|
20150
20291
|
const { id, label } = useParameterShell();
|
|
20151
20292
|
return /* @__PURE__ */ jsxs79("label", { css: inputToggleLabel2, children: [
|
|
20152
|
-
/* @__PURE__ */
|
|
20153
|
-
/* @__PURE__ */
|
|
20293
|
+
/* @__PURE__ */ jsx117("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
20294
|
+
/* @__PURE__ */ jsx117("span", { css: inlineLabel2, children: label }),
|
|
20154
20295
|
children
|
|
20155
20296
|
] });
|
|
20156
20297
|
}
|
|
@@ -20211,7 +20352,7 @@ var bar = css89`
|
|
|
20211
20352
|
`;
|
|
20212
20353
|
|
|
20213
20354
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
20214
|
-
import { jsx as
|
|
20355
|
+
import { jsx as jsx118 } from "@emotion/react/jsx-runtime";
|
|
20215
20356
|
function ProgressBar({
|
|
20216
20357
|
current,
|
|
20217
20358
|
max,
|
|
@@ -20221,7 +20362,7 @@ function ProgressBar({
|
|
|
20221
20362
|
}) {
|
|
20222
20363
|
const valueNow = Math.min(current, max);
|
|
20223
20364
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
20224
|
-
return /* @__PURE__ */
|
|
20365
|
+
return /* @__PURE__ */ jsx118(
|
|
20225
20366
|
"div",
|
|
20226
20367
|
{
|
|
20227
20368
|
css: container3,
|
|
@@ -20232,7 +20373,7 @@ function ProgressBar({
|
|
|
20232
20373
|
"aria-valuemax": max,
|
|
20233
20374
|
"aria-valuenow": valueNow,
|
|
20234
20375
|
...props,
|
|
20235
|
-
children: /* @__PURE__ */
|
|
20376
|
+
children: /* @__PURE__ */ jsx118(
|
|
20236
20377
|
"div",
|
|
20237
20378
|
{
|
|
20238
20379
|
css: [
|
|
@@ -20272,7 +20413,7 @@ var progressListItemStyles = css90`
|
|
|
20272
20413
|
`;
|
|
20273
20414
|
|
|
20274
20415
|
// src/components/ProgressList/ProgressList.tsx
|
|
20275
|
-
import { jsx as
|
|
20416
|
+
import { jsx as jsx119, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
20276
20417
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
20277
20418
|
const itemsWithStatus = useMemo5(() => {
|
|
20278
20419
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -20286,8 +20427,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
20286
20427
|
return { ...item, status };
|
|
20287
20428
|
});
|
|
20288
20429
|
}, [items, inProgressId]);
|
|
20289
|
-
return /* @__PURE__ */
|
|
20290
|
-
return /* @__PURE__ */
|
|
20430
|
+
return /* @__PURE__ */ jsx119("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
20431
|
+
return /* @__PURE__ */ jsx119(
|
|
20291
20432
|
ProgressListItem,
|
|
20292
20433
|
{
|
|
20293
20434
|
status,
|
|
@@ -20346,10 +20487,10 @@ var ProgressListItem = ({
|
|
|
20346
20487
|
return colorPerStatus[status];
|
|
20347
20488
|
}, [status, error, errorLevel]);
|
|
20348
20489
|
return /* @__PURE__ */ jsxs80("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
20349
|
-
/* @__PURE__ */
|
|
20490
|
+
/* @__PURE__ */ jsx119(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx119("div", { children: /* @__PURE__ */ jsx119(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
20350
20491
|
/* @__PURE__ */ jsxs80("div", { children: [
|
|
20351
20492
|
children,
|
|
20352
|
-
/* @__PURE__ */
|
|
20493
|
+
/* @__PURE__ */ jsx119("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
20353
20494
|
] })
|
|
20354
20495
|
] });
|
|
20355
20496
|
};
|
|
@@ -20481,7 +20622,7 @@ var segmentedControlLabelContentStyles = css92`
|
|
|
20481
20622
|
var segmentedControlLabelTextStyles = css92``;
|
|
20482
20623
|
|
|
20483
20624
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
20484
|
-
import { jsx as
|
|
20625
|
+
import { jsx as jsx120, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
20485
20626
|
var SegmentedControl = ({
|
|
20486
20627
|
name,
|
|
20487
20628
|
options,
|
|
@@ -20515,7 +20656,7 @@ var SegmentedControl = ({
|
|
|
20515
20656
|
const isIconOnly = useMemo6(() => {
|
|
20516
20657
|
return options.every((option) => option && option.icon && !option.label);
|
|
20517
20658
|
}, [options]);
|
|
20518
|
-
return /* @__PURE__ */
|
|
20659
|
+
return /* @__PURE__ */ jsx120(
|
|
20519
20660
|
"div",
|
|
20520
20661
|
{
|
|
20521
20662
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -20528,7 +20669,7 @@ var SegmentedControl = ({
|
|
|
20528
20669
|
}
|
|
20529
20670
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
20530
20671
|
const isDisabled = disabled2 || option.disabled;
|
|
20531
|
-
return /* @__PURE__ */
|
|
20672
|
+
return /* @__PURE__ */ jsx120(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx120(
|
|
20532
20673
|
"div",
|
|
20533
20674
|
{
|
|
20534
20675
|
css: segmentedControlItemStyles,
|
|
@@ -20542,7 +20683,7 @@ var SegmentedControl = ({
|
|
|
20542
20683
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
20543
20684
|
],
|
|
20544
20685
|
children: [
|
|
20545
|
-
/* @__PURE__ */
|
|
20686
|
+
/* @__PURE__ */ jsx120(
|
|
20546
20687
|
"input",
|
|
20547
20688
|
{
|
|
20548
20689
|
css: segmentedControlInputStyles,
|
|
@@ -20554,10 +20695,10 @@ var SegmentedControl = ({
|
|
|
20554
20695
|
disabled: isDisabled
|
|
20555
20696
|
}
|
|
20556
20697
|
),
|
|
20557
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
20698
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx120(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
20558
20699
|
/* @__PURE__ */ jsxs81("span", { css: segmentedControlLabelContentStyles, children: [
|
|
20559
|
-
!option.icon ? null : /* @__PURE__ */
|
|
20560
|
-
!text || hideOptionText ? null : /* @__PURE__ */
|
|
20700
|
+
!option.icon ? null : /* @__PURE__ */ jsx120(Icon, { icon: option.icon, size: iconSize, iconColor: "currentColor" }),
|
|
20701
|
+
!text || hideOptionText ? null : /* @__PURE__ */ jsx120("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
20561
20702
|
] })
|
|
20562
20703
|
]
|
|
20563
20704
|
}
|
|
@@ -20581,7 +20722,7 @@ var skeletonStyles = css94`
|
|
|
20581
20722
|
`;
|
|
20582
20723
|
|
|
20583
20724
|
// src/components/Skeleton/Skeleton.tsx
|
|
20584
|
-
import { jsx as
|
|
20725
|
+
import { jsx as jsx121 } from "@emotion/react/jsx-runtime";
|
|
20585
20726
|
var Skeleton = ({
|
|
20586
20727
|
width = "100%",
|
|
20587
20728
|
height = "1.25rem",
|
|
@@ -20589,7 +20730,7 @@ var Skeleton = ({
|
|
|
20589
20730
|
circle = false,
|
|
20590
20731
|
children,
|
|
20591
20732
|
...otherProps
|
|
20592
|
-
}) => /* @__PURE__ */
|
|
20733
|
+
}) => /* @__PURE__ */ jsx121(
|
|
20593
20734
|
"div",
|
|
20594
20735
|
{
|
|
20595
20736
|
css: [
|
|
@@ -20609,7 +20750,7 @@ var Skeleton = ({
|
|
|
20609
20750
|
);
|
|
20610
20751
|
|
|
20611
20752
|
// src/components/Switch/Switch.tsx
|
|
20612
|
-
import * as
|
|
20753
|
+
import * as React24 from "react";
|
|
20613
20754
|
|
|
20614
20755
|
// src/components/Switch/Switch.styles.ts
|
|
20615
20756
|
import { css as css95 } from "@emotion/react";
|
|
@@ -20696,8 +20837,8 @@ var SwitchText = css95`
|
|
|
20696
20837
|
`;
|
|
20697
20838
|
|
|
20698
20839
|
// src/components/Switch/Switch.tsx
|
|
20699
|
-
import { Fragment as Fragment19, jsx as
|
|
20700
|
-
var Switch =
|
|
20840
|
+
import { Fragment as Fragment19, jsx as jsx122, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
20841
|
+
var Switch = React24.forwardRef(
|
|
20701
20842
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
20702
20843
|
let additionalText = infoText;
|
|
20703
20844
|
if (infoText && toggleText) {
|
|
@@ -20705,17 +20846,17 @@ var Switch = React25.forwardRef(
|
|
|
20705
20846
|
}
|
|
20706
20847
|
return /* @__PURE__ */ jsxs82(Fragment19, { children: [
|
|
20707
20848
|
/* @__PURE__ */ jsxs82("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
20708
|
-
/* @__PURE__ */
|
|
20709
|
-
/* @__PURE__ */
|
|
20849
|
+
/* @__PURE__ */ jsx122("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
20850
|
+
/* @__PURE__ */ jsx122("span", { css: SwitchInputLabel, children: label })
|
|
20710
20851
|
] }),
|
|
20711
|
-
additionalText ? /* @__PURE__ */
|
|
20852
|
+
additionalText ? /* @__PURE__ */ jsx122("p", { css: SwitchText, children: additionalText }) : null,
|
|
20712
20853
|
children
|
|
20713
20854
|
] });
|
|
20714
20855
|
}
|
|
20715
20856
|
);
|
|
20716
20857
|
|
|
20717
20858
|
// src/components/Table/Table.tsx
|
|
20718
|
-
import * as
|
|
20859
|
+
import * as React25 from "react";
|
|
20719
20860
|
|
|
20720
20861
|
// src/components/Table/Table.styles.ts
|
|
20721
20862
|
import { css as css96 } from "@emotion/react";
|
|
@@ -20745,40 +20886,40 @@ var tableCellHead = css96`
|
|
|
20745
20886
|
`;
|
|
20746
20887
|
|
|
20747
20888
|
// src/components/Table/Table.tsx
|
|
20748
|
-
import { jsx as
|
|
20749
|
-
var Table =
|
|
20889
|
+
import { jsx as jsx123 } from "@emotion/react/jsx-runtime";
|
|
20890
|
+
var Table = React25.forwardRef(
|
|
20750
20891
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
20751
|
-
return /* @__PURE__ */
|
|
20892
|
+
return /* @__PURE__ */ jsx123("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
20752
20893
|
}
|
|
20753
20894
|
);
|
|
20754
|
-
var TableHead =
|
|
20895
|
+
var TableHead = React25.forwardRef(
|
|
20755
20896
|
({ children, ...otherProps }, ref) => {
|
|
20756
|
-
return /* @__PURE__ */
|
|
20897
|
+
return /* @__PURE__ */ jsx123("thead", { ref, css: tableHead, ...otherProps, children });
|
|
20757
20898
|
}
|
|
20758
20899
|
);
|
|
20759
|
-
var TableBody =
|
|
20900
|
+
var TableBody = React25.forwardRef(
|
|
20760
20901
|
({ children, ...otherProps }, ref) => {
|
|
20761
|
-
return /* @__PURE__ */
|
|
20902
|
+
return /* @__PURE__ */ jsx123("tbody", { ref, ...otherProps, children });
|
|
20762
20903
|
}
|
|
20763
20904
|
);
|
|
20764
|
-
var TableFoot =
|
|
20905
|
+
var TableFoot = React25.forwardRef(
|
|
20765
20906
|
({ children, ...otherProps }, ref) => {
|
|
20766
|
-
return /* @__PURE__ */
|
|
20907
|
+
return /* @__PURE__ */ jsx123("tfoot", { ref, ...otherProps, children });
|
|
20767
20908
|
}
|
|
20768
20909
|
);
|
|
20769
|
-
var TableRow =
|
|
20910
|
+
var TableRow = React25.forwardRef(
|
|
20770
20911
|
({ children, ...otherProps }, ref) => {
|
|
20771
|
-
return /* @__PURE__ */
|
|
20912
|
+
return /* @__PURE__ */ jsx123("tr", { ref, css: tableRow, ...otherProps, children });
|
|
20772
20913
|
}
|
|
20773
20914
|
);
|
|
20774
|
-
var TableCellHead =
|
|
20915
|
+
var TableCellHead = React25.forwardRef(
|
|
20775
20916
|
({ children, ...otherProps }, ref) => {
|
|
20776
|
-
return /* @__PURE__ */
|
|
20917
|
+
return /* @__PURE__ */ jsx123("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
20777
20918
|
}
|
|
20778
20919
|
);
|
|
20779
|
-
var TableCellData =
|
|
20920
|
+
var TableCellData = React25.forwardRef(
|
|
20780
20921
|
({ children, ...otherProps }, ref) => {
|
|
20781
|
-
return /* @__PURE__ */
|
|
20922
|
+
return /* @__PURE__ */ jsx123("td", { ref, ...otherProps, children });
|
|
20782
20923
|
}
|
|
20783
20924
|
);
|
|
20784
20925
|
|
|
@@ -20818,7 +20959,7 @@ var tabButtonGroupStyles = css97`
|
|
|
20818
20959
|
`;
|
|
20819
20960
|
|
|
20820
20961
|
// src/components/Tabs/Tabs.tsx
|
|
20821
|
-
import { jsx as
|
|
20962
|
+
import { jsx as jsx124 } from "@emotion/react/jsx-runtime";
|
|
20822
20963
|
var useCurrentTab = () => {
|
|
20823
20964
|
const context = useAriakitTabStore();
|
|
20824
20965
|
if (!context) {
|
|
@@ -20856,23 +20997,23 @@ var Tabs = ({
|
|
|
20856
20997
|
tab.setSelectedId(selected);
|
|
20857
20998
|
}
|
|
20858
20999
|
}, [selected, tab]);
|
|
20859
|
-
return /* @__PURE__ */
|
|
21000
|
+
return /* @__PURE__ */ jsx124(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
20860
21001
|
};
|
|
20861
21002
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
20862
|
-
return /* @__PURE__ */
|
|
21003
|
+
return /* @__PURE__ */ jsx124(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
20863
21004
|
};
|
|
20864
21005
|
var TabButton = ({
|
|
20865
21006
|
children,
|
|
20866
21007
|
id,
|
|
20867
21008
|
...props
|
|
20868
21009
|
}) => {
|
|
20869
|
-
return /* @__PURE__ */
|
|
21010
|
+
return /* @__PURE__ */ jsx124(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
20870
21011
|
};
|
|
20871
21012
|
var TabContent = ({
|
|
20872
21013
|
children,
|
|
20873
21014
|
...props
|
|
20874
21015
|
}) => {
|
|
20875
|
-
return /* @__PURE__ */
|
|
21016
|
+
return /* @__PURE__ */ jsx124(AriakitTabPanel, { ...props, children });
|
|
20876
21017
|
};
|
|
20877
21018
|
|
|
20878
21019
|
// src/components/Toast/Toast.tsx
|
|
@@ -21103,9 +21244,9 @@ var toastContainerStyles = css98`
|
|
|
21103
21244
|
`;
|
|
21104
21245
|
|
|
21105
21246
|
// src/components/Toast/Toast.tsx
|
|
21106
|
-
import { jsx as
|
|
21247
|
+
import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
|
|
21107
21248
|
var ToastContainer = ({ limit = 4 }) => {
|
|
21108
|
-
return /* @__PURE__ */
|
|
21249
|
+
return /* @__PURE__ */ jsx125(
|
|
21109
21250
|
ToastifyContainer,
|
|
21110
21251
|
{
|
|
21111
21252
|
css: toastContainerStyles,
|
|
@@ -21198,7 +21339,7 @@ var StatusDeleted = css99`
|
|
|
21198
21339
|
`;
|
|
21199
21340
|
|
|
21200
21341
|
// src/components/Validation/StatusBullet.tsx
|
|
21201
|
-
import { jsx as
|
|
21342
|
+
import { jsx as jsx126 } from "@emotion/react/jsx-runtime";
|
|
21202
21343
|
var StatusBullet = ({
|
|
21203
21344
|
status,
|
|
21204
21345
|
hideText = false,
|
|
@@ -21218,7 +21359,7 @@ var StatusBullet = ({
|
|
|
21218
21359
|
Deleted: StatusDeleted
|
|
21219
21360
|
};
|
|
21220
21361
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
21221
|
-
return /* @__PURE__ */
|
|
21362
|
+
return /* @__PURE__ */ jsx126(
|
|
21222
21363
|
"span",
|
|
21223
21364
|
{
|
|
21224
21365
|
role: "status",
|
|
@@ -21328,6 +21469,8 @@ export {
|
|
|
21328
21469
|
ParameterLink,
|
|
21329
21470
|
ParameterLinkInner,
|
|
21330
21471
|
ParameterMenuButton,
|
|
21472
|
+
ParameterMultiSelect,
|
|
21473
|
+
ParameterMultiSelectInner,
|
|
21331
21474
|
ParameterNameAndPublicIdInput,
|
|
21332
21475
|
ParameterOverrideMarker,
|
|
21333
21476
|
ParameterRichText,
|
|
@@ -21451,6 +21594,11 @@ export {
|
|
|
21451
21594
|
supports,
|
|
21452
21595
|
textInput,
|
|
21453
21596
|
toast,
|
|
21597
|
+
uniformComponentIcon,
|
|
21598
|
+
uniformComponentPatternIcon,
|
|
21599
|
+
uniformContentTypeIcon,
|
|
21600
|
+
uniformEntryIcon,
|
|
21601
|
+
uniformEntryPatternIcon,
|
|
21454
21602
|
useBreakpoint,
|
|
21455
21603
|
useCloseCurrentDrawer,
|
|
21456
21604
|
useCurrentDrawer,
|