@uva-glass/component-library 1.7.1 → 1.9.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/Button.css +1 -1
- package/dist/assets/Label.css +1 -0
- package/dist/components/Button/Button.js +16 -16
- package/dist/components/Label/Label.d.ts +6 -0
- package/dist/components/Label/Label.js +8 -0
- package/dist/components/Label/Label.js.map +1 -0
- package/dist/components/Label/Label.stories.d.ts +5 -0
- package/dist/components/Label/Label.stories.js +23 -0
- package/dist/components/Label/Label.stories.js.map +1 -0
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Label/index.js +5 -0
- package/dist/components/Label/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +17 -15
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +17 -15
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._label_18mqr_1{font-weight:var(--semibold);text-align:left}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import '../../assets/Button.css';const
|
|
5
|
-
button:
|
|
6
|
-
"button--blank": "_button--
|
|
7
|
-
"button--primary": "_button--
|
|
8
|
-
"button--secondary": "_button--
|
|
9
|
-
"button--destructive-primary": "_button--destructive-
|
|
10
|
-
"button--destructive-secondary": "_button--destructive-
|
|
11
|
-
"button--wide-column": "_button--wide-
|
|
12
|
-
}, p =
|
|
13
|
-
const { children:
|
|
2
|
+
import { c as _ } from "../../clsx-DB4S2d7J.js";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
import '../../assets/Button.css';const i = "_button_gc28t_3", t = {
|
|
5
|
+
button: i,
|
|
6
|
+
"button--blank": "_button--blank_gc28t_37",
|
|
7
|
+
"button--primary": "_button--primary_gc28t_54",
|
|
8
|
+
"button--secondary": "_button--secondary_gc28t_70",
|
|
9
|
+
"button--destructive-primary": "_button--destructive-primary_gc28t_86",
|
|
10
|
+
"button--destructive-secondary": "_button--destructive-secondary_gc28t_104",
|
|
11
|
+
"button--wide-column": "_button--wide-column_gc28t_122"
|
|
12
|
+
}, p = a((o, n) => {
|
|
13
|
+
const { children: r, type: u = "button", variant: c, displayColumn: e = !1, ...s } = o;
|
|
14
14
|
return /* @__PURE__ */ b(
|
|
15
15
|
"button",
|
|
16
16
|
{
|
|
17
17
|
...s,
|
|
18
|
-
type:
|
|
18
|
+
type: u,
|
|
19
19
|
ref: n,
|
|
20
|
-
className:
|
|
21
|
-
[t["button--wide-column"]]:
|
|
20
|
+
className: _(t.button, t[`button--${c}`], {
|
|
21
|
+
[t["button--wide-column"]]: e
|
|
22
22
|
}),
|
|
23
|
-
children:
|
|
23
|
+
children: r
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LabelHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface LabelProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'className' | 'style'> {
|
|
4
|
+
htmlFor: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Label: ({ children, htmlFor, ...restProps }: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Label.css';const b = "_label_18mqr_1", o = {
|
|
3
|
+
label: b
|
|
4
|
+
}, c = ({ children: l, htmlFor: e, ...a }) => /* @__PURE__ */ s("label", { ...a, htmlFor: e, className: o.label, children: l });
|
|
5
|
+
export {
|
|
6
|
+
c as Label
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sources":["../../../src/components/Label/Label.tsx"],"sourcesContent":["import type { LabelHTMLAttributes } from 'react';\n\nimport styles from './Label.module.css';\n\nexport interface LabelProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'className' | 'style'> {\n htmlFor: string;\n}\n\nexport const Label = ({ children, htmlFor, ...restProps }: LabelProps) => (\n <label {...restProps} htmlFor={htmlFor} className={styles['label']}>\n {children}\n </label>\n);\n"],"names":["Label","children","htmlFor","restProps","jsx","styles"],"mappings":";;;GAQaA,IAAQ,CAAC,EAAE,UAAAC,GAAU,SAAAC,GAAS,GAAGC,EAAU,MACrD,gBAAAC,EAAA,SAAA,EAAO,GAAGD,GAAW,SAAAD,GAAkB,WAAWG,EAAO,OACvD,UAAAJ,EACH,CAAA;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LabelProps } from './Label';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, LabelProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const LabelExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, LabelProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Label as t } from "./Label.js";
|
|
3
|
+
const a = {
|
|
4
|
+
title: "Atoms/Label",
|
|
5
|
+
component: t,
|
|
6
|
+
argTypes: {
|
|
7
|
+
htmlFor: {
|
|
8
|
+
control: "text"
|
|
9
|
+
},
|
|
10
|
+
children: {
|
|
11
|
+
control: "text"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, r = (e) => /* @__PURE__ */ o(t, { ...e }), l = r.bind({});
|
|
15
|
+
l.args = {
|
|
16
|
+
children: "Lorem Ipsum",
|
|
17
|
+
htmlFor: "bd79f7ec"
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
l as LabelExample,
|
|
21
|
+
a as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=Label.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.stories.js","sources":["../../../src/components/Label/Label.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { LabelProps } from './Label';\n\nimport { Label } from './Label';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Label',\n component: Label,\n argTypes: {\n htmlFor: {\n control: 'text',\n },\n children: {\n control: 'text',\n },\n },\n} as Meta<LabelProps>;\n\nconst Template: StoryFn<LabelProps> = (args) => <Label {...args} />;\n\nexport const LabelExample = Template.bind({});\nLabelExample.args = {\n children: 'Lorem Ipsum',\n htmlFor: 'bd79f7ec',\n};\n"],"names":["Label_stories","Label","Template","args","jsx","LabelExample"],"mappings":";;AAMA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,IACA,UAAU;AAAA,MACR,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAAgC,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAO,GAAGE,EAAM,CAAA,GAEpDE,IAAeH,EAAS,KAAK,EAAE;AAC5CG,EAAa,OAAO;AAAA,EAClB,UAAU;AAAA,EACV,SAAS;AACX;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Label';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -6,6 +6,7 @@ export * from './IconButton';
|
|
|
6
6
|
export * from './InfoMessage';
|
|
7
7
|
export * from './Input';
|
|
8
8
|
export * from './InputField';
|
|
9
|
+
export * from './Label';
|
|
9
10
|
export * from './SectionNotification';
|
|
10
11
|
export * from './SelectListbox';
|
|
11
12
|
export * from './SelectListbox/SelectProvider';
|
package/dist/components/index.js
CHANGED
|
@@ -3,26 +3,28 @@ import { Button as p } from "./Button/Button.js";
|
|
|
3
3
|
import { Card as x } from "./Card/Card.js";
|
|
4
4
|
import { Icon as n } from "./Icon/Icon.js";
|
|
5
5
|
import { IconButton as c } from "./IconButton/IconButton.js";
|
|
6
|
-
import { InfoMessage as
|
|
7
|
-
import { Input as
|
|
8
|
-
import { InputField as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
6
|
+
import { InfoMessage as u } from "./InfoMessage/InfoMessage.js";
|
|
7
|
+
import { Input as l } from "./Input/Input.js";
|
|
8
|
+
import { InputField as I } from "./InputField/InputField.js";
|
|
9
|
+
import { Label as B } from "./Label/Label.js";
|
|
10
|
+
import { SectionNotification as L } from "./SectionNotification/SectionNotification.js";
|
|
11
|
+
import { SelectListbox as v } from "./SelectListbox/SelectListbox.js";
|
|
12
|
+
import { SelectProvider as C, useSelect as F } from "./SelectListbox/SelectProvider.js";
|
|
13
|
+
import { Spinner as N } from "./Spinner/Spinner.js";
|
|
13
14
|
export {
|
|
14
15
|
t as AppStatusBar,
|
|
15
16
|
p as Button,
|
|
16
17
|
x as Card,
|
|
17
18
|
n as Icon,
|
|
18
19
|
c as IconButton,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
B as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
u as InfoMessage,
|
|
21
|
+
l as Input,
|
|
22
|
+
I as InputField,
|
|
23
|
+
B as Label,
|
|
24
|
+
L as SectionNotification,
|
|
25
|
+
v as SelectListbox,
|
|
26
|
+
C as SelectProvider,
|
|
27
|
+
N as Spinner,
|
|
28
|
+
F as useSelect
|
|
27
29
|
};
|
|
28
30
|
//# 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
|
@@ -3,26 +3,28 @@ import { Button as p } from "./components/Button/Button.js";
|
|
|
3
3
|
import { Card as x } from "./components/Card/Card.js";
|
|
4
4
|
import { Icon as n } from "./components/Icon/Icon.js";
|
|
5
5
|
import { IconButton as c } from "./components/IconButton/IconButton.js";
|
|
6
|
-
import { InfoMessage as
|
|
7
|
-
import { Input as
|
|
8
|
-
import { InputField as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
6
|
+
import { InfoMessage as u } from "./components/InfoMessage/InfoMessage.js";
|
|
7
|
+
import { Input as l } from "./components/Input/Input.js";
|
|
8
|
+
import { InputField as I } from "./components/InputField/InputField.js";
|
|
9
|
+
import { Label as B } from "./components/Label/Label.js";
|
|
10
|
+
import { SectionNotification as L } from "./components/SectionNotification/SectionNotification.js";
|
|
11
|
+
import { SelectListbox as v } from "./components/SelectListbox/SelectListbox.js";
|
|
12
|
+
import { SelectProvider as C, useSelect as F } from "./components/SelectListbox/SelectProvider.js";
|
|
13
|
+
import { Spinner as N } from "./components/Spinner/Spinner.js";
|
|
13
14
|
export {
|
|
14
15
|
t as AppStatusBar,
|
|
15
16
|
p as Button,
|
|
16
17
|
x as Card,
|
|
17
18
|
n as Icon,
|
|
18
19
|
c as IconButton,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
B as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
u as InfoMessage,
|
|
21
|
+
l as Input,
|
|
22
|
+
I as InputField,
|
|
23
|
+
B as Label,
|
|
24
|
+
L as SectionNotification,
|
|
25
|
+
v as SelectListbox,
|
|
26
|
+
C as SelectProvider,
|
|
27
|
+
N as Spinner,
|
|
28
|
+
F as useSelect
|
|
27
29
|
};
|
|
28
30
|
//# 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.9.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"@semantic-release/git": "^10.0.1",
|
|
45
45
|
"@semantic-release/gitlab": "^13.1.0",
|
|
46
46
|
"@semantic-release/npm": "^12.0.1",
|
|
47
|
-
"@storybook/addon-a11y": "^8.1.
|
|
48
|
-
"@storybook/addon-essentials": "^8.1.
|
|
49
|
-
"@storybook/addon-interactions": "^8.1.
|
|
50
|
-
"@storybook/addon-links": "^8.1.
|
|
51
|
-
"@storybook/blocks": "^8.1.
|
|
52
|
-
"@storybook/react": "^8.1.
|
|
53
|
-
"@storybook/react-vite": "^8.1.
|
|
54
|
-
"@storybook/test": "^8.1.
|
|
47
|
+
"@storybook/addon-a11y": "^8.1.2",
|
|
48
|
+
"@storybook/addon-essentials": "^8.1.2",
|
|
49
|
+
"@storybook/addon-interactions": "^8.1.2",
|
|
50
|
+
"@storybook/addon-links": "^8.1.2",
|
|
51
|
+
"@storybook/blocks": "^8.1.2",
|
|
52
|
+
"@storybook/react": "^8.1.2",
|
|
53
|
+
"@storybook/react-vite": "^8.1.2",
|
|
54
|
+
"@storybook/test": "^8.1.2",
|
|
55
55
|
"@types/node": "^20.12.12",
|
|
56
56
|
"@types/react": "^18.3.2",
|
|
57
57
|
"@types/react-dom": "^18.3.0",
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
59
|
-
"@typescript-eslint/parser": "^7.
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^7.10.0",
|
|
59
|
+
"@typescript-eslint/parser": "^7.10.0",
|
|
60
60
|
"@uva-glass/eslint-config": "^1.2.0",
|
|
61
61
|
"@uva-glass/stylelint-config": "^1.1.0",
|
|
62
62
|
"@vitejs/plugin-react": "^4.2.1",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
69
69
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
70
70
|
"eslint-plugin-storybook": "^0.8.0",
|
|
71
|
-
"glob": "^10.3.
|
|
71
|
+
"glob": "^10.3.16",
|
|
72
72
|
"jest": "^29.7.0",
|
|
73
73
|
"jest-environment-jsdom": "^29.7.0",
|
|
74
74
|
"jest-junit": "^16.0.0",
|
|
75
75
|
"jsdom": "^24.0.0",
|
|
76
|
-
"npm-run-all2": "^6.
|
|
76
|
+
"npm-run-all2": "^6.2.0",
|
|
77
77
|
"react": "^18.3.1",
|
|
78
78
|
"react-dom": "^18.3.1",
|
|
79
79
|
"semantic-release": "^23.1.1",
|
|
80
|
-
"storybook": "^8.1.
|
|
80
|
+
"storybook": "^8.1.2",
|
|
81
81
|
"style-dictionary": "^3.9.2",
|
|
82
82
|
"stylelint": "^16.5.0",
|
|
83
83
|
"stylelint-config-recommended": "^14.0.0",
|