@uva-glass/component-library 1.53.0 → 1.55.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/AddTableFrom-CwnPli3F.js +162 -0
- package/dist/AddTableFrom-CwnPli3F.js.map +1 -0
- package/dist/{Lexical.prod-DNRTKPfN.js → Lexical.prod-BiuZHlIm.js} +927 -897
- package/dist/Lexical.prod-BiuZHlIm.js.map +1 -0
- package/dist/LexicalUtils.prod-BZOm66mY.js +94 -0
- package/dist/{LexicalUtils.prod-D_BPEjfg.js.map → LexicalUtils.prod-BZOm66mY.js.map} +1 -1
- package/dist/{ListPlugin-CgNBzfIl.js → ListPlugin-DFFbKLaN.js} +4 -4
- package/dist/{ListPlugin-CgNBzfIl.js.map → ListPlugin-DFFbKLaN.js.map} +1 -1
- package/dist/RteEditor.module-BBbfV1rk.js +24 -0
- package/dist/RteEditor.module-BBbfV1rk.js.map +1 -0
- package/dist/Sortable.module-BrgGu8qp.js +24 -0
- package/dist/Sortable.module-BrgGu8qp.js.map +1 -0
- package/dist/SortableProvider-Z0e0qeQT.js +152 -0
- package/dist/SortableProvider-Z0e0qeQT.js.map +1 -0
- package/dist/TablePlugin-CKJQiwra.js +1506 -0
- package/dist/TablePlugin-CKJQiwra.js.map +1 -0
- package/dist/assets/AddTableFrom.css +1 -0
- package/dist/assets/PageOverlay.css +1 -0
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/Sortable.css +1 -0
- package/dist/assets/useFlyout.css +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +11 -9
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
- package/dist/components/Icon/icons/index.d.ts +3 -0
- package/dist/components/Icon/icons/index.js +18 -13
- package/dist/components/Icon/icons/index.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +13 -11
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +4 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PageOverlay/PageOverlay.d.ts +25 -0
- package/dist/components/PageOverlay/PageOverlay.js +100 -0
- package/dist/components/PageOverlay/PageOverlay.js.map +1 -0
- package/dist/components/PageOverlay/PageOverlay.stories.d.ts +7 -0
- package/dist/components/PageOverlay/PageOverlay.stories.js +167 -0
- package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -0
- package/dist/components/PageOverlay/index.d.ts +1 -0
- package/dist/components/PageOverlay/index.js +5 -0
- package/dist/components/PageOverlay/index.js.map +1 -0
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +26 -24
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +18 -16
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.d.ts +12 -0
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js +28 -0
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js.map +1 -0
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +49 -68
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
- 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/ListPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.d.ts +10 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +25 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +29 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js.map +1 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +26 -24
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/index.js +6 -4
- package/dist/components/RteEditor/Plugins/index.js.map +1 -1
- package/dist/components/RteEditor/RteEditor.js +559 -774
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.d.ts +1 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +5 -4
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
- package/dist/components/RteEditor/hooks/useFlyout.d.ts +1 -0
- package/dist/components/RteEditor/hooks/useFlyout.js +18 -36
- package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
- package/dist/components/Sortable/Sortable.d.ts +16 -0
- package/dist/components/Sortable/Sortable.js +27 -0
- package/dist/components/Sortable/Sortable.js.map +1 -0
- package/dist/components/Sortable/Sortable.stories.d.ts +7 -0
- package/dist/components/Sortable/Sortable.stories.js +53 -0
- package/dist/components/Sortable/Sortable.stories.js.map +1 -0
- package/dist/components/Sortable/SortableProvider.d.ts +23 -0
- package/dist/components/Sortable/SortableProvider.js +10 -0
- package/dist/components/Sortable/SortableProvider.js.map +1 -0
- package/dist/components/Sortable/actions.d.ts +49 -0
- package/dist/components/Sortable/actions.js +33 -0
- package/dist/components/Sortable/actions.js.map +1 -0
- package/dist/components/Sortable/components/SortableContainer.d.ts +7 -0
- package/dist/components/Sortable/components/SortableContainer.js +9 -0
- package/dist/components/Sortable/components/SortableContainer.js.map +1 -0
- package/dist/components/Sortable/components/SortableHandle.d.ts +4 -0
- package/dist/components/Sortable/components/SortableHandle.js +11 -0
- package/dist/components/Sortable/components/SortableHandle.js.map +1 -0
- package/dist/components/Sortable/components/SortableItem.d.ts +9 -0
- package/dist/components/Sortable/components/SortableItem.js +113 -0
- package/dist/components/Sortable/components/SortableItem.js.map +1 -0
- package/dist/components/Sortable/constants.d.ts +10 -0
- package/dist/components/Sortable/constants.js +14 -0
- package/dist/components/Sortable/constants.js.map +1 -0
- package/dist/components/Sortable/index.d.ts +1 -0
- package/dist/components/Sortable/index.js +5 -0
- package/dist/components/Sortable/index.js.map +1 -0
- package/dist/components/Sortable/sortableReducer.d.ts +24 -0
- package/dist/components/Sortable/sortableReducer.js +92 -0
- package/dist/components/Sortable/sortableReducer.js.map +1 -0
- package/dist/components/hooks/useOnClickOuside.d.ts +4 -0
- package/dist/components/hooks/useOnClickOuside.js +15 -0
- package/dist/components/hooks/useOnClickOuside.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +45 -41
- package/dist/components/index.js.map +1 -1
- package/dist/{helpers-TSjo3aAv.js → helpers-CJF7fErD.js} +3 -3
- package/dist/{helpers-TSjo3aAv.js.map → helpers-CJF7fErD.js.map} +1 -1
- package/dist/index.js +45 -41
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/Lexical.prod-DNRTKPfN.js.map +0 -1
- package/dist/LexicalUtils.prod-D_BPEjfg.js +0 -64
- package/dist/MultiSelect-D1FnMER4.js +0 -53
- package/dist/MultiSelect-D1FnMER4.js.map +0 -1
- package/dist/RteEditor.module-BjGyWKhW.js +0 -26
- package/dist/RteEditor.module-BjGyWKhW.js.map +0 -1
|
@@ -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,53 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as l, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as m } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { s as t, M as p } 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
|
-
function d({ label: i, clearTrigger: e, onClear: r }) {
|
|
21
|
-
return /* @__PURE__ */ o("header", { className: t["multi-select__header"], children: [
|
|
22
|
-
/* @__PURE__ */ l(u, { htmlFor: "multi-select-list", children: i }),
|
|
23
|
-
e && /* @__PURE__ */ l(n, { variant: "blank", onClick: r, children: e })
|
|
24
|
-
] });
|
|
25
|
-
}
|
|
26
|
-
const s = ({ scrollable: i = !0, noBorder: e, header: r, children: c }) => /* @__PURE__ */ o(a, { children: [
|
|
27
|
-
r,
|
|
28
|
-
/* @__PURE__ */ l(
|
|
29
|
-
"div",
|
|
30
|
-
{
|
|
31
|
-
className: m(t["multi-select"], {
|
|
32
|
-
[t["multi-select--no-border"]]: e
|
|
33
|
-
}),
|
|
34
|
-
children: /* @__PURE__ */ l(
|
|
35
|
-
"ul",
|
|
36
|
-
{
|
|
37
|
-
className: m(t["multi-select__list"], {
|
|
38
|
-
[t["multi-select__list--scrollable"]]: i
|
|
39
|
-
}),
|
|
40
|
-
id: "multi-select-list",
|
|
41
|
-
children: c
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
] });
|
|
47
|
-
s.MultiSelectHeader = d;
|
|
48
|
-
s.MultiSelectItem = p;
|
|
49
|
-
export {
|
|
50
|
-
s as M,
|
|
51
|
-
d as a
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=MultiSelect-D1FnMER4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect-D1FnMER4.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":";;;;;;;;;;;;;;;;;;;;;;"}
|