@uva-glass/component-library 1.27.0 → 1.29.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/Attention.css +1 -0
- package/dist/assets/InputField.css +1 -1
- package/dist/components/Attention/Attention.d.ts +3 -0
- package/dist/components/Attention/Attention.js +12 -0
- package/dist/components/Attention/Attention.js.map +1 -0
- package/dist/components/Attention/Attention.stories.d.ts +7 -0
- package/dist/components/Attention/Attention.stories.js +12 -0
- package/dist/components/Attention/Attention.stories.js.map +1 -0
- package/dist/components/Attention/index.d.ts +1 -0
- package/dist/components/Attention/index.js +5 -0
- package/dist/components/Attention/index.js.map +1 -0
- package/dist/components/InputField/InputField.d.ts +2 -1
- package/dist/components/InputField/InputField.js +50 -21
- package/dist/components/InputField/InputField.js.map +1 -1
- package/dist/components/InputField/InputField.stories.d.ts +2 -0
- package/dist/components/InputField/InputField.stories.js +35 -9
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +57 -55
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +57 -55
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/assets/InputField2.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._attention_1kulj_1{display:flex;gap:1rem}._attention_1kulj_1>svg{flex-shrink:0;height:1.5rem;width:1.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._input-
|
|
1
|
+
._input-field-wrapper_hh88t_1{align-items:center;display:flex;position:relative}._input-field_hh88t_1{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:1px solid;border-radius:.5rem;color:var(--color-black);flex:1;font-family:inherit;font-size:inherit;height:2.75rem;margin:0;padding:0 1rem;text-align:inherit}._input-field--large_hh88t_22{height:3rem}._input-field_hh88t_1:disabled{color:var(--color-scarpa-flow)}._input-field__clear-button_hh88t_30{background:none;border:none;cursor:pointer;max-height:1.5rem;padding:0 1rem 0 .5rem;position:absolute;right:0}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as o } from "../Icon/Icon.js";
|
|
3
|
+
import '../../assets/Attention.css';const e = "_attention_1kulj_1", s = {
|
|
4
|
+
attention: e
|
|
5
|
+
}, l = ({ children: t }) => /* @__PURE__ */ n("div", { className: s.attention, children: [
|
|
6
|
+
/* @__PURE__ */ i(o, { name: "ExclamationCircleFillMini", size: 24 }),
|
|
7
|
+
t
|
|
8
|
+
] });
|
|
9
|
+
export {
|
|
10
|
+
l as Attention
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Attention.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Attention.js","sources":["../../../src/components/Attention/Attention.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport styles from './Attention.module.css';\n\nimport { Icon } from 'components/Icon';\n\nexport const Attention = ({ children }: PropsWithChildren) => (\n <div className={styles['attention']}>\n <Icon name=\"ExclamationCircleFillMini\" size={24} />\n {children}\n </div>\n);\n"],"names":["Attention","children","styles","jsx","Icon"],"mappings":";;;;GAMaA,IAAY,CAAC,EAAE,UAAAC,EAAS,wBAClC,OAAI,EAAA,WAAWC,EAAO,WACrB,UAAA;AAAA,EAAA,gBAAAC,EAACC,GAAK,EAAA,MAAK,6BAA4B,MAAM,IAAI;AAAA,EAChDH;AAAA,EACH,CAAA;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, {
|
|
2
|
+
children?: import('react').ReactNode;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const AttentionExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, {
|
|
6
|
+
children?: import('react').ReactNode;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Attention as t } from "./Attention.js";
|
|
3
|
+
const r = {
|
|
4
|
+
title: "Atoms/Attention",
|
|
5
|
+
component: t
|
|
6
|
+
}, e = (n) => /* @__PURE__ */ o(t, { ...n, children: "Example Attention" }), i = e.bind({});
|
|
7
|
+
i.args = {};
|
|
8
|
+
export {
|
|
9
|
+
i as AttentionExample,
|
|
10
|
+
r as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Attention.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Attention.stories.js","sources":["../../../src/components/Attention/Attention.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { PropsWithChildren } from 'react';\n\nimport { Attention } from './Attention';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Attention',\n component: Attention,\n} as Meta<PropsWithChildren>;\n\nconst Template: StoryFn<PropsWithChildren> = (args) => <Attention {...args}>Example Attention</Attention>;\n\nexport const AttentionExample = Template.bind({});\nAttentionExample.args = {};\n"],"names":["Attention_stories","Attention","Template","args","AttentionExample"],"mappings":";;AAMA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AACb,GAEMC,IAAuC,CAACC,wBAAUF,GAAW,EAAA,GAAGE,GAAM,UAAiB,oBAAA,CAAA,GAEhFC,IAAmBF,EAAS,KAAK,EAAE;AAChDE,EAAiB,OAAO,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Attention';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface InputFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style'> {
|
|
4
4
|
variant?: 'large';
|
|
5
5
|
type?: 'text' | 'search' | 'password' | 'email';
|
|
6
6
|
id: string;
|
|
7
|
+
clearTrigger?: ReactNode;
|
|
7
8
|
}
|
|
8
9
|
export declare const InputField: import('react').ForwardRefExoticComponent<InputFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,25 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import '../../assets/InputField.css';const
|
|
5
|
-
"input-field": "_input-
|
|
6
|
-
"input-field
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
1
|
+
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x, useState as s, useRef as C, useEffect as v } from "react";
|
|
3
|
+
import { c as y } from "../../clsx-DB4S2d7J.js";
|
|
4
|
+
import '../../assets/InputField.css';const n = {
|
|
5
|
+
"input-field-wrapper": "_input-field-wrapper_hh88t_1",
|
|
6
|
+
"input-field": "_input-field_hh88t_1",
|
|
7
|
+
"input-field--large": "_input-field--large_hh88t_22",
|
|
8
|
+
"input-field__clear-button": "_input-field__clear-button_hh88t_30"
|
|
9
|
+
}, j = x(
|
|
10
|
+
({ autoComplete: c = "off", id: u, variant: o, type: p = "text", clearTrigger: i, ...f }, t) => {
|
|
11
|
+
const [e, r] = s(""), [h, _] = s(0), l = C(null);
|
|
12
|
+
v(() => {
|
|
13
|
+
l.current && _(l.current.offsetWidth);
|
|
14
|
+
}, [e]);
|
|
15
|
+
const d = () => {
|
|
16
|
+
r(""), t && "current" in t && t.current && t.current.focus();
|
|
17
|
+
}, m = (g) => {
|
|
18
|
+
r(g.target.value);
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ b("div", { className: n["input-field-wrapper"], children: [
|
|
21
|
+
/* @__PURE__ */ a(
|
|
22
|
+
"input",
|
|
23
|
+
{
|
|
24
|
+
...f,
|
|
25
|
+
autoComplete: c,
|
|
26
|
+
ref: t,
|
|
27
|
+
id: u,
|
|
28
|
+
className: y(n["input-field"], {
|
|
29
|
+
[n["input-field--large"]]: o === "large"
|
|
30
|
+
}),
|
|
31
|
+
type: p,
|
|
32
|
+
value: e,
|
|
33
|
+
onChange: m,
|
|
34
|
+
style: { paddingRight: e && i ? h : void 0 }
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
e && i && /* @__PURE__ */ a(
|
|
38
|
+
"button",
|
|
39
|
+
{
|
|
40
|
+
type: "button",
|
|
41
|
+
className: n["input-field__clear-button"],
|
|
42
|
+
onClick: d,
|
|
43
|
+
ref: l,
|
|
44
|
+
"aria-label": `clear trigger for ${u}`,
|
|
45
|
+
children: i
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
21
50
|
);
|
|
22
51
|
export {
|
|
23
|
-
|
|
52
|
+
j as InputField
|
|
24
53
|
};
|
|
25
54
|
//# sourceMappingURL=InputField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputField.js","sources":["../../../src/components/InputField/InputField.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { clsx } from 'clsx';\n\nimport type { InputHTMLAttributes } from 'react';\n\nimport styles from './InputField.module.css';\n\nexport interface InputFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style'> {\n variant?: 'large';\n type?: 'text' | 'search' | 'password' | 'email';\n id: string;\n}\n\nexport const InputField = forwardRef<HTMLInputElement, InputFieldProps>(\n ({ autoComplete = 'off', id, variant, type = 'text', ...restProps }: InputFieldProps, forwardedRef) => {\n return (\n <input\n
|
|
1
|
+
{"version":3,"file":"InputField.js","sources":["../../../src/components/InputField/InputField.tsx"],"sourcesContent":["import { forwardRef, useState, useEffect, useRef } from 'react';\nimport { clsx } from 'clsx';\n\nimport type { InputHTMLAttributes, ReactNode } from 'react';\n\nimport styles from './InputField.module.css';\n\nexport interface InputFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style'> {\n variant?: 'large';\n type?: 'text' | 'search' | 'password' | 'email';\n id: string;\n clearTrigger?: ReactNode;\n}\n\nexport const InputField = forwardRef<HTMLInputElement, InputFieldProps>(\n ({ autoComplete = 'off', id, variant, type = 'text', clearTrigger, ...restProps }: InputFieldProps, forwardedRef) => {\n const [value, setValue] = useState<string>('');\n const [clearButtonWidth, setClearButtonWidth] = useState<number>(0);\n const clearButtonRef = useRef<HTMLButtonElement>(null);\n\n useEffect(() => {\n if (clearButtonRef.current) {\n setClearButtonWidth(clearButtonRef.current.offsetWidth);\n }\n }, [value]);\n\n const handleClear = () => {\n setValue('');\n if (forwardedRef && 'current' in forwardedRef && forwardedRef.current) {\n forwardedRef.current.focus();\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value);\n };\n\n return (\n <div className={styles['input-field-wrapper']}>\n <input\n {...restProps}\n autoComplete={autoComplete}\n ref={forwardedRef}\n id={id}\n className={clsx(styles['input-field'], {\n [styles['input-field--large']]: variant === 'large',\n })}\n type={type}\n value={value}\n onChange={handleChange}\n style={{ paddingRight: value && clearTrigger ? clearButtonWidth : undefined }}\n />\n {value && clearTrigger && (\n <button\n type=\"button\"\n className={styles['input-field__clear-button']}\n onClick={handleClear}\n ref={clearButtonRef}\n aria-label={`clear trigger for ${id}`}\n >\n {clearTrigger}\n </button>\n )}\n </div>\n );\n }\n);\n"],"names":["InputField","forwardRef","autoComplete","id","variant","type","clearTrigger","restProps","forwardedRef","value","setValue","useState","clearButtonWidth","setClearButtonWidth","clearButtonRef","useRef","useEffect","handleClear","handleChange","event","jsxs","styles","jsx","clsx"],"mappings":";;;;;;;;GAcaA,IAAaC;AAAA,EACxB,CAAC,EAAE,cAAAC,IAAe,OAAO,IAAAC,GAAI,SAAAC,GAAS,MAAAC,IAAO,QAAQ,cAAAC,GAAc,GAAGC,EAAU,GAAoBC,MAAiB;AACnH,UAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAiB,EAAE,GACvC,CAACC,GAAkBC,CAAmB,IAAIF,EAAiB,CAAC,GAC5DG,IAAiBC,EAA0B,IAAI;AAErD,IAAAC,EAAU,MAAM;AACd,MAAIF,EAAe,WACGD,EAAAC,EAAe,QAAQ,WAAW;AAAA,IACxD,GACC,CAACL,CAAK,CAAC;AAEV,UAAMQ,IAAc,MAAM;AACxB,MAAAP,EAAS,EAAE,GACPF,KAAgB,aAAaA,KAAgBA,EAAa,WAC5DA,EAAa,QAAQ;IACvB,GAGIU,IAAe,CAACC,MAA+C;AAC1D,MAAAT,EAAAS,EAAM,OAAO,KAAK;AAAA,IAAA;AAG7B,WACG,gBAAAC,EAAA,OAAA,EAAI,WAAWC,EAAO,qBAAqB,GAC1C,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UACE,GAAGf;AAAA,UACJ,cAAAL;AAAA,UACA,KAAKM;AAAA,UACL,IAAAL;AAAA,UACA,WAAWoB,EAAKF,EAAO,aAAa,GAAG;AAAA,YACrC,CAACA,EAAO,oBAAoB,CAAC,GAAGjB,MAAY;AAAA,UAAA,CAC7C;AAAA,UACD,MAAAC;AAAA,UACA,OAAAI;AAAA,UACA,UAAUS;AAAA,UACV,OAAO,EAAE,cAAcT,KAASH,IAAeM,IAAmB,OAAU;AAAA,QAAA;AAAA,MAC9E;AAAA,MACCH,KAASH,KACR,gBAAAgB;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,WAAWD,EAAO,2BAA2B;AAAA,UAC7C,SAASJ;AAAA,UACT,KAAKH;AAAA,UACL,cAAY,qBAAqBX,CAAE;AAAA,UAElC,UAAAG;AAAA,QAAA;AAAA,MACH;AAAA,IAEJ,EAAA,CAAA;AAAA,EAEJ;AACF;"}
|
|
@@ -3,3 +3,5 @@ import { InputFieldProps } from './InputField';
|
|
|
3
3
|
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, InputFieldProps>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const InputFieldExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputFieldProps>;
|
|
6
|
+
export declare const WithStringClearTrigger: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputFieldProps>;
|
|
7
|
+
export declare const WithIconClearTrigger: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputFieldProps>;
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as a } from "react";
|
|
3
|
+
import { InputField as n } from "./InputField.js";
|
|
4
|
+
import { Container as s } from "../storyComponents/Container/Container.js";
|
|
5
|
+
import { Icon as p } from "../Icon/Icon.js";
|
|
6
|
+
import "../Button/Button.js";
|
|
7
|
+
import "../OverlayCloseButton/OverlayCloseButton.js";
|
|
8
|
+
import "../IconButton/IconButton.js";
|
|
9
|
+
import "../Input/Input.js";
|
|
10
|
+
import "../SelectListbox/SelectListbox.js";
|
|
11
|
+
import "../SelectListbox/SelectProvider.js";
|
|
12
|
+
const l = (t) => {
|
|
4
13
|
const r = t.variant ?? [];
|
|
5
14
|
return { ...t, variant: r.toString() };
|
|
6
|
-
},
|
|
15
|
+
}, A = {
|
|
7
16
|
title: "Atoms/InputField",
|
|
8
|
-
component:
|
|
17
|
+
component: n,
|
|
9
18
|
argTypes: {
|
|
10
19
|
variant: {
|
|
11
20
|
options: ["large"],
|
|
@@ -24,14 +33,31 @@ import '../../assets/InputField2.css';const a = (t) => {
|
|
|
24
33
|
}
|
|
25
34
|
}
|
|
26
35
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
36
|
+
}, e = (t) => {
|
|
37
|
+
const r = a(null);
|
|
38
|
+
return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(n, { ...l(t), ref: r }) });
|
|
39
|
+
}, i = {
|
|
29
40
|
type: "text",
|
|
30
41
|
variant: void 0,
|
|
31
42
|
id: "4f9ca77d"
|
|
43
|
+
}, m = e.bind({});
|
|
44
|
+
m.args = {
|
|
45
|
+
...i
|
|
46
|
+
};
|
|
47
|
+
const c = e.bind({});
|
|
48
|
+
c.args = {
|
|
49
|
+
...i,
|
|
50
|
+
clearTrigger: "Clear"
|
|
51
|
+
};
|
|
52
|
+
const d = e.bind({});
|
|
53
|
+
d.args = {
|
|
54
|
+
...i,
|
|
55
|
+
clearTrigger: /* @__PURE__ */ o(p, { name: "Cross" })
|
|
32
56
|
};
|
|
33
57
|
export {
|
|
34
|
-
|
|
35
|
-
d as
|
|
58
|
+
m as InputFieldExample,
|
|
59
|
+
d as WithIconClearTrigger,
|
|
60
|
+
c as WithStringClearTrigger,
|
|
61
|
+
A as default
|
|
36
62
|
};
|
|
37
63
|
//# sourceMappingURL=InputField.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputField.stories.js","sources":["../../../src/components/InputField/InputField.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { InputFieldProps } from './InputField';\n\nimport './InputField
|
|
1
|
+
{"version":3,"file":"InputField.stories.js","sources":["../../../src/components/InputField/InputField.stories.tsx"],"sourcesContent":["import { useRef } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { InputFieldProps } from './InputField';\n\nimport { InputField } from './InputField';\n\nimport { Container } from 'components/storyComponents/Container';\nimport { Icon } from 'components';\n\nconst transformArgs = (args: InputFieldProps) => {\n // args.variant is provided as an array because the control type is set to a checkbox. So this transforms the selected value into its proper value: a string\n const variantArray = (args.variant as unknown as string[]) ?? [];\n return { ...args, ...{ variant: variantArray.toString() } } as InputFieldProps;\n};\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/InputField',\n component: InputField,\n argTypes: {\n variant: {\n options: ['large'],\n control: 'check',\n },\n type: {\n control: 'radio',\n options: ['text', 'search', 'password', 'email'],\n },\n id: {\n control: 'text',\n },\n autoComplete: {\n table: {\n disable: true,\n },\n },\n },\n} as Meta<InputFieldProps>;\n\nconst Template: StoryFn<InputFieldProps> = (args) => {\n const inputRef = useRef<HTMLInputElement>(null);\n\n return (\n <Container>\n <InputField {...transformArgs(args)} ref={inputRef} />\n </Container>\n );\n};\n\nconst defaultArgs: Partial<InputFieldProps> = {\n type: 'text',\n variant: undefined,\n id: '4f9ca77d',\n};\n\nexport const InputFieldExample = Template.bind({});\nInputFieldExample.args = {\n ...defaultArgs,\n};\n\nexport const WithStringClearTrigger = Template.bind({});\nWithStringClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: 'Clear',\n};\n\nexport const WithIconClearTrigger = Template.bind({});\nWithIconClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: <Icon name=\"Cross\" />,\n};\n"],"names":["transformArgs","args","variantArray","InputField_stories","InputField","Template","inputRef","useRef","jsx","Container","defaultArgs","InputFieldExample","WithStringClearTrigger","WithIconClearTrigger","Icon"],"mappings":";;;;;;;;;;;AAUA,MAAMA,IAAgB,CAACC,MAA0B;AAEzC,QAAAC,IAAgBD,EAAK,WAAmC;AACvD,SAAA,EAAE,GAAGA,GAAW,SAASC,EAAa,SAAS;AACxD,GAGeC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS,CAAC,OAAO;AAAA,MACjB,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS,CAAC,QAAQ,UAAU,YAAY,OAAO;AAAA,IACjD;AAAA,IACA,IAAI;AAAA,MACF,SAAS;AAAA,IACX;AAAA,IACA,cAAc;AAAA,MACZ,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF,GAEMC,IAAqC,CAACJ,MAAS;AAC7C,QAAAK,IAAWC,EAAyB,IAAI;AAG5C,SAAA,gBAAAC,EAACC,GACC,EAAA,UAAA,gBAAAD,EAACJ,GAAY,EAAA,GAAGJ,EAAcC,CAAI,GAAG,KAAKK,EAAU,CAAA,EACtD,CAAA;AAEJ,GAEMI,IAAwC;AAAA,EAC5C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,IAAI;AACN,GAEaC,IAAoBN,EAAS,KAAK,EAAE;AACjDM,EAAkB,OAAO;AAAA,EACvB,GAAGD;AACL;AAEO,MAAME,IAAyBP,EAAS,KAAK,EAAE;AACtDO,EAAuB,OAAO;AAAA,EAC5B,GAAGF;AAAA,EACH,cAAc;AAChB;AAEO,MAAMG,IAAuBR,EAAS,KAAK,EAAE;AACpDQ,EAAqB,OAAO;AAAA,EAC1B,GAAGH;AAAA,EACH,cAAc,gBAAAF,EAACM,GAAK,EAAA,MAAK,QAAQ,CAAA;AACnC;"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,62 +1,64 @@
|
|
|
1
1
|
import { Accordion as t } from "./Accordion/Accordion.js";
|
|
2
2
|
import { AppStatusBar as p } from "./AppStatusBar/AppStatusBar.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
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 {
|
|
3
|
+
import { Attention as f } from "./Attention/Attention.js";
|
|
4
|
+
import { Backdrop as a } from "./Backdrop/Backdrop.js";
|
|
5
|
+
import { Button as i } from "./Button/Button.js";
|
|
6
|
+
import { ButtonGroup as u } from "./ButtonGroup/ButtonGroup.js";
|
|
7
|
+
import { Card as d } from "./Card/Card.js";
|
|
8
|
+
import { Checkbox as B } from "./Checkbox/Checkbox.js";
|
|
9
|
+
import { Drawer as I } from "./Drawer/Drawer.js";
|
|
10
|
+
import { FieldHint as C } from "./FieldHint/FieldHint.js";
|
|
11
|
+
import { FormField as L } from "./FormField/FormField.js";
|
|
12
|
+
import { Icon as g } from "./Icon/Icon.js";
|
|
13
|
+
import { IconButton as A } from "./IconButton/IconButton.js";
|
|
14
|
+
import { InfoMessage as P } from "./InfoMessage/InfoMessage.js";
|
|
15
|
+
import { Input as R } from "./Input/Input.js";
|
|
16
|
+
import { InputField as w } from "./InputField/InputField.js";
|
|
17
|
+
import { Label as G } from "./Label/Label.js";
|
|
18
|
+
import { M as N } from "../MenuLink-CLEqkVVh.js";
|
|
19
|
+
import { MetaDataList as T } from "./MetaDataList/MetaDataList.js";
|
|
20
|
+
import { ModalDialog as q } from "./ModalDialog/ModalDialog.js";
|
|
21
|
+
import { OverlayCloseButton as E } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
22
|
+
import { ProgrammeCard as K } from "./ProgrammeCard/ProgrammeCard.js";
|
|
23
|
+
import { RadioButton as U } from "./RadioButton/RadioButton.js";
|
|
24
|
+
import { Repeater as W } from "./Repeater/Repeater.js";
|
|
25
|
+
import { SectionNotification as Y } from "./SectionNotification/SectionNotification.js";
|
|
26
|
+
import { SelectListbox as _ } from "./SelectListbox/SelectListbox.js";
|
|
27
|
+
import { SelectProvider as oo, useSelect as ro } from "./SelectListbox/SelectProvider.js";
|
|
28
|
+
import { Spinner as eo } from "./Spinner/Spinner.js";
|
|
29
|
+
import { StatusPill as mo } from "./StatusPill/StatusPill.js";
|
|
30
|
+
import { Tooltip as xo } from "./Tooltip/Tooltip.js";
|
|
30
31
|
export {
|
|
31
32
|
t as Accordion,
|
|
32
33
|
p as AppStatusBar,
|
|
33
|
-
f as
|
|
34
|
-
a as
|
|
35
|
-
|
|
36
|
-
u as
|
|
37
|
-
d as
|
|
38
|
-
B as
|
|
39
|
-
I as
|
|
40
|
-
C as
|
|
41
|
-
L as
|
|
42
|
-
g as
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
R as
|
|
46
|
-
w as
|
|
47
|
-
G as
|
|
48
|
-
N as
|
|
49
|
-
T as
|
|
50
|
-
q as
|
|
51
|
-
E as
|
|
52
|
-
K as
|
|
53
|
-
U as
|
|
54
|
-
W as
|
|
55
|
-
Y as
|
|
56
|
-
_ as
|
|
57
|
-
|
|
58
|
-
eo as
|
|
59
|
-
mo as
|
|
60
|
-
|
|
34
|
+
f as Attention,
|
|
35
|
+
a as Backdrop,
|
|
36
|
+
i as Button,
|
|
37
|
+
u as ButtonGroup,
|
|
38
|
+
d as Card,
|
|
39
|
+
B as Checkbox,
|
|
40
|
+
I as Drawer,
|
|
41
|
+
C as FieldHint,
|
|
42
|
+
L as FormField,
|
|
43
|
+
g as Icon,
|
|
44
|
+
A as IconButton,
|
|
45
|
+
P as InfoMessage,
|
|
46
|
+
R as Input,
|
|
47
|
+
w as InputField,
|
|
48
|
+
G as Label,
|
|
49
|
+
N as MenuLink,
|
|
50
|
+
T as MetaDataList,
|
|
51
|
+
q as ModalDialog,
|
|
52
|
+
E as OverlayCloseButton,
|
|
53
|
+
K as ProgrammeCard,
|
|
54
|
+
U as RadioButton,
|
|
55
|
+
W as Repeater,
|
|
56
|
+
Y as SectionNotification,
|
|
57
|
+
_ as SelectListbox,
|
|
58
|
+
oo as SelectProvider,
|
|
59
|
+
eo as Spinner,
|
|
60
|
+
mo as StatusPill,
|
|
61
|
+
xo as Tooltip,
|
|
62
|
+
ro as useSelect
|
|
61
63
|
};
|
|
62
64
|
//# 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,62 +1,64 @@
|
|
|
1
1
|
import { Accordion as t } from "./components/Accordion/Accordion.js";
|
|
2
2
|
import { AppStatusBar as p } from "./components/AppStatusBar/AppStatusBar.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
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 {
|
|
3
|
+
import { Attention as f } from "./components/Attention/Attention.js";
|
|
4
|
+
import { Backdrop as a } from "./components/Backdrop/Backdrop.js";
|
|
5
|
+
import { Button as i } from "./components/Button/Button.js";
|
|
6
|
+
import { ButtonGroup as u } from "./components/ButtonGroup/ButtonGroup.js";
|
|
7
|
+
import { Card as d } from "./components/Card/Card.js";
|
|
8
|
+
import { Checkbox as B } from "./components/Checkbox/Checkbox.js";
|
|
9
|
+
import { Drawer as I } from "./components/Drawer/Drawer.js";
|
|
10
|
+
import { FieldHint as C } from "./components/FieldHint/FieldHint.js";
|
|
11
|
+
import { FormField as L } from "./components/FormField/FormField.js";
|
|
12
|
+
import { Icon as g } from "./components/Icon/Icon.js";
|
|
13
|
+
import { IconButton as A } from "./components/IconButton/IconButton.js";
|
|
14
|
+
import { InfoMessage as P } from "./components/InfoMessage/InfoMessage.js";
|
|
15
|
+
import { Input as R } from "./components/Input/Input.js";
|
|
16
|
+
import { InputField as w } from "./components/InputField/InputField.js";
|
|
17
|
+
import { Label as G } from "./components/Label/Label.js";
|
|
18
|
+
import { M as N } from "./MenuLink-CLEqkVVh.js";
|
|
19
|
+
import { MetaDataList as T } from "./components/MetaDataList/MetaDataList.js";
|
|
20
|
+
import { ModalDialog as q } from "./components/ModalDialog/ModalDialog.js";
|
|
21
|
+
import { OverlayCloseButton as E } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
22
|
+
import { ProgrammeCard as K } from "./components/ProgrammeCard/ProgrammeCard.js";
|
|
23
|
+
import { RadioButton as U } from "./components/RadioButton/RadioButton.js";
|
|
24
|
+
import { Repeater as W } from "./components/Repeater/Repeater.js";
|
|
25
|
+
import { SectionNotification as Y } from "./components/SectionNotification/SectionNotification.js";
|
|
26
|
+
import { SelectListbox as _ } from "./components/SelectListbox/SelectListbox.js";
|
|
27
|
+
import { SelectProvider as oo, useSelect as ro } from "./components/SelectListbox/SelectProvider.js";
|
|
28
|
+
import { Spinner as eo } from "./components/Spinner/Spinner.js";
|
|
29
|
+
import { StatusPill as mo } from "./components/StatusPill/StatusPill.js";
|
|
30
|
+
import { Tooltip as xo } from "./components/Tooltip/Tooltip.js";
|
|
30
31
|
export {
|
|
31
32
|
t as Accordion,
|
|
32
33
|
p as AppStatusBar,
|
|
33
|
-
f as
|
|
34
|
-
a as
|
|
35
|
-
|
|
36
|
-
u as
|
|
37
|
-
d as
|
|
38
|
-
B as
|
|
39
|
-
I as
|
|
40
|
-
C as
|
|
41
|
-
L as
|
|
42
|
-
g as
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
R as
|
|
46
|
-
w as
|
|
47
|
-
G as
|
|
48
|
-
N as
|
|
49
|
-
T as
|
|
50
|
-
q as
|
|
51
|
-
E as
|
|
52
|
-
K as
|
|
53
|
-
U as
|
|
54
|
-
W as
|
|
55
|
-
Y as
|
|
56
|
-
_ as
|
|
57
|
-
|
|
58
|
-
eo as
|
|
59
|
-
mo as
|
|
60
|
-
|
|
34
|
+
f as Attention,
|
|
35
|
+
a as Backdrop,
|
|
36
|
+
i as Button,
|
|
37
|
+
u as ButtonGroup,
|
|
38
|
+
d as Card,
|
|
39
|
+
B as Checkbox,
|
|
40
|
+
I as Drawer,
|
|
41
|
+
C as FieldHint,
|
|
42
|
+
L as FormField,
|
|
43
|
+
g as Icon,
|
|
44
|
+
A as IconButton,
|
|
45
|
+
P as InfoMessage,
|
|
46
|
+
R as Input,
|
|
47
|
+
w as InputField,
|
|
48
|
+
G as Label,
|
|
49
|
+
N as MenuLink,
|
|
50
|
+
T as MetaDataList,
|
|
51
|
+
q as ModalDialog,
|
|
52
|
+
E as OverlayCloseButton,
|
|
53
|
+
K as ProgrammeCard,
|
|
54
|
+
U as RadioButton,
|
|
55
|
+
W as Repeater,
|
|
56
|
+
Y as SectionNotification,
|
|
57
|
+
_ as SelectListbox,
|
|
58
|
+
oo as SelectProvider,
|
|
59
|
+
eo as Spinner,
|
|
60
|
+
mo as StatusPill,
|
|
61
|
+
xo as Tooltip,
|
|
62
|
+
ro as useSelect
|
|
61
63
|
};
|
|
62
64
|
//# 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.29.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@types/node": "^20.14.2",
|
|
59
59
|
"@types/react": "^18.3.3",
|
|
60
60
|
"@types/react-dom": "^18.3.0",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
62
|
-
"@typescript-eslint/parser": "^7.
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
|
62
|
+
"@typescript-eslint/parser": "^7.13.0",
|
|
63
63
|
"@uva-glass/eslint-config": "^1.2.0",
|
|
64
64
|
"@uva-glass/stylelint-config": "^1.1.0",
|
|
65
65
|
"@vitejs/plugin-react": "^4.3.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.form{width:20%}.form-field{display:flex;flex-direction:column;gap:.5rem 1rem}
|