@uva-glass/component-library 1.34.0 → 1.35.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/HorizontalList.css +1 -0
- package/dist/assets/ProgrammeCard.css +1 -1
- package/dist/components/HorizontalList/HorizontalList.d.ts +5 -0
- package/dist/components/HorizontalList/HorizontalList.js +12 -0
- package/dist/components/HorizontalList/HorizontalList.js.map +1 -0
- package/dist/components/HorizontalList/HorizontalList.stories.d.ts +5 -0
- package/dist/components/HorizontalList/HorizontalList.stories.js +22 -0
- package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -0
- package/dist/components/HorizontalList/index.d.ts +1 -0
- package/dist/components/HorizontalList/index.js +5 -0
- package/dist/components/HorizontalList/index.js.map +1 -0
- package/dist/components/ProgrammeCard/ProgrammeCard.js +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +45 -43
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +45 -43
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as l, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/HorizontalList.css';const o = {
|
|
3
|
+
"horizontal-list-wrapper": "_horizontal-list-wrapper_1ahjq_1",
|
|
4
|
+
"horizontal-list-separator": "_horizontal-list-separator_1ahjq_5"
|
|
5
|
+
}, n = ({ values: r, separator: s = "•" }) => /* @__PURE__ */ l("div", { className: o["horizontal-list-wrapper"], children: r.map((a, t) => /* @__PURE__ */ e("span", { children: [
|
|
6
|
+
a,
|
|
7
|
+
t < r.length - 1 && /* @__PURE__ */ l("span", { className: o["horizontal-list-separator"], dangerouslySetInnerHTML: { __html: s } })
|
|
8
|
+
] }, `${a.replace(" ", "-")}_${t}`)) });
|
|
9
|
+
export {
|
|
10
|
+
n as HorizontalList
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=HorizontalList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalList.js","sources":["../../../src/components/HorizontalList/HorizontalList.tsx"],"sourcesContent":["import styles from './HorizontalList.module.css';\n\nexport interface HorizontalListProps {\n values: string[];\n separator?: string;\n}\n\nexport const HorizontalList = ({ values, separator = '•' }: HorizontalListProps) => {\n return (\n <div className={styles['horizontal-list-wrapper']}>\n {values.map((string, index) => (\n <span key={`${string.replace(' ', '-')}_${index}`}>\n {string}\n {index < values.length - 1 && (\n <span className={styles['horizontal-list-separator']} dangerouslySetInnerHTML={{ __html: separator }} />\n )}\n </span>\n ))}\n </div>\n );\n};\n"],"names":["HorizontalList","values","separator","jsx","styles","string","index","jsxs"],"mappings":";;;;GAOaA,IAAiB,CAAC,EAAE,QAAAC,GAAQ,WAAAC,IAAY,eAEhD,gBAAAC,EAAA,OAAA,EAAI,WAAWC,EAAO,yBAAyB,GAC7C,UAAOH,EAAA,IAAI,CAACI,GAAQC,MACnB,gBAAAC,EAAC,QACE,EAAA,UAAA;AAAA,EAAAF;AAAA,EACAC,IAAQL,EAAO,SAAS,uBACtB,QAAK,EAAA,WAAWG,EAAO,2BAA2B,GAAG,yBAAyB,EAAE,QAAQF,EAAa,EAAA,CAAA;AAH/F,EAAA,GAAA,GAAGG,EAAO,QAAQ,KAAK,GAAG,CAAC,IAAIC,CAAK,EAK/C,CACD,EACH,CAAA;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HorizontalListProps } from './HorizontalList';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, HorizontalListProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const HorizontalListExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, HorizontalListProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { HorizontalList as t } from "./HorizontalList.js";
|
|
3
|
+
const n = {
|
|
4
|
+
title: "Atoms/HorizontalList",
|
|
5
|
+
component: t,
|
|
6
|
+
argTypes: {
|
|
7
|
+
separator: {
|
|
8
|
+
control: "text"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}, a = (o) => /* @__PURE__ */ s(t, { ...o }), r = {
|
|
12
|
+
values: ["Curabitur consequat", "Lectus sit amet luctus vulputate", "Nisi semi mattis"],
|
|
13
|
+
separator: "•"
|
|
14
|
+
}, e = a.bind({});
|
|
15
|
+
e.args = {
|
|
16
|
+
...r
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
e as HorizontalListExample,
|
|
20
|
+
n as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=HorizontalList.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalList.stories.js","sources":["../../../src/components/HorizontalList/HorizontalList.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { HorizontalListProps } from './HorizontalList';\n\nimport { HorizontalList } from './HorizontalList';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/HorizontalList',\n component: HorizontalList,\n argTypes: {\n separator: {\n control: 'text',\n },\n },\n} as Meta<HorizontalListProps>;\n\nconst Template: StoryFn<HorizontalListProps> = (args) => <HorizontalList {...args} />;\n\nconst defaultArgs: Partial<HorizontalListProps> = {\n values: ['Curabitur consequat', 'Lectus sit amet luctus vulputate', 'Nisi semi mattis'],\n separator: '•',\n};\n\nexport const HorizontalListExample = Template.bind({});\nHorizontalListExample.args = {\n ...defaultArgs,\n};\n"],"names":["HorizontalList_stories","HorizontalList","Template","args","jsx","defaultArgs","HorizontalListExample"],"mappings":";;AAMA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,WAAW;AAAA,MACT,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAAyC,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAgB,GAAGE,EAAM,CAAA,GAE7EE,IAA4C;AAAA,EAChD,QAAQ,CAAC,uBAAuB,oCAAoC,kBAAkB;AAAA,EACtF,WAAW;AACb,GAEaC,IAAwBJ,EAAS,KAAK,EAAE;AACrDI,EAAsB,OAAO;AAAA,EAC3B,GAAGD;AACL;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HorizontalList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/ProgrammeCard.css';const m = {
|
|
3
|
-
"programme-card": "_programme-
|
|
4
|
-
"programme-card__divider": "_programme-
|
|
3
|
+
"programme-card": "_programme-card_18hy2_3",
|
|
4
|
+
"programme-card__divider": "_programme-card__divider_18hy2_19"
|
|
5
5
|
}, p = ({ onClick: a, header: d, details: e }) => {
|
|
6
6
|
const o = (r) => {
|
|
7
7
|
a && (r.key === "Enter" || r.key === " ") && (r.preventDefault(), a(r));
|
package/dist/components/index.js
CHANGED
|
@@ -8,29 +8,30 @@ import { Card as d } from "./Card/Card.js";
|
|
|
8
8
|
import { Checkbox as S } from "./Checkbox/Checkbox.js";
|
|
9
9
|
import { Drawer as M } from "./Drawer/Drawer.js";
|
|
10
10
|
import { FieldHint as I } from "./FieldHint/FieldHint.js";
|
|
11
|
-
import { Fieldset as
|
|
11
|
+
import { Fieldset as C } from "./Fieldset/Fieldset.js";
|
|
12
12
|
import { FormField as g } from "./FormField/FormField.js";
|
|
13
13
|
import { GridRow as A } from "./GridRow/GridRow.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
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 {
|
|
14
|
+
import { HorizontalList as P } from "./HorizontalList/HorizontalList.js";
|
|
15
|
+
import { Icon as v } from "./Icon/Icon.js";
|
|
16
|
+
import { IconButton as G } from "./IconButton/IconButton.js";
|
|
17
|
+
import { InfoMessage as h } from "./InfoMessage/InfoMessage.js";
|
|
18
|
+
import { Input as z } from "./Input/Input.js";
|
|
19
|
+
import { InputField as O } from "./InputField/InputField.js";
|
|
20
|
+
import { Label as j } from "./Label/Label.js";
|
|
21
|
+
import { M as E } from "../MenuLink-CIzBwlKY.js";
|
|
22
|
+
import { MetaDataList as K } from "./MetaDataList/MetaDataList.js";
|
|
23
|
+
import { ModalDialog as U } from "./ModalDialog/ModalDialog.js";
|
|
24
|
+
import { M as W } from "../MultiSelect-Drcfmp0z.js";
|
|
25
|
+
import { OverlayCloseButton as Y } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
26
|
+
import { ProgrammeCard as _ } from "./ProgrammeCard/ProgrammeCard.js";
|
|
27
|
+
import { RadioButton as oo } from "./RadioButton/RadioButton.js";
|
|
28
|
+
import { Repeater as to } from "./Repeater/Repeater.js";
|
|
29
|
+
import { SectionNotification as po } from "./SectionNotification/SectionNotification.js";
|
|
30
|
+
import { SelectListbox as fo } from "./SelectListbox/SelectListbox.js";
|
|
31
|
+
import { SelectProvider as io, useSelect as ao } from "./SelectListbox/SelectProvider.js";
|
|
32
|
+
import { Spinner as lo } from "./Spinner/Spinner.js";
|
|
33
|
+
import { StatusPill as co } from "./StatusPill/StatusPill.js";
|
|
34
|
+
import { Tooltip as So } from "./Tooltip/Tooltip.js";
|
|
34
35
|
export {
|
|
35
36
|
t as Accordion,
|
|
36
37
|
p as AppStatusBar,
|
|
@@ -42,29 +43,30 @@ export {
|
|
|
42
43
|
S as Checkbox,
|
|
43
44
|
M as Drawer,
|
|
44
45
|
I as FieldHint,
|
|
45
|
-
|
|
46
|
+
C as Fieldset,
|
|
46
47
|
g as FormField,
|
|
47
48
|
A as GridRow,
|
|
48
|
-
P as
|
|
49
|
-
v as
|
|
50
|
-
G as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
E as
|
|
56
|
-
K as
|
|
57
|
-
U as
|
|
58
|
-
W as
|
|
59
|
-
Y as
|
|
60
|
-
_ as
|
|
61
|
-
oo as
|
|
62
|
-
to as
|
|
63
|
-
po as
|
|
64
|
-
fo as
|
|
65
|
-
|
|
66
|
-
lo as
|
|
67
|
-
co as
|
|
68
|
-
|
|
49
|
+
P as HorizontalList,
|
|
50
|
+
v as Icon,
|
|
51
|
+
G as IconButton,
|
|
52
|
+
h as InfoMessage,
|
|
53
|
+
z as Input,
|
|
54
|
+
O as InputField,
|
|
55
|
+
j as Label,
|
|
56
|
+
E as MenuLink,
|
|
57
|
+
K as MetaDataList,
|
|
58
|
+
U as ModalDialog,
|
|
59
|
+
W as MultiSelect,
|
|
60
|
+
Y as OverlayCloseButton,
|
|
61
|
+
_ as ProgrammeCard,
|
|
62
|
+
oo as RadioButton,
|
|
63
|
+
to as Repeater,
|
|
64
|
+
po as SectionNotification,
|
|
65
|
+
fo as SelectListbox,
|
|
66
|
+
io as SelectProvider,
|
|
67
|
+
lo as Spinner,
|
|
68
|
+
co as StatusPill,
|
|
69
|
+
So as Tooltip,
|
|
70
|
+
ao as useSelect
|
|
69
71
|
};
|
|
70
72
|
//# 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
|
@@ -8,29 +8,30 @@ import { Card as d } from "./components/Card/Card.js";
|
|
|
8
8
|
import { Checkbox as S } from "./components/Checkbox/Checkbox.js";
|
|
9
9
|
import { Drawer as M } from "./components/Drawer/Drawer.js";
|
|
10
10
|
import { FieldHint as I } from "./components/FieldHint/FieldHint.js";
|
|
11
|
-
import { Fieldset as
|
|
11
|
+
import { Fieldset as C } from "./components/Fieldset/Fieldset.js";
|
|
12
12
|
import { FormField as g } from "./components/FormField/FormField.js";
|
|
13
13
|
import { GridRow as A } from "./components/GridRow/GridRow.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
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 {
|
|
14
|
+
import { HorizontalList as P } from "./components/HorizontalList/HorizontalList.js";
|
|
15
|
+
import { Icon as v } from "./components/Icon/Icon.js";
|
|
16
|
+
import { IconButton as G } from "./components/IconButton/IconButton.js";
|
|
17
|
+
import { InfoMessage as h } from "./components/InfoMessage/InfoMessage.js";
|
|
18
|
+
import { Input as z } from "./components/Input/Input.js";
|
|
19
|
+
import { InputField as O } from "./components/InputField/InputField.js";
|
|
20
|
+
import { Label as j } from "./components/Label/Label.js";
|
|
21
|
+
import { M as E } from "./MenuLink-CIzBwlKY.js";
|
|
22
|
+
import { MetaDataList as K } from "./components/MetaDataList/MetaDataList.js";
|
|
23
|
+
import { ModalDialog as U } from "./components/ModalDialog/ModalDialog.js";
|
|
24
|
+
import { M as W } from "./MultiSelect-Drcfmp0z.js";
|
|
25
|
+
import { OverlayCloseButton as Y } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
26
|
+
import { ProgrammeCard as _ } from "./components/ProgrammeCard/ProgrammeCard.js";
|
|
27
|
+
import { RadioButton as oo } from "./components/RadioButton/RadioButton.js";
|
|
28
|
+
import { Repeater as to } from "./components/Repeater/Repeater.js";
|
|
29
|
+
import { SectionNotification as po } from "./components/SectionNotification/SectionNotification.js";
|
|
30
|
+
import { SelectListbox as fo } from "./components/SelectListbox/SelectListbox.js";
|
|
31
|
+
import { SelectProvider as io, useSelect as ao } from "./components/SelectListbox/SelectProvider.js";
|
|
32
|
+
import { Spinner as lo } from "./components/Spinner/Spinner.js";
|
|
33
|
+
import { StatusPill as co } from "./components/StatusPill/StatusPill.js";
|
|
34
|
+
import { Tooltip as So } from "./components/Tooltip/Tooltip.js";
|
|
34
35
|
export {
|
|
35
36
|
t as Accordion,
|
|
36
37
|
p as AppStatusBar,
|
|
@@ -42,29 +43,30 @@ export {
|
|
|
42
43
|
S as Checkbox,
|
|
43
44
|
M as Drawer,
|
|
44
45
|
I as FieldHint,
|
|
45
|
-
|
|
46
|
+
C as Fieldset,
|
|
46
47
|
g as FormField,
|
|
47
48
|
A as GridRow,
|
|
48
|
-
P as
|
|
49
|
-
v as
|
|
50
|
-
G as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
E as
|
|
56
|
-
K as
|
|
57
|
-
U as
|
|
58
|
-
W as
|
|
59
|
-
Y as
|
|
60
|
-
_ as
|
|
61
|
-
oo as
|
|
62
|
-
to as
|
|
63
|
-
po as
|
|
64
|
-
fo as
|
|
65
|
-
|
|
66
|
-
lo as
|
|
67
|
-
co as
|
|
68
|
-
|
|
49
|
+
P as HorizontalList,
|
|
50
|
+
v as Icon,
|
|
51
|
+
G as IconButton,
|
|
52
|
+
h as InfoMessage,
|
|
53
|
+
z as Input,
|
|
54
|
+
O as InputField,
|
|
55
|
+
j as Label,
|
|
56
|
+
E as MenuLink,
|
|
57
|
+
K as MetaDataList,
|
|
58
|
+
U as ModalDialog,
|
|
59
|
+
W as MultiSelect,
|
|
60
|
+
Y as OverlayCloseButton,
|
|
61
|
+
_ as ProgrammeCard,
|
|
62
|
+
oo as RadioButton,
|
|
63
|
+
to as Repeater,
|
|
64
|
+
po as SectionNotification,
|
|
65
|
+
fo as SelectListbox,
|
|
66
|
+
io as SelectProvider,
|
|
67
|
+
lo as Spinner,
|
|
68
|
+
co as StatusPill,
|
|
69
|
+
So as Tooltip,
|
|
70
|
+
ao as useSelect
|
|
69
71
|
};
|
|
70
72
|
//# 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": "1.
|
|
5
|
+
"version": "1.35.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@storybook/react": "^8.1.10",
|
|
56
56
|
"@storybook/react-vite": "^8.1.10",
|
|
57
57
|
"@storybook/test": "^8.1.10",
|
|
58
|
-
"@types/node": "^20.14.
|
|
58
|
+
"@types/node": "^20.14.6",
|
|
59
59
|
"@types/react": "^18.3.3",
|
|
60
60
|
"@types/react-dom": "^18.3.0",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^7.13.1",
|