@uva-glass/component-library 3.37.1 → 3.38.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/assets/Accordion.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +5 -1
- package/dist/components/Accordion/Accordion.js +66 -31
- package/dist/components/Accordion/Accordion.js.map +1 -1
- 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.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 +3 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +6 -6
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.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.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/Label/Label.test.js +2 -2
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -2
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +2 -2
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +3 -3
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
- package/dist/{index-D1fbc4P-.js → index-B7xrLR5N.js} +1202 -1191
- package/dist/index-B7xrLR5N.js.map +1 -0
- package/dist/{index-DFu0GqDc.js → index-BYGu3RV5.js} +2 -2
- package/dist/{index-DFu0GqDc.js.map → index-BYGu3RV5.js.map} +1 -1
- package/dist/{index-DBXreWnr.js → index-BeAF9HWV.js} +2 -2
- package/dist/{index-DBXreWnr.js.map → index-BeAF9HWV.js.map} +1 -1
- package/dist/{index-C5wAoUNf.js → index-BwBhYsdx.js} +636 -610
- package/dist/{index-C5wAoUNf.js.map → index-BwBhYsdx.js.map} +1 -1
- package/dist/{react.esm-QfxS8egK.js → react.esm-CJKnSGEF.js} +2 -2
- package/dist/{react.esm-QfxS8egK.js.map → react.esm-CJKnSGEF.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +3 -3
- package/package.json +19 -19
- package/dist/index-D1fbc4P-.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._accordion_19w0n_1{overflow:hidden;position:relative}._accordion__title_19w0n_6{align-items:center;display:flex;gap:.5rem}._accordion__title_19w0n_6:hover{cursor:pointer;text-decoration:underline}._accordion__title_19w0n_6:focus-visible{text-decoration:underline}._accordion__title-icon_19w0n_21,._accordion__title-icon-right_19w0n_22{transform:rotate(-90deg);transition:transform .3s ease-in;margin-right:.25rem}._accordion__title-icon--margin-0_19w0n_28{margin:0}._accordion__title-icon--margin-025_19w0n_32{margin:0 .25rem}._accordion__title-icon--margin-050_19w0n_36{margin:0 .5rem}._accordion__title-icon--margin-075_19w0n_40{margin:0 .75rem}._accordion__title-icon--margin-100_19w0n_44{margin:0 1rem}._accordion__title-icon--margin-150_19w0n_48{margin:0 1.5rem}._accordion__title-icon--margin-200_19w0n_52{margin:0 2rem}._accordion__title-icon-right_19w0n_22{margin-left:auto}._accordion__title-icon--expanded_19w0n_60,._accordion__title-icon-right--expanded_19w0n_61{transform:rotate(90deg);transition:transform .3s ease-out}._accordion__content_19w0n_66{display:none}._accordion__content--expanded_19w0n_70{display:block}
|
|
@@ -6,6 +6,10 @@ export interface AccordionProps {
|
|
|
6
6
|
content: ReactNode;
|
|
7
7
|
/** Indicator if Accordion should be expanded by default.*/
|
|
8
8
|
expanded?: boolean;
|
|
9
|
+
/** Indicator for cheveron icon placement.*/
|
|
10
|
+
cheveronPlacement?: 'left' | 'right';
|
|
11
|
+
/** Indicator for cheveron icon margin. By default '050'. */
|
|
12
|
+
cheveronMargin?: '0' | '025' | '050' | '075' | '100' | '150' | '200';
|
|
9
13
|
}
|
|
10
14
|
/** A controller for accordion display toggling of content with click on a title. */
|
|
11
|
-
export declare const Accordion: ({ title, content, expanded }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Accordion: ({ title, content, expanded, cheveronPlacement, cheveronMargin, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,37 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c
|
|
3
|
-
import { useState as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import '../../assets/Accordion.css';const
|
|
6
|
-
accordion:
|
|
7
|
-
accordion__title:
|
|
8
|
-
"accordion__title-icon": "_accordion__title-
|
|
9
|
-
"accordion__title-icon
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { useState as w, useId as h } from "react";
|
|
4
|
+
import { Icon as l } from "../Icon/Icon.js";
|
|
5
|
+
import '../../assets/Accordion.css';const f = "_accordion_19w0n_1", u = "_accordion__title_19w0n_6", I = "_accordion__content_19w0n_66", n = {
|
|
6
|
+
accordion: f,
|
|
7
|
+
accordion__title: u,
|
|
8
|
+
"accordion__title-icon": "_accordion__title-icon_19w0n_21",
|
|
9
|
+
"accordion__title-icon-right": "_accordion__title-icon-right_19w0n_22",
|
|
10
|
+
"accordion__title-icon--margin-0": "_accordion__title-icon--margin-0_19w0n_28",
|
|
11
|
+
"accordion__title-icon--margin-025": "_accordion__title-icon--margin-025_19w0n_32",
|
|
12
|
+
"accordion__title-icon--margin-050": "_accordion__title-icon--margin-050_19w0n_36",
|
|
13
|
+
"accordion__title-icon--margin-075": "_accordion__title-icon--margin-075_19w0n_40",
|
|
14
|
+
"accordion__title-icon--margin-100": "_accordion__title-icon--margin-100_19w0n_44",
|
|
15
|
+
"accordion__title-icon--margin-150": "_accordion__title-icon--margin-150_19w0n_48",
|
|
16
|
+
"accordion__title-icon--margin-200": "_accordion__title-icon--margin-200_19w0n_52",
|
|
17
|
+
"accordion__title-icon--expanded": "_accordion__title-icon--expanded_19w0n_60",
|
|
18
|
+
"accordion__title-icon-right--expanded": "_accordion__title-icon-right--expanded_19w0n_61",
|
|
19
|
+
accordion__content: I,
|
|
20
|
+
"accordion__content--expanded": "_accordion__content--expanded_19w0n_70"
|
|
21
|
+
}, C = ({
|
|
22
|
+
title: s,
|
|
23
|
+
content: m,
|
|
24
|
+
expanded: g = !1,
|
|
25
|
+
cheveronPlacement: _ = "right",
|
|
26
|
+
cheveronMargin: t = "050"
|
|
27
|
+
}) => {
|
|
28
|
+
const [i, a] = w(g), e = h();
|
|
29
|
+
function p(x) {
|
|
30
|
+
const { code: r } = x;
|
|
31
|
+
(r === "Enter" || r === "Space") && a(!i);
|
|
17
32
|
}
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ o("div", { children: /* @__PURE__ */ d("div", { className: n.accordion, children: [
|
|
34
|
+
/* @__PURE__ */ d(
|
|
20
35
|
"div",
|
|
21
36
|
{
|
|
22
|
-
className:
|
|
37
|
+
className: n.accordion__title,
|
|
23
38
|
id: e,
|
|
24
39
|
role: "button",
|
|
25
40
|
tabIndex: 0,
|
|
26
|
-
onClick: () =>
|
|
27
|
-
onKeyUp:
|
|
28
|
-
"aria-expanded":
|
|
41
|
+
onClick: () => a(!i),
|
|
42
|
+
onKeyUp: p,
|
|
43
|
+
"aria-expanded": i,
|
|
29
44
|
children: [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
45
|
+
_ === "left" && /* @__PURE__ */ o(
|
|
46
|
+
l,
|
|
47
|
+
{
|
|
48
|
+
className: c(
|
|
49
|
+
n["accordion__title-icon"],
|
|
50
|
+
n[`accordion__title-icon--margin-${t}`],
|
|
51
|
+
{
|
|
52
|
+
[n["accordion__title-icon--expanded"]]: i
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
name: "CheveronLeft",
|
|
56
|
+
size: 16
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
s,
|
|
60
|
+
_ === "right" && /* @__PURE__ */ o(
|
|
61
|
+
l,
|
|
33
62
|
{
|
|
34
|
-
className:
|
|
63
|
+
className: c(
|
|
64
|
+
n["accordion__title-icon-right"],
|
|
65
|
+
n[`accordion__title-icon--margin-${t}`],
|
|
66
|
+
{
|
|
67
|
+
[n["accordion__title-icon-right--expanded"]]: i
|
|
68
|
+
}
|
|
69
|
+
),
|
|
35
70
|
name: "CheveronLeft",
|
|
36
71
|
size: 16
|
|
37
72
|
}
|
|
@@ -39,17 +74,17 @@ import '../../assets/Accordion.css';const v = "_accordion_bvnps_1", f = "_accord
|
|
|
39
74
|
]
|
|
40
75
|
}
|
|
41
76
|
),
|
|
42
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ o(
|
|
43
78
|
"div",
|
|
44
79
|
{
|
|
45
80
|
"aria-labelledby": e,
|
|
46
|
-
className:
|
|
47
|
-
children:
|
|
81
|
+
className: c(n.accordion__content, { [n["accordion__content--expanded"]]: i }),
|
|
82
|
+
children: m
|
|
48
83
|
}
|
|
49
84
|
)
|
|
50
|
-
] });
|
|
85
|
+
] }) });
|
|
51
86
|
};
|
|
52
87
|
export {
|
|
53
|
-
|
|
88
|
+
C as Accordion
|
|
54
89
|
};
|
|
55
90
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sources":["../../../src/components/Accordion/Accordion.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useId, useState } from 'react';\n\nimport type { KeyboardEvent, ReactNode } from 'react';\n\nimport styles from './Accordion.module.css';\n\nimport { Icon } from 'components/Icon';\n\nexport interface AccordionProps {\n /** Clickable title (always visible). */\n title: ReactNode;\n /** Main content (hidden when expanded is false). */\n content: ReactNode;\n /** Indicator if Accordion should be expanded by default.*/\n expanded?: boolean;\n}\n\n/** A controller for accordion display toggling of content with click on a title. */\nexport const Accordion = ({
|
|
1
|
+
{"version":3,"file":"Accordion.js","sources":["../../../src/components/Accordion/Accordion.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useId, useState } from 'react';\n\nimport type { KeyboardEvent, ReactNode } from 'react';\n\nimport styles from './Accordion.module.css';\n\nimport { Icon } from 'components/Icon';\n\nexport interface AccordionProps {\n /** Clickable title (always visible). */\n title: ReactNode;\n /** Main content (hidden when expanded is false). */\n content: ReactNode;\n /** Indicator if Accordion should be expanded by default.*/\n expanded?: boolean;\n /** Indicator for cheveron icon placement.*/\n cheveronPlacement?: 'left' | 'right';\n /** Indicator for cheveron icon margin. By default '050'. */\n cheveronMargin?: '0' | '025' | '050' | '075' | '100' | '150' | '200';\n}\n\n/** A controller for accordion display toggling of content with click on a title. */\nexport const Accordion = ({\n title,\n content,\n expanded = false,\n cheveronPlacement = 'right',\n cheveronMargin = '050',\n}: AccordionProps) => {\n const [isExpanded, setIsExpanded] = useState(expanded);\n const accordionId = useId();\n\n function onKeyUp(event: KeyboardEvent<HTMLDivElement>) {\n const { code } = event;\n\n if (code === 'Enter' || code === 'Space') {\n setIsExpanded(!isExpanded);\n }\n }\n\n return (\n <div>\n <div className={styles['accordion']}>\n <div\n className={styles['accordion__title']}\n id={accordionId}\n role=\"button\"\n tabIndex={0}\n onClick={() => setIsExpanded(!isExpanded)}\n onKeyUp={onKeyUp}\n aria-expanded={isExpanded}\n >\n {cheveronPlacement === 'left' && (\n <Icon\n className={clsx(\n styles['accordion__title-icon'],\n styles[`accordion__title-icon--margin-${cheveronMargin}`],\n {\n [styles['accordion__title-icon--expanded']]: isExpanded,\n }\n )}\n name=\"CheveronLeft\"\n size={16}\n />\n )}\n\n {title}\n {cheveronPlacement === 'right' && (\n <Icon\n className={clsx(\n styles['accordion__title-icon-right'],\n styles[`accordion__title-icon--margin-${cheveronMargin}`],\n {\n [styles['accordion__title-icon-right--expanded']]: isExpanded,\n }\n )}\n name=\"CheveronLeft\"\n size={16}\n />\n )}\n </div>\n <div\n aria-labelledby={accordionId}\n className={clsx(styles.accordion__content, { [styles['accordion__content--expanded']]: isExpanded })}\n >\n {content}\n </div>\n </div>\n </div>\n );\n};\n"],"names":["Accordion","title","content","expanded","cheveronPlacement","cheveronMargin","isExpanded","setIsExpanded","useState","accordionId","useId","onKeyUp","event","code","jsxs","styles","jsx","Icon","clsx"],"mappings":";;;;;;;;;;;;;;;;;;;;GAuBaA,IAAY,CAAC;AAAA,EACxB,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,mBAAAC,IAAoB;AAAA,EACpB,gBAAAC,IAAiB;AACnB,MAAsB;AACpB,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAASL,CAAQ,GAC/CM,IAAcC,EAAA;AAEpB,WAASC,EAAQC,GAAsC;AACrD,UAAM,EAAE,MAAAC,MAASD;AAEjB,KAAIC,MAAS,WAAWA,MAAS,YAC/BN,EAAc,CAACD,CAAU;AAAA,EAC3B;AAGF,2BACG,OAAA,EACC,UAAA,gBAAAQ,EAAC,SAAI,WAAWC,EAAO,WACrB,UAAA;AAAA,IAAA,gBAAAD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWC,EAAO;AAAA,QAClB,IAAIN;AAAA,QACJ,MAAK;AAAA,QACL,UAAU;AAAA,QACV,SAAS,MAAMF,EAAc,CAACD,CAAU;AAAA,QACxC,SAAAK;AAAA,QACA,iBAAeL;AAAA,QAEd,UAAA;AAAA,UAAAF,MAAsB,UACrB,gBAAAY;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,WAAWC;AAAA,gBACTH,EAAO,uBAAuB;AAAA,gBAC9BA,EAAO,iCAAiCV,CAAc,EAAE;AAAA,gBACxD;AAAA,kBACE,CAACU,EAAO,iCAAiC,CAAC,GAAGT;AAAA,gBAAA;AAAA,cAC/C;AAAA,cAEF,MAAK;AAAA,cACL,MAAM;AAAA,YAAA;AAAA,UAAA;AAAA,UAITL;AAAA,UACAG,MAAsB,WACrB,gBAAAY;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,WAAWC;AAAA,gBACTH,EAAO,6BAA6B;AAAA,gBACpCA,EAAO,iCAAiCV,CAAc,EAAE;AAAA,gBACxD;AAAA,kBACE,CAACU,EAAO,uCAAuC,CAAC,GAAGT;AAAA,gBAAA;AAAA,cACrD;AAAA,cAEF,MAAK;AAAA,cACL,MAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QACR;AAAA,MAAA;AAAA,IAAA;AAAA,IAGJ,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,mBAAiBP;AAAA,QACjB,WAAWS,EAAKH,EAAO,oBAAoB,EAAE,CAACA,EAAO,8BAA8B,CAAC,GAAGT,GAAY;AAAA,QAElG,UAAAJ;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,EAAA,CACF,EAAA,CACF;AAEJ;"}
|
|
@@ -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-BwBhYsdx.js";
|
|
3
|
+
import { r as n, s as a } from "../../react.esm-CJKnSGEF.js";
|
|
4
|
+
import { u as e } from "../../index-BeAF9HWV.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-BwBhYsdx.js";
|
|
3
|
+
import { r as c, s as e, f as s, w as d } from "../../react.esm-CJKnSGEF.js";
|
|
4
|
+
import { u as r } from "../../index-BeAF9HWV.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-BwBhYsdx.js";
|
|
3
|
+
import { r as n, s as t, w as a } from "../../react.esm-CJKnSGEF.js";
|
|
4
|
+
import { u as l } from "../../index-BeAF9HWV.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-BwBhYsdx.js";
|
|
3
|
+
import { r, s as t } from "../../react.esm-CJKnSGEF.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-BwBhYsdx.js";
|
|
3
|
+
import { r as t, s as r } from "../../react.esm-CJKnSGEF.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-BwBhYsdx.js";
|
|
3
|
+
import { r as e, s as o } from "../../react.esm-CJKnSGEF.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 { l } from "../../index-
|
|
2
|
+
import { l } from "../../index-BYGu3RV5.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-BwBhYsdx.js";
|
|
3
|
+
import { r as n, s as t, f as c } from "../../react.esm-CJKnSGEF.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 { l as s } from "../../index-
|
|
2
|
+
import { l as s } from "../../index-BYGu3RV5.js";
|
|
3
3
|
import { BrowserRouter as c } from "react-router";
|
|
4
4
|
import { LinkButton as e } 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-BwBhYsdx.js";
|
|
3
|
+
import { r as n, s as t, f as c } from "../../react.esm-CJKnSGEF.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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import { l as c } from "../../index-
|
|
2
|
+
import { l as c } from "../../index-BYGu3RV5.js";
|
|
3
3
|
import { MenuButton as n } 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-BwBhYsdx.js";
|
|
3
|
+
import { r as u, s as e, f as c } from "../../react.esm-CJKnSGEF.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-BwBhYsdx.js";
|
|
3
|
+
import { r, s as d } from "../../react.esm-CJKnSGEF.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 { l as e } from "../../index-
|
|
2
|
+
import { l as e } from "../../index-BYGu3RV5.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,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as o, s as t } from "../../react.esm-
|
|
4
|
-
import { u as s } from "../../index-
|
|
2
|
+
import "../../index-BwBhYsdx.js";
|
|
3
|
+
import { r as o, s as t } from "../../react.esm-CJKnSGEF.js";
|
|
4
|
+
import { u as s } from "../../index-BeAF9HWV.js";
|
|
5
5
|
import { Checkbox as r } from "./Checkbox.js";
|
|
6
6
|
describe("Checkbox", () => {
|
|
7
7
|
it("should render", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { l } from "../../index-
|
|
2
|
+
import { l } from "../../index-BYGu3RV5.js";
|
|
3
3
|
import { CheckboxButtonBar as e } from "./CheckboxButtonBar.js";
|
|
4
4
|
const r = "<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />", d = {
|
|
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 t } from "../../react.esm-
|
|
2
|
+
import "../../index-BwBhYsdx.js";
|
|
3
|
+
import { r as c, s as t } from "../../react.esm-CJKnSGEF.js";
|
|
4
4
|
import { CheckboxButtonBar as a } from "./CheckboxButtonBar.js";
|
|
5
5
|
const n = jest.fn(), d = [
|
|
6
6
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { s as T, l as C } from "../../index-
|
|
3
|
-
import {
|
|
2
|
+
import { s as T, l as C } from "../../index-BYGu3RV5.js";
|
|
3
|
+
import { G as v, _ as w } from "../../index-B7xrLR5N.js";
|
|
4
4
|
import { useState as R } from "react";
|
|
5
5
|
import { CheckboxTree as b } from "./CheckboxTree.js";
|
|
6
6
|
import { Chip as S } from "../Chip/Chip.js";
|
|
@@ -84,7 +84,7 @@ const A = (e, t, r) => {
|
|
|
84
84
|
["1", "2", "3", "4", "5", "6", "7"],
|
|
85
85
|
D,
|
|
86
86
|
I
|
|
87
|
-
), M = "<CheckboxTree title={} checkboxTree={} selectedValues={} onChange={} />",
|
|
87
|
+
), M = "<CheckboxTree title={} checkboxTree={} selectedValues={} onChange={} />", Y = {
|
|
88
88
|
title: "Organisms/CheckboxTree",
|
|
89
89
|
component: b,
|
|
90
90
|
parameters: {
|
|
@@ -105,7 +105,7 @@ const m = 3, F = (e) => {
|
|
|
105
105
|
}, W = (e) => {
|
|
106
106
|
const [t, r] = e.split(".").map(Number);
|
|
107
107
|
return `${(t - 1) * m + (r || 1)}`;
|
|
108
|
-
},
|
|
108
|
+
}, z = () => {
|
|
109
109
|
const [e, t] = R(["5", "4", "1"]), r = (i) => {
|
|
110
110
|
const c = JSON.parse(JSON.stringify(e)).filter(
|
|
111
111
|
(u) => u !== W(i)
|
|
@@ -136,7 +136,7 @@ const m = 3, F = (e) => {
|
|
|
136
136
|
};
|
|
137
137
|
export {
|
|
138
138
|
B as CheckboxTreeExample,
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
z as CheckboxTreeWithChips,
|
|
140
|
+
Y as default
|
|
141
141
|
};
|
|
142
142
|
//# sourceMappingURL=CheckboxTree.stories.js.map
|
|
@@ -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-BYGu3RV5.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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { l as e } from "../../index-
|
|
2
|
+
import { l as e } from "../../index-BYGu3RV5.js";
|
|
3
3
|
import { ControlsButton as o } from "./ControlsButton.js";
|
|
4
4
|
import { Icons as a } from "../Icon/icons/index.js";
|
|
5
5
|
const r = Object.keys(a), c = "<ControlsButton type={radio or checkbox} label={} value={} prefix={} forceSquared={}isChecked={} variant={} disabled={} notValid={} onSetValue={} key={} />", f = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { OverlayProvider as p } from "@react-aria/overlays";
|
|
3
|
-
import { l as m } from "../../index-
|
|
3
|
+
import { l as m } from "../../index-BYGu3RV5.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-BwBhYsdx.js";
|
|
3
|
+
import { r as s, s as e, f as r } from "../../react.esm-CJKnSGEF.js";
|
|
4
4
|
import { FeedbackBar as c } from "./FeedbackBar.js";
|
|
5
5
|
describe("FeedbackBar", () => {
|
|
6
6
|
it("should render with children text", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { l as i } from "../../index-
|
|
2
|
+
import { l as i } from "../../index-BYGu3RV5.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 e } from "react/jsx-runtime";
|
|
2
|
-
import { l as r } from "../../index-
|
|
2
|
+
import { l as r } from "../../index-BYGu3RV5.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,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 { l } from "../../index-
|
|
3
|
+
import { l } from "../../index-BYGu3RV5.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 h } from "../Icon/Icon.js";
|
|
@@ -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-BwBhYsdx.js";
|
|
3
|
+
import { r as t, s as l } from "../../react.esm-CJKnSGEF.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 n } from "@react-aria/overlays";
|
|
3
|
-
import { l as i } from "../../index-
|
|
3
|
+
import { l as i } from "../../index-BYGu3RV5.js";
|
|
4
4
|
import { ModalDialog as t } from "./ModalDialog.js";
|
|
5
5
|
import { Button as l } from "../Buttons/Button.js";
|
|
6
6
|
import "../Buttons/LinkButton.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
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-BYGu3RV5.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
4
|
import { M as e } from "../../TablePlugin-C38z2r5y.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.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-BYGu3RV5.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,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as d, Fragment as r } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as n, s as t, f as a } from "../../react.esm-
|
|
2
|
+
import "../../index-BwBhYsdx.js";
|
|
3
|
+
import { r as n, s as t, f as a } from "../../react.esm-CJKnSGEF.js";
|
|
4
4
|
import { MultiSelectBox as l } from "./MultiSelectBox.js";
|
|
5
5
|
const i = jest.fn(), c = [
|
|
6
6
|
{ label: "Option 1", value: "1" },
|
|
@@ -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-BYGu3RV5.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,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as i, s as t } from "../../react.esm-
|
|
2
|
+
import "../../index-BwBhYsdx.js";
|
|
3
|
+
import { r as i, s as t } from "../../react.esm-CJKnSGEF.js";
|
|
4
4
|
import { Notification as n } from "./Notification.js";
|
|
5
5
|
describe("Notification", () => {
|
|
6
6
|
it("renders title and subtitle", () => {
|
|
@@ -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-BYGu3RV5.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 = {
|
|
@@ -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-BYGu3RV5.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",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as l, s as t, f as s } from "../../react.esm-
|
|
2
|
+
import "../../index-BwBhYsdx.js";
|
|
3
|
+
import { r as l, s as t, f as s } from "../../react.esm-CJKnSGEF.js";
|
|
4
4
|
import { RadioGroup as a } from "./RadioGroup.js";
|
|
5
5
|
const i = [
|
|
6
6
|
{ id: "1", titleLabel: "Option 1", value: "option1" },
|
|
@@ -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-BYGu3RV5.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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i, Fragment as m } from "react/jsx-runtime";
|
|
2
|
-
import { l as s } from "../../index-
|
|
2
|
+
import { l as s } from "../../index-BYGu3RV5.js";
|
|
3
3
|
import { Sortable as l } from "./Sortable.js";
|
|
4
4
|
import { InputField as d } from "../InputField/InputField.js";
|
|
5
5
|
import { Icon as c } from "../Icon/Icon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as t, s } from "../../react.esm-
|
|
2
|
+
import "../../index-BwBhYsdx.js";
|
|
3
|
+
import { r as t, s } from "../../react.esm-CJKnSGEF.js";
|
|
4
4
|
import { StatusBadge as a } from "./StatusBage.js";
|
|
5
5
|
describe("StatusBadge", () => {
|
|
6
6
|
it("should render with message", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { l as a } from "../../index-
|
|
2
|
+
import { l as a } from "../../index-BYGu3RV5.js";
|
|
3
3
|
import { TextArea as e } from "./TextArea.js";
|
|
4
4
|
const o = `
|
|
5
5
|
<TextArea label={label} maxCharacters={maxCharacters} defaultValue={string}/> `, x = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as o, s as t, f as r } from "../../react.esm-
|
|
4
|
-
import { J as c } from "../../index-
|
|
2
|
+
import "../../index-BwBhYsdx.js";
|
|
3
|
+
import { r as o, s as t, f as r } from "../../react.esm-CJKnSGEF.js";
|
|
4
|
+
import { J as c } from "../../index-BYGu3RV5.js";
|
|
5
5
|
import { TextArea as n } from "./TextArea.js";
|
|
6
6
|
describe("TextArea", () => {
|
|
7
7
|
it("should render correctly with label", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { l } from "../../index-
|
|
2
|
+
import { l } from "../../index-BYGu3RV5.js";
|
|
3
3
|
import { ToggleSwitch as e } from "./ToggleSwitch.js";
|
|
4
4
|
const a = `
|
|
5
5
|
// Has all InputHTMLAttributes props available except "className" and "style"
|