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