@uva-glass/component-library 3.16.1 → 3.17.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/Backdrop.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/variables.css +3 -6
- package/dist/components/Backdrop/Backdrop.js +4 -4
- package/dist/components/Input/Input.js +15 -15
- package/dist/components/Input/Input.stories.js +15 -13
- package/dist/components/Input/Input.stories.js.map +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.d.ts +3 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +22 -14
- package/dist/components/OverlayStepBar/OverlayStepBar.js.map +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +31 -13
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js.map +1 -1
- package/package.json +5 -5
package/dist/assets/Backdrop.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._backdrop_8s6aa_1{bottom:0;left:0;position:fixed;right:0;top:0;z-index:100;overflow:hidden}._backdrop_8s6aa_1:after{content:"";top:0;right:0;bottom:0;left:0;background-color:var(--color-uva-black);opacity:.5;pointer-events:none}@media (min-width: 28rem) and (min-height: 28rem){._backdrop_8s6aa_1{align-items:center;display:flex;justify-content:center}._backdrop_8s6aa_1:after{position:absolute}._backdrop_8s6aa_1>*{position:relative;z-index:1}}
|
package/dist/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._input_whbfw_1{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:1px solid var(--color-black);color:var(--color-black);font-family:inherit;font-size:inherit;height:2rem;margin:0;padding:0 .5rem}._input--numeric_whbfw_13{text-align:right;width:8rem}._input--error_whbfw_18,._input_whbfw_1:invalid{border-color:var(--color-chilean-fire)}._input--full-with_whbfw_23{min-width:100%;width:0}._input_whbfw_1::placeholder{color:var(--color-grey-500);font-size:inherit;opacity:1}._input_whbfw_1[type=file]{border:none}._input_whbfw_1:disabled{color:var(--color-grey-500)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._overlay-step-
|
|
1
|
+
._overlay-step-bar__container_s2qo6_1{align-items:center;background-color:var(--color-grey-50);display:flex;height:2.5rem;justify-content:center;overflow-y:hidden}._overlay-step-bar__step-wrapper_s2qo6_10{background-color:var(--color-grey-50);height:100%;position:relative}._overlay-step-bar__step-wrapper_s2qo6_10:not(:last-child):after{border-bottom:1.5rem solid transparent;border-left:1rem solid var(--color-grey-50);border-top:1.5rem solid transparent;content:"";position:absolute;right:-.25rem;top:-.25rem;z-index:10}._overlay-step-bar__step-wrapper_s2qo6_10:not(:last-child):before{border-bottom:1.5rem solid transparent;border-left:1rem solid var(--color-white);border-top:1.5rem solid transparent;content:"";position:absolute;right:-.5rem;top:-.25rem;z-index:5}._overlay-step-bar__step_s2qo6_10{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--color-grey-500);cursor:pointer;display:flex;font-family:inherit;font-size:var(--font-size-default);gap:.5rem;height:100%;margin-left:.5rem;padding:0 2rem 0 1.5rem;position:relative;width:calc(100% - .75rem)}._overlay-step-bar__step--label_s2qo6_56{display:none;text-decoration:none}._overlay-step-bar__step_s2qo6_10:hover ._overlay-step-bar__step--index_s2qo6_61,._overlay-step-bar__step_s2qo6_10:hover ._overlay-step-bar__step--label_s2qo6_56{text-decoration:underline}@media (min-width: 70rem){._overlay-step-bar__step--label_s2qo6_56{display:block}._overlay-step-bar__step_s2qo6_10:hover ._overlay-step-bar__step--index_s2qo6_61{text-decoration:none}}._overlay-step-bar__step_s2qo6_10:focus-visible{outline:.125rem dotted var(--color-cobalt);outline-offset:-.25rem;z-index:15}._overlay-step-bar__step--label_s2qo6_56:hover{text-decoration:underline}._overlay-step-bar__step--active_s2qo6_86{color:var(--color-black);font-weight:var(--semibold)}._overlay-step-bar__step--active_s2qo6_86 ._overlay-step-bar__step--label_s2qo6_56{display:block}._overlay-step-bar__step--active_s2qo6_86:hover ._overlay-step-bar__step--index_s2qo6_61,._overlay-step-bar__step--active_s2qo6_86:hover ._overlay-step-bar__step--label_s2qo6_56{cursor:default;text-decoration:none}
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
--color-blue-400: #a3e7ff;
|
|
25
25
|
--color-blue-50: #e0f7ff;
|
|
26
26
|
--color-purple-400: #9747ff;
|
|
27
|
-
--color-black-transparent: rgba(0 0 0 / 50%);
|
|
28
27
|
--color-cobalt: #0d4da5;
|
|
29
28
|
--color-san-felix: #2c632e;
|
|
30
29
|
--color-uva-green: #49a74c;
|
|
@@ -41,9 +40,8 @@
|
|
|
41
40
|
--color-amour: #ffe5ec;
|
|
42
41
|
--color-dandelion: #ffde66;
|
|
43
42
|
--color-natural-wood: #fff6d6;
|
|
44
|
-
--color-uva-black: #
|
|
45
|
-
--color-
|
|
46
|
-
--color-electric-violet: #9747FF;
|
|
43
|
+
--color-uva-black: #1f1d20;
|
|
44
|
+
--color-electric-violet: #9747ff;
|
|
47
45
|
--color-lemon-grass: #99998a;
|
|
48
46
|
--color-vista-blue: #8feabb;
|
|
49
47
|
--color-medium-aquamarine: #62df9f;
|
|
@@ -52,6 +50,5 @@
|
|
|
52
50
|
--color-french-grey: #b3afb6;
|
|
53
51
|
--color-columbia-blue: #a1e7fc;
|
|
54
52
|
--color-light-cyan: #e1f8ff;
|
|
55
|
-
--color-
|
|
56
|
-
--color-natural-wool: #FFF6D6;
|
|
53
|
+
--color-natural-wool: #fff6d6;
|
|
57
54
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/Backdrop.css';const s = "
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Backdrop.css';const s = "_backdrop_8s6aa_1", r = {
|
|
3
3
|
backdrop: s
|
|
4
|
-
},
|
|
4
|
+
}, d = ({ children: o, ...a }) => /* @__PURE__ */ c("div", { ...a, className: r.backdrop, children: o });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as Backdrop
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=Backdrop.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c } from "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import '../../assets/Input.css';const
|
|
5
|
-
input:
|
|
6
|
-
"input--numeric": "_input--
|
|
7
|
-
"input--error": "_input--
|
|
8
|
-
"input--full-with": "_input--full-
|
|
9
|
-
},
|
|
10
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w } from "react";
|
|
3
|
+
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import '../../assets/Input.css';const c = "_input_whbfw_1", t = {
|
|
5
|
+
input: c,
|
|
6
|
+
"input--numeric": "_input--numeric_whbfw_13",
|
|
7
|
+
"input--error": "_input--error_whbfw_18",
|
|
8
|
+
"input--full-with": "_input--full-with_whbfw_23"
|
|
9
|
+
}, a = w(function({ id: r, appearance: n, type: i = "text", isNumeric: u, fullWidth: p, ...o }, e) {
|
|
10
|
+
return /* @__PURE__ */ f(
|
|
11
11
|
"input",
|
|
12
12
|
{
|
|
13
13
|
...o,
|
|
14
14
|
ref: e,
|
|
15
|
-
id:
|
|
16
|
-
className:
|
|
17
|
-
[t["input--error"]]:
|
|
15
|
+
id: r,
|
|
16
|
+
className: _(t.input, {
|
|
17
|
+
[t["input--error"]]: n === "error",
|
|
18
18
|
[t["input--full-with"]]: p,
|
|
19
19
|
[t["input--numeric"]]: u
|
|
20
20
|
}),
|
|
21
|
-
type:
|
|
21
|
+
type: i
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
});
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
a as Input
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Input as
|
|
2
|
+
import { Input as a } from "./Input.js";
|
|
3
3
|
const r = `
|
|
4
4
|
// Has all HTMLInputElement props available except "className" and "style"
|
|
5
5
|
<Input id={id} type={type} aria-label={aria-label} onChange={onChangeFunction} value={value}/>
|
|
6
|
-
`,
|
|
6
|
+
`, d = {
|
|
7
7
|
title: "Atoms/Input",
|
|
8
|
-
component:
|
|
8
|
+
component: a,
|
|
9
9
|
argTypes: {
|
|
10
10
|
appearance: {
|
|
11
11
|
table: {
|
|
@@ -18,20 +18,22 @@ const r = `
|
|
|
18
18
|
},
|
|
19
19
|
args: {
|
|
20
20
|
id: "30daa7c7",
|
|
21
|
-
type: "text"
|
|
21
|
+
type: "text",
|
|
22
|
+
disabled: !1,
|
|
23
|
+
placeholder: ""
|
|
22
24
|
},
|
|
23
25
|
parameters: {
|
|
24
|
-
inspectComponent:
|
|
26
|
+
inspectComponent: a,
|
|
25
27
|
codeString: r
|
|
26
28
|
}
|
|
27
|
-
}, e = (
|
|
29
|
+
}, e = (t) => /* @__PURE__ */ n(a, { ...t }), p = e.bind({});
|
|
28
30
|
p.args = {};
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
+
const l = e.bind({});
|
|
32
|
+
l.args = {
|
|
31
33
|
fullWidth: !0
|
|
32
34
|
};
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
+
const o = e.bind({});
|
|
36
|
+
o.args = {
|
|
35
37
|
isNumeric: !0
|
|
36
38
|
};
|
|
37
39
|
const s = e.bind({});
|
|
@@ -39,10 +41,10 @@ s.args = {
|
|
|
39
41
|
appearance: "error"
|
|
40
42
|
};
|
|
41
43
|
export {
|
|
42
|
-
|
|
44
|
+
l as FullWidth,
|
|
43
45
|
p as InputExample,
|
|
44
|
-
|
|
46
|
+
o as Numeric,
|
|
45
47
|
s as WithErrorAppearance,
|
|
46
|
-
|
|
48
|
+
d as default
|
|
47
49
|
};
|
|
48
50
|
//# sourceMappingURL=Input.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.stories.js","sources":["../../../src/components/Input/Input.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { InputProps } from './Input';\n\nimport { Input } from './Input';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<Input id={id} type={type} aria-label={aria-label} onChange={onChangeFunction} value={value}/>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Input',\n component: Input,\n argTypes: {\n appearance: {\n table: {\n disable: true,\n },\n },\n type: {\n control: 'inline-radio',\n },\n },\n args: {\n id: '30daa7c7',\n type: 'text',\n },\n parameters: {\n inspectComponent: Input,\n codeString: codeString,\n },\n} as Meta<InputProps>;\n\nconst Template: StoryFn<InputProps> = (args) => {\n return <Input {...args} />;\n};\n\nexport const InputExample = Template.bind({});\nInputExample.args = {};\n\nexport const FullWidth = Template.bind({});\nFullWidth.args = {\n fullWidth: true,\n};\n\nexport const Numeric = Template.bind({});\nNumeric.args = {\n isNumeric: true,\n};\n\nexport const WithErrorAppearance = Template.bind({});\nWithErrorAppearance.args = {\n appearance: 'error',\n};\n"],"names":["codeString","Input_stories","Input","Template","args","jsx","InputExample","FullWidth","Numeric","WithErrorAppearance"],"mappings":";;AAKA,MAAMA,IAAa;AAAA;AAAA;AAAA,GAMJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY;AAAA,MACV,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IAEb;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,MAAM;AAAA,
|
|
1
|
+
{"version":3,"file":"Input.stories.js","sources":["../../../src/components/Input/Input.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { InputProps } from './Input';\n\nimport { Input } from './Input';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<Input id={id} type={type} aria-label={aria-label} onChange={onChangeFunction} value={value}/>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Input',\n component: Input,\n argTypes: {\n appearance: {\n table: {\n disable: true,\n },\n },\n type: {\n control: 'inline-radio',\n },\n },\n args: {\n id: '30daa7c7',\n type: 'text',\n disabled: false,\n placeholder: '',\n },\n parameters: {\n inspectComponent: Input,\n codeString: codeString,\n },\n} as Meta<InputProps>;\n\nconst Template: StoryFn<InputProps> = (args) => {\n return <Input {...args} />;\n};\n\nexport const InputExample = Template.bind({});\nInputExample.args = {};\n\nexport const FullWidth = Template.bind({});\nFullWidth.args = {\n fullWidth: true,\n};\n\nexport const Numeric = Template.bind({});\nNumeric.args = {\n isNumeric: true,\n};\n\nexport const WithErrorAppearance = Template.bind({});\nWithErrorAppearance.args = {\n appearance: 'error',\n};\n"],"names":["codeString","Input_stories","Input","Template","args","jsx","InputExample","FullWidth","Numeric","WithErrorAppearance"],"mappings":";;AAKA,MAAMA,IAAa;AAAA;AAAA;AAAA,GAMJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY;AAAA,MACV,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IAEb;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,EACf;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAgC,CAACC,MAC9B,gBAAAC,EAACH,GAAO,EAAA,GAAGE,EAAM,CAAA,GAGbE,IAAeH,EAAS,KAAK,CAAE,CAAA;AAC5CG,EAAa,OAAO,CAAC;AAEd,MAAMC,IAAYJ,EAAS,KAAK,CAAE,CAAA;AACzCI,EAAU,OAAO;AAAA,EACf,WAAW;AACb;AAEO,MAAMC,IAAUL,EAAS,KAAK,CAAE,CAAA;AACvCK,EAAQ,OAAO;AAAA,EACb,WAAW;AACb;AAEO,MAAMC,IAAsBN,EAAS,KAAK,CAAE,CAAA;AACnDM,EAAoB,OAAO;AAAA,EACzB,YAAY;AACd;"}
|
|
@@ -3,5 +3,7 @@ export interface OverlayStepBarProps {
|
|
|
3
3
|
stepLabels: string[];
|
|
4
4
|
/** activeStep number starting with 1. */
|
|
5
5
|
activeStep: number;
|
|
6
|
+
/** navigate to step. */
|
|
7
|
+
onStepClick?: (step: number) => void;
|
|
6
8
|
}
|
|
7
|
-
export declare const OverlayStepBar: ({ stepLabels, activeStep }: OverlayStepBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const OverlayStepBar: ({ stepLabels, activeStep, onStepClick }: OverlayStepBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/OverlayStepBar.css';const
|
|
4
|
-
"overlay-step-bar__container": "_overlay-step-
|
|
5
|
-
"overlay-step-bar__step": "_overlay-step-
|
|
6
|
-
"overlay-step-bar__step
|
|
7
|
-
|
|
8
|
-
"
|
|
1
|
+
import { jsx as s, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import '../../assets/OverlayStepBar.css';const r = {
|
|
4
|
+
"overlay-step-bar__container": "_overlay-step-bar__container_s2qo6_1",
|
|
5
|
+
"overlay-step-bar__step-wrapper": "_overlay-step-bar__step-wrapper_s2qo6_10",
|
|
6
|
+
"overlay-step-bar__step": "_overlay-step-bar__step_s2qo6_10",
|
|
7
|
+
"overlay-step-bar__step--label": "_overlay-step-bar__step--label_s2qo6_56",
|
|
8
|
+
"overlay-step-bar__step--index": "_overlay-step-bar__step--index_s2qo6_61",
|
|
9
|
+
"overlay-step-bar__step--active": "_overlay-step-bar__step--active_s2qo6_86"
|
|
10
|
+
}, v = ({ stepLabels: _, activeStep: a = 0, onStepClick: t }) => (a > _.length && console.error("activeStep is greater than the number of steps"), /* @__PURE__ */ s("div", { className: r["overlay-step-bar__container"], children: _.length && _.map((p, e) => /* @__PURE__ */ s("span", { className: r["overlay-step-bar__step-wrapper"], children: /* @__PURE__ */ o(
|
|
11
|
+
"button",
|
|
9
12
|
{
|
|
10
|
-
className:
|
|
11
|
-
|
|
13
|
+
className: l(r["overlay-step-bar__step"], [
|
|
14
|
+
e === a - 1 && r["overlay-step-bar__step--active"]
|
|
12
15
|
]),
|
|
16
|
+
...t && { onClick: () => t(e + 1) },
|
|
17
|
+
type: "button",
|
|
18
|
+
"aria-label": `Step ${e + 1}`,
|
|
19
|
+
"aria-current": e === a - 1 ? "step" : void 0,
|
|
20
|
+
disabled: e === a - 1,
|
|
13
21
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ s("span", { className: r["overlay-step-bar__step--index"], children: e + 1 }),
|
|
23
|
+
/* @__PURE__ */ s("span", { className: r["overlay-step-bar__step--label"], children: p })
|
|
16
24
|
]
|
|
17
25
|
}
|
|
18
|
-
) }, `${
|
|
26
|
+
) }, `${e}_${p}`)) }));
|
|
19
27
|
export {
|
|
20
|
-
|
|
28
|
+
v as OverlayStepBar
|
|
21
29
|
};
|
|
22
30
|
//# sourceMappingURL=OverlayStepBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayStepBar.js","sources":["../../../src/components/OverlayStepBar/OverlayStepBar.tsx"],"sourcesContent":["import clsx from 'clsx';\
|
|
1
|
+
{"version":3,"file":"OverlayStepBar.js","sources":["../../../src/components/OverlayStepBar/OverlayStepBar.tsx"],"sourcesContent":["import clsx from 'clsx';\n\nimport styles from './OverlayStepBar.module.css';\n\nexport interface OverlayStepBarProps {\n /** Array of strings. */\n stepLabels: string[];\n /** activeStep number starting with 1. */\n activeStep: number;\n /** navigate to step. */\n onStepClick?: (step: number) => void;\n}\n\nexport const OverlayStepBar = ({ stepLabels, activeStep = 0, onStepClick }: OverlayStepBarProps) => {\n if (activeStep > stepLabels.length) {\n console.error('activeStep is greater than the number of steps');\n }\n\n return (\n <div className={styles['overlay-step-bar__container']}>\n {stepLabels.length &&\n stepLabels.map((label, index) => (\n <span key={`${index}_${label}`} className={styles[`overlay-step-bar__step-wrapper`]}>\n <button\n className={clsx(styles[`overlay-step-bar__step`], [\n index === activeStep - 1 && styles[`overlay-step-bar__step--active`],\n ])}\n {...(onStepClick && { onClick: () => onStepClick(index + 1) })}\n type=\"button\"\n aria-label={`Step ${index + 1}`}\n aria-current={index === activeStep - 1 ? 'step' : undefined}\n disabled={index === activeStep - 1}\n >\n <span className={styles[`overlay-step-bar__step--index`]}>{index + 1}</span>\n <span className={styles[`overlay-step-bar__step--label`]}>{label}</span>\n </button>\n </span>\n ))}\n </div>\n );\n};\n"],"names":["OverlayStepBar","stepLabels","activeStep","onStepClick","styles","label","index","jsx","jsxs","clsx"],"mappings":";;;;;;;;;GAaaA,IAAiB,CAAC,EAAE,YAAAC,GAAY,YAAAC,IAAa,GAAG,aAAAC,SACvDD,IAAaD,EAAW,UAC1B,QAAQ,MAAM,gDAAgD,qBAI7D,OAAI,EAAA,WAAWG,EAAO,6BAA6B,GACjD,YAAW,UACVH,EAAW,IAAI,CAACI,GAAOC,MACrB,gBAAAC,EAAC,UAA+B,WAAWH,EAAO,gCAAgC,GAChF,UAAA,gBAAAI;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAKL,EAAO,wBAAwB,GAAG;AAAA,MAChDE,MAAUJ,IAAa,KAAKE,EAAO,gCAAgC;AAAA,IAAA,CACpE;AAAA,IACA,GAAID,KAAe,EAAE,SAAS,MAAMA,EAAYG,IAAQ,CAAC,EAAE;AAAA,IAC5D,MAAK;AAAA,IACL,cAAY,QAAQA,IAAQ,CAAC;AAAA,IAC7B,gBAAcA,MAAUJ,IAAa,IAAI,SAAS;AAAA,IAClD,UAAUI,MAAUJ,IAAa;AAAA,IAEjC,UAAA;AAAA,MAAA,gBAAAK,EAAC,UAAK,WAAWH,EAAO,+BAA+B,GAAI,cAAQ,GAAE;AAAA,wBACpE,QAAK,EAAA,WAAWA,EAAO,+BAA+B,GAAI,UAAMC,EAAA,CAAA;AAAA,IAAA;AAAA,EAAA;AAAA,KAZ1D,GAAGC,CAAK,IAAID,CAAK,EAc5B,CACD,GACL;"}
|
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import { OverlayStepBar as t } from "./OverlayStepBar.js";
|
|
4
|
+
const i = "<OverlayStepBar stepLabels={[string]} activeStep={number} onStepClick={(step) => void}/>", b = {
|
|
4
5
|
title: "Molecules/OverlayStepBar",
|
|
5
|
-
component:
|
|
6
|
-
argTypes: {
|
|
6
|
+
component: t,
|
|
7
|
+
argTypes: {
|
|
8
|
+
activeStep: { control: "number" },
|
|
9
|
+
stepLabels: { control: "object" },
|
|
10
|
+
onStepClick: { action: "stepClicked" }
|
|
11
|
+
},
|
|
7
12
|
parameters: {
|
|
8
|
-
inspectComponent:
|
|
9
|
-
codeString:
|
|
13
|
+
inspectComponent: t,
|
|
14
|
+
codeString: i
|
|
10
15
|
}
|
|
11
|
-
}, a = (
|
|
12
|
-
|
|
16
|
+
}, a = (e) => {
|
|
17
|
+
const [n, r] = c(e.activeStep || 1);
|
|
18
|
+
return /* @__PURE__ */ s(
|
|
19
|
+
t,
|
|
20
|
+
{
|
|
21
|
+
...e,
|
|
22
|
+
activeStep: n,
|
|
23
|
+
onStepClick: (o) => {
|
|
24
|
+
var p;
|
|
25
|
+
r(o), (p = e.onStepClick) == null || p.call(e, o);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}, l = {
|
|
30
|
+
stepLabels: ["BasicDetails", "Lecturers", "PeriodPlanning", "Assessment", "Miscellaneous", "Overview"]
|
|
31
|
+
}, S = a.bind({});
|
|
32
|
+
S.args = {
|
|
33
|
+
...l,
|
|
13
34
|
activeStep: 2
|
|
14
|
-
}, n = a.bind({});
|
|
15
|
-
n.args = {
|
|
16
|
-
...l
|
|
17
35
|
};
|
|
18
36
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
37
|
+
S as OverlayStepBarExample,
|
|
38
|
+
b as default
|
|
21
39
|
};
|
|
22
40
|
//# sourceMappingURL=OverlayStepBar.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayStepBar.stories.js","sources":["../../../src/components/OverlayStepBar/OverlayStepBar.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { OverlayStepBarProps } from './OverlayStepBar';\n\nimport { OverlayStepBar } from './OverlayStepBar';\n\nconst codeString = '<OverlayStepBar
|
|
1
|
+
{"version":3,"file":"OverlayStepBar.stories.js","sources":["../../../src/components/OverlayStepBar/OverlayStepBar.stories.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { OverlayStepBarProps } from './OverlayStepBar';\n\nimport { OverlayStepBar } from './OverlayStepBar';\n\nconst codeString = '<OverlayStepBar stepLabels={[string]} activeStep={number} onStepClick={(step) => void}/>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/OverlayStepBar',\n component: OverlayStepBar,\n argTypes: {\n activeStep: { control: 'number' },\n stepLabels: { control: 'object' },\n onStepClick: { action: 'stepClicked' },\n },\n parameters: {\n inspectComponent: OverlayStepBar,\n codeString: codeString,\n },\n} as Meta<OverlayStepBarProps>;\n\nconst Template: StoryFn<OverlayStepBarProps> = (args) => {\n const [activeStep, setActiveStep] = useState(args.activeStep || 1);\n\n return (\n <OverlayStepBar\n {...args}\n activeStep={activeStep}\n onStepClick={(step) => {\n setActiveStep(step);\n args.onStepClick?.(step);\n }}\n />\n );\n};\n\nconst defaultArgs: Partial<OverlayStepBarProps> = {\n stepLabels: ['BasicDetails', 'Lecturers', 'PeriodPlanning', 'Assessment', 'Miscellaneous', 'Overview'],\n};\n\nexport const OverlayStepBarExample = Template.bind({});\nOverlayStepBarExample.args = {\n ...defaultArgs,\n activeStep: 2,\n};\n"],"names":["codeString","OverlayStepBar_stories","OverlayStepBar","Template","args","activeStep","setActiveStep","useState","jsx","step","_a","defaultArgs","OverlayStepBarExample"],"mappings":";;;AAOA,MAAMA,IAAa,4FAGJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY,EAAE,SAAS,SAAS;AAAA,IAChC,YAAY,EAAE,SAAS,SAAS;AAAA,IAChC,aAAa,EAAE,QAAQ,cAAc;AAAA,EACvC;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAyC,CAACC,MAAS;AACvD,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAASH,EAAK,cAAc,CAAC;AAG/D,SAAA,gBAAAI;AAAA,IAACN;AAAA,IAAA;AAAA,MACE,GAAGE;AAAA,MACJ,YAAAC;AAAA,MACA,aAAa,CAACI,MAAS;;AACrB,QAAAH,EAAcG,CAAI,IAClBC,IAAAN,EAAK,gBAAL,QAAAM,EAAA,KAAAN,GAAmBK;AAAA,MAAI;AAAA,IACzB;AAAA,EACF;AAEJ,GAEME,IAA4C;AAAA,EAChD,YAAY,CAAC,gBAAgB,aAAa,kBAAkB,cAAc,iBAAiB,UAAU;AACvG,GAEaC,IAAwBT,EAAS,KAAK,CAAE,CAAA;AACrDS,EAAsB,OAAO;AAAA,EAC3B,GAAGD;AAAA,EACH,YAAY;AACd;"}
|
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": "3.
|
|
5
|
+
"version": "3.17.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@testing-library/jest-dom": "^6.6.3",
|
|
65
65
|
"@testing-library/react": "^16.3.0",
|
|
66
66
|
"@types/jest": "^29.5.14",
|
|
67
|
-
"@types/node": "^22.15.
|
|
67
|
+
"@types/node": "^22.15.12",
|
|
68
68
|
"@types/react-dom": "^19.1.3",
|
|
69
|
-
"@types/react": "^19.1.
|
|
69
|
+
"@types/react": "^19.1.3",
|
|
70
70
|
"@uva-glass/eslint-config": "^1.3.10",
|
|
71
71
|
"@uva-glass/stylelint-config": "^1.2.2",
|
|
72
72
|
"@vitejs/plugin-react": "^4.4.1",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"jest-environment-jsdom": "^29.7.0",
|
|
82
82
|
"jest-junit": "^16.0.0",
|
|
83
83
|
"jsdom": "^26.1.0",
|
|
84
|
-
"npm-run-all2": "^
|
|
84
|
+
"npm-run-all2": "^8.0.1",
|
|
85
85
|
"react": "^19.1.0",
|
|
86
86
|
"react-dom": "^19.1.0",
|
|
87
87
|
"react-router": "^7.5.3",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"vite-plugin-static-copy": "^2.3.1",
|
|
100
100
|
"vite-plugin-svgr": "^4.3.0",
|
|
101
101
|
"vite-tsconfig-paths": "^5.1.4",
|
|
102
|
-
"vite": "^6.3.
|
|
102
|
+
"vite": "^6.3.5"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@babel/preset-env": "^7.27.1",
|