@oliasoft-open-source/react-ui-library 4.10.9 → 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-DoFa61ar.js → index-BxBkiGq9.js} +294 -270
- package/dist/global.css +12 -14
- package/dist/index.html +1 -1
- package/dist/index.js +158 -151
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-D9VyF4cK.js → Color-KGDBMAHA-CctQ8zTI.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-CYuKUTbF.js → DocsRenderer-PKQXORMH-Zbe4Dzzy.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-D9S9ORLd.js → accordion.stories-LYfONeFa.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-DfruPSyV.js → buttons-and-links-CFN44Cob.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-DUHz4EdX.js → casing-loads.stories-wqdpuEvF.js} +1 -1
- package/dist/storybook/assets/{cell.stories-2C1czvip.js → cell.stories-Cs-CvVVa.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-ZoIpU1iH.js → chunk-HLWAVYOI-BVQ7Qv4V.js} +1 -1
- package/dist/storybook/assets/{color-BwQzXJc5.js → color-gNoqTcFO.js} +1 -1
- package/dist/storybook/assets/{footer.stories-DVpVrdgL.js → footer.stories-CqmBCXaH.js} +1 -1
- package/dist/storybook/assets/{form.stories-BLcmnfy8.js → form.stories-DxVoyy_9.js} +1 -1
- package/dist/storybook/assets/{formation.stories-CD4drWac.js → formation.stories-DjCwvWjt.js} +1 -1
- package/dist/storybook/assets/{iframe-CDquVvKW.js → iframe-CGWaHu-t.js} +2 -2
- package/dist/storybook/assets/{index-Cvu1zkN1.js → index-bSCX8Crm.js} +88 -88
- package/dist/storybook/assets/{index-XuUjc2BF.js → index-unr6hIHm.js} +1 -1
- package/dist/storybook/assets/{input-validation-Begv-Xpy.js → input-validation-BnZeK9vy.js} +1 -1
- package/dist/storybook/assets/{inputs-7VLvHCt2.js → inputs-DrmDpBdS.js} +1 -1
- package/dist/storybook/assets/{layout-forms-DwRi5TNg.js → layout-forms-Cb1DHXbc.js} +1 -1
- package/dist/storybook/assets/{layout-general-DqH-tER5.js → layout-general-CJ3B_RMV.js} +1 -1
- package/dist/storybook/assets/{number-input-rquxgv7S.js → number-input-CJJvhIIv.js} +1 -1
- package/dist/storybook/assets/{number-input.stories-DREx0b9j.js → number-input.stories-CKVq60XH.js} +1 -1
- package/dist/storybook/assets/{number-input.test-case.stories-CZ51xHx6.js → number-input.test-case.stories-Dh1F7N8M.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-DZmmSgAv.js → padding-and-spacing-CMQyKR3i.js} +1 -1
- package/dist/storybook/assets/{preview-DTtBEgd3.js → preview-Bh9xpkWX.js} +1 -1
- package/dist/storybook/assets/{preview-CbVvX5BE.js → preview-ClrW9kly.js} +2 -2
- package/dist/storybook/assets/{row.stories-tRNbcvyv.js → row.stories-CocH7P15.js} +1 -1
- package/dist/storybook/assets/{slider-C7vnj_3M.js → slider-FeTfWTXx.js} +3 -3
- package/dist/storybook/assets/{slider-DnRddBCy.css → slider-LRg-kjEJ.css} +1 -1
- package/dist/storybook/assets/slider.stories-CTTIERmo.js +125 -0
- package/dist/storybook/assets/{table-DJp2aQjj.js → table-DTe-5k91.js} +1 -1
- package/dist/storybook/assets/{table.stories-Dt24MxwG.js → table.stories-C41s0aQQ.js} +1 -1
- package/dist/storybook/assets/{title.stories-DP2HW8C4.js → title.stories-cJxIkKRU.js} +1 -1
- package/dist/storybook/assets/{unit-input-DGsG4pFx.js → unit-input-maDNevEK.js} +1 -1
- package/dist/storybook/assets/{unit-input.stories-CC3GDRAD.js → unit-input.stories-CZBOk2N9.js} +1 -1
- package/dist/storybook/assets/{unit-input.test-case.stories-B2XdqbNV.js → unit-input.test-case.stories-DQIpam5Y.js} +1 -1
- package/dist/storybook/assets/{unit-table.stories-D_Sz_uWD.js → unit-table.stories-fpuLLOXX.js} +1 -1
- package/dist/storybook/assets/{unit-table.test-case.stories-DqGH-8AQ.js → unit-table.test-case.stories-DWoJ6629.js} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist/404.html +0 -1
- package/dist/storybook/assets/slider.stories-BzBb3PkP.js +0 -171
|
@@ -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";
|
|
@@ -17702,7 +17702,7 @@ const actions$2 = "_actions_1t7vd_1";
|
|
|
17702
17702
|
const childComponent = "_childComponent_1t7vd_11";
|
|
17703
17703
|
const actionComponentContainer = "_actionComponentContainer_1t7vd_14";
|
|
17704
17704
|
const active$5 = "_active_1t7vd_36";
|
|
17705
|
-
const styles$
|
|
17705
|
+
const styles$g = {
|
|
17706
17706
|
actions: actions$2,
|
|
17707
17707
|
childComponent,
|
|
17708
17708
|
actionComponentContainer,
|
|
@@ -17725,7 +17725,7 @@ const inline$2 = "_inline_1iw97_108";
|
|
|
17725
17725
|
const icon$1 = "_icon_1iw97_113";
|
|
17726
17726
|
const check = "_check_1iw97_114";
|
|
17727
17727
|
const text$1 = "_text_1iw97_136";
|
|
17728
|
-
const label$
|
|
17728
|
+
const label$5 = "_label_1iw97_141";
|
|
17729
17729
|
const description$2 = "_description_1iw97_152";
|
|
17730
17730
|
const arrow$1 = "_arrow_1iw97_156";
|
|
17731
17731
|
const divider$1 = "_divider_1iw97_160";
|
|
@@ -17736,7 +17736,7 @@ const buttonCaret = "_buttonCaret_1iw97_179";
|
|
|
17736
17736
|
const component = "_component_1iw97_183";
|
|
17737
17737
|
const right$4 = "_right_1iw97_189";
|
|
17738
17738
|
const actions$1 = "_actions_1iw97_194";
|
|
17739
|
-
const styles$
|
|
17739
|
+
const styles$f = {
|
|
17740
17740
|
wrapper: wrapper$1,
|
|
17741
17741
|
layer,
|
|
17742
17742
|
layerContainer,
|
|
@@ -17754,7 +17754,7 @@ const styles$e = {
|
|
|
17754
17754
|
icon: icon$1,
|
|
17755
17755
|
check,
|
|
17756
17756
|
text: text$1,
|
|
17757
|
-
label: label$
|
|
17757
|
+
label: label$5,
|
|
17758
17758
|
description: description$2,
|
|
17759
17759
|
arrow: arrow$1,
|
|
17760
17760
|
divider: divider$1,
|
|
@@ -17770,15 +17770,15 @@ const Heading$1 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PUR
|
|
|
17770
17770
|
"div",
|
|
17771
17771
|
{
|
|
17772
17772
|
onClick: (evt) => evt.stopPropagation(),
|
|
17773
|
-
className: styles$
|
|
17773
|
+
className: styles$f.heading,
|
|
17774
17774
|
"data-testid": testId,
|
|
17775
17775
|
children: [
|
|
17776
17776
|
label2,
|
|
17777
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
17777
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$f.headingIcon, onClick, children: icon2 })
|
|
17778
17778
|
]
|
|
17779
17779
|
}
|
|
17780
17780
|
);
|
|
17781
|
-
const Divider$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: styles$
|
|
17781
|
+
const Divider$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: styles$f.divider });
|
|
17782
17782
|
const Option = ({
|
|
17783
17783
|
actions: actions2,
|
|
17784
17784
|
label: label2,
|
|
@@ -17831,28 +17831,28 @@ const Option = ({
|
|
|
17831
17831
|
href: url,
|
|
17832
17832
|
to: url,
|
|
17833
17833
|
className: cx$2(
|
|
17834
|
-
styles$
|
|
17835
|
-
disabled2 ? styles$
|
|
17836
|
-
inline2 ? styles$
|
|
17837
|
-
selected2 ? styles$
|
|
17834
|
+
styles$f.option,
|
|
17835
|
+
disabled2 ? styles$f.disabled : "",
|
|
17836
|
+
inline2 ? styles$f.inline : "",
|
|
17837
|
+
selected2 ? styles$f.selected : ""
|
|
17838
17838
|
),
|
|
17839
17839
|
onClick: handleClick2,
|
|
17840
17840
|
"data-testid": testId,
|
|
17841
17841
|
children: [
|
|
17842
|
-
icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
17843
|
-
/* @__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: [
|
|
17844
17844
|
upload && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17845
17845
|
"input",
|
|
17846
17846
|
{
|
|
17847
17847
|
type: "file",
|
|
17848
|
-
className: styles$
|
|
17848
|
+
className: styles$f.fileInput,
|
|
17849
17849
|
onChange: handleFileChange
|
|
17850
17850
|
}
|
|
17851
17851
|
),
|
|
17852
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
17853
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
17854
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
17855
|
-
!!(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 }) })
|
|
17856
17856
|
] })
|
|
17857
17857
|
] })
|
|
17858
17858
|
]
|
|
@@ -17986,7 +17986,7 @@ const Layer = ({
|
|
|
17986
17986
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17987
17987
|
"div",
|
|
17988
17988
|
{
|
|
17989
|
-
className: cx$2(styles$
|
|
17989
|
+
className: cx$2(styles$f.layer, isNested ? styles$f.nested : null),
|
|
17990
17990
|
style: { maxWidth: width2, maxHeight },
|
|
17991
17991
|
"data-testid": testId,
|
|
17992
17992
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: localSections.map((section, i) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -18014,19 +18014,19 @@ const isStringNumberOrNode = (value) => {
|
|
|
18014
18014
|
};
|
|
18015
18015
|
const wrapper = "_wrapper_nwprz_1";
|
|
18016
18016
|
const badge = "_badge_nwprz_5";
|
|
18017
|
-
const label$
|
|
18017
|
+
const label$4 = "_label_nwprz_11";
|
|
18018
18018
|
const dark = "_dark_nwprz_23";
|
|
18019
18019
|
const light = "_light_nwprz_26";
|
|
18020
|
-
const small$
|
|
18020
|
+
const small$3 = "_small_nwprz_29";
|
|
18021
18021
|
const dot = "_dot_nwprz_33";
|
|
18022
18022
|
const hasChildren = "_hasChildren_nwprz_39";
|
|
18023
|
-
const styles$
|
|
18023
|
+
const styles$e = {
|
|
18024
18024
|
wrapper,
|
|
18025
18025
|
badge,
|
|
18026
|
-
label: label$
|
|
18026
|
+
label: label$4,
|
|
18027
18027
|
dark,
|
|
18028
18028
|
light,
|
|
18029
|
-
small: small$
|
|
18029
|
+
small: small$3,
|
|
18030
18030
|
dot,
|
|
18031
18031
|
hasChildren
|
|
18032
18032
|
};
|
|
@@ -18048,16 +18048,16 @@ const Badge = ({
|
|
|
18048
18048
|
small: small2 = false
|
|
18049
18049
|
}) => {
|
|
18050
18050
|
const visible = !(title2 === null && dot2 === false);
|
|
18051
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
18051
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$e.wrapper, children: [
|
|
18052
18052
|
visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18053
18053
|
"sup",
|
|
18054
18054
|
{
|
|
18055
18055
|
className: cx$2(
|
|
18056
|
-
styles$
|
|
18057
|
-
isDark(color2) ? styles$
|
|
18058
|
-
title2 !== null ? styles$
|
|
18059
|
-
small2 ? styles$
|
|
18060
|
-
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 : ""
|
|
18061
18061
|
),
|
|
18062
18062
|
style: {
|
|
18063
18063
|
background: color2 || void 0,
|
|
@@ -18083,16 +18083,16 @@ const Button = ({
|
|
|
18083
18083
|
active: active2
|
|
18084
18084
|
}) => {
|
|
18085
18085
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
18086
|
-
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
18087
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
18088
|
-
/* @__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 }) })
|
|
18089
18089
|
] }) : null;
|
|
18090
18090
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18091
18091
|
"div",
|
|
18092
18092
|
{
|
|
18093
18093
|
className: cx$2(
|
|
18094
|
-
styles$
|
|
18095
|
-
disabled2 || disabledContext ? styles$
|
|
18094
|
+
styles$f.trigger,
|
|
18095
|
+
disabled2 || disabledContext ? styles$f.disabled : null
|
|
18096
18096
|
),
|
|
18097
18097
|
style: { width: width2 },
|
|
18098
18098
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -18132,13 +18132,13 @@ const Text$1 = ({
|
|
|
18132
18132
|
"div",
|
|
18133
18133
|
{
|
|
18134
18134
|
className: cx$2(
|
|
18135
|
-
styles$
|
|
18136
|
-
disabled2 ? styles$
|
|
18137
|
-
isOpen ? styles$
|
|
18135
|
+
styles$f.trigger,
|
|
18136
|
+
disabled2 ? styles$f.disabled : null,
|
|
18137
|
+
isOpen ? styles$f.active : null
|
|
18138
18138
|
),
|
|
18139
18139
|
children: [
|
|
18140
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
18141
|
-
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
|
|
18142
18142
|
]
|
|
18143
18143
|
}
|
|
18144
18144
|
);
|
|
@@ -18151,7 +18151,7 @@ const Component = ({
|
|
|
18151
18151
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18152
18152
|
"div",
|
|
18153
18153
|
{
|
|
18154
|
-
className: cx$2(styles$
|
|
18154
|
+
className: cx$2(styles$f.component, disabled2 ? styles$f.disabled : null),
|
|
18155
18155
|
"data-testid": testId,
|
|
18156
18156
|
children: component2
|
|
18157
18157
|
}
|
|
@@ -18232,7 +18232,7 @@ const Trigger = React$4.forwardRef(
|
|
|
18232
18232
|
"div",
|
|
18233
18233
|
{
|
|
18234
18234
|
ref: ref2,
|
|
18235
|
-
className: styles$
|
|
18235
|
+
className: styles$f.wrapper,
|
|
18236
18236
|
style: width2 ? { width: width2 } : {
|
|
18237
18237
|
...fullHeight && {
|
|
18238
18238
|
height: "100%",
|
|
@@ -18454,7 +18454,7 @@ const DropDownMenu = ({
|
|
|
18454
18454
|
"div",
|
|
18455
18455
|
{
|
|
18456
18456
|
...layerProps,
|
|
18457
|
-
className: styles$
|
|
18457
|
+
className: styles$f.layerContainer,
|
|
18458
18458
|
"data-testid": menu2.testId,
|
|
18459
18459
|
onClick: (evt) => evt.stopPropagation(),
|
|
18460
18460
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -18523,7 +18523,7 @@ const SubmenuActions = (props) => {
|
|
|
18523
18523
|
const Actions = (props) => {
|
|
18524
18524
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
18525
18525
|
const { actions: actions2 = [], closeLayer } = props;
|
|
18526
|
-
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) => {
|
|
18527
18527
|
const hidden = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
18528
18528
|
if (!hidden) {
|
|
18529
18529
|
if (action2.childComponent && React$4.isValidElement(action2.childComponent)) {
|
|
@@ -18531,7 +18531,7 @@ const Actions = (props) => {
|
|
|
18531
18531
|
"div",
|
|
18532
18532
|
{
|
|
18533
18533
|
"data-testid": action2.testId,
|
|
18534
|
-
className: styles$
|
|
18534
|
+
className: styles$g.childComponent,
|
|
18535
18535
|
children: action2.childComponent
|
|
18536
18536
|
},
|
|
18537
18537
|
index2
|
|
@@ -18586,7 +18586,7 @@ const cardHeader = "_cardHeader_ucdeu_13";
|
|
|
18586
18586
|
const cardContentBorderTop = "_cardContentBorderTop_ucdeu_19";
|
|
18587
18587
|
const padding = "_padding_ucdeu_22";
|
|
18588
18588
|
const cardContent = "_cardContent_ucdeu_19";
|
|
18589
|
-
const styles$
|
|
18589
|
+
const styles$d = {
|
|
18590
18590
|
card,
|
|
18591
18591
|
bordered: bordered$1,
|
|
18592
18592
|
raised,
|
|
@@ -18607,20 +18607,20 @@ const Card = ({
|
|
|
18607
18607
|
"div",
|
|
18608
18608
|
{
|
|
18609
18609
|
className: cx$2(
|
|
18610
|
-
styles$
|
|
18611
|
-
bordered2 ? styles$
|
|
18612
|
-
raised2 ? styles$
|
|
18610
|
+
styles$d.card,
|
|
18611
|
+
bordered2 ? styles$d.bordered : "",
|
|
18612
|
+
raised2 ? styles$d.raised : ""
|
|
18613
18613
|
),
|
|
18614
18614
|
style: { margin },
|
|
18615
18615
|
children: [
|
|
18616
|
-
heading2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$
|
|
18616
|
+
heading2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$d.cardHeader), children: heading2 }) : null,
|
|
18617
18617
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18618
18618
|
"div",
|
|
18619
18619
|
{
|
|
18620
18620
|
className: cx$2(
|
|
18621
|
-
styles$
|
|
18622
|
-
heading2 ? styles$
|
|
18623
|
-
padding2 ? styles$
|
|
18621
|
+
styles$d.cardContent,
|
|
18622
|
+
heading2 ? styles$d.cardContentBorderTop : "",
|
|
18623
|
+
padding2 ? styles$d.padding : ""
|
|
18624
18624
|
),
|
|
18625
18625
|
children
|
|
18626
18626
|
}
|
|
@@ -19731,7 +19731,7 @@ dt.div`
|
|
|
19731
19731
|
const divider = "_divider_2bfzh_1";
|
|
19732
19732
|
const alignLeft = "_alignLeft_2bfzh_12";
|
|
19733
19733
|
const alignRight = "_alignRight_2bfzh_15";
|
|
19734
|
-
const styles$
|
|
19734
|
+
const styles$c = {
|
|
19735
19735
|
divider,
|
|
19736
19736
|
alignLeft,
|
|
19737
19737
|
alignRight
|
|
@@ -19743,9 +19743,9 @@ const faint = "_faint_11ofj_10";
|
|
|
19743
19743
|
const success = "_success_11ofj_13";
|
|
19744
19744
|
const warning$5 = "_warning_11ofj_16";
|
|
19745
19745
|
const error$o = "_error_11ofj_19";
|
|
19746
|
-
const small$
|
|
19746
|
+
const small$2 = "_small_11ofj_22";
|
|
19747
19747
|
const link$2 = "_link_11ofj_25";
|
|
19748
|
-
const styles$
|
|
19748
|
+
const styles$b = {
|
|
19749
19749
|
bold: bold$1,
|
|
19750
19750
|
center,
|
|
19751
19751
|
muted: muted$1,
|
|
@@ -19753,7 +19753,7 @@ const styles$a = {
|
|
|
19753
19753
|
success,
|
|
19754
19754
|
warning: warning$5,
|
|
19755
19755
|
error: error$o,
|
|
19756
|
-
small: small$
|
|
19756
|
+
small: small$2,
|
|
19757
19757
|
link: link$2
|
|
19758
19758
|
};
|
|
19759
19759
|
const Text = ({
|
|
@@ -19773,16 +19773,16 @@ const Text = ({
|
|
|
19773
19773
|
"span",
|
|
19774
19774
|
{
|
|
19775
19775
|
className: cx$2(
|
|
19776
|
-
bold2 && styles$
|
|
19777
|
-
center2 && styles$
|
|
19778
|
-
error2 && styles$
|
|
19779
|
-
faint2 && styles$
|
|
19780
|
-
link2 && styles$
|
|
19781
|
-
muted2 && styles$
|
|
19782
|
-
onClick && styles$
|
|
19783
|
-
small2 && styles$
|
|
19784
|
-
success2 && styles$
|
|
19785
|
-
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
|
|
19786
19786
|
),
|
|
19787
19787
|
onClick,
|
|
19788
19788
|
children
|
|
@@ -19792,9 +19792,9 @@ const Text = ({
|
|
|
19792
19792
|
const cssAlignClass = (align) => {
|
|
19793
19793
|
switch (align) {
|
|
19794
19794
|
case Align.LEFT:
|
|
19795
|
-
return styles$
|
|
19795
|
+
return styles$c.alignLeft;
|
|
19796
19796
|
case Align.RIGHT:
|
|
19797
|
-
return styles$
|
|
19797
|
+
return styles$c.alignRight;
|
|
19798
19798
|
default:
|
|
19799
19799
|
return "";
|
|
19800
19800
|
}
|
|
@@ -19807,7 +19807,7 @@ const Divider = ({
|
|
|
19807
19807
|
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19808
19808
|
"div",
|
|
19809
19809
|
{
|
|
19810
|
-
className: `${styles$
|
|
19810
|
+
className: `${styles$c.divider} ${cssAlignClass(align)}`,
|
|
19811
19811
|
style: {
|
|
19812
19812
|
marginTop: margin,
|
|
19813
19813
|
marginBottom: margin,
|
|
@@ -19819,7 +19819,7 @@ const Divider = ({
|
|
|
19819
19819
|
const heading$1 = "_heading_yhdiy_1";
|
|
19820
19820
|
const top$1 = "_top_yhdiy_10";
|
|
19821
19821
|
const icons = "_icons_yhdiy_20";
|
|
19822
|
-
const styles$
|
|
19822
|
+
const styles$a = {
|
|
19823
19823
|
heading: heading$1,
|
|
19824
19824
|
top: top$1,
|
|
19825
19825
|
icons
|
|
@@ -19840,13 +19840,13 @@ const Heading = ({
|
|
|
19840
19840
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
19841
19841
|
"div",
|
|
19842
19842
|
{
|
|
19843
|
-
className: cx$2(styles$
|
|
19843
|
+
className: cx$2(styles$a.heading, top2 ? styles$a.top : ""),
|
|
19844
19844
|
style: { marginBottom },
|
|
19845
19845
|
onClick,
|
|
19846
19846
|
"data-testid": testId,
|
|
19847
19847
|
children: [
|
|
19848
19848
|
children,
|
|
19849
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
19849
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$a.icons, children: [
|
|
19850
19850
|
icon2 && /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { onClick: onIconClick, icon: icon2 }),
|
|
19851
19851
|
isHelpIconDisplayed && /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { text: helpText, onClick: onClickHelp }),
|
|
19852
19852
|
libraryIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -19889,7 +19889,7 @@ const active$3 = "_active_13n8n_197";
|
|
|
19889
19889
|
const disabled$1 = "_disabled_13n8n_222";
|
|
19890
19890
|
const tabsContent = "_tabsContent_13n8n_229";
|
|
19891
19891
|
const resizeHandle = "_resizeHandle_13n8n_235";
|
|
19892
|
-
const styles$
|
|
19892
|
+
const styles$9 = {
|
|
19893
19893
|
inputInTable: inputInTable$4,
|
|
19894
19894
|
error: error$n,
|
|
19895
19895
|
warning: warning$4,
|
|
@@ -19932,13 +19932,13 @@ const DrawerTabs = ({
|
|
|
19932
19932
|
testId
|
|
19933
19933
|
}) => {
|
|
19934
19934
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
19935
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
19935
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$9.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19936
19936
|
"div",
|
|
19937
19937
|
{
|
|
19938
19938
|
className: cx$2(
|
|
19939
|
-
styles$
|
|
19940
|
-
activeTab === index2 && open ? styles$
|
|
19941
|
-
tab2.disabled ? styles$
|
|
19939
|
+
styles$9.tab,
|
|
19940
|
+
activeTab === index2 && open ? styles$9.active : "",
|
|
19941
|
+
tab2.disabled ? styles$9.disabled : ""
|
|
19942
19942
|
),
|
|
19943
19943
|
style: { background: background2 },
|
|
19944
19944
|
onClick: !tab2.disabled ? () => handleTabClick(index2) : void 0,
|
|
@@ -19953,7 +19953,7 @@ const DrawerTabs = ({
|
|
|
19953
19953
|
"div",
|
|
19954
19954
|
{
|
|
19955
19955
|
style: { width: typeof width2 === "number" ? `${width2}px` : width2 },
|
|
19956
|
-
className: styles$
|
|
19956
|
+
className: styles$9.tabsContent,
|
|
19957
19957
|
"data-testid": testId && `${testId}-content-${index2}`,
|
|
19958
19958
|
children: active2 && open && tab2.content
|
|
19959
19959
|
},
|
|
@@ -21874,7 +21874,7 @@ const MIN_OPEN_WIDTH = 240;
|
|
|
21874
21874
|
const ResizeHandle = reactExports.forwardRef(
|
|
21875
21875
|
(props, ref2) => {
|
|
21876
21876
|
const { handleAxis, ...rest } = props;
|
|
21877
|
-
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 }) });
|
|
21878
21878
|
}
|
|
21879
21879
|
);
|
|
21880
21880
|
const DrawerResizeWrapper = ({
|
|
@@ -21900,7 +21900,7 @@ const DrawerResizeWrapper = ({
|
|
|
21900
21900
|
handle: /* @__PURE__ */ jsxRuntimeExports.jsx(ResizeHandle, {}),
|
|
21901
21901
|
resizeHandles: right2 ? ["w"] : ["e"],
|
|
21902
21902
|
axis: "x",
|
|
21903
|
-
className: isResizing2 ? styles$
|
|
21903
|
+
className: isResizing2 ? styles$9.isResizing : "",
|
|
21904
21904
|
onResizeStart: () => {
|
|
21905
21905
|
if (setOpen) setOpen(true);
|
|
21906
21906
|
if (onResize) onResize(width2);
|
|
@@ -21998,17 +21998,17 @@ const Drawer = ({
|
|
|
21998
21998
|
"div",
|
|
21999
21999
|
{
|
|
22000
22000
|
className: cx$2(
|
|
22001
|
-
styles$
|
|
22002
|
-
shadow4 ? styles$
|
|
22003
|
-
fixed2 ? styles$
|
|
22004
|
-
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
|
|
22005
22005
|
),
|
|
22006
22006
|
style: { top: top2 },
|
|
22007
22007
|
children: [
|
|
22008
22008
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22009
22009
|
"div",
|
|
22010
22010
|
{
|
|
22011
|
-
className: cx$2(styles$
|
|
22011
|
+
className: cx$2(styles$9.drawerContent, border2 && styles$9.border),
|
|
22012
22012
|
style: {
|
|
22013
22013
|
background: background2,
|
|
22014
22014
|
borderColor: typeof border2 === "string" ? border2 : void 0,
|
|
@@ -22034,9 +22034,9 @@ const Drawer = ({
|
|
|
22034
22034
|
"span",
|
|
22035
22035
|
{
|
|
22036
22036
|
className: cx$2(
|
|
22037
|
-
styles$
|
|
22038
|
-
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$
|
|
22039
|
-
buttonPosition === "top" ? styles$
|
|
22037
|
+
styles$9.toggleButton,
|
|
22038
|
+
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$9.toggleButtonOpen : "",
|
|
22039
|
+
buttonPosition === "top" ? styles$9.top : styles$9.bottom
|
|
22040
22040
|
),
|
|
22041
22041
|
children: isCustomButton ? button2 : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22042
22042
|
Button$1,
|
|
@@ -22065,12 +22065,12 @@ const inputDisabled$3 = "_inputDisabled_rhzw6_61";
|
|
|
22065
22065
|
const hideScrollbars$3 = "_hideScrollbars_rhzw6_67";
|
|
22066
22066
|
const input = "_input_rhzw6_1";
|
|
22067
22067
|
const isInTable = "_isInTable_rhzw6_100";
|
|
22068
|
-
const small = "_small_rhzw6_124";
|
|
22068
|
+
const small$1 = "_small_rhzw6_124";
|
|
22069
22069
|
const right$2 = "_right_rhzw6_170";
|
|
22070
22070
|
const groupOrderFirst = "_groupOrderFirst_rhzw6_173";
|
|
22071
22071
|
const groupOrderMiddle = "_groupOrderMiddle_rhzw6_174";
|
|
22072
22072
|
const groupOrderLast = "_groupOrderLast_rhzw6_175";
|
|
22073
|
-
const styles$
|
|
22073
|
+
const styles$8 = {
|
|
22074
22074
|
inputInTable: inputInTable$3,
|
|
22075
22075
|
error: error$m,
|
|
22076
22076
|
warning: warning$3,
|
|
@@ -22082,7 +22082,7 @@ const styles$7 = {
|
|
|
22082
22082
|
hideScrollbars: hideScrollbars$3,
|
|
22083
22083
|
input,
|
|
22084
22084
|
isInTable,
|
|
22085
|
-
small,
|
|
22085
|
+
small: small$1,
|
|
22086
22086
|
right: right$2,
|
|
22087
22087
|
groupOrderFirst,
|
|
22088
22088
|
groupOrderMiddle,
|
|
@@ -22124,11 +22124,11 @@ reactExports.forwardRef(
|
|
|
22124
22124
|
if (groupOrder) {
|
|
22125
22125
|
switch (groupOrder) {
|
|
22126
22126
|
case "first":
|
|
22127
|
-
return styles$
|
|
22127
|
+
return styles$8.groupOrderFirst;
|
|
22128
22128
|
case "last":
|
|
22129
|
-
return styles$
|
|
22129
|
+
return styles$8.groupOrderLast;
|
|
22130
22130
|
default:
|
|
22131
|
-
return styles$
|
|
22131
|
+
return styles$8.groupOrderMiddle;
|
|
22132
22132
|
}
|
|
22133
22133
|
}
|
|
22134
22134
|
return "";
|
|
@@ -22162,11 +22162,11 @@ reactExports.forwardRef(
|
|
|
22162
22162
|
autoComplete: "off",
|
|
22163
22163
|
disabled: disabled2 || disabledContext,
|
|
22164
22164
|
className: cx$2(
|
|
22165
|
-
styles$
|
|
22166
|
-
error2 ? styles$
|
|
22167
|
-
right2 ? styles$
|
|
22168
|
-
small2 ? styles$
|
|
22169
|
-
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 : ""
|
|
22170
22170
|
),
|
|
22171
22171
|
style: { width: width2 },
|
|
22172
22172
|
"data-testid": testId
|
|
@@ -23384,7 +23384,7 @@ memoizeOne(function(remove2, list2) {
|
|
|
23384
23384
|
return item2.descriptor.id !== remove2.descriptor.id;
|
|
23385
23385
|
});
|
|
23386
23386
|
});
|
|
23387
|
-
var vertical = {
|
|
23387
|
+
var vertical$1 = {
|
|
23388
23388
|
direction: "vertical",
|
|
23389
23389
|
line: "y",
|
|
23390
23390
|
crossAxisLine: "x",
|
|
@@ -23670,7 +23670,7 @@ var getDroppableDimension = function(_ref) {
|
|
|
23670
23670
|
}
|
|
23671
23671
|
};
|
|
23672
23672
|
}();
|
|
23673
|
-
var axis = direction === "vertical" ? vertical : horizontal;
|
|
23673
|
+
var axis = direction === "vertical" ? vertical$1 : horizontal;
|
|
23674
23674
|
var subject = getSubject({
|
|
23675
23675
|
page: page2,
|
|
23676
23676
|
withPlaceholder: null,
|
|
@@ -25091,7 +25091,7 @@ const action = "_action_dlqxe_192";
|
|
|
25091
25091
|
const active$2 = "_active_dlqxe_195";
|
|
25092
25092
|
const indented = "_indented_dlqxe_202";
|
|
25093
25093
|
const disabled = "_disabled_dlqxe_215";
|
|
25094
|
-
const label$
|
|
25094
|
+
const label$3 = "_label_dlqxe_226";
|
|
25095
25095
|
const details = "_details_dlqxe_237";
|
|
25096
25096
|
const metadata$1 = "_metadata_dlqxe_238";
|
|
25097
25097
|
const itemContent = "_itemContent_dlqxe_246";
|
|
@@ -25133,7 +25133,7 @@ const listStyles = {
|
|
|
25133
25133
|
active: active$2,
|
|
25134
25134
|
indented,
|
|
25135
25135
|
disabled,
|
|
25136
|
-
label: label$
|
|
25136
|
+
label: label$3,
|
|
25137
25137
|
details,
|
|
25138
25138
|
metadata: metadata$1,
|
|
25139
25139
|
itemContent,
|
|
@@ -25362,7 +25362,7 @@ reactExports.forwardRef(
|
|
|
25362
25362
|
);
|
|
25363
25363
|
const page = "_page_beskc_1";
|
|
25364
25364
|
const scroll = "_scroll_beskc_23";
|
|
25365
|
-
const styles$
|
|
25365
|
+
const styles$7 = {
|
|
25366
25366
|
page,
|
|
25367
25367
|
scroll
|
|
25368
25368
|
};
|
|
@@ -25377,7 +25377,7 @@ const Page$1 = ({
|
|
|
25377
25377
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25378
25378
|
"div",
|
|
25379
25379
|
{
|
|
25380
|
-
className: cx$2(styles$
|
|
25380
|
+
className: cx$2(styles$7.page, scroll3 ? styles$7.scroll : ""),
|
|
25381
25381
|
style: { left: left2, padding: padding2, top: top2 },
|
|
25382
25382
|
children
|
|
25383
25383
|
}
|
|
@@ -27160,9 +27160,9 @@ class Mark {
|
|
|
27160
27160
|
let type2 = schema.marks[json.type];
|
|
27161
27161
|
if (!type2)
|
|
27162
27162
|
throw new RangeError(`There is no mark type ${json.type} in this schema`);
|
|
27163
|
-
let
|
|
27164
|
-
type2.checkAttrs(
|
|
27165
|
-
return
|
|
27163
|
+
let mark2 = type2.create(json.attrs);
|
|
27164
|
+
type2.checkAttrs(mark2.attrs);
|
|
27165
|
+
return mark2;
|
|
27166
27166
|
}
|
|
27167
27167
|
/**
|
|
27168
27168
|
Test whether two sets of marks are identical.
|
|
@@ -28071,9 +28071,9 @@ let Node$2 = class Node {
|
|
|
28071
28071
|
this.type.checkAttrs(this.attrs);
|
|
28072
28072
|
let copy2 = Mark.none;
|
|
28073
28073
|
for (let i = 0; i < this.marks.length; i++) {
|
|
28074
|
-
let
|
|
28075
|
-
|
|
28076
|
-
copy2 =
|
|
28074
|
+
let mark2 = this.marks[i];
|
|
28075
|
+
mark2.type.checkAttrs(mark2.attrs);
|
|
28076
|
+
copy2 = mark2.addToSet(copy2);
|
|
28077
28077
|
}
|
|
28078
28078
|
if (!Mark.sameSet(copy2, this.marks))
|
|
28079
28079
|
throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((m2) => m2.type.name)}`);
|
|
@@ -28990,14 +28990,14 @@ class Schema {
|
|
|
28990
28990
|
function gatherMarks(schema, marks) {
|
|
28991
28991
|
let found2 = [];
|
|
28992
28992
|
for (let i = 0; i < marks.length; i++) {
|
|
28993
|
-
let name2 = marks[i],
|
|
28994
|
-
if (
|
|
28995
|
-
found2.push(
|
|
28993
|
+
let name2 = marks[i], mark2 = schema.marks[name2], ok2 = mark2;
|
|
28994
|
+
if (mark2) {
|
|
28995
|
+
found2.push(mark2);
|
|
28996
28996
|
} else {
|
|
28997
28997
|
for (let prop in schema.marks) {
|
|
28998
|
-
let
|
|
28999
|
-
if (name2 == "_" ||
|
|
29000
|
-
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);
|
|
29001
29001
|
}
|
|
29002
29002
|
}
|
|
29003
29003
|
if (!ok2)
|
|
@@ -29740,9 +29740,9 @@ class DOMSerializer {
|
|
|
29740
29740
|
/**
|
|
29741
29741
|
@internal
|
|
29742
29742
|
*/
|
|
29743
|
-
serializeMark(
|
|
29744
|
-
let toDOM = this.marks[
|
|
29745
|
-
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);
|
|
29746
29746
|
}
|
|
29747
29747
|
static renderSpec(doc2, structure, xmlNS = null, blockArraysIn) {
|
|
29748
29748
|
return renderSpec(doc2, structure, xmlNS, blockArraysIn);
|
|
@@ -30229,11 +30229,11 @@ class AddMarkStep extends Step {
|
|
|
30229
30229
|
/**
|
|
30230
30230
|
Create a mark step.
|
|
30231
30231
|
*/
|
|
30232
|
-
constructor(from3, to2,
|
|
30232
|
+
constructor(from3, to2, mark2) {
|
|
30233
30233
|
super();
|
|
30234
30234
|
this.from = from3;
|
|
30235
30235
|
this.to = to2;
|
|
30236
|
-
this.mark =
|
|
30236
|
+
this.mark = mark2;
|
|
30237
30237
|
}
|
|
30238
30238
|
apply(doc2) {
|
|
30239
30239
|
let oldSlice = doc2.slice(this.from, this.to), $from = doc2.resolve(this.from);
|
|
@@ -30281,11 +30281,11 @@ class RemoveMarkStep extends Step {
|
|
|
30281
30281
|
/**
|
|
30282
30282
|
Create a mark-removing step.
|
|
30283
30283
|
*/
|
|
30284
|
-
constructor(from3, to2,
|
|
30284
|
+
constructor(from3, to2, mark2) {
|
|
30285
30285
|
super();
|
|
30286
30286
|
this.from = from3;
|
|
30287
30287
|
this.to = to2;
|
|
30288
|
-
this.mark =
|
|
30288
|
+
this.mark = mark2;
|
|
30289
30289
|
}
|
|
30290
30290
|
apply(doc2) {
|
|
30291
30291
|
let oldSlice = doc2.slice(this.from, this.to);
|
|
@@ -30330,10 +30330,10 @@ class AddNodeMarkStep extends Step {
|
|
|
30330
30330
|
/**
|
|
30331
30331
|
Create a node mark step.
|
|
30332
30332
|
*/
|
|
30333
|
-
constructor(pos,
|
|
30333
|
+
constructor(pos, mark2) {
|
|
30334
30334
|
super();
|
|
30335
30335
|
this.pos = pos;
|
|
30336
|
-
this.mark =
|
|
30336
|
+
this.mark = mark2;
|
|
30337
30337
|
}
|
|
30338
30338
|
apply(doc2) {
|
|
30339
30339
|
let node2 = doc2.nodeAt(this.pos);
|
|
@@ -30376,10 +30376,10 @@ class RemoveNodeMarkStep extends Step {
|
|
|
30376
30376
|
/**
|
|
30377
30377
|
Create a mark-removing step.
|
|
30378
30378
|
*/
|
|
30379
|
-
constructor(pos,
|
|
30379
|
+
constructor(pos, mark2) {
|
|
30380
30380
|
super();
|
|
30381
30381
|
this.pos = pos;
|
|
30382
|
-
this.mark =
|
|
30382
|
+
this.mark = mark2;
|
|
30383
30383
|
}
|
|
30384
30384
|
apply(doc2) {
|
|
30385
30385
|
let node2 = doc2.nodeAt(this.pos);
|
|
@@ -30568,16 +30568,16 @@ function contentBetween(doc2, from3, to2) {
|
|
|
30568
30568
|
}
|
|
30569
30569
|
return false;
|
|
30570
30570
|
}
|
|
30571
|
-
function addMark(tr2, from3, to2,
|
|
30571
|
+
function addMark(tr2, from3, to2, mark2) {
|
|
30572
30572
|
let removed = [], added = [];
|
|
30573
30573
|
let removing, adding;
|
|
30574
30574
|
tr2.doc.nodesBetween(from3, to2, (node2, pos, parent) => {
|
|
30575
30575
|
if (!node2.isInline)
|
|
30576
30576
|
return;
|
|
30577
30577
|
let marks = node2.marks;
|
|
30578
|
-
if (!
|
|
30578
|
+
if (!mark2.isInSet(marks) && parent.type.allowsMarkType(mark2.type)) {
|
|
30579
30579
|
let start = Math.max(pos, from3), end2 = Math.min(pos + node2.nodeSize, to2);
|
|
30580
|
-
let newSet =
|
|
30580
|
+
let newSet = mark2.addToSet(marks);
|
|
30581
30581
|
for (let i = 0; i < marks.length; i++) {
|
|
30582
30582
|
if (!marks[i].isInSet(newSet)) {
|
|
30583
30583
|
if (removing && removing.to == start && removing.mark.eq(marks[i]))
|
|
@@ -30589,28 +30589,28 @@ function addMark(tr2, from3, to2, mark) {
|
|
|
30589
30589
|
if (adding && adding.to == start)
|
|
30590
30590
|
adding.to = end2;
|
|
30591
30591
|
else
|
|
30592
|
-
added.push(adding = new AddMarkStep(start, end2,
|
|
30592
|
+
added.push(adding = new AddMarkStep(start, end2, mark2));
|
|
30593
30593
|
}
|
|
30594
30594
|
});
|
|
30595
30595
|
removed.forEach((s) => tr2.step(s));
|
|
30596
30596
|
added.forEach((s) => tr2.step(s));
|
|
30597
30597
|
}
|
|
30598
|
-
function removeMark$1(tr2, from3, to2,
|
|
30598
|
+
function removeMark$1(tr2, from3, to2, mark2) {
|
|
30599
30599
|
let matched = [], step = 0;
|
|
30600
30600
|
tr2.doc.nodesBetween(from3, to2, (node2, pos) => {
|
|
30601
30601
|
if (!node2.isInline)
|
|
30602
30602
|
return;
|
|
30603
30603
|
step++;
|
|
30604
30604
|
let toRemove = null;
|
|
30605
|
-
if (
|
|
30605
|
+
if (mark2 instanceof MarkType) {
|
|
30606
30606
|
let set = node2.marks, found2;
|
|
30607
|
-
while (found2 =
|
|
30607
|
+
while (found2 = mark2.isInSet(set)) {
|
|
30608
30608
|
(toRemove || (toRemove = [])).push(found2);
|
|
30609
30609
|
set = found2.removeFromSet(set);
|
|
30610
30610
|
}
|
|
30611
|
-
} else if (
|
|
30612
|
-
if (
|
|
30613
|
-
toRemove = [
|
|
30611
|
+
} else if (mark2) {
|
|
30612
|
+
if (mark2.isInSet(node2.marks))
|
|
30613
|
+
toRemove = [mark2];
|
|
30614
30614
|
} else {
|
|
30615
30615
|
toRemove = node2.marks;
|
|
30616
30616
|
}
|
|
@@ -31538,24 +31538,24 @@ class Transform {
|
|
|
31538
31538
|
/**
|
|
31539
31539
|
Add a mark to the node at position `pos`.
|
|
31540
31540
|
*/
|
|
31541
|
-
addNodeMark(pos,
|
|
31542
|
-
this.step(new AddNodeMarkStep(pos,
|
|
31541
|
+
addNodeMark(pos, mark2) {
|
|
31542
|
+
this.step(new AddNodeMarkStep(pos, mark2));
|
|
31543
31543
|
return this;
|
|
31544
31544
|
}
|
|
31545
31545
|
/**
|
|
31546
31546
|
Remove a mark (or a mark of the given type) from the node at
|
|
31547
31547
|
position `pos`.
|
|
31548
31548
|
*/
|
|
31549
|
-
removeNodeMark(pos,
|
|
31550
|
-
if (!(
|
|
31549
|
+
removeNodeMark(pos, mark2) {
|
|
31550
|
+
if (!(mark2 instanceof Mark)) {
|
|
31551
31551
|
let node2 = this.doc.nodeAt(pos);
|
|
31552
31552
|
if (!node2)
|
|
31553
31553
|
throw new RangeError("No node at position " + pos);
|
|
31554
|
-
|
|
31555
|
-
if (!
|
|
31554
|
+
mark2 = mark2.isInSet(node2.marks);
|
|
31555
|
+
if (!mark2)
|
|
31556
31556
|
return this;
|
|
31557
31557
|
}
|
|
31558
|
-
this.step(new RemoveNodeMarkStep(pos,
|
|
31558
|
+
this.step(new RemoveNodeMarkStep(pos, mark2));
|
|
31559
31559
|
return this;
|
|
31560
31560
|
}
|
|
31561
31561
|
/**
|
|
@@ -31572,8 +31572,8 @@ class Transform {
|
|
|
31572
31572
|
/**
|
|
31573
31573
|
Add the given mark to the inline content between `from` and `to`.
|
|
31574
31574
|
*/
|
|
31575
|
-
addMark(from3, to2,
|
|
31576
|
-
addMark(this, from3, to2,
|
|
31575
|
+
addMark(from3, to2, mark2) {
|
|
31576
|
+
addMark(this, from3, to2, mark2);
|
|
31577
31577
|
return this;
|
|
31578
31578
|
}
|
|
31579
31579
|
/**
|
|
@@ -31582,8 +31582,8 @@ class Transform {
|
|
|
31582
31582
|
a mark type, remove all marks of that type. When it is null,
|
|
31583
31583
|
remove all marks of any type.
|
|
31584
31584
|
*/
|
|
31585
|
-
removeMark(from3, to2,
|
|
31586
|
-
removeMark$1(this, from3, to2,
|
|
31585
|
+
removeMark(from3, to2, mark2) {
|
|
31586
|
+
removeMark$1(this, from3, to2, mark2);
|
|
31587
31587
|
return this;
|
|
31588
31588
|
}
|
|
31589
31589
|
/**
|
|
@@ -32103,14 +32103,14 @@ class Transaction extends Transform {
|
|
|
32103
32103
|
/**
|
|
32104
32104
|
Add a mark to the set of stored marks.
|
|
32105
32105
|
*/
|
|
32106
|
-
addStoredMark(
|
|
32107
|
-
return this.ensureMarks(
|
|
32106
|
+
addStoredMark(mark2) {
|
|
32107
|
+
return this.ensureMarks(mark2.addToSet(this.storedMarks || this.selection.$head.marks()));
|
|
32108
32108
|
}
|
|
32109
32109
|
/**
|
|
32110
32110
|
Remove a mark or mark type from the set of stored marks.
|
|
32111
32111
|
*/
|
|
32112
|
-
removeStoredMark(
|
|
32113
|
-
return this.ensureMarks(
|
|
32112
|
+
removeStoredMark(mark2) {
|
|
32113
|
+
return this.ensureMarks(mark2.removeFromSet(this.storedMarks || this.selection.$head.marks()));
|
|
32114
32114
|
}
|
|
32115
32115
|
/**
|
|
32116
32116
|
Whether the stored marks were explicitly set for this transaction.
|
|
@@ -33624,7 +33624,7 @@ class ViewDesc {
|
|
|
33624
33624
|
matchesWidget(widget) {
|
|
33625
33625
|
return false;
|
|
33626
33626
|
}
|
|
33627
|
-
matchesMark(
|
|
33627
|
+
matchesMark(mark2) {
|
|
33628
33628
|
return false;
|
|
33629
33629
|
}
|
|
33630
33630
|
matchesNode(node2, outerDeco, innerDeco) {
|
|
@@ -34054,24 +34054,24 @@ class CompositionViewDesc extends ViewDesc {
|
|
|
34054
34054
|
}
|
|
34055
34055
|
}
|
|
34056
34056
|
class MarkViewDesc extends ViewDesc {
|
|
34057
|
-
constructor(parent,
|
|
34057
|
+
constructor(parent, mark2, dom, contentDOM) {
|
|
34058
34058
|
super(parent, [], dom, contentDOM);
|
|
34059
|
-
this.mark =
|
|
34059
|
+
this.mark = mark2;
|
|
34060
34060
|
}
|
|
34061
|
-
static create(parent,
|
|
34062
|
-
let custom = view.nodeViews[
|
|
34063
|
-
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);
|
|
34064
34064
|
if (!spec || !spec.dom)
|
|
34065
|
-
spec = DOMSerializer.renderSpec(document,
|
|
34066
|
-
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);
|
|
34067
34067
|
}
|
|
34068
34068
|
parseRule() {
|
|
34069
34069
|
if (this.dirty & NODE_DIRTY || this.mark.type.spec.reparseInView)
|
|
34070
34070
|
return null;
|
|
34071
34071
|
return { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
34072
34072
|
}
|
|
34073
|
-
matchesMark(
|
|
34074
|
-
return this.dirty != NODE_DIRTY && this.mark.eq(
|
|
34073
|
+
matchesMark(mark2) {
|
|
34074
|
+
return this.dirty != NODE_DIRTY && this.mark.eq(mark2);
|
|
34075
34075
|
}
|
|
34076
34076
|
markDirty(from3, to2) {
|
|
34077
34077
|
super.markDirty(from3, to2);
|
|
@@ -37461,19 +37461,19 @@ function resolveSelection(view, doc2, parsedSel) {
|
|
|
37461
37461
|
}
|
|
37462
37462
|
function isMarkChange(cur, prev2) {
|
|
37463
37463
|
let curMarks = cur.firstChild.marks, prevMarks = prev2.firstChild.marks;
|
|
37464
|
-
let added = curMarks, removed = prevMarks, type2,
|
|
37464
|
+
let added = curMarks, removed = prevMarks, type2, mark2, update;
|
|
37465
37465
|
for (let i = 0; i < prevMarks.length; i++)
|
|
37466
37466
|
added = prevMarks[i].removeFromSet(added);
|
|
37467
37467
|
for (let i = 0; i < curMarks.length; i++)
|
|
37468
37468
|
removed = curMarks[i].removeFromSet(removed);
|
|
37469
37469
|
if (added.length == 1 && removed.length == 0) {
|
|
37470
|
-
|
|
37470
|
+
mark2 = added[0];
|
|
37471
37471
|
type2 = "add";
|
|
37472
|
-
update = (node2) => node2.mark(
|
|
37472
|
+
update = (node2) => node2.mark(mark2.addToSet(node2.marks));
|
|
37473
37473
|
} else if (added.length == 0 && removed.length == 1) {
|
|
37474
|
-
|
|
37474
|
+
mark2 = removed[0];
|
|
37475
37475
|
type2 = "remove";
|
|
37476
|
-
update = (node2) => node2.mark(
|
|
37476
|
+
update = (node2) => node2.mark(mark2.removeFromSet(node2.marks));
|
|
37477
37477
|
} else {
|
|
37478
37478
|
return null;
|
|
37479
37479
|
}
|
|
@@ -37481,7 +37481,7 @@ function isMarkChange(cur, prev2) {
|
|
|
37481
37481
|
for (let i = 0; i < prev2.childCount; i++)
|
|
37482
37482
|
updated.push(update(prev2.child(i)));
|
|
37483
37483
|
if (Fragment.from(updated).eq(cur))
|
|
37484
|
-
return { mark, type: type2 };
|
|
37484
|
+
return { mark: mark2, type: type2 };
|
|
37485
37485
|
}
|
|
37486
37486
|
function looksLikeBackspace(old, start, end2, $newStart, $newEnd) {
|
|
37487
37487
|
if (
|
|
@@ -38357,11 +38357,11 @@ function markActiveInRange(resolvedRange, marks) {
|
|
|
38357
38357
|
}
|
|
38358
38358
|
function rangeHasMarks(resolvedRange, marks) {
|
|
38359
38359
|
const { $from, $to } = resolvedRange;
|
|
38360
|
-
const setOfMarks = new Set(($from.marksAcross($to) ?? []).map((
|
|
38360
|
+
const setOfMarks = new Set(($from.marksAcross($to) ?? []).map((mark2) => mark2.type.name));
|
|
38361
38361
|
return marks.some((item2) => setOfMarks.has(item2));
|
|
38362
38362
|
}
|
|
38363
38363
|
function positionHasMarks($pos, marks) {
|
|
38364
|
-
const setOfMarks = new Set($pos.marks().map((
|
|
38364
|
+
const setOfMarks = new Set($pos.marks().map((mark2) => mark2.type.name));
|
|
38365
38365
|
return marks.some((item2) => setOfMarks.has(item2));
|
|
38366
38366
|
}
|
|
38367
38367
|
function isPositionValidForSuggester(suggester, resolvedRange) {
|
|
@@ -39251,11 +39251,11 @@ function rangeHasMark(props) {
|
|
|
39251
39251
|
return false;
|
|
39252
39252
|
}
|
|
39253
39253
|
const marks = node2.marks ?? [];
|
|
39254
|
-
found2 = marks.some((
|
|
39255
|
-
if (
|
|
39254
|
+
found2 = marks.some((mark2) => {
|
|
39255
|
+
if (mark2.type !== markType) {
|
|
39256
39256
|
return false;
|
|
39257
39257
|
}
|
|
39258
|
-
return containsAttributes(
|
|
39258
|
+
return containsAttributes(mark2, attrs);
|
|
39259
39259
|
});
|
|
39260
39260
|
return !found2;
|
|
39261
39261
|
});
|
|
@@ -39282,11 +39282,11 @@ function isMarkActive(props) {
|
|
|
39282
39282
|
}
|
|
39283
39283
|
if (selection.empty) {
|
|
39284
39284
|
const marks = storedMarks ?? selection.$from.marks();
|
|
39285
|
-
return marks.some((
|
|
39286
|
-
if (
|
|
39285
|
+
return marks.some((mark2) => {
|
|
39286
|
+
if (mark2.type !== type2) {
|
|
39287
39287
|
return false;
|
|
39288
39288
|
}
|
|
39289
|
-
return containsAttributes(
|
|
39289
|
+
return containsAttributes(mark2, attrs ?? {});
|
|
39290
39290
|
});
|
|
39291
39291
|
}
|
|
39292
39292
|
return rangeHasMark({ ...props, from: selection.from, to: selection.to });
|
|
@@ -39364,27 +39364,27 @@ function getMarkRange($pos, type2, $end) {
|
|
|
39364
39364
|
return;
|
|
39365
39365
|
}
|
|
39366
39366
|
const typeName = isString$2(type2) ? type2 : type2.name;
|
|
39367
|
-
const
|
|
39367
|
+
const mark2 = start.node.marks.find(({ type: markType }) => markType.name === typeName);
|
|
39368
39368
|
let startIndex = $pos.index();
|
|
39369
39369
|
let startPos = $pos.start() + start.offset;
|
|
39370
39370
|
let endIndex = startIndex + 1;
|
|
39371
39371
|
let endPos = startPos + start.node.nodeSize;
|
|
39372
|
-
if (!
|
|
39372
|
+
if (!mark2) {
|
|
39373
39373
|
if ($end && endPos < $end.pos) {
|
|
39374
39374
|
return getMarkRange($pos.doc.resolve(endPos + 1), type2, $end);
|
|
39375
39375
|
}
|
|
39376
39376
|
return;
|
|
39377
39377
|
}
|
|
39378
|
-
while (startIndex > 0 &&
|
|
39378
|
+
while (startIndex > 0 && mark2.isInSet($pos.parent.child(startIndex - 1).marks)) {
|
|
39379
39379
|
startIndex -= 1;
|
|
39380
39380
|
startPos -= $pos.parent.child(startIndex).nodeSize;
|
|
39381
39381
|
}
|
|
39382
|
-
while (endIndex < $pos.parent.childCount &&
|
|
39382
|
+
while (endIndex < $pos.parent.childCount && mark2.isInSet($pos.parent.child(endIndex).marks)) {
|
|
39383
39383
|
endPos += $pos.parent.child(endIndex).nodeSize;
|
|
39384
39384
|
endIndex += 1;
|
|
39385
39385
|
}
|
|
39386
39386
|
const text2 = $pos.doc.textBetween(startPos, endPos, LEAF_NODE_REPLACING_CHARACTER, "\n\n");
|
|
39387
|
-
return { from: startPos, to: endPos, text: text2, mark };
|
|
39387
|
+
return { from: startPos, to: endPos, text: text2, mark: mark2 };
|
|
39388
39388
|
}
|
|
39389
39389
|
function getTextContentFromSlice(slice3) {
|
|
39390
39390
|
var _a2;
|
|
@@ -39587,8 +39587,8 @@ function checkForInvalidContent(props) {
|
|
|
39587
39587
|
let { invalidParentMark = false, invalidParentNode = false } = props;
|
|
39588
39588
|
if (marks) {
|
|
39589
39589
|
const invalidMarks2 = [];
|
|
39590
|
-
for (const [index2,
|
|
39591
|
-
const name2 = isString$2(
|
|
39590
|
+
for (const [index2, mark2] of marks.entries()) {
|
|
39591
|
+
const name2 = isString$2(mark2) ? mark2 : mark2.type;
|
|
39592
39592
|
if (validMarks.has(name2)) {
|
|
39593
39593
|
continue;
|
|
39594
39594
|
}
|
|
@@ -40584,7 +40584,7 @@ function pasteRules(pasteRules2) {
|
|
|
40584
40584
|
var _a2, _b, _c;
|
|
40585
40585
|
const $pos = view.state.selection.$from;
|
|
40586
40586
|
const nodeName = $pos.node().type.name;
|
|
40587
|
-
const markNames = new Set($pos.marks().map((
|
|
40587
|
+
const markNames = new Set($pos.marks().map((mark2) => mark2.type.name));
|
|
40588
40588
|
for (const rule of regexPasteRules2) {
|
|
40589
40589
|
if (
|
|
40590
40590
|
// The parent node is ignored.
|
|
@@ -40604,10 +40604,10 @@ function pasteRules(pasteRules2) {
|
|
|
40604
40604
|
const newTextNodes = [];
|
|
40605
40605
|
const { getAttributes, markType } = rule;
|
|
40606
40606
|
const attributes = isFunction$1(getAttributes) ? getAttributes(match2, true) : getAttributes;
|
|
40607
|
-
const
|
|
40607
|
+
const mark2 = markType.create(attributes);
|
|
40608
40608
|
textSlice.content.forEach((textNode) => {
|
|
40609
40609
|
if (textNode.isText) {
|
|
40610
|
-
const marks =
|
|
40610
|
+
const marks = mark2.addToSet(textNode.marks);
|
|
40611
40611
|
newTextNodes.push(textNode.mark(marks));
|
|
40612
40612
|
}
|
|
40613
40613
|
});
|
|
@@ -40708,7 +40708,7 @@ function createPasteRuleHandler(transformer, schema) {
|
|
|
40708
40708
|
}
|
|
40709
40709
|
return;
|
|
40710
40710
|
}
|
|
40711
|
-
if (child.marks.some((
|
|
40711
|
+
if (child.marks.some((mark2) => isCodeMark(mark2) || (ignoredMarks == null ? void 0 : ignoredMarks.includes(mark2.type.name)))) {
|
|
40712
40712
|
nodes.push(child);
|
|
40713
40713
|
return;
|
|
40714
40714
|
}
|
|
@@ -40755,7 +40755,7 @@ function markRuleTransformer(props) {
|
|
|
40755
40755
|
const { transformMatch, getAttributes, markType } = rule;
|
|
40756
40756
|
const attributes = isFunction$1(getAttributes) ? getAttributes(match2, false) : getAttributes;
|
|
40757
40757
|
const text2 = textNode.text ?? "";
|
|
40758
|
-
const
|
|
40758
|
+
const mark2 = markType.create(attributes);
|
|
40759
40759
|
const transformedCapturedValue = transformMatch == null ? void 0 : transformMatch(match2);
|
|
40760
40760
|
if (transformedCapturedValue === "") {
|
|
40761
40761
|
return;
|
|
@@ -40764,7 +40764,7 @@ function markRuleTransformer(props) {
|
|
|
40764
40764
|
nodes.push(schema.text(text2, textNode.marks));
|
|
40765
40765
|
return;
|
|
40766
40766
|
}
|
|
40767
|
-
const marks =
|
|
40767
|
+
const marks = mark2.addToSet(textNode.marks);
|
|
40768
40768
|
nodes.push(schema.text(transformedCapturedValue ?? text2, marks));
|
|
40769
40769
|
}
|
|
40770
40770
|
function textRuleTransformer(props) {
|
|
@@ -40803,9 +40803,9 @@ function isCodeNode(node2) {
|
|
|
40803
40803
|
var _a2;
|
|
40804
40804
|
return node2.type.spec.code || ((_a2 = node2.type.spec.group) == null ? void 0 : _a2.split(" ").includes("code"));
|
|
40805
40805
|
}
|
|
40806
|
-
function isCodeMark(
|
|
40806
|
+
function isCodeMark(mark2) {
|
|
40807
40807
|
var _a2;
|
|
40808
|
-
return
|
|
40808
|
+
return mark2.type.name === "code" || ((_a2 = mark2.type.spec.group) == null ? void 0 : _a2.split(" ").includes("code"));
|
|
40809
40809
|
}
|
|
40810
40810
|
function getDataTransferFiles(event) {
|
|
40811
40811
|
var _a2, _b;
|
|
@@ -42004,14 +42004,14 @@ var CommandsExtension = class extends PlainExtension {
|
|
|
42004
42004
|
code: ErrorConstant.SCHEMA,
|
|
42005
42005
|
message: `The requested node type ${node2} does not exist in the schema.`
|
|
42006
42006
|
});
|
|
42007
|
-
const marks = (_a2 = options2.marks) == null ? void 0 : _a2.map((
|
|
42008
|
-
if (
|
|
42009
|
-
return
|
|
42007
|
+
const marks = (_a2 = options2.marks) == null ? void 0 : _a2.map((mark2) => {
|
|
42008
|
+
if (mark2 instanceof Mark) {
|
|
42009
|
+
return mark2;
|
|
42010
42010
|
}
|
|
42011
|
-
const markType = isString$2(
|
|
42011
|
+
const markType = isString$2(mark2) ? state.schema.marks[mark2] : mark2;
|
|
42012
42012
|
invariant$2(markType, {
|
|
42013
42013
|
code: ErrorConstant.SCHEMA,
|
|
42014
|
-
message: `The requested mark type ${
|
|
42014
|
+
message: `The requested mark type ${mark2} does not exist in the schema.`
|
|
42015
42015
|
});
|
|
42016
42016
|
return markType.create();
|
|
42017
42017
|
});
|
|
@@ -43242,15 +43242,15 @@ var KeymapExtension = class extends PlainExtension {
|
|
|
43242
43242
|
return false;
|
|
43243
43243
|
}
|
|
43244
43244
|
const $pos = tr2.selection.$from;
|
|
43245
|
-
const marksToRemove = $pos.marks().filter((
|
|
43245
|
+
const marksToRemove = $pos.marks().filter((mark2) => !excludedMarks.includes(mark2.type.name));
|
|
43246
43246
|
if (isEmptyArray(marksToRemove)) {
|
|
43247
43247
|
return false;
|
|
43248
43248
|
}
|
|
43249
43249
|
if (!dispatch) {
|
|
43250
43250
|
return true;
|
|
43251
43251
|
}
|
|
43252
|
-
for (const
|
|
43253
|
-
tr2.removeStoredMark(
|
|
43252
|
+
for (const mark2 of marksToRemove) {
|
|
43253
|
+
tr2.removeStoredMark(mark2);
|
|
43254
43254
|
}
|
|
43255
43255
|
dispatch(tr2.insertText(" ", tr2.selection.from));
|
|
43256
43256
|
return true;
|
|
@@ -43289,7 +43289,7 @@ var KeymapExtension = class extends PlainExtension {
|
|
|
43289
43289
|
return false;
|
|
43290
43290
|
}
|
|
43291
43291
|
const marksToRemove = [...tr2.storedMarks ?? [], ...tr2.selection.$from.marks()].filter(
|
|
43292
|
-
(
|
|
43292
|
+
(mark2) => !excludedMarks.includes(mark2.type.name)
|
|
43293
43293
|
);
|
|
43294
43294
|
if (isEmptyArray(marksToRemove)) {
|
|
43295
43295
|
return false;
|
|
@@ -43297,8 +43297,8 @@ var KeymapExtension = class extends PlainExtension {
|
|
|
43297
43297
|
if (!dispatch) {
|
|
43298
43298
|
return true;
|
|
43299
43299
|
}
|
|
43300
|
-
for (const
|
|
43301
|
-
tr2.removeStoredMark(
|
|
43300
|
+
for (const mark2 of marksToRemove) {
|
|
43301
|
+
tr2.removeStoredMark(mark2);
|
|
43302
43302
|
}
|
|
43303
43303
|
this.backwardMarkExitTracker.set(tr2.selection.anchor, true);
|
|
43304
43304
|
dispatch(tr2);
|
|
@@ -43845,12 +43845,12 @@ var SchemaExtension = class extends PlainExtension {
|
|
|
43845
43845
|
checkAndUpdateDynamicMarks(node2, pos, tr2) {
|
|
43846
43846
|
for (const [name2, dynamic] of entries(this.dynamicAttributes.marks)) {
|
|
43847
43847
|
const type2 = assertGet(this.store.schema.marks, name2);
|
|
43848
|
-
const
|
|
43849
|
-
if (!
|
|
43848
|
+
const mark2 = node2.marks.find((mark22) => mark22.type.name === name2);
|
|
43849
|
+
if (!mark2) {
|
|
43850
43850
|
continue;
|
|
43851
43851
|
}
|
|
43852
43852
|
for (const [attributeName, attributeCreator] of entries(dynamic)) {
|
|
43853
|
-
if (!isNullOrUndefined(
|
|
43853
|
+
if (!isNullOrUndefined(mark2.attrs[attributeName])) {
|
|
43854
43854
|
continue;
|
|
43855
43855
|
}
|
|
43856
43856
|
const range2 = getMarkRange(tr2.doc.resolve(pos), type2);
|
|
@@ -43859,8 +43859,8 @@ var SchemaExtension = class extends PlainExtension {
|
|
|
43859
43859
|
}
|
|
43860
43860
|
const { from: from3, to: to2 } = range2;
|
|
43861
43861
|
const newMark = type2.create({
|
|
43862
|
-
...
|
|
43863
|
-
[attributeName]: attributeCreator(
|
|
43862
|
+
...mark2.attrs,
|
|
43863
|
+
[attributeName]: attributeCreator(mark2)
|
|
43864
43864
|
});
|
|
43865
43865
|
tr2.removeMark(from3, to2, type2).addMark(from3, to2, newMark);
|
|
43866
43866
|
ignoreUpdateForSuggest(tr2);
|
|
@@ -46450,7 +46450,7 @@ var CodeExtension = class extends MarkExtension {
|
|
|
46450
46450
|
...override,
|
|
46451
46451
|
attrs: extra.defaults(),
|
|
46452
46452
|
parseDOM: [{ tag: "code", getAttrs: extra.parse }, ...override.parseDOM ?? []],
|
|
46453
|
-
toDOM: (
|
|
46453
|
+
toDOM: (mark2) => ["code", { spellcheck: "false", ...extra.dom(mark2) }, 0]
|
|
46454
46454
|
};
|
|
46455
46455
|
}
|
|
46456
46456
|
createKeymap() {
|
|
@@ -47999,7 +47999,7 @@ var ItalicExtension = class extends MarkExtension {
|
|
|
47999
47999
|
{ style: "font-style=italic" },
|
|
48000
48000
|
...override.parseDOM ?? []
|
|
48001
48001
|
],
|
|
48002
|
-
toDOM: (
|
|
48002
|
+
toDOM: (mark2) => ["em", extra.dom(mark2), 0]
|
|
48003
48003
|
};
|
|
48004
48004
|
}
|
|
48005
48005
|
createKeymap() {
|
|
@@ -48542,14 +48542,14 @@ function listBackspace({ view }) {
|
|
|
48542
48542
|
}
|
|
48543
48543
|
function createCustomMarkListItemNodeView({
|
|
48544
48544
|
node: node2,
|
|
48545
|
-
mark,
|
|
48545
|
+
mark: mark2,
|
|
48546
48546
|
updateDOM,
|
|
48547
48547
|
updateMark
|
|
48548
48548
|
}) {
|
|
48549
48549
|
const markContainer = document.createElement("label");
|
|
48550
48550
|
markContainer.contentEditable = "false";
|
|
48551
48551
|
markContainer.classList.add(extensionListTheme.LIST_ITEM_MARKER_CONTAINER);
|
|
48552
|
-
markContainer.append(
|
|
48552
|
+
markContainer.append(mark2);
|
|
48553
48553
|
const contentDOM = document.createElement("div");
|
|
48554
48554
|
const dom = document.createElement("li");
|
|
48555
48555
|
dom.classList.add(extensionListTheme.LIST_ITEM_WITH_CUSTOM_MARKER);
|
|
@@ -48561,7 +48561,7 @@ function createCustomMarkListItemNodeView({
|
|
|
48561
48561
|
}
|
|
48562
48562
|
node2 = newNode;
|
|
48563
48563
|
updateDOM(node2, dom);
|
|
48564
|
-
updateMark(node2,
|
|
48564
|
+
updateMark(node2, mark2);
|
|
48565
48565
|
return true;
|
|
48566
48566
|
};
|
|
48567
48567
|
update(node2);
|
|
@@ -48827,11 +48827,11 @@ var ListItemExtension = class extends NodeExtension {
|
|
|
48827
48827
|
return {};
|
|
48828
48828
|
}
|
|
48829
48829
|
return (node2, view, getPos) => {
|
|
48830
|
-
const
|
|
48831
|
-
|
|
48832
|
-
|
|
48833
|
-
|
|
48834
|
-
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")) {
|
|
48835
48835
|
return;
|
|
48836
48836
|
}
|
|
48837
48837
|
const pos = getPos();
|
|
@@ -48841,7 +48841,7 @@ var ListItemExtension = class extends NodeExtension {
|
|
|
48841
48841
|
return true;
|
|
48842
48842
|
});
|
|
48843
48843
|
return createCustomMarkListItemNodeView({
|
|
48844
|
-
mark,
|
|
48844
|
+
mark: mark2,
|
|
48845
48845
|
node: node2,
|
|
48846
48846
|
updateDOM: updateNodeViewDOM,
|
|
48847
48847
|
updateMark: updateNodeViewMark
|
|
@@ -48886,8 +48886,8 @@ ListItemExtension = __decorateClass$6([
|
|
|
48886
48886
|
function updateNodeViewDOM(node2, dom) {
|
|
48887
48887
|
node2.attrs.closed ? dom.classList.add(extensionListTheme.COLLAPSIBLE_LIST_ITEM_CLOSED) : dom.classList.remove(extensionListTheme.COLLAPSIBLE_LIST_ITEM_CLOSED);
|
|
48888
48888
|
}
|
|
48889
|
-
function updateNodeViewMark(node2,
|
|
48890
|
-
node2.childCount <= 1 ?
|
|
48889
|
+
function updateNodeViewMark(node2, mark2) {
|
|
48890
|
+
node2.childCount <= 1 ? mark2.classList.add("disabled") : mark2.classList.remove("disabled");
|
|
48891
48891
|
}
|
|
48892
48892
|
var BulletListExtension = class extends NodeExtension {
|
|
48893
48893
|
get name() {
|
|
@@ -49127,24 +49127,24 @@ var TaskListItemExtension = class extends NodeExtension {
|
|
|
49127
49127
|
}
|
|
49128
49128
|
createNodeViews() {
|
|
49129
49129
|
return (node2, view, getPos) => {
|
|
49130
|
-
const
|
|
49131
|
-
|
|
49132
|
-
|
|
49133
|
-
|
|
49134
|
-
|
|
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) => {
|
|
49135
49135
|
if (!view.editable) {
|
|
49136
49136
|
e2.preventDefault();
|
|
49137
49137
|
}
|
|
49138
49138
|
});
|
|
49139
|
-
|
|
49139
|
+
mark2.addEventListener("change", () => {
|
|
49140
49140
|
const pos = getPos();
|
|
49141
49141
|
const $pos = view.state.doc.resolve(pos + 1);
|
|
49142
49142
|
this.store.commands.toggleCheckboxChecked({ $pos });
|
|
49143
49143
|
});
|
|
49144
|
-
|
|
49144
|
+
mark2.checked = node2.attrs.checked;
|
|
49145
49145
|
return createCustomMarkListItemNodeView({
|
|
49146
49146
|
node: node2,
|
|
49147
|
-
mark,
|
|
49147
|
+
mark: mark2,
|
|
49148
49148
|
updateDOM: updateNodeViewDOM2,
|
|
49149
49149
|
updateMark: updateNodeViewMark2
|
|
49150
49150
|
});
|
|
@@ -49217,8 +49217,8 @@ function updateNodeViewDOM2(node2, dom) {
|
|
|
49217
49217
|
node2.attrs.checked ? dom.setAttribute("data-checked", "") : dom.removeAttribute("data-checked");
|
|
49218
49218
|
dom.setAttribute("data-task-list-item", "");
|
|
49219
49219
|
}
|
|
49220
|
-
function updateNodeViewMark2(node2,
|
|
49221
|
-
|
|
49220
|
+
function updateNodeViewMark2(node2, mark2) {
|
|
49221
|
+
mark2.checked = !!node2.attrs.checked;
|
|
49222
49222
|
}
|
|
49223
49223
|
var TaskListExtension = class extends NodeExtension {
|
|
49224
49224
|
get name() {
|
|
@@ -54856,7 +54856,7 @@ var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
|
54856
54856
|
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
|
|
54857
54857
|
const richTextToolbar = "_richTextToolbar_1gbkk_1";
|
|
54858
54858
|
const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
|
|
54859
|
-
const styles$
|
|
54859
|
+
const styles$6 = {
|
|
54860
54860
|
richTextToolbar,
|
|
54861
54861
|
richTextToolbarContainer
|
|
54862
54862
|
};
|
|
@@ -54908,8 +54908,8 @@ const RichTextToolbar = ({
|
|
|
54908
54908
|
active: active2.orderedList()
|
|
54909
54909
|
}
|
|
54910
54910
|
];
|
|
54911
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
54912
|
-
/* @__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(
|
|
54913
54913
|
Button$1,
|
|
54914
54914
|
{
|
|
54915
54915
|
small: true,
|
|
@@ -54939,7 +54939,7 @@ const inputWarning$1 = "_inputWarning_19adc_26";
|
|
|
54939
54939
|
const inputDisabled$1 = "_inputDisabled_19adc_61";
|
|
54940
54940
|
const hideScrollbars$1 = "_hideScrollbars_19adc_67";
|
|
54941
54941
|
const richTextInput = "_richTextInput_19adc_77";
|
|
54942
|
-
const styles$
|
|
54942
|
+
const styles$5 = {
|
|
54943
54943
|
inputInTable: inputInTable$1,
|
|
54944
54944
|
error: error$k,
|
|
54945
54945
|
warning: warning$1,
|
|
@@ -54977,7 +54977,7 @@ reactExports.forwardRef(
|
|
|
54977
54977
|
}
|
|
54978
54978
|
setState(state2);
|
|
54979
54979
|
};
|
|
54980
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
54980
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$5.richTextInput, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
54981
54981
|
Remirror,
|
|
54982
54982
|
{
|
|
54983
54983
|
manager,
|
|
@@ -55084,14 +55084,14 @@ const sidebar = "_sidebar_16jgo_82";
|
|
|
55084
55084
|
const inner = "_inner_16jgo_93";
|
|
55085
55085
|
const title$2 = "_title_16jgo_103";
|
|
55086
55086
|
const subtitle = "_subtitle_16jgo_104";
|
|
55087
|
-
const label$
|
|
55087
|
+
const label$2 = "_label_16jgo_105";
|
|
55088
55088
|
const collapsed = "_collapsed_16jgo_109";
|
|
55089
55089
|
const list = "_list_16jgo_134";
|
|
55090
55090
|
const item$1 = "_item_16jgo_140";
|
|
55091
55091
|
const experimental = "_experimental_16jgo_155";
|
|
55092
55092
|
const active$1 = "_active_16jgo_159";
|
|
55093
55093
|
const icon = "_icon_16jgo_163";
|
|
55094
|
-
const styles$
|
|
55094
|
+
const styles$4 = {
|
|
55095
55095
|
inputInTable,
|
|
55096
55096
|
error: error$j,
|
|
55097
55097
|
warning,
|
|
@@ -55105,7 +55105,7 @@ const styles$3 = {
|
|
|
55105
55105
|
inner,
|
|
55106
55106
|
title: title$2,
|
|
55107
55107
|
subtitle,
|
|
55108
|
-
label: label$
|
|
55108
|
+
label: label$2,
|
|
55109
55109
|
collapsed,
|
|
55110
55110
|
list,
|
|
55111
55111
|
item: item$1,
|
|
@@ -55126,10 +55126,10 @@ const TooltipIcon = reactExports.memo(
|
|
|
55126
55126
|
fontSize: 16,
|
|
55127
55127
|
padding: "var(--padding-sm)",
|
|
55128
55128
|
display: "block",
|
|
55129
|
-
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 }) }) })
|
|
55130
55130
|
}
|
|
55131
55131
|
),
|
|
55132
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
55132
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.label, children: label2 })
|
|
55133
55133
|
] });
|
|
55134
55134
|
},
|
|
55135
55135
|
(prevProps, nextProps) => isEqual4(prevProps, nextProps)
|
|
@@ -55141,16 +55141,16 @@ const Link$1 = ({
|
|
|
55141
55141
|
onClick,
|
|
55142
55142
|
testId
|
|
55143
55143
|
}) => {
|
|
55144
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
55144
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.list, children: items2.map((link2, i) => {
|
|
55145
55145
|
const key2 = `${sectionIndex}_${i}`;
|
|
55146
55146
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
55147
55147
|
"a",
|
|
55148
55148
|
{
|
|
55149
55149
|
href: link2.value,
|
|
55150
55150
|
className: cx$2(
|
|
55151
|
-
styles$
|
|
55152
|
-
link2.isActive ? styles$
|
|
55153
|
-
link2.isExperimental ? styles$
|
|
55151
|
+
styles$4.item,
|
|
55152
|
+
link2.isActive ? styles$4.active : "",
|
|
55153
|
+
link2.isExperimental ? styles$4.experimental : ""
|
|
55154
55154
|
),
|
|
55155
55155
|
onClick: (evt) => onClick(evt, link2.value, link2.label, link2.onClick),
|
|
55156
55156
|
"data-testid": testId,
|
|
@@ -55175,7 +55175,7 @@ const Sections = ({
|
|
|
55175
55175
|
onClick
|
|
55176
55176
|
}) => {
|
|
55177
55177
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: sections.map((section, i) => /* @__PURE__ */ jsxRuntimeExports.jsxs(React$4.Fragment, { children: [
|
|
55178
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h5", { className: styles$
|
|
55178
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h5", { className: styles$4.subtitle, children: section.heading.toUpperCase() }),
|
|
55179
55179
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
55180
55180
|
Link$1,
|
|
55181
55181
|
{
|
|
@@ -55231,8 +55231,8 @@ reactExports.memo(
|
|
|
55231
55231
|
icon: IconType.LEFT
|
|
55232
55232
|
}
|
|
55233
55233
|
),
|
|
55234
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$
|
|
55235
|
-
/* @__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 }),
|
|
55236
55236
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
55237
55237
|
Sections,
|
|
55238
55238
|
{
|
|
@@ -56018,11 +56018,35 @@ var Handle = /* @__PURE__ */ React.forwardRef(function(props, ref2) {
|
|
|
56018
56018
|
});
|
|
56019
56019
|
var _default = Handle;
|
|
56020
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
|
+
};
|
|
56021
56037
|
const formatMarkers = (marks) => {
|
|
56022
56038
|
return marks.reduce((acc, { label: label2, tooltip: tooltip2, value }) => {
|
|
56023
|
-
|
|
56024
|
-
|
|
56025
|
-
|
|
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
|
+
);
|
|
56026
56050
|
return acc;
|
|
56027
56051
|
}, {});
|
|
56028
56052
|
};
|