@uva-glass/component-library 3.43.0 → 3.44.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/RteEditor.module-CovRFt0S.js +34 -0
- package/dist/RteEditor.module-CovRFt0S.js.map +1 -0
- package/dist/SelectListbox.module-CAKDuwcy.js +28 -0
- package/dist/SelectListbox.module-CAKDuwcy.js.map +1 -0
- package/dist/{TablePlugin-CAoOq8iA.js → TablePlugin-DaKDRL4G.js} +2 -2
- package/dist/{TablePlugin-CAoOq8iA.js.map → TablePlugin-DaKDRL4G.js.map} +1 -1
- package/dist/assets/CheckboxButtonBar.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.d.ts +4 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +95 -64
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.d.ts +4 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +61 -26
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.d.ts +1 -1
- package/dist/components/ControlsButton/ControlsButton.js +27 -27
- package/dist/components/ControlsButton/ControlsButton.js.map +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.d.ts +1 -0
- package/dist/components/ControlsButton/ControlsButton.stories.js +70 -25
- package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
- 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 +2 -2
- package/dist/components/RteEditor/RteEditor.stories.js +64 -25
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.d.ts +2 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +4 -2
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +6 -6
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectListbox.d.ts +1 -1
- package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectButton.d.ts +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js.map +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.stories.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-BVrrnUn0.js → index-BfMTX2kB.js} +6 -3
- package/dist/index-BfMTX2kB.js.map +1 -0
- package/dist/{index-BamlKH-k.js → index-DvUwfXNb.js} +3 -2
- package/dist/{index-BamlKH-k.js.map → index-DvUwfXNb.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/storybook__react.d.js +3 -3
- package/package.json +14 -14
- package/dist/RteEditor.module-dE9wQTC9.js +0 -42
- package/dist/RteEditor.module-dE9wQTC9.js.map +0 -1
- package/dist/SelectListbox.module-yzXaWwsm.js +0 -26
- package/dist/SelectListbox.module-yzXaWwsm.js.map +0 -1
- package/dist/index-BVrrnUn0.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { l as d } from "../../index-
|
|
2
|
+
import { l as d } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-DaKDRL4G.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
const C = `
|
|
7
7
|
// MultiSelectHeader can be added optionally
|
|
@@ -16,7 +16,7 @@ import "../../IconButton/IconButton.js";
|
|
|
16
16
|
import "../../Input/Input.js";
|
|
17
17
|
import "../../InputField/InputField.js";
|
|
18
18
|
import "react-router";
|
|
19
|
-
import { a as A } from "../../../TablePlugin-
|
|
19
|
+
import { a as A } from "../../../TablePlugin-DaKDRL4G.js";
|
|
20
20
|
import "../../RteEditor/Providers/LanguageProvider.js";
|
|
21
21
|
import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
22
22
|
import "../../RteEditor/hooks/components/Flyout.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { l as n } from "../../index-
|
|
2
|
+
import { l as n } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { MultiSelectBox as e } from "./MultiSelectBox.js";
|
|
4
4
|
const c = "<MultiSelectBox selectData={[{label, value}]} onChange={fn} labelSuffix={string} />", f = {
|
|
5
5
|
title: "Organisms/MultiSelectBox",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { l as a } from "../../index-
|
|
2
|
+
import { l as a } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { Notification as t } from "./Notification.js";
|
|
4
4
|
const l = `<Notification title={title} subtitle={subtitle} action={action}
|
|
5
5
|
level={level} variant={variant} onClose={() => {}} />`, m = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { l as t } from "../../index-
|
|
2
|
+
import { l as t } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { OverlayCloseButton as o } from "./OverlayCloseButton.js";
|
|
4
4
|
import { Container as a } from "../../storyComponents/Container/Container.js";
|
|
5
5
|
const r = "<OverlayCloseButton aria-label={aria-label} onClick={onClickFunction} />", c = {
|
|
@@ -18,7 +18,7 @@ import "../Input/Input.js";
|
|
|
18
18
|
import "../InputField/InputField.js";
|
|
19
19
|
import { Label as I } from "../Label/Label.js";
|
|
20
20
|
import "react-router";
|
|
21
|
-
import "../../TablePlugin-
|
|
21
|
+
import "../../TablePlugin-DaKDRL4G.js";
|
|
22
22
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
23
23
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
24
24
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { l as t } from "../../index-
|
|
2
|
+
import { l as t } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { PeriodSelector as e } from "./PeriodSelector.js";
|
|
4
4
|
const i = "<PeriodSelector maxPeriods={} defaultValues={} label={} labelPosition={} required={} onChange={} />", m = {
|
|
5
5
|
title: "Organisms/PeriodSelector",
|
|
@@ -18,7 +18,7 @@ import "../GridRow/GridRow.js";
|
|
|
18
18
|
import "../IconButton/IconButton.js";
|
|
19
19
|
import "../Input/Input.js";
|
|
20
20
|
import "../InputField/InputField.js";
|
|
21
|
-
import "../../TablePlugin-
|
|
21
|
+
import "../../TablePlugin-DaKDRL4G.js";
|
|
22
22
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
23
23
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
24
24
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -18,7 +18,7 @@ import "../IconButton/IconButton.js";
|
|
|
18
18
|
import "../Input/Input.js";
|
|
19
19
|
import "../InputField/InputField.js";
|
|
20
20
|
import "react-router";
|
|
21
|
-
import "../../TablePlugin-
|
|
21
|
+
import "../../TablePlugin-DaKDRL4G.js";
|
|
22
22
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
23
23
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
24
24
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { l as t } from "../../index-
|
|
2
|
+
import { l as t } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { RadioTabSelector as e } from "./RadioTabSelector.js";
|
|
4
4
|
const i = "<RadioTabSelector radioButtons={} defaultValue={} label={} labelPosition={} required={} notValidatedText={} onSetValue={} />", b = {
|
|
5
5
|
title: "Molecules/RadioTabSelector",
|
|
@@ -15,7 +15,7 @@ import "../../IconButton/IconButton.js";
|
|
|
15
15
|
import "../../Input/Input.js";
|
|
16
16
|
import "../../InputField/InputField.js";
|
|
17
17
|
import "react-router";
|
|
18
|
-
import "../../../TablePlugin-
|
|
18
|
+
import "../../../TablePlugin-DaKDRL4G.js";
|
|
19
19
|
import "../Providers/LanguageProvider.js";
|
|
20
20
|
import "../Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "../hooks/components/Flyout.js";
|
|
@@ -4,7 +4,7 @@ import { c as f } from "../../../../clsx-OuTLNxxd.js";
|
|
|
4
4
|
import { w as _, a as p, U as h } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
5
5
|
import { useState as l, useEffect as k } from "react";
|
|
6
6
|
import { Icon as I } from "../../../Icon/Icon.js";
|
|
7
|
-
import { s as a } from "../../../../RteEditor.module-
|
|
7
|
+
import { s as a } from "../../../../RteEditor.module-CovRFt0S.js";
|
|
8
8
|
import { useTranslation as B } from "../../hooks/useTranslation.js";
|
|
9
9
|
const C = {
|
|
10
10
|
bold: "Bold",
|
|
@@ -18,8 +18,8 @@ import "../../../IconButton/IconButton.js";
|
|
|
18
18
|
import "../../../Input/Input.js";
|
|
19
19
|
import "../../../InputField/InputField.js";
|
|
20
20
|
import "react-router";
|
|
21
|
-
import "../../../../TablePlugin-
|
|
22
|
-
import { s as r } from "../../../../RteEditor.module-
|
|
21
|
+
import "../../../../TablePlugin-DaKDRL4G.js";
|
|
22
|
+
import { s as r } from "../../../../RteEditor.module-CovRFt0S.js";
|
|
23
23
|
import { useTranslation as x } from "../../hooks/useTranslation.js";
|
|
24
24
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
25
25
|
import "../../hooks/components/Flyout.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { A as G } from "../../../../../TablePlugin-
|
|
3
|
+
import { A as G } from "../../../../../TablePlugin-DaKDRL4G.js";
|
|
4
4
|
import "../../../../../helpers-mE437H2Y.js";
|
|
5
5
|
import "../../../../Accordion/Accordion.js";
|
|
6
6
|
import "../../../../Icon/Icon.js";
|
|
@@ -4,7 +4,7 @@ import { c as Y } from "../../../../clsx-OuTLNxxd.js";
|
|
|
4
4
|
import { p as O, k as q, v as G } from "../../../../LexicalLink.prod-Brzpgs_K.js";
|
|
5
5
|
import { useRef as a, useState as J, useEffect as m } from "react";
|
|
6
6
|
import { a2 as X, w as p, u as Z, as as $, a as w, I as tt, k as et, Q as ot } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
7
|
-
import { A as rt } from "../../../../TablePlugin-
|
|
7
|
+
import { A as rt } from "../../../../TablePlugin-DaKDRL4G.js";
|
|
8
8
|
import { e as nt } from "../../../../helpers-mE437H2Y.js";
|
|
9
9
|
import { LinkContextMenu as it } from "./LinkContextMenu/LinkContextMenu.js";
|
|
10
10
|
import { useFlyout as st } from "../../hooks/useFlyout.js";
|
|
@@ -24,7 +24,7 @@ import "../../../Input/Input.js";
|
|
|
24
24
|
import "../../../InputField/InputField.js";
|
|
25
25
|
import "react-router";
|
|
26
26
|
import { setScrollableContainers as K, removeScrollableContainers as lt } from "../../helpers.js";
|
|
27
|
-
import { s as h } from "../../../../RteEditor.module-
|
|
27
|
+
import { s as h } from "../../../../RteEditor.module-CovRFt0S.js";
|
|
28
28
|
import { useTranslation as at } from "../../hooks/useTranslation.js";
|
|
29
29
|
import "react-dom";
|
|
30
30
|
import "../../../../index-yEhaxKq-.js";
|
|
@@ -6,7 +6,7 @@ import { useState as p, useEffect as K } from "react";
|
|
|
6
6
|
import { c as x } from "../../../../clsx-OuTLNxxd.js";
|
|
7
7
|
import { as as O, I as U, a0 as B, w as b, a as h, K as E, F } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
8
8
|
import { Icon as T } from "../../../Icon/Icon.js";
|
|
9
|
-
import { s as l } from "../../../../RteEditor.module-
|
|
9
|
+
import { s as l } from "../../../../RteEditor.module-CovRFt0S.js";
|
|
10
10
|
import { useTranslation as $ } from "../../hooks/useTranslation.js";
|
|
11
11
|
const j = {
|
|
12
12
|
bullet: "BulletList",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as D } from "../../../../TablePlugin-
|
|
3
|
+
import { b as D } from "../../../../TablePlugin-DaKDRL4G.js";
|
|
4
4
|
import "../../../Accordion/Accordion.js";
|
|
5
5
|
import "../../../Buttons/Button.js";
|
|
6
6
|
import "../../../Buttons/LinkButton.js";
|
|
@@ -5,7 +5,7 @@ import "../../../../LexicalTable.prod-DJktN6jF.js";
|
|
|
5
5
|
import "../../../../Lexical.prod-nXWuyOKD.js";
|
|
6
6
|
import "../../../../LexicalUtils.prod-Ckfw0Hjt.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import { T as J } from "../../../../TablePlugin-
|
|
8
|
+
import { T as J } from "../../../../TablePlugin-DaKDRL4G.js";
|
|
9
9
|
import "./helpers.js";
|
|
10
10
|
import "../../nodes/TableWrapperNode/TableWrapperNode.js";
|
|
11
11
|
import "../../hooks/useFlyout.js";
|
|
@@ -24,7 +24,7 @@ import "../../../IconButton/IconButton.js";
|
|
|
24
24
|
import "../../../Input/Input.js";
|
|
25
25
|
import "../../../InputField/InputField.js";
|
|
26
26
|
import "react-router";
|
|
27
|
-
import "../../../../RteEditor.module-
|
|
27
|
+
import "../../../../RteEditor.module-CovRFt0S.js";
|
|
28
28
|
import "../../hooks/useTranslation.js";
|
|
29
29
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
30
30
|
import "react-dom";
|
|
@@ -7,11 +7,11 @@ import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.j
|
|
|
7
7
|
import { ListPlugin as N } 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-DaKDRL4G.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
import "../../../../index-yEhaxKq-.js";
|
|
14
|
-
import { s as A } from "../../../../RteEditor.module-
|
|
14
|
+
import { s as A } from "../../../../RteEditor.module-CovRFt0S.js";
|
|
15
15
|
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
16
16
|
const V = ({ editorScrollPosition: m }) => {
|
|
17
17
|
const [t] = y(), [r, i] = L(null), d = E(null), u = k(() => {
|
|
@@ -3,7 +3,7 @@ import { BlockFormatPlugin as t } from "./BlockFormatPlugin/BlockFormatPlugin.js
|
|
|
3
3
|
import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
|
|
4
4
|
import { LinkPlugin as g, getLinkNodeTag as m } from "./LinkPlugin/LinkPlugin.js";
|
|
5
5
|
import { HistoryPlugin as f } from "./HistoryPlugin/HistoryPlugin.js";
|
|
6
|
-
import { T as u } from "../../../TablePlugin-
|
|
6
|
+
import { T as u } from "../../../TablePlugin-DaKDRL4G.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
import { T as b } from "../../../TableCellResizerPlugin-DFzNK-ve.js";
|
|
9
9
|
import { PasteHandlerPlugin as C } from "./PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
@@ -14,10 +14,10 @@ import { s as er, d as tr, b as He, e as rr, w as nr, S as or, y as Je, O as ar
|
|
|
14
14
|
import { a as sr, w as ir, M as lr } from "../../helpers-mE437H2Y.js";
|
|
15
15
|
import { c as ur } from "../../clsx-OuTLNxxd.js";
|
|
16
16
|
import { exportMap as cr, isStartingWithHtmlTag as dr, mergeBoldStrongTags as fr, cleanUpTable as mr } from "./helpers.js";
|
|
17
|
-
import { s as R } from "../../RteEditor.module-
|
|
17
|
+
import { s as R } from "../../RteEditor.module-CovRFt0S.js";
|
|
18
18
|
import { ToolBarPlugin as pr } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
|
|
19
19
|
import { useTranslation as gr } from "./hooks/useTranslation.js";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-DaKDRL4G.js";
|
|
21
21
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
22
22
|
import "./hooks/components/Flyout.js";
|
|
23
23
|
import "../Accordion/Accordion.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { RteEditor as
|
|
4
|
-
import { MOCK_RTE_CONTENT as
|
|
1
|
+
import { jsxs as n, Fragment as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s } from "react";
|
|
3
|
+
import { RteEditor as i } from "./RteEditor.js";
|
|
4
|
+
import { MOCK_RTE_CONTENT as p } from "./mockRteContent.js";
|
|
5
5
|
import { Container as u } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
const g = `<RteEditor
|
|
7
7
|
initialValue=""
|
|
@@ -13,15 +13,15 @@ const g = `<RteEditor
|
|
|
13
13
|
onChange={handleChange}
|
|
14
14
|
/>`, v = {
|
|
15
15
|
title: "Organisms/RteEditor",
|
|
16
|
-
component:
|
|
16
|
+
component: i,
|
|
17
17
|
parameters: {
|
|
18
|
-
inspectComponent:
|
|
18
|
+
inspectComponent: i,
|
|
19
19
|
codeString: g
|
|
20
20
|
}
|
|
21
|
-
},
|
|
22
|
-
const [
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */ e(u, { size: "large-full-height", children: /* @__PURE__ */ e(
|
|
21
|
+
}, m = (l) => {
|
|
22
|
+
const [r, t] = s(l.initialValue || "");
|
|
23
|
+
return /* @__PURE__ */ n(a, { children: [
|
|
24
|
+
/* @__PURE__ */ e(u, { size: "large-full-height", children: /* @__PURE__ */ e(i, { ...l, onChange: (d) => t(d) }) }),
|
|
25
25
|
/* @__PURE__ */ e("br", {}),
|
|
26
26
|
/* @__PURE__ */ e("br", {}),
|
|
27
27
|
/* @__PURE__ */ e("p", { style: { margin: "0", marginTop: "2rem" }, children: "HTML Output:" }),
|
|
@@ -35,11 +35,11 @@ const g = `<RteEditor
|
|
|
35
35
|
borderRadius: "0.25rem",
|
|
36
36
|
color: "#666"
|
|
37
37
|
},
|
|
38
|
-
children:
|
|
38
|
+
children: r
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] });
|
|
42
|
-
}, c =
|
|
42
|
+
}, c = m.bind({});
|
|
43
43
|
c.args = {
|
|
44
44
|
placeholder: "Voeg hier tekst in...",
|
|
45
45
|
currentLanguage: "NL",
|
|
@@ -47,11 +47,50 @@ c.args = {
|
|
|
47
47
|
info: "Studiemateriaal is essentieel voor succesvol leren. Het omvat boeken, artikelen, video's en oefeningen die studenten helpen hun kennis te vergroten, vaardigheden te ontwikkelen en hun studieprestaties te verbeteren.",
|
|
48
48
|
required: !0,
|
|
49
49
|
maxWords: 100,
|
|
50
|
-
initialValue:
|
|
50
|
+
initialValue: p
|
|
51
51
|
};
|
|
52
52
|
const C = () => {
|
|
53
|
-
const [
|
|
54
|
-
|
|
53
|
+
const [l, r] = s(
|
|
54
|
+
"Editor 1 <ul><li>aap</li><li>noot</li><li>mies</li></ul><ol><li>een</li><li>twee</li><li>drie</li></ol><p></p><ul><li>nesting</li><li><ul><li>nested 1</li><li>nested 2</li><li><ul><li>deep nested 1</li><li>deep nested 2</li><li><ul><li>deeper nested 1</li><li>deeper nested 2</li><li><ul><li>deepest nested 1</li><li>deepest nested 2</li></ul></li></ul></li></ul></li></ul></li><li>nesting end</li></ul><p></p><ol><li>nesting</li><li><ol><li>nested 1</li><li>nested 2</li><li><ol><li>deep nested 1</li><li>deep nested 2</li><li><ol><li>deeper nested 1</li><li>deeper nested 2</li><li><ol><li>deepest nested 1</li><li>deepest nested 2</li></ol></li></ol></li></ol></li></ol></li><li>nesting end</li></ol>"
|
|
55
|
+
), [t, d] = s(
|
|
56
|
+
`<p>Editor 2</p>
|
|
57
|
+
<ul>
|
|
58
|
+
<li>nesting</li>
|
|
59
|
+
<li>
|
|
60
|
+
<ol>
|
|
61
|
+
<li>nested 1</li>
|
|
62
|
+
<li>nested 2</li>
|
|
63
|
+
</ol>
|
|
64
|
+
</li>
|
|
65
|
+
<li>nesting 2</li>
|
|
66
|
+
<li>
|
|
67
|
+
<ul>
|
|
68
|
+
<li>deep nested 1</li>
|
|
69
|
+
<li>deep nested 2</li>
|
|
70
|
+
<li>
|
|
71
|
+
<ol>
|
|
72
|
+
<li>deeper nested 1</li>
|
|
73
|
+
<li>
|
|
74
|
+
<ul>
|
|
75
|
+
<li>deepest nested 1</li>
|
|
76
|
+
<li>deepest nested 2</li>
|
|
77
|
+
</ul>
|
|
78
|
+
</li>
|
|
79
|
+
<li>deeper nested 2</li>
|
|
80
|
+
<li>
|
|
81
|
+
<ol>
|
|
82
|
+
<li>deepest nested 1</li>
|
|
83
|
+
<li>deepest nested 2</li>
|
|
84
|
+
</ol>
|
|
85
|
+
</li>
|
|
86
|
+
</ol>
|
|
87
|
+
</li>
|
|
88
|
+
</ul>
|
|
89
|
+
</li>
|
|
90
|
+
<li>nesting end</li>
|
|
91
|
+
</ul>`
|
|
92
|
+
);
|
|
93
|
+
return /* @__PURE__ */ n(
|
|
55
94
|
"div",
|
|
56
95
|
{
|
|
57
96
|
style: {
|
|
@@ -63,16 +102,16 @@ const C = () => {
|
|
|
63
102
|
backgroundColor: "#FFF"
|
|
64
103
|
},
|
|
65
104
|
children: [
|
|
66
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ n("div", { style: { flex: "1" }, children: [
|
|
67
106
|
/* @__PURE__ */ e(
|
|
68
|
-
|
|
107
|
+
i,
|
|
69
108
|
{
|
|
70
|
-
initialValue:
|
|
109
|
+
initialValue: l,
|
|
71
110
|
label: "Editor 1",
|
|
72
111
|
info: "Uitleg over editor 1",
|
|
73
112
|
placeholder: "Voeg hier tekst in...",
|
|
74
113
|
notValidatedText: "",
|
|
75
|
-
onChange: (
|
|
114
|
+
onChange: (o) => r(o)
|
|
76
115
|
}
|
|
77
116
|
),
|
|
78
117
|
/* @__PURE__ */ e("br", {}),
|
|
@@ -87,20 +126,20 @@ const C = () => {
|
|
|
87
126
|
borderRadius: "0.25rem",
|
|
88
127
|
color: "#666"
|
|
89
128
|
},
|
|
90
|
-
children:
|
|
129
|
+
children: l
|
|
91
130
|
}
|
|
92
131
|
)
|
|
93
132
|
] }),
|
|
94
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ n("div", { style: { flex: "1" }, children: [
|
|
95
134
|
/* @__PURE__ */ e(
|
|
96
|
-
|
|
135
|
+
i,
|
|
97
136
|
{
|
|
98
|
-
initialValue:
|
|
137
|
+
initialValue: t,
|
|
99
138
|
label: "Editor 2",
|
|
100
139
|
info: "Uitleg over editor 2 wat langer om te kijken of dat ook goed gaat, want je weet maar nooit.",
|
|
101
140
|
placeholder: "Voeg hier tekst in...",
|
|
102
141
|
notValidatedText: "",
|
|
103
|
-
onChange: (
|
|
142
|
+
onChange: (o) => d(o)
|
|
104
143
|
}
|
|
105
144
|
),
|
|
106
145
|
/* @__PURE__ */ e("br", {}),
|
|
@@ -115,7 +154,7 @@ const C = () => {
|
|
|
115
154
|
borderRadius: "0.25rem",
|
|
116
155
|
color: "#666"
|
|
117
156
|
},
|
|
118
|
-
children:
|
|
157
|
+
children: t
|
|
119
158
|
}
|
|
120
159
|
)
|
|
121
160
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RteEditor.stories.js","sources":["../../../src/components/RteEditor/RteEditor.stories.tsx"],"sourcesContent":["import { useState, type PropsWithChildren } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { RteEditorProps } from './RteEditor';\n\nimport { RteEditor } from './RteEditor';\nimport { MOCK_RTE_CONTENT } from './mockRteContent';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = `<RteEditor\n initialValue=\"\"\n currentLanguage=\"NL\"\n label=\"\"\n info=\"\"\n placeholder=\"\"\n notValidatedText=\"\"\n onChange={handleChange}\n />`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/RteEditor',\n component: RteEditor,\n parameters: {\n inspectComponent: RteEditor,\n codeString: codeString,\n },\n} as Meta<PropsWithChildren<RteEditorProps>>;\n\nconst Template: StoryFn<PropsWithChildren<RteEditorProps>> = (args) => {\n const [result, setResult] = useState<string>(args.initialValue || '');\n\n return (\n <>\n <Container size=\"large-full-height\">\n <RteEditor {...args} onChange={(evt) => setResult(evt)} />\n </Container>\n <br />\n <br />\n\n <p style={{ margin: '0', marginTop: '2rem' }}>HTML Output:</p>\n <div\n style={{\n marginTop: '0rem',\n padding: '1rem',\n backgroundColor: '#F9F9F9',\n borderRadius: '0.25rem',\n color: '#666',\n }}\n >\n {result}\n </div>\n </>\n );\n};\n\nexport const RteEditorExample = Template.bind({});\n\nRteEditorExample.args = {\n placeholder: 'Voeg hier tekst in...',\n currentLanguage: 'NL',\n label: 'Studiemateriaal',\n info: \"Studiemateriaal is essentieel voor succesvol leren. Het omvat boeken, artikelen, video's en oefeningen die studenten helpen hun kennis te vergroten, vaardigheden te ontwikkelen en hun studieprestaties te verbeteren.\",\n required: true,\n maxWords: 100,\n initialValue: MOCK_RTE_CONTENT,\n};\n\nexport const MultipleRteEditors = () => {\n const [result01, setResult01] = useState<string>('Editor 1 <ul><li>aap</li>
|
|
1
|
+
{"version":3,"file":"RteEditor.stories.js","sources":["../../../src/components/RteEditor/RteEditor.stories.tsx"],"sourcesContent":["import { useState, type PropsWithChildren } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { RteEditorProps } from './RteEditor';\n\nimport { RteEditor } from './RteEditor';\nimport { MOCK_RTE_CONTENT } from './mockRteContent';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = `<RteEditor\n initialValue=\"\"\n currentLanguage=\"NL\"\n label=\"\"\n info=\"\"\n placeholder=\"\"\n notValidatedText=\"\"\n onChange={handleChange}\n />`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/RteEditor',\n component: RteEditor,\n parameters: {\n inspectComponent: RteEditor,\n codeString: codeString,\n },\n} as Meta<PropsWithChildren<RteEditorProps>>;\n\nconst Template: StoryFn<PropsWithChildren<RteEditorProps>> = (args) => {\n const [result, setResult] = useState<string>(args.initialValue || '');\n\n return (\n <>\n <Container size=\"large-full-height\">\n <RteEditor {...args} onChange={(evt) => setResult(evt)} />\n </Container>\n <br />\n <br />\n\n <p style={{ margin: '0', marginTop: '2rem' }}>HTML Output:</p>\n <div\n style={{\n marginTop: '0rem',\n padding: '1rem',\n backgroundColor: '#F9F9F9',\n borderRadius: '0.25rem',\n color: '#666',\n }}\n >\n {result}\n </div>\n </>\n );\n};\n\nexport const RteEditorExample = Template.bind({});\n\nRteEditorExample.args = {\n placeholder: 'Voeg hier tekst in...',\n currentLanguage: 'NL',\n label: 'Studiemateriaal',\n info: \"Studiemateriaal is essentieel voor succesvol leren. Het omvat boeken, artikelen, video's en oefeningen die studenten helpen hun kennis te vergroten, vaardigheden te ontwikkelen en hun studieprestaties te verbeteren.\",\n required: true,\n maxWords: 100,\n initialValue: MOCK_RTE_CONTENT,\n};\n\nexport const MultipleRteEditors = () => {\n const [result01, setResult01] = useState<string>(\n 'Editor 1 <ul><li>aap</li><li>noot</li><li>mies</li></ul><ol><li>een</li><li>twee</li><li>drie</li></ol><p></p><ul><li>nesting</li><li><ul><li>nested 1</li><li>nested 2</li><li><ul><li>deep nested 1</li><li>deep nested 2</li><li><ul><li>deeper nested 1</li><li>deeper nested 2</li><li><ul><li>deepest nested 1</li><li>deepest nested 2</li></ul></li></ul></li></ul></li></ul></li><li>nesting end</li></ul><p></p><ol><li>nesting</li><li><ol><li>nested 1</li><li>nested 2</li><li><ol><li>deep nested 1</li><li>deep nested 2</li><li><ol><li>deeper nested 1</li><li>deeper nested 2</li><li><ol><li>deepest nested 1</li><li>deepest nested 2</li></ol></li></ol></li></ol></li></ol></li><li>nesting end</li></ol>'\n );\n const [result02, setResult02] = useState<string>(\n `<p>Editor 2</p>\n <ul>\n <li>nesting</li>\n <li>\n <ol>\n <li>nested 1</li>\n <li>nested 2</li>\n </ol>\n </li>\n <li>nesting 2</li>\n <li>\n <ul>\n <li>deep nested 1</li>\n <li>deep nested 2</li>\n <li>\n <ol>\n <li>deeper nested 1</li>\n <li>\n <ul>\n <li>deepest nested 1</li>\n <li>deepest nested 2</li>\n </ul>\n </li>\n <li>deeper nested 2</li>\n <li>\n <ol>\n <li>deepest nested 1</li>\n <li>deepest nested 2</li>\n </ol>\n </li>\n </ol>\n </li>\n </ul>\n </li>\n <li>nesting end</li>\n </ul>`\n );\n\n return (\n <div\n style={{\n display: 'flex',\n flexDirection: 'row',\n gap: '1rem',\n width: '100%',\n padding: '1rem',\n backgroundColor: '#FFF',\n }}\n >\n <div style={{ flex: '1' }}>\n <RteEditor\n initialValue={result01}\n label=\"Editor 1\"\n info=\"Uitleg over editor 1\"\n placeholder=\"Voeg hier tekst in...\"\n notValidatedText=\"\"\n onChange={(evt) => setResult01(evt)}\n />\n <br />\n <p style={{ margin: '0', marginTop: '2rem' }}>HTML Output:</p>\n <div\n style={{\n marginTop: '0rem',\n padding: '1rem',\n backgroundColor: '#F9F9F9',\n borderRadius: '0.25rem',\n color: '#666',\n }}\n >\n {result01}\n </div>\n </div>\n <div style={{ flex: '1' }}>\n <RteEditor\n initialValue={result02}\n label=\"Editor 2\"\n info=\"Uitleg over editor 2 wat langer om te kijken of dat ook goed gaat, want je weet maar nooit.\"\n placeholder=\"Voeg hier tekst in...\"\n notValidatedText=\"\"\n onChange={(evt) => setResult02(evt)}\n />\n <br />\n <p style={{ margin: '0', marginTop: '2rem' }}>HTML Output:</p>\n <div\n style={{\n marginTop: '0rem',\n padding: '1rem',\n backgroundColor: '#F9F9F9',\n borderRadius: '0.25rem',\n color: '#666',\n }}\n >\n {result02}\n </div>\n </div>\n </div>\n );\n};\n"],"names":["codeString","RteEditor_stories","RteEditor","Template","args","result","setResult","useState","jsxs","Fragment","jsx","Container","evt","RteEditorExample","MOCK_RTE_CONTENT","MultipleRteEditors","result01","setResult01","result02","setResult02"],"mappings":"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"}
|
|
@@ -9,11 +9,13 @@ export declare const UvaTheme: {
|
|
|
9
9
|
list: {
|
|
10
10
|
listitem: string;
|
|
11
11
|
nested: {
|
|
12
|
+
list: string;
|
|
12
13
|
listitem: string;
|
|
13
14
|
};
|
|
14
15
|
olDepth: string[];
|
|
15
16
|
ulDepth: string[];
|
|
16
17
|
ul: string;
|
|
18
|
+
ulDepthNested: string[];
|
|
17
19
|
};
|
|
18
20
|
link: string;
|
|
19
21
|
tableWrapper: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as t } from "../../../RteEditor.module-
|
|
1
|
+
import { s as t } from "../../../RteEditor.module-CovRFt0S.js";
|
|
2
2
|
const i = {
|
|
3
3
|
ltr: t["guide-text-ltr"],
|
|
4
4
|
rtl: t["guide-text-rtl"],
|
|
@@ -10,6 +10,7 @@ const i = {
|
|
|
10
10
|
list: {
|
|
11
11
|
listitem: t["guide-text__list--listitem"],
|
|
12
12
|
nested: {
|
|
13
|
+
list: t["guide-text__list--nested"],
|
|
13
14
|
listitem: t["guide-text__list--nested-listitem"]
|
|
14
15
|
},
|
|
15
16
|
olDepth: [
|
|
@@ -26,7 +27,8 @@ const i = {
|
|
|
26
27
|
t["guide-text__list--ul4"],
|
|
27
28
|
t["guide-text__list--ul5"]
|
|
28
29
|
],
|
|
29
|
-
ul: t["guide-text__list--ul"]
|
|
30
|
+
ul: t["guide-text__list--ul"],
|
|
31
|
+
ulDepthNested: [t["guide-text__list--ol"]]
|
|
30
32
|
},
|
|
31
33
|
link: t["guide-text__link"],
|
|
32
34
|
tableWrapper: t["guide-text__table-wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UvaTheme.js","sources":["../../../../src/components/RteEditor/UvaTheme/UvaTheme.tsx"],"sourcesContent":["import styles from 'components/RteEditor/RteEditor.module.css';\n\nexport const UvaTheme = {\n ltr: styles['guide-text-ltr'],\n rtl: styles['guide-text-rtl'],\n paragraph: styles['guide-text-paragraph'],\n text: {\n bold: styles['guide-text__text--bold'],\n italic: styles['guide-text__text--italic'],\n },\n list: {\n listitem: styles['guide-text__list--listitem'],\n nested: {\n listitem: styles['guide-text__list--nested-listitem'],\n },\n olDepth: [\n styles['guide-text__list--ol'],\n styles['guide-text__list--ol2'],\n styles['guide-text__list--ol3'],\n styles['guide-text__list--ol4'],\n styles['guide-text__list--ol5'],\n ],\n ulDepth: [\n styles['guide-text__list--ul'],\n styles['guide-text__list--ul2'],\n styles['guide-text__list--ul3'],\n styles['guide-text__list--ul4'],\n styles['guide-text__list--ul5'],\n ],\n ul: styles['guide-text__list--ul'],\n },\n link: styles['guide-text__link'],\n tableWrapper: styles['guide-text__table-wrapper'],\n table: styles['guide-text__table'],\n};\n"],"names":["UvaTheme","styles"],"mappings":";AAEO,MAAMA,IAAW;AAAA,EACtB,KAAKC,EAAO,gBAAgB;AAAA,EAC5B,KAAKA,EAAO,gBAAgB;AAAA,EAC5B,WAAWA,EAAO,sBAAsB;AAAA,EACxC,MAAM;AAAA,IACJ,MAAMA,EAAO,wBAAwB;AAAA,IACrC,QAAQA,EAAO,0BAA0B;AAAA,EAAA;AAAA,EAE3C,MAAM;AAAA,IACJ,UAAUA,EAAO,4BAA4B;AAAA,IAC7C,QAAQ;AAAA,MACN,UAAUA,EAAO,mCAAmC;AAAA,IAAA;AAAA,IAEtD,SAAS;AAAA,MACPA,EAAO,sBAAsB;AAAA,MAC7BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,IAAA;AAAA,IAEhC,SAAS;AAAA,MACPA,EAAO,sBAAsB;AAAA,MAC7BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,IAAA;AAAA,IAEhC,IAAIA,EAAO,sBAAsB;AAAA,EAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"UvaTheme.js","sources":["../../../../src/components/RteEditor/UvaTheme/UvaTheme.tsx"],"sourcesContent":["import styles from 'components/RteEditor/RteEditor.module.css';\n\nexport const UvaTheme = {\n ltr: styles['guide-text-ltr'],\n rtl: styles['guide-text-rtl'],\n paragraph: styles['guide-text-paragraph'],\n text: {\n bold: styles['guide-text__text--bold'],\n italic: styles['guide-text__text--italic'],\n },\n list: {\n listitem: styles['guide-text__list--listitem'],\n nested: {\n list: styles['guide-text__list--nested'],\n listitem: styles['guide-text__list--nested-listitem'],\n },\n olDepth: [\n styles['guide-text__list--ol'],\n styles['guide-text__list--ol2'],\n styles['guide-text__list--ol3'],\n styles['guide-text__list--ol4'],\n styles['guide-text__list--ol5'],\n ],\n ulDepth: [\n styles['guide-text__list--ul'],\n styles['guide-text__list--ul2'],\n styles['guide-text__list--ul3'],\n styles['guide-text__list--ul4'],\n styles['guide-text__list--ul5'],\n ],\n ul: styles['guide-text__list--ul'],\n ulDepthNested: [styles['guide-text__list--ol']],\n },\n link: styles['guide-text__link'],\n tableWrapper: styles['guide-text__table-wrapper'],\n table: styles['guide-text__table'],\n};\n"],"names":["UvaTheme","styles"],"mappings":";AAEO,MAAMA,IAAW;AAAA,EACtB,KAAKC,EAAO,gBAAgB;AAAA,EAC5B,KAAKA,EAAO,gBAAgB;AAAA,EAC5B,WAAWA,EAAO,sBAAsB;AAAA,EACxC,MAAM;AAAA,IACJ,MAAMA,EAAO,wBAAwB;AAAA,IACrC,QAAQA,EAAO,0BAA0B;AAAA,EAAA;AAAA,EAE3C,MAAM;AAAA,IACJ,UAAUA,EAAO,4BAA4B;AAAA,IAC7C,QAAQ;AAAA,MACN,MAAMA,EAAO,0BAA0B;AAAA,MACvC,UAAUA,EAAO,mCAAmC;AAAA,IAAA;AAAA,IAEtD,SAAS;AAAA,MACPA,EAAO,sBAAsB;AAAA,MAC7BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,IAAA;AAAA,IAEhC,SAAS;AAAA,MACPA,EAAO,sBAAsB;AAAA,MAC7BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,MAC9BA,EAAO,uBAAuB;AAAA,IAAA;AAAA,IAEhC,IAAIA,EAAO,sBAAsB;AAAA,IACjC,eAAe,CAACA,EAAO,sBAAsB,CAAC;AAAA,EAAA;AAAA,EAEhD,MAAMA,EAAO,kBAAkB;AAAA,EAC/B,cAAcA,EAAO,2BAA2B;AAAA,EAChD,OAAOA,EAAO,mBAAmB;AACnC;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as M } from "react/jsx-runtime";
|
|
2
|
-
import { l as i } from "../../index-
|
|
2
|
+
import { l as i } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { SelectListbox as r } from "./SelectListbox.js";
|
|
4
4
|
import * as e from "react";
|
|
5
5
|
const E = ({
|
|
@@ -92,7 +92,7 @@ const E = ({
|
|
|
92
92
|
default: !1
|
|
93
93
|
},
|
|
94
94
|
variant: {
|
|
95
|
-
options: ["default", "noborder", "pill", "pillLeft", "pillRight", "darkBorder"],
|
|
95
|
+
options: ["default", "noborder", "pill", "pillLeft", "pillRight", "darkBorder", "roundedLeft", "roundedRight"],
|
|
96
96
|
control: { type: "select" }
|
|
97
97
|
},
|
|
98
98
|
optionPositionRight: {
|
|
@@ -149,7 +149,7 @@ const E = ({
|
|
|
149
149
|
mobileBreakpoint: "28rem",
|
|
150
150
|
size: "default",
|
|
151
151
|
onChange: i()
|
|
152
|
-
}, L = (t) => /* @__PURE__ */ a("div", { style: { width: "30rem", margin: "0rem auto 0 auto" }, children: /* @__PURE__ */ a(r, { ...t, children: d.map(({ label: l, value: c },
|
|
152
|
+
}, L = (t) => /* @__PURE__ */ a("div", { style: { width: "30rem", margin: "0rem auto 0 auto" }, children: /* @__PURE__ */ a(r, { ...t, children: d.map(({ label: l, value: c }, n) => /* @__PURE__ */ a(r.SelectOption, { option: { label: l, value: c }, index: n, children: l }, `${c}`)) }) }), f = L.bind({});
|
|
153
153
|
f.args = {
|
|
154
154
|
...m
|
|
155
155
|
};
|
|
@@ -171,7 +171,7 @@ const S = ({ label: t, value: l }) => /* @__PURE__ */ M("div", { style: { displa
|
|
|
171
171
|
ES: /* @__PURE__ */ a(u, { style: { width: "24px", height: "24px", marginRight: "10px" } })
|
|
172
172
|
}[l],
|
|
173
173
|
t
|
|
174
|
-
] }), y = (t) => /* @__PURE__ */ a("div", { style: { width: "10rem", margin: "0rem auto 0 auto" }, children: /* @__PURE__ */ a(r, { ...t, children: t.options.map(({ label: l, value: c },
|
|
174
|
+
] }), y = (t) => /* @__PURE__ */ a("div", { style: { width: "10rem", margin: "0rem auto 0 auto" }, children: /* @__PURE__ */ a(r, { ...t, children: t.options.map(({ label: l, value: c }, n) => /* @__PURE__ */ a(r.SelectOption, { option: { label: l, value: c }, index: n, children: /* @__PURE__ */ a(S, { label: l, value: c }) }, `${c}`)) }) }), k = y.bind({});
|
|
175
175
|
k.args = {
|
|
176
176
|
...m
|
|
177
177
|
};
|
|
@@ -234,8 +234,8 @@ const B = [
|
|
|
234
234
|
size: "default",
|
|
235
235
|
onChange: i()
|
|
236
236
|
}, N = (t) => {
|
|
237
|
-
const { options: l, ...c } = t,
|
|
238
|
-
return /* @__PURE__ */ a("div", { style: { width: "
|
|
237
|
+
const { options: l, ...c } = t, h = (t.SwitchLanguage ?? "EN") === "NL" ? B : j;
|
|
238
|
+
return /* @__PURE__ */ a("div", { style: { width: "50rem", margin: "0rem auto 0 auto" }, children: /* @__PURE__ */ a(r, { ...c, options: h, children: h.map(({ label: o, value: s }, p) => /* @__PURE__ */ a(r.SelectOption, { option: { label: o, value: s }, index: p, children: o }, `${s}`)) }) });
|
|
239
239
|
}, D = N.bind({});
|
|
240
240
|
D.args = {
|
|
241
241
|
...V
|