@uoguelph/react-components 1.3.13 → 1.4.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/accordion-button.js +22 -22
- package/dist/accordion-content.js +5 -5
- package/dist/accordion.js +3 -3
- package/dist/alert-footer.js +6 -6
- package/dist/alert-message.js +7 -10
- package/dist/alert-subtitle.js +7 -7
- package/dist/alert-title.js +23 -23
- package/dist/alert.js +7 -7
- package/dist/blockquote-author-name.js +1 -1
- package/dist/blockquote-author-title.js +2 -2
- package/dist/blockquote-author.js +11 -11
- package/dist/blockquote-content.js +16 -16
- package/dist/breadcrumb-home.js +2 -2
- package/dist/breadcrumb.js +15 -15
- package/dist/breadcrumbs.js +9 -9
- package/dist/button.js +44 -44
- package/dist/card-content.js +10 -10
- package/dist/card-footer.js +11 -11
- package/dist/card-image.js +15 -15
- package/dist/card-title.js +5 -5
- package/dist/card.js +11 -11
- package/dist/carousel.js +51 -51
- package/dist/checkbox.js +44 -44
- package/dist/contact-email.js +7 -7
- package/dist/contact-name.js +1 -1
- package/dist/contact-phone.js +11 -11
- package/dist/contact-title.js +1 -1
- package/dist/contact.js +11 -14
- package/dist/container.js +10 -10
- package/dist/dismissible-alert.js +2 -2
- package/dist/divider.js +18 -18
- package/dist/embedded-video-modal-button.js +16 -16
- package/dist/embedded-video.js +29 -29
- package/dist/hero-caption.js +1 -1
- package/dist/hero-content.js +23 -23
- package/dist/hero-link.js +1 -1
- package/dist/hero-title.js +11 -11
- package/dist/hero-video.js +9 -9
- package/dist/hero.js +19 -19
- package/dist/image-overlay.js +48 -48
- package/dist/index.css +1 -1
- package/dist/info.js +16 -16
- package/dist/layout-content.js +3 -3
- package/dist/layout.js +44 -44
- package/dist/link-carousel-content.js +11 -11
- package/dist/link-carousel-item.js +15 -15
- package/dist/link-carousel-link.js +22 -22
- package/dist/link-carousel-links.js +14 -14
- package/dist/link-carousel.js +21 -21
- package/dist/link.js +10 -10
- package/dist/list-item.js +6 -6
- package/dist/list.js +21 -21
- package/dist/loading-indicator.js +29 -29
- package/dist/media-caption.js +34 -34
- package/dist/modal.js +25 -25
- package/dist/navigation-link.js +25 -25
- package/dist/navigation.js +8 -11
- package/dist/number-input.js +46 -46
- package/dist/pagination.js +62 -62
- package/dist/radio-group.js +8 -8
- package/dist/radio.js +19 -19
- package/dist/select-button.js +32 -32
- package/dist/select-option.js +29 -29
- package/dist/select-options.js +27 -27
- package/dist/select.js +7 -7
- package/dist/statistics-item-image.js +9 -9
- package/dist/statistics-item-represents.js +7 -7
- package/dist/statistics-item-value.js +7 -7
- package/dist/statistics-item.js +35 -35
- package/dist/statistics.js +25 -25
- package/dist/story-background-image.js +12 -12
- package/dist/story-background.js +7 -7
- package/dist/story-body.js +5 -8
- package/dist/story-footer.js +12 -12
- package/dist/story-foreground-content.js +4 -4
- package/dist/story-foreground-image.js +15 -15
- package/dist/story-foreground.js +7 -10
- package/dist/story.js +5 -5
- package/dist/tab-list.js +3 -6
- package/dist/tab-panel.js +3 -3
- package/dist/tab.js +26 -26
- package/dist/text-input.js +32 -32
- package/dist/typography.js +22 -22
- package/package.json +2 -2
package/dist/media-caption.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as h } from "tailwind-merge";
|
|
3
3
|
import { tv as x } from "tailwind-variants";
|
|
4
4
|
import { EmbeddedVideo as y } from "./embedded-video.js";
|
|
5
5
|
const v = "img";
|
|
6
6
|
function k({
|
|
7
|
-
as:
|
|
8
|
-
size:
|
|
7
|
+
as: o,
|
|
8
|
+
size: a = "small",
|
|
9
9
|
position: s = "left",
|
|
10
10
|
background: t = "none",
|
|
11
11
|
children: r,
|
|
12
|
-
src:
|
|
13
|
-
className:
|
|
12
|
+
src: n,
|
|
13
|
+
className: l,
|
|
14
14
|
mediaClassName: C,
|
|
15
|
-
matchCaptionHeight:
|
|
16
|
-
...
|
|
15
|
+
matchCaptionHeight: d,
|
|
16
|
+
...p
|
|
17
17
|
}) {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
const
|
|
18
|
+
const e = o ?? v;
|
|
19
|
+
a = (e instanceof y ? "video" : "image") === "video" && a === "small" ? "medium" : a;
|
|
20
|
+
const c = x({
|
|
21
21
|
slots: {
|
|
22
|
-
base: "uofg-media-caption
|
|
22
|
+
base: "uofg-media-caption flex flex-col",
|
|
23
23
|
mediaWrapper: "uofg-media-caption-wrapper",
|
|
24
|
-
media: "uofg-media-caption-media
|
|
25
|
-
caption: "uofg-media-caption-caption
|
|
24
|
+
media: "uofg-media-caption-media w-full object-cover",
|
|
25
|
+
caption: "uofg-media-caption-caption p-4"
|
|
26
26
|
},
|
|
27
27
|
variants: {
|
|
28
28
|
size: {
|
|
@@ -32,29 +32,29 @@ function k({
|
|
|
32
32
|
},
|
|
33
33
|
position: {
|
|
34
34
|
left: {
|
|
35
|
-
base: "
|
|
35
|
+
base: "md:grid"
|
|
36
36
|
},
|
|
37
37
|
right: {
|
|
38
|
-
base: "
|
|
39
|
-
mediaWrapper: "
|
|
40
|
-
caption: "
|
|
38
|
+
base: "md:grid",
|
|
39
|
+
mediaWrapper: "col-start-2 row-start-1",
|
|
40
|
+
caption: "col-start-1 row-start-1"
|
|
41
41
|
},
|
|
42
42
|
above: {
|
|
43
|
-
caption: "
|
|
43
|
+
caption: "flex-1"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
background: {
|
|
47
47
|
"grey-light": {
|
|
48
|
-
base: "light
|
|
48
|
+
base: "light bg-grey-light-bg text-body-copy"
|
|
49
49
|
},
|
|
50
50
|
"grey-dark": {
|
|
51
|
-
base: "dark
|
|
51
|
+
base: "dark bg-grey-dark-bg text-body-copy-on-dark"
|
|
52
52
|
},
|
|
53
53
|
none: {}
|
|
54
54
|
},
|
|
55
55
|
matchCaptionHeight: {
|
|
56
56
|
true: {
|
|
57
|
-
media: "
|
|
57
|
+
media: "h-full"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
},
|
|
@@ -63,70 +63,70 @@ function k({
|
|
|
63
63
|
size: "small",
|
|
64
64
|
position: "left",
|
|
65
65
|
class: {
|
|
66
|
-
base: "
|
|
66
|
+
base: "grid-cols-[1fr_4fr]"
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
size: "medium",
|
|
71
71
|
position: "left",
|
|
72
72
|
class: {
|
|
73
|
-
base: "
|
|
73
|
+
base: "grid-cols-[1fr_2fr]"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
size: "large",
|
|
78
78
|
position: "left",
|
|
79
79
|
class: {
|
|
80
|
-
base: "
|
|
80
|
+
base: "grid-cols-[1fr_1fr]"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
size: "small",
|
|
85
85
|
position: "right",
|
|
86
86
|
class: {
|
|
87
|
-
base: "
|
|
87
|
+
base: "grid-cols-[4fr_1fr]"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
size: "medium",
|
|
92
92
|
position: "right",
|
|
93
93
|
class: {
|
|
94
|
-
base: "
|
|
94
|
+
base: "grid-cols-[2fr_1fr]"
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
size: "large",
|
|
99
99
|
position: "right",
|
|
100
100
|
class: {
|
|
101
|
-
base: "
|
|
101
|
+
base: "grid-cols-[1fr_1fr]"
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
background: "none",
|
|
106
106
|
position: "left",
|
|
107
107
|
class: {
|
|
108
|
-
caption: "
|
|
108
|
+
caption: "px-0 md:px-4 md:py-0"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
background: "none",
|
|
113
113
|
position: "right",
|
|
114
114
|
class: {
|
|
115
|
-
caption: "
|
|
115
|
+
caption: "px-0 md:px-4 md:py-0"
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
background: "none",
|
|
120
120
|
position: "above",
|
|
121
121
|
class: {
|
|
122
|
-
caption: "
|
|
122
|
+
caption: "px-0"
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
]
|
|
126
|
-
}), { base:
|
|
127
|
-
return /* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
/* @__PURE__ */
|
|
126
|
+
}), { base: m, mediaWrapper: g, media: f, caption: b } = c({ size: a, position: s, background: t, matchCaptionHeight: d });
|
|
127
|
+
return /* @__PURE__ */ u("div", { className: h(m(), l), children: [
|
|
128
|
+
/* @__PURE__ */ i("div", { className: g(), children: /* @__PURE__ */ i(e, { ...p, src: n, className: f() }) }),
|
|
129
|
+
/* @__PURE__ */ i("div", { className: b(), children: r })
|
|
130
130
|
] });
|
|
131
131
|
}
|
|
132
132
|
k.displayName = "MediaCaption";
|
package/dist/modal.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { e as
|
|
4
|
-
import { FontAwesomeIcon as
|
|
2
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { e as b } from "./solid-D19hAF5t.js";
|
|
4
|
+
import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { Dialog as x, DialogBackdrop as w, CloseButton as h, DialogPanel as y } from "@headlessui/react";
|
|
6
6
|
import { tv as N } from "tailwind-variants";
|
|
7
|
-
function k({ open:
|
|
8
|
-
}, role:
|
|
9
|
-
const
|
|
7
|
+
function k({ open: t, onClose: o = () => {
|
|
8
|
+
}, role: r = "dialog", labelledBy: l, centered: s, children: i }) {
|
|
9
|
+
const n = N({
|
|
10
10
|
slots: {
|
|
11
|
-
base: "
|
|
12
|
-
backdrop: "
|
|
13
|
-
wrapper: "
|
|
14
|
-
panelWrapper: "
|
|
11
|
+
base: "relative z-50 transition duration-300 ease-out data-[closed]:opacity-0",
|
|
12
|
+
backdrop: "fixed inset-0 bg-black/40 transition duration-300 ease-out data-[closed]:opacity-0",
|
|
13
|
+
wrapper: "fixed inset-0 flex w-screen justify-center md:p-4",
|
|
14
|
+
panelWrapper: "relative flex w-full flex-col items-center",
|
|
15
15
|
panel: "",
|
|
16
|
-
closeButton: "
|
|
16
|
+
closeButton: "top-0 right-0 flex h-9 w-full items-center justify-center gap-1 border-b border-white/40 bg-grey-dark-bg text-xl text-white transition-colors hover:bg-red md:absolute md:w-9 md:rounded-full"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
centered: {
|
|
20
20
|
true: {
|
|
21
|
-
panelWrapper: "
|
|
21
|
+
panelWrapper: "justify-center"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}), { base:
|
|
26
|
-
return /* @__PURE__ */
|
|
25
|
+
}), { base: d, backdrop: c, wrapper: p, panelWrapper: m, panel: u, closeButton: f } = n({ centered: s });
|
|
26
|
+
return /* @__PURE__ */ a(
|
|
27
27
|
x,
|
|
28
28
|
{
|
|
29
29
|
transition: !0,
|
|
30
|
-
open:
|
|
31
|
-
role:
|
|
32
|
-
onClose:
|
|
33
|
-
className: `uofg-modal ${
|
|
34
|
-
"aria-labelledby":
|
|
30
|
+
open: t,
|
|
31
|
+
role: r,
|
|
32
|
+
onClose: o,
|
|
33
|
+
className: `uofg-modal ${d()}`,
|
|
34
|
+
"aria-labelledby": l,
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ e(w, { transition: !0, className: `uofg-modal-backdrop ${c()}` }),
|
|
37
|
+
/* @__PURE__ */ e("div", { className: `uofg-modal-wrapper ${p()}`, children: /* @__PURE__ */ a("div", { className: `uofg-modal-panel-wrapper ${m()}`, children: [
|
|
38
|
+
/* @__PURE__ */ a(h, { onClick: o, className: `uofg-modal-close-button ${f()}`, children: [
|
|
39
|
+
/* @__PURE__ */ e(g, { icon: b }),
|
|
40
|
+
/* @__PURE__ */ e("span", { className: "text-base md:sr-only", children: "Close Modal" })
|
|
41
41
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ e(y, { className: `uofg-modal-panel ${u()}`, children: i })
|
|
43
43
|
] }) })
|
|
44
44
|
]
|
|
45
45
|
}
|
package/dist/navigation-link.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { tv as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
as:
|
|
7
|
-
active:
|
|
8
|
-
href:
|
|
9
|
-
children:
|
|
10
|
-
className:
|
|
11
|
-
...
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as m } from "tailwind-merge";
|
|
3
|
+
import { tv as d } from "tailwind-variants";
|
|
4
|
+
const b = "a";
|
|
5
|
+
function f({
|
|
6
|
+
as: o,
|
|
7
|
+
active: t,
|
|
8
|
+
href: n,
|
|
9
|
+
children: i,
|
|
10
|
+
className: l,
|
|
11
|
+
...r
|
|
12
12
|
}) {
|
|
13
|
-
const
|
|
13
|
+
const s = o ?? b, a = d({
|
|
14
14
|
slots: {
|
|
15
|
-
listItem: "
|
|
16
|
-
link: "
|
|
15
|
+
listItem: "contents flex-1",
|
|
16
|
+
link: "mb-1 flex flex-1 items-center justify-center rounded-t-sm bg-grey-light-bg px-4 py-3 text-center text-lg font-bold text-black transition-colors hover:bg-grey-light focus:bg-grey-light focus:outline-hidden"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
active: {
|
|
20
20
|
true: {
|
|
21
|
-
link: "
|
|
21
|
+
link: "order-last mb-0 border-2 border-yellow bg-yellow text-yellow-contrast md:order-none hocus-visible:bg-yellow"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}), { listItem:
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
|
|
25
|
+
}), { listItem: g, link: c } = a({ active: t });
|
|
26
|
+
return /* @__PURE__ */ e("li", { className: g(), children: /* @__PURE__ */ e(
|
|
27
|
+
s,
|
|
28
28
|
{
|
|
29
|
-
...
|
|
30
|
-
href:
|
|
31
|
-
className: `uofg-navigation-link ${c(
|
|
32
|
-
"aria-current":
|
|
33
|
-
children:
|
|
29
|
+
...r,
|
|
30
|
+
href: n,
|
|
31
|
+
className: `uofg-navigation-link ${m(c(), l)}`,
|
|
32
|
+
"aria-current": t ? "page" : void 0,
|
|
33
|
+
children: i
|
|
34
34
|
}
|
|
35
35
|
) });
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
f.displayName = "NavigationLink";
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
f as NavigationLink
|
|
40
40
|
};
|
package/dist/navigation.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { NavigationLink as
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
a
|
|
8
|
-
);
|
|
9
|
-
return /* @__PURE__ */ o("nav", { className: "uofg-navigation uog:contents", children: /* @__PURE__ */ o("ul", { className: `uofg-navigation-list ${g}`, children: i }) });
|
|
2
|
+
import { twMerge as e } from "tailwind-merge";
|
|
3
|
+
import { NavigationLink as g } from "./navigation-link.js";
|
|
4
|
+
function n({ className: a, children: i }) {
|
|
5
|
+
const t = e("flex w-full flex-col gap-1 border-b-4 border-yellow md:flex-row", a);
|
|
6
|
+
return /* @__PURE__ */ o("nav", { className: "uofg-navigation contents", children: /* @__PURE__ */ o("ul", { className: `uofg-navigation-list ${t}`, children: i }) });
|
|
10
7
|
}
|
|
11
|
-
|
|
8
|
+
n.displayName = "Navigation";
|
|
12
9
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
n as Navigation,
|
|
11
|
+
g as NavigationLink
|
|
15
12
|
};
|
package/dist/number-input.js
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { h as C, i as k } from "./solid-D19hAF5t.js";
|
|
4
|
-
import { FontAwesomeIcon as
|
|
4
|
+
import { FontAwesomeIcon as d } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { Field as F, Label as S, Input as A } from "@headlessui/react";
|
|
6
6
|
import { useState as M, useRef as _, useEffect as z } from "react";
|
|
7
7
|
import { twMerge as E } from "tailwind-merge";
|
|
8
8
|
import { tv as L } from "tailwind-variants";
|
|
9
9
|
import { c as P } from "./math-utils-CnAd98v6.js";
|
|
10
10
|
function O({
|
|
11
|
-
initialValue:
|
|
11
|
+
initialValue: g,
|
|
12
12
|
color: w = "yellow",
|
|
13
13
|
placeholder: x = "",
|
|
14
|
-
onInput:
|
|
15
|
-
children:
|
|
14
|
+
onInput: r,
|
|
15
|
+
children: c,
|
|
16
16
|
className: h,
|
|
17
|
-
min:
|
|
18
|
-
max:
|
|
19
|
-
value:
|
|
17
|
+
min: u,
|
|
18
|
+
max: a,
|
|
19
|
+
value: f,
|
|
20
20
|
...y
|
|
21
21
|
}) {
|
|
22
|
-
const [
|
|
22
|
+
const [n, s] = M(g ?? 0), i = _(null);
|
|
23
23
|
z(() => {
|
|
24
|
-
|
|
25
|
-
}, [
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
24
|
+
s(f ?? NaN);
|
|
25
|
+
}, [f]);
|
|
26
|
+
const b = (t) => {
|
|
27
|
+
const o = P(t, u ?? -1 / 0, a ?? 1 / 0);
|
|
28
|
+
s(o), i.current && (i.current.value = o.toString(), r == null || r(o));
|
|
29
29
|
}, {
|
|
30
30
|
base: N,
|
|
31
31
|
wrapper: v,
|
|
32
32
|
input: $,
|
|
33
33
|
container: j,
|
|
34
|
-
control:
|
|
34
|
+
control: m
|
|
35
35
|
} = L({
|
|
36
36
|
slots: {
|
|
37
|
-
base: "
|
|
38
|
-
wrapper: "
|
|
39
|
-
container: "
|
|
40
|
-
input: "
|
|
41
|
-
control: "
|
|
37
|
+
base: "flex flex-col gap-0.5",
|
|
38
|
+
wrapper: "text-input flex rounded-md border border-grey-light bg-white px-2 py-2 transition-colors focus-within:border-blue focus:outline-none",
|
|
39
|
+
container: "grid grid-cols-[2rem_1fr_2rem] items-center justify-center justify-items-center gap-2",
|
|
40
|
+
input: "col-2 w-full flex-1 [appearance:textfield] bg-white focus:outline-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
41
|
+
control: "relative flex cursor-pointer items-center justify-center rounded-full text-xl shadow transition-colors before:absolute before:-z-1 before:h-2/3 before:w-2/3"
|
|
42
42
|
},
|
|
43
43
|
variants: {
|
|
44
44
|
color: {
|
|
45
45
|
red: {
|
|
46
|
-
control: "
|
|
46
|
+
control: "text-red before:bg-red-contrast hocus-visible:text-red-focus"
|
|
47
47
|
},
|
|
48
48
|
yellow: {
|
|
49
|
-
control: "
|
|
49
|
+
control: "text-yellow before:bg-yellow-contrast hocus-visible:text-yellow-focus"
|
|
50
50
|
},
|
|
51
51
|
blue: {
|
|
52
|
-
control: "
|
|
52
|
+
control: "text-blue before:bg-blue-contrast hocus-visible:text-blue-focus"
|
|
53
53
|
},
|
|
54
54
|
green: {
|
|
55
|
-
control: "
|
|
55
|
+
control: "text-green before:bg-green-contrast hocus-visible:text-green-focus"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
})({
|
|
60
60
|
color: w ?? "yellow"
|
|
61
61
|
});
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ l(F, { className: `uofg-number-input-field ${E(N(), h)}`, children: [
|
|
63
|
+
c && /* @__PURE__ */ e(S, { className: "uofg-number-input-label", children: c }),
|
|
64
|
+
/* @__PURE__ */ l("div", { className: `uofg-number-input-container ${j()}`, children: [
|
|
65
|
+
/* @__PURE__ */ e("div", { className: `uofg-number-input-wrapper ${v()}`, children: /* @__PURE__ */ e(
|
|
66
66
|
A,
|
|
67
67
|
{
|
|
68
68
|
...y,
|
|
69
|
-
ref:
|
|
70
|
-
value:
|
|
69
|
+
ref: i,
|
|
70
|
+
value: n,
|
|
71
71
|
type: "number",
|
|
72
|
-
min:
|
|
73
|
-
max:
|
|
72
|
+
min: u,
|
|
73
|
+
max: a,
|
|
74
74
|
placeholder: x,
|
|
75
|
-
onInput: (
|
|
76
|
-
var
|
|
77
|
-
const
|
|
78
|
-
|
|
75
|
+
onInput: (t) => {
|
|
76
|
+
var p;
|
|
77
|
+
const o = Number.parseFloat(((p = t == null ? void 0 : t.target) == null ? void 0 : p.value) ?? "");
|
|
78
|
+
s(o), r == null || r(o, t);
|
|
79
79
|
},
|
|
80
80
|
className: `uofg-number-input ${$()}`
|
|
81
81
|
}
|
|
82
82
|
) }),
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ l(
|
|
84
84
|
"button",
|
|
85
85
|
{
|
|
86
|
-
className: `uofg-number-input-subtract
|
|
86
|
+
className: `uofg-number-input-subtract col-1 row-1 ${m()}`,
|
|
87
87
|
onClick: () => {
|
|
88
|
-
|
|
88
|
+
b((n || 0) - 1);
|
|
89
89
|
},
|
|
90
90
|
children: [
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ e(d, { icon: C }),
|
|
92
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "Subtract" })
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
),
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ l(
|
|
97
97
|
"button",
|
|
98
98
|
{
|
|
99
|
-
className: `uofg-number-input-add
|
|
99
|
+
className: `uofg-number-input-add col-3 row-1 ${m()}`,
|
|
100
100
|
onClick: () => {
|
|
101
|
-
|
|
101
|
+
b((n || 0) + 1);
|
|
102
102
|
},
|
|
103
103
|
children: [
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ e(d, { icon: k }),
|
|
105
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "Add" })
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
)
|