@uva-glass/component-library 3.0.2 → 3.0.4
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-CQl7J8uU.js → Lexical.prod-CZAqLAjm.js} +32 -32
- package/dist/Lexical.prod-CZAqLAjm.js.map +1 -0
- package/dist/{LexicalClipboard.prod-C48GDxiy.js → LexicalClipboard.prod-B0GrUtzr.js} +16 -16
- package/dist/{LexicalClipboard.prod-C48GDxiy.js.map → LexicalClipboard.prod-B0GrUtzr.js.map} +1 -1
- package/dist/{LexicalComposerContext.prod-DxxjdrXB.js → LexicalComposerContext.prod-BCXERl09.js} +6 -7
- package/dist/{LexicalComposerContext.prod-DxxjdrXB.js.map → LexicalComposerContext.prod-BCXERl09.js.map} +1 -1
- package/dist/{LexicalLink.prod-D8-zZW0o.js → LexicalLink.prod-kqeQGYSo.js} +13 -13
- package/dist/LexicalLink.prod-kqeQGYSo.js.map +1 -0
- package/dist/{LexicalList.prod-B4_DTbPB.js → LexicalList.prod-BEKqHUO2.js} +10 -10
- package/dist/LexicalList.prod-BEKqHUO2.js.map +1 -0
- package/dist/{LexicalSelection.prod-BU3GAQB4.js → LexicalSelection.prod-B1DTqn9H.js} +14 -14
- package/dist/{LexicalSelection.prod-BU3GAQB4.js.map → LexicalSelection.prod-B1DTqn9H.js.map} +1 -1
- package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DtAMjSWg.js} +24 -24
- package/dist/{LexicalTable.prod-BvJxbarH.js.map → LexicalTable.prod-DtAMjSWg.js.map} +1 -1
- package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-C-NXnTzK.js} +3 -3
- package/dist/{LexicalUtils.prod-D9KKqgU7.js.map → LexicalUtils.prod-C-NXnTzK.js.map} +1 -1
- package/dist/{SortableProvider-RaH_ZXB3.js → SortableProvider-Ck_XnBVq.js} +10 -10
- package/dist/{SortableProvider-RaH_ZXB3.js.map → SortableProvider-Ck_XnBVq.js.map} +1 -1
- package/dist/{TablePlugin-CPEwD-wi.js → TablePlugin-DkL40qIf.js} +54 -55
- package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-DkL40qIf.js.map} +1 -1
- package/dist/__mocks__/fileMock.d.ts +2 -0
- package/dist/__mocks__/svgrMock.d.ts +3 -0
- package/dist/__mocks__/svgrMock.js +10 -0
- package/dist/__mocks__/svgrMock.js.map +1 -0
- package/dist/client-CTOhtEms.js +33 -0
- package/dist/client-CTOhtEms.js.map +1 -0
- package/dist/components/AccordionCard/AccordionCard.stories.js +1 -1
- package/dist/components/Buttons/Button.stories.js +2 -2
- package/dist/components/Buttons/LinkButton.stories.js +2 -2
- package/dist/components/Buttons/MenuButton.stories.js +2 -2
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +11 -11
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +3 -3
- 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 +3 -3
- package/dist/components/Label/Label.test.d.ts +0 -0
- package/dist/components/Label/Label.test.js +4257 -0
- package/dist/components/Label/Label.test.js.map +1 -0
- package/dist/components/MenuLink/MenuLink.d.ts +4 -1
- package/dist/components/MenuLink/MenuLink.js +12 -12
- package/dist/components/MenuLink/MenuLink.js.map +1 -1
- package/dist/components/MenuLink/MenuLink.stories.d.ts +3 -1
- package/dist/components/MenuLink/MenuLink.stories.js +12 -7
- package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
- 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 +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -4
- package/dist/components/Repeater/Repeater.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +19 -19
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +15 -15
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +408 -408
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/hooks/components/Flyout.js +12 -13
- package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListbox.js +8 -9
- package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +3 -3
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/actions.js +8 -8
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +1 -1
- package/dist/components/Spinner/Spinner.js +11 -12
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{helpers-C_Mib4v3.js → helpers-DYmWlhgC.js} +15 -15
- package/dist/{helpers-C_Mib4v3.js.map → helpers-DYmWlhgC.js.map} +1 -1
- package/dist/index-BqHyOZsF.js +10322 -0
- package/dist/index-BqHyOZsF.js.map +1 -0
- package/dist/{index-Sh2oo6_C.js → index-DkNZhwJb.js} +399 -392
- package/dist/index-DkNZhwJb.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/react-18-CcyoHPTJ.js +38 -0
- package/dist/react-18-CcyoHPTJ.js.map +1 -0
- package/dist/setupTests.d.ts +0 -0
- package/dist/setupTests.js +1573 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/storybook__react.d.js +538 -1657
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/test-utils-CTqdUiUm.js +1126 -0
- package/dist/test-utils-CTqdUiUm.js.map +1 -0
- package/package.json +47 -28
- package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
- package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
- package/dist/LexicalList.prod-B4_DTbPB.js.map +0 -1
- package/dist/index-Sh2oo6_C.js.map +0 -1
- package/dist/react-18-C9Y1Flwa.js +0 -65
- package/dist/react-18-C9Y1Flwa.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as g } from "../../../../Lexical.prod-
|
|
1
|
+
import { R as d, g as h, F as m, L as S, T as w, O as E, d as C, _ as p, x as I } from "../../../../LexicalTable.prod-DtAMjSWg.js";
|
|
2
|
+
import { V as g } from "../../../../Lexical.prod-CZAqLAjm.js";
|
|
3
3
|
const b = 100, F = (e, n) => {
|
|
4
|
-
const t =
|
|
4
|
+
const t = I(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
6
|
-
const r =
|
|
6
|
+
const r = p();
|
|
7
7
|
for (let l = 0; l < n; l++) {
|
|
8
|
-
const s =
|
|
8
|
+
const s = C(0, void 0, b / n);
|
|
9
9
|
s.append(g()), r.append(s);
|
|
10
10
|
}
|
|
11
11
|
t.append(r);
|
|
@@ -18,11 +18,11 @@ const b = 100, F = (e, n) => {
|
|
|
18
18
|
r && r.select();
|
|
19
19
|
}
|
|
20
20
|
}, O = (e) => {
|
|
21
|
-
|
|
21
|
+
d(e).remove();
|
|
22
22
|
}, L = (e, n) => {
|
|
23
|
-
const t =
|
|
23
|
+
const t = p(), o = w(e), r = o.getChildrenSize();
|
|
24
24
|
for (let s = 0; s < r; s++) {
|
|
25
|
-
const c =
|
|
25
|
+
const c = C(0);
|
|
26
26
|
c.append(g()), t.append(c);
|
|
27
27
|
}
|
|
28
28
|
n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
|
|
@@ -30,13 +30,13 @@ const b = 100, F = (e, n) => {
|
|
|
30
30
|
l && l.select();
|
|
31
31
|
}, z = (e, n) => {
|
|
32
32
|
const t = w(e);
|
|
33
|
-
if (!
|
|
33
|
+
if (!h(e))
|
|
34
34
|
throw new Error("Selected node is not a TableCellNode");
|
|
35
|
-
const o = E(e), r = t.getChildren().length, l =
|
|
36
|
-
let s =
|
|
35
|
+
const o = E(e), r = t.getChildren().length, l = d(e);
|
|
36
|
+
let s = m(e);
|
|
37
37
|
const c = l.getChildren(), R = c.length;
|
|
38
38
|
for (let i = 0; i < R; i++) {
|
|
39
|
-
const a =
|
|
39
|
+
const a = C(0);
|
|
40
40
|
a.append(g());
|
|
41
41
|
const f = c[i].getChildren()[s];
|
|
42
42
|
f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((T) => {
|
|
@@ -50,10 +50,10 @@ const b = 100, F = (e, n) => {
|
|
|
50
50
|
u && u.select();
|
|
51
51
|
}, P = (e) => {
|
|
52
52
|
var r;
|
|
53
|
-
if (!
|
|
53
|
+
if (!h(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
55
|
-
const n =
|
|
56
|
-
t === 1 ? O(e) :
|
|
55
|
+
const n = d(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = m(e);
|
|
56
|
+
t === 1 ? O(e) : S(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
59
|
F as createTable,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { u as y } from "../../../../LexicalComposerContext.prod-
|
|
3
|
-
import { H as h, a as g, M as C } from "../../../../Lexical.prod-
|
|
2
|
+
import { u as y } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
|
+
import { H as h, a as g, M as C } from "../../../../Lexical.prod-CZAqLAjm.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as T, useEffect as m } from "react";
|
|
5
|
-
import { v as b } from "../../../../LexicalTable.prod-
|
|
5
|
+
import { v as b } from "../../../../LexicalTable.prod-DtAMjSWg.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-DkL40qIf.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
13
|
import { setScrollableContainers as v, removeScrollableContainers as H } 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-DkL40qIf.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as g,
|
|
2
|
+
import { createContext as g, useContext as s, useState as i } from "react";
|
|
3
3
|
const t = g(void 0), d = ({ children: e }) => {
|
|
4
|
-
const [n, a] =
|
|
4
|
+
const [n, a] = i("en"), o = (r) => {
|
|
5
5
|
a(r);
|
|
6
6
|
};
|
|
7
7
|
return /* @__PURE__ */ u(t.Provider, { value: { language: n, switchLanguage: o }, children: e });
|
|
8
8
|
}, x = () => {
|
|
9
|
-
const e =
|
|
9
|
+
const e = s(t);
|
|
10
10
|
if (!e)
|
|
11
11
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
12
12
|
return e;
|