@uva-glass/component-library 1.7.1 → 1.8.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/Label.css +1 -0
- 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 +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._label_18mqr_1{font-weight:var(--semibold);text-align:left}
|
|
@@ -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.8.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -73,7 +73,7 @@
|
|
|
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",
|