@oliasoft-open-source/react-ui-library 4.10.10-beta-1 → 4.10.10-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-BpSdrNXy.css → index-BVDOZzNV.css} +34 -5
- package/dist/assets/{index-DNn0fRjY.js → index-BxBkiGq9.js} +294 -276
- package/dist/index.html +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-Ctoumk1_.js → Color-KGDBMAHA-CctQ8zTI.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-D6snvJ2n.js → DocsRenderer-PKQXORMH-Zbe4Dzzy.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-DFLo2Xxp.js → accordion.stories-LYfONeFa.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-Cp6CY221.js → buttons-and-links-CFN44Cob.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-D2tl6Xaj.js → casing-loads.stories-wqdpuEvF.js} +1 -1
- package/dist/storybook/assets/{cell.stories-3u3qlMqR.js → cell.stories-Cs-CvVVa.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-kUA3ddmK.js → chunk-HLWAVYOI-BVQ7Qv4V.js} +1 -1
- package/dist/storybook/assets/{color-B-anC3UD.js → color-gNoqTcFO.js} +1 -1
- package/dist/storybook/assets/{footer.stories-BHyYr-w1.js → footer.stories-CqmBCXaH.js} +1 -1
- package/dist/storybook/assets/{form.stories-f2Uxr04c.js → form.stories-DxVoyy_9.js} +1 -1
- package/dist/storybook/assets/{formation.stories-Djd9Xcyb.js → formation.stories-DjCwvWjt.js} +1 -1
- package/dist/storybook/assets/{iframe-BPqD7cXD.js → iframe-CGWaHu-t.js} +2 -2
- package/dist/storybook/assets/{index-C_d1lYll.js → index-bSCX8Crm.js} +4 -4
- package/dist/storybook/assets/{index-D_vfgX3I.js → index-unr6hIHm.js} +1 -1
- package/dist/storybook/assets/{input-validation-DWk2h2sH.js → input-validation-BnZeK9vy.js} +1 -1
- package/dist/storybook/assets/{inputs-DxXk84P7.js → inputs-DrmDpBdS.js} +1 -1
- package/dist/storybook/assets/{layout-forms-DsvEdOzO.js → layout-forms-Cb1DHXbc.js} +1 -1
- package/dist/storybook/assets/{layout-general-Be12Eyfp.js → layout-general-CJ3B_RMV.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-BSmTd9GW.js → padding-and-spacing-CMQyKR3i.js} +1 -1
- package/dist/storybook/assets/{preview-CL_1oTTQ.js → preview-Bh9xpkWX.js} +1 -1
- package/dist/storybook/assets/{preview-DZPidHkD.js → preview-ClrW9kly.js} +2 -2
- package/dist/storybook/assets/{row.stories-BuIxD-aT.js → row.stories-CocH7P15.js} +1 -1
- package/dist/storybook/assets/{slider-CNPYg8Sz.js → slider-FeTfWTXx.js} +1 -1
- package/dist/storybook/assets/{slider.stories-BH6uxhwC.js → slider.stories-CTTIERmo.js} +1 -1
- package/dist/storybook/assets/{table-B5fM_vjN.js → table-DTe-5k91.js} +1 -1
- package/dist/storybook/assets/{table.stories-HRJd7a1D.js → table.stories-C41s0aQQ.js} +1 -1
- package/dist/storybook/assets/{title.stories-C1rVRHkF.js → title.stories-cJxIkKRU.js} +1 -1
- package/dist/storybook/assets/{unit-table.stories-DVqdGdEC.js → unit-table.stories-fpuLLOXX.js} +1 -1
- package/dist/storybook/assets/{unit-table.test-case.stories-CThfe_IO.js → unit-table.test-case.stories-DWoJ6629.js} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
|
@@ -9285,7 +9285,7 @@ const wrapper$2 = "_wrapper_18jt2_1";
|
|
|
9285
9285
|
const customSvg = "_customSvg_18jt2_8";
|
|
9286
9286
|
const customPng = "_customPng_18jt2_11";
|
|
9287
9287
|
const clickable$1 = "_clickable_18jt2_16";
|
|
9288
|
-
const styles$
|
|
9288
|
+
const styles$k = {
|
|
9289
9289
|
wrapper: wrapper$2,
|
|
9290
9290
|
customSvg,
|
|
9291
9291
|
customPng,
|
|
@@ -9889,8 +9889,8 @@ const Icon = ({
|
|
|
9889
9889
|
"div",
|
|
9890
9890
|
{
|
|
9891
9891
|
className: cx$2(
|
|
9892
|
-
styles$
|
|
9893
|
-
(clickable2 || onClick) && !disabledContext ? styles$
|
|
9892
|
+
styles$k.wrapper,
|
|
9893
|
+
(clickable2 || onClick) && !disabledContext ? styles$k.clickable : ""
|
|
9894
9894
|
),
|
|
9895
9895
|
style,
|
|
9896
9896
|
onClick: (evt) => onClick && !disabledContext ? onClick(evt) : void 0,
|
|
@@ -9898,7 +9898,7 @@ const Icon = ({
|
|
|
9898
9898
|
children: reactExports.isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9899
9899
|
ReactSVG,
|
|
9900
9900
|
{
|
|
9901
|
-
className: styles$
|
|
9901
|
+
className: styles$k.customSvg,
|
|
9902
9902
|
beforeInjection: (svg) => {
|
|
9903
9903
|
if (size2) {
|
|
9904
9904
|
svg.setAttribute("width", String(size2));
|
|
@@ -9907,7 +9907,7 @@ const Icon = ({
|
|
|
9907
9907
|
},
|
|
9908
9908
|
src: icon2
|
|
9909
9909
|
}
|
|
9910
|
-
) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { alt: "icon", className: styles$
|
|
9910
|
+
) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { alt: "icon", className: styles$k.customPng, src: icon2 }) : typeof icon2 === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamedIcon, { icon: icon2 }) : null
|
|
9911
9911
|
}
|
|
9912
9912
|
);
|
|
9913
9913
|
};
|
|
@@ -11889,7 +11889,7 @@ function useHover(_temp) {
|
|
|
11889
11889
|
const tooltip = "_tooltip_wli9z_1";
|
|
11890
11890
|
const error$q = "_error_wli9z_15";
|
|
11891
11891
|
const warning$7 = "_warning_wli9z_19";
|
|
11892
|
-
const styles$
|
|
11892
|
+
const styles$j = {
|
|
11893
11893
|
tooltip,
|
|
11894
11894
|
error: error$q,
|
|
11895
11895
|
warning: warning$7
|
|
@@ -11920,8 +11920,8 @@ const TooltipLayer = ({
|
|
|
11920
11920
|
"div",
|
|
11921
11921
|
{
|
|
11922
11922
|
className: cx$2(
|
|
11923
|
-
styles$
|
|
11924
|
-
error2 ? styles$
|
|
11923
|
+
styles$j.tooltip,
|
|
11924
|
+
error2 ? styles$j.error : warning2 ? styles$j.warning : ""
|
|
11925
11925
|
),
|
|
11926
11926
|
...layerProps,
|
|
11927
11927
|
children: [
|
|
@@ -11990,7 +11990,7 @@ const Tooltip = ({
|
|
|
11990
11990
|
const helpIcon = "_helpIcon_hd0z2_1";
|
|
11991
11991
|
const active$7 = "_active_hd0z2_9";
|
|
11992
11992
|
const clickable = "_clickable_hd0z2_12";
|
|
11993
|
-
const styles$
|
|
11993
|
+
const styles$i = {
|
|
11994
11994
|
helpIcon,
|
|
11995
11995
|
active: active$7,
|
|
11996
11996
|
clickable
|
|
@@ -12021,9 +12021,9 @@ const HelpIcon = ({
|
|
|
12021
12021
|
"div",
|
|
12022
12022
|
{
|
|
12023
12023
|
className: cx$2(
|
|
12024
|
-
styles$
|
|
12025
|
-
onClick ? styles$
|
|
12026
|
-
active2 ? styles$
|
|
12024
|
+
styles$i.helpIcon,
|
|
12025
|
+
onClick ? styles$i.clickable : "",
|
|
12026
|
+
active2 ? styles$i.active : ""
|
|
12027
12027
|
),
|
|
12028
12028
|
onClick: onClickHelpIcon,
|
|
12029
12029
|
"data-testid": testId,
|
|
@@ -17522,7 +17522,7 @@ const inputError$5 = "_inputError_1k3a0_25";
|
|
|
17522
17522
|
const inputWarning$5 = "_inputWarning_1k3a0_26";
|
|
17523
17523
|
const inputDisabled$5 = "_inputDisabled_1k3a0_61";
|
|
17524
17524
|
const hideScrollbars$5 = "_hideScrollbars_1k3a0_67";
|
|
17525
|
-
const button$
|
|
17525
|
+
const button$2 = "_button_1k3a0_100";
|
|
17526
17526
|
const active$6 = "_active_1k3a0_135";
|
|
17527
17527
|
const green = "_green_1k3a0_135";
|
|
17528
17528
|
const red = "_red_1k3a0_135";
|
|
@@ -17532,7 +17532,7 @@ const iconOnly = "_iconOnly_1k3a0_153";
|
|
|
17532
17532
|
const basic = "_basic_1k3a0_163";
|
|
17533
17533
|
const muted$2 = "_muted_1k3a0_169";
|
|
17534
17534
|
const disabled$3 = "_disabled_1k3a0_188";
|
|
17535
|
-
const small$
|
|
17535
|
+
const small$4 = "_small_1k3a0_198";
|
|
17536
17536
|
const pill = "_pill_1k3a0_203";
|
|
17537
17537
|
const round = "_round_1k3a0_204";
|
|
17538
17538
|
const inverted = "_inverted_1k3a0_310";
|
|
@@ -17549,7 +17549,7 @@ const buttonStyles = {
|
|
|
17549
17549
|
inputWarning: inputWarning$5,
|
|
17550
17550
|
inputDisabled: inputDisabled$5,
|
|
17551
17551
|
hideScrollbars: hideScrollbars$5,
|
|
17552
|
-
button: button$
|
|
17552
|
+
button: button$2,
|
|
17553
17553
|
active: active$6,
|
|
17554
17554
|
green,
|
|
17555
17555
|
red,
|
|
@@ -17559,7 +17559,7 @@ const buttonStyles = {
|
|
|
17559
17559
|
basic,
|
|
17560
17560
|
muted: muted$2,
|
|
17561
17561
|
disabled: disabled$3,
|
|
17562
|
-
small: small$
|
|
17562
|
+
small: small$4,
|
|
17563
17563
|
pill,
|
|
17564
17564
|
round,
|
|
17565
17565
|
inverted,
|
|
@@ -17568,7 +17568,7 @@ const buttonStyles = {
|
|
|
17568
17568
|
groupOrderLast: groupOrderLast$1
|
|
17569
17569
|
};
|
|
17570
17570
|
const spinner = "_spinner_156m4_1";
|
|
17571
|
-
const styles$
|
|
17571
|
+
const styles$h = {
|
|
17572
17572
|
spinner
|
|
17573
17573
|
};
|
|
17574
17574
|
const Spinner = ({
|
|
@@ -17579,7 +17579,7 @@ const Spinner = ({
|
|
|
17579
17579
|
}) => {
|
|
17580
17580
|
const color2 = colored ? "var(--color-text-primary)" : dark2 ? "var(--color-text-muted)" : "white";
|
|
17581
17581
|
const fontSize = small2 ? "var(--font-size)" : tiny ? "var(--font-size-xs)" : "var(--size)";
|
|
17582
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
17582
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h.spinner, style: { color: color2, fontSize } });
|
|
17583
17583
|
};
|
|
17584
17584
|
var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
17585
17585
|
ButtonType2["SUBMIT"] = "submit";
|
|
@@ -17680,8 +17680,6 @@ const Button$1 = ({
|
|
|
17680
17680
|
onClick,
|
|
17681
17681
|
...title2 ? { title: title2 } : {},
|
|
17682
17682
|
style: { width: width2 },
|
|
17683
|
-
"data-error": error2 || null,
|
|
17684
|
-
"data-warning": warning2 || null,
|
|
17685
17683
|
"data-testid": testId,
|
|
17686
17684
|
to: url,
|
|
17687
17685
|
children: [
|
|
@@ -17704,7 +17702,7 @@ const actions$2 = "_actions_1t7vd_1";
|
|
|
17704
17702
|
const childComponent = "_childComponent_1t7vd_11";
|
|
17705
17703
|
const actionComponentContainer = "_actionComponentContainer_1t7vd_14";
|
|
17706
17704
|
const active$5 = "_active_1t7vd_36";
|
|
17707
|
-
const styles$
|
|
17705
|
+
const styles$g = {
|
|
17708
17706
|
actions: actions$2,
|
|
17709
17707
|
childComponent,
|
|
17710
17708
|
actionComponentContainer,
|
|
@@ -17727,7 +17725,7 @@ const inline$2 = "_inline_1iw97_108";
|
|
|
17727
17725
|
const icon$1 = "_icon_1iw97_113";
|
|
17728
17726
|
const check = "_check_1iw97_114";
|
|
17729
17727
|
const text$1 = "_text_1iw97_136";
|
|
17730
|
-
const label$
|
|
17728
|
+
const label$5 = "_label_1iw97_141";
|
|
17731
17729
|
const description$2 = "_description_1iw97_152";
|
|
17732
17730
|
const arrow$1 = "_arrow_1iw97_156";
|
|
17733
17731
|
const divider$1 = "_divider_1iw97_160";
|
|
@@ -17738,7 +17736,7 @@ const buttonCaret = "_buttonCaret_1iw97_179";
|
|
|
17738
17736
|
const component = "_component_1iw97_183";
|
|
17739
17737
|
const right$4 = "_right_1iw97_189";
|
|
17740
17738
|
const actions$1 = "_actions_1iw97_194";
|
|
17741
|
-
const styles$
|
|
17739
|
+
const styles$f = {
|
|
17742
17740
|
wrapper: wrapper$1,
|
|
17743
17741
|
layer,
|
|
17744
17742
|
layerContainer,
|
|
@@ -17756,7 +17754,7 @@ const styles$e = {
|
|
|
17756
17754
|
icon: icon$1,
|
|
17757
17755
|
check,
|
|
17758
17756
|
text: text$1,
|
|
17759
|
-
label: label$
|
|
17757
|
+
label: label$5,
|
|
17760
17758
|
description: description$2,
|
|
17761
17759
|
arrow: arrow$1,
|
|
17762
17760
|
divider: divider$1,
|
|
@@ -17772,15 +17770,15 @@ const Heading$1 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PUR
|
|
|
17772
17770
|
"div",
|
|
17773
17771
|
{
|
|
17774
17772
|
onClick: (evt) => evt.stopPropagation(),
|
|
17775
|
-
className: styles$
|
|
17773
|
+
className: styles$f.heading,
|
|
17776
17774
|
"data-testid": testId,
|
|
17777
17775
|
children: [
|
|
17778
17776
|
label2,
|
|
17779
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
17777
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.headingIcon, onClick, children: icon2 })
|
|
17780
17778
|
]
|
|
17781
17779
|
}
|
|
17782
17780
|
);
|
|
17783
|
-
const Divider$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: styles$
|
|
17781
|
+
const Divider$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: styles$f.divider });
|
|
17784
17782
|
const Option = ({
|
|
17785
17783
|
actions: actions2,
|
|
17786
17784
|
label: label2,
|
|
@@ -17833,28 +17831,28 @@ const Option = ({
|
|
|
17833
17831
|
href: url,
|
|
17834
17832
|
to: url,
|
|
17835
17833
|
className: cx$2(
|
|
17836
|
-
styles$
|
|
17837
|
-
disabled2 ? styles$
|
|
17838
|
-
inline2 ? styles$
|
|
17839
|
-
selected2 ? styles$
|
|
17834
|
+
styles$f.option,
|
|
17835
|
+
disabled2 ? styles$f.disabled : "",
|
|
17836
|
+
inline2 ? styles$f.inline : "",
|
|
17837
|
+
selected2 ? styles$f.selected : ""
|
|
17840
17838
|
),
|
|
17841
17839
|
onClick: handleClick2,
|
|
17842
17840
|
"data-testid": testId,
|
|
17843
17841
|
children: [
|
|
17844
|
-
icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
17845
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
17842
|
+
icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 }) }) : null,
|
|
17843
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$f.optionContent, children: [
|
|
17846
17844
|
upload && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17847
17845
|
"input",
|
|
17848
17846
|
{
|
|
17849
17847
|
type: "file",
|
|
17850
|
-
className: styles$
|
|
17848
|
+
className: styles$f.fileInput,
|
|
17851
17849
|
onChange: handleFileChange
|
|
17852
17850
|
}
|
|
17853
17851
|
),
|
|
17854
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
17855
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
17856
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
17857
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
17852
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.label, title: `${title2 || label2}`, children: label2 }),
|
|
17853
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$f.right, children: [
|
|
17854
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.description, children: description2 }),
|
|
17855
|
+
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f.actions, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Actions, { actions: actions2 }) })
|
|
17858
17856
|
] })
|
|
17859
17857
|
] })
|
|
17860
17858
|
]
|
|
@@ -17988,7 +17986,7 @@ const Layer = ({
|
|
|
17988
17986
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17989
17987
|
"div",
|
|
17990
17988
|
{
|
|
17991
|
-
className: cx$2(styles$
|
|
17989
|
+
className: cx$2(styles$f.layer, isNested ? styles$f.nested : null),
|
|
17992
17990
|
style: { maxWidth: width2, maxHeight },
|
|
17993
17991
|
"data-testid": testId,
|
|
17994
17992
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: localSections.map((section, i) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -18016,19 +18014,19 @@ const isStringNumberOrNode = (value) => {
|
|
|
18016
18014
|
};
|
|
18017
18015
|
const wrapper = "_wrapper_nwprz_1";
|
|
18018
18016
|
const badge = "_badge_nwprz_5";
|
|
18019
|
-
const label$
|
|
18017
|
+
const label$4 = "_label_nwprz_11";
|
|
18020
18018
|
const dark = "_dark_nwprz_23";
|
|
18021
18019
|
const light = "_light_nwprz_26";
|
|
18022
|
-
const small$
|
|
18020
|
+
const small$3 = "_small_nwprz_29";
|
|
18023
18021
|
const dot = "_dot_nwprz_33";
|
|
18024
18022
|
const hasChildren = "_hasChildren_nwprz_39";
|
|
18025
|
-
const styles$
|
|
18023
|
+
const styles$e = {
|
|
18026
18024
|
wrapper,
|
|
18027
18025
|
badge,
|
|
18028
|
-
label: label$
|
|
18026
|
+
label: label$4,
|
|
18029
18027
|
dark,
|
|
18030
18028
|
light,
|
|
18031
|
-
small: small$
|
|
18029
|
+
small: small$3,
|
|
18032
18030
|
dot,
|
|
18033
18031
|
hasChildren
|
|
18034
18032
|
};
|
|
@@ -18050,16 +18048,16 @@ const Badge = ({
|
|
|
18050
18048
|
small: small2 = false
|
|
18051
18049
|
}) => {
|
|
18052
18050
|
const visible = !(title2 === null && dot2 === false);
|
|
18053
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
18051
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$e.wrapper, children: [
|
|
18054
18052
|
visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18055
18053
|
"sup",
|
|
18056
18054
|
{
|
|
18057
18055
|
className: cx$2(
|
|
18058
|
-
styles$
|
|
18059
|
-
isDark(color2) ? styles$
|
|
18060
|
-
title2 !== null ? styles$
|
|
18061
|
-
small2 ? styles$
|
|
18062
|
-
children ? styles$
|
|
18056
|
+
styles$e.badge,
|
|
18057
|
+
isDark(color2) ? styles$e.dark : styles$e.light,
|
|
18058
|
+
title2 !== null ? styles$e.label : styles$e.dot,
|
|
18059
|
+
small2 ? styles$e.small : "",
|
|
18060
|
+
children ? styles$e.hasChildren : ""
|
|
18063
18061
|
),
|
|
18064
18062
|
style: {
|
|
18065
18063
|
background: color2 || void 0,
|
|
@@ -18085,16 +18083,16 @@ const Button = ({
|
|
|
18085
18083
|
active: active2
|
|
18086
18084
|
}) => {
|
|
18087
18085
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
18088
|
-
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
18089
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
18090
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
18086
|
+
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$f.middleAlignedInline, children: [
|
|
18087
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.buttonLabel, children: label2 }),
|
|
18088
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.buttonCaret, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_DOWN }) })
|
|
18091
18089
|
] }) : null;
|
|
18092
18090
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18093
18091
|
"div",
|
|
18094
18092
|
{
|
|
18095
18093
|
className: cx$2(
|
|
18096
|
-
styles$
|
|
18097
|
-
disabled2 || disabledContext ? styles$
|
|
18094
|
+
styles$f.trigger,
|
|
18095
|
+
disabled2 || disabledContext ? styles$f.disabled : null
|
|
18098
18096
|
),
|
|
18099
18097
|
style: { width: width2 },
|
|
18100
18098
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -18134,13 +18132,13 @@ const Text$1 = ({
|
|
|
18134
18132
|
"div",
|
|
18135
18133
|
{
|
|
18136
18134
|
className: cx$2(
|
|
18137
|
-
styles$
|
|
18138
|
-
disabled2 ? styles$
|
|
18139
|
-
isOpen ? styles$
|
|
18135
|
+
styles$f.trigger,
|
|
18136
|
+
disabled2 ? styles$f.disabled : null,
|
|
18137
|
+
isOpen ? styles$f.active : null
|
|
18140
18138
|
),
|
|
18141
18139
|
children: [
|
|
18142
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
18143
|
-
carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
18140
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.label, title: titleText, children: label2 }),
|
|
18141
|
+
carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.arrow, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) }) : carat && carat === MenuCarat.DOWN ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.arrow, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_DOWN }) }) : null
|
|
18144
18142
|
]
|
|
18145
18143
|
}
|
|
18146
18144
|
);
|
|
@@ -18153,7 +18151,7 @@ const Component = ({
|
|
|
18153
18151
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18154
18152
|
"div",
|
|
18155
18153
|
{
|
|
18156
|
-
className: cx$2(styles$
|
|
18154
|
+
className: cx$2(styles$f.component, disabled2 ? styles$f.disabled : null),
|
|
18157
18155
|
"data-testid": testId,
|
|
18158
18156
|
children: component2
|
|
18159
18157
|
}
|
|
@@ -18234,7 +18232,7 @@ const Trigger = React$4.forwardRef(
|
|
|
18234
18232
|
"div",
|
|
18235
18233
|
{
|
|
18236
18234
|
ref: ref2,
|
|
18237
|
-
className: styles$
|
|
18235
|
+
className: styles$f.wrapper,
|
|
18238
18236
|
style: width2 ? { width: width2 } : {
|
|
18239
18237
|
...fullHeight && {
|
|
18240
18238
|
height: "100%",
|
|
@@ -18246,8 +18244,6 @@ const Trigger = React$4.forwardRef(
|
|
|
18246
18244
|
evt.preventDefault();
|
|
18247
18245
|
onClickTrigger();
|
|
18248
18246
|
},
|
|
18249
|
-
"data-error": error2 || null,
|
|
18250
|
-
"data-warning": warning2 || null,
|
|
18251
18247
|
"data-testid": testId,
|
|
18252
18248
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(TriggerTooltip, { tooltip: tooltip2, error: error2, warning: warning2, children: wrappedTrigger })
|
|
18253
18249
|
}
|
|
@@ -18458,7 +18454,7 @@ const DropDownMenu = ({
|
|
|
18458
18454
|
"div",
|
|
18459
18455
|
{
|
|
18460
18456
|
...layerProps,
|
|
18461
|
-
className: styles$
|
|
18457
|
+
className: styles$f.layerContainer,
|
|
18462
18458
|
"data-testid": menu2.testId,
|
|
18463
18459
|
onClick: (evt) => evt.stopPropagation(),
|
|
18464
18460
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -18527,7 +18523,7 @@ const SubmenuActions = (props) => {
|
|
|
18527
18523
|
const Actions = (props) => {
|
|
18528
18524
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
18529
18525
|
const { actions: actions2 = [], closeLayer } = props;
|
|
18530
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$
|
|
18526
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$g.actions), children: actions2.map((action2, index2) => {
|
|
18531
18527
|
const hidden = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
18532
18528
|
if (!hidden) {
|
|
18533
18529
|
if (action2.childComponent && React$4.isValidElement(action2.childComponent)) {
|
|
@@ -18535,7 +18531,7 @@ const Actions = (props) => {
|
|
|
18535
18531
|
"div",
|
|
18536
18532
|
{
|
|
18537
18533
|
"data-testid": action2.testId,
|
|
18538
|
-
className: styles$
|
|
18534
|
+
className: styles$g.childComponent,
|
|
18539
18535
|
children: action2.childComponent
|
|
18540
18536
|
},
|
|
18541
18537
|
index2
|
|
@@ -18590,7 +18586,7 @@ const cardHeader = "_cardHeader_ucdeu_13";
|
|
|
18590
18586
|
const cardContentBorderTop = "_cardContentBorderTop_ucdeu_19";
|
|
18591
18587
|
const padding = "_padding_ucdeu_22";
|
|
18592
18588
|
const cardContent = "_cardContent_ucdeu_19";
|
|
18593
|
-
const styles$
|
|
18589
|
+
const styles$d = {
|
|
18594
18590
|
card,
|
|
18595
18591
|
bordered: bordered$1,
|
|
18596
18592
|
raised,
|
|
@@ -18611,20 +18607,20 @@ const Card = ({
|
|
|
18611
18607
|
"div",
|
|
18612
18608
|
{
|
|
18613
18609
|
className: cx$2(
|
|
18614
|
-
styles$
|
|
18615
|
-
bordered2 ? styles$
|
|
18616
|
-
raised2 ? styles$
|
|
18610
|
+
styles$d.card,
|
|
18611
|
+
bordered2 ? styles$d.bordered : "",
|
|
18612
|
+
raised2 ? styles$d.raised : ""
|
|
18617
18613
|
),
|
|
18618
18614
|
style: { margin },
|
|
18619
18615
|
children: [
|
|
18620
|
-
heading2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$
|
|
18616
|
+
heading2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$d.cardHeader), children: heading2 }) : null,
|
|
18621
18617
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18622
18618
|
"div",
|
|
18623
18619
|
{
|
|
18624
18620
|
className: cx$2(
|
|
18625
|
-
styles$
|
|
18626
|
-
heading2 ? styles$
|
|
18627
|
-
padding2 ? styles$
|
|
18621
|
+
styles$d.cardContent,
|
|
18622
|
+
heading2 ? styles$d.cardContentBorderTop : "",
|
|
18623
|
+
padding2 ? styles$d.padding : ""
|
|
18628
18624
|
),
|
|
18629
18625
|
children
|
|
18630
18626
|
}
|
|
@@ -19735,7 +19731,7 @@ dt.div`
|
|
|
19735
19731
|
const divider = "_divider_2bfzh_1";
|
|
19736
19732
|
const alignLeft = "_alignLeft_2bfzh_12";
|
|
19737
19733
|
const alignRight = "_alignRight_2bfzh_15";
|
|
19738
|
-
const styles$
|
|
19734
|
+
const styles$c = {
|
|
19739
19735
|
divider,
|
|
19740
19736
|
alignLeft,
|
|
19741
19737
|
alignRight
|
|
@@ -19747,9 +19743,9 @@ const faint = "_faint_11ofj_10";
|
|
|
19747
19743
|
const success = "_success_11ofj_13";
|
|
19748
19744
|
const warning$5 = "_warning_11ofj_16";
|
|
19749
19745
|
const error$o = "_error_11ofj_19";
|
|
19750
|
-
const small$
|
|
19746
|
+
const small$2 = "_small_11ofj_22";
|
|
19751
19747
|
const link$2 = "_link_11ofj_25";
|
|
19752
|
-
const styles$
|
|
19748
|
+
const styles$b = {
|
|
19753
19749
|
bold: bold$1,
|
|
19754
19750
|
center,
|
|
19755
19751
|
muted: muted$1,
|
|
@@ -19757,7 +19753,7 @@ const styles$a = {
|
|
|
19757
19753
|
success,
|
|
19758
19754
|
warning: warning$5,
|
|
19759
19755
|
error: error$o,
|
|
19760
|
-
small: small$
|
|
19756
|
+
small: small$2,
|
|
19761
19757
|
link: link$2
|
|
19762
19758
|
};
|
|
19763
19759
|
const Text = ({
|
|
@@ -19777,16 +19773,16 @@ const Text = ({
|
|
|
19777
19773
|
"span",
|
|
19778
19774
|
{
|
|
19779
19775
|
className: cx$2(
|
|
19780
|
-
bold2 && styles$
|
|
19781
|
-
center2 && styles$
|
|
19782
|
-
error2 && styles$
|
|
19783
|
-
faint2 && styles$
|
|
19784
|
-
link2 && styles$
|
|
19785
|
-
muted2 && styles$
|
|
19786
|
-
onClick && styles$
|
|
19787
|
-
small2 && styles$
|
|
19788
|
-
success2 && styles$
|
|
19789
|
-
warning2 && styles$
|
|
19776
|
+
bold2 && styles$b.bold,
|
|
19777
|
+
center2 && styles$b.center,
|
|
19778
|
+
error2 && styles$b.error,
|
|
19779
|
+
faint2 && styles$b.faint,
|
|
19780
|
+
link2 && styles$b.link,
|
|
19781
|
+
muted2 && styles$b.muted,
|
|
19782
|
+
onClick && styles$b.clickable,
|
|
19783
|
+
small2 && styles$b.small,
|
|
19784
|
+
success2 && styles$b.success,
|
|
19785
|
+
warning2 && styles$b.warning
|
|
19790
19786
|
),
|
|
19791
19787
|
onClick,
|
|
19792
19788
|
children
|
|
@@ -19796,9 +19792,9 @@ const Text = ({
|
|
|
19796
19792
|
const cssAlignClass = (align) => {
|
|
19797
19793
|
switch (align) {
|
|
19798
19794
|
case Align.LEFT:
|
|
19799
|
-
return styles$
|
|
19795
|
+
return styles$c.alignLeft;
|
|
19800
19796
|
case Align.RIGHT:
|
|
19801
|
-
return styles$
|
|
19797
|
+
return styles$c.alignRight;
|
|
19802
19798
|
default:
|
|
19803
19799
|
return "";
|
|
19804
19800
|
}
|
|
@@ -19811,7 +19807,7 @@ const Divider = ({
|
|
|
19811
19807
|
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19812
19808
|
"div",
|
|
19813
19809
|
{
|
|
19814
|
-
className: `${styles$
|
|
19810
|
+
className: `${styles$c.divider} ${cssAlignClass(align)}`,
|
|
19815
19811
|
style: {
|
|
19816
19812
|
marginTop: margin,
|
|
19817
19813
|
marginBottom: margin,
|
|
@@ -19823,7 +19819,7 @@ const Divider = ({
|
|
|
19823
19819
|
const heading$1 = "_heading_yhdiy_1";
|
|
19824
19820
|
const top$1 = "_top_yhdiy_10";
|
|
19825
19821
|
const icons = "_icons_yhdiy_20";
|
|
19826
|
-
const styles$
|
|
19822
|
+
const styles$a = {
|
|
19827
19823
|
heading: heading$1,
|
|
19828
19824
|
top: top$1,
|
|
19829
19825
|
icons
|
|
@@ -19844,13 +19840,13 @@ const Heading = ({
|
|
|
19844
19840
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
19845
19841
|
"div",
|
|
19846
19842
|
{
|
|
19847
|
-
className: cx$2(styles$
|
|
19843
|
+
className: cx$2(styles$a.heading, top2 ? styles$a.top : ""),
|
|
19848
19844
|
style: { marginBottom },
|
|
19849
19845
|
onClick,
|
|
19850
19846
|
"data-testid": testId,
|
|
19851
19847
|
children: [
|
|
19852
19848
|
children,
|
|
19853
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
19849
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$a.icons, children: [
|
|
19854
19850
|
icon2 && /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { onClick: onIconClick, icon: icon2 }),
|
|
19855
19851
|
isHelpIconDisplayed && /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { text: helpText, onClick: onClickHelp }),
|
|
19856
19852
|
libraryIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -19893,7 +19889,7 @@ const active$3 = "_active_13n8n_197";
|
|
|
19893
19889
|
const disabled$1 = "_disabled_13n8n_222";
|
|
19894
19890
|
const tabsContent = "_tabsContent_13n8n_229";
|
|
19895
19891
|
const resizeHandle = "_resizeHandle_13n8n_235";
|
|
19896
|
-
const styles$
|
|
19892
|
+
const styles$9 = {
|
|
19897
19893
|
inputInTable: inputInTable$4,
|
|
19898
19894
|
error: error$n,
|
|
19899
19895
|
warning: warning$4,
|
|
@@ -19936,13 +19932,13 @@ const DrawerTabs = ({
|
|
|
19936
19932
|
testId
|
|
19937
19933
|
}) => {
|
|
19938
19934
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
19939
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
19935
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$9.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19940
19936
|
"div",
|
|
19941
19937
|
{
|
|
19942
19938
|
className: cx$2(
|
|
19943
|
-
styles$
|
|
19944
|
-
activeTab === index2 && open ? styles$
|
|
19945
|
-
tab2.disabled ? styles$
|
|
19939
|
+
styles$9.tab,
|
|
19940
|
+
activeTab === index2 && open ? styles$9.active : "",
|
|
19941
|
+
tab2.disabled ? styles$9.disabled : ""
|
|
19946
19942
|
),
|
|
19947
19943
|
style: { background: background2 },
|
|
19948
19944
|
onClick: !tab2.disabled ? () => handleTabClick(index2) : void 0,
|
|
@@ -19957,7 +19953,7 @@ const DrawerTabs = ({
|
|
|
19957
19953
|
"div",
|
|
19958
19954
|
{
|
|
19959
19955
|
style: { width: typeof width2 === "number" ? `${width2}px` : width2 },
|
|
19960
|
-
className: styles$
|
|
19956
|
+
className: styles$9.tabsContent,
|
|
19961
19957
|
"data-testid": testId && `${testId}-content-${index2}`,
|
|
19962
19958
|
children: active2 && open && tab2.content
|
|
19963
19959
|
},
|
|
@@ -21878,7 +21874,7 @@ const MIN_OPEN_WIDTH = 240;
|
|
|
21878
21874
|
const ResizeHandle = reactExports.forwardRef(
|
|
21879
21875
|
(props, ref2) => {
|
|
21880
21876
|
const { handleAxis, ...rest } = props;
|
|
21881
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ref2, className: styles$
|
|
21877
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ref2, className: styles$9.resizeHandle, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.DRAG }) });
|
|
21882
21878
|
}
|
|
21883
21879
|
);
|
|
21884
21880
|
const DrawerResizeWrapper = ({
|
|
@@ -21904,7 +21900,7 @@ const DrawerResizeWrapper = ({
|
|
|
21904
21900
|
handle: /* @__PURE__ */ jsxRuntimeExports.jsx(ResizeHandle, {}),
|
|
21905
21901
|
resizeHandles: right2 ? ["w"] : ["e"],
|
|
21906
21902
|
axis: "x",
|
|
21907
|
-
className: isResizing2 ? styles$
|
|
21903
|
+
className: isResizing2 ? styles$9.isResizing : "",
|
|
21908
21904
|
onResizeStart: () => {
|
|
21909
21905
|
if (setOpen) setOpen(true);
|
|
21910
21906
|
if (onResize) onResize(width2);
|
|
@@ -22002,17 +21998,17 @@ const Drawer = ({
|
|
|
22002
21998
|
"div",
|
|
22003
21999
|
{
|
|
22004
22000
|
className: cx$2(
|
|
22005
|
-
styles$
|
|
22006
|
-
shadow4 ? styles$
|
|
22007
|
-
fixed2 ? styles$
|
|
22008
|
-
right2 ? styles$
|
|
22001
|
+
styles$9.drawer,
|
|
22002
|
+
shadow4 ? styles$9.shadow : "",
|
|
22003
|
+
fixed2 ? styles$9.fixed : styles$9.inline,
|
|
22004
|
+
right2 ? styles$9.right : styles$9.left
|
|
22009
22005
|
),
|
|
22010
22006
|
style: { top: top2 },
|
|
22011
22007
|
children: [
|
|
22012
22008
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22013
22009
|
"div",
|
|
22014
22010
|
{
|
|
22015
|
-
className: cx$2(styles$
|
|
22011
|
+
className: cx$2(styles$9.drawerContent, border2 && styles$9.border),
|
|
22016
22012
|
style: {
|
|
22017
22013
|
background: background2,
|
|
22018
22014
|
borderColor: typeof border2 === "string" ? border2 : void 0,
|
|
@@ -22038,9 +22034,9 @@ const Drawer = ({
|
|
|
22038
22034
|
"span",
|
|
22039
22035
|
{
|
|
22040
22036
|
className: cx$2(
|
|
22041
|
-
styles$
|
|
22042
|
-
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$
|
|
22043
|
-
buttonPosition === "top" ? styles$
|
|
22037
|
+
styles$9.toggleButton,
|
|
22038
|
+
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$9.toggleButtonOpen : "",
|
|
22039
|
+
buttonPosition === "top" ? styles$9.top : styles$9.bottom
|
|
22044
22040
|
),
|
|
22045
22041
|
children: isCustomButton ? button2 : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22046
22042
|
Button$1,
|
|
@@ -22069,12 +22065,12 @@ const inputDisabled$3 = "_inputDisabled_rhzw6_61";
|
|
|
22069
22065
|
const hideScrollbars$3 = "_hideScrollbars_rhzw6_67";
|
|
22070
22066
|
const input = "_input_rhzw6_1";
|
|
22071
22067
|
const isInTable = "_isInTable_rhzw6_100";
|
|
22072
|
-
const small = "_small_rhzw6_124";
|
|
22068
|
+
const small$1 = "_small_rhzw6_124";
|
|
22073
22069
|
const right$2 = "_right_rhzw6_170";
|
|
22074
22070
|
const groupOrderFirst = "_groupOrderFirst_rhzw6_173";
|
|
22075
22071
|
const groupOrderMiddle = "_groupOrderMiddle_rhzw6_174";
|
|
22076
22072
|
const groupOrderLast = "_groupOrderLast_rhzw6_175";
|
|
22077
|
-
const styles$
|
|
22073
|
+
const styles$8 = {
|
|
22078
22074
|
inputInTable: inputInTable$3,
|
|
22079
22075
|
error: error$m,
|
|
22080
22076
|
warning: warning$3,
|
|
@@ -22086,7 +22082,7 @@ const styles$7 = {
|
|
|
22086
22082
|
hideScrollbars: hideScrollbars$3,
|
|
22087
22083
|
input,
|
|
22088
22084
|
isInTable,
|
|
22089
|
-
small,
|
|
22085
|
+
small: small$1,
|
|
22090
22086
|
right: right$2,
|
|
22091
22087
|
groupOrderFirst,
|
|
22092
22088
|
groupOrderMiddle,
|
|
@@ -22128,11 +22124,11 @@ reactExports.forwardRef(
|
|
|
22128
22124
|
if (groupOrder) {
|
|
22129
22125
|
switch (groupOrder) {
|
|
22130
22126
|
case "first":
|
|
22131
|
-
return styles$
|
|
22127
|
+
return styles$8.groupOrderFirst;
|
|
22132
22128
|
case "last":
|
|
22133
|
-
return styles$
|
|
22129
|
+
return styles$8.groupOrderLast;
|
|
22134
22130
|
default:
|
|
22135
|
-
return styles$
|
|
22131
|
+
return styles$8.groupOrderMiddle;
|
|
22136
22132
|
}
|
|
22137
22133
|
}
|
|
22138
22134
|
return "";
|
|
@@ -22166,15 +22162,13 @@ reactExports.forwardRef(
|
|
|
22166
22162
|
autoComplete: "off",
|
|
22167
22163
|
disabled: disabled2 || disabledContext,
|
|
22168
22164
|
className: cx$2(
|
|
22169
|
-
styles$
|
|
22170
|
-
error2 ? styles$
|
|
22171
|
-
right2 ? styles$
|
|
22172
|
-
small2 ? styles$
|
|
22173
|
-
isInTable2 ? styles$
|
|
22165
|
+
styles$8.input,
|
|
22166
|
+
error2 ? styles$8.error : warning2 ? styles$8.warning : "",
|
|
22167
|
+
right2 ? styles$8.right : "",
|
|
22168
|
+
small2 ? styles$8.small : "",
|
|
22169
|
+
isInTable2 ? styles$8.isInTable : ""
|
|
22174
22170
|
),
|
|
22175
22171
|
style: { width: width2 },
|
|
22176
|
-
"data-error": error2 || null,
|
|
22177
|
-
"data-warning": warning2 || null,
|
|
22178
22172
|
"data-testid": testId
|
|
22179
22173
|
}
|
|
22180
22174
|
)
|
|
@@ -23390,7 +23384,7 @@ memoizeOne(function(remove2, list2) {
|
|
|
23390
23384
|
return item2.descriptor.id !== remove2.descriptor.id;
|
|
23391
23385
|
});
|
|
23392
23386
|
});
|
|
23393
|
-
var vertical = {
|
|
23387
|
+
var vertical$1 = {
|
|
23394
23388
|
direction: "vertical",
|
|
23395
23389
|
line: "y",
|
|
23396
23390
|
crossAxisLine: "x",
|
|
@@ -23676,7 +23670,7 @@ var getDroppableDimension = function(_ref) {
|
|
|
23676
23670
|
}
|
|
23677
23671
|
};
|
|
23678
23672
|
}();
|
|
23679
|
-
var axis = direction === "vertical" ? vertical : horizontal;
|
|
23673
|
+
var axis = direction === "vertical" ? vertical$1 : horizontal;
|
|
23680
23674
|
var subject = getSubject({
|
|
23681
23675
|
page: page2,
|
|
23682
23676
|
withPlaceholder: null,
|
|
@@ -25097,7 +25091,7 @@ const action = "_action_dlqxe_192";
|
|
|
25097
25091
|
const active$2 = "_active_dlqxe_195";
|
|
25098
25092
|
const indented = "_indented_dlqxe_202";
|
|
25099
25093
|
const disabled = "_disabled_dlqxe_215";
|
|
25100
|
-
const label$
|
|
25094
|
+
const label$3 = "_label_dlqxe_226";
|
|
25101
25095
|
const details = "_details_dlqxe_237";
|
|
25102
25096
|
const metadata$1 = "_metadata_dlqxe_238";
|
|
25103
25097
|
const itemContent = "_itemContent_dlqxe_246";
|
|
@@ -25139,7 +25133,7 @@ const listStyles = {
|
|
|
25139
25133
|
active: active$2,
|
|
25140
25134
|
indented,
|
|
25141
25135
|
disabled,
|
|
25142
|
-
label: label$
|
|
25136
|
+
label: label$3,
|
|
25143
25137
|
details,
|
|
25144
25138
|
metadata: metadata$1,
|
|
25145
25139
|
itemContent,
|
|
@@ -25368,7 +25362,7 @@ reactExports.forwardRef(
|
|
|
25368
25362
|
);
|
|
25369
25363
|
const page = "_page_beskc_1";
|
|
25370
25364
|
const scroll = "_scroll_beskc_23";
|
|
25371
|
-
const styles$
|
|
25365
|
+
const styles$7 = {
|
|
25372
25366
|
page,
|
|
25373
25367
|
scroll
|
|
25374
25368
|
};
|
|
@@ -25383,7 +25377,7 @@ const Page$1 = ({
|
|
|
25383
25377
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25384
25378
|
"div",
|
|
25385
25379
|
{
|
|
25386
|
-
className: cx$2(styles$
|
|
25380
|
+
className: cx$2(styles$7.page, scroll3 ? styles$7.scroll : ""),
|
|
25387
25381
|
style: { left: left2, padding: padding2, top: top2 },
|
|
25388
25382
|
children
|
|
25389
25383
|
}
|
|
@@ -27166,9 +27160,9 @@ class Mark {
|
|
|
27166
27160
|
let type2 = schema.marks[json.type];
|
|
27167
27161
|
if (!type2)
|
|
27168
27162
|
throw new RangeError(`There is no mark type ${json.type} in this schema`);
|
|
27169
|
-
let
|
|
27170
|
-
type2.checkAttrs(
|
|
27171
|
-
return
|
|
27163
|
+
let mark2 = type2.create(json.attrs);
|
|
27164
|
+
type2.checkAttrs(mark2.attrs);
|
|
27165
|
+
return mark2;
|
|
27172
27166
|
}
|
|
27173
27167
|
/**
|
|
27174
27168
|
Test whether two sets of marks are identical.
|
|
@@ -28077,9 +28071,9 @@ let Node$2 = class Node {
|
|
|
28077
28071
|
this.type.checkAttrs(this.attrs);
|
|
28078
28072
|
let copy2 = Mark.none;
|
|
28079
28073
|
for (let i = 0; i < this.marks.length; i++) {
|
|
28080
|
-
let
|
|
28081
|
-
|
|
28082
|
-
copy2 =
|
|
28074
|
+
let mark2 = this.marks[i];
|
|
28075
|
+
mark2.type.checkAttrs(mark2.attrs);
|
|
28076
|
+
copy2 = mark2.addToSet(copy2);
|
|
28083
28077
|
}
|
|
28084
28078
|
if (!Mark.sameSet(copy2, this.marks))
|
|
28085
28079
|
throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((m2) => m2.type.name)}`);
|
|
@@ -28996,14 +28990,14 @@ class Schema {
|
|
|
28996
28990
|
function gatherMarks(schema, marks) {
|
|
28997
28991
|
let found2 = [];
|
|
28998
28992
|
for (let i = 0; i < marks.length; i++) {
|
|
28999
|
-
let name2 = marks[i],
|
|
29000
|
-
if (
|
|
29001
|
-
found2.push(
|
|
28993
|
+
let name2 = marks[i], mark2 = schema.marks[name2], ok2 = mark2;
|
|
28994
|
+
if (mark2) {
|
|
28995
|
+
found2.push(mark2);
|
|
29002
28996
|
} else {
|
|
29003
28997
|
for (let prop in schema.marks) {
|
|
29004
|
-
let
|
|
29005
|
-
if (name2 == "_" ||
|
|
29006
|
-
found2.push(ok2 =
|
|
28998
|
+
let mark3 = schema.marks[prop];
|
|
28999
|
+
if (name2 == "_" || mark3.spec.group && mark3.spec.group.split(" ").indexOf(name2) > -1)
|
|
29000
|
+
found2.push(ok2 = mark3);
|
|
29007
29001
|
}
|
|
29008
29002
|
}
|
|
29009
29003
|
if (!ok2)
|
|
@@ -29746,9 +29740,9 @@ class DOMSerializer {
|
|
|
29746
29740
|
/**
|
|
29747
29741
|
@internal
|
|
29748
29742
|
*/
|
|
29749
|
-
serializeMark(
|
|
29750
|
-
let toDOM = this.marks[
|
|
29751
|
-
return toDOM && renderSpec(doc$1(options2), toDOM(
|
|
29743
|
+
serializeMark(mark2, inline2, options2 = {}) {
|
|
29744
|
+
let toDOM = this.marks[mark2.type.name];
|
|
29745
|
+
return toDOM && renderSpec(doc$1(options2), toDOM(mark2, inline2), null, mark2.attrs);
|
|
29752
29746
|
}
|
|
29753
29747
|
static renderSpec(doc2, structure, xmlNS = null, blockArraysIn) {
|
|
29754
29748
|
return renderSpec(doc2, structure, xmlNS, blockArraysIn);
|
|
@@ -30235,11 +30229,11 @@ class AddMarkStep extends Step {
|
|
|
30235
30229
|
/**
|
|
30236
30230
|
Create a mark step.
|
|
30237
30231
|
*/
|
|
30238
|
-
constructor(from3, to2,
|
|
30232
|
+
constructor(from3, to2, mark2) {
|
|
30239
30233
|
super();
|
|
30240
30234
|
this.from = from3;
|
|
30241
30235
|
this.to = to2;
|
|
30242
|
-
this.mark =
|
|
30236
|
+
this.mark = mark2;
|
|
30243
30237
|
}
|
|
30244
30238
|
apply(doc2) {
|
|
30245
30239
|
let oldSlice = doc2.slice(this.from, this.to), $from = doc2.resolve(this.from);
|
|
@@ -30287,11 +30281,11 @@ class RemoveMarkStep extends Step {
|
|
|
30287
30281
|
/**
|
|
30288
30282
|
Create a mark-removing step.
|
|
30289
30283
|
*/
|
|
30290
|
-
constructor(from3, to2,
|
|
30284
|
+
constructor(from3, to2, mark2) {
|
|
30291
30285
|
super();
|
|
30292
30286
|
this.from = from3;
|
|
30293
30287
|
this.to = to2;
|
|
30294
|
-
this.mark =
|
|
30288
|
+
this.mark = mark2;
|
|
30295
30289
|
}
|
|
30296
30290
|
apply(doc2) {
|
|
30297
30291
|
let oldSlice = doc2.slice(this.from, this.to);
|
|
@@ -30336,10 +30330,10 @@ class AddNodeMarkStep extends Step {
|
|
|
30336
30330
|
/**
|
|
30337
30331
|
Create a node mark step.
|
|
30338
30332
|
*/
|
|
30339
|
-
constructor(pos,
|
|
30333
|
+
constructor(pos, mark2) {
|
|
30340
30334
|
super();
|
|
30341
30335
|
this.pos = pos;
|
|
30342
|
-
this.mark =
|
|
30336
|
+
this.mark = mark2;
|
|
30343
30337
|
}
|
|
30344
30338
|
apply(doc2) {
|
|
30345
30339
|
let node2 = doc2.nodeAt(this.pos);
|
|
@@ -30382,10 +30376,10 @@ class RemoveNodeMarkStep extends Step {
|
|
|
30382
30376
|
/**
|
|
30383
30377
|
Create a mark-removing step.
|
|
30384
30378
|
*/
|
|
30385
|
-
constructor(pos,
|
|
30379
|
+
constructor(pos, mark2) {
|
|
30386
30380
|
super();
|
|
30387
30381
|
this.pos = pos;
|
|
30388
|
-
this.mark =
|
|
30382
|
+
this.mark = mark2;
|
|
30389
30383
|
}
|
|
30390
30384
|
apply(doc2) {
|
|
30391
30385
|
let node2 = doc2.nodeAt(this.pos);
|
|
@@ -30574,16 +30568,16 @@ function contentBetween(doc2, from3, to2) {
|
|
|
30574
30568
|
}
|
|
30575
30569
|
return false;
|
|
30576
30570
|
}
|
|
30577
|
-
function addMark(tr2, from3, to2,
|
|
30571
|
+
function addMark(tr2, from3, to2, mark2) {
|
|
30578
30572
|
let removed = [], added = [];
|
|
30579
30573
|
let removing, adding;
|
|
30580
30574
|
tr2.doc.nodesBetween(from3, to2, (node2, pos, parent) => {
|
|
30581
30575
|
if (!node2.isInline)
|
|
30582
30576
|
return;
|
|
30583
30577
|
let marks = node2.marks;
|
|
30584
|
-
if (!
|
|
30578
|
+
if (!mark2.isInSet(marks) && parent.type.allowsMarkType(mark2.type)) {
|
|
30585
30579
|
let start = Math.max(pos, from3), end2 = Math.min(pos + node2.nodeSize, to2);
|
|
30586
|
-
let newSet =
|
|
30580
|
+
let newSet = mark2.addToSet(marks);
|
|
30587
30581
|
for (let i = 0; i < marks.length; i++) {
|
|
30588
30582
|
if (!marks[i].isInSet(newSet)) {
|
|
30589
30583
|
if (removing && removing.to == start && removing.mark.eq(marks[i]))
|
|
@@ -30595,28 +30589,28 @@ function addMark(tr2, from3, to2, mark) {
|
|
|
30595
30589
|
if (adding && adding.to == start)
|
|
30596
30590
|
adding.to = end2;
|
|
30597
30591
|
else
|
|
30598
|
-
added.push(adding = new AddMarkStep(start, end2,
|
|
30592
|
+
added.push(adding = new AddMarkStep(start, end2, mark2));
|
|
30599
30593
|
}
|
|
30600
30594
|
});
|
|
30601
30595
|
removed.forEach((s) => tr2.step(s));
|
|
30602
30596
|
added.forEach((s) => tr2.step(s));
|
|
30603
30597
|
}
|
|
30604
|
-
function removeMark$1(tr2, from3, to2,
|
|
30598
|
+
function removeMark$1(tr2, from3, to2, mark2) {
|
|
30605
30599
|
let matched = [], step = 0;
|
|
30606
30600
|
tr2.doc.nodesBetween(from3, to2, (node2, pos) => {
|
|
30607
30601
|
if (!node2.isInline)
|
|
30608
30602
|
return;
|
|
30609
30603
|
step++;
|
|
30610
30604
|
let toRemove = null;
|
|
30611
|
-
if (
|
|
30605
|
+
if (mark2 instanceof MarkType) {
|
|
30612
30606
|
let set = node2.marks, found2;
|
|
30613
|
-
while (found2 =
|
|
30607
|
+
while (found2 = mark2.isInSet(set)) {
|
|
30614
30608
|
(toRemove || (toRemove = [])).push(found2);
|
|
30615
30609
|
set = found2.removeFromSet(set);
|
|
30616
30610
|
}
|
|
30617
|
-
} else if (
|
|
30618
|
-
if (
|
|
30619
|
-
toRemove = [
|
|
30611
|
+
} else if (mark2) {
|
|
30612
|
+
if (mark2.isInSet(node2.marks))
|
|
30613
|
+
toRemove = [mark2];
|
|
30620
30614
|
} else {
|
|
30621
30615
|
toRemove = node2.marks;
|
|
30622
30616
|
}
|
|
@@ -31544,24 +31538,24 @@ class Transform {
|
|
|
31544
31538
|
/**
|
|
31545
31539
|
Add a mark to the node at position `pos`.
|
|
31546
31540
|
*/
|
|
31547
|
-
addNodeMark(pos,
|
|
31548
|
-
this.step(new AddNodeMarkStep(pos,
|
|
31541
|
+
addNodeMark(pos, mark2) {
|
|
31542
|
+
this.step(new AddNodeMarkStep(pos, mark2));
|
|
31549
31543
|
return this;
|
|
31550
31544
|
}
|
|
31551
31545
|
/**
|
|
31552
31546
|
Remove a mark (or a mark of the given type) from the node at
|
|
31553
31547
|
position `pos`.
|
|
31554
31548
|
*/
|
|
31555
|
-
removeNodeMark(pos,
|
|
31556
|
-
if (!(
|
|
31549
|
+
removeNodeMark(pos, mark2) {
|
|
31550
|
+
if (!(mark2 instanceof Mark)) {
|
|
31557
31551
|
let node2 = this.doc.nodeAt(pos);
|
|
31558
31552
|
if (!node2)
|
|
31559
31553
|
throw new RangeError("No node at position " + pos);
|
|
31560
|
-
|
|
31561
|
-
if (!
|
|
31554
|
+
mark2 = mark2.isInSet(node2.marks);
|
|
31555
|
+
if (!mark2)
|
|
31562
31556
|
return this;
|
|
31563
31557
|
}
|
|
31564
|
-
this.step(new RemoveNodeMarkStep(pos,
|
|
31558
|
+
this.step(new RemoveNodeMarkStep(pos, mark2));
|
|
31565
31559
|
return this;
|
|
31566
31560
|
}
|
|
31567
31561
|
/**
|
|
@@ -31578,8 +31572,8 @@ class Transform {
|
|
|
31578
31572
|
/**
|
|
31579
31573
|
Add the given mark to the inline content between `from` and `to`.
|
|
31580
31574
|
*/
|
|
31581
|
-
addMark(from3, to2,
|
|
31582
|
-
addMark(this, from3, to2,
|
|
31575
|
+
addMark(from3, to2, mark2) {
|
|
31576
|
+
addMark(this, from3, to2, mark2);
|
|
31583
31577
|
return this;
|
|
31584
31578
|
}
|
|
31585
31579
|
/**
|
|
@@ -31588,8 +31582,8 @@ class Transform {
|
|
|
31588
31582
|
a mark type, remove all marks of that type. When it is null,
|
|
31589
31583
|
remove all marks of any type.
|
|
31590
31584
|
*/
|
|
31591
|
-
removeMark(from3, to2,
|
|
31592
|
-
removeMark$1(this, from3, to2,
|
|
31585
|
+
removeMark(from3, to2, mark2) {
|
|
31586
|
+
removeMark$1(this, from3, to2, mark2);
|
|
31593
31587
|
return this;
|
|
31594
31588
|
}
|
|
31595
31589
|
/**
|
|
@@ -32109,14 +32103,14 @@ class Transaction extends Transform {
|
|
|
32109
32103
|
/**
|
|
32110
32104
|
Add a mark to the set of stored marks.
|
|
32111
32105
|
*/
|
|
32112
|
-
addStoredMark(
|
|
32113
|
-
return this.ensureMarks(
|
|
32106
|
+
addStoredMark(mark2) {
|
|
32107
|
+
return this.ensureMarks(mark2.addToSet(this.storedMarks || this.selection.$head.marks()));
|
|
32114
32108
|
}
|
|
32115
32109
|
/**
|
|
32116
32110
|
Remove a mark or mark type from the set of stored marks.
|
|
32117
32111
|
*/
|
|
32118
|
-
removeStoredMark(
|
|
32119
|
-
return this.ensureMarks(
|
|
32112
|
+
removeStoredMark(mark2) {
|
|
32113
|
+
return this.ensureMarks(mark2.removeFromSet(this.storedMarks || this.selection.$head.marks()));
|
|
32120
32114
|
}
|
|
32121
32115
|
/**
|
|
32122
32116
|
Whether the stored marks were explicitly set for this transaction.
|
|
@@ -33630,7 +33624,7 @@ class ViewDesc {
|
|
|
33630
33624
|
matchesWidget(widget) {
|
|
33631
33625
|
return false;
|
|
33632
33626
|
}
|
|
33633
|
-
matchesMark(
|
|
33627
|
+
matchesMark(mark2) {
|
|
33634
33628
|
return false;
|
|
33635
33629
|
}
|
|
33636
33630
|
matchesNode(node2, outerDeco, innerDeco) {
|
|
@@ -34060,24 +34054,24 @@ class CompositionViewDesc extends ViewDesc {
|
|
|
34060
34054
|
}
|
|
34061
34055
|
}
|
|
34062
34056
|
class MarkViewDesc extends ViewDesc {
|
|
34063
|
-
constructor(parent,
|
|
34057
|
+
constructor(parent, mark2, dom, contentDOM) {
|
|
34064
34058
|
super(parent, [], dom, contentDOM);
|
|
34065
|
-
this.mark =
|
|
34059
|
+
this.mark = mark2;
|
|
34066
34060
|
}
|
|
34067
|
-
static create(parent,
|
|
34068
|
-
let custom = view.nodeViews[
|
|
34069
|
-
let spec = custom && custom(
|
|
34061
|
+
static create(parent, mark2, inline2, view) {
|
|
34062
|
+
let custom = view.nodeViews[mark2.type.name];
|
|
34063
|
+
let spec = custom && custom(mark2, view, inline2);
|
|
34070
34064
|
if (!spec || !spec.dom)
|
|
34071
|
-
spec = DOMSerializer.renderSpec(document,
|
|
34072
|
-
return new MarkViewDesc(parent,
|
|
34065
|
+
spec = DOMSerializer.renderSpec(document, mark2.type.spec.toDOM(mark2, inline2), null, mark2.attrs);
|
|
34066
|
+
return new MarkViewDesc(parent, mark2, spec.dom, spec.contentDOM || spec.dom);
|
|
34073
34067
|
}
|
|
34074
34068
|
parseRule() {
|
|
34075
34069
|
if (this.dirty & NODE_DIRTY || this.mark.type.spec.reparseInView)
|
|
34076
34070
|
return null;
|
|
34077
34071
|
return { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
34078
34072
|
}
|
|
34079
|
-
matchesMark(
|
|
34080
|
-
return this.dirty != NODE_DIRTY && this.mark.eq(
|
|
34073
|
+
matchesMark(mark2) {
|
|
34074
|
+
return this.dirty != NODE_DIRTY && this.mark.eq(mark2);
|
|
34081
34075
|
}
|
|
34082
34076
|
markDirty(from3, to2) {
|
|
34083
34077
|
super.markDirty(from3, to2);
|
|
@@ -37467,19 +37461,19 @@ function resolveSelection(view, doc2, parsedSel) {
|
|
|
37467
37461
|
}
|
|
37468
37462
|
function isMarkChange(cur, prev2) {
|
|
37469
37463
|
let curMarks = cur.firstChild.marks, prevMarks = prev2.firstChild.marks;
|
|
37470
|
-
let added = curMarks, removed = prevMarks, type2,
|
|
37464
|
+
let added = curMarks, removed = prevMarks, type2, mark2, update;
|
|
37471
37465
|
for (let i = 0; i < prevMarks.length; i++)
|
|
37472
37466
|
added = prevMarks[i].removeFromSet(added);
|
|
37473
37467
|
for (let i = 0; i < curMarks.length; i++)
|
|
37474
37468
|
removed = curMarks[i].removeFromSet(removed);
|
|
37475
37469
|
if (added.length == 1 && removed.length == 0) {
|
|
37476
|
-
|
|
37470
|
+
mark2 = added[0];
|
|
37477
37471
|
type2 = "add";
|
|
37478
|
-
update = (node2) => node2.mark(
|
|
37472
|
+
update = (node2) => node2.mark(mark2.addToSet(node2.marks));
|
|
37479
37473
|
} else if (added.length == 0 && removed.length == 1) {
|
|
37480
|
-
|
|
37474
|
+
mark2 = removed[0];
|
|
37481
37475
|
type2 = "remove";
|
|
37482
|
-
update = (node2) => node2.mark(
|
|
37476
|
+
update = (node2) => node2.mark(mark2.removeFromSet(node2.marks));
|
|
37483
37477
|
} else {
|
|
37484
37478
|
return null;
|
|
37485
37479
|
}
|
|
@@ -37487,7 +37481,7 @@ function isMarkChange(cur, prev2) {
|
|
|
37487
37481
|
for (let i = 0; i < prev2.childCount; i++)
|
|
37488
37482
|
updated.push(update(prev2.child(i)));
|
|
37489
37483
|
if (Fragment.from(updated).eq(cur))
|
|
37490
|
-
return { mark, type: type2 };
|
|
37484
|
+
return { mark: mark2, type: type2 };
|
|
37491
37485
|
}
|
|
37492
37486
|
function looksLikeBackspace(old, start, end2, $newStart, $newEnd) {
|
|
37493
37487
|
if (
|
|
@@ -38363,11 +38357,11 @@ function markActiveInRange(resolvedRange, marks) {
|
|
|
38363
38357
|
}
|
|
38364
38358
|
function rangeHasMarks(resolvedRange, marks) {
|
|
38365
38359
|
const { $from, $to } = resolvedRange;
|
|
38366
|
-
const setOfMarks = new Set(($from.marksAcross($to) ?? []).map((
|
|
38360
|
+
const setOfMarks = new Set(($from.marksAcross($to) ?? []).map((mark2) => mark2.type.name));
|
|
38367
38361
|
return marks.some((item2) => setOfMarks.has(item2));
|
|
38368
38362
|
}
|
|
38369
38363
|
function positionHasMarks($pos, marks) {
|
|
38370
|
-
const setOfMarks = new Set($pos.marks().map((
|
|
38364
|
+
const setOfMarks = new Set($pos.marks().map((mark2) => mark2.type.name));
|
|
38371
38365
|
return marks.some((item2) => setOfMarks.has(item2));
|
|
38372
38366
|
}
|
|
38373
38367
|
function isPositionValidForSuggester(suggester, resolvedRange) {
|
|
@@ -39257,11 +39251,11 @@ function rangeHasMark(props) {
|
|
|
39257
39251
|
return false;
|
|
39258
39252
|
}
|
|
39259
39253
|
const marks = node2.marks ?? [];
|
|
39260
|
-
found2 = marks.some((
|
|
39261
|
-
if (
|
|
39254
|
+
found2 = marks.some((mark2) => {
|
|
39255
|
+
if (mark2.type !== markType) {
|
|
39262
39256
|
return false;
|
|
39263
39257
|
}
|
|
39264
|
-
return containsAttributes(
|
|
39258
|
+
return containsAttributes(mark2, attrs);
|
|
39265
39259
|
});
|
|
39266
39260
|
return !found2;
|
|
39267
39261
|
});
|
|
@@ -39288,11 +39282,11 @@ function isMarkActive(props) {
|
|
|
39288
39282
|
}
|
|
39289
39283
|
if (selection.empty) {
|
|
39290
39284
|
const marks = storedMarks ?? selection.$from.marks();
|
|
39291
|
-
return marks.some((
|
|
39292
|
-
if (
|
|
39285
|
+
return marks.some((mark2) => {
|
|
39286
|
+
if (mark2.type !== type2) {
|
|
39293
39287
|
return false;
|
|
39294
39288
|
}
|
|
39295
|
-
return containsAttributes(
|
|
39289
|
+
return containsAttributes(mark2, attrs ?? {});
|
|
39296
39290
|
});
|
|
39297
39291
|
}
|
|
39298
39292
|
return rangeHasMark({ ...props, from: selection.from, to: selection.to });
|
|
@@ -39370,27 +39364,27 @@ function getMarkRange($pos, type2, $end) {
|
|
|
39370
39364
|
return;
|
|
39371
39365
|
}
|
|
39372
39366
|
const typeName = isString$2(type2) ? type2 : type2.name;
|
|
39373
|
-
const
|
|
39367
|
+
const mark2 = start.node.marks.find(({ type: markType }) => markType.name === typeName);
|
|
39374
39368
|
let startIndex = $pos.index();
|
|
39375
39369
|
let startPos = $pos.start() + start.offset;
|
|
39376
39370
|
let endIndex = startIndex + 1;
|
|
39377
39371
|
let endPos = startPos + start.node.nodeSize;
|
|
39378
|
-
if (!
|
|
39372
|
+
if (!mark2) {
|
|
39379
39373
|
if ($end && endPos < $end.pos) {
|
|
39380
39374
|
return getMarkRange($pos.doc.resolve(endPos + 1), type2, $end);
|
|
39381
39375
|
}
|
|
39382
39376
|
return;
|
|
39383
39377
|
}
|
|
39384
|
-
while (startIndex > 0 &&
|
|
39378
|
+
while (startIndex > 0 && mark2.isInSet($pos.parent.child(startIndex - 1).marks)) {
|
|
39385
39379
|
startIndex -= 1;
|
|
39386
39380
|
startPos -= $pos.parent.child(startIndex).nodeSize;
|
|
39387
39381
|
}
|
|
39388
|
-
while (endIndex < $pos.parent.childCount &&
|
|
39382
|
+
while (endIndex < $pos.parent.childCount && mark2.isInSet($pos.parent.child(endIndex).marks)) {
|
|
39389
39383
|
endPos += $pos.parent.child(endIndex).nodeSize;
|
|
39390
39384
|
endIndex += 1;
|
|
39391
39385
|
}
|
|
39392
39386
|
const text2 = $pos.doc.textBetween(startPos, endPos, LEAF_NODE_REPLACING_CHARACTER, "\n\n");
|
|
39393
|
-
return { from: startPos, to: endPos, text: text2, mark };
|
|
39387
|
+
return { from: startPos, to: endPos, text: text2, mark: mark2 };
|
|
39394
39388
|
}
|
|
39395
39389
|
function getTextContentFromSlice(slice3) {
|
|
39396
39390
|
var _a2;
|
|
@@ -39593,8 +39587,8 @@ function checkForInvalidContent(props) {
|
|
|
39593
39587
|
let { invalidParentMark = false, invalidParentNode = false } = props;
|
|
39594
39588
|
if (marks) {
|
|
39595
39589
|
const invalidMarks2 = [];
|
|
39596
|
-
for (const [index2,
|
|
39597
|
-
const name2 = isString$2(
|
|
39590
|
+
for (const [index2, mark2] of marks.entries()) {
|
|
39591
|
+
const name2 = isString$2(mark2) ? mark2 : mark2.type;
|
|
39598
39592
|
if (validMarks.has(name2)) {
|
|
39599
39593
|
continue;
|
|
39600
39594
|
}
|
|
@@ -40590,7 +40584,7 @@ function pasteRules(pasteRules2) {
|
|
|
40590
40584
|
var _a2, _b, _c;
|
|
40591
40585
|
const $pos = view.state.selection.$from;
|
|
40592
40586
|
const nodeName = $pos.node().type.name;
|
|
40593
|
-
const markNames = new Set($pos.marks().map((
|
|
40587
|
+
const markNames = new Set($pos.marks().map((mark2) => mark2.type.name));
|
|
40594
40588
|
for (const rule of regexPasteRules2) {
|
|
40595
40589
|
if (
|
|
40596
40590
|
// The parent node is ignored.
|
|
@@ -40610,10 +40604,10 @@ function pasteRules(pasteRules2) {
|
|
|
40610
40604
|
const newTextNodes = [];
|
|
40611
40605
|
const { getAttributes, markType } = rule;
|
|
40612
40606
|
const attributes = isFunction$1(getAttributes) ? getAttributes(match2, true) : getAttributes;
|
|
40613
|
-
const
|
|
40607
|
+
const mark2 = markType.create(attributes);
|
|
40614
40608
|
textSlice.content.forEach((textNode) => {
|
|
40615
40609
|
if (textNode.isText) {
|
|
40616
|
-
const marks =
|
|
40610
|
+
const marks = mark2.addToSet(textNode.marks);
|
|
40617
40611
|
newTextNodes.push(textNode.mark(marks));
|
|
40618
40612
|
}
|
|
40619
40613
|
});
|
|
@@ -40714,7 +40708,7 @@ function createPasteRuleHandler(transformer, schema) {
|
|
|
40714
40708
|
}
|
|
40715
40709
|
return;
|
|
40716
40710
|
}
|
|
40717
|
-
if (child.marks.some((
|
|
40711
|
+
if (child.marks.some((mark2) => isCodeMark(mark2) || (ignoredMarks == null ? void 0 : ignoredMarks.includes(mark2.type.name)))) {
|
|
40718
40712
|
nodes.push(child);
|
|
40719
40713
|
return;
|
|
40720
40714
|
}
|
|
@@ -40761,7 +40755,7 @@ function markRuleTransformer(props) {
|
|
|
40761
40755
|
const { transformMatch, getAttributes, markType } = rule;
|
|
40762
40756
|
const attributes = isFunction$1(getAttributes) ? getAttributes(match2, false) : getAttributes;
|
|
40763
40757
|
const text2 = textNode.text ?? "";
|
|
40764
|
-
const
|
|
40758
|
+
const mark2 = markType.create(attributes);
|
|
40765
40759
|
const transformedCapturedValue = transformMatch == null ? void 0 : transformMatch(match2);
|
|
40766
40760
|
if (transformedCapturedValue === "") {
|
|
40767
40761
|
return;
|
|
@@ -40770,7 +40764,7 @@ function markRuleTransformer(props) {
|
|
|
40770
40764
|
nodes.push(schema.text(text2, textNode.marks));
|
|
40771
40765
|
return;
|
|
40772
40766
|
}
|
|
40773
|
-
const marks =
|
|
40767
|
+
const marks = mark2.addToSet(textNode.marks);
|
|
40774
40768
|
nodes.push(schema.text(transformedCapturedValue ?? text2, marks));
|
|
40775
40769
|
}
|
|
40776
40770
|
function textRuleTransformer(props) {
|
|
@@ -40809,9 +40803,9 @@ function isCodeNode(node2) {
|
|
|
40809
40803
|
var _a2;
|
|
40810
40804
|
return node2.type.spec.code || ((_a2 = node2.type.spec.group) == null ? void 0 : _a2.split(" ").includes("code"));
|
|
40811
40805
|
}
|
|
40812
|
-
function isCodeMark(
|
|
40806
|
+
function isCodeMark(mark2) {
|
|
40813
40807
|
var _a2;
|
|
40814
|
-
return
|
|
40808
|
+
return mark2.type.name === "code" || ((_a2 = mark2.type.spec.group) == null ? void 0 : _a2.split(" ").includes("code"));
|
|
40815
40809
|
}
|
|
40816
40810
|
function getDataTransferFiles(event) {
|
|
40817
40811
|
var _a2, _b;
|
|
@@ -42010,14 +42004,14 @@ var CommandsExtension = class extends PlainExtension {
|
|
|
42010
42004
|
code: ErrorConstant.SCHEMA,
|
|
42011
42005
|
message: `The requested node type ${node2} does not exist in the schema.`
|
|
42012
42006
|
});
|
|
42013
|
-
const marks = (_a2 = options2.marks) == null ? void 0 : _a2.map((
|
|
42014
|
-
if (
|
|
42015
|
-
return
|
|
42007
|
+
const marks = (_a2 = options2.marks) == null ? void 0 : _a2.map((mark2) => {
|
|
42008
|
+
if (mark2 instanceof Mark) {
|
|
42009
|
+
return mark2;
|
|
42016
42010
|
}
|
|
42017
|
-
const markType = isString$2(
|
|
42011
|
+
const markType = isString$2(mark2) ? state.schema.marks[mark2] : mark2;
|
|
42018
42012
|
invariant$2(markType, {
|
|
42019
42013
|
code: ErrorConstant.SCHEMA,
|
|
42020
|
-
message: `The requested mark type ${
|
|
42014
|
+
message: `The requested mark type ${mark2} does not exist in the schema.`
|
|
42021
42015
|
});
|
|
42022
42016
|
return markType.create();
|
|
42023
42017
|
});
|
|
@@ -43248,15 +43242,15 @@ var KeymapExtension = class extends PlainExtension {
|
|
|
43248
43242
|
return false;
|
|
43249
43243
|
}
|
|
43250
43244
|
const $pos = tr2.selection.$from;
|
|
43251
|
-
const marksToRemove = $pos.marks().filter((
|
|
43245
|
+
const marksToRemove = $pos.marks().filter((mark2) => !excludedMarks.includes(mark2.type.name));
|
|
43252
43246
|
if (isEmptyArray(marksToRemove)) {
|
|
43253
43247
|
return false;
|
|
43254
43248
|
}
|
|
43255
43249
|
if (!dispatch) {
|
|
43256
43250
|
return true;
|
|
43257
43251
|
}
|
|
43258
|
-
for (const
|
|
43259
|
-
tr2.removeStoredMark(
|
|
43252
|
+
for (const mark2 of marksToRemove) {
|
|
43253
|
+
tr2.removeStoredMark(mark2);
|
|
43260
43254
|
}
|
|
43261
43255
|
dispatch(tr2.insertText(" ", tr2.selection.from));
|
|
43262
43256
|
return true;
|
|
@@ -43295,7 +43289,7 @@ var KeymapExtension = class extends PlainExtension {
|
|
|
43295
43289
|
return false;
|
|
43296
43290
|
}
|
|
43297
43291
|
const marksToRemove = [...tr2.storedMarks ?? [], ...tr2.selection.$from.marks()].filter(
|
|
43298
|
-
(
|
|
43292
|
+
(mark2) => !excludedMarks.includes(mark2.type.name)
|
|
43299
43293
|
);
|
|
43300
43294
|
if (isEmptyArray(marksToRemove)) {
|
|
43301
43295
|
return false;
|
|
@@ -43303,8 +43297,8 @@ var KeymapExtension = class extends PlainExtension {
|
|
|
43303
43297
|
if (!dispatch) {
|
|
43304
43298
|
return true;
|
|
43305
43299
|
}
|
|
43306
|
-
for (const
|
|
43307
|
-
tr2.removeStoredMark(
|
|
43300
|
+
for (const mark2 of marksToRemove) {
|
|
43301
|
+
tr2.removeStoredMark(mark2);
|
|
43308
43302
|
}
|
|
43309
43303
|
this.backwardMarkExitTracker.set(tr2.selection.anchor, true);
|
|
43310
43304
|
dispatch(tr2);
|
|
@@ -43851,12 +43845,12 @@ var SchemaExtension = class extends PlainExtension {
|
|
|
43851
43845
|
checkAndUpdateDynamicMarks(node2, pos, tr2) {
|
|
43852
43846
|
for (const [name2, dynamic] of entries(this.dynamicAttributes.marks)) {
|
|
43853
43847
|
const type2 = assertGet(this.store.schema.marks, name2);
|
|
43854
|
-
const
|
|
43855
|
-
if (!
|
|
43848
|
+
const mark2 = node2.marks.find((mark22) => mark22.type.name === name2);
|
|
43849
|
+
if (!mark2) {
|
|
43856
43850
|
continue;
|
|
43857
43851
|
}
|
|
43858
43852
|
for (const [attributeName, attributeCreator] of entries(dynamic)) {
|
|
43859
|
-
if (!isNullOrUndefined(
|
|
43853
|
+
if (!isNullOrUndefined(mark2.attrs[attributeName])) {
|
|
43860
43854
|
continue;
|
|
43861
43855
|
}
|
|
43862
43856
|
const range2 = getMarkRange(tr2.doc.resolve(pos), type2);
|
|
@@ -43865,8 +43859,8 @@ var SchemaExtension = class extends PlainExtension {
|
|
|
43865
43859
|
}
|
|
43866
43860
|
const { from: from3, to: to2 } = range2;
|
|
43867
43861
|
const newMark = type2.create({
|
|
43868
|
-
...
|
|
43869
|
-
[attributeName]: attributeCreator(
|
|
43862
|
+
...mark2.attrs,
|
|
43863
|
+
[attributeName]: attributeCreator(mark2)
|
|
43870
43864
|
});
|
|
43871
43865
|
tr2.removeMark(from3, to2, type2).addMark(from3, to2, newMark);
|
|
43872
43866
|
ignoreUpdateForSuggest(tr2);
|
|
@@ -46456,7 +46450,7 @@ var CodeExtension = class extends MarkExtension {
|
|
|
46456
46450
|
...override,
|
|
46457
46451
|
attrs: extra.defaults(),
|
|
46458
46452
|
parseDOM: [{ tag: "code", getAttrs: extra.parse }, ...override.parseDOM ?? []],
|
|
46459
|
-
toDOM: (
|
|
46453
|
+
toDOM: (mark2) => ["code", { spellcheck: "false", ...extra.dom(mark2) }, 0]
|
|
46460
46454
|
};
|
|
46461
46455
|
}
|
|
46462
46456
|
createKeymap() {
|
|
@@ -48005,7 +47999,7 @@ var ItalicExtension = class extends MarkExtension {
|
|
|
48005
47999
|
{ style: "font-style=italic" },
|
|
48006
48000
|
...override.parseDOM ?? []
|
|
48007
48001
|
],
|
|
48008
|
-
toDOM: (
|
|
48002
|
+
toDOM: (mark2) => ["em", extra.dom(mark2), 0]
|
|
48009
48003
|
};
|
|
48010
48004
|
}
|
|
48011
48005
|
createKeymap() {
|
|
@@ -48548,14 +48542,14 @@ function listBackspace({ view }) {
|
|
|
48548
48542
|
}
|
|
48549
48543
|
function createCustomMarkListItemNodeView({
|
|
48550
48544
|
node: node2,
|
|
48551
|
-
mark,
|
|
48545
|
+
mark: mark2,
|
|
48552
48546
|
updateDOM,
|
|
48553
48547
|
updateMark
|
|
48554
48548
|
}) {
|
|
48555
48549
|
const markContainer = document.createElement("label");
|
|
48556
48550
|
markContainer.contentEditable = "false";
|
|
48557
48551
|
markContainer.classList.add(extensionListTheme.LIST_ITEM_MARKER_CONTAINER);
|
|
48558
|
-
markContainer.append(
|
|
48552
|
+
markContainer.append(mark2);
|
|
48559
48553
|
const contentDOM = document.createElement("div");
|
|
48560
48554
|
const dom = document.createElement("li");
|
|
48561
48555
|
dom.classList.add(extensionListTheme.LIST_ITEM_WITH_CUSTOM_MARKER);
|
|
@@ -48567,7 +48561,7 @@ function createCustomMarkListItemNodeView({
|
|
|
48567
48561
|
}
|
|
48568
48562
|
node2 = newNode;
|
|
48569
48563
|
updateDOM(node2, dom);
|
|
48570
|
-
updateMark(node2,
|
|
48564
|
+
updateMark(node2, mark2);
|
|
48571
48565
|
return true;
|
|
48572
48566
|
};
|
|
48573
48567
|
update(node2);
|
|
@@ -48833,11 +48827,11 @@ var ListItemExtension = class extends NodeExtension {
|
|
|
48833
48827
|
return {};
|
|
48834
48828
|
}
|
|
48835
48829
|
return (node2, view, getPos) => {
|
|
48836
|
-
const
|
|
48837
|
-
|
|
48838
|
-
|
|
48839
|
-
|
|
48840
|
-
if (
|
|
48830
|
+
const mark2 = document.createElement("div");
|
|
48831
|
+
mark2.classList.add(extensionListTheme.COLLAPSIBLE_LIST_ITEM_BUTTON);
|
|
48832
|
+
mark2.contentEditable = "false";
|
|
48833
|
+
mark2.addEventListener("click", () => {
|
|
48834
|
+
if (mark2.classList.contains("disabled")) {
|
|
48841
48835
|
return;
|
|
48842
48836
|
}
|
|
48843
48837
|
const pos = getPos();
|
|
@@ -48847,7 +48841,7 @@ var ListItemExtension = class extends NodeExtension {
|
|
|
48847
48841
|
return true;
|
|
48848
48842
|
});
|
|
48849
48843
|
return createCustomMarkListItemNodeView({
|
|
48850
|
-
mark,
|
|
48844
|
+
mark: mark2,
|
|
48851
48845
|
node: node2,
|
|
48852
48846
|
updateDOM: updateNodeViewDOM,
|
|
48853
48847
|
updateMark: updateNodeViewMark
|
|
@@ -48892,8 +48886,8 @@ ListItemExtension = __decorateClass$6([
|
|
|
48892
48886
|
function updateNodeViewDOM(node2, dom) {
|
|
48893
48887
|
node2.attrs.closed ? dom.classList.add(extensionListTheme.COLLAPSIBLE_LIST_ITEM_CLOSED) : dom.classList.remove(extensionListTheme.COLLAPSIBLE_LIST_ITEM_CLOSED);
|
|
48894
48888
|
}
|
|
48895
|
-
function updateNodeViewMark(node2,
|
|
48896
|
-
node2.childCount <= 1 ?
|
|
48889
|
+
function updateNodeViewMark(node2, mark2) {
|
|
48890
|
+
node2.childCount <= 1 ? mark2.classList.add("disabled") : mark2.classList.remove("disabled");
|
|
48897
48891
|
}
|
|
48898
48892
|
var BulletListExtension = class extends NodeExtension {
|
|
48899
48893
|
get name() {
|
|
@@ -49133,24 +49127,24 @@ var TaskListItemExtension = class extends NodeExtension {
|
|
|
49133
49127
|
}
|
|
49134
49128
|
createNodeViews() {
|
|
49135
49129
|
return (node2, view, getPos) => {
|
|
49136
|
-
const
|
|
49137
|
-
|
|
49138
|
-
|
|
49139
|
-
|
|
49140
|
-
|
|
49130
|
+
const mark2 = document.createElement("input");
|
|
49131
|
+
mark2.type = "checkbox";
|
|
49132
|
+
mark2.classList.add(extensionListTheme.LIST_ITEM_CHECKBOX);
|
|
49133
|
+
mark2.contentEditable = "false";
|
|
49134
|
+
mark2.addEventListener("click", (e2) => {
|
|
49141
49135
|
if (!view.editable) {
|
|
49142
49136
|
e2.preventDefault();
|
|
49143
49137
|
}
|
|
49144
49138
|
});
|
|
49145
|
-
|
|
49139
|
+
mark2.addEventListener("change", () => {
|
|
49146
49140
|
const pos = getPos();
|
|
49147
49141
|
const $pos = view.state.doc.resolve(pos + 1);
|
|
49148
49142
|
this.store.commands.toggleCheckboxChecked({ $pos });
|
|
49149
49143
|
});
|
|
49150
|
-
|
|
49144
|
+
mark2.checked = node2.attrs.checked;
|
|
49151
49145
|
return createCustomMarkListItemNodeView({
|
|
49152
49146
|
node: node2,
|
|
49153
|
-
mark,
|
|
49147
|
+
mark: mark2,
|
|
49154
49148
|
updateDOM: updateNodeViewDOM2,
|
|
49155
49149
|
updateMark: updateNodeViewMark2
|
|
49156
49150
|
});
|
|
@@ -49223,8 +49217,8 @@ function updateNodeViewDOM2(node2, dom) {
|
|
|
49223
49217
|
node2.attrs.checked ? dom.setAttribute("data-checked", "") : dom.removeAttribute("data-checked");
|
|
49224
49218
|
dom.setAttribute("data-task-list-item", "");
|
|
49225
49219
|
}
|
|
49226
|
-
function updateNodeViewMark2(node2,
|
|
49227
|
-
|
|
49220
|
+
function updateNodeViewMark2(node2, mark2) {
|
|
49221
|
+
mark2.checked = !!node2.attrs.checked;
|
|
49228
49222
|
}
|
|
49229
49223
|
var TaskListExtension = class extends NodeExtension {
|
|
49230
49224
|
get name() {
|
|
@@ -54862,7 +54856,7 @@ var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
|
54862
54856
|
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
|
|
54863
54857
|
const richTextToolbar = "_richTextToolbar_1gbkk_1";
|
|
54864
54858
|
const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
|
|
54865
|
-
const styles$
|
|
54859
|
+
const styles$6 = {
|
|
54866
54860
|
richTextToolbar,
|
|
54867
54861
|
richTextToolbarContainer
|
|
54868
54862
|
};
|
|
@@ -54914,8 +54908,8 @@ const RichTextToolbar = ({
|
|
|
54914
54908
|
active: active2.orderedList()
|
|
54915
54909
|
}
|
|
54916
54910
|
];
|
|
54917
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
54918
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
54911
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.richTextToolbarContainer, children: [
|
|
54912
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6.richTextToolbar, children: items2.map((item2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
54919
54913
|
Button$1,
|
|
54920
54914
|
{
|
|
54921
54915
|
small: true,
|
|
@@ -54945,7 +54939,7 @@ const inputWarning$1 = "_inputWarning_19adc_26";
|
|
|
54945
54939
|
const inputDisabled$1 = "_inputDisabled_19adc_61";
|
|
54946
54940
|
const hideScrollbars$1 = "_hideScrollbars_19adc_67";
|
|
54947
54941
|
const richTextInput = "_richTextInput_19adc_77";
|
|
54948
|
-
const styles$
|
|
54942
|
+
const styles$5 = {
|
|
54949
54943
|
inputInTable: inputInTable$1,
|
|
54950
54944
|
error: error$k,
|
|
54951
54945
|
warning: warning$1,
|
|
@@ -54983,7 +54977,7 @@ reactExports.forwardRef(
|
|
|
54983
54977
|
}
|
|
54984
54978
|
setState(state2);
|
|
54985
54979
|
};
|
|
54986
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
54980
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$5.richTextInput, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
54987
54981
|
Remirror,
|
|
54988
54982
|
{
|
|
54989
54983
|
manager,
|
|
@@ -55090,14 +55084,14 @@ const sidebar = "_sidebar_16jgo_82";
|
|
|
55090
55084
|
const inner = "_inner_16jgo_93";
|
|
55091
55085
|
const title$2 = "_title_16jgo_103";
|
|
55092
55086
|
const subtitle = "_subtitle_16jgo_104";
|
|
55093
|
-
const label$
|
|
55087
|
+
const label$2 = "_label_16jgo_105";
|
|
55094
55088
|
const collapsed = "_collapsed_16jgo_109";
|
|
55095
55089
|
const list = "_list_16jgo_134";
|
|
55096
55090
|
const item$1 = "_item_16jgo_140";
|
|
55097
55091
|
const experimental = "_experimental_16jgo_155";
|
|
55098
55092
|
const active$1 = "_active_16jgo_159";
|
|
55099
55093
|
const icon = "_icon_16jgo_163";
|
|
55100
|
-
const styles$
|
|
55094
|
+
const styles$4 = {
|
|
55101
55095
|
inputInTable,
|
|
55102
55096
|
error: error$j,
|
|
55103
55097
|
warning,
|
|
@@ -55111,7 +55105,7 @@ const styles$3 = {
|
|
|
55111
55105
|
inner,
|
|
55112
55106
|
title: title$2,
|
|
55113
55107
|
subtitle,
|
|
55114
|
-
label: label$
|
|
55108
|
+
label: label$2,
|
|
55115
55109
|
collapsed,
|
|
55116
55110
|
list,
|
|
55117
55111
|
item: item$1,
|
|
@@ -55132,10 +55126,10 @@ const TooltipIcon = reactExports.memo(
|
|
|
55132
55126
|
fontSize: 16,
|
|
55133
55127
|
padding: "var(--padding-sm)",
|
|
55134
55128
|
display: "block",
|
|
55135
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
55129
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { small: true, title: invalid ? "!" : void 0, margin: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 }) }) })
|
|
55136
55130
|
}
|
|
55137
55131
|
),
|
|
55138
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
55132
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.label, children: label2 })
|
|
55139
55133
|
] });
|
|
55140
55134
|
},
|
|
55141
55135
|
(prevProps, nextProps) => isEqual4(prevProps, nextProps)
|
|
@@ -55147,16 +55141,16 @@ const Link$1 = ({
|
|
|
55147
55141
|
onClick,
|
|
55148
55142
|
testId
|
|
55149
55143
|
}) => {
|
|
55150
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
55144
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.list, children: items2.map((link2, i) => {
|
|
55151
55145
|
const key2 = `${sectionIndex}_${i}`;
|
|
55152
55146
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
55153
55147
|
"a",
|
|
55154
55148
|
{
|
|
55155
55149
|
href: link2.value,
|
|
55156
55150
|
className: cx$2(
|
|
55157
|
-
styles$
|
|
55158
|
-
link2.isActive ? styles$
|
|
55159
|
-
link2.isExperimental ? styles$
|
|
55151
|
+
styles$4.item,
|
|
55152
|
+
link2.isActive ? styles$4.active : "",
|
|
55153
|
+
link2.isExperimental ? styles$4.experimental : ""
|
|
55160
55154
|
),
|
|
55161
55155
|
onClick: (evt) => onClick(evt, link2.value, link2.label, link2.onClick),
|
|
55162
55156
|
"data-testid": testId,
|
|
@@ -55181,7 +55175,7 @@ const Sections = ({
|
|
|
55181
55175
|
onClick
|
|
55182
55176
|
}) => {
|
|
55183
55177
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: sections.map((section, i) => /* @__PURE__ */ jsxRuntimeExports.jsxs(React$4.Fragment, { children: [
|
|
55184
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h5", { className: styles$
|
|
55178
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h5", { className: styles$4.subtitle, children: section.heading.toUpperCase() }),
|
|
55185
55179
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
55186
55180
|
Link$1,
|
|
55187
55181
|
{
|
|
@@ -55237,8 +55231,8 @@ reactExports.memo(
|
|
|
55237
55231
|
icon: IconType.LEFT
|
|
55238
55232
|
}
|
|
55239
55233
|
),
|
|
55240
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$
|
|
55241
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: styles$
|
|
55234
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$4.sidebar, !isOpen ? styles$4.collapsed : ""), children: visible && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$4.inner, children: [
|
|
55235
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: styles$4.title, children: options2.title }),
|
|
55242
55236
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
55243
55237
|
Sections,
|
|
55244
55238
|
{
|
|
@@ -56024,11 +56018,35 @@ var Handle = /* @__PURE__ */ React.forwardRef(function(props, ref2) {
|
|
|
56024
56018
|
});
|
|
56025
56019
|
var _default = Handle;
|
|
56026
56020
|
Handle$1.default = _default;
|
|
56021
|
+
const container$1 = "_container_16e82_1";
|
|
56022
|
+
const small = "_small_16e82_7";
|
|
56023
|
+
const vertical = "_vertical_16e82_10";
|
|
56024
|
+
const hasArrows = "_hasArrows_16e82_14";
|
|
56025
|
+
const button$1 = "_button_16e82_18";
|
|
56026
|
+
const label$1 = "_label_16e82_21";
|
|
56027
|
+
const mark = "_mark_16e82_29";
|
|
56028
|
+
const styles$3 = {
|
|
56029
|
+
container: container$1,
|
|
56030
|
+
small,
|
|
56031
|
+
vertical,
|
|
56032
|
+
hasArrows,
|
|
56033
|
+
button: button$1,
|
|
56034
|
+
label: label$1,
|
|
56035
|
+
mark
|
|
56036
|
+
};
|
|
56027
56037
|
const formatMarkers = (marks) => {
|
|
56028
56038
|
return marks.reduce((acc, { label: label2, tooltip: tooltip2, value }) => {
|
|
56029
|
-
|
|
56030
|
-
|
|
56031
|
-
|
|
56039
|
+
acc[value] = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
56040
|
+
Tooltip,
|
|
56041
|
+
{
|
|
56042
|
+
text: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
56043
|
+
tooltip2,
|
|
56044
|
+
tooltip2 ? ": " : "",
|
|
56045
|
+
label2 ?? value
|
|
56046
|
+
] }),
|
|
56047
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.mark })
|
|
56048
|
+
}
|
|
56049
|
+
);
|
|
56032
56050
|
return acc;
|
|
56033
56051
|
}, {});
|
|
56034
56052
|
};
|