@uva-glass/component-library 1.45.4 → 1.45.6
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/Button.module-Gr3KvBvb.js +14 -0
- package/dist/Button.module-Gr3KvBvb.js.map +1 -0
- package/dist/{SelectListbox.module-CArwRBHq.js → SelectListbox.module-CdK9mQmJ.js} +20 -20
- package/dist/SelectListbox.module-CdK9mQmJ.js.map +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/InfoMessage.css +1 -1
- package/dist/assets/Periods.css +1 -1
- package/dist/assets/ProgrammeCard.css +1 -1
- package/dist/assets/SectionNotification.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/variables.css +3 -0
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Card/Card.js +23 -23
- package/dist/components/IconButton/IconButton.js +9 -9
- package/dist/components/InfoMessage/InfoMessage.js +10 -10
- package/dist/components/MenuButton/MenuButton.js +1 -1
- package/dist/components/Periods/Periods.js +12 -12
- package/dist/components/ProgrammeCard/ProgrammeCard.js +9 -9
- package/dist/components/SectionNotification/SectionNotification.js +2 -2
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +1 -1
- package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
- package/package.json +2 -2
- package/dist/Button.module-DfLXeuUK.js +0 -14
- package/dist/Button.module-DfLXeuUK.js.map +0 -1
- package/dist/SelectListbox.module-CArwRBHq.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { forwardRef as i } from "react";
|
|
4
|
-
import { s as t } from "../../Button.module-
|
|
4
|
+
import { s as t } from "../../Button.module-Gr3KvBvb.js";
|
|
5
5
|
const d = i((o, r) => {
|
|
6
6
|
const { children: s, type: n = "button", variant: e, displayColumn: m = !1, ...a } = o;
|
|
7
7
|
return /* @__PURE__ */ u(
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { SectionNotification as
|
|
4
|
-
import '../../assets/Card.css';const
|
|
5
|
-
card:
|
|
6
|
-
"card--regular": "_card--
|
|
7
|
-
"card--large": "_card--
|
|
8
|
-
"card--small": "_card--
|
|
9
|
-
"card-header": "_card-
|
|
10
|
-
"card--high-contrast": "_card--high-
|
|
11
|
-
"card--align-center": "_card--align-
|
|
12
|
-
},
|
|
1
|
+
import { jsxs as t, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { SectionNotification as g } from "../SectionNotification/SectionNotification.js";
|
|
4
|
+
import '../../assets/Card.css';const i = "_card_19162_1", r = {
|
|
5
|
+
card: i,
|
|
6
|
+
"card--regular": "_card--regular_19162_7",
|
|
7
|
+
"card--large": "_card--large_19162_8",
|
|
8
|
+
"card--small": "_card--small_19162_13",
|
|
9
|
+
"card-header": "_card-header_19162_26",
|
|
10
|
+
"card--high-contrast": "_card--high-contrast_19162_33",
|
|
11
|
+
"card--align-center": "_card--align-center_19162_37"
|
|
12
|
+
}, u = ({
|
|
13
13
|
children: d,
|
|
14
14
|
header: c,
|
|
15
15
|
highContrast: s,
|
|
16
16
|
notification: e,
|
|
17
|
-
padding:
|
|
17
|
+
padding: a = "regular",
|
|
18
18
|
alignCenter: _ = !1
|
|
19
|
-
}) => /* @__PURE__ */
|
|
19
|
+
}) => /* @__PURE__ */ t(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
22
|
+
className: o(r.card, {
|
|
23
|
+
[r["card--high-contrast"]]: s,
|
|
24
|
+
[r["card--regular"]]: a === "regular",
|
|
25
|
+
[r["card--small"]]: a === "small",
|
|
26
|
+
[r["card--large"]]: a === "large",
|
|
27
|
+
[r["card--align-center"]]: _
|
|
28
28
|
}),
|
|
29
29
|
children: [
|
|
30
|
-
e && /* @__PURE__ */ l(
|
|
31
|
-
c && /* @__PURE__ */ l("div", { className:
|
|
30
|
+
e && /* @__PURE__ */ l(g, { children: e }),
|
|
31
|
+
c && /* @__PURE__ */ l("div", { className: r["card-header"], children: c }),
|
|
32
32
|
d
|
|
33
33
|
]
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
u as Card
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { forwardRef as
|
|
2
|
+
import { c as s } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { forwardRef as _ } from "react";
|
|
4
4
|
import '../../assets/IconButton.css';const t = {
|
|
5
|
-
"icon-button": "_icon-
|
|
6
|
-
"icon-button--destructive": "_icon-button--
|
|
7
|
-
"icon-button--no-border": "_icon-button--no-
|
|
8
|
-
"icon-button--wide": "_icon-button--
|
|
9
|
-
},
|
|
5
|
+
"icon-button": "_icon-button_159x3_1",
|
|
6
|
+
"icon-button--destructive": "_icon-button--destructive_159x3_27",
|
|
7
|
+
"icon-button--no-border": "_icon-button--no-border_159x3_35",
|
|
8
|
+
"icon-button--wide": "_icon-button--wide_159x3_44"
|
|
9
|
+
}, f = _(
|
|
10
10
|
({ children: o, type: n = "button", variant: c, noBorder: i, wide: r, ...e }, u) => /* @__PURE__ */ b(
|
|
11
11
|
"button",
|
|
12
12
|
{
|
|
13
13
|
...e,
|
|
14
|
-
className:
|
|
14
|
+
className: s(t["icon-button"], {
|
|
15
15
|
[t["icon-button--destructive"]]: c === "destructive",
|
|
16
16
|
[t["icon-button--no-border"]]: i,
|
|
17
17
|
[t["icon-button--wide"]]: r
|
|
@@ -23,6 +23,6 @@ import '../../assets/IconButton.css';const t = {
|
|
|
23
23
|
)
|
|
24
24
|
);
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
f as IconButton
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { c as a } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { Icon as _ } from "../Icon/Icon.js";
|
|
4
|
-
import '../../assets/InfoMessage.css';const
|
|
5
|
-
"info-message": "_info-
|
|
6
|
-
"info-message__container": "_info-
|
|
7
|
-
"info-message__icon": "_info-
|
|
8
|
-
},
|
|
4
|
+
import '../../assets/InfoMessage.css';const s = {
|
|
5
|
+
"info-message": "_info-message_1fqoy_1",
|
|
6
|
+
"info-message__container": "_info-message__container_1fqoy_6",
|
|
7
|
+
"info-message__icon": "_info-message__icon_1fqoy_11"
|
|
8
|
+
}, r = ({ message: e, hasOwnContainer: o = !1 }) => /* @__PURE__ */ n(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
className: a(
|
|
12
|
-
[
|
|
11
|
+
className: a(s["info-message"], {
|
|
12
|
+
[s["info-message__container"]]: o
|
|
13
13
|
}),
|
|
14
14
|
children: [
|
|
15
|
-
/* @__PURE__ */ i(_, { name: "InformationCircleFillMini", className:
|
|
16
|
-
|
|
15
|
+
/* @__PURE__ */ i(_, { name: "InformationCircleFillMini", className: s["info-message__icon"] }),
|
|
16
|
+
e
|
|
17
17
|
]
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
r as InfoMessage
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=InfoMessage.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as e, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { useButton as c } from "@react-aria/button";
|
|
3
3
|
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { s as r } from "../../Button.module-
|
|
4
|
+
import { s as r } from "../../Button.module-Gr3KvBvb.js";
|
|
5
5
|
import { Icon as i } from "../Icon/Icon.js";
|
|
6
6
|
function B({ buttonRef: t, variant: s, iconName: o, children: n, ...m }) {
|
|
7
7
|
const { buttonProps: u } = c(m, t);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { useId as
|
|
4
|
-
import '../../assets/Periods.css';const
|
|
5
|
-
period__container:
|
|
2
|
+
import { c as y } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { useId as b } from "react";
|
|
4
|
+
import '../../assets/Periods.css';const N = "_period__container_1yvl9_1", A = "_period__item_1yvl9_6", n = {
|
|
5
|
+
period__container: N,
|
|
6
6
|
period__item: A,
|
|
7
|
-
"period__item--active": "_period__item--
|
|
8
|
-
}, P = 6,
|
|
9
|
-
const p = Array.from({ length:
|
|
7
|
+
"period__item--active": "_period__item--active_1yvl9_18"
|
|
8
|
+
}, P = 6, O = ({ periods: r, titlePeriods: l, maxPeriods: a = P }) => {
|
|
9
|
+
const p = Array.from({ length: a }, (e, t) => t + 1), u = b(), _ = r.some((e) => typeof e == "number"), d = (e) => {
|
|
10
10
|
let t = 0;
|
|
11
|
-
return r.reduce(($,
|
|
12
|
-
const { semesterNumber: s, periodInSemester: o } =
|
|
11
|
+
return r.reduce(($, v, m) => {
|
|
12
|
+
const { semesterNumber: s, periodInSemester: o } = v;
|
|
13
13
|
let i = "";
|
|
14
14
|
return s !== t ? i = ` ${e.periods["period-title"].replace("{{ semester }}", s.toString())} ${o}` : r[m + 1] && r[m + 1].semesterNumber === t ? i = `, ${o}` : i = ` ${e.periods["last-separator"]} ${o}`, t = s, `${$}${i}`;
|
|
15
15
|
}, "").trim();
|
|
@@ -18,11 +18,11 @@ import '../../assets/Periods.css';const y = "_period__container_12tqn_3", A = "_
|
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
20
|
className: n.period__container,
|
|
21
|
-
title: _ ? "" : d(
|
|
21
|
+
title: _ ? "" : d(l),
|
|
22
22
|
children: p.map((e) => /* @__PURE__ */ c(
|
|
23
23
|
"span",
|
|
24
24
|
{
|
|
25
|
-
className:
|
|
25
|
+
className: y(n.period__item, f(e) ? n["period__item--active"] : "")
|
|
26
26
|
},
|
|
27
27
|
`${u}-${e}`
|
|
28
28
|
))
|
|
@@ -30,6 +30,6 @@ import '../../assets/Periods.css';const y = "_period__container_12tqn_3", A = "_
|
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
O as Periods
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=Periods.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as _, jsx as
|
|
2
|
-
import '../../assets/ProgrammeCard.css';const
|
|
3
|
-
"programme-card": "_programme-
|
|
4
|
-
"programme-card__divider": "_programme-
|
|
5
|
-
},
|
|
1
|
+
import { jsxs as _, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/ProgrammeCard.css';const d = {
|
|
3
|
+
"programme-card": "_programme-card_1fp0d_1",
|
|
4
|
+
"programme-card__divider": "_programme-card__divider_1fp0d_17"
|
|
5
|
+
}, c = ({ onClick: a, header: m, details: e }) => {
|
|
6
6
|
const o = (r) => {
|
|
7
7
|
a && (r.key === "Enter" || r.key === " ") && (r.preventDefault(), a(r));
|
|
8
8
|
};
|
|
9
|
-
return /* @__PURE__ */ _("div", { className:
|
|
10
|
-
|
|
11
|
-
e && /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ _("div", { className: d["programme-card"], role: "button", onClick: a, onKeyDown: o, tabIndex: 0, children: [
|
|
10
|
+
m,
|
|
11
|
+
e && /* @__PURE__ */ p("hr", { className: d["programme-card__divider"] }),
|
|
12
12
|
e
|
|
13
13
|
] });
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
c as ProgrammeCard
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=ProgrammeCard.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import '../../assets/SectionNotification.css';const i = {
|
|
4
|
-
"section-notification": "_section-
|
|
5
|
-
"section-notification--fullwidth": "_section-notification--
|
|
4
|
+
"section-notification": "_section-notification_1fwtg_1",
|
|
5
|
+
"section-notification--fullwidth": "_section-notification--fullwidth_1fwtg_10"
|
|
6
6
|
}, a = ({ fullWidth: t = !1, children: o }) => /* @__PURE__ */ n(
|
|
7
7
|
"div",
|
|
8
8
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { forwardRef as E, useRef as g, useEffect as c } from "react";
|
|
4
|
-
import { s as t } from "../../../SelectListbox.module-
|
|
4
|
+
import { s as t } from "../../../SelectListbox.module-CdK9mQmJ.js";
|
|
5
5
|
import { Icon as L } from "../../Icon/Icon.js";
|
|
6
6
|
import { useSelect as N } from "../SelectProvider.js";
|
|
7
7
|
const O = E((d, u) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as i, useCallback as u, useEffect as l } from "react";
|
|
3
3
|
import { useSelect as m } from "../SelectProvider.js";
|
|
4
|
-
import { s as f } from "../../../SelectListbox.module-
|
|
4
|
+
import { s as f } from "../../../SelectListbox.module-CdK9mQmJ.js";
|
|
5
5
|
const E = ({ children: o }) => {
|
|
6
6
|
const { isOpen: r, setIsOpen: n } = m(), t = i(null), e = u(
|
|
7
7
|
({ target: s }) => {
|
|
@@ -2,7 +2,7 @@ import { jsx as d } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as v } from "../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { useRef as D, useEffect as p } from "react";
|
|
4
4
|
import { useSelect as y } from "../SelectProvider.js";
|
|
5
|
-
import { s as b } from "../../../SelectListbox.module-
|
|
5
|
+
import { s as b } from "../../../SelectListbox.module-CdK9mQmJ.js";
|
|
6
6
|
const S = ({ option: t, index: l, children: m }) => {
|
|
7
7
|
const o = D(null), { isOpen: r, activeIndex: s, setActiveIndex: c, selectedValue: f, setSelectedValue: u, setIsOpen: i, options: a } = y(), w = (e) => {
|
|
8
8
|
u(a[e]), i(!1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m, useRef as x } from "react";
|
|
3
|
-
import { s as i } from "../../../SelectListbox.module-
|
|
3
|
+
import { s as i } from "../../../SelectListbox.module-CdK9mQmJ.js";
|
|
4
4
|
import { useSelect as a } from "../SelectProvider.js";
|
|
5
5
|
const h = m((l, e) => {
|
|
6
6
|
const { style: t, children: o } = l, { listboxId: r, isOpen: c } = a(), n = x(null);
|
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.45.
|
|
5
|
+
"version": "1.45.6",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"stylelint-config-standard": "^36.0.1",
|
|
87
87
|
"stylelint-order": "^6.0.4",
|
|
88
88
|
"typescript": "^5.5.4",
|
|
89
|
-
"vite": "^5.4.
|
|
89
|
+
"vite": "^5.4.3",
|
|
90
90
|
"vite-plugin-dts": "^4.1.0",
|
|
91
91
|
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
92
92
|
"vite-plugin-static-copy": "^1.0.6",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import './assets/Button.css';const t = "_button_rocr9_3", o = {
|
|
2
|
-
button: t,
|
|
3
|
-
"button--blank": "_button--blank_rocr9_37",
|
|
4
|
-
"button--blank-icon": "_button--blank-icon_rocr9_38",
|
|
5
|
-
"button--primary": "_button--primary_rocr9_68",
|
|
6
|
-
"button--secondary": "_button--secondary_rocr9_84",
|
|
7
|
-
"button--destructive-primary": "_button--destructive-primary_rocr9_100",
|
|
8
|
-
"button--destructive-secondary": "_button--destructive-secondary_rocr9_118",
|
|
9
|
-
"button--wide-column": "_button--wide-column_rocr9_136"
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
o as s
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=Button.module-DfLXeuUK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.module-DfLXeuUK.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectListbox.module-CArwRBHq.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|