@uva-glass/component-library 1.24.1 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ProgrammeCard.css +1 -0
- package/dist/assets/RadioButton.css +1 -1
- package/dist/assets/RadioButton2.css +1 -1
- package/dist/assets/Repeater.css +1 -0
- package/dist/components/ProgrammeCard/ProgrammeCard.d.ts +8 -0
- package/dist/components/ProgrammeCard/ProgrammeCard.js +18 -0
- package/dist/components/ProgrammeCard/ProgrammeCard.js.map +1 -0
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.d.ts +7 -0
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +62 -0
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -0
- package/dist/components/ProgrammeCard/index.d.ts +1 -0
- package/dist/components/ProgrammeCard/index.js +5 -0
- package/dist/components/ProgrammeCard/index.js.map +1 -0
- package/dist/components/RadioButton/RadioButton.js +1 -1
- package/dist/components/RadioButton/RadioButton.stories.js +1 -1
- package/dist/components/Repeater/Repeater.d.ts +7 -0
- package/dist/components/Repeater/Repeater.js +19 -0
- package/dist/components/Repeater/Repeater.js.map +1 -0
- package/dist/components/Repeater/Repeater.stories.d.ts +6 -0
- package/dist/components/Repeater/Repeater.stories.js +39 -0
- package/dist/components/Repeater/Repeater.stories.js.map +1 -0
- package/dist/components/Repeater/index.d.ts +1 -0
- package/dist/components/Repeater/index.js +5 -0
- package/dist/components/Repeater/index.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +37 -33
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +37 -33
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._radio-button_1if7s_1{align-items:center;display:grid;gap:0 .5rem;grid-template-columns:auto [label] 1fr}._radio-button_1if7s_1 ._radio-button__input_1if7s_8{cursor:pointer;margin-top:0}._radio-button__label_1if7s_13{cursor:pointer;display:flex;flex-direction:column}._radio-button__description_1if7s_19{color:var(--color-scarpa-flow);grid-area:label;margin:0}._radio-button_1if7s_1 ._radio-button__label_1if7s_13{width:fit-content}._radio-button_1if7s_1 :disabled+._radio-button__label_1if7s_13{color:var(--color-scarpa-flow);cursor:unset}._radio-button--gap-large_1if7s_34{column-gap:1rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.fieldset{border:0;display:flex;flex-direction:column;gap:.5rem;margin:0;padding:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._repeater_12czp_1{display:flex}._repeater--row_12czp_5{flex-direction:row}._repeater--row-reverse_12czp_9{flex-direction:row-reverse}._repeater--column_12czp_13{flex-direction:column}._repeater--column-reverse_12czp_17{flex-direction:column-reverse}._repeater--gap-025_12czp_21{gap:.25rem}._repeater--gap-050_12czp_25{gap:.5rem}._repeater--gap-075_12czp_29{gap:.75rem}._repeater--gap-100_12czp_33{gap:1rem}._repeater--gap-150_12czp_37{gap:1.5rem}._repeater--gap-200_12czp_41{gap:2rem}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ProgrammeCardProps {
|
|
4
|
+
onClick: (event: MouseEvent<HTMLDivElement> | KeyboardEvent<HTMLDivElement>) => void;
|
|
5
|
+
header?: ReactNode;
|
|
6
|
+
details?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const ProgrammeCard: ({ onClick, header, details }: ProgrammeCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs as _, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/ProgrammeCard.css';const m = {
|
|
3
|
+
"programme-card": "_programme-card_158br_3",
|
|
4
|
+
"programme-card__divider": "_programme-card__divider_158br_19"
|
|
5
|
+
}, p = ({ onClick: a, header: d, details: e }) => {
|
|
6
|
+
const o = (r) => {
|
|
7
|
+
a && (r.key === "Enter" || r.key === " ") && (r.preventDefault(), a(r));
|
|
8
|
+
};
|
|
9
|
+
return /* @__PURE__ */ _("div", { className: m["programme-card"], role: "button", onClick: a, onKeyDown: o, tabIndex: 0, children: [
|
|
10
|
+
d,
|
|
11
|
+
e && /* @__PURE__ */ s("hr", { className: m["programme-card__divider"] }),
|
|
12
|
+
e
|
|
13
|
+
] });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
p as ProgrammeCard
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=ProgrammeCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgrammeCard.js","sources":["../../../src/components/ProgrammeCard/ProgrammeCard.tsx"],"sourcesContent":["import type { KeyboardEvent, MouseEvent, ReactNode } from 'react';\n\nimport styles from './ProgrammeCard.module.css';\n\nexport interface ProgrammeCardProps {\n onClick: (event: MouseEvent<HTMLDivElement> | KeyboardEvent<HTMLDivElement>) => void;\n header?: ReactNode;\n details?: ReactNode;\n}\n\nexport const ProgrammeCard = ({ onClick, header, details }: ProgrammeCardProps) => {\n const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n if (onClick && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n onClick(event);\n }\n };\n\n return (\n <div className={styles['programme-card']} role=\"button\" onClick={onClick} onKeyDown={handleKeyDown} tabIndex={0}>\n {header}\n {details && <hr className={styles['programme-card__divider']} />}\n {details}\n </div>\n );\n};\n"],"names":["ProgrammeCard","onClick","header","details","handleKeyDown","event","jsxs","styles","jsx"],"mappings":";;;;GAUaA,IAAgB,CAAC,EAAE,SAAAC,GAAS,QAAAC,GAAQ,SAAAC,QAAkC;AAC3E,QAAAC,IAAgB,CAACC,MAAyC;AAC9D,IAAIJ,MAAYI,EAAM,QAAQ,WAAWA,EAAM,QAAQ,SACrDA,EAAM,eAAe,GACrBJ,EAAQI,CAAK;AAAA,EACf;AAGF,SACG,gBAAAC,EAAA,OAAA,EAAI,WAAWC,EAAO,gBAAgB,GAAG,MAAK,UAAS,SAAAN,GAAkB,WAAWG,GAAe,UAAU,GAC3G,UAAA;AAAA,IAAAF;AAAA,IACAC,KAAY,gBAAAK,EAAA,MAAA,EAAG,WAAWD,EAAO,yBAAyB,GAAG;AAAA,IAC7DJ;AAAA,EACH,EAAA,CAAA;AAEJ;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProgrammeCardProps } from './ProgrammeCard';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, ProgrammeCardProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ProgrammeCardExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ProgrammeCardProps>;
|
|
6
|
+
export declare const WithComplexContent: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ProgrammeCardProps>;
|
|
7
|
+
export declare const MultiProgrammeCards: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ProgrammeCardProps>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { f as a } from "../../index-DFUrxrKJ.js";
|
|
3
|
+
import { ProgrammeCard as t } from "./ProgrammeCard.js";
|
|
4
|
+
import { Container as n } from "../storyComponents/Container/Container.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { Icon as m } from "../Icon/Icon.js";
|
|
7
|
+
import "../Button/Button.js";
|
|
8
|
+
import "../IconButton/IconButton.js";
|
|
9
|
+
import "../Input/Input.js";
|
|
10
|
+
import "../InputField/InputField.js";
|
|
11
|
+
import "../OverlayCloseButton/OverlayCloseButton.js";
|
|
12
|
+
import { Repeater as i } from "../Repeater/Repeater.js";
|
|
13
|
+
import "../SelectListbox/SelectListbox.js";
|
|
14
|
+
import "../SelectListbox/SelectProvider.js";
|
|
15
|
+
const j = {
|
|
16
|
+
title: "Atoms/ProgrammeCard",
|
|
17
|
+
component: t
|
|
18
|
+
}, s = (o) => /* @__PURE__ */ e(n, { size: "large", children: /* @__PURE__ */ e(t, { ...o }) }), l = s.bind({});
|
|
19
|
+
l.args = {
|
|
20
|
+
header: "This is my header",
|
|
21
|
+
details: "This is my details",
|
|
22
|
+
onClick: a()
|
|
23
|
+
};
|
|
24
|
+
const d = s.bind({});
|
|
25
|
+
d.args = {
|
|
26
|
+
header: /* @__PURE__ */ r(i, { flexDirection: "row", gap: "150", children: [
|
|
27
|
+
/* @__PURE__ */ e(m, { name: "Envelope", size: 32 }),
|
|
28
|
+
/* @__PURE__ */ e("h2", { style: { margin: 0 }, children: "This is my header" })
|
|
29
|
+
] }),
|
|
30
|
+
details: /* @__PURE__ */ r(i, { flexDirection: "row", gap: "150", children: [
|
|
31
|
+
/* @__PURE__ */ r(i, { flexDirection: "row", children: [
|
|
32
|
+
/* @__PURE__ */ e(m, { name: "FaceFrown" }),
|
|
33
|
+
"Details 1"
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ r(i, { flexDirection: "row", children: [
|
|
36
|
+
/* @__PURE__ */ e(m, { name: "Heart" }),
|
|
37
|
+
"Details 2"
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ r(i, { flexDirection: "row", children: [
|
|
40
|
+
/* @__PURE__ */ e(m, { name: "Sparkles" }),
|
|
41
|
+
"Details 3"
|
|
42
|
+
] })
|
|
43
|
+
] }),
|
|
44
|
+
onClick: a()
|
|
45
|
+
};
|
|
46
|
+
const c = (o) => /* @__PURE__ */ e(n, { size: "large", children: /* @__PURE__ */ r(i, { children: [
|
|
47
|
+
/* @__PURE__ */ e(t, { ...o }),
|
|
48
|
+
/* @__PURE__ */ e(t, { ...o }),
|
|
49
|
+
/* @__PURE__ */ e(t, { ...o })
|
|
50
|
+
] }) }), p = c.bind({});
|
|
51
|
+
p.args = {
|
|
52
|
+
header: "This is my header",
|
|
53
|
+
details: "This is my details",
|
|
54
|
+
onClick: a()
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
p as MultiProgrammeCards,
|
|
58
|
+
l as ProgrammeCardExample,
|
|
59
|
+
d as WithComplexContent,
|
|
60
|
+
j as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=ProgrammeCard.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgrammeCard.stories.js","sources":["../../../src/components/ProgrammeCard/ProgrammeCard.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ProgrammeCardProps } from './ProgrammeCard';\n\nimport { ProgrammeCard } from './ProgrammeCard';\n\nimport { Container } from 'components/storyComponents/Container';\nimport { Icon, Repeater } from 'components';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/ProgrammeCard',\n component: ProgrammeCard,\n} as Meta<ProgrammeCardProps>;\n\nconst Template: StoryFn<ProgrammeCardProps> = (args) => (\n <Container size=\"large\">\n <ProgrammeCard {...args} />\n </Container>\n);\n\nexport const ProgrammeCardExample = Template.bind({});\nProgrammeCardExample.args = {\n header: 'This is my header',\n details: 'This is my details',\n onClick: fn(),\n};\n\nexport const WithComplexContent = Template.bind({});\nWithComplexContent.args = {\n header: (\n <Repeater flexDirection=\"row\" gap=\"150\">\n <Icon name=\"Envelope\" size={32} />\n <h2 style={{ margin: 0 }}>This is my header</h2>\n </Repeater>\n ),\n details: (\n <Repeater flexDirection=\"row\" gap=\"150\">\n <Repeater flexDirection=\"row\">\n <Icon name=\"FaceFrown\" />\n Details 1\n </Repeater>\n <Repeater flexDirection=\"row\">\n <Icon name=\"Heart\" />\n Details 2\n </Repeater>\n <Repeater flexDirection=\"row\">\n <Icon name=\"Sparkles\" />\n Details 3\n </Repeater>\n </Repeater>\n ),\n onClick: fn(),\n};\n\nconst MultiProgrammeCardsTemplate: StoryFn<ProgrammeCardProps> = (args) => (\n <Container size=\"large\">\n <Repeater>\n <ProgrammeCard {...args} />\n <ProgrammeCard {...args} />\n <ProgrammeCard {...args} />\n </Repeater>\n </Container>\n);\n\nexport const MultiProgrammeCards = MultiProgrammeCardsTemplate.bind({});\nMultiProgrammeCards.args = {\n header: 'This is my header',\n details: 'This is my details',\n onClick: fn(),\n};\n"],"names":["ProgrammeCard_stories","ProgrammeCard","Template","args","jsx","Container","ProgrammeCardExample","fn","WithComplexContent","jsxs","Repeater","Icon","MultiProgrammeCardsTemplate","MultiProgrammeCards"],"mappings":";;;;;;;;;;;;;;AAWA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AACb,GAEMC,IAAwC,CAACC,MAC5C,gBAAAC,EAAAC,GAAA,EAAU,MAAK,SACd,UAAC,gBAAAD,EAAAH,GAAA,EAAe,GAAGE,EAAM,CAAA,EAC3B,CAAA,GAGWG,IAAuBJ,EAAS,KAAK,EAAE;AACpDI,EAAqB,OAAO;AAAA,EAC1B,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAASC,EAAG;AACd;AAEO,MAAMC,IAAqBN,EAAS,KAAK,EAAE;AAClDM,EAAmB,OAAO;AAAA,EACxB,QACG,gBAAAC,EAAAC,GAAA,EAAS,eAAc,OAAM,KAAI,OAChC,UAAA;AAAA,IAAA,gBAAAN,EAACO,GAAK,EAAA,MAAK,YAAW,MAAM,IAAI;AAAA,sBAC/B,MAAG,EAAA,OAAO,EAAE,QAAQ,KAAK,UAAiB,qBAAA;AAAA,EAAA,GAC7C;AAAA,EAEF,SACG,gBAAAF,EAAAC,GAAA,EAAS,eAAc,OAAM,KAAI,OAChC,UAAA;AAAA,IAAC,gBAAAD,EAAAC,GAAA,EAAS,eAAc,OACtB,UAAA;AAAA,MAAC,gBAAAN,EAAAO,GAAA,EAAK,MAAK,YAAY,CAAA;AAAA,MAAE;AAAA,IAAA,GAE3B;AAAA,IACA,gBAAAF,EAACC,GAAS,EAAA,eAAc,OACtB,UAAA;AAAA,MAAC,gBAAAN,EAAAO,GAAA,EAAK,MAAK,QAAQ,CAAA;AAAA,MAAE;AAAA,IAAA,GAEvB;AAAA,IACA,gBAAAF,EAACC,GAAS,EAAA,eAAc,OACtB,UAAA;AAAA,MAAC,gBAAAN,EAAAO,GAAA,EAAK,MAAK,WAAW,CAAA;AAAA,MAAE;AAAA,IAAA,GAE1B;AAAA,EAAA,GACF;AAAA,EAEF,SAASJ,EAAG;AACd;AAEA,MAAMK,IAA2D,CAACT,MAChE,gBAAAC,EAACC,KAAU,MAAK,SACd,4BAACK,GACC,EAAA,UAAA;AAAA,EAAC,gBAAAN,EAAAH,GAAA,EAAe,GAAGE,GAAM;AAAA,EACzB,gBAAAC,EAACH,GAAe,EAAA,GAAGE,GAAM;AAAA,EACzB,gBAAAC,EAACH,GAAe,EAAA,GAAGE,GAAM;AAAA,EAC3B,CAAA,EACF,CAAA,GAGWU,IAAsBD,EAA4B,KAAK,EAAE;AACtEC,EAAoB,OAAO;AAAA,EACzB,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAASN,EAAG;AACd;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProgrammeCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as d } from "../../clsx-DB4S2d7J.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/RadioButton.css';const t = {
|
|
4
4
|
"radio-button": "_radio-button_1if7s_1",
|
|
5
5
|
"radio-button__input": "_radio-button__input_1if7s_8",
|
|
6
6
|
"radio-button__label": "_radio-button__label_1if7s_13",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface RepeaterProps {
|
|
4
|
+
flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
5
|
+
gap?: '025' | '050' | '075' | '100' | '150' | '200';
|
|
6
|
+
}
|
|
7
|
+
export declare const Repeater: ({ children, flexDirection, gap }: PropsWithChildren<RepeaterProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "../../clsx-DB4S2d7J.js";
|
|
3
|
+
import '../../assets/Repeater.css';const c = "_repeater_12czp_1", e = {
|
|
4
|
+
repeater: c,
|
|
5
|
+
"repeater--row": "_repeater--row_12czp_5",
|
|
6
|
+
"repeater--row-reverse": "_repeater--row-reverse_12czp_9",
|
|
7
|
+
"repeater--column": "_repeater--column_12czp_13",
|
|
8
|
+
"repeater--column-reverse": "_repeater--column-reverse_12czp_17",
|
|
9
|
+
"repeater--gap-025": "_repeater--gap-025_12czp_21",
|
|
10
|
+
"repeater--gap-050": "_repeater--gap-050_12czp_25",
|
|
11
|
+
"repeater--gap-075": "_repeater--gap-075_12czp_29",
|
|
12
|
+
"repeater--gap-100": "_repeater--gap-100_12czp_33",
|
|
13
|
+
"repeater--gap-150": "_repeater--gap-150_12czp_37",
|
|
14
|
+
"repeater--gap-200": "_repeater--gap-200_12czp_41"
|
|
15
|
+
}, g = ({ children: r, flexDirection: p = "column", gap: a = "050" }) => /* @__PURE__ */ t("div", { className: _(e.repeater, e[`repeater--${p}`], e[`repeater--gap-${a}`]), children: r });
|
|
16
|
+
export {
|
|
17
|
+
g as Repeater
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=Repeater.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Repeater.js","sources":["../../../src/components/Repeater/Repeater.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './Repeater.module.css';\n\nexport interface RepeaterProps {\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n gap?: '025' | '050' | '075' | '100' | '150' | '200';\n}\n\nexport const Repeater = ({ children, flexDirection = 'column', gap = '050' }: PropsWithChildren<RepeaterProps>) => {\n return (\n <div className={clsx(styles['repeater'], styles[`repeater--${flexDirection}`], styles[`repeater--gap-${gap}`])}>\n {children}\n </div>\n );\n};\n"],"names":["Repeater","children","flexDirection","gap","clsx","styles"],"mappings":";;;;;;;;;;;;;;GAWaA,IAAW,CAAC,EAAE,UAAAC,GAAU,eAAAC,IAAgB,UAAU,KAAAC,IAAM,8BAEhE,OAAI,EAAA,WAAWC,EAAKC,EAAO,UAAaA,EAAO,aAAaH,CAAa,EAAE,GAAGG,EAAO,iBAAiBF,CAAG,EAAE,CAAC,GAC1G,UAAAF,EACH,CAAA;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { RepeaterProps } from './Repeater';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, PropsWithChildren<RepeaterProps>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const RepeaterExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<RepeaterProps>>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as i, Fragment as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Repeater as t } from "./Repeater.js";
|
|
3
|
+
import { Container as o } from "../storyComponents/Container/Container.js";
|
|
4
|
+
const s = {
|
|
5
|
+
title: "Atoms/Repeater",
|
|
6
|
+
component: t,
|
|
7
|
+
argTypes: {
|
|
8
|
+
flexDirection: {
|
|
9
|
+
control: {
|
|
10
|
+
type: "select"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
gap: {
|
|
14
|
+
control: {
|
|
15
|
+
type: "select",
|
|
16
|
+
sort: !1
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
children: {
|
|
20
|
+
table: {
|
|
21
|
+
disable: !0
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, n = (r) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(t, { ...r }) }), a = n.bind({});
|
|
26
|
+
a.args = {
|
|
27
|
+
flexDirection: "column",
|
|
28
|
+
gap: "050",
|
|
29
|
+
children: /* @__PURE__ */ i(l, { children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { children: "Example item 1" }),
|
|
31
|
+
/* @__PURE__ */ e("div", { children: "Example item 2" }),
|
|
32
|
+
/* @__PURE__ */ e("div", { children: "Example item 3" })
|
|
33
|
+
] })
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
a as RepeaterExample,
|
|
37
|
+
s as default
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=Repeater.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Repeater.stories.js","sources":["../../../src/components/Repeater/Repeater.stories.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { RepeaterProps } from './Repeater';\n\nimport { Repeater } from './Repeater';\n\nimport { Container } from 'components/storyComponents/Container';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Repeater',\n component: Repeater,\n argTypes: {\n flexDirection: {\n control: {\n type: 'select',\n },\n },\n gap: {\n control: {\n type: 'select',\n sort: false,\n },\n },\n children: {\n table: {\n disable: true,\n },\n },\n },\n} as Meta<PropsWithChildren<RepeaterProps>>;\n\nconst Template: StoryFn<PropsWithChildren<RepeaterProps>> = (args) => (\n <Container>\n <Repeater {...args} />\n </Container>\n);\n\nexport const RepeaterExample = Template.bind({});\nRepeaterExample.args = {\n flexDirection: 'column',\n gap: '050',\n children: (\n <>\n <div>Example item 1</div>\n <div>Example item 2</div>\n <div>Example item 3</div>\n </>\n ),\n};\n"],"names":["Repeater_stories","Repeater","Template","args","jsx","Container","RepeaterExample","jsxs","Fragment"],"mappings":";;;AASA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,eAAe;AAAA,MACb,SAAS;AAAA,QACP,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,KAAK;AAAA,MACH,SAAS;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF,GAEMC,IAAsD,CAACC,MAC3D,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAH,GAAA,EAAU,GAAGE,EAAM,CAAA,EACtB,CAAA,GAGWG,IAAkBJ,EAAS,KAAK,EAAE;AAC/CI,EAAgB,OAAO;AAAA,EACrB,eAAe;AAAA,EACf,KAAK;AAAA,EACL,UAEI,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAJ,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,IACnB,gBAAAA,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,IACnB,gBAAAA,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,EAAA,GACrB;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Repeater';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -17,7 +17,9 @@ export * from './MenuLink';
|
|
|
17
17
|
export * from './MetaDataList';
|
|
18
18
|
export * from './ModalDialog';
|
|
19
19
|
export * from './OverlayCloseButton';
|
|
20
|
+
export * from './ProgrammeCard';
|
|
20
21
|
export * from './RadioButton';
|
|
22
|
+
export * from './Repeater';
|
|
21
23
|
export * from './SectionNotification';
|
|
22
24
|
export * from './SelectListbox';
|
|
23
25
|
export * from './SelectListbox/SelectProvider';
|
package/dist/components/index.js
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
1
|
import { Accordion as t } from "./Accordion/Accordion.js";
|
|
2
2
|
import { AppStatusBar as p } from "./AppStatusBar/AppStatusBar.js";
|
|
3
|
-
import { Backdrop as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { ButtonGroup as
|
|
3
|
+
import { Backdrop as f } from "./Backdrop/Backdrop.js";
|
|
4
|
+
import { Button as a } from "./Button/Button.js";
|
|
5
|
+
import { ButtonGroup as i } from "./ButtonGroup/ButtonGroup.js";
|
|
6
6
|
import { Card as c } from "./Card/Card.js";
|
|
7
7
|
import { Checkbox as d } from "./Checkbox/Checkbox.js";
|
|
8
8
|
import { FieldHint as B } from "./FieldHint/FieldHint.js";
|
|
9
9
|
import { FormField as S } from "./FormField/FormField.js";
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { IconButton as
|
|
12
|
-
import { InfoMessage as
|
|
10
|
+
import { Icon as C } from "./Icon/Icon.js";
|
|
11
|
+
import { IconButton as L } from "./IconButton/IconButton.js";
|
|
12
|
+
import { InfoMessage as g } from "./InfoMessage/InfoMessage.js";
|
|
13
13
|
import { Input as v } from "./Input/Input.js";
|
|
14
14
|
import { InputField as D } from "./InputField/InputField.js";
|
|
15
|
-
import { Label as
|
|
16
|
-
import { M as
|
|
17
|
-
import { MetaDataList as
|
|
18
|
-
import { M as
|
|
15
|
+
import { Label as R } from "./Label/Label.js";
|
|
16
|
+
import { M as y } from "../MenuLink-CLEqkVVh.js";
|
|
17
|
+
import { MetaDataList as H } from "./MetaDataList/MetaDataList.js";
|
|
18
|
+
import { M as O } from "../ModalDialog-B1c9QYLZ.js";
|
|
19
19
|
import { OverlayCloseButton as j } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
20
|
+
import { ProgrammeCard as w } from "./ProgrammeCard/ProgrammeCard.js";
|
|
21
|
+
import { RadioButton as E } from "./RadioButton/RadioButton.js";
|
|
22
|
+
import { Repeater as K } from "./Repeater/Repeater.js";
|
|
23
|
+
import { SectionNotification as U } from "./SectionNotification/SectionNotification.js";
|
|
24
|
+
import { SelectListbox as W } from "./SelectListbox/SelectListbox.js";
|
|
25
|
+
import { SelectProvider as Y, useSelect as Z } from "./SelectListbox/SelectProvider.js";
|
|
26
|
+
import { Spinner as $ } from "./Spinner/Spinner.js";
|
|
27
|
+
import { Tooltip as ro } from "./Tooltip/Tooltip.js";
|
|
26
28
|
export {
|
|
27
29
|
t as Accordion,
|
|
28
30
|
p as AppStatusBar,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
f as Backdrop,
|
|
32
|
+
a as Button,
|
|
33
|
+
i as ButtonGroup,
|
|
32
34
|
c as Card,
|
|
33
35
|
d as Checkbox,
|
|
34
36
|
B as FieldHint,
|
|
35
37
|
S as FormField,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
C as Icon,
|
|
39
|
+
L as IconButton,
|
|
40
|
+
g as InfoMessage,
|
|
39
41
|
v as Input,
|
|
40
42
|
D as InputField,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
R as Label,
|
|
44
|
+
y as MenuLink,
|
|
45
|
+
H as MetaDataList,
|
|
46
|
+
O as ModalDialog,
|
|
45
47
|
j as OverlayCloseButton,
|
|
46
|
-
w as
|
|
47
|
-
E as
|
|
48
|
-
K as
|
|
49
|
-
U as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
w as ProgrammeCard,
|
|
49
|
+
E as RadioButton,
|
|
50
|
+
K as Repeater,
|
|
51
|
+
U as SectionNotification,
|
|
52
|
+
W as SelectListbox,
|
|
53
|
+
Y as SelectProvider,
|
|
54
|
+
$ as Spinner,
|
|
55
|
+
ro as Tooltip,
|
|
56
|
+
Z as useSelect
|
|
53
57
|
};
|
|
54
58
|
//# 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,54 +1,58 @@
|
|
|
1
1
|
import { Accordion as t } from "./components/Accordion/Accordion.js";
|
|
2
2
|
import { AppStatusBar as p } from "./components/AppStatusBar/AppStatusBar.js";
|
|
3
|
-
import { Backdrop as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { ButtonGroup as
|
|
3
|
+
import { Backdrop as f } from "./components/Backdrop/Backdrop.js";
|
|
4
|
+
import { Button as a } from "./components/Button/Button.js";
|
|
5
|
+
import { ButtonGroup as i } from "./components/ButtonGroup/ButtonGroup.js";
|
|
6
6
|
import { Card as c } from "./components/Card/Card.js";
|
|
7
7
|
import { Checkbox as d } from "./components/Checkbox/Checkbox.js";
|
|
8
8
|
import { FieldHint as B } from "./components/FieldHint/FieldHint.js";
|
|
9
9
|
import { FormField as S } from "./components/FormField/FormField.js";
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { IconButton as
|
|
12
|
-
import { InfoMessage as
|
|
10
|
+
import { Icon as C } from "./components/Icon/Icon.js";
|
|
11
|
+
import { IconButton as L } from "./components/IconButton/IconButton.js";
|
|
12
|
+
import { InfoMessage as g } from "./components/InfoMessage/InfoMessage.js";
|
|
13
13
|
import { Input as v } from "./components/Input/Input.js";
|
|
14
14
|
import { InputField as D } from "./components/InputField/InputField.js";
|
|
15
|
-
import { Label as
|
|
16
|
-
import { M as
|
|
17
|
-
import { MetaDataList as
|
|
18
|
-
import { M as
|
|
15
|
+
import { Label as R } from "./components/Label/Label.js";
|
|
16
|
+
import { M as y } from "./MenuLink-CLEqkVVh.js";
|
|
17
|
+
import { MetaDataList as H } from "./components/MetaDataList/MetaDataList.js";
|
|
18
|
+
import { M as O } from "./ModalDialog-B1c9QYLZ.js";
|
|
19
19
|
import { OverlayCloseButton as j } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
20
|
+
import { ProgrammeCard as w } from "./components/ProgrammeCard/ProgrammeCard.js";
|
|
21
|
+
import { RadioButton as E } from "./components/RadioButton/RadioButton.js";
|
|
22
|
+
import { Repeater as K } from "./components/Repeater/Repeater.js";
|
|
23
|
+
import { SectionNotification as U } from "./components/SectionNotification/SectionNotification.js";
|
|
24
|
+
import { SelectListbox as W } from "./components/SelectListbox/SelectListbox.js";
|
|
25
|
+
import { SelectProvider as Y, useSelect as Z } from "./components/SelectListbox/SelectProvider.js";
|
|
26
|
+
import { Spinner as $ } from "./components/Spinner/Spinner.js";
|
|
27
|
+
import { Tooltip as ro } from "./components/Tooltip/Tooltip.js";
|
|
26
28
|
export {
|
|
27
29
|
t as Accordion,
|
|
28
30
|
p as AppStatusBar,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
f as Backdrop,
|
|
32
|
+
a as Button,
|
|
33
|
+
i as ButtonGroup,
|
|
32
34
|
c as Card,
|
|
33
35
|
d as Checkbox,
|
|
34
36
|
B as FieldHint,
|
|
35
37
|
S as FormField,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
C as Icon,
|
|
39
|
+
L as IconButton,
|
|
40
|
+
g as InfoMessage,
|
|
39
41
|
v as Input,
|
|
40
42
|
D as InputField,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
R as Label,
|
|
44
|
+
y as MenuLink,
|
|
45
|
+
H as MetaDataList,
|
|
46
|
+
O as ModalDialog,
|
|
45
47
|
j as OverlayCloseButton,
|
|
46
|
-
w as
|
|
47
|
-
E as
|
|
48
|
-
K as
|
|
49
|
-
U as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
w as ProgrammeCard,
|
|
49
|
+
E as RadioButton,
|
|
50
|
+
K as Repeater,
|
|
51
|
+
U as SectionNotification,
|
|
52
|
+
W as SelectListbox,
|
|
53
|
+
Y as SelectProvider,
|
|
54
|
+
$ as Spinner,
|
|
55
|
+
ro as Tooltip,
|
|
56
|
+
Z as useSelect
|
|
53
57
|
};
|
|
54
58
|
//# 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.25.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -47,22 +47,22 @@
|
|
|
47
47
|
"@semantic-release/git": "^10.0.1",
|
|
48
48
|
"@semantic-release/gitlab": "^13.1.0",
|
|
49
49
|
"@semantic-release/npm": "^12.0.1",
|
|
50
|
-
"@storybook/addon-a11y": "^8.1.
|
|
51
|
-
"@storybook/addon-essentials": "^8.1.
|
|
52
|
-
"@storybook/addon-interactions": "^8.1.
|
|
53
|
-
"@storybook/addon-links": "^8.1.
|
|
54
|
-
"@storybook/blocks": "^8.1.
|
|
55
|
-
"@storybook/react": "^8.1.
|
|
56
|
-
"@storybook/react-vite": "^8.1.
|
|
57
|
-
"@storybook/test": "^8.1.
|
|
58
|
-
"@types/node": "^20.14.
|
|
50
|
+
"@storybook/addon-a11y": "^8.1.6",
|
|
51
|
+
"@storybook/addon-essentials": "^8.1.6",
|
|
52
|
+
"@storybook/addon-interactions": "^8.1.6",
|
|
53
|
+
"@storybook/addon-links": "^8.1.6",
|
|
54
|
+
"@storybook/blocks": "^8.1.6",
|
|
55
|
+
"@storybook/react": "^8.1.6",
|
|
56
|
+
"@storybook/react-vite": "^8.1.6",
|
|
57
|
+
"@storybook/test": "^8.1.6",
|
|
58
|
+
"@types/node": "^20.14.2",
|
|
59
59
|
"@types/react": "^18.3.3",
|
|
60
60
|
"@types/react-dom": "^18.3.0",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^7.12.0",
|
|
62
62
|
"@typescript-eslint/parser": "^7.12.0",
|
|
63
63
|
"@uva-glass/eslint-config": "^1.2.0",
|
|
64
64
|
"@uva-glass/stylelint-config": "^1.1.0",
|
|
65
|
-
"@vitejs/plugin-react": "^4.3.
|
|
65
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
66
66
|
"clsx": "^2.1.1",
|
|
67
67
|
"eslint": "^8.57.0",
|
|
68
68
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
"react-dom": "^18.3.1",
|
|
82
82
|
"react-router-dom": "^6.23.1",
|
|
83
83
|
"semantic-release": "^24.0.0",
|
|
84
|
-
"storybook": "^8.1.
|
|
84
|
+
"storybook": "^8.1.6",
|
|
85
85
|
"style-dictionary": "^3.9.2",
|
|
86
86
|
"stylelint": "^16.6.1",
|
|
87
87
|
"stylelint-config-recommended": "^14.0.0",
|
|
88
88
|
"stylelint-config-standard": "^36.0.0",
|
|
89
89
|
"stylelint-order": "^6.0.4",
|
|
90
90
|
"typescript": "^5.4.5",
|
|
91
|
-
"vite": "^5.2.
|
|
91
|
+
"vite": "^5.2.13",
|
|
92
92
|
"vite-plugin-dts": "^3.9.1",
|
|
93
93
|
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
94
94
|
"vite-plugin-svgr": "^4.2.0",
|