@uva-glass/component-library 3.10.0 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Lexical.prod-CWyHQUEM.js → Lexical.prod-D8x7Ii0F.js} +469 -469
- package/dist/{Lexical.prod-CWyHQUEM.js.map → Lexical.prod-D8x7Ii0F.js.map} +1 -1
- package/dist/{LexicalClipboard.prod-DbqSWANZ.js → LexicalClipboard.prod-D5GjiArS.js} +16 -16
- package/dist/{LexicalClipboard.prod-DbqSWANZ.js.map → LexicalClipboard.prod-D5GjiArS.js.map} +1 -1
- package/dist/{LexicalLink.prod-DbxnRszt.js → LexicalLink.prod-CkldFE8u.js} +60 -60
- package/dist/{LexicalLink.prod-DbxnRszt.js.map → LexicalLink.prod-CkldFE8u.js.map} +1 -1
- package/dist/{LexicalList.prod-pZmYrwOC.js → LexicalList.prod-CsVDXdmw.js} +215 -215
- package/dist/LexicalList.prod-CsVDXdmw.js.map +1 -0
- package/dist/LexicalSelection.prod-JQDTaUpX.js +90 -0
- package/dist/{LexicalSelection.prod-DkvWlcln.js.map → LexicalSelection.prod-JQDTaUpX.js.map} +1 -1
- package/dist/{LexicalTable.prod-C6duSS2P.js → LexicalTable.prod-rZbTmo9K.js} +125 -125
- package/dist/{LexicalTable.prod-C6duSS2P.js.map → LexicalTable.prod-rZbTmo9K.js.map} +1 -1
- package/dist/{LexicalUtils.prod-Dny9Fu94.js → LexicalUtils.prod-CpMJ4I9h.js} +6 -6
- package/dist/{LexicalUtils.prod-Dny9Fu94.js.map → LexicalUtils.prod-CpMJ4I9h.js.map} +1 -1
- package/dist/{SelectListbox.module-BD2qbcmZ.js → SelectListbox.module-ignbxWNU.js} +21 -21
- package/dist/SelectListbox.module-ignbxWNU.js.map +1 -0
- package/dist/{SortableProvider-Ck_XnBVq.js → SortableProvider-DZggDO3M.js} +20 -20
- package/dist/{SortableProvider-Ck_XnBVq.js.map → SortableProvider-DZggDO3M.js.map} +1 -1
- package/dist/{TablePlugin-Ba6PaBhf.js → TablePlugin-WOgWan8s.js} +36 -36
- package/dist/{TablePlugin-Ba6PaBhf.js.map → TablePlugin-WOgWan8s.js.map} +1 -1
- package/dist/assets/MultiSelectBox.css +1 -0
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/client-EQRlhXX7.js +25200 -0
- package/dist/client-EQRlhXX7.js.map +1 -0
- package/dist/components/Accordion/Accordion.test.js +3 -3
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
- package/dist/components/ActionList/ActionList.test.js +3 -3
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
- package/dist/components/Attention/Attention.test.js +2 -2
- package/dist/components/Backdrop/Backdrop.test.js +2 -2
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -2
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -2
- package/dist/components/Buttons/MenuButton.d.ts +1 -3
- package/dist/components/Buttons/MenuButton.js.map +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -2
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +2 -2
- package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.test.js +2 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.js +3 -3
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
- package/dist/components/FormInput/FormInput.js +3 -3
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.js +17 -17
- package/dist/components/InputField/InputField.stories.js +17 -17
- package/dist/components/Label/Label.test.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 +3 -3
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.d.ts +16 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.js +191 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.d.ts +5 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +31 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.test.d.ts +0 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +26 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -0
- package/dist/components/MultiSelectBox/index.d.ts +1 -0
- package/dist/components/MultiSelectBox/index.js +5 -0
- package/dist/components/MultiSelectBox/index.js.map +1 -0
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +3 -3
- package/dist/components/PageOverlay/PageOverlay.stories.js +35 -35
- package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +3 -3
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
- package/dist/components/RadioButton/RadioButton.js +3 -3
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -3
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +14 -14
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +23 -23
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +40 -40
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/Providers/LanguageProvider.js +7 -7
- package/dist/components/RteEditor/RteEditor.js +327 -327
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +10 -10
- 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/Sortable.stories.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +15 -15
- package/dist/components/Sortable/sortableReducer.js +21 -21
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
- package/dist/components/TextArea/TextArea.js +2 -2
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +3 -3
- package/dist/components/Timeline/Timeline.test.js +5 -5
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +22 -22
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
- package/dist/components/hooks/useDebounce.js +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +53 -51
- package/dist/components/index.js.map +1 -1
- package/dist/{helpers-BUwfVZhW.js → helpers-E_SsILnP.js} +10 -10
- package/dist/{helpers-BUwfVZhW.js.map → helpers-E_SsILnP.js.map} +1 -1
- package/dist/{index-DXR-TB1d.js → index-BCvy9BiK.js} +1886 -1886
- package/dist/{index-DXR-TB1d.js.map → index-BCvy9BiK.js.map} +1 -1
- package/dist/{index-dmBn99rF.js → index-BqLi4tOb.js} +908 -908
- package/dist/{index-dmBn99rF.js.map → index-BqLi4tOb.js.map} +1 -1
- package/dist/{index-Ck15_vKo.js → index-CUap8sKR.js} +481 -481
- package/dist/{index-Ck15_vKo.js.map → index-CUap8sKR.js.map} +1 -1
- package/dist/{index-B3c5pcHk.js → index-DllfJcv4.js} +32 -32
- package/dist/{index-B3c5pcHk.js.map → index-DllfJcv4.js.map} +1 -1
- package/dist/index.js +53 -51
- package/dist/index.js.map +1 -1
- package/dist/{react-18-CcyoHPTJ.js → react-18-dpbWrd2-.js} +2 -2
- package/dist/{react-18-CcyoHPTJ.js.map → react-18-dpbWrd2-.js.map} +1 -1
- package/dist/{react.esm-CMg7bmSn.js → react.esm-CsMDid07.js} +4 -4
- package/dist/{react.esm-CMg7bmSn.js.map → react.esm-CsMDid07.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +3 -3
- package/dist/test-utils-ea_YDVtd.js +74 -0
- package/dist/test-utils-ea_YDVtd.js.map +1 -0
- package/package.json +17 -17
- package/dist/LexicalList.prod-pZmYrwOC.js.map +0 -1
- package/dist/LexicalSelection.prod-DkvWlcln.js +0 -90
- package/dist/SelectListbox.module-BD2qbcmZ.js.map +0 -1
- package/dist/client-CTOhtEms.js +0 -33
- package/dist/client-CTOhtEms.js.map +0 -1
- package/dist/test-utils-B2AIdiiO.js +0 -1148
- package/dist/test-utils-B2AIdiiO.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as n, s as a } from "../../react.esm-
|
|
4
|
-
import { u as e } from "../../index-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as n, s as a } from "../../react.esm-CsMDid07.js";
|
|
4
|
+
import { u as e } from "../../index-CUap8sKR.js";
|
|
5
5
|
import { Accordion as i } from "./Accordion.js";
|
|
6
6
|
describe("Accordion", () => {
|
|
7
7
|
it("should render", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as c, s as e, f as s, w as d } from "../../react.esm-
|
|
4
|
-
import { u as r } from "../../index-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as c, s as e, f as s, w as d } from "../../react.esm-CsMDid07.js";
|
|
4
|
+
import { u as r } from "../../index-CUap8sKR.js";
|
|
5
5
|
import { AccordionCard as a } from "./AccordionCard.js";
|
|
6
6
|
describe("AccordionCard", () => {
|
|
7
7
|
it("should render", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as n, s as t, w as a } from "../../react.esm-
|
|
4
|
-
import { u as l } from "../../index-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as n, s as t, w as a } from "../../react.esm-CsMDid07.js";
|
|
4
|
+
import { u as l } from "../../index-CUap8sKR.js";
|
|
5
5
|
import { ActionList as o } from "./ActionList.js";
|
|
6
6
|
const T = jest.fn(), c = [
|
|
7
7
|
/* @__PURE__ */ i("button", { type: "button", onClick: T, children: "Test Action 1" }, "1"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r, s as t } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r, s as t } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { AppStatusBar as s } from "./AppStatusBar.js";
|
|
5
5
|
describe("AppStatusBar", () => {
|
|
6
6
|
it("should render", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as t, s as r } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as t, s as r } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { Attention as n } from "./Attention.js";
|
|
5
5
|
describe("Attention", () => {
|
|
6
6
|
it("should render (variant primary)", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as e, s as o } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as e, s as o } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { Backdrop as t } from "./Backdrop.js";
|
|
5
5
|
describe("Backdrop", () => {
|
|
6
6
|
it("should render", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import { fn as l } from "../../index-
|
|
2
|
+
import { fn as l } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { Button as n } from "./Button.js";
|
|
4
4
|
const c = "<Button variant={variant} onClick={onClictFunction}>{children}</Button>", h = {
|
|
5
5
|
title: "Atoms/Buttons/Button",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as n, s as t, f as c } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as n, s as t, f as c } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { Button as o } from "./Button.js";
|
|
5
5
|
const s = jest.fn();
|
|
6
6
|
describe("Button", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { fn as s } from "../../index-
|
|
2
|
+
import { fn as s } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { BrowserRouter as c } from "react-router";
|
|
4
4
|
import { LinkButton as n } from "./LinkButton.js";
|
|
5
5
|
const d = `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as n, s as t, f as c } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as n, s as t, f as c } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { BrowserRouter as u, Routes as a, Route as d } from "react-router";
|
|
5
5
|
import { LinkButton as o } from "./LinkButton.js";
|
|
6
6
|
const r = ({ children: i }) => /* @__PURE__ */ s(u, { children: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AriaButtonProps } from '@react-aria/button';
|
|
2
2
|
import { IconProps } from 'components/Icon';
|
|
3
|
-
import {
|
|
3
|
+
import { RefObject } from 'react';
|
|
4
4
|
import { UIButtonVariant } from 'types/UserInterface';
|
|
5
5
|
export interface MenuButtonProps extends AriaButtonProps<'button'> {
|
|
6
6
|
buttonRef: RefObject<HTMLButtonElement>;
|
|
@@ -8,8 +8,6 @@ export interface MenuButtonProps extends AriaButtonProps<'button'> {
|
|
|
8
8
|
variant: UIButtonVariant;
|
|
9
9
|
/** The icon to show. */
|
|
10
10
|
iconName?: IconProps['name'];
|
|
11
|
-
/** The callback function that is invoked when the button is clicked. */
|
|
12
|
-
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
13
11
|
}
|
|
14
12
|
/** Represents a button that is used to open a menu. */
|
|
15
13
|
export declare function MenuButton({ buttonRef, variant, iconName, children, ...restProps }: MenuButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuButton.js","sources":["../../../src/components/Buttons/MenuButton.tsx"],"sourcesContent":["import { useButton } from '@react-aria/button';\nimport { clsx } from 'clsx';\n\nimport type { AriaButtonProps } from '@react-aria/button';\nimport type { IconProps } from 'components/Icon';\nimport type {
|
|
1
|
+
{"version":3,"file":"MenuButton.js","sources":["../../../src/components/Buttons/MenuButton.tsx"],"sourcesContent":["import { useButton } from '@react-aria/button';\nimport { clsx } from 'clsx';\n\nimport type { AriaButtonProps } from '@react-aria/button';\nimport type { IconProps } from 'components/Icon';\nimport type { RefObject } from 'react';\nimport type { UIButtonVariant } from 'types/UserInterface';\n\nimport { Icon } from 'components/Icon';\nimport styles from 'components/Buttons/Button.module.css';\n\nexport interface MenuButtonProps extends AriaButtonProps<'button'> {\n buttonRef: RefObject<HTMLButtonElement>;\n /** The variant of the button. */\n variant: UIButtonVariant;\n /** The icon to show. */\n iconName?: IconProps['name'];\n}\n\n/** Represents a button that is used to open a menu. */\nexport function MenuButton({ buttonRef, variant, iconName, children, ...restProps }: MenuButtonProps) {\n const { buttonProps } = useButton(restProps, buttonRef);\n\n return (\n <button {...buttonProps} ref={buttonRef} className={clsx(styles['button'], styles[`button--${variant}`])}>\n {children}\n {iconName && <Icon name={iconName} />}\n </button>\n );\n}\n"],"names":["MenuButton","buttonRef","variant","iconName","children","restProps","buttonProps","useButton","clsx","styles","jsx","Icon"],"mappings":";;;;;AAoBgB,SAAAA,EAAW,EAAE,WAAAC,GAAW,SAAAC,GAAS,UAAAC,GAAU,UAAAC,GAAU,GAAGC,KAA8B;AACpG,QAAM,EAAE,aAAAC,EAAgB,IAAAC,EAAUF,GAAWJ,CAAS;AAEtD,2BACG,UAAQ,EAAA,GAAGK,GAAa,KAAKL,GAAW,WAAWO,EAAKC,EAAO,QAAWA,EAAO,WAAWP,CAAO,EAAE,CAAC,GACpG,UAAA;AAAA,IAAAE;AAAA,IACAD,KAAY,gBAAAO,EAACC,GAAK,EAAA,MAAMR,EAAU,CAAA;AAAA,EAAA,GACrC;AAEJ;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as s, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { fn as c } from "../../index-
|
|
2
|
+
import { fn as c } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { MenuButton as t } from "./MenuButton.js";
|
|
4
4
|
const d = `
|
|
5
5
|
// Has all LabelHTMLAttributes props available except "className" and "style"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as u, s as e, f as c } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as u, s as e, f as c } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { createRef as s } from "react";
|
|
5
5
|
import { MenuButton as r } from "./MenuButton.js";
|
|
6
6
|
const n = jest.fn();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r, s as d } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r, s as d } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { Card as o } from "./Card.js";
|
|
5
5
|
describe("Card", () => {
|
|
6
6
|
it("should render", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as g, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { fn as e } from "../../index-
|
|
2
|
+
import { fn as e } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { Checkbox as n } from "./Checkbox.js";
|
|
4
4
|
import { FormField as t } from "../FormField/FormField.js";
|
|
5
5
|
import { Label as i } from "../Label/Label.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as o, s as t } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as o, s as t } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { Checkbox as h } from "./Checkbox.js";
|
|
5
5
|
describe("Checkbox", () => {
|
|
6
6
|
it("should render", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { fn as n } from "../../index-
|
|
2
|
+
import { fn as n } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { CheckboxButton as o } from "./CheckboxButton.js";
|
|
4
4
|
const a = "<CheckboxButton label={} value={} isChecked={} variant={} disabled={} notValid={} onSetValue={} key={} />", b = {
|
|
5
5
|
title: "Atoms/CheckboxButton",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as n, s as t } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as n, s as t } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { CheckboxButton as a } from "./CheckboxButton.js";
|
|
5
5
|
const c = jest.fn();
|
|
6
6
|
describe("CheckboxButton", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { fn as l } from "../../index-
|
|
2
|
+
import { fn as l } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { CheckboxButtonBar as e } from "./CheckboxButtonBar.js";
|
|
4
4
|
const a = "<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />", i = {
|
|
5
5
|
title: "Molecules/CheckboxButtonBar",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as c, s as e } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as c, s as e } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { CheckboxButtonBar as a } from "./CheckboxButtonBar.js";
|
|
5
5
|
const n = jest.fn(), x = [
|
|
6
6
|
{
|
|
@@ -17,15 +17,15 @@ import "../IconButton/IconButton.js";
|
|
|
17
17
|
import "../Input/Input.js";
|
|
18
18
|
import "../InputField/InputField.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-WOgWan8s.js";
|
|
21
21
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
22
22
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
23
23
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
24
|
-
import "../../index-
|
|
24
|
+
import "../../index-DllfJcv4.js";
|
|
25
25
|
import "../SelectListbox/SelectListbox.js";
|
|
26
26
|
import "../SelectListbox/SelectProvider.js";
|
|
27
27
|
import "../Sortable/components/SortableItem.js";
|
|
28
|
-
import "../../SortableProvider-
|
|
28
|
+
import "../../SortableProvider-DZggDO3M.js";
|
|
29
29
|
import { useResponsive as L } from "../hooks/useResponsive.js";
|
|
30
30
|
import '../../assets/CheckboxTree.css';const s = {
|
|
31
31
|
"checkbox-tree__header": "_checkbox-tree__header_3w3rj_1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _, jsxs as A } from "react/jsx-runtime";
|
|
2
|
-
import { fn as w } from "../../index-
|
|
2
|
+
import { fn as w } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { s as g, j as V, V as j } from "../../index-DH9Vbk37.js";
|
|
4
4
|
import { useState as D } from "react";
|
|
5
5
|
import { CheckboxTree as O } from "./CheckboxTree.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { fn as t } from "../../index-
|
|
2
|
+
import { fn as t } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { Chip as e } from "./Chip.js";
|
|
4
4
|
const s = "<Chip label={string} onDelete={onDeleteFunction(label)}/>", b = {
|
|
5
5
|
title: "Atoms/Chip",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { OverlayProvider as p } from "@react-aria/overlays";
|
|
3
|
-
import { fn as m } from "../../index-
|
|
3
|
+
import { fn as m } from "../../index-BCvy9BiK.js";
|
|
4
4
|
import { useState as c } from "react";
|
|
5
5
|
import { Drawer as r } from "./Drawer.js";
|
|
6
6
|
import { Button as o } from "../Buttons/Button.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as s, s as e, f as r } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as s, s as e, f as r } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { FeedbackBar as c } from "./FeedbackBar.js";
|
|
5
5
|
describe("FeedbackBar", () => {
|
|
6
6
|
it("should render with children text", () => {
|
|
@@ -16,15 +16,15 @@ import "../IconButton/IconButton.js";
|
|
|
16
16
|
import "../Input/Input.js";
|
|
17
17
|
import "../InputField/InputField.js";
|
|
18
18
|
import "react-router";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-WOgWan8s.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";
|
|
23
|
-
import "../../index-
|
|
23
|
+
import "../../index-DllfJcv4.js";
|
|
24
24
|
import "../SelectListbox/SelectListbox.js";
|
|
25
25
|
import "../SelectListbox/SelectProvider.js";
|
|
26
26
|
import "../Sortable/components/SortableItem.js";
|
|
27
|
-
import "../../SortableProvider-
|
|
27
|
+
import "../../SortableProvider-DZggDO3M.js";
|
|
28
28
|
import '../../assets/FormInput.css';const o = {
|
|
29
29
|
"form-input__container": "_form-input__container_g2j8x_1",
|
|
30
30
|
"form-input__container--label-left": "_form-input__container--label-left_g2j8x_7",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { fn as i } from "../../index-
|
|
2
|
+
import { fn as i } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { FormInput as a } from "./FormInput.js";
|
|
4
4
|
import { SelectListbox as o } from "../SelectListbox/SelectListbox.js";
|
|
5
5
|
const m = `
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { fn as r } from "../../index-
|
|
2
|
+
import { fn as r } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { IconButton as t } from "./IconButton.js";
|
|
4
4
|
import { Icon as i } from "../Icon/Icon.js";
|
|
5
5
|
const l = `<IconButton variant={variant} aria-label={aria-label} onClick={onClickFunction}>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as h, jsx as
|
|
1
|
+
import { jsxs as h, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k, useState as b, useRef as g, useEffect as x } from "react";
|
|
3
3
|
import { c as y } from "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import '../../assets/InputField.css';const
|
|
4
|
+
import '../../assets/InputField.css';const i = {
|
|
5
5
|
"input-field-wrapper": "_input-field-wrapper_1h8mk_1",
|
|
6
6
|
"input-field": "_input-field_1h8mk_1",
|
|
7
7
|
"input-field--large": "_input-field--large_1h8mk_22",
|
|
@@ -9,45 +9,45 @@ import '../../assets/InputField.css';const e = {
|
|
|
9
9
|
"input-field__clear-button": "_input-field__clear-button_1h8mk_34"
|
|
10
10
|
}, W = k(
|
|
11
11
|
({
|
|
12
|
-
autoComplete:
|
|
12
|
+
autoComplete: u = "off",
|
|
13
13
|
id: r,
|
|
14
|
-
value:
|
|
14
|
+
value: e,
|
|
15
15
|
variant: f,
|
|
16
16
|
width: o,
|
|
17
17
|
type: s = "text",
|
|
18
18
|
clearTrigger: n,
|
|
19
|
-
onClear:
|
|
19
|
+
onClear: c,
|
|
20
20
|
...a
|
|
21
21
|
}, t) => {
|
|
22
22
|
const [_, d] = b(0), l = g(null);
|
|
23
23
|
x(() => {
|
|
24
24
|
l.current && d(l.current.offsetWidth);
|
|
25
|
-
}, [
|
|
25
|
+
}, [e]);
|
|
26
26
|
const m = () => {
|
|
27
|
-
|
|
27
|
+
c && t && "current" in t && t.current && (c(), t.current.focus());
|
|
28
28
|
};
|
|
29
|
-
return /* @__PURE__ */ h("div", { className:
|
|
30
|
-
/* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ h("div", { className: i["input-field-wrapper"], children: [
|
|
30
|
+
/* @__PURE__ */ p(
|
|
31
31
|
"input",
|
|
32
32
|
{
|
|
33
33
|
...a,
|
|
34
|
-
autoComplete:
|
|
34
|
+
autoComplete: u,
|
|
35
35
|
ref: t,
|
|
36
36
|
id: r,
|
|
37
|
-
className: y(
|
|
38
|
-
[
|
|
39
|
-
[
|
|
37
|
+
className: y(i["input-field"], {
|
|
38
|
+
[i["input-field--large"]]: f === "large",
|
|
39
|
+
[i["input-field--compact"]]: o === "compact"
|
|
40
40
|
}),
|
|
41
41
|
type: s,
|
|
42
|
-
value:
|
|
43
|
-
style: { paddingRight:
|
|
42
|
+
value: e,
|
|
43
|
+
style: { paddingRight: e && n ? _ : void 0 }
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
|
-
|
|
46
|
+
e && n && /* @__PURE__ */ p(
|
|
47
47
|
"button",
|
|
48
48
|
{
|
|
49
49
|
type: "button",
|
|
50
|
-
className:
|
|
50
|
+
className: i["input-field__clear-button"],
|
|
51
51
|
onClick: m,
|
|
52
52
|
ref: l,
|
|
53
53
|
"aria-label": `clear trigger for ${r}`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as g } from "react";
|
|
3
|
-
import { fn as p } from "../../index-
|
|
3
|
+
import { fn as p } from "../../index-BCvy9BiK.js";
|
|
4
4
|
import { InputField as o } from "./InputField.js";
|
|
5
5
|
import { Container as u } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
import { Icon as f } from "../Icon/Icon.js";
|
|
@@ -16,15 +16,15 @@ import "../GridRow/GridRow.js";
|
|
|
16
16
|
import "../IconButton/IconButton.js";
|
|
17
17
|
import "../Input/Input.js";
|
|
18
18
|
import "react-router";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-WOgWan8s.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";
|
|
23
|
-
import "../../index-
|
|
23
|
+
import "../../index-DllfJcv4.js";
|
|
24
24
|
import "../SelectListbox/SelectListbox.js";
|
|
25
25
|
import "../SelectListbox/SelectProvider.js";
|
|
26
26
|
import "../Sortable/components/SortableItem.js";
|
|
27
|
-
import "../../SortableProvider-
|
|
27
|
+
import "../../SortableProvider-DZggDO3M.js";
|
|
28
28
|
const C = `
|
|
29
29
|
// Has all HTMLInputElement props available except "className" and "style"
|
|
30
30
|
<InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}
|
|
@@ -58,10 +58,10 @@ const C = `
|
|
|
58
58
|
codeString: C
|
|
59
59
|
}
|
|
60
60
|
}, a = (t) => {
|
|
61
|
-
const [r,
|
|
62
|
-
|
|
61
|
+
const [r, n] = d(""), l = g(null), m = (c) => {
|
|
62
|
+
n(c.target.value), p()("handleChange");
|
|
63
63
|
}, s = () => {
|
|
64
|
-
|
|
64
|
+
n(""), p()("handleClear");
|
|
65
65
|
};
|
|
66
66
|
return /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(
|
|
67
67
|
o,
|
|
@@ -73,28 +73,28 @@ const C = `
|
|
|
73
73
|
ref: l
|
|
74
74
|
}
|
|
75
75
|
) });
|
|
76
|
-
},
|
|
76
|
+
}, i = {
|
|
77
77
|
type: "text",
|
|
78
78
|
variant: void 0,
|
|
79
79
|
id: "4f9ca77d"
|
|
80
|
-
},
|
|
81
|
-
b.args = {
|
|
82
|
-
...n
|
|
83
|
-
};
|
|
84
|
-
const v = a.bind({});
|
|
80
|
+
}, v = a.bind({});
|
|
85
81
|
v.args = {
|
|
86
|
-
...
|
|
82
|
+
...i
|
|
83
|
+
};
|
|
84
|
+
const b = a.bind({});
|
|
85
|
+
b.args = {
|
|
86
|
+
...i,
|
|
87
87
|
clearTrigger: "Clear"
|
|
88
88
|
};
|
|
89
89
|
const y = a.bind({});
|
|
90
90
|
y.args = {
|
|
91
|
-
...
|
|
91
|
+
...i,
|
|
92
92
|
clearTrigger: /* @__PURE__ */ e(f, { name: "Cross" })
|
|
93
93
|
};
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
v as InputFieldExample,
|
|
96
96
|
y as WithIconClearTrigger,
|
|
97
|
-
|
|
97
|
+
b as WithStringClearTrigger,
|
|
98
98
|
Q as default
|
|
99
99
|
};
|
|
100
100
|
//# sourceMappingURL=InputField.stories.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as t, s as l } from "../../react.esm-
|
|
2
|
+
import "../../index-BqLi4tOb.js";
|
|
3
|
+
import { r as t, s as l } from "../../react.esm-CsMDid07.js";
|
|
4
4
|
import { Label as r } from "./Label.js";
|
|
5
5
|
describe("Label", () => {
|
|
6
6
|
it("should render", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { ModalProvider as l } from "@react-aria/overlays";
|
|
3
|
-
import { fn as i } from "../../index-
|
|
3
|
+
import { fn as i } from "../../index-BCvy9BiK.js";
|
|
4
4
|
import { ModalDialog as t } from "./ModalDialog.js";
|
|
5
5
|
import { Button as n } from "../Buttons/Button.js";
|
|
6
6
|
import "../Buttons/LinkButton.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { fn as d } from "../../index-
|
|
2
|
+
import { fn as d } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-WOgWan8s.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
const C = `
|
|
7
7
|
// MultiSelectHeader can be added optionally
|
|
@@ -15,15 +15,15 @@ import "../../IconButton/IconButton.js";
|
|
|
15
15
|
import "../../Input/Input.js";
|
|
16
16
|
import "../../InputField/InputField.js";
|
|
17
17
|
import "react-router";
|
|
18
|
-
import { a as y } from "../../../TablePlugin-
|
|
18
|
+
import { a as y } from "../../../TablePlugin-WOgWan8s.js";
|
|
19
19
|
import "../../RteEditor/Providers/LanguageProvider.js";
|
|
20
20
|
import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "../../RteEditor/hooks/components/Flyout.js";
|
|
22
|
-
import "../../../index-
|
|
22
|
+
import "../../../index-DllfJcv4.js";
|
|
23
23
|
import "../../SelectListbox/SelectListbox.js";
|
|
24
24
|
import "../../SelectListbox/SelectProvider.js";
|
|
25
25
|
import "../../Sortable/components/SortableItem.js";
|
|
26
|
-
import "../../../SortableProvider-
|
|
26
|
+
import "../../../SortableProvider-DZggDO3M.js";
|
|
27
27
|
export {
|
|
28
28
|
y as MultiSelectHeader
|
|
29
29
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type MultiSelectData = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export interface MultiSelectBoxProps {
|
|
7
|
+
/** Array of label, values pairs */
|
|
8
|
+
selectData: MultiSelectData[];
|
|
9
|
+
/** Retuns selected label, values */
|
|
10
|
+
onChange: (values: MultiSelectData[]) => void;
|
|
11
|
+
/** Suffix label in the selectbutton '[count] selected' */
|
|
12
|
+
labelSuffix?: string;
|
|
13
|
+
/** Disables the multiselect */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const MultiSelectBox: ({ selectData, onChange, labelSuffix, disabled, }: MultiSelectBoxProps) => import("react/jsx-runtime").JSX.Element;
|