@uva-glass/component-library 2.4.0 → 2.5.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/Chip.css +1 -0
- package/dist/components/CheckboxTree/CheckboxTree.d.ts +3 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +39 -33
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
- package/dist/components/Chip/Chip.d.ts +7 -0
- package/dist/components/Chip/Chip.js +14 -0
- package/dist/components/Chip/Chip.js.map +1 -0
- package/dist/components/Chip/Chip.stories.d.ts +6 -0
- package/dist/components/Chip/Chip.stories.js +29 -0
- package/dist/components/Chip/Chip.stories.js.map +1 -0
- package/dist/components/Chip/index.d.ts +1 -0
- package/dist/components/Chip/index.js +5 -0
- package/dist/components/Chip/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +84 -82
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +84 -82
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._chip_7nmzv_1{align-items:center;background-color:var(--color-white);border:1px solid var(--color-grey-200);border-radius:1rem;cursor:pointer;display:grid;grid-template-columns:auto 1fr;min-height:2rem;padding:0 0 0 1rem;-webkit-user-select:none;user-select:none;width:fit-content}._chip_7nmzv_1:hover{background-color:var(--color-grey-200)}._chip_7nmzv_1:focus-visible{outline:.125rem dotted var(--color-cobalt);outline-offset:.125rem}._chip__label_7nmzv_24{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}._chip__close-button_7nmzv_31{margin:0 .5rem}
|
|
@@ -14,9 +14,11 @@ export interface CheckboxTreeProps {
|
|
|
14
14
|
checkboxTree: CheckboxBranch[];
|
|
15
15
|
/** Array of selected values. */
|
|
16
16
|
defaultValue?: string[];
|
|
17
|
+
/** `true` if the font-weight needs to be unset; otherwise, `false`. The default is `false`. */
|
|
18
|
+
noLabelFrontWeight?: boolean;
|
|
17
19
|
/** Returns array of selected values. */
|
|
18
20
|
onChange?: (value: string[]) => void;
|
|
19
21
|
}
|
|
20
22
|
/** Represents a component to render a tree of checkboxes. */
|
|
21
|
-
export declare const CheckboxTree: ({ title, checkboxTree, defaultValue, onChange }: CheckboxTreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const CheckboxTree: ({ title, checkboxTree, defaultValue, noLabelFrontWeight, onChange, }: CheckboxTreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
24
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Button as
|
|
2
|
+
import { useRef as R, useEffect as N } from "react";
|
|
3
|
+
import { c as y } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { Icon as j } from "../Icon/Icon.js";
|
|
5
|
+
import { Button as I } from "../Buttons/Button.js";
|
|
6
6
|
import "../Buttons/LinkButton.js";
|
|
7
7
|
import "@react-aria/button";
|
|
8
|
-
import { Checkbox as
|
|
9
|
-
import { Label as
|
|
8
|
+
import { Checkbox as S } from "../Checkbox/Checkbox.js";
|
|
9
|
+
import { Label as C } from "../Label/Label.js";
|
|
10
10
|
import "@react-aria/dialog";
|
|
11
11
|
import "@react-aria/focus";
|
|
12
12
|
import "@react-aria/overlays";
|
|
13
13
|
import "../OverlayCloseButton/OverlayCloseButton.js";
|
|
14
|
-
import { FormField as
|
|
14
|
+
import { FormField as A } from "../FormField/FormField.js";
|
|
15
15
|
import "../GridRow/GridRow.js";
|
|
16
16
|
import "../IconButton/IconButton.js";
|
|
17
17
|
import "../Input/Input.js";
|
|
@@ -26,7 +26,7 @@ import "../SelectListbox/SelectListbox.js";
|
|
|
26
26
|
import "../SelectListbox/SelectProvider.js";
|
|
27
27
|
import "../Sortable/components/SortableItem.js";
|
|
28
28
|
import "../../SortableProvider-BUsvniX7.js";
|
|
29
|
-
import { useResponsive as
|
|
29
|
+
import { useResponsive as L } from "../hooks/useResponsive.js";
|
|
30
30
|
import '../../assets/CheckboxTree.css';const o = {
|
|
31
31
|
"checkbox-tree__header": "_checkbox-tree__header_xbe4e_1",
|
|
32
32
|
"checkbox-tree__branch": "_checkbox-tree__branch_xbe4e_8",
|
|
@@ -36,82 +36,88 @@ import '../../assets/CheckboxTree.css';const o = {
|
|
|
36
36
|
"checkbox-tree__leaves": "_checkbox-tree__leaves_xbe4e_39",
|
|
37
37
|
"checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--expanded_xbe4e_48",
|
|
38
38
|
"checkbox-tree__leaf": "_checkbox-tree__leaf_xbe4e_52"
|
|
39
|
-
},
|
|
40
|
-
|
|
39
|
+
}, _e = ({
|
|
40
|
+
title: b,
|
|
41
|
+
checkboxTree: E,
|
|
42
|
+
defaultValue: l,
|
|
43
|
+
noLabelFrontWeight: x = !1,
|
|
44
|
+
onChange: m
|
|
45
|
+
}) => {
|
|
46
|
+
const s = R([]), { lessThan: n } = L(), _ = (r, e = document) => [].slice.call(e.querySelectorAll(r)), q = () => {
|
|
41
47
|
const r = s.current.reduce((e, t) => (t.name && t.checked && e.push(t.value), e), []);
|
|
42
|
-
|
|
43
|
-
},
|
|
48
|
+
m && m(r);
|
|
49
|
+
}, u = (r) => {
|
|
44
50
|
var e, t, d;
|
|
45
51
|
for (; r; ) {
|
|
46
|
-
const c = (t = (e = r.closest("[data-ul]")) == null ? void 0 : e.parentNode) == null ? void 0 : t.querySelector("input"),
|
|
52
|
+
const c = (t = (e = r.closest("[data-ul]")) == null ? void 0 : e.parentNode) == null ? void 0 : t.querySelector("input"), k = _(
|
|
47
53
|
"input",
|
|
48
54
|
(d = c == null ? void 0 : c.closest("[data-li]")) == null ? void 0 : d.querySelector("[data-ul]")
|
|
49
|
-
).reduce((
|
|
50
|
-
if (c && (c.checked = p, c.indeterminate = !p && p !==
|
|
55
|
+
).reduce((v, g) => (g.disabled || v.push(g.checked), v), []), p = k.every(Boolean), T = k.some(Boolean);
|
|
56
|
+
if (c && (c.checked = p, c.indeterminate = !p && p !== T), !c || r === c)
|
|
51
57
|
break;
|
|
52
58
|
r = c;
|
|
53
59
|
}
|
|
54
|
-
},
|
|
60
|
+
}, f = (r, e) => {
|
|
55
61
|
var d, c;
|
|
56
62
|
const t = e == null ? void 0 : e.querySelector("[data-ul]");
|
|
57
63
|
r.childNodes[0].classList.toggle(o["checkbox-tree__branch--icon--expanded"]), (c = e == null ? void 0 : e.closest("[data-li]")) == null || c.setAttribute(
|
|
58
64
|
"aria-expanded",
|
|
59
65
|
((d = e == null ? void 0 : e.closest("[data-li]")) == null ? void 0 : d.getAttribute("aria-expanded")) === "false" ? "true" : "false"
|
|
60
66
|
), t && t.classList.toggle(o["checkbox-tree__leaves--expanded"]);
|
|
61
|
-
},
|
|
67
|
+
}, F = (r) => {
|
|
62
68
|
var c;
|
|
63
69
|
const e = r.target;
|
|
64
70
|
if (!e || !e.parentNode || !e.parentNode.parentNode) return;
|
|
65
71
|
const t = e.parentNode.parentNode;
|
|
66
72
|
if (n.md && ((c = e.previousElementSibling) == null ? void 0 : c.tagName) === "BUTTON" && t.getAttribute("aria-expanded") === "false") {
|
|
67
|
-
r.preventDefault(),
|
|
73
|
+
r.preventDefault(), f(t.querySelector("button"), t);
|
|
68
74
|
return;
|
|
69
75
|
}
|
|
70
76
|
if (s.current.indexOf(e) === -1) return;
|
|
71
|
-
(e.parentNode.parentNode ? _("input", e.parentNode.parentNode) : []).forEach((h) => h.checked = h.disabled ? !1 : e.checked),
|
|
77
|
+
(e.parentNode.parentNode ? _("input", e.parentNode.parentNode) : []).forEach((h) => h.checked = h.disabled ? !1 : e.checked), u(e), q();
|
|
72
78
|
}, B = (r) => {
|
|
73
79
|
const e = r.target, t = e.closest("[data-li]");
|
|
74
|
-
|
|
80
|
+
f(e, t);
|
|
75
81
|
};
|
|
76
82
|
return N(() => {
|
|
77
83
|
s.current = _("input") || [];
|
|
78
84
|
}, []), N(() => {
|
|
79
85
|
l && s.current.forEach((r) => {
|
|
80
|
-
l.includes(r.value) && (r.checked = !0,
|
|
86
|
+
l.includes(r.value) && (r.checked = !0, u(r));
|
|
81
87
|
});
|
|
82
88
|
}, [l]), /* @__PURE__ */ i("div", { children: [
|
|
83
89
|
b && /* @__PURE__ */ a("span", { className: o["checkbox-tree__header"], children: b }),
|
|
84
|
-
/* @__PURE__ */ a("div", { onClick:
|
|
90
|
+
/* @__PURE__ */ a("div", { onClick: F, "data-ul": !0, role: "tree", tabIndex: 0, children: E.map(({ itemName: r, children: e }) => /* @__PURE__ */ i(
|
|
85
91
|
"div",
|
|
86
92
|
{
|
|
87
93
|
className: o["checkbox-tree__branch"],
|
|
88
94
|
"data-li": !0,
|
|
89
95
|
"aria-expanded": n.md ? "false" : "true",
|
|
90
96
|
children: [
|
|
91
|
-
/* @__PURE__ */ i(
|
|
92
|
-
/* @__PURE__ */ a(
|
|
93
|
-
|
|
97
|
+
/* @__PURE__ */ i(A, { inline: !0, className: o["checkbox-tree__branch--formfield"], children: [
|
|
98
|
+
/* @__PURE__ */ a(I, { variant: "blank", onClick: B, children: /* @__PURE__ */ a(
|
|
99
|
+
j,
|
|
94
100
|
{
|
|
95
101
|
name: "CheveronRight",
|
|
96
102
|
size: 16,
|
|
97
|
-
className:
|
|
103
|
+
className: y(o["checkbox-tree__branch--icon"], {
|
|
98
104
|
[o["checkbox-tree__branch--icon--expanded"]]: !n.md
|
|
99
105
|
})
|
|
100
106
|
}
|
|
101
107
|
) }),
|
|
102
|
-
/* @__PURE__ */ a(
|
|
103
|
-
/* @__PURE__ */ a(
|
|
108
|
+
/* @__PURE__ */ a(S, { id: r, disabled: e.every((t) => t.disabled) }),
|
|
109
|
+
/* @__PURE__ */ a(C, { htmlFor: r, noFontWeight: x, children: r })
|
|
104
110
|
] }),
|
|
105
111
|
/* @__PURE__ */ a(
|
|
106
112
|
"div",
|
|
107
113
|
{
|
|
108
|
-
className:
|
|
114
|
+
className: y(o["checkbox-tree__leaves"], {
|
|
109
115
|
[o["checkbox-tree__leaves--expanded"]]: !n.md
|
|
110
116
|
}),
|
|
111
117
|
"data-ul": !0,
|
|
112
|
-
children: e.map(({ itemName: t, itemValue: d, disabled: c }) => /* @__PURE__ */ a("div", { className: o["checkbox-tree__leaf"], "data-li": !0, children: /* @__PURE__ */ i(
|
|
113
|
-
/* @__PURE__ */ a(
|
|
114
|
-
/* @__PURE__ */ a(
|
|
118
|
+
children: e.map(({ itemName: t, itemValue: d, disabled: c }) => /* @__PURE__ */ a("div", { className: o["checkbox-tree__leaf"], "data-li": !0, children: /* @__PURE__ */ i(A, { inline: !0, className: o["checkbox-tree__branch--formfield"], children: [
|
|
119
|
+
/* @__PURE__ */ a(S, { id: t, name: t, value: d, disabled: c }),
|
|
120
|
+
/* @__PURE__ */ a(C, { htmlFor: t, noFontWeight: x, children: t })
|
|
115
121
|
] }) }, t))
|
|
116
122
|
}
|
|
117
123
|
)
|
|
@@ -122,6 +128,6 @@ import '../../assets/CheckboxTree.css';const o = {
|
|
|
122
128
|
] });
|
|
123
129
|
};
|
|
124
130
|
export {
|
|
125
|
-
|
|
131
|
+
_e as CheckboxTree
|
|
126
132
|
};
|
|
127
133
|
//# sourceMappingURL=CheckboxTree.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxTree.js","sources":["../../../src/components/CheckboxTree/CheckboxTree.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport type { MouseEventHandler } from 'react';\n\nimport styles from './CheckboxTree.module.css';\n\nimport { Button, Checkbox, FormField, Icon, Label } from 'components';\nimport { useResponsive } from 'components/hooks/useResponsive';\n\n// TODO: Currently the checkbox tree shows odd behavior when a disabled checkbox is checked. When deselecting the parent checkbox, the disabled checkbox is deselected, and will never be checked again. We'll leave this for now, until we run into a real world example where this is necessary.\n\ntype CheckboxLeaf = {\n itemName: string;\n itemValue: string;\n disabled?: boolean;\n};\n\ntype CheckboxBranch = {\n itemName: string;\n children: CheckboxLeaf[];\n};\n\nexport interface CheckboxTreeProps {\n /** The title of the component. */\n title?: string;\n /** Array of checkbox groups with a label and array of children (itemName, itemValue and disabled boolean). */\n checkboxTree: CheckboxBranch[];\n /** Array of selected values. */\n defaultValue?: string[];\n /** Returns array of selected values. */\n onChange?: (value: string[]) => void;\n}\n\n/** Represents a component to render a tree of checkboxes. */\nexport const CheckboxTree = ({ title, checkboxTree, defaultValue, onChange }: CheckboxTreeProps) => {\n const checkboxNodes = useRef<HTMLInputElement[]>([]);\n const { lessThan } = useResponsive();\n\n const nodeArray = (selector: string, parent = document) => [].slice.call(parent.querySelectorAll(selector));\n\n const setValue = () => {\n const values = checkboxNodes.current.reduce((values, checkbox) => {\n if (checkbox.name && checkbox.checked) {\n values.push(checkbox.value);\n }\n return values;\n }, [] as string[]);\n\n if (onChange) onChange(values);\n };\n\n const setCheckboxesState = (check: HTMLInputElement) => {\n while (check) {\n const parent = check.closest('[data-ul]')?.parentNode?.querySelector('input');\n const siblings: HTMLInputElement[] = nodeArray(\n 'input',\n parent?.closest('[data-li]')?.querySelector('[data-ul]') as Document | undefined\n );\n\n const checkStatus = siblings.reduce((status, check) => {\n if (!check.disabled) status.push(check.checked);\n return status;\n }, [] as boolean[]);\n\n const every = checkStatus.every(Boolean);\n const some = checkStatus.some(Boolean);\n\n if (parent) {\n parent.checked = every;\n parent.indeterminate = !every && every !== some;\n }\n\n if (!parent || check === parent) {\n break;\n }\n\n check = parent;\n }\n };\n\n const setExpandedAttributes = (trigger: HTMLButtonElement, container: Element | null) => {\n const children = container?.querySelector('[data-ul]');\n\n (trigger.childNodes[0] as Element).classList.toggle(styles['checkbox-tree__branch--icon--expanded']);\n container\n ?.closest('[data-li]')\n ?.setAttribute(\n 'aria-expanded',\n container?.closest('[data-li]')?.getAttribute('aria-expanded') === 'false' ? 'true' : 'false'\n );\n\n if (children) {\n children.classList.toggle(styles['checkbox-tree__leaves--expanded']);\n }\n };\n\n const handleChange: MouseEventHandler<HTMLDivElement> = (event) => {\n const check = event.target as HTMLInputElement;\n\n if (!check || !check.parentNode || !check.parentNode.parentNode) return;\n const parentCheckbox = check.parentNode.parentNode as HTMLElement;\n\n if (\n lessThan.md &&\n check.previousElementSibling?.tagName === 'BUTTON' &&\n parentCheckbox.getAttribute('aria-expanded') === 'false'\n ) {\n event.preventDefault();\n setExpandedAttributes(parentCheckbox.querySelector('button') as HTMLButtonElement, parentCheckbox);\n return;\n }\n\n if (checkboxNodes.current.indexOf(check) === -1) return;\n\n const children: HTMLInputElement[] = (check.parentNode.parentNode as Document)\n ? nodeArray('input', check.parentNode.parentNode as Document)\n : [];\n\n children.forEach((child) => {\n return (child.checked = child.disabled ? false : check.checked);\n });\n\n setCheckboxesState(check);\n setValue();\n };\n\n const handleExpanded: MouseEventHandler<HTMLButtonElement> = (event) => {\n const target = event.target as HTMLButtonElement;\n const parent = target.closest('[data-li]');\n setExpandedAttributes(target, parent);\n };\n\n useEffect(() => {\n checkboxNodes.current = nodeArray('input') || [];\n }, []);\n\n useEffect(() => {\n if (defaultValue) {\n checkboxNodes.current.forEach((checkbox) => {\n if (defaultValue.includes(checkbox.value)) {\n checkbox.checked = true;\n setCheckboxesState(checkbox);\n }\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [defaultValue]);\n\n return (\n <div>\n {title && <span className={styles['checkbox-tree__header']}>{title}</span>}\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\n <div onClick={handleChange} data-ul role=\"tree\" tabIndex={0}>\n {checkboxTree.map(({ itemName, children }) => (\n <div\n key={itemName}\n className={styles['checkbox-tree__branch']}\n data-li\n aria-expanded={lessThan.md ? 'false' : 'true'}\n >\n <FormField inline className={styles['checkbox-tree__branch--formfield']}>\n <Button variant=\"blank\" onClick={handleExpanded}>\n <Icon\n name=\"CheveronRight\"\n size={16}\n className={clsx(styles['checkbox-tree__branch--icon'], {\n [styles['checkbox-tree__branch--icon--expanded']]: !lessThan.md,\n })}\n />\n </Button>\n <Checkbox id={itemName} disabled={children.every((checkbox) => checkbox.disabled)} />\n <Label htmlFor={itemName}>{itemName}</Label>\n </FormField>\n <div\n className={clsx(styles['checkbox-tree__leaves'], {\n [styles['checkbox-tree__leaves--expanded']]: !lessThan.md,\n })}\n data-ul\n >\n {children.map(({ itemName, itemValue, disabled }) => (\n <div key={itemName} className={styles['checkbox-tree__leaf']} data-li>\n <FormField inline className={styles['checkbox-tree__branch--formfield']}>\n <Checkbox id={itemName} name={itemName} value={itemValue} disabled={disabled} />\n <Label htmlFor={itemName}>{itemName}</Label>\n </FormField>\n </div>\n ))}\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n};\n"],"names":["CheckboxTree","title","checkboxTree","defaultValue","onChange","checkboxNodes","useRef","lessThan","useResponsive","nodeArray","selector","parent","setValue","values","checkbox","setCheckboxesState","check","_b","_a","checkStatus","_c","status","every","some","setExpandedAttributes","trigger","container","children","styles","handleChange","event","parentCheckbox","child","handleExpanded","target","useEffect","itemName","jsxs","FormField","jsx","Button","Icon","clsx","Checkbox","Label","itemValue","disabled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCaA,KAAe,CAAC,EAAE,OAAAC,GAAO,cAAAC,GAAc,cAAAC,GAAc,UAAAC,QAAkC;AAC5F,QAAAC,IAAgBC,EAA2B,EAAE,GAC7C,EAAE,UAAAC,EAAS,IAAIC,EAAc,GAE7BC,IAAY,CAACC,GAAkBC,IAAS,aAAa,CAAA,EAAG,MAAM,KAAKA,EAAO,iBAAiBD,CAAQ,CAAC,GAEpGE,IAAW,MAAM;AACrB,UAAMC,IAASR,EAAc,QAAQ,OAAO,CAACQ,GAAQC,OAC/CA,EAAS,QAAQA,EAAS,WAC5BD,EAAO,KAAKC,EAAS,KAAK,GAErBD,IACN,EAAc;AAEb,IAAAT,OAAmBS,CAAM;AAAA,EAC/B,GAEME,IAAqB,CAACC,MAA4B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;"}
|
|
1
|
+
{"version":3,"file":"CheckboxTree.js","sources":["../../../src/components/CheckboxTree/CheckboxTree.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport type { MouseEventHandler } from 'react';\n\nimport styles from './CheckboxTree.module.css';\n\nimport { Button, Checkbox, FormField, Icon, Label } from 'components';\nimport { useResponsive } from 'components/hooks/useResponsive';\n\n// TODO: Currently the checkbox tree shows odd behavior when a disabled checkbox is checked. When deselecting the parent checkbox, the disabled checkbox is deselected, and will never be checked again. We'll leave this for now, until we run into a real world example where this is necessary.\n\ntype CheckboxLeaf = {\n itemName: string;\n itemValue: string;\n disabled?: boolean;\n};\n\ntype CheckboxBranch = {\n itemName: string;\n children: CheckboxLeaf[];\n};\n\nexport interface CheckboxTreeProps {\n /** The title of the component. */\n title?: string;\n /** Array of checkbox groups with a label and array of children (itemName, itemValue and disabled boolean). */\n checkboxTree: CheckboxBranch[];\n /** Array of selected values. */\n defaultValue?: string[];\n /** `true` if the font-weight needs to be unset; otherwise, `false`. The default is `false`. */\n noLabelFrontWeight?: boolean;\n /** Returns array of selected values. */\n onChange?: (value: string[]) => void;\n}\n\n/** Represents a component to render a tree of checkboxes. */\nexport const CheckboxTree = ({\n title,\n checkboxTree,\n defaultValue,\n noLabelFrontWeight = false,\n onChange,\n}: CheckboxTreeProps) => {\n const checkboxNodes = useRef<HTMLInputElement[]>([]);\n const { lessThan } = useResponsive();\n\n const nodeArray = (selector: string, parent = document) => [].slice.call(parent.querySelectorAll(selector));\n\n const setValue = () => {\n const values = checkboxNodes.current.reduce((values, checkbox) => {\n if (checkbox.name && checkbox.checked) {\n values.push(checkbox.value);\n }\n return values;\n }, [] as string[]);\n\n if (onChange) onChange(values);\n };\n\n const setCheckboxesState = (check: HTMLInputElement) => {\n while (check) {\n const parent = check.closest('[data-ul]')?.parentNode?.querySelector('input');\n const siblings: HTMLInputElement[] = nodeArray(\n 'input',\n parent?.closest('[data-li]')?.querySelector('[data-ul]') as Document | undefined\n );\n\n const checkStatus = siblings.reduce((status, check) => {\n if (!check.disabled) status.push(check.checked);\n return status;\n }, [] as boolean[]);\n\n const every = checkStatus.every(Boolean);\n const some = checkStatus.some(Boolean);\n\n if (parent) {\n parent.checked = every;\n parent.indeterminate = !every && every !== some;\n }\n\n if (!parent || check === parent) {\n break;\n }\n\n check = parent;\n }\n };\n\n const setExpandedAttributes = (trigger: HTMLButtonElement, container: Element | null) => {\n const children = container?.querySelector('[data-ul]');\n\n (trigger.childNodes[0] as Element).classList.toggle(styles['checkbox-tree__branch--icon--expanded']);\n container\n ?.closest('[data-li]')\n ?.setAttribute(\n 'aria-expanded',\n container?.closest('[data-li]')?.getAttribute('aria-expanded') === 'false' ? 'true' : 'false'\n );\n\n if (children) {\n children.classList.toggle(styles['checkbox-tree__leaves--expanded']);\n }\n };\n\n const handleChange: MouseEventHandler<HTMLDivElement> = (event) => {\n const check = event.target as HTMLInputElement;\n\n if (!check || !check.parentNode || !check.parentNode.parentNode) return;\n const parentCheckbox = check.parentNode.parentNode as HTMLElement;\n\n if (\n lessThan.md &&\n check.previousElementSibling?.tagName === 'BUTTON' &&\n parentCheckbox.getAttribute('aria-expanded') === 'false'\n ) {\n event.preventDefault();\n setExpandedAttributes(parentCheckbox.querySelector('button') as HTMLButtonElement, parentCheckbox);\n return;\n }\n\n if (checkboxNodes.current.indexOf(check) === -1) return;\n\n const children: HTMLInputElement[] = (check.parentNode.parentNode as Document)\n ? nodeArray('input', check.parentNode.parentNode as Document)\n : [];\n\n children.forEach((child) => {\n return (child.checked = child.disabled ? false : check.checked);\n });\n\n setCheckboxesState(check);\n setValue();\n };\n\n const handleExpanded: MouseEventHandler<HTMLButtonElement> = (event) => {\n const target = event.target as HTMLButtonElement;\n const parent = target.closest('[data-li]');\n setExpandedAttributes(target, parent);\n };\n\n useEffect(() => {\n checkboxNodes.current = nodeArray('input') || [];\n }, []);\n\n useEffect(() => {\n if (defaultValue) {\n checkboxNodes.current.forEach((checkbox) => {\n if (defaultValue.includes(checkbox.value)) {\n checkbox.checked = true;\n setCheckboxesState(checkbox);\n }\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [defaultValue]);\n\n return (\n <div>\n {title && <span className={styles['checkbox-tree__header']}>{title}</span>}\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\n <div onClick={handleChange} data-ul role=\"tree\" tabIndex={0}>\n {checkboxTree.map(({ itemName, children }) => (\n <div\n key={itemName}\n className={styles['checkbox-tree__branch']}\n data-li\n aria-expanded={lessThan.md ? 'false' : 'true'}\n >\n <FormField inline className={styles['checkbox-tree__branch--formfield']}>\n <Button variant=\"blank\" onClick={handleExpanded}>\n <Icon\n name=\"CheveronRight\"\n size={16}\n className={clsx(styles['checkbox-tree__branch--icon'], {\n [styles['checkbox-tree__branch--icon--expanded']]: !lessThan.md,\n })}\n />\n </Button>\n <Checkbox id={itemName} disabled={children.every((checkbox) => checkbox.disabled)} />\n <Label htmlFor={itemName} noFontWeight={noLabelFrontWeight}>\n {itemName}\n </Label>\n </FormField>\n <div\n className={clsx(styles['checkbox-tree__leaves'], {\n [styles['checkbox-tree__leaves--expanded']]: !lessThan.md,\n })}\n data-ul\n >\n {children.map(({ itemName, itemValue, disabled }) => (\n <div key={itemName} className={styles['checkbox-tree__leaf']} data-li>\n <FormField inline className={styles['checkbox-tree__branch--formfield']}>\n <Checkbox id={itemName} name={itemName} value={itemValue} disabled={disabled} />\n <Label htmlFor={itemName} noFontWeight={noLabelFrontWeight}>\n {itemName}\n </Label>\n </FormField>\n </div>\n ))}\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n};\n"],"names":["CheckboxTree","title","checkboxTree","defaultValue","noLabelFrontWeight","onChange","checkboxNodes","useRef","lessThan","useResponsive","nodeArray","selector","parent","setValue","values","checkbox","setCheckboxesState","check","_b","_a","checkStatus","_c","status","every","some","setExpandedAttributes","trigger","container","children","styles","handleChange","event","parentCheckbox","child","handleExpanded","target","useEffect","itemName","jsx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CAAiC,CAAC,GAAG,CAACrB,EAAS;AAAA,cAAA,CACxD;AAAA,cACD,WAAO;AAAA,cAEN,UAAAoB,EAAS,IAAI,CAAC,EAAE,UAAAS,GAAU,WAAAS,GAAW,UAAAC,EACpC,MAAA,gBAAAP,EAAC,OAAmB,EAAA,WAAWX,EAAO,qBAAqB,GAAG,WAAO,IACnE,UAAC,gBAAAS,EAAAC,GAAA,EAAU,QAAM,IAAC,WAAWV,EAAO,kCAAkC,GACpE,UAAA;AAAA,gBAAA,gBAAAW,EAACI,KAAS,IAAIP,GAAU,MAAMA,GAAU,OAAOS,GAAW,UAAAC,GAAoB;AAAA,kCAC7EF,GAAM,EAAA,SAASR,GAAU,cAAcjC,GACrC,UAAAiC,EACH,CAAA;AAAA,cAAA,EACF,CAAA,EAAA,GANQA,CAOV,CACD;AAAA,YAAA;AAAA,UAAA;AAAA,QACH;AAAA,MAAA;AAAA,MApCKA;AAAA,IAAA,CAsCR,EACH,CAAA;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ChipProps {
|
|
2
|
+
/** Text on the chip */
|
|
3
|
+
label: string;
|
|
4
|
+
/** Function to remove chip from chip-list on label-text*/
|
|
5
|
+
onDelete: (label: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const Chip: ({ label, onDelete }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as n } from "../Icon/Icon.js";
|
|
3
|
+
import '../../assets/Chip.css';const t = "_chip_7nmzv_1", e = "_chip__label_7nmzv_24", c = {
|
|
4
|
+
chip: t,
|
|
5
|
+
chip__label: e,
|
|
6
|
+
"chip__close-button": "_chip__close-button_7nmzv_31"
|
|
7
|
+
}, h = ({ label: _, onDelete: o }) => /* @__PURE__ */ i("button", { className: c.chip, onClick: () => o(_), children: [
|
|
8
|
+
/* @__PURE__ */ s("span", { className: c.chip__label, children: _ }),
|
|
9
|
+
/* @__PURE__ */ s(n, { name: "Cross", size: 20, className: c["chip__close-button"] })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
h as Chip
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=Chip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.js","sources":["../../../src/components/Chip/Chip.tsx"],"sourcesContent":["import styles from './Chip.module.css';\n\nimport { Icon } from 'components/Icon';\n\nexport interface ChipProps {\n /** Text on the chip */\n label: string;\n /** Function to remove chip from chip-list on label-text*/\n onDelete: (label: string) => void;\n}\n\nexport const Chip = ({ label, onDelete }: ChipProps) => {\n return (\n <button className={styles['chip']} onClick={() => onDelete(label)}>\n <span className={styles['chip__label']}>{label}</span>\n <Icon name=\"Cross\" size={20} className={styles['chip__close-button']} />\n </button>\n );\n};\n"],"names":["Chip","label","onDelete","jsxs","styles","jsx","Icon"],"mappings":";;;;;;GAWaA,IAAO,CAAC,EAAE,OAAAC,GAAO,UAAAC,QAE1B,gBAAAC,EAAC,UAAO,EAAA,WAAWC,EAAO,MAAS,SAAS,MAAMF,EAASD,CAAK,GAC9D,UAAA;AAAA,EAAA,gBAAAI,EAAC,QAAK,EAAA,WAAWD,EAAO,aAAiB,UAAMH,GAAA;AAAA,EAC/C,gBAAAI,EAACC,KAAK,MAAK,SAAQ,MAAM,IAAI,WAAWF,EAAO,oBAAoB,EAAG,CAAA;AAAA,GACxE;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ChipProps } from './Chip';
|
|
3
|
+
declare const _default: Meta<ChipProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ChipExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ChipProps>;
|
|
6
|
+
export declare const ChipLongLabel: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ChipProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { fn as t } from "../../index-DWzkl4aY.js";
|
|
3
|
+
import { Chip as e } from "./Chip.js";
|
|
4
|
+
const s = "<Chip label={string} onDelete={onDeleteFunction(label)}/>", b = {
|
|
5
|
+
title: "Atoms/Chip",
|
|
6
|
+
component: e,
|
|
7
|
+
argTypes: {},
|
|
8
|
+
parameters: {
|
|
9
|
+
inspectComponent: e,
|
|
10
|
+
codeString: s
|
|
11
|
+
}
|
|
12
|
+
}, n = (o) => /* @__PURE__ */ l(e, { ...o }), a = {
|
|
13
|
+
label: "Nederlands",
|
|
14
|
+
onDelete: t()
|
|
15
|
+
}, i = n.bind({});
|
|
16
|
+
i.args = {
|
|
17
|
+
...a
|
|
18
|
+
};
|
|
19
|
+
const r = n.bind({});
|
|
20
|
+
r.args = {
|
|
21
|
+
label: "Een filter met een veel te lang label",
|
|
22
|
+
onDelete: t()
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
i as ChipExample,
|
|
26
|
+
r as ChipLongLabel,
|
|
27
|
+
b as default
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Chip.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.stories.js","sources":["../../../src/components/Chip/Chip.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ChipProps } from './Chip';\n\nimport { Chip } from './Chip';\n\nconst codeString = '<Chip label={string} onDelete={onDeleteFunction(label)}/>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Chip',\n component: Chip,\n argTypes: {},\n parameters: {\n inspectComponent: Chip,\n codeString: codeString,\n },\n} as Meta<ChipProps>;\n\nconst Template: StoryFn<ChipProps> = (args) => <Chip {...args} />;\n\nconst defaultArgs: Partial<ChipProps> = {\n label: 'Nederlands',\n onDelete: fn(),\n};\n\nexport const ChipExample = Template.bind({});\nChipExample.args = {\n ...defaultArgs,\n};\n\nexport const ChipLongLabel = Template.bind({});\nChipLongLabel.args = {\n label: 'Een filter met een veel te lang label',\n onDelete: fn(),\n};\n"],"names":["codeString","Chip_stories","Chip","Template","args","jsx","defaultArgs","fn","ChipExample","ChipLongLabel"],"mappings":";;;AAOA,MAAMA,IAAa,6DAGJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU,CAAC;AAAA,EACX,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAA+B,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAM,GAAGE,GAAM,GAEzDE,IAAkC;AAAA,EACtC,OAAO;AAAA,EACP,UAAUC,EAAG;AACf,GAEaC,IAAcL,EAAS,KAAK,CAAE,CAAA;AAC3CK,EAAY,OAAO;AAAA,EACjB,GAAGF;AACL;AAEO,MAAMG,IAAgBN,EAAS,KAAK,CAAE,CAAA;AAC7CM,EAAc,OAAO;AAAA,EACnB,OAAO;AAAA,EACP,UAAUF,EAAG;AACf;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Chip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -11,6 +11,7 @@ export * from './Checkbox';
|
|
|
11
11
|
export * from './CheckboxButton';
|
|
12
12
|
export * from './CheckboxButtonBar';
|
|
13
13
|
export * from './CheckboxTree';
|
|
14
|
+
export * from './Chip';
|
|
14
15
|
export * from './Drawer';
|
|
15
16
|
export * from './EmptyStateDataDisplay';
|
|
16
17
|
export * from './FeedbackBox';
|
package/dist/components/index.js
CHANGED
|
@@ -1,107 +1,109 @@
|
|
|
1
1
|
import { Accordion as t } from "./Accordion/Accordion.js";
|
|
2
2
|
import { AccordionCard as p } from "./AccordionCard/AccordionCard.js";
|
|
3
3
|
import { ActionList as m } from "./ActionList/ActionList.js";
|
|
4
|
-
import { AppStatusBar as
|
|
4
|
+
import { AppStatusBar as i } from "./AppStatusBar/AppStatusBar.js";
|
|
5
5
|
import { Attention as n } from "./Attention/Attention.js";
|
|
6
6
|
import { Backdrop as c } from "./Backdrop/Backdrop.js";
|
|
7
7
|
import { ButtonGroup as d } from "./ButtonGroup/ButtonGroup.js";
|
|
8
8
|
import { Button as B } from "./Buttons/Button.js";
|
|
9
|
-
import { LinkButton as
|
|
10
|
-
import { MenuButton as
|
|
9
|
+
import { LinkButton as C } from "./Buttons/LinkButton.js";
|
|
10
|
+
import { MenuButton as k } from "./Buttons/MenuButton.js";
|
|
11
11
|
import { Card as L } from "./Card/Card.js";
|
|
12
12
|
import { Checkbox as g } from "./Checkbox/Checkbox.js";
|
|
13
|
-
import { CheckboxButton as
|
|
13
|
+
import { CheckboxButton as I } from "./CheckboxButton/CheckboxButton.js";
|
|
14
14
|
import { CheckboxButtonBar as y } from "./CheckboxButtonBar/CheckboxButtonBar.js";
|
|
15
15
|
import { CheckboxTree as D } from "./CheckboxTree/CheckboxTree.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
16
|
+
import { Chip as v } from "./Chip/Chip.js";
|
|
17
|
+
import { Drawer as O } from "./Drawer/Drawer.js";
|
|
18
|
+
import { EmptyStateDataDisplay as E } from "./EmptyStateDataDisplay/EmptyStateDataDisplay.js";
|
|
19
|
+
import { FeedbackBox as H } from "./FeedbackBox/FeedbackBox.js";
|
|
20
|
+
import { FieldHint as N } from "./FieldHint/FieldHint.js";
|
|
21
|
+
import { Fieldset as q } from "./Fieldset/Fieldset.js";
|
|
22
|
+
import { FormField as K } from "./FormField/FormField.js";
|
|
23
|
+
import { FormInput as U } from "./FormInput/FormInput.js";
|
|
24
|
+
import { GridRow as W } from "./GridRow/GridRow.js";
|
|
25
|
+
import { HorizontalList as Y } from "./HorizontalList/HorizontalList.js";
|
|
26
|
+
import { Icon as _ } from "./Icon/Icon.js";
|
|
27
|
+
import { IconButton as oo } from "./IconButton/IconButton.js";
|
|
28
|
+
import { InfoMessage as to } from "./InfoMessage/InfoMessage.js";
|
|
29
|
+
import { Input as po } from "./Input/Input.js";
|
|
30
|
+
import { InputField as mo } from "./InputField/InputField.js";
|
|
31
|
+
import { Label as io } from "./Label/Label.js";
|
|
32
|
+
import { MenuLink as no } from "./MenuLink/MenuLink.js";
|
|
33
|
+
import { MetaDataList as co } from "./MetaDataList/MetaDataList.js";
|
|
34
|
+
import { ModalDialog as so } from "./ModalDialog/ModalDialog.js";
|
|
35
|
+
import { M as So } from "../TablePlugin-E6UFlCgy.js";
|
|
36
|
+
import { OverlayCloseButton as bo } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
37
|
+
import { OverlayStepBar as Fo } from "./OverlayStepBar/OverlayStepBar.js";
|
|
38
|
+
import { PageOverlay as Mo } from "./PageOverlay/PageOverlay.js";
|
|
39
|
+
import { Periods as ho } from "./Periods/Periods.js";
|
|
40
|
+
import { PeriodSelector as Po } from "./PeriodSelector/PeriodSelector.js";
|
|
41
|
+
import { ProgrammeCard as Ao } from "./ProgrammeCard/ProgrammeCard.js";
|
|
42
|
+
import { RadioButton as Ro } from "./RadioButton/RadioButton.js";
|
|
43
|
+
import { Repeater as wo } from "./Repeater/Repeater.js";
|
|
44
|
+
import { Rte as To, RteEditor as Eo } from "./RteEditor/RteEditor.js";
|
|
45
|
+
import { SectionNotification as Ho } from "./SectionNotification/SectionNotification.js";
|
|
46
|
+
import { SelectListbox as No } from "./SelectListbox/SelectListbox.js";
|
|
47
|
+
import { SelectProvider as qo, useSelect as Jo } from "./SelectListbox/SelectProvider.js";
|
|
48
|
+
import { Sortable as Qo } from "./Sortable/Sortable.js";
|
|
49
|
+
import { Spinner as Vo } from "./Spinner/Spinner.js";
|
|
50
|
+
import { StatusPill as Xo } from "./StatusPill/StatusPill.js";
|
|
51
|
+
import { ToggleSwitch as Zo } from "./ToggleSwitch/ToggleSwitch.js";
|
|
52
|
+
import { Tooltip as $o } from "./Tooltip/Tooltip.js";
|
|
52
53
|
export {
|
|
53
54
|
t as Accordion,
|
|
54
55
|
p as AccordionCard,
|
|
55
56
|
m as ActionList,
|
|
56
|
-
|
|
57
|
+
i as AppStatusBar,
|
|
57
58
|
n as Attention,
|
|
58
59
|
c as Backdrop,
|
|
59
60
|
B as Button,
|
|
60
61
|
d as ButtonGroup,
|
|
61
62
|
L as Card,
|
|
62
63
|
g as Checkbox,
|
|
63
|
-
|
|
64
|
+
I as CheckboxButton,
|
|
64
65
|
y as CheckboxButtonBar,
|
|
65
66
|
D as CheckboxTree,
|
|
66
|
-
v as
|
|
67
|
-
O as
|
|
68
|
-
E as
|
|
69
|
-
H as
|
|
70
|
-
N as
|
|
71
|
-
q as
|
|
72
|
-
K as
|
|
73
|
-
U as
|
|
74
|
-
W as
|
|
75
|
-
Y as
|
|
76
|
-
_ as
|
|
77
|
-
oo as
|
|
78
|
-
to as
|
|
79
|
-
po as
|
|
80
|
-
mo as
|
|
81
|
-
|
|
82
|
-
C as
|
|
83
|
-
|
|
84
|
-
no as
|
|
85
|
-
co as
|
|
86
|
-
so as
|
|
87
|
-
So as
|
|
88
|
-
|
|
89
|
-
Fo as
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
ho as
|
|
93
|
-
Ao as
|
|
94
|
-
Ro as
|
|
95
|
-
wo as
|
|
96
|
-
|
|
97
|
-
Eo as
|
|
98
|
-
Ho as
|
|
99
|
-
No as
|
|
100
|
-
|
|
101
|
-
Qo as
|
|
102
|
-
Vo as
|
|
103
|
-
Xo as
|
|
104
|
-
Zo as
|
|
105
|
-
|
|
67
|
+
v as Chip,
|
|
68
|
+
O as Drawer,
|
|
69
|
+
E as EmptyStateDataDisplay,
|
|
70
|
+
H as FeedbackBox,
|
|
71
|
+
N as FieldHint,
|
|
72
|
+
q as Fieldset,
|
|
73
|
+
K as FormField,
|
|
74
|
+
U as FormInput,
|
|
75
|
+
W as GridRow,
|
|
76
|
+
Y as HorizontalList,
|
|
77
|
+
_ as Icon,
|
|
78
|
+
oo as IconButton,
|
|
79
|
+
to as InfoMessage,
|
|
80
|
+
po as Input,
|
|
81
|
+
mo as InputField,
|
|
82
|
+
io as Label,
|
|
83
|
+
C as LinkButton,
|
|
84
|
+
k as MenuButton,
|
|
85
|
+
no as MenuLink,
|
|
86
|
+
co as MetaDataList,
|
|
87
|
+
so as ModalDialog,
|
|
88
|
+
So as MultiSelect,
|
|
89
|
+
bo as OverlayCloseButton,
|
|
90
|
+
Fo as OverlayStepBar,
|
|
91
|
+
Mo as PageOverlay,
|
|
92
|
+
Po as PeriodSelector,
|
|
93
|
+
ho as Periods,
|
|
94
|
+
Ao as ProgrammeCard,
|
|
95
|
+
Ro as RadioButton,
|
|
96
|
+
wo as Repeater,
|
|
97
|
+
To as Rte,
|
|
98
|
+
Eo as RteEditor,
|
|
99
|
+
Ho as SectionNotification,
|
|
100
|
+
No as SelectListbox,
|
|
101
|
+
qo as SelectProvider,
|
|
102
|
+
Qo as Sortable,
|
|
103
|
+
Vo as Spinner,
|
|
104
|
+
Xo as StatusPill,
|
|
105
|
+
Zo as ToggleSwitch,
|
|
106
|
+
$o as Tooltip,
|
|
107
|
+
Jo as useSelect
|
|
106
108
|
};
|
|
107
109
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,107 +1,109 @@
|
|
|
1
1
|
import { Accordion as t } from "./components/Accordion/Accordion.js";
|
|
2
2
|
import { AccordionCard as p } from "./components/AccordionCard/AccordionCard.js";
|
|
3
3
|
import { ActionList as m } from "./components/ActionList/ActionList.js";
|
|
4
|
-
import { AppStatusBar as
|
|
4
|
+
import { AppStatusBar as i } from "./components/AppStatusBar/AppStatusBar.js";
|
|
5
5
|
import { Attention as n } from "./components/Attention/Attention.js";
|
|
6
6
|
import { Backdrop as c } from "./components/Backdrop/Backdrop.js";
|
|
7
7
|
import { ButtonGroup as d } from "./components/ButtonGroup/ButtonGroup.js";
|
|
8
8
|
import { Button as B } from "./components/Buttons/Button.js";
|
|
9
|
-
import { LinkButton as
|
|
10
|
-
import { MenuButton as
|
|
9
|
+
import { LinkButton as C } from "./components/Buttons/LinkButton.js";
|
|
10
|
+
import { MenuButton as k } from "./components/Buttons/MenuButton.js";
|
|
11
11
|
import { Card as L } from "./components/Card/Card.js";
|
|
12
12
|
import { Checkbox as g } from "./components/Checkbox/Checkbox.js";
|
|
13
|
-
import { CheckboxButton as
|
|
13
|
+
import { CheckboxButton as I } from "./components/CheckboxButton/CheckboxButton.js";
|
|
14
14
|
import { CheckboxButtonBar as y } from "./components/CheckboxButtonBar/CheckboxButtonBar.js";
|
|
15
15
|
import { CheckboxTree as D } from "./components/CheckboxTree/CheckboxTree.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
16
|
+
import { Chip as v } from "./components/Chip/Chip.js";
|
|
17
|
+
import { Drawer as O } from "./components/Drawer/Drawer.js";
|
|
18
|
+
import { EmptyStateDataDisplay as E } from "./components/EmptyStateDataDisplay/EmptyStateDataDisplay.js";
|
|
19
|
+
import { FeedbackBox as H } from "./components/FeedbackBox/FeedbackBox.js";
|
|
20
|
+
import { FieldHint as N } from "./components/FieldHint/FieldHint.js";
|
|
21
|
+
import { Fieldset as q } from "./components/Fieldset/Fieldset.js";
|
|
22
|
+
import { FormField as K } from "./components/FormField/FormField.js";
|
|
23
|
+
import { FormInput as U } from "./components/FormInput/FormInput.js";
|
|
24
|
+
import { GridRow as W } from "./components/GridRow/GridRow.js";
|
|
25
|
+
import { HorizontalList as Y } from "./components/HorizontalList/HorizontalList.js";
|
|
26
|
+
import { Icon as _ } from "./components/Icon/Icon.js";
|
|
27
|
+
import { IconButton as oo } from "./components/IconButton/IconButton.js";
|
|
28
|
+
import { InfoMessage as to } from "./components/InfoMessage/InfoMessage.js";
|
|
29
|
+
import { Input as po } from "./components/Input/Input.js";
|
|
30
|
+
import { InputField as mo } from "./components/InputField/InputField.js";
|
|
31
|
+
import { Label as io } from "./components/Label/Label.js";
|
|
32
|
+
import { MenuLink as no } from "./components/MenuLink/MenuLink.js";
|
|
33
|
+
import { MetaDataList as co } from "./components/MetaDataList/MetaDataList.js";
|
|
34
|
+
import { ModalDialog as so } from "./components/ModalDialog/ModalDialog.js";
|
|
35
|
+
import { M as So } from "./TablePlugin-E6UFlCgy.js";
|
|
36
|
+
import { OverlayCloseButton as bo } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
37
|
+
import { OverlayStepBar as Fo } from "./components/OverlayStepBar/OverlayStepBar.js";
|
|
38
|
+
import { PageOverlay as Mo } from "./components/PageOverlay/PageOverlay.js";
|
|
39
|
+
import { Periods as ho } from "./components/Periods/Periods.js";
|
|
40
|
+
import { PeriodSelector as Po } from "./components/PeriodSelector/PeriodSelector.js";
|
|
41
|
+
import { ProgrammeCard as Ao } from "./components/ProgrammeCard/ProgrammeCard.js";
|
|
42
|
+
import { RadioButton as Ro } from "./components/RadioButton/RadioButton.js";
|
|
43
|
+
import { Repeater as wo } from "./components/Repeater/Repeater.js";
|
|
44
|
+
import { Rte as To, RteEditor as Eo } from "./components/RteEditor/RteEditor.js";
|
|
45
|
+
import { SectionNotification as Ho } from "./components/SectionNotification/SectionNotification.js";
|
|
46
|
+
import { SelectListbox as No } from "./components/SelectListbox/SelectListbox.js";
|
|
47
|
+
import { SelectProvider as qo, useSelect as Jo } from "./components/SelectListbox/SelectProvider.js";
|
|
48
|
+
import { Sortable as Qo } from "./components/Sortable/Sortable.js";
|
|
49
|
+
import { Spinner as Vo } from "./components/Spinner/Spinner.js";
|
|
50
|
+
import { StatusPill as Xo } from "./components/StatusPill/StatusPill.js";
|
|
51
|
+
import { ToggleSwitch as Zo } from "./components/ToggleSwitch/ToggleSwitch.js";
|
|
52
|
+
import { Tooltip as $o } from "./components/Tooltip/Tooltip.js";
|
|
52
53
|
export {
|
|
53
54
|
t as Accordion,
|
|
54
55
|
p as AccordionCard,
|
|
55
56
|
m as ActionList,
|
|
56
|
-
|
|
57
|
+
i as AppStatusBar,
|
|
57
58
|
n as Attention,
|
|
58
59
|
c as Backdrop,
|
|
59
60
|
B as Button,
|
|
60
61
|
d as ButtonGroup,
|
|
61
62
|
L as Card,
|
|
62
63
|
g as Checkbox,
|
|
63
|
-
|
|
64
|
+
I as CheckboxButton,
|
|
64
65
|
y as CheckboxButtonBar,
|
|
65
66
|
D as CheckboxTree,
|
|
66
|
-
v as
|
|
67
|
-
O as
|
|
68
|
-
E as
|
|
69
|
-
H as
|
|
70
|
-
N as
|
|
71
|
-
q as
|
|
72
|
-
K as
|
|
73
|
-
U as
|
|
74
|
-
W as
|
|
75
|
-
Y as
|
|
76
|
-
_ as
|
|
77
|
-
oo as
|
|
78
|
-
to as
|
|
79
|
-
po as
|
|
80
|
-
mo as
|
|
81
|
-
|
|
82
|
-
C as
|
|
83
|
-
|
|
84
|
-
no as
|
|
85
|
-
co as
|
|
86
|
-
so as
|
|
87
|
-
So as
|
|
88
|
-
|
|
89
|
-
Fo as
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
ho as
|
|
93
|
-
Ao as
|
|
94
|
-
Ro as
|
|
95
|
-
wo as
|
|
96
|
-
|
|
97
|
-
Eo as
|
|
98
|
-
Ho as
|
|
99
|
-
No as
|
|
100
|
-
|
|
101
|
-
Qo as
|
|
102
|
-
Vo as
|
|
103
|
-
Xo as
|
|
104
|
-
Zo as
|
|
105
|
-
|
|
67
|
+
v as Chip,
|
|
68
|
+
O as Drawer,
|
|
69
|
+
E as EmptyStateDataDisplay,
|
|
70
|
+
H as FeedbackBox,
|
|
71
|
+
N as FieldHint,
|
|
72
|
+
q as Fieldset,
|
|
73
|
+
K as FormField,
|
|
74
|
+
U as FormInput,
|
|
75
|
+
W as GridRow,
|
|
76
|
+
Y as HorizontalList,
|
|
77
|
+
_ as Icon,
|
|
78
|
+
oo as IconButton,
|
|
79
|
+
to as InfoMessage,
|
|
80
|
+
po as Input,
|
|
81
|
+
mo as InputField,
|
|
82
|
+
io as Label,
|
|
83
|
+
C as LinkButton,
|
|
84
|
+
k as MenuButton,
|
|
85
|
+
no as MenuLink,
|
|
86
|
+
co as MetaDataList,
|
|
87
|
+
so as ModalDialog,
|
|
88
|
+
So as MultiSelect,
|
|
89
|
+
bo as OverlayCloseButton,
|
|
90
|
+
Fo as OverlayStepBar,
|
|
91
|
+
Mo as PageOverlay,
|
|
92
|
+
Po as PeriodSelector,
|
|
93
|
+
ho as Periods,
|
|
94
|
+
Ao as ProgrammeCard,
|
|
95
|
+
Ro as RadioButton,
|
|
96
|
+
wo as Repeater,
|
|
97
|
+
To as Rte,
|
|
98
|
+
Eo as RteEditor,
|
|
99
|
+
Ho as SectionNotification,
|
|
100
|
+
No as SelectListbox,
|
|
101
|
+
qo as SelectProvider,
|
|
102
|
+
Qo as Sortable,
|
|
103
|
+
Vo as Spinner,
|
|
104
|
+
Xo as StatusPill,
|
|
105
|
+
Zo as ToggleSwitch,
|
|
106
|
+
$o as Tooltip,
|
|
107
|
+
Jo as useSelect
|
|
106
108
|
};
|
|
107
109
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uva-glass/component-library",
|
|
3
3
|
"author": "Team Glass - Frontend vrienden",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.5.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"@storybook/react-vite": "^8.4.7",
|
|
59
59
|
"@storybook/react": "^8.4.7",
|
|
60
60
|
"@storybook/test": "^8.4.7",
|
|
61
|
-
"@types/node": "^22.10.
|
|
62
|
-
"@types/react-dom": "^18.3.
|
|
63
|
-
"@types/react": "^18.3.
|
|
61
|
+
"@types/node": "^22.10.2",
|
|
62
|
+
"@types/react-dom": "^18.3.5",
|
|
63
|
+
"@types/react": "^18.3.16",
|
|
64
64
|
"@uva-glass/eslint-config": "^1.3.1",
|
|
65
65
|
"@uva-glass/stylelint-config": "^1.1.0",
|
|
66
66
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react": "^18.3.1",
|
|
82
82
|
"semantic-release": "^24.2.0",
|
|
83
83
|
"storybook": "^8.4.7",
|
|
84
|
-
"style-dictionary": "^4.
|
|
84
|
+
"style-dictionary": "^4.3.0",
|
|
85
85
|
"stylelint-config-recommended": "^14.0.1",
|
|
86
86
|
"stylelint-config-standard": "^36.0.1",
|
|
87
87
|
"stylelint-order": "^6.0.4",
|