@uva-glass/component-library 3.35.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Lexical.prod-C7FcGFd7.js → Lexical.prod-7x3WP3vd.js} +562 -563
- package/dist/Lexical.prod-7x3WP3vd.js.map +1 -0
- package/dist/{LexicalClipboard.prod-CeOlk1NB.js → LexicalClipboard.prod-BMLLh6JL.js} +11 -11
- package/dist/{LexicalClipboard.prod-CeOlk1NB.js.map → LexicalClipboard.prod-BMLLh6JL.js.map} +1 -1
- package/dist/{LexicalLink.prod-CSI9BSPD.js → LexicalLink.prod-Dr6L083o.js} +3 -3
- package/dist/{LexicalLink.prod-CSI9BSPD.js.map → LexicalLink.prod-Dr6L083o.js.map} +1 -1
- package/dist/{LexicalList.prod-TMA2LN4v.js → LexicalList.prod-nl__pKjG.js} +11 -11
- package/dist/{LexicalList.prod-TMA2LN4v.js.map → LexicalList.prod-nl__pKjG.js.map} +1 -1
- package/dist/{LexicalSelection.prod-DDwSrdAV.js → LexicalSelection.prod-CB_xP0pP.js} +24 -22
- package/dist/{LexicalSelection.prod-DDwSrdAV.js.map → LexicalSelection.prod-CB_xP0pP.js.map} +1 -1
- package/dist/{LexicalTable.prod-DYP5JQC0.js → LexicalTable.prod-CwkGGOke.js} +4 -4
- package/dist/{LexicalTable.prod-DYP5JQC0.js.map → LexicalTable.prod-CwkGGOke.js.map} +1 -1
- package/dist/{LexicalUtils.prod-D_SPJ6vo.js → LexicalUtils.prod-CtYaCJNB.js} +25 -25
- package/dist/LexicalUtils.prod-CtYaCJNB.js.map +1 -0
- package/dist/{TablePlugin-CI_6HCsd.js → TablePlugin-C38z2r5y.js} +4 -4
- package/dist/{TablePlugin-CI_6HCsd.js.map → TablePlugin-C38z2r5y.js.map} +1 -1
- package/dist/assets/VarIndicator.css +1 -1
- package/dist/{client-D0KlBcsm.js → client-BIzWgcD3.js} +766 -758
- package/dist/{client-D0KlBcsm.js.map → client-BIzWgcD3.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +3 -3
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
- package/dist/components/ActionList/ActionList.test.js +3 -3
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
- package/dist/components/Attention/Attention.test.js +2 -2
- package/dist/components/Backdrop/Backdrop.test.js +2 -2
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -2
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -2
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -2
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +3 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +7 -7
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/Label/Label.test.js +2 -2
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -2
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +2 -2
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +41 -41
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +3 -3
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.d.ts +7 -1
- package/dist/components/VarIndicator/VarIndicator.js +54 -24
- package/dist/components/VarIndicator/VarIndicator.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +8 -8
- package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
- package/dist/components/index.js +1 -1
- package/dist/{helpers-CYiLlioz.js → helpers-B0VCD9f3.js} +4 -4
- package/dist/{helpers-CYiLlioz.js.map → helpers-B0VCD9f3.js.map} +1 -1
- package/dist/{index-Ccsg2cb2.js → index-D1fbc4P-.js} +7584 -6612
- package/dist/index-D1fbc4P-.js.map +1 -0
- package/dist/{index-Ds1dMTvJ.js → index-DDN7R-oN.js} +2 -2
- package/dist/{index-Ds1dMTvJ.js.map → index-DDN7R-oN.js.map} +1 -1
- package/dist/{index-C2E9FY6V.js → index-DFu0GqDc.js} +59 -39
- package/dist/index-DFu0GqDc.js.map +1 -0
- package/dist/{index-Br0QepD6.js → index-DzN3R4wD.js} +2894 -3784
- package/dist/index-DzN3R4wD.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{react-18-inmoTCp-.js → react-18-CbXtwYTX.js} +2 -2
- package/dist/{react-18-inmoTCp-.js.map → react-18-CbXtwYTX.js.map} +1 -1
- package/dist/{react.esm-BKjCIfbB.js → react.esm-DMlPLy-4.js} +3 -3
- package/dist/{react.esm-BKjCIfbB.js.map → react.esm-DMlPLy-4.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +8079 -8042
- package/dist/storybook__react.d.js.map +1 -1
- package/package.json +34 -34
- package/dist/Lexical.prod-C7FcGFd7.js.map +0 -1
- package/dist/LexicalUtils.prod-D_SPJ6vo.js.map +0 -1
- package/dist/index-Br0QepD6.js.map +0 -1
- package/dist/index-C2E9FY6V.js.map +0 -1
- package/dist/index-Ccsg2cb2.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as e } from "../../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { o as h } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
4
|
-
import { as as _, at as y, au as C, av as k } from "../../../../Lexical.prod-
|
|
4
|
+
import { as as _, at as y, au as C, av as k } from "../../../../Lexical.prod-7x3WP3vd.js";
|
|
5
5
|
import { useState as s, useEffect as m } from "react";
|
|
6
6
|
import { Icon as n } from "../../../Icon/Icon.js";
|
|
7
7
|
import "../../../Buttons/Button.js";
|
|
@@ -17,7 +17,7 @@ import "../../../IconButton/IconButton.js";
|
|
|
17
17
|
import "../../../Input/Input.js";
|
|
18
18
|
import "../../../InputField/InputField.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../../../TablePlugin-
|
|
20
|
+
import "../../../../TablePlugin-C38z2r5y.js";
|
|
21
21
|
import { s as r } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
22
22
|
import { useTranslation as g } from "../../hooks/useTranslation.js";
|
|
23
23
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { A as D } from "../../../../../TablePlugin-
|
|
4
|
-
import "../../../../../helpers-
|
|
3
|
+
import { A as D } from "../../../../../TablePlugin-C38z2r5y.js";
|
|
4
|
+
import "../../../../../helpers-B0VCD9f3.js";
|
|
5
5
|
import "../../../../Icon/Icon.js";
|
|
6
6
|
import "../../../../Buttons/Button.js";
|
|
7
7
|
import "../../../../Buttons/LinkButton.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as L, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as K, useState as d, useRef as N, useImperativeHandle as T, useLayoutEffect as g } from "react";
|
|
3
|
-
import { e as E } from "../../../../../helpers-
|
|
3
|
+
import { e as E } from "../../../../../helpers-B0VCD9f3.js";
|
|
4
4
|
import { Icon as k } from "../../../../Icon/Icon.js";
|
|
5
5
|
import { useTranslation as R } from "../../../hooks/useTranslation.js";
|
|
6
6
|
import { Button as b } from "../../../../Buttons/Button.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as k, jsxs as J } from "react/jsx-runtime";
|
|
2
2
|
import { o as W } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import { c as Y } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { p as I, k as Z, v as q } from "../../../../LexicalLink.prod-
|
|
4
|
+
import { p as I, k as Z, v as q } from "../../../../LexicalLink.prod-Dr6L083o.js";
|
|
5
5
|
import { useRef as a, useState as G, useEffect as m } from "react";
|
|
6
|
-
import { Z as Q, P as f, n as X, ar as $, _ as w, J as tt, M as et, i as ot } from "../../../../Lexical.prod-
|
|
7
|
-
import { A as rt } from "../../../../TablePlugin-
|
|
8
|
-
import { e as nt } from "../../../../helpers-
|
|
6
|
+
import { Z as Q, P as f, n as X, ar as $, _ as w, J as tt, M as et, i as ot } from "../../../../Lexical.prod-7x3WP3vd.js";
|
|
7
|
+
import { A as rt } from "../../../../TablePlugin-C38z2r5y.js";
|
|
8
|
+
import { e as nt } from "../../../../helpers-B0VCD9f3.js";
|
|
9
9
|
import { LinkContextMenu as it } from "./LinkContextMenu/LinkContextMenu.js";
|
|
10
10
|
import { useFlyout as st } from "../../hooks/useFlyout.js";
|
|
11
11
|
import { Icon as ct } from "../../../Icon/Icon.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { o as I } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
-
import { T as N, C as P, y as v, n as K, a as f, c as S } from "../../../../LexicalList.prod-
|
|
4
|
-
import { _ as B } from "../../../../LexicalSelection.prod-
|
|
3
|
+
import { T as N, C as P, y as v, n as K, a as f, c as S } from "../../../../LexicalList.prod-nl__pKjG.js";
|
|
4
|
+
import { _ as B } from "../../../../LexicalSelection.prod-CB_xP0pP.js";
|
|
5
5
|
import { useState as p, useEffect as k } from "react";
|
|
6
6
|
import { c as $ } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
-
import { ar as w, J as x, X as O, P as b, _ as h, $ as U, B as E } from "../../../../Lexical.prod-
|
|
7
|
+
import { ar as w, J as x, X as O, P as b, _ as h, $ as U, B as E } from "../../../../Lexical.prod-7x3WP3vd.js";
|
|
8
8
|
import { Icon as J } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as l } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
10
10
|
import { useTranslation as T } from "../../hooks/useTranslation.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
2
2
|
import { useEffect as c } from "react";
|
|
3
|
-
import { af as f, V as p, P as u } from "../../../../Lexical.prod-
|
|
4
|
-
import { L as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { A as d } from "../../../../LexicalClipboard.prod-
|
|
3
|
+
import { af as f, V as p, P as u } from "../../../../Lexical.prod-7x3WP3vd.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-CtYaCJNB.js";
|
|
5
|
+
import { A as d } from "../../../../LexicalClipboard.prod-BMLLh6JL.js";
|
|
6
6
|
import { d as D } from "../../../../index-nrPtQ1dv.js";
|
|
7
7
|
const w = () => {
|
|
8
8
|
const [e] = m(), l = (t) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as B } from "../../../../TablePlugin-
|
|
3
|
+
import { b as B } from "../../../../TablePlugin-C38z2r5y.js";
|
|
4
4
|
import "../../../Buttons/Button.js";
|
|
5
5
|
import "../../../Buttons/LinkButton.js";
|
|
6
6
|
import "@react-aria/button";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-CwkGGOke.js";
|
|
5
|
+
import "../../../../Lexical.prod-7x3WP3vd.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-C38z2r5y.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as d, R as h, B as m, Z as x, z as w, P as S, v as C, K as p, L as E } from "../../../../LexicalTable.prod-
|
|
2
|
-
import { B as u } from "../../../../Lexical.prod-
|
|
1
|
+
import { H as d, R as h, B as m, Z as x, z as w, P as S, v as C, K as p, L as E } from "../../../../LexicalTable.prod-CwkGGOke.js";
|
|
2
|
+
import { B as u } from "../../../../Lexical.prod-7x3WP3vd.js";
|
|
3
3
|
const b = 100, D = (e, n) => {
|
|
4
4
|
const t = E(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { o as y } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
-
import { P as p, _ as h, M as C } from "../../../../Lexical.prod-
|
|
3
|
+
import { P as p, _ as h, M as C } from "../../../../Lexical.prod-7x3WP3vd.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as T, useEffect as c } from "react";
|
|
5
|
-
import { W as g } from "../../../../LexicalTable.prod-
|
|
5
|
+
import { W as g } from "../../../../LexicalTable.prod-CwkGGOke.js";
|
|
6
6
|
import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
7
|
import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
|
|
8
8
|
import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
|
|
9
9
|
import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
-
import { T as S } from "../../../../TablePlugin-
|
|
10
|
+
import { T as S } from "../../../../TablePlugin-C38z2r5y.js";
|
|
11
11
|
import { TableCellContextMenu as _ } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as z } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
13
13
|
import { setScrollableContainers as b, removeScrollableContainers as A } from "../../helpers.js";
|
|
@@ -3,7 +3,7 @@ import { BlockFormatPlugin as l } from "./BlockFormatPlugin/BlockFormatPlugin.js
|
|
|
3
3
|
import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
|
|
4
4
|
import { LinkPlugin as m, getLinkNodeTag as x } from "./LinkPlugin/LinkPlugin.js";
|
|
5
5
|
import { HistoryPlugin as p } from "./HistoryPlugin/HistoryPlugin.js";
|
|
6
|
-
import { T as a } from "../../../TablePlugin-
|
|
6
|
+
import { T as a } from "../../../TablePlugin-C38z2r5y.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as h, jsxs as K, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
-
import { t as Ge, r as Ye, o as
|
|
3
|
-
import { aJ as Me, ag as z, B as Ie, P as p, aK as de, an as j, x as J, W as Qe, s as I, _ as g, X as Ze, J as m, aL as et, af as Fe, d as tt, r as Oe, aM as rt, aN as nt, L as ot, y as
|
|
2
|
+
import { t as Ge, r as Ye, o as P } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { aJ as Me, ag as z, B as Ie, P as p, aK as de, an as j, x as J, W as Qe, s as I, _ as g, X as Ze, J as m, aL as et, af as Fe, d as tt, r as Oe, aM as rt, aN as nt, L as ot, y as T, aF as at, aO as st, aP as it, aQ as lt, T as te, aR as ut, aS as ct, a2 as dt, E as ft, M as mt, K as pt, aT as gt, aU as me, a as pe, H as ht, C as re, G as vt, a3 as Ke, aV as ge, w as Ct, u as yt, t as Et, aW as he, D as wt, aX as bt, aY as _t, aZ as St, aE as kt, Q as xt, N as Nt, a_ as Lt, R as $t, A as Dt, z as Tt, n as Pt, $ as ve, a$ as Rt, c as Mt, at as G, as as Y, b0 as It, b1 as Ft, av as Ot, b2 as se, au as Kt, b3 as At } from "../../Lexical.prod-7x3WP3vd.js";
|
|
4
4
|
import * as ne from "react";
|
|
5
5
|
import { useMemo as X, useLayoutEffect as U, useEffect as S, useState as F, useRef as Ae, Suspense as zt, forwardRef as ze, useCallback as Bt } from "react";
|
|
6
|
-
import { j as H, L as A, y as Ut, w as fe } from "../../LexicalUtils.prod-
|
|
6
|
+
import { j as H, L as A, y as Ut, w as fe } from "../../LexicalUtils.prod-CtYaCJNB.js";
|
|
7
7
|
import { flushSync as Ht, createPortal as Wt } from "react-dom";
|
|
8
|
-
import { A as Ce, F as ye, m as jt, g as Jt } from "../../LexicalClipboard.prod-
|
|
9
|
-
import { X as Ee, J as we } from "../../LexicalSelection.prod-
|
|
10
|
-
import { r as Be, Y as Ue, v as Xt, S as qt } from "../../LexicalList.prod-
|
|
11
|
-
import { g as He, k as be, v as oe, p as Vt, m as Gt } from "../../LexicalLink.prod-
|
|
12
|
-
import { s as Yt, c as Qt, a as We, b as Zt, w as er, S as tr, y as je, O as rr } from "../../LexicalTable.prod-
|
|
13
|
-
import { a as nr, w as or, M as ar } from "../../helpers-
|
|
8
|
+
import { A as Ce, F as ye, m as jt, g as Jt } from "../../LexicalClipboard.prod-BMLLh6JL.js";
|
|
9
|
+
import { X as Ee, J as we } from "../../LexicalSelection.prod-CB_xP0pP.js";
|
|
10
|
+
import { r as Be, Y as Ue, v as Xt, S as qt } from "../../LexicalList.prod-nl__pKjG.js";
|
|
11
|
+
import { g as He, k as be, v as oe, p as Vt, m as Gt } from "../../LexicalLink.prod-Dr6L083o.js";
|
|
12
|
+
import { s as Yt, c as Qt, a as We, b as Zt, w as er, S as tr, y as je, O as rr } from "../../LexicalTable.prod-CwkGGOke.js";
|
|
13
|
+
import { a as nr, w as or, M as ar } from "../../helpers-B0VCD9f3.js";
|
|
14
14
|
import { c as sr } from "../../clsx-OuTLNxxd.js";
|
|
15
15
|
import { exportMap as ir, isStartingWithHtmlTag as lr, mergeBoldStrongTags as ur } from "./helpers.js";
|
|
16
16
|
import { s as M } from "../../RteEditor.module-B_3uFnFu.js";
|
|
17
17
|
import { ToolBarPlugin as cr } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
|
|
18
18
|
import { useTranslation as dr } from "./hooks/useTranslation.js";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-C38z2r5y.js";
|
|
20
20
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "./hooks/components/Flyout.js";
|
|
22
22
|
import "../Buttons/Button.js";
|
|
@@ -84,7 +84,7 @@ function wr(r) {
|
|
|
84
84
|
}
|
|
85
85
|
function br() {
|
|
86
86
|
return function(r) {
|
|
87
|
-
const [e] =
|
|
87
|
+
const [e] = P(), t = X(() => r(e), [e, r]), [o, a] = F(() => t.initialValueFn()), n = Ae(o);
|
|
88
88
|
return Er(() => {
|
|
89
89
|
const { initialValueFn: s, subscribe: i } = t, l = s();
|
|
90
90
|
return n.current !== l && (n.current = l, a(l)), i((u) => {
|
|
@@ -174,7 +174,7 @@ function _e(r, e) {
|
|
|
174
174
|
}
|
|
175
175
|
return null;
|
|
176
176
|
}
|
|
177
|
-
const W = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Nr = W && "documentMode" in document ? document.documentMode : null, Lr = !(!W || !("InputEvent" in window) || Nr) && "getTargetRanges" in new window.InputEvent("input"), $r = W && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = W && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Dr = W && /^(?=.*Chrome).*/i.test(navigator.userAgent),
|
|
177
|
+
const W = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Nr = W && "documentMode" in document ? document.documentMode : null, Lr = !(!W || !("InputEvent" in window) || Nr) && "getTargetRanges" in new window.InputEvent("input"), $r = W && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = W && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Dr = W && /^(?=.*Chrome).*/i.test(navigator.userAgent), Tr = W && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Dr, ke = tt("DRAG_DROP_PASTE_FILE");
|
|
178
178
|
function Z(r) {
|
|
179
179
|
let e = null;
|
|
180
180
|
if (A(r, DragEvent) ? e = r.dataTransfer : A(r, ClipboardEvent) && (e = r.clipboardData), e === null) return [!1, [], !1];
|
|
@@ -202,14 +202,14 @@ function Ne(r) {
|
|
|
202
202
|
function ae(r) {
|
|
203
203
|
for (const e of ["lowercase", "uppercase", "capitalize"]) r.hasFormat(e) && r.toggleFormat(e);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
return H(r.registerCommand(
|
|
205
|
+
function Pr(r) {
|
|
206
|
+
return H(r.registerCommand(Pt, (e) => {
|
|
207
207
|
const t = p();
|
|
208
|
-
return !!
|
|
208
|
+
return !!T(t) && (t.clear(), !0);
|
|
209
209
|
}, m), r.registerCommand(re, (e) => {
|
|
210
210
|
const t = p();
|
|
211
|
-
return g(t) ? (t.deleteCharacter(e), !0) : !!
|
|
212
|
-
}, m), r.registerCommand(
|
|
211
|
+
return g(t) ? (t.deleteCharacter(e), !0) : !!T(t) && (t.deleteNodes(), !0);
|
|
212
|
+
}, m), r.registerCommand(Tt, (e) => {
|
|
213
213
|
const t = p();
|
|
214
214
|
return !!g(t) && (t.deleteWord(e), !0);
|
|
215
215
|
}, m), r.registerCommand(Dt, (e) => {
|
|
@@ -236,7 +236,7 @@ function Tr(r) {
|
|
|
236
236
|
return !!g(t) && (t.formatText(e), !0);
|
|
237
237
|
}, m), r.registerCommand(xt, (e) => {
|
|
238
238
|
const t = p();
|
|
239
|
-
if (!g(t) && !
|
|
239
|
+
if (!g(t) && !T(t)) return !1;
|
|
240
240
|
const o = t.getNodes();
|
|
241
241
|
for (const a of o) {
|
|
242
242
|
const n = fe(a, (s) => J(s) && !s.isInline());
|
|
@@ -257,7 +257,7 @@ function Tr(r) {
|
|
|
257
257
|
t > 0 && e.setIndent(Math.max(0, t - 1));
|
|
258
258
|
}), m), r.registerCommand(wt, (e) => {
|
|
259
259
|
const t = p();
|
|
260
|
-
if (
|
|
260
|
+
if (T(t)) {
|
|
261
261
|
const o = t.getNodes();
|
|
262
262
|
if (o.length > 0) return o[0].selectPrevious(), !0;
|
|
263
263
|
} else if (g(t)) {
|
|
@@ -267,7 +267,7 @@ function Tr(r) {
|
|
|
267
267
|
return !1;
|
|
268
268
|
}, m), r.registerCommand(Et, (e) => {
|
|
269
269
|
const t = p();
|
|
270
|
-
if (
|
|
270
|
+
if (T(t)) {
|
|
271
271
|
const o = t.getNodes();
|
|
272
272
|
if (o.length > 0) return o[0].selectNext(0, 0), !0;
|
|
273
273
|
} else if (g(t)) {
|
|
@@ -281,7 +281,7 @@ function Tr(r) {
|
|
|
281
281
|
return !1;
|
|
282
282
|
}, m), r.registerCommand(yt, (e) => {
|
|
283
283
|
const t = p();
|
|
284
|
-
if (
|
|
284
|
+
if (T(t)) {
|
|
285
285
|
const o = t.getNodes();
|
|
286
286
|
if (o.length > 0) return e.preventDefault(), o[0].selectPrevious(), !0;
|
|
287
287
|
}
|
|
@@ -293,7 +293,7 @@ function Tr(r) {
|
|
|
293
293
|
return !1;
|
|
294
294
|
}, m), r.registerCommand(Ct, (e) => {
|
|
295
295
|
const t = p();
|
|
296
|
-
if (
|
|
296
|
+
if (T(t)) {
|
|
297
297
|
const a = t.getNodes();
|
|
298
298
|
if (a.length > 0) return e.preventDefault(), a[0].selectNext(0, 0), !0;
|
|
299
299
|
}
|
|
@@ -314,17 +314,17 @@ function Tr(r) {
|
|
|
314
314
|
return s.getIndent() > 0 && (s.is(n) || n.is(s.getFirstDescendant()));
|
|
315
315
|
}(t)) return e.preventDefault(), r.dispatchCommand(ge, void 0);
|
|
316
316
|
if (Se && navigator.language === "ko-KR") return !1;
|
|
317
|
-
} else if (!
|
|
317
|
+
} else if (!T(t)) return !1;
|
|
318
318
|
return e.preventDefault(), r.dispatchCommand(re, !0);
|
|
319
319
|
}, m), r.registerCommand(ht, (e) => {
|
|
320
320
|
if (Ne(e.target)) return !1;
|
|
321
321
|
const t = p();
|
|
322
|
-
return !(!g(t) && !
|
|
322
|
+
return !(!g(t) && !T(t)) && (e.preventDefault(), r.dispatchCommand(re, !1));
|
|
323
323
|
}, m), r.registerCommand(gt, (e) => {
|
|
324
324
|
const t = p();
|
|
325
325
|
if (!g(t)) return !1;
|
|
326
326
|
if (ae(t), e !== null) {
|
|
327
|
-
if ((Se || $r ||
|
|
327
|
+
if ((Se || $r || Tr) && Lr) return !1;
|
|
328
328
|
if (e.preventDefault(), e.shiftKey) return r.dispatchCommand(me, !1);
|
|
329
329
|
}
|
|
330
330
|
return r.dispatchCommand(pe, void 0);
|
|
@@ -368,7 +368,7 @@ function Tr(r) {
|
|
|
368
368
|
}, m), r.registerCommand(st, () => (it(), !0), m), r.registerCommand(at, (e) => (ye(r, A(e, ClipboardEvent) ? e : null), !0), m), r.registerCommand(ot, (e) => (async function(t, o) {
|
|
369
369
|
await ye(o, A(t, ClipboardEvent) ? t : null), o.update(() => {
|
|
370
370
|
const a = p();
|
|
371
|
-
g(a) ? a.removeText() :
|
|
371
|
+
g(a) ? a.removeText() : T(a) && a.getNodes().forEach((n) => n.remove());
|
|
372
372
|
});
|
|
373
373
|
}(e, r), !0), m), r.registerCommand(Fe, (e) => {
|
|
374
374
|
const [, t, o] = Z(e);
|
|
@@ -391,7 +391,7 @@ function Le(r) {
|
|
|
391
391
|
return r.getEditorState().read(Xe(r.isComposing()));
|
|
392
392
|
}
|
|
393
393
|
function Rr({ contentEditable: r, placeholder: e = null, ErrorBoundary: t }) {
|
|
394
|
-
const [o] =
|
|
394
|
+
const [o] = P(), a = function(n, s) {
|
|
395
395
|
const [i, l] = F(() => n.getDecorators());
|
|
396
396
|
return ie(() => n.registerDecoratorListener((u) => {
|
|
397
397
|
Ht(() => {
|
|
@@ -409,11 +409,11 @@ function Rr({ contentEditable: r, placeholder: e = null, ErrorBoundary: t }) {
|
|
|
409
409
|
}, [s, i, n]);
|
|
410
410
|
}(o, t);
|
|
411
411
|
return function(n) {
|
|
412
|
-
ie(() => H(
|
|
412
|
+
ie(() => H(Pr(n), xr(n)), [n]);
|
|
413
413
|
}(o), K(Re, { children: [r, h(Mr, { content: e }), a] });
|
|
414
414
|
}
|
|
415
415
|
function Mr({ content: r }) {
|
|
416
|
-
const [e] =
|
|
416
|
+
const [e] = P(), t = function(a) {
|
|
417
417
|
const [n, s] = F(() => Le(a));
|
|
418
418
|
return ie(() => {
|
|
419
419
|
function i() {
|
|
@@ -450,7 +450,7 @@ function $e(r) {
|
|
|
450
450
|
}
|
|
451
451
|
const Or = ze(Kr);
|
|
452
452
|
function Kr(r, e) {
|
|
453
|
-
const { placeholder: t, ...o } = r, [a] =
|
|
453
|
+
const { placeholder: t, ...o } = r, [a] = P();
|
|
454
454
|
return K(Re, { children: [h(Fr, { editor: a, ...o, ref: e }), t != null && h(Ar, { editor: a, content: t })] });
|
|
455
455
|
}
|
|
456
456
|
function Ar({ content: r, editor: e }) {
|
|
@@ -519,7 +519,7 @@ function Br({ children: r, onError: e }) {
|
|
|
519
519
|
}
|
|
520
520
|
const Ur = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : S;
|
|
521
521
|
function Hr({ ignoreHistoryMergeTagChange: r = !0, ignoreSelectionChange: e = !1, onChange: t }) {
|
|
522
|
-
const [o] =
|
|
522
|
+
const [o] = P();
|
|
523
523
|
return Ur(() => {
|
|
524
524
|
if (t) return o.registerUpdateListener(({ editorState: a, dirtyElements: n, dirtyLeaves: s, prevEditorState: i, tags: l }) => {
|
|
525
525
|
e && n.size === 0 && s.size === 0 || r && l.has(de) || i.isEmpty() || t(a, o, l);
|
|
@@ -527,7 +527,7 @@ function Hr({ ignoreHistoryMergeTagChange: r = !0, ignoreSelectionChange: e = !1
|
|
|
527
527
|
}, [o, r, e, t]), null;
|
|
528
528
|
}
|
|
529
529
|
function Wr({ hasStrictIndent: r = !1 }) {
|
|
530
|
-
const [e] =
|
|
530
|
+
const [e] = P();
|
|
531
531
|
return S(() => {
|
|
532
532
|
if (!e.hasNodes([Be, Ue])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
533
533
|
}, [e]), S(() => {
|
|
@@ -537,7 +537,7 @@ function Wr({ hasStrictIndent: r = !1 }) {
|
|
|
537
537
|
}(e), null;
|
|
538
538
|
}
|
|
539
539
|
function jr({ validateUrl: r, attributes: e }) {
|
|
540
|
-
const [t] =
|
|
540
|
+
const [t] = P();
|
|
541
541
|
return S(() => {
|
|
542
542
|
if (!t.hasNodes([He])) throw new Error("LinkPlugin: LinkNode not registered on editor");
|
|
543
543
|
return H(t.registerCommand(be, (o) => {
|
|
@@ -557,7 +557,7 @@ function jr({ validateUrl: r, attributes: e }) {
|
|
|
557
557
|
}, [t, r, e]), null;
|
|
558
558
|
}
|
|
559
559
|
function Jr({ newTab: r = !0, disabled: e = !1 }) {
|
|
560
|
-
const [t] =
|
|
560
|
+
const [t] = P();
|
|
561
561
|
return S(() => {
|
|
562
562
|
const o = (n) => {
|
|
563
563
|
const s = n.target;
|
|
@@ -595,7 +595,7 @@ function Jr({ newTab: r = !0, disabled: e = !1 }) {
|
|
|
595
595
|
});
|
|
596
596
|
}, [t, r, e]), null;
|
|
597
597
|
}
|
|
598
|
-
const ee = 0, ue = 1, ce = 2, D = 0, Xr = 1,
|
|
598
|
+
const ee = 0, ue = 1, ce = 2, D = 0, Xr = 1, Te = 2, qr = 3, Vr = 4;
|
|
599
599
|
function Gr(r, e, t, o, a) {
|
|
600
600
|
if (r === null || t.size === 0 && o.size === 0 && !a) return D;
|
|
601
601
|
const n = e._selection, s = r._selection;
|
|
@@ -617,7 +617,7 @@ function Gr(r, e, t, o, a) {
|
|
|
617
617
|
if (i.length === 0) return D;
|
|
618
618
|
if (i.length > 1) {
|
|
619
619
|
const y = e._nodeMap, E = y.get(n.anchor.key), _ = y.get(s.anchor.key);
|
|
620
|
-
return E && _ && !r._nodeMap.has(E.__key) && I(E) && E.__text.length === 1 && n.anchor.offset === 1 ?
|
|
620
|
+
return E && _ && !r._nodeMap.has(E.__key) && I(E) && E.__text.length === 1 && n.anchor.offset === 1 ? Te : D;
|
|
621
621
|
}
|
|
622
622
|
const l = i[0], u = r._nodeMap.get(l.__key);
|
|
623
623
|
if (!I(u) || !I(l) || u.__mode !== l.__mode) return D;
|
|
@@ -626,7 +626,7 @@ function Gr(r, e, t, o, a) {
|
|
|
626
626
|
const f = n.anchor, v = s.anchor;
|
|
627
627
|
if (f.key !== v.key || f.type !== "text") return D;
|
|
628
628
|
const C = f.offset, w = v.offset, x = d.length - c.length;
|
|
629
|
-
return x === 1 && w === C - 1 ?
|
|
629
|
+
return x === 1 && w === C - 1 ? Te : x === -1 && w === C + 1 ? qr : x === -1 && w === C ? Vr : D;
|
|
630
630
|
}
|
|
631
631
|
function Yr(r, e) {
|
|
632
632
|
let t = Date.now(), o = D;
|
|
@@ -646,7 +646,7 @@ function Yr(r, e) {
|
|
|
646
646
|
return t = c, o = d, f;
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Pe(r) {
|
|
650
650
|
r.undoStack = [], r.redoStack = [], r.current = null;
|
|
651
651
|
}
|
|
652
652
|
function Qr(r, e, t) {
|
|
@@ -665,7 +665,7 @@ function Qr(r, e, t) {
|
|
|
665
665
|
const c = i.pop();
|
|
666
666
|
i.length === 0 && n.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: se });
|
|
667
667
|
}
|
|
668
|
-
}(r, e), !0), m), r.registerCommand(Ft, () => (
|
|
668
|
+
}(r, e), !0), m), r.registerCommand(Ft, () => (Pe(e), !1), m), r.registerCommand(It, () => (Pe(e), r.dispatchCommand(G, !1), r.dispatchCommand(Y, !1), !0), m), r.registerUpdateListener(({ editorState: n, prevEditorState: s, dirtyLeaves: i, dirtyElements: l, tags: u }) => {
|
|
669
669
|
const c = e.current, d = e.redoStack, f = e.undoStack, v = c === null ? null : c.editorState;
|
|
670
670
|
if (c !== null && n === v) return;
|
|
671
671
|
const C = o(s, n, c, i, l, u);
|
|
@@ -678,14 +678,14 @@ function Zr() {
|
|
|
678
678
|
return { current: null, redoStack: [], undoStack: [] };
|
|
679
679
|
}
|
|
680
680
|
function en({ delay: r, externalHistoryState: e }) {
|
|
681
|
-
const [t] =
|
|
681
|
+
const [t] = P();
|
|
682
682
|
return function(o, a, n = 1e3) {
|
|
683
683
|
const s = X(() => a || Zr(), [a]);
|
|
684
684
|
S(() => Qr(o, s, n), [n, o, s]);
|
|
685
685
|
}(t, e, r), null;
|
|
686
686
|
}
|
|
687
687
|
function tn({ hasCellMerge: r = !0, hasCellBackgroundColor: e = !0, hasTabHandler: t = !0, hasHorizontalScroll: o = !1 }) {
|
|
688
|
-
const [a] =
|
|
688
|
+
const [a] = P();
|
|
689
689
|
return S(() => {
|
|
690
690
|
Yt(a) !== o && (Qt(a, o), a.registerNodeTransform(We, () => {
|
|
691
691
|
})());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as s } from "../../LexicalLink.prod-
|
|
2
|
-
import { r as n, Y as i } from "../../LexicalList.prod-
|
|
3
|
-
import { ae as a, q as c } from "../../Lexical.prod-
|
|
4
|
-
import { a as m, O as g, y as u } from "../../LexicalTable.prod-
|
|
1
|
+
import { g as s } from "../../LexicalLink.prod-Dr6L083o.js";
|
|
2
|
+
import { r as n, Y as i } from "../../LexicalList.prod-nl__pKjG.js";
|
|
3
|
+
import { ae as a, q as c } from "../../Lexical.prod-7x3WP3vd.js";
|
|
4
|
+
import { a as m, O as g, y as u } from "../../LexicalTable.prod-CwkGGOke.js";
|
|
5
5
|
const h = (e) => /^<(b|i|u|strong|em|mark|small|del|ins|sub|sup|div|p|span|h[1-6]|a|img|table|tr|td|th|ul|ol|li|blockquote|pre|code|br)(\s+[^>]*)?>/i.test(e.trim()), y = (e) => {
|
|
6
6
|
let r = e.replace(/<b><strong>/gi, "<strong>");
|
|
7
7
|
return r = r.replace(/<\/strong><\/b>/gi, "</strong>"), r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i, Fragment as m } from "react/jsx-runtime";
|
|
2
|
-
import { l as s } from "../../index-
|
|
2
|
+
import { l as s } from "../../index-DFu0GqDc.js";
|
|
3
3
|
import { Sortable as l } from "./Sortable.js";
|
|
4
4
|
import { InputField as d } from "../InputField/InputField.js";
|
|
5
5
|
import { Icon as c } from "../Icon/Icon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as t, s } from "../../react.esm-
|
|
2
|
+
import "../../index-DzN3R4wD.js";
|
|
3
|
+
import { r as t, s } from "../../react.esm-DMlPLy-4.js";
|
|
4
4
|
import { StatusBadge as a } from "./StatusBage.js";
|
|
5
5
|
describe("StatusBadge", () => {
|
|
6
6
|
it("should render with message", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { l as a } from "../../index-
|
|
2
|
+
import { l as a } from "../../index-DFu0GqDc.js";
|
|
3
3
|
import { TextArea as e } from "./TextArea.js";
|
|
4
4
|
const o = `
|
|
5
5
|
<TextArea label={label} maxCharacters={maxCharacters} defaultValue={string}/> `, x = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as o, s as t, f as r } from "../../react.esm-
|
|
4
|
-
import { J as c } from "../../index-
|
|
2
|
+
import "../../index-DzN3R4wD.js";
|
|
3
|
+
import { r as o, s as t, f as r } from "../../react.esm-DMlPLy-4.js";
|
|
4
|
+
import { J as c } from "../../index-DFu0GqDc.js";
|
|
5
5
|
import { TextArea as n } from "./TextArea.js";
|
|
6
6
|
describe("TextArea", () => {
|
|
7
7
|
it("should render correctly with label", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { l } from "../../index-
|
|
2
|
+
import { l } from "../../index-DFu0GqDc.js";
|
|
3
3
|
import { ToggleSwitch as e } from "./ToggleSwitch.js";
|
|
4
4
|
const a = `
|
|
5
5
|
// Has all InputHTMLAttributes props available except "className" and "style"
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export type StatusType = 'DRAFT' | 'REJECTED' | 'SUBMITTED' | 'ACTIVE';
|
|
2
2
|
export interface VarIndicatorProps {
|
|
3
|
+
/** Label on the indicator */
|
|
3
4
|
label: Record<StatusType, string>;
|
|
5
|
+
/** Status type 'DRAFT' | 'REJECTED' | 'SUBMITTED' | 'ACTIVE' */
|
|
4
6
|
variant?: StatusType;
|
|
7
|
+
/** Maximum number of steps if variant is 'SUBMITTED' */
|
|
5
8
|
maxSteps?: number;
|
|
9
|
+
/** Current step if variant is 'SUBMITTED' */
|
|
6
10
|
currentStep?: number;
|
|
11
|
+
/** If set shows compact view and opens to the left on hover */
|
|
12
|
+
isCompact?: boolean;
|
|
7
13
|
onClick?: () => void;
|
|
8
14
|
}
|
|
9
|
-
export declare const VarIndicator: ({ label, variant, maxSteps, currentStep, onClick }: VarIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const VarIndicator: ({ label, variant, maxSteps, currentStep, isCompact, onClick, }: VarIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,31 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import '../../assets/VarIndicator.css';const
|
|
5
|
-
"var-indicator__container": "_var-
|
|
6
|
-
"var-
|
|
7
|
-
"var-
|
|
8
|
-
"var-indicator__container--
|
|
9
|
-
"var-indicator__container--
|
|
10
|
-
"var-
|
|
11
|
-
"var-
|
|
12
|
-
|
|
1
|
+
import { jsx as r, jsxs as o, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Icon as t } from "../Icon/Icon.js";
|
|
4
|
+
import '../../assets/VarIndicator.css';const a = {
|
|
5
|
+
"var-indicator__container": "_var-indicator__container_9n427_27",
|
|
6
|
+
"var-indicator__label": "_var-indicator__label_9n427_46",
|
|
7
|
+
"var-indicator__step-container": "_var-indicator__step-container_9n427_50",
|
|
8
|
+
"var-indicator__container--compact": "_var-indicator__container--compact_9n427_61",
|
|
9
|
+
"var-indicator__container--compact-flyover-wrapper": "_var-indicator__container--compact-flyover-wrapper_9n427_71",
|
|
10
|
+
"var-indicator__container--draft": "_var-indicator__container--draft_9n427_85",
|
|
11
|
+
"var-indicator__container--rejected": "_var-indicator__container--rejected_9n427_86",
|
|
12
|
+
"var-indicator__container--submitted": "_var-indicator__container--submitted_9n427_101",
|
|
13
|
+
"var-indicator__container--active": "_var-indicator__container--active_9n427_113"
|
|
14
|
+
}, v = {
|
|
13
15
|
DRAFT: "CircleLarge",
|
|
14
16
|
REJECTED: "CircleLarge",
|
|
15
17
|
SUBMITTED: "CircleLargeDotted",
|
|
16
18
|
ACTIVE: "SignalActive"
|
|
17
|
-
}, E = ({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
]
|
|
27
|
-
|
|
28
|
-
)
|
|
19
|
+
}, E = ({
|
|
20
|
+
label: s,
|
|
21
|
+
variant: n = "DRAFT",
|
|
22
|
+
maxSteps: i,
|
|
23
|
+
currentStep: m = 1,
|
|
24
|
+
isCompact: _,
|
|
25
|
+
onClick: p
|
|
26
|
+
}) => {
|
|
27
|
+
const e = () => /* @__PURE__ */ o(d, { children: [
|
|
28
|
+
/* @__PURE__ */ r(t, { name: v[n], size: 16 }),
|
|
29
|
+
/* @__PURE__ */ r("span", { className: a["var-indicator__label"], children: s[`${n}`] }),
|
|
30
|
+
i && i > 0 && n === "SUBMITTED" && Array.from({ length: i }, (c, f) => f + 1).map((c) => /* @__PURE__ */ r("div", { className: a["var-indicator__step-container"], children: /* @__PURE__ */ r(t, { name: c <= m ? "CircleSmallFilled" : "CircleSmall" }) }, c))
|
|
31
|
+
] });
|
|
32
|
+
return /* @__PURE__ */ r(
|
|
33
|
+
"button",
|
|
34
|
+
{
|
|
35
|
+
className: l(
|
|
36
|
+
a["var-indicator__container"],
|
|
37
|
+
a[`var-indicator__container--${n.toLowerCase()}`],
|
|
38
|
+
{
|
|
39
|
+
[a["var-indicator__container--compact"]]: _
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
onClick: p,
|
|
43
|
+
children: _ ? /* @__PURE__ */ o(d, { children: [
|
|
44
|
+
/* @__PURE__ */ r(t, { name: v[n], size: 16 }),
|
|
45
|
+
/* @__PURE__ */ r(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: l(
|
|
49
|
+
a["var-indicator__container"],
|
|
50
|
+
a["var-indicator__container--compact-flyover-wrapper"]
|
|
51
|
+
),
|
|
52
|
+
children: /* @__PURE__ */ r(e, {})
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] }) : /* @__PURE__ */ r(e, {})
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
29
59
|
export {
|
|
30
60
|
E as VarIndicator
|
|
31
61
|
};
|