@uva-glass/component-library 3.21.2 → 3.23.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/Button.module-Dlqf6mMD.js +15 -0
- package/dist/Button.module-Dlqf6mMD.js.map +1 -0
- package/dist/RteEditor.module-B_3uFnFu.js +41 -0
- package/dist/RteEditor.module-B_3uFnFu.js.map +1 -0
- package/dist/{SelectListbox.module-N3Kg0UvL.js → SelectListbox.module-DHFU0NjU.js} +21 -21
- package/dist/SelectListbox.module-DHFU0NjU.js.map +1 -0
- package/dist/Sortable.module-CekPNg54.js +23 -0
- package/dist/Sortable.module-CekPNg54.js.map +1 -0
- package/dist/{SortableProvider-B3_u0pKv.js → SortableProvider-CwX1lFMa.js} +2 -2
- package/dist/{SortableProvider-B3_u0pKv.js.map → SortableProvider-CwX1lFMa.js.map} +1 -1
- package/dist/{TablePlugin-CrCof8yO.js → TablePlugin-Bj5FObQ_.js} +3 -3
- package/dist/{TablePlugin-CrCof8yO.js.map → TablePlugin-Bj5FObQ_.js.map} +1 -1
- package/dist/assets/Backdrop.css +1 -1
- package/dist/assets/Backdrop2.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/CheckboxTree.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/EditorHeader.css +1 -1
- package/dist/assets/Flyout.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/MultiSelectBox.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/PageOverlay.css +1 -1
- package/dist/assets/Periods.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/StatusBage.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -1
- package/dist/assets/variables.css +75 -52
- package/dist/components/Backdrop/Backdrop.js +5 -5
- package/dist/components/Buttons/Button.js +1 -1
- package/dist/components/Buttons/LinkButton.js +1 -1
- package/dist/components/Buttons/MenuButton.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +19 -19
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/Input/Input.js +16 -16
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js +56 -56
- package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +6 -6
- package/dist/components/PageOverlay/PageOverlay.js +26 -26
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/Periods/Periods.js +25 -25
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +8 -8
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +20 -20
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +3 -3
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
- package/dist/components/RteEditor/hooks/components/Flyout.js +3 -3
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +1 -1
- package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +2 -2
- package/dist/components/Sortable/components/SortableHandle.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/StatusBadge/StatusBage.js +6 -6
- package/dist/components/TextArea/TextArea.d.ts +3 -1
- package/dist/components/TextArea/TextArea.js +9 -8
- package/dist/components/TextArea/TextArea.js.map +1 -1
- package/dist/components/TextArea/TextArea.stories.js +8 -7
- package/dist/components/TextArea/TextArea.stories.js.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js +10 -10
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/storyComponents/Container/Container.js +22 -22
- package/dist/types/UserInterface.d.ts +1 -1
- package/package.json +4 -4
- package/dist/Button.module-BVsTgdTe.js +0 -15
- package/dist/Button.module-BVsTgdTe.js.map +0 -1
- package/dist/RteEditor.module-45648CA2.js +0 -41
- package/dist/RteEditor.module-45648CA2.js.map +0 -1
- package/dist/SelectListbox.module-N3Kg0UvL.js.map +0 -1
- package/dist/Sortable.module-CuvuQhr8.js +0 -23
- package/dist/Sortable.module-CuvuQhr8.js.map +0 -1
package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js
CHANGED
|
@@ -5,28 +5,28 @@ import { o as $ } from "../../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
|
5
5
|
import { Icon as k } from "../../../../Icon/Icon.js";
|
|
6
6
|
import { useTranslation as H } from "../../../hooks/useTranslation.js";
|
|
7
7
|
import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
8
|
-
"context-menu__wrapper": "_context-
|
|
9
|
-
"context-menu__button": "_context-
|
|
10
|
-
"context-menu": "_context-
|
|
11
|
-
"context-menu--open": "_context-menu--
|
|
12
|
-
"context-menu__item": "_context-
|
|
13
|
-
"context-menu__item-divider": "_context-menu__item-
|
|
14
|
-
"context-menu__wrapper--hidden": "_context-menu__wrapper--
|
|
15
|
-
}, O = 25, N = 10, f = 4, A = 25, M = (
|
|
16
|
-
const r =
|
|
8
|
+
"context-menu__wrapper": "_context-menu__wrapper_6m871_1",
|
|
9
|
+
"context-menu__button": "_context-menu__button_6m871_10",
|
|
10
|
+
"context-menu": "_context-menu_6m871_1",
|
|
11
|
+
"context-menu--open": "_context-menu--open_6m871_38",
|
|
12
|
+
"context-menu__item": "_context-menu__item_6m871_43",
|
|
13
|
+
"context-menu__item-divider": "_context-menu__item-divider_6m871_57",
|
|
14
|
+
"context-menu__wrapper--hidden": "_context-menu__wrapper--hidden_6m871_61"
|
|
15
|
+
}, O = 25, N = 10, f = 4, A = 25, M = (a) => {
|
|
16
|
+
const r = a.cloneNode(!0);
|
|
17
17
|
r.style.height = "auto", r.style.left = "-3000px", document.body.appendChild(r);
|
|
18
18
|
const b = r.getBoundingClientRect().height;
|
|
19
19
|
return document.body.removeChild(r), b;
|
|
20
|
-
}, W = ({ position:
|
|
21
|
-
const t = H(), [T, p] = _(!1), [E, x] = _(!1), [c, B] = _({ xPos: 0, yPos: 0, height: 0 }), [m, I] = _(0), C = d(0), i = d(null), s = d(null), o = d(null), [v] = $(),
|
|
20
|
+
}, W = ({ position: a, parentScrollPosition: r, onAction: b }) => {
|
|
21
|
+
const t = H(), [T, p] = _(!1), [E, x] = _(!1), [c, B] = _({ xPos: 0, yPos: 0, height: 0 }), [m, I] = _(0), C = d(0), i = d(null), s = d(null), o = d(null), [v] = $(), u = (l) => {
|
|
22
22
|
b(l), p(!1);
|
|
23
23
|
}, g = () => {
|
|
24
24
|
const l = i.current ? i.current.getBoundingClientRect().width : 0;
|
|
25
25
|
s.current && i.current && o.current && (c.xPos < l && s.current ? (s.current.style.left = `${l - c.xPos + N}px`, o.current.style.right = `${l - c.xPos + f + N}px`) : (s.current.style.left = "0px", o.current.style.right = `${f}px`), m || I(M(i.current)), m > document.documentElement.clientHeight - c.yPos ? (s.current.style.top = `-${m + c.height}px`, o.current.style.top = `${m + f}px`, o.current.style.transform = "rotate(180deg)") : (s.current.style.top = "0px", o.current.style.top = `-${A}px`, o.current.style.transform = "none"));
|
|
26
26
|
}, P = () => (g(), `translate(${((c == null ? void 0 : c.xPos) ?? 0) - (i.current ? i.current.getBoundingClientRect().width : 0)}px, ${c.yPos - (r - C.current)}px)`);
|
|
27
27
|
return R(() => {
|
|
28
|
-
B(
|
|
29
|
-
}, [
|
|
28
|
+
B(a), a && (C.current = r), p(!1), x(!1);
|
|
29
|
+
}, [a]), R(() => {
|
|
30
30
|
if (o.current) {
|
|
31
31
|
const l = o.current.getBoundingClientRect(), h = v.getRootElement();
|
|
32
32
|
if (!h) return;
|
|
@@ -56,7 +56,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
56
56
|
"button",
|
|
57
57
|
{
|
|
58
58
|
type: "button",
|
|
59
|
-
onClick: () =>
|
|
59
|
+
onClick: () => u("insertRowAbove"),
|
|
60
60
|
className: n["context-menu__item"],
|
|
61
61
|
"aria-label": t.aria.labels.tableInsertRowAbove,
|
|
62
62
|
children: t.table.insertRowAbove
|
|
@@ -66,7 +66,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
66
66
|
"button",
|
|
67
67
|
{
|
|
68
68
|
type: "button",
|
|
69
|
-
onClick: () =>
|
|
69
|
+
onClick: () => u("insertRowBelow"),
|
|
70
70
|
className: n["context-menu__item"],
|
|
71
71
|
"aria-label": t.aria.labels.tableInsertRowBelow,
|
|
72
72
|
children: t.table.insertRowBelow
|
|
@@ -76,7 +76,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
76
76
|
"button",
|
|
77
77
|
{
|
|
78
78
|
type: "button",
|
|
79
|
-
onClick: () =>
|
|
79
|
+
onClick: () => u("deleteRow"),
|
|
80
80
|
className: n["context-menu__item"],
|
|
81
81
|
"aria-label": t.aria.labels.tableDeleteRow,
|
|
82
82
|
children: t.table.deleteRow
|
|
@@ -86,7 +86,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
86
86
|
"button",
|
|
87
87
|
{
|
|
88
88
|
type: "button",
|
|
89
|
-
onClick: () =>
|
|
89
|
+
onClick: () => u("insertColumnLeft"),
|
|
90
90
|
className: n["context-menu__item"],
|
|
91
91
|
"aria-label": t.aria.labels.tableInsertColumnLeft,
|
|
92
92
|
children: t.table.insertColumnLeft
|
|
@@ -96,7 +96,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
96
96
|
"button",
|
|
97
97
|
{
|
|
98
98
|
type: "button",
|
|
99
|
-
onClick: () =>
|
|
99
|
+
onClick: () => u("insertColumnRight"),
|
|
100
100
|
className: n["context-menu__item"],
|
|
101
101
|
"aria-label": t.aria.labels.tableInsertColumnRight,
|
|
102
102
|
children: t.table.insertColumnRight
|
|
@@ -106,7 +106,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
106
106
|
"button",
|
|
107
107
|
{
|
|
108
108
|
type: "button",
|
|
109
|
-
onClick: () =>
|
|
109
|
+
onClick: () => u("deleteColumn"),
|
|
110
110
|
className: n["context-menu__item"],
|
|
111
111
|
"aria-label": t.aria.labels.tableDeleteColumn,
|
|
112
112
|
children: t.table.deleteColumn
|
|
@@ -116,7 +116,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
116
116
|
"button",
|
|
117
117
|
{
|
|
118
118
|
type: "button",
|
|
119
|
-
onClick: () =>
|
|
119
|
+
onClick: () => u("deleteTable"),
|
|
120
120
|
className: n["context-menu__item"],
|
|
121
121
|
"aria-label": t.aria.labels.tableDeleteTable,
|
|
122
122
|
children: t.table.deleteTable
|
|
@@ -4,7 +4,7 @@ import "../../../../clsx-OuTLNxxd.js";
|
|
|
4
4
|
import "../../../../LexicalTable.prod-M0HiIwBZ.js";
|
|
5
5
|
import "../../../../Lexical.prod-DOV_uwol.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-Bj5FObQ_.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -21,7 +21,7 @@ import "../../../IconButton/IconButton.js";
|
|
|
21
21
|
import "../../../Input/Input.js";
|
|
22
22
|
import "../../../InputField/InputField.js";
|
|
23
23
|
import "react-router";
|
|
24
|
-
import "../../../../RteEditor.module-
|
|
24
|
+
import "../../../../RteEditor.module-B_3uFnFu.js";
|
|
25
25
|
import "../../hooks/useTranslation.js";
|
|
26
26
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
27
27
|
import "../../Providers/LanguageProvider.js";
|
|
@@ -29,7 +29,7 @@ import "../../../../index-DllfJcv4.js";
|
|
|
29
29
|
import "../../../SelectListbox/SelectListbox.js";
|
|
30
30
|
import "../../../SelectListbox/SelectProvider.js";
|
|
31
31
|
import "../../../Sortable/components/SortableItem.js";
|
|
32
|
-
import "../../../../SortableProvider-
|
|
32
|
+
import "../../../../SortableProvider-CwX1lFMa.js";
|
|
33
33
|
export {
|
|
34
34
|
F as TablePlugin
|
|
35
35
|
};
|
|
@@ -7,9 +7,9 @@ import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.j
|
|
|
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-Bj5FObQ_.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
|
-
import { s as A } from "../../../../RteEditor.module-
|
|
12
|
+
import { s as A } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
13
13
|
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
14
14
|
const O = ({ editorScrollPosition: d }) => {
|
|
15
15
|
const [t] = P(), [i, s] = L(null), u = E(null), f = N(() => {
|
|
@@ -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-Bj5FObQ_.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|
|
@@ -13,10 +13,10 @@ import { s as Yt, c as Qt, a as je, b as Zt, w as er, S as tr, y as Je, O as rr
|
|
|
13
13
|
import { a as nr, w as or, M as ar } from "../../helpers-DxxBlpKs.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
|
-
import { s as I } from "../../RteEditor.module-
|
|
16
|
+
import { s as I } 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-Bj5FObQ_.js";
|
|
20
20
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "./hooks/components/Flyout.js";
|
|
22
22
|
import "../Buttons/Button.js";
|
|
@@ -36,7 +36,7 @@ import "react-router";
|
|
|
36
36
|
import "../SelectListbox/SelectListbox.js";
|
|
37
37
|
import "../SelectListbox/SelectProvider.js";
|
|
38
38
|
import "../Sortable/components/SortableItem.js";
|
|
39
|
-
import "../../SortableProvider-
|
|
39
|
+
import "../../SortableProvider-CwX1lFMa.js";
|
|
40
40
|
import { UvaTheme as mr } from "./UvaTheme/UvaTheme.js";
|
|
41
41
|
import { EditorHeader as pr } from "./EditorHeader/EditorHeader.js";
|
|
42
42
|
import { LanguageProvider as gr, useLanguage as hr } from "./Providers/LanguageProvider.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { forwardRef as l } from "react";
|
|
4
|
-
import '../../../../assets/Flyout.css';const
|
|
5
|
-
flyout__wrapper:
|
|
6
|
-
flyout__open:
|
|
4
|
+
import '../../../../assets/Flyout.css';const a = "_flyout__wrapper_cadga_1", s = "_flyout__open_cadga_14", t = {
|
|
5
|
+
flyout__wrapper: a,
|
|
6
|
+
flyout__open: s
|
|
7
7
|
}, m = l(
|
|
8
8
|
({ position: o, visible: _, children: p }, r) => /* @__PURE__ */ e(
|
|
9
9
|
"div",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { forwardRef as E, useRef as g, useEffect as c } from "react";
|
|
4
|
-
import { s as t } from "../../../SelectListbox.module-
|
|
4
|
+
import { s as t } from "../../../SelectListbox.module-DHFU0NjU.js";
|
|
5
5
|
import { Icon as L } from "../../Icon/Icon.js";
|
|
6
6
|
import { useSelect as N } from "../SelectProvider.js";
|
|
7
7
|
const O = E((d, u) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as i, useCallback as u, useEffect as l } from "react";
|
|
3
3
|
import { useSelect as m } from "../SelectProvider.js";
|
|
4
|
-
import { s as f } from "../../../SelectListbox.module-
|
|
4
|
+
import { s as f } from "../../../SelectListbox.module-DHFU0NjU.js";
|
|
5
5
|
const E = ({ children: o }) => {
|
|
6
6
|
const { isOpen: r, setIsOpen: n } = m(), t = i(null), e = u(
|
|
7
7
|
({ target: s }) => {
|
|
@@ -2,7 +2,7 @@ import { jsxs as D, Fragment as h, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as y } from "../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { useRef as O, useEffect as d } from "react";
|
|
4
4
|
import { useSelect as x } from "../SelectProvider.js";
|
|
5
|
-
import { s as o } from "../../../SelectListbox.module-
|
|
5
|
+
import { s as o } from "../../../SelectListbox.module-DHFU0NjU.js";
|
|
6
6
|
const j = ({ option: l, index: t, dividerAfter: u, children: v }) => {
|
|
7
7
|
const i = O(null), { isOpen: r, activeIndex: s, setActiveIndex: c, selectedValue: f, setSelectedValue: p, setIsOpen: n, options: a } = x(), w = (e) => {
|
|
8
8
|
p(a[e]), n(!1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m, useRef as x } from "react";
|
|
3
|
-
import { s as i } from "../../../SelectListbox.module-
|
|
3
|
+
import { s as i } from "../../../SelectListbox.module-DHFU0NjU.js";
|
|
4
4
|
import { useSelect as a } from "../SelectProvider.js";
|
|
5
5
|
const h = m((l, e) => {
|
|
6
6
|
const { style: t, children: o } = l, { listboxId: r, isOpen: c } = a(), n = x(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Children as e } from "react";
|
|
3
3
|
import { SortableItem as b } from "./components/SortableItem.js";
|
|
4
|
-
import { S as n } from "../../SortableProvider-
|
|
4
|
+
import { S as n } from "../../SortableProvider-CwX1lFMa.js";
|
|
5
5
|
const S = ({ children: t, ItemHandlePlacement: m = "left", scrollable: a, disabled: l, onSort: i }) => /* @__PURE__ */ o(
|
|
6
6
|
n,
|
|
7
7
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "./sortableReducer.js";
|
|
4
|
-
import { S as p, u as a } from "../../SortableProvider-
|
|
4
|
+
import { S as p, u as a } from "../../SortableProvider-CwX1lFMa.js";
|
|
5
5
|
import "./actions.js";
|
|
6
6
|
export {
|
|
7
7
|
p as SortableProvider,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../Sortable.module-
|
|
5
|
-
import { a } from "../../../SortableProvider-
|
|
4
|
+
import "../../../Sortable.module-CekPNg54.js";
|
|
5
|
+
import { a } from "../../../SortableProvider-CwX1lFMa.js";
|
|
6
6
|
export {
|
|
7
7
|
a as SortableContainer
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as e } from "../../Icon/Icon.js";
|
|
3
|
-
import { s as t } from "../../../Sortable.module-
|
|
3
|
+
import { s as t } from "../../../Sortable.module-CekPNg54.js";
|
|
4
4
|
const r = "ontouchstart" in globalThis.document.documentElement;
|
|
5
5
|
function m({ placement: n }) {
|
|
6
6
|
return r ? null : /* @__PURE__ */ o("div", { className: `${t.sortable__handle} ${t[`sortable__handle--${n}`]}`, children: /* @__PURE__ */ o(e, { name: "Dots" }) });
|
|
@@ -2,8 +2,8 @@ import { jsxs as i, jsx as r, Fragment as v } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as S, useRef as M, useEffect as Q } from "react";
|
|
3
3
|
import { Icon as w } from "../../Icon/Icon.js";
|
|
4
4
|
import { SortableHandle as E } from "./SortableHandle.js";
|
|
5
|
-
import { s as t } from "../../../Sortable.module-
|
|
6
|
-
import { u as k } from "../../../SortableProvider-
|
|
5
|
+
import { s as t } from "../../../Sortable.module-CekPNg54.js";
|
|
6
|
+
import { u as k } from "../../../SortableProvider-CwX1lFMa.js";
|
|
7
7
|
const G = ["Space", "ArrowDown", "ArrowUp"], J = "ontouchstart" in globalThis.document.documentElement, C = new Image(0, 0);
|
|
8
8
|
C.src = // 1px transparent png
|
|
9
9
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c
|
|
3
|
-
import '../../assets/StatusBage.css';const
|
|
4
|
-
statusbadge:
|
|
5
|
-
"statusbadge--high-contrast": "_statusbadge--high-
|
|
6
|
-
},
|
|
2
|
+
import { c } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import '../../assets/StatusBage.css';const d = "_statusbadge_1dz6c_1", t = {
|
|
4
|
+
statusbadge: d,
|
|
5
|
+
"statusbadge--high-contrast": "_statusbadge--high-contrast_1dz6c_14"
|
|
6
|
+
}, r = ({ label: s, highContrast: a = !1 }) => /* @__PURE__ */ e("div", { className: c(t.statusbadge, [a && t["statusbadge--high-contrast"]]), children: s });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
r as StatusBadge
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=StatusBage.js.map
|
|
@@ -5,5 +5,7 @@ export interface TextAreaProps {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
/** The max amount of allowed charecters in the text area */
|
|
7
7
|
maxCharacters?: number;
|
|
8
|
+
/** The default value for the text area */
|
|
9
|
+
defaultValue?: string;
|
|
8
10
|
}
|
|
9
|
-
export declare function TextArea({ onChange, label, maxCharacters }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function TextArea({ onChange, label, maxCharacters, defaultValue }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { c as
|
|
2
|
+
import { useRef as x, useState as d } from "react";
|
|
3
|
+
import { c as i } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import '../../assets/TextArea.css';const t = {
|
|
5
5
|
"text-area__wrapper": "_text-area__wrapper_13728_1",
|
|
6
6
|
"text-area__header": "_text-area__header_13728_7",
|
|
@@ -9,15 +9,15 @@ import '../../assets/TextArea.css';const t = {
|
|
|
9
9
|
"text-area__word-count--alert": "_text-area__word-count--alert_13728_25",
|
|
10
10
|
"text-area": "_text-area_13728_1"
|
|
11
11
|
};
|
|
12
|
-
function
|
|
13
|
-
const e =
|
|
14
|
-
e.current && (e.current.style.height = "auto", e.current.style.height = `${e.current.scrollHeight}px`,
|
|
12
|
+
function w({ onChange: l, label: c, maxCharacters: a = 0, defaultValue: o = "" }) {
|
|
13
|
+
const e = x(null), [n, s] = d(0), u = () => {
|
|
14
|
+
e.current && (e.current.style.height = "auto", e.current.style.height = `${e.current.scrollHeight}px`, s(e.current.value.length), l(e.current.value.trim()));
|
|
15
15
|
};
|
|
16
16
|
return /* @__PURE__ */ r("div", { className: t["text-area__wrapper"], children: [
|
|
17
17
|
/* @__PURE__ */ r("div", { className: t["text-area__header"], children: [
|
|
18
18
|
/* @__PURE__ */ _("span", { className: t["text-area__label"], children: c }),
|
|
19
19
|
a > 0 && /* @__PURE__ */ r("div", { className: t["text-area__word-count"], children: [
|
|
20
|
-
/* @__PURE__ */ _("span", { className:
|
|
20
|
+
/* @__PURE__ */ _("span", { className: i({ [t["text-area__word-count--alert"]]: n === a }), children: n }),
|
|
21
21
|
" / ",
|
|
22
22
|
a
|
|
23
23
|
] })
|
|
@@ -28,12 +28,13 @@ function m({ onChange: l, label: c, maxCharacters: a = 0 }) {
|
|
|
28
28
|
ref: e,
|
|
29
29
|
className: t["text-area"],
|
|
30
30
|
maxLength: a > 0 ? a : void 0,
|
|
31
|
-
onInput:
|
|
31
|
+
onInput: u,
|
|
32
|
+
defaultValue: o
|
|
32
33
|
}
|
|
33
34
|
)
|
|
34
35
|
] });
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
w as TextArea
|
|
38
39
|
};
|
|
39
40
|
//# sourceMappingURL=TextArea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sources":["../../../src/components/TextArea/TextArea.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './TextArea.module.css';\n\nexport interface TextAreaProps {\n /** Returns entered values as trimmed string */\n onChange: (value: string) => void;\n /** The label for the text area */\n label?: string;\n /** The max amount of allowed charecters in the text area */\n maxCharacters?: number;\n}\n\nexport function TextArea({ onChange, label, maxCharacters = 0 }: TextAreaProps) {\n const textAreaRef = useRef<HTMLTextAreaElement>(null);\n const [characterCount, setCharacterCount] = useState(0);\n\n const handleInput = () => {\n if (textAreaRef.current) {\n textAreaRef.current.style.height = 'auto';\n textAreaRef.current.style.height = `${textAreaRef.current.scrollHeight}px`;\n\n setCharacterCount(textAreaRef.current.value.length);\n onChange(textAreaRef.current.value.trim());\n }\n };\n\n return (\n <div className={styles['text-area__wrapper']}>\n <div className={styles['text-area__header']}>\n <span className={styles['text-area__label']}>{label}</span>\n {maxCharacters > 0 && (\n <div className={styles['text-area__word-count']}>\n <span className={clsx({ [styles['text-area__word-count--alert']]: characterCount === maxCharacters })}>\n {characterCount}\n </span>\n / {maxCharacters}\n </div>\n )}\n </div>\n\n <textarea\n ref={textAreaRef}\n className={styles['text-area']}\n maxLength={maxCharacters > 0 ? maxCharacters : undefined}\n onInput={handleInput}\n />\n </div>\n );\n}\n"],"names":["TextArea","onChange","label","maxCharacters","textAreaRef","useRef","characterCount","setCharacterCount","useState","handleInput","jsxs","styles","jsx","clsx"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TextArea.js","sources":["../../../src/components/TextArea/TextArea.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './TextArea.module.css';\n\nexport interface TextAreaProps {\n /** Returns entered values as trimmed string */\n onChange: (value: string) => void;\n /** The label for the text area */\n label?: string;\n /** The max amount of allowed charecters in the text area */\n maxCharacters?: number;\n /** The default value for the text area */\n defaultValue?: string;\n}\n\nexport function TextArea({ onChange, label, maxCharacters = 0, defaultValue = '' }: TextAreaProps) {\n const textAreaRef = useRef<HTMLTextAreaElement>(null);\n const [characterCount, setCharacterCount] = useState(0);\n\n const handleInput = () => {\n if (textAreaRef.current) {\n textAreaRef.current.style.height = 'auto';\n textAreaRef.current.style.height = `${textAreaRef.current.scrollHeight}px`;\n\n setCharacterCount(textAreaRef.current.value.length);\n onChange(textAreaRef.current.value.trim());\n }\n };\n\n return (\n <div className={styles['text-area__wrapper']}>\n <div className={styles['text-area__header']}>\n <span className={styles['text-area__label']}>{label}</span>\n {maxCharacters > 0 && (\n <div className={styles['text-area__word-count']}>\n <span className={clsx({ [styles['text-area__word-count--alert']]: characterCount === maxCharacters })}>\n {characterCount}\n </span>\n / {maxCharacters}\n </div>\n )}\n </div>\n\n <textarea\n ref={textAreaRef}\n className={styles['text-area']}\n maxLength={maxCharacters > 0 ? maxCharacters : undefined}\n onInput={handleInput}\n defaultValue={defaultValue}\n />\n </div>\n );\n}\n"],"names":["TextArea","onChange","label","maxCharacters","defaultValue","textAreaRef","useRef","characterCount","setCharacterCount","useState","handleInput","jsxs","styles","jsx","clsx"],"mappings":";;;;;;;;;;;AAgBgB,SAAAA,EAAS,EAAE,UAAAC,GAAU,OAAAC,GAAO,eAAAC,IAAgB,GAAG,cAAAC,IAAe,MAAqB;AAC3F,QAAAC,IAAcC,EAA4B,IAAI,GAC9C,CAACC,GAAgBC,CAAiB,IAAIC,EAAS,CAAC,GAEhDC,IAAc,MAAM;AACxB,IAAIL,EAAY,YACFA,EAAA,QAAQ,MAAM,SAAS,QACnCA,EAAY,QAAQ,MAAM,SAAS,GAAGA,EAAY,QAAQ,YAAY,MAEpDG,EAAAH,EAAY,QAAQ,MAAM,MAAM,GAClDJ,EAASI,EAAY,QAAQ,MAAM,KAAA,CAAM;AAAA,EAE7C;AAEA,SACG,gBAAAM,EAAA,OAAA,EAAI,WAAWC,EAAO,oBAAoB,GACzC,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAI,EAAA,WAAWC,EAAO,mBAAmB,GACxC,UAAA;AAAA,MAAA,gBAAAC,EAAC,QAAK,EAAA,WAAWD,EAAO,kBAAkB,GAAI,UAAMV,GAAA;AAAA,MACnDC,IAAgB,KACf,gBAAAQ,EAAC,SAAI,WAAWC,EAAO,uBAAuB,GAC5C,UAAA;AAAA,QAAA,gBAAAC,EAAC,QAAK,EAAA,WAAWC,EAAK,EAAE,CAACF,EAAO,8BAA8B,CAAC,GAAGL,MAAmBJ,EAAc,CAAC,GACjG,UACHI,EAAA,CAAA;AAAA,QAAO;AAAA,QACOJ;AAAA,MAAA,EAChB,CAAA;AAAA,IAAA,GAEJ;AAAA,IAEA,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAKR;AAAA,QACL,WAAWO,EAAO,WAAW;AAAA,QAC7B,WAAWT,IAAgB,IAAIA,IAAgB;AAAA,QAC/C,SAASO;AAAA,QACT,cAAAN;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { fn as r } from "../../index-Dwqes6RH.js";
|
|
3
3
|
import { TextArea as e } from "./TextArea.js";
|
|
4
|
-
const
|
|
5
|
-
<TextArea label={label} maxCharacters={maxCharacters} /> `,
|
|
4
|
+
const l = `
|
|
5
|
+
<TextArea label={label} maxCharacters={maxCharacters} defaultValue={string}/> `, p = {
|
|
6
6
|
title: "Atoms/TextArea",
|
|
7
7
|
component: e,
|
|
8
8
|
argTypes: {
|
|
@@ -15,16 +15,17 @@ const o = `
|
|
|
15
15
|
},
|
|
16
16
|
parameters: {
|
|
17
17
|
inspectComponent: e,
|
|
18
|
-
codeString:
|
|
18
|
+
codeString: l
|
|
19
19
|
}
|
|
20
|
-
},
|
|
21
|
-
|
|
20
|
+
}, o = (a) => /* @__PURE__ */ t(e, { ...a }), m = o.bind({});
|
|
21
|
+
m.args = {
|
|
22
22
|
label: "Sample label",
|
|
23
23
|
maxCharacters: 140,
|
|
24
|
+
defaultValue: "Sample default value",
|
|
24
25
|
onChange: r()
|
|
25
26
|
};
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
m as TextAreaExample,
|
|
29
|
+
p as default
|
|
29
30
|
};
|
|
30
31
|
//# sourceMappingURL=TextArea.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.stories.js","sources":["../../../src/components/TextArea/TextArea.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { TextAreaProps } from './TextArea';\n\nimport { TextArea } from './TextArea';\n\nconst codeString = `\n <TextArea label={label} maxCharacters={maxCharacters} /> `;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/TextArea',\n component: TextArea,\n argTypes: {\n label: {\n control: 'text',\n },\n maxCharacters: {\n control: 'number',\n },\n },\n parameters: {\n inspectComponent: TextArea,\n codeString: codeString,\n },\n} as Meta<TextAreaProps>;\n\nconst Template: StoryFn<TextAreaProps> = (args) => <TextArea {...args} />;\n\nexport const TextAreaExample = Template.bind({});\nTextAreaExample.args = {\n label: 'Sample label',\n maxCharacters: 140,\n onChange: fn(),\n};\n"],"names":["codeString","TextArea_stories","TextArea","Template","args","jsx","TextAreaExample","fn"],"mappings":";;;AAOA,MAAMA,IAAa;AAAA,
|
|
1
|
+
{"version":3,"file":"TextArea.stories.js","sources":["../../../src/components/TextArea/TextArea.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { TextAreaProps } from './TextArea';\n\nimport { TextArea } from './TextArea';\n\nconst codeString = `\n <TextArea label={label} maxCharacters={maxCharacters} defaultValue={string}/> `;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/TextArea',\n component: TextArea,\n argTypes: {\n label: {\n control: 'text',\n },\n maxCharacters: {\n control: 'number',\n },\n },\n parameters: {\n inspectComponent: TextArea,\n codeString: codeString,\n },\n} as Meta<TextAreaProps>;\n\nconst Template: StoryFn<TextAreaProps> = (args) => <TextArea {...args} />;\n\nexport const TextAreaExample = Template.bind({});\nTextAreaExample.args = {\n label: 'Sample label',\n maxCharacters: 140,\n defaultValue: 'Sample default value',\n onChange: fn(),\n};\n"],"names":["codeString","TextArea_stories","TextArea","Template","args","jsx","TextAreaExample","fn"],"mappings":";;;AAOA,MAAMA,IAAa;AAAA,mFAIJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,IACA,eAAe;AAAA,MACb,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAmC,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAU,GAAGE,GAAM,GAE1DE,IAAkBH,EAAS,KAAK,CAAE,CAAA;AAC/CG,EAAgB,OAAO;AAAA,EACrB,OAAO;AAAA,EACP,eAAe;AAAA,EACf,cAAc;AAAA,EACd,UAAUC,EAAG;AACf;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import { c as a } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import '../../assets/ToggleSwitch.css';const l = {
|
|
4
|
-
"toggle-switch": "_toggle-
|
|
5
|
-
"toggle-switch__visible": "_toggle-
|
|
6
|
-
"toggle-switch--disabled": "_toggle-switch--
|
|
7
|
-
"toggle-switch--loading": "_toggle-switch--
|
|
8
|
-
"toggle-switch--visually-hidden": "_toggle-switch--visually-
|
|
9
|
-
"toggle-switch--disabled-label": "_toggle-switch--disabled-
|
|
10
|
-
"toggle-switch--loading-cursor": "_toggle-switch--loading-
|
|
11
|
-
"toggle-switch--extra-left-gap": "_toggle-switch--extra-left-
|
|
4
|
+
"toggle-switch": "_toggle-switch_1lmpu_1",
|
|
5
|
+
"toggle-switch__visible": "_toggle-switch__visible_1lmpu_9",
|
|
6
|
+
"toggle-switch--disabled": "_toggle-switch--disabled_1lmpu_54",
|
|
7
|
+
"toggle-switch--loading": "_toggle-switch--loading_1lmpu_64",
|
|
8
|
+
"toggle-switch--visually-hidden": "_toggle-switch--visually-hidden_1lmpu_74",
|
|
9
|
+
"toggle-switch--disabled-label": "_toggle-switch--disabled-label_1lmpu_87",
|
|
10
|
+
"toggle-switch--loading-cursor": "_toggle-switch--loading-cursor_1lmpu_91",
|
|
11
|
+
"toggle-switch--extra-left-gap": "_toggle-switch--extra-left-gap_1lmpu_95"
|
|
12
12
|
};
|
|
13
13
|
function n({
|
|
14
14
|
condition: i,
|
|
@@ -17,7 +17,7 @@ function n({
|
|
|
17
17
|
}) {
|
|
18
18
|
return i ? g(t) : t;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function p({
|
|
21
21
|
label: i,
|
|
22
22
|
labelPosition: g = "after",
|
|
23
23
|
labelVisible: t = !0,
|
|
@@ -61,6 +61,6 @@ function b({
|
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
export {
|
|
64
|
-
|
|
64
|
+
p as ToggleSwitch
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=ToggleSwitch.js.map
|
package/dist/components/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import { Label as no } from "./Label/Label.js";
|
|
|
33
33
|
import { MenuLink as co } from "./MenuLink/MenuLink.js";
|
|
34
34
|
import { MetaDataList as Bo } from "./MetaDataList/MetaDataList.js";
|
|
35
35
|
import { ModalDialog as So } from "./ModalDialog/ModalDialog.js";
|
|
36
|
-
import { M as Co } from "../TablePlugin-
|
|
36
|
+
import { M as Co } from "../TablePlugin-Bj5FObQ_.js";
|
|
37
37
|
import { MultiSelectBox as Fo } from "./MultiSelectBox/MultiSelectBox.js";
|
|
38
38
|
import { OverlayCloseButton as go } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
39
39
|
import { OverlayStepBar as Lo } from "./OverlayStepBar/OverlayStepBar.js";
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import { Label as no } from "./components/Label/Label.js";
|
|
|
33
33
|
import { MenuLink as co } from "./components/MenuLink/MenuLink.js";
|
|
34
34
|
import { MetaDataList as Bo } from "./components/MetaDataList/MetaDataList.js";
|
|
35
35
|
import { ModalDialog as So } from "./components/ModalDialog/ModalDialog.js";
|
|
36
|
-
import { M as Co } from "./TablePlugin-
|
|
36
|
+
import { M as Co } from "./TablePlugin-Bj5FObQ_.js";
|
|
37
37
|
import { MultiSelectBox as Fo } from "./components/MultiSelectBox/MultiSelectBox.js";
|
|
38
38
|
import { OverlayCloseButton as go } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
39
39
|
import { OverlayStepBar as Lo } from "./components/OverlayStepBar/OverlayStepBar.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, Fragment as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as d } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import '../../assets/Container.css';const _ = "
|
|
3
|
+
import '../../assets/Container.css';const _ = "_container_1fwsz_1", n = {
|
|
4
4
|
container: _,
|
|
5
|
-
"container--padded": "_container--
|
|
6
|
-
"container--small": "_container--
|
|
7
|
-
"container--medium": "_container--
|
|
8
|
-
"container--large": "_container--
|
|
9
|
-
"container--large-full-height": "_container--large-full-
|
|
10
|
-
"container--hidden": "_container--
|
|
11
|
-
"container--centered-content": "_container--centered-
|
|
12
|
-
},
|
|
13
|
-
children:
|
|
5
|
+
"container--padded": "_container--padded_1fwsz_8",
|
|
6
|
+
"container--small": "_container--small_1fwsz_12",
|
|
7
|
+
"container--medium": "_container--medium_1fwsz_17",
|
|
8
|
+
"container--large": "_container--large_1fwsz_22",
|
|
9
|
+
"container--large-full-height": "_container--large-full-height_1fwsz_27",
|
|
10
|
+
"container--hidden": "_container--hidden_1fwsz_31",
|
|
11
|
+
"container--centered-content": "_container--centered-content_1fwsz_35"
|
|
12
|
+
}, h = ({
|
|
13
|
+
children: a,
|
|
14
14
|
size: e = "medium",
|
|
15
|
-
centerContent:
|
|
16
|
-
visible:
|
|
17
|
-
padded:
|
|
18
|
-
}) => /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
15
|
+
centerContent: o = !1,
|
|
16
|
+
visible: i = !0,
|
|
17
|
+
padded: t = !0
|
|
18
|
+
}) => /* @__PURE__ */ c(l, { children: [
|
|
19
|
+
/* @__PURE__ */ r("label", { htmlFor: "container", children: t ? "Storybook container with 1rem padding" : "Storybook container" }),
|
|
20
|
+
/* @__PURE__ */ r(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
23
|
id: "container",
|
|
@@ -26,15 +26,15 @@ import '../../assets/Container.css';const _ = "_container_cgawq_1", n = {
|
|
|
26
26
|
[n["container--medium"]]: e === "medium",
|
|
27
27
|
[n["container--large"]]: e === "large",
|
|
28
28
|
[n["container--large-full-height"]]: e === "large-full-height",
|
|
29
|
-
[n["container--padded"]]:
|
|
30
|
-
[n["container--centered-content"]]:
|
|
31
|
-
[n["container--hidden"]]: !
|
|
29
|
+
[n["container--padded"]]: t,
|
|
30
|
+
[n["container--centered-content"]]: o,
|
|
31
|
+
[n["container--hidden"]]: !i
|
|
32
32
|
}),
|
|
33
|
-
children:
|
|
33
|
+
children: a
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
] });
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
h as Container
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=Container.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type UIButtonVariant = 'primary' | 'secondary' | 'destructive-primary' | 'destructive-secondary' | 'blank' | 'blank-subtle' | 'blank-icon';
|
|
2
2
|
export type UISelectVariant = 'small' | 'regular';
|
|
3
3
|
export type UITooltipSize = 'small' | 'medium' | 'large';
|
|
4
|
-
export type UIStatus = 'information' | 'danger' | 'warning' | 'success' | 'default';
|
|
4
|
+
export type UIStatus = 'information' | 'danger' | 'warning' | 'success' | 'default' | 'cluster' | 'information-light' | 'warning-light' | 'success-light' | 'default-light';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uva-glass/component-library",
|
|
3
3
|
"author": "Team Glass - Frontend vrienden",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.23.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@testing-library/jest-dom": "^6.6.3",
|
|
65
65
|
"@testing-library/react": "^16.3.0",
|
|
66
66
|
"@types/jest": "^29.5.14",
|
|
67
|
-
"@types/node": "^22.15.
|
|
67
|
+
"@types/node": "^22.15.21",
|
|
68
68
|
"@types/react-dom": "^19.1.5",
|
|
69
|
-
"@types/react": "^19.1.
|
|
69
|
+
"@types/react": "^19.1.5",
|
|
70
70
|
"@uva-glass/eslint-config": "^1.3.10",
|
|
71
71
|
"@uva-glass/stylelint-config": "^1.2.2",
|
|
72
72
|
"@vitejs/plugin-react": "^4.4.1",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"jest-environment-jsdom": "^29.7.0",
|
|
82
82
|
"jest-junit": "^16.0.0",
|
|
83
83
|
"jsdom": "^26.1.0",
|
|
84
|
-
"npm-run-all2": "^8.0.
|
|
84
|
+
"npm-run-all2": "^8.0.3",
|
|
85
85
|
"react": "^19.1.0",
|
|
86
86
|
"react-dom": "^19.1.0",
|
|
87
87
|
"react-router": "^7.6.0",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './assets/Button.css';const t = "_button_ged5k_1", n = {
|
|
2
|
-
button: t,
|
|
3
|
-
"button--blank": "_button--blank_ged5k_35",
|
|
4
|
-
"button--blank-subtle": "_button--blank-subtle_ged5k_36",
|
|
5
|
-
"button--blank-icon": "_button--blank-icon_ged5k_37",
|
|
6
|
-
"button--primary": "_button--primary_ged5k_82",
|
|
7
|
-
"button--secondary": "_button--secondary_ged5k_98",
|
|
8
|
-
"button--destructive-primary": "_button--destructive-primary_ged5k_114",
|
|
9
|
-
"button--destructive-secondary": "_button--destructive-secondary_ged5k_132",
|
|
10
|
-
"button--wide-column": "_button--wide-column_ged5k_150"
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
n as s
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=Button.module-BVsTgdTe.js.map
|