@uva-glass/component-library 1.54.0 → 1.55.1

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 (95) hide show
  1. package/dist/AddTableFrom-u1gSA461.js +162 -0
  2. package/dist/AddTableFrom-u1gSA461.js.map +1 -0
  3. package/dist/{Lexical.prod-DNRTKPfN.js → Lexical.prod-BiuZHlIm.js} +927 -897
  4. package/dist/Lexical.prod-BiuZHlIm.js.map +1 -0
  5. package/dist/LexicalUtils.prod-BZOm66mY.js +94 -0
  6. package/dist/{LexicalUtils.prod-D_BPEjfg.js.map → LexicalUtils.prod-BZOm66mY.js.map} +1 -1
  7. package/dist/{ListPlugin-CgNBzfIl.js → ListPlugin-DFFbKLaN.js} +4 -4
  8. package/dist/{ListPlugin-CgNBzfIl.js.map → ListPlugin-DFFbKLaN.js.map} +1 -1
  9. package/dist/RteEditor.module-BBbfV1rk.js +24 -0
  10. package/dist/RteEditor.module-BBbfV1rk.js.map +1 -0
  11. package/dist/Sortable.module-B-93knlb.js +24 -0
  12. package/dist/{Sortable.module-BrgGu8qp.js.map → Sortable.module-B-93knlb.js.map} +1 -1
  13. package/dist/{SortableProvider-Z0e0qeQT.js → SortableProvider-BMm77PpY.js} +2 -2
  14. package/dist/{SortableProvider-Z0e0qeQT.js.map → SortableProvider-BMm77PpY.js.map} +1 -1
  15. package/dist/TablePlugin-acQeRCt0.js +1506 -0
  16. package/dist/TablePlugin-acQeRCt0.js.map +1 -0
  17. package/dist/assets/AddTableFrom.css +1 -0
  18. package/dist/assets/PageOverlay.css +1 -0
  19. package/dist/assets/RteEditor.css +1 -1
  20. package/dist/assets/Sortable.css +1 -1
  21. package/dist/assets/useFlyout.css +1 -1
  22. package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
  23. package/dist/components/Icon/icons/index.d.ts +3 -0
  24. package/dist/components/Icon/icons/index.js +18 -13
  25. package/dist/components/Icon/icons/index.js.map +1 -1
  26. package/dist/components/InputField/InputField.stories.js +2 -2
  27. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  28. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  29. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  30. package/dist/components/MultiSelect/index.js +1 -1
  31. package/dist/components/PageOverlay/PageOverlay.d.ts +25 -0
  32. package/dist/components/PageOverlay/PageOverlay.js +100 -0
  33. package/dist/components/PageOverlay/PageOverlay.js.map +1 -0
  34. package/dist/components/PageOverlay/PageOverlay.stories.d.ts +7 -0
  35. package/dist/components/PageOverlay/PageOverlay.stories.js +167 -0
  36. package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -0
  37. package/dist/components/PageOverlay/index.d.ts +1 -0
  38. package/dist/components/PageOverlay/index.js +5 -0
  39. package/dist/components/PageOverlay/index.js.map +1 -0
  40. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
  41. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
  42. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  43. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.d.ts +12 -0
  44. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js +28 -0
  45. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js.map +1 -0
  46. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +48 -69
  47. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
  48. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  49. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
  50. package/dist/components/RteEditor/Plugins/ListPlugin/index.js +1 -1
  51. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.d.ts +10 -0
  52. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +25 -0
  53. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -0
  54. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.d.ts +1 -0
  55. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +29 -0
  56. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -0
  57. package/dist/components/RteEditor/Plugins/TablePlugin/index.d.ts +1 -0
  58. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +5 -0
  59. package/dist/components/RteEditor/Plugins/TablePlugin/index.js.map +1 -0
  60. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +26 -24
  61. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -1
  62. package/dist/components/RteEditor/Plugins/index.d.ts +1 -0
  63. package/dist/components/RteEditor/Plugins/index.js +6 -4
  64. package/dist/components/RteEditor/Plugins/index.js.map +1 -1
  65. package/dist/components/RteEditor/RteEditor.js +558 -775
  66. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  67. package/dist/components/RteEditor/UvaTheme/UvaTheme.d.ts +1 -0
  68. package/dist/components/RteEditor/UvaTheme/UvaTheme.js +5 -4
  69. package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
  70. package/dist/components/RteEditor/hooks/useFlyout.d.ts +1 -0
  71. package/dist/components/RteEditor/hooks/useFlyout.js +18 -38
  72. package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
  73. package/dist/components/Sortable/Sortable.js +1 -1
  74. package/dist/components/Sortable/SortableProvider.js +1 -1
  75. package/dist/components/Sortable/components/SortableContainer.js +2 -2
  76. package/dist/components/Sortable/components/SortableHandle.js +1 -1
  77. package/dist/components/Sortable/components/SortableItem.js +2 -2
  78. package/dist/components/hooks/useOnClickOuside.d.ts +4 -0
  79. package/dist/components/hooks/useOnClickOuside.js +15 -0
  80. package/dist/components/hooks/useOnClickOuside.js.map +1 -0
  81. package/dist/components/index.d.ts +1 -0
  82. package/dist/components/index.js +40 -38
  83. package/dist/components/index.js.map +1 -1
  84. package/dist/{helpers-TSjo3aAv.js → helpers-CJF7fErD.js} +3 -3
  85. package/dist/{helpers-TSjo3aAv.js.map → helpers-CJF7fErD.js.map} +1 -1
  86. package/dist/index.js +40 -38
  87. package/dist/index.js.map +1 -1
  88. package/package.json +3 -3
  89. package/dist/Lexical.prod-DNRTKPfN.js.map +0 -1
  90. package/dist/LexicalUtils.prod-D_BPEjfg.js +0 -64
  91. package/dist/MultiSelect-DQaqItEH.js +0 -55
  92. package/dist/MultiSelect-DQaqItEH.js.map +0 -1
  93. package/dist/RteEditor.module-BjGyWKhW.js +0 -26
  94. package/dist/RteEditor.module-BjGyWKhW.js.map +0 -1
  95. package/dist/Sortable.module-BrgGu8qp.js +0 -24
@@ -1,64 +0,0 @@
1
- import { y as o, w as l } from "./Lexical.prod-DNRTKPfN.js";
2
- function c(t) {
3
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
4
- }
5
- var s = c(function(t) {
6
- const e = new URLSearchParams();
7
- e.append("code", t);
8
- for (let n = 1; n < arguments.length; n++) e.append("v", arguments[n]);
9
- throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
10
- });
11
- const r = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, a = r && "documentMode" in document ? document.documentMode : null;
12
- !(!r || !("InputEvent" in window) || a) && "getTargetRanges" in new window.InputEvent("input");
13
- function i(...t) {
14
- const e = [];
15
- for (const n of t) if (n && typeof n == "string") for (const [u] of n.matchAll(/\S+/g)) e.push(u);
16
- return e;
17
- }
18
- function m(...t) {
19
- return () => {
20
- for (let e = t.length - 1; e >= 0; e--) t[e]();
21
- t.length = 0;
22
- };
23
- }
24
- function p(t, ...e) {
25
- const n = i(...e);
26
- n.length > 0 && t.classList.add(...n);
27
- }
28
- function g(t, ...e) {
29
- const n = i(...e);
30
- n.length > 0 && t.classList.remove(...n);
31
- }
32
- function w(t, e) {
33
- let n = t;
34
- for (; n != null; ) {
35
- if (n instanceof e) return n;
36
- n = n.getParent();
37
- }
38
- return null;
39
- }
40
- function h(t) {
41
- const e = f(t, (n) => o(n) && !n.isInline());
42
- return o(e) || s(4, t.__key), e;
43
- }
44
- const f = (t, e) => {
45
- let n = t;
46
- for (; n !== l() && n != null; ) {
47
- if (e(n)) return n;
48
- n = n.getParent();
49
- }
50
- return null;
51
- };
52
- function v(t, e) {
53
- return t !== null && Object.getPrototypeOf(t).constructor.name === e.name;
54
- }
55
- export {
56
- p as $,
57
- m as L,
58
- g as U,
59
- w as Z,
60
- h as e,
61
- v as i,
62
- f as t
63
- };
64
- //# sourceMappingURL=LexicalUtils.prod-D_BPEjfg.js.map
@@ -1,55 +0,0 @@
1
- import { jsxs as o, jsx as i, Fragment as p } from "react/jsx-runtime";
2
- import { c as m } from "./clsx-OuTLNxxd.js";
3
- import { s as t, M as a } from "./MultiSelectItem-D9PxdX43.js";
4
- import { Label as u } from "./components/Label/Label.js";
5
- import "react";
6
- import { Button as n } from "./components/Buttons/Button.js";
7
- import "./components/Buttons/LinkButton.js";
8
- import "@react-aria/button";
9
- import "@react-aria/dialog";
10
- import "@react-aria/focus";
11
- import "@react-aria/overlays";
12
- import "./components/OverlayCloseButton/OverlayCloseButton.js";
13
- import "./components/GridRow/GridRow.js";
14
- import "./components/IconButton/IconButton.js";
15
- import "./components/Input/Input.js";
16
- import "./components/InputField/InputField.js";
17
- import "react-router-dom";
18
- import "./components/SelectListbox/SelectListbox.js";
19
- import "./components/SelectListbox/SelectProvider.js";
20
- import "./components/Sortable/components/SortableItem.js";
21
- import "./SortableProvider-Z0e0qeQT.js";
22
- function d({ label: l, clearTrigger: e, onClear: r }) {
23
- return /* @__PURE__ */ o("header", { className: t["multi-select__header"], children: [
24
- /* @__PURE__ */ i(u, { htmlFor: "multi-select-list", children: l }),
25
- e && /* @__PURE__ */ i(n, { variant: "blank", onClick: r, children: e })
26
- ] });
27
- }
28
- const s = ({ scrollable: l = !0, noBorder: e, header: r, children: c }) => /* @__PURE__ */ o(p, { children: [
29
- r,
30
- /* @__PURE__ */ i(
31
- "div",
32
- {
33
- className: m(t["multi-select"], {
34
- [t["multi-select--no-border"]]: e
35
- }),
36
- children: /* @__PURE__ */ i(
37
- "ul",
38
- {
39
- className: m(t["multi-select__list"], {
40
- [t["multi-select__list--scrollable"]]: l
41
- }),
42
- id: "multi-select-list",
43
- children: c
44
- }
45
- )
46
- }
47
- )
48
- ] });
49
- s.MultiSelectHeader = d;
50
- s.MultiSelectItem = a;
51
- export {
52
- s as M,
53
- d as a
54
- };
55
- //# sourceMappingURL=MultiSelect-DQaqItEH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultiSelect-DQaqItEH.js","sources":["../src/components/MultiSelect/components/MultiSelectHeader.tsx","../src/components/MultiSelect/MultiSelect.tsx"],"sourcesContent":["import styles from 'components/MultiSelect/MultiSelect.module.css';\nimport { Label } from 'components/Label';\nimport { Button } from 'components';\n\nexport interface MultiSelectHeaderProps {\n label: string;\n clearTrigger?: string;\n onClear?: () => void;\n}\n\nexport function MultiSelectHeader({ label, clearTrigger, onClear }: MultiSelectHeaderProps) {\n return (\n <header className={styles['multi-select__header']}>\n <Label htmlFor=\"multi-select-list\">{label}</Label>\n {clearTrigger && (\n <Button variant={'blank'} onClick={onClear}>\n {clearTrigger}\n </Button>\n )}\n </header>\n );\n}\n","import clsx from 'clsx';\n\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nimport styles from './MultiSelect.module.css';\n\nimport { MultiSelectItem } from 'components/MultiSelect/components/MultiSelectItem';\nimport { MultiSelectHeader } from 'components/MultiSelect/components/MultiSelectHeader';\n\nexport interface MultiSelectProps {\n /** `true` if the container should scroll on overflow; otherwise, `false` to resize the container to its contents. The default is `true`. */\n scrollable?: boolean;\n /** `true` to disable the border around the container; otherwise, `false`. The default is `false`. */\n noBorder?: boolean;\n /** The header contents. */\n header?: ReactNode;\n}\n\n/** Represents a component to list a number of checkboxes. */\nexport const MultiSelect = ({ scrollable = true, noBorder, header, children }: PropsWithChildren<MultiSelectProps>) => (\n <>\n {header}\n <div\n className={clsx(styles['multi-select'], {\n [styles['multi-select--no-border']]: noBorder,\n })}\n >\n <ul\n className={clsx(styles['multi-select__list'], {\n [styles['multi-select__list--scrollable']]: scrollable,\n })}\n id=\"multi-select-list\"\n >\n {children}\n </ul>\n </div>\n </>\n);\n\nMultiSelect.MultiSelectHeader = MultiSelectHeader;\nMultiSelect.MultiSelectItem = MultiSelectItem;\n"],"names":["MultiSelectHeader","label","clearTrigger","onClear","jsxs","styles","jsx","Label","Button","MultiSelect","scrollable","noBorder","header","children","Fragment","clsx","MultiSelectItem"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAUO,SAASA,EAAkB,EAAE,OAAAC,GAAO,cAAAC,GAAc,SAAAC,KAAmC;AAC1F,SACG,gBAAAC,EAAA,UAAA,EAAO,WAAWC,EAAO,sBAAsB,GAC9C,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAM,SAAQ,qBAAqB,UAAMN,GAAA;AAAA,IACzCC,KACE,gBAAAI,EAAAE,GAAA,EAAO,SAAS,SAAS,SAASL,GAChC,UACHD,GAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ;ACFa,MAAAO,IAAc,CAAC,EAAE,YAAAC,IAAa,IAAM,UAAAC,GAAU,QAAAC,GAAQ,UAAAC,QAE9D,gBAAAT,EAAAU,GAAA,EAAA,UAAA;AAAA,EAAAF;AAAA,EACD,gBAAAN;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWS,EAAKV,EAAO,cAAc,GAAG;AAAA,QACtC,CAACA,EAAO,yBAAyB,CAAC,GAAGM;AAAA,MAAA,CACtC;AAAA,MAED,UAAA,gBAAAL;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWS,EAAKV,EAAO,oBAAoB,GAAG;AAAA,YAC5C,CAACA,EAAO,gCAAgC,CAAC,GAAGK;AAAA,UAAA,CAC7C;AAAA,UACD,IAAG;AAAA,UAEF,UAAAG;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EACF;AAAA,GACF;AAGFJ,EAAY,oBAAoBT;AAChCS,EAAY,kBAAkBO;"}
@@ -1,26 +0,0 @@
1
- import './assets/RteEditor.css';const _ = "_editor__wrapper_10ew6_1", t = "_editor__toolbar_10ew6_6", o = "_editor__field_10ew6_80", e = "_editor__placeholder_10ew6_96", r = "_editor__linkform_10ew6_105", i = "_editor__listitem_10ew6_146", d = "_editor__link_10ew6_105", l = {
2
- editor__wrapper: _,
3
- editor__toolbar: t,
4
- "editor__toolbar-button-group": "_editor__toolbar-button-group_10ew6_14",
5
- "editor__toolbar-button": "_editor__toolbar-button_10ew6_14",
6
- "editor__toolbar-button--bold": "_editor__toolbar-button--bold_10ew6_58",
7
- "editor__toolbar-button--italic": "_editor__toolbar-button--italic_10ew6_62",
8
- "editor__toolbar-button--active": "_editor__toolbar-button--active_10ew6_66",
9
- "editor__toolbar-button-flyoutwrapper": "_editor__toolbar-button-flyoutwrapper_10ew6_76",
10
- "editor__field-wrapper": "_editor__field-wrapper_10ew6_80",
11
- editor__field: o,
12
- editor__placeholder: e,
13
- editor__linkform: r,
14
- "editor__linkform-input-field": "_editor__linkform-input-field_10ew6_109",
15
- "editor__linkform-footer": "_editor__linkform-footer_10ew6_116",
16
- "editor__text--bold": "_editor__text--bold_10ew6_128",
17
- "editor__text--italic": "_editor__text--italic_10ew6_132",
18
- "editor__list--ul": "_editor__list--ul_10ew6_136",
19
- "editor__list--ol": "_editor__list--ol_10ew6_141",
20
- editor__listitem: i,
21
- editor__link: d
22
- };
23
- export {
24
- l as s
25
- };
26
- //# sourceMappingURL=RteEditor.module-BjGyWKhW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RteEditor.module-BjGyWKhW.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,24 +0,0 @@
1
- import './assets/Sortable.css';const _ = "_sortable__wrapper_1ifbq_1", t = "_sortable__container_1ifbq_13", e = "_sortable__handle_1ifbq_153", r = {
2
- sortable__wrapper: _,
3
- "sortable__wrapper--scrollable": "_sortable__wrapper--scrollable_1ifbq_5",
4
- sortable__container: t,
5
- "sortable__drop-target": "_sortable__drop-target_1ifbq_25",
6
- "sortable__sort-item": "_sortable__sort-item_1ifbq_56",
7
- "sortable__sort-item--ghost": "_sortable__sort-item--ghost_1ifbq_72",
8
- "sortable__container--drag-over": "_sortable__container--drag-over_1ifbq_83",
9
- "sortable__sort-item__handle": "_sortable__sort-item__handle_1ifbq_88",
10
- "sortable__sort-item__button-container": "_sortable__sort-item__button-container_1ifbq_98",
11
- "sortable__sort-item__handle--icon": "_sortable__sort-item__handle--icon_1ifbq_117",
12
- "sortable__sort-item__handle--up": "_sortable__sort-item__handle--up_1ifbq_124",
13
- "sortable__sort-item__handle--down": "_sortable__sort-item__handle--down_1ifbq_125",
14
- "sortable__sort-item--dragging": "_sortable__sort-item--dragging_1ifbq_136",
15
- "sortable__sort-item__contents": "_sortable__sort-item__contents_1ifbq_140",
16
- "sortable__sort-item__contents--handle-right": "_sortable__sort-item__contents--handle-right_1ifbq_149",
17
- sortable__handle: e,
18
- "sortable__handle--right": "_sortable__handle--right_1ifbq_159",
19
- "sortable__visually-hidden": "_sortable__visually-hidden_1ifbq_177"
20
- };
21
- export {
22
- r as s
23
- };
24
- //# sourceMappingURL=Sortable.module-BrgGu8qp.js.map