@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.
Files changed (120) hide show
  1. package/dist/{Lexical.prod-CQl7J8uU.js → Lexical.prod-CZAqLAjm.js} +32 -32
  2. package/dist/Lexical.prod-CZAqLAjm.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-C48GDxiy.js → LexicalClipboard.prod-B0GrUtzr.js} +16 -16
  4. package/dist/{LexicalClipboard.prod-C48GDxiy.js.map → LexicalClipboard.prod-B0GrUtzr.js.map} +1 -1
  5. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js → LexicalComposerContext.prod-BCXERl09.js} +6 -7
  6. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js.map → LexicalComposerContext.prod-BCXERl09.js.map} +1 -1
  7. package/dist/{LexicalLink.prod-D8-zZW0o.js → LexicalLink.prod-kqeQGYSo.js} +13 -13
  8. package/dist/LexicalLink.prod-kqeQGYSo.js.map +1 -0
  9. package/dist/{LexicalList.prod-B4_DTbPB.js → LexicalList.prod-BEKqHUO2.js} +10 -10
  10. package/dist/LexicalList.prod-BEKqHUO2.js.map +1 -0
  11. package/dist/{LexicalSelection.prod-BU3GAQB4.js → LexicalSelection.prod-B1DTqn9H.js} +14 -14
  12. package/dist/{LexicalSelection.prod-BU3GAQB4.js.map → LexicalSelection.prod-B1DTqn9H.js.map} +1 -1
  13. package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DtAMjSWg.js} +24 -24
  14. package/dist/{LexicalTable.prod-BvJxbarH.js.map → LexicalTable.prod-DtAMjSWg.js.map} +1 -1
  15. package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-C-NXnTzK.js} +3 -3
  16. package/dist/{LexicalUtils.prod-D9KKqgU7.js.map → LexicalUtils.prod-C-NXnTzK.js.map} +1 -1
  17. package/dist/{SortableProvider-RaH_ZXB3.js → SortableProvider-Ck_XnBVq.js} +10 -10
  18. package/dist/{SortableProvider-RaH_ZXB3.js.map → SortableProvider-Ck_XnBVq.js.map} +1 -1
  19. package/dist/{TablePlugin-CPEwD-wi.js → TablePlugin-DkL40qIf.js} +54 -55
  20. package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-DkL40qIf.js.map} +1 -1
  21. package/dist/__mocks__/fileMock.d.ts +2 -0
  22. package/dist/__mocks__/svgrMock.d.ts +3 -0
  23. package/dist/__mocks__/svgrMock.js +10 -0
  24. package/dist/__mocks__/svgrMock.js.map +1 -0
  25. package/dist/client-CTOhtEms.js +33 -0
  26. package/dist/client-CTOhtEms.js.map +1 -0
  27. package/dist/components/AccordionCard/AccordionCard.stories.js +1 -1
  28. package/dist/components/Buttons/Button.stories.js +2 -2
  29. package/dist/components/Buttons/LinkButton.stories.js +2 -2
  30. package/dist/components/Buttons/MenuButton.stories.js +2 -2
  31. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  32. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  33. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  34. package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
  35. package/dist/components/CheckboxTree/CheckboxTree.stories.js +11 -11
  36. package/dist/components/Chip/Chip.stories.js +1 -1
  37. package/dist/components/Drawer/Drawer.stories.js +1 -1
  38. package/dist/components/FormInput/FormInput.js +3 -3
  39. package/dist/components/FormInput/FormInput.stories.js +1 -1
  40. package/dist/components/IconButton/IconButton.stories.js +1 -1
  41. package/dist/components/InputField/InputField.stories.js +3 -3
  42. package/dist/components/Label/Label.test.d.ts +0 -0
  43. package/dist/components/Label/Label.test.js +4257 -0
  44. package/dist/components/Label/Label.test.js.map +1 -0
  45. package/dist/components/MenuLink/MenuLink.d.ts +4 -1
  46. package/dist/components/MenuLink/MenuLink.js +12 -12
  47. package/dist/components/MenuLink/MenuLink.js.map +1 -1
  48. package/dist/components/MenuLink/MenuLink.stories.d.ts +3 -1
  49. package/dist/components/MenuLink/MenuLink.stories.js +12 -7
  50. package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
  51. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  52. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  53. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  54. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  55. package/dist/components/MultiSelect/index.js +1 -1
  56. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  57. package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -2
  58. package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
  59. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  60. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -4
  61. package/dist/components/Repeater/Repeater.stories.js +1 -1
  62. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
  63. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
  64. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  65. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
  66. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  67. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +19 -19
  68. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  69. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +4 -4
  70. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
  71. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
  72. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
  73. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
  74. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +15 -15
  75. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  76. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +4 -4
  77. package/dist/components/RteEditor/Plugins/index.js +1 -1
  78. package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
  79. package/dist/components/RteEditor/RteEditor.js +408 -408
  80. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  81. package/dist/components/RteEditor/helpers.js +4 -4
  82. package/dist/components/RteEditor/hooks/components/Flyout.js +12 -13
  83. package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -1
  84. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  85. package/dist/components/SelectListbox/SelectListbox.js +8 -9
  86. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  87. package/dist/components/SelectListbox/SelectProvider.js +3 -3
  88. package/dist/components/Sortable/Sortable.js +1 -1
  89. package/dist/components/Sortable/Sortable.stories.js +1 -1
  90. package/dist/components/Sortable/SortableProvider.js +1 -1
  91. package/dist/components/Sortable/actions.js +8 -8
  92. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  93. package/dist/components/Sortable/components/SortableItem.js +1 -1
  94. package/dist/components/Spinner/Spinner.js +11 -12
  95. package/dist/components/Spinner/Spinner.js.map +1 -1
  96. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  97. package/dist/components/index.js +1 -1
  98. package/dist/{helpers-C_Mib4v3.js → helpers-DYmWlhgC.js} +15 -15
  99. package/dist/{helpers-C_Mib4v3.js.map → helpers-DYmWlhgC.js.map} +1 -1
  100. package/dist/index-BqHyOZsF.js +10322 -0
  101. package/dist/index-BqHyOZsF.js.map +1 -0
  102. package/dist/{index-Sh2oo6_C.js → index-DkNZhwJb.js} +399 -392
  103. package/dist/index-DkNZhwJb.js.map +1 -0
  104. package/dist/index.js +1 -1
  105. package/dist/react-18-CcyoHPTJ.js +38 -0
  106. package/dist/react-18-CcyoHPTJ.js.map +1 -0
  107. package/dist/setupTests.d.ts +0 -0
  108. package/dist/setupTests.js +1573 -0
  109. package/dist/setupTests.js.map +1 -0
  110. package/dist/storybook__react.d.js +538 -1657
  111. package/dist/storybook__react.d.js.map +1 -1
  112. package/dist/test-utils-CTqdUiUm.js +1126 -0
  113. package/dist/test-utils-CTqdUiUm.js.map +1 -0
  114. package/package.json +47 -28
  115. package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
  116. package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
  117. package/dist/LexicalList.prod-B4_DTbPB.js.map +0 -1
  118. package/dist/index-Sh2oo6_C.js.map +0 -1
  119. package/dist/react-18-C9Y1Flwa.js +0 -65
  120. package/dist/react-18-C9Y1Flwa.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { x as S, _ as h, d, T as w, R as C, g as m, O as E, F as p, L as I } from "../../../../LexicalTable.prod-BvJxbarH.js";
2
- import { V as g } from "../../../../Lexical.prod-CQl7J8uU.js";
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 = S(0, 0, !1);
4
+ const t = I(0, 0, !1);
5
5
  for (let o = 0; o < e; o++) {
6
- const r = h();
6
+ const r = p();
7
7
  for (let l = 0; l < n; l++) {
8
- const s = d(0, void 0, b / n);
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
- C(e).remove();
21
+ d(e).remove();
22
22
  }, L = (e, n) => {
23
- const t = h(), o = w(e), r = o.getChildrenSize();
23
+ const t = p(), o = w(e), r = o.getChildrenSize();
24
24
  for (let s = 0; s < r; s++) {
25
- const c = d(0);
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 (!m(e))
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 = C(e);
36
- let s = p(e);
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 = d(0);
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 (!m(e))
53
+ if (!h(e))
54
54
  throw new Error("Selected node is not a TableCellNode");
55
- const n = C(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = p(e);
56
- t === 1 ? O(e) : I(n, o);
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,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-CPEwD-wi.js";
1
+ import { T as o } from "../../../../TablePlugin-DkL40qIf.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -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-DxxjdrXB.js";
3
- import { H as h, a as g, M as C } from "../../../../Lexical.prod-CQl7J8uU.js";
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-BvJxbarH.js";
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-CPEwD-wi.js";
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-CPEwD-wi.js";
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, useState as s, useContext as i } from "react";
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] = s("en"), o = (r) => {
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 = i(t);
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;