@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,62 +1,62 @@
1
1
  "use client";
2
2
  import { jsx as l } from "react/jsx-runtime";
3
- import { useContext as g, useEffect as u } from "react";
4
- import { twMerge as s } from "tailwind-merge";
5
- import { tv as a } from "tailwind-variants";
6
- import { StatisticsContext as i } from "./statistics-context.js";
7
- function n({ children: t, className: e }) {
8
- const o = g(i);
9
- u(() => {
10
- o == null || o.incrementCount();
3
+ import { useContext as s, useEffect as a } from "react";
4
+ import { twMerge as i } from "tailwind-merge";
5
+ import { tv as n } from "tailwind-variants";
6
+ import { StatisticsContext as f } from "./statistics-context.js";
7
+ function c({ children: e, className: r }) {
8
+ const t = s(f);
9
+ a(() => {
10
+ t == null || t.incrementCount();
11
11
  }, []);
12
- const r = a({
13
- base: "uog:relative uog:flex uog:flex-1 uog:flex-col uog:justify-around uog:gap-2",
12
+ const o = n({
13
+ base: "relative flex flex-1 flex-col justify-around gap-2",
14
14
  variants: {
15
15
  variant: {
16
16
  "solid-colors-full": [
17
- 'uog:sm:before:content-[""]',
18
- "uog:before:absolute",
19
- "uog:before:top-0",
20
- "uog:before:right-full",
21
- "uog:before:w-[calc((100vw-var(--statistic-bg-width))/2)]",
22
- "uog:before:h-full",
23
- "uog:before:bg-inherit",
24
- "uog:before:z-[-1]",
25
- "uog:first:before:z-0",
26
- 'uog:sm:after:content-[""]',
27
- "uog:after:absolute",
28
- "uog:after:top-0",
29
- "uog:after:left-full",
30
- "uog:after:w-[calc((100vw-var(--statistic-bg-width))/2)]",
31
- "uog:after:h-full",
32
- "uog:after:bg-inherit",
33
- "uog:after:z-[-1]",
34
- "uog:last:after:z-0"
17
+ 'sm:before:content-[""]',
18
+ "before:absolute",
19
+ "before:top-0",
20
+ "before:right-full",
21
+ "before:w-[calc((100vw-var(--statistic-bg-width))/2)]",
22
+ "before:h-full",
23
+ "before:bg-inherit",
24
+ "before:z-[-1]",
25
+ "first:before:z-0",
26
+ 'sm:after:content-[""]',
27
+ "after:absolute",
28
+ "after:top-0",
29
+ "after:left-full",
30
+ "after:w-[calc((100vw-var(--statistic-bg-width))/2)]",
31
+ "after:h-full",
32
+ "after:bg-inherit",
33
+ "after:z-[-1]",
34
+ "last:after:z-0"
35
35
  ],
36
36
  "solid-colors-no-gap": "",
37
37
  "solid-colors": "",
38
38
  "light-grey": "",
39
- "left-border": "uog:border-l-8 uog:border-black uog:nth-[2n]:border-red uog:nth-[3n]:border-yellow uog:nth-[4n]:border-blue"
39
+ "left-border": "border-l-8 border-black nth-[2n]:border-red nth-[3n]:border-yellow nth-[4n]:border-blue"
40
40
  }
41
41
  },
42
42
  compoundVariants: [
43
43
  {
44
44
  variant: ["light-grey", "left-border"],
45
- class: "uog:bg-grey-light-bg uog:text-black-on-light"
45
+ class: "bg-grey-light-bg text-black-on-light"
46
46
  },
47
47
  {
48
48
  variant: ["solid-colors-full", "solid-colors-no-gap", "solid-colors", "light-grey"],
49
- class: "uog:text-center"
49
+ class: "text-center"
50
50
  },
51
51
  {
52
52
  variant: ["solid-colors-full", "solid-colors-no-gap", "solid-colors"],
53
- class: "uog:bg-black uog:text-black-contrast uog:nth-[2n]:bg-red uog:nth-[2n]:text-red-contrast uog:nth-[3n]:bg-yellow uog:nth-[3n]:text-yellow-contrast uog:nth-[4n]:bg-blue uog:nth-[4n]:text-blue-contrast uog:border-b uog:border-white"
53
+ class: "border-b border-white bg-black text-black-contrast nth-[2n]:bg-red nth-[2n]:text-red-contrast nth-[3n]:bg-yellow nth-[3n]:text-yellow-contrast nth-[4n]:bg-blue nth-[4n]:text-blue-contrast"
54
54
  }
55
55
  ]
56
56
  });
57
- return /* @__PURE__ */ l("div", { className: `uofg-statistics-item ${s(r({ variant: o == null ? void 0 : o.variant }), e)}`, children: t });
57
+ return /* @__PURE__ */ l("div", { className: `uofg-statistics-item ${i(o({ variant: t == null ? void 0 : t.variant }), r)}`, children: e });
58
58
  }
59
- n.displayName = "StatisticsItem";
59
+ c.displayName = "StatisticsItem";
60
60
  export {
61
- n as StatisticsItem
61
+ c as StatisticsItem
62
62
  };
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { jsx as e } from "react/jsx-runtime";
3
- import { useState as a } from "react";
4
- import { twMerge as m } from "tailwind-merge";
5
- import { tv as f } from "tailwind-variants";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { useState as u } from "react";
4
+ import { twMerge as f } from "tailwind-merge";
5
+ import { tv as g } from "tailwind-variants";
6
6
  import { u as n } from "./use-resize-observer-DmddO4OQ.js";
7
7
  import { StatisticsContext as p } from "./statistics-context.js";
8
8
  import { StatisticsItem as I } from "./statistics-item.js";
9
9
  import { StatisticsItemImage as F } from "./statistics-item-image.js";
10
10
  import { StatisticsItemRepresents as N } from "./statistics-item-represents.js";
11
11
  import { StatisticsItemValue as j } from "./statistics-item-value.js";
12
- function v({ children: t, variant: o, className: r }) {
13
- const [s, l] = a(0), [u, i] = n(), c = f({
14
- base: "uog:mx-auto uog:my-0 uog:flex uog:flex-col uog:flex-wrap uog:sm:flex-row",
12
+ function v({ children: o, variant: s, className: r }) {
13
+ const [i, l] = u(0), [c, e] = n(), d = g({
14
+ base: "mx-auto my-0 flex flex-col flex-wrap sm:flex-row",
15
15
  variants: {
16
16
  divisibleByTwo: {
17
17
  true: ""
@@ -20,7 +20,7 @@ function v({ children: t, variant: o, className: r }) {
20
20
  true: ""
21
21
  },
22
22
  divisibleByFour: {
23
- true: "uog:grid uog:grid-cols-1 uog:sm:grid-cols-2 uog:lg:grid-cols-4"
23
+ true: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
24
24
  },
25
25
  variant: {
26
26
  "solid-colors-full": "",
@@ -33,46 +33,46 @@ function v({ children: t, variant: o, className: r }) {
33
33
  compoundVariants: [
34
34
  {
35
35
  variant: ["solid-colors", "light-grey", "left-border"],
36
- class: "uog:gap-4"
36
+ class: "gap-4"
37
37
  },
38
38
  {
39
39
  divisibleByTwo: !0,
40
40
  divisibleByThree: !1,
41
41
  divisibleByFour: !1,
42
- class: "uog:grid uog:grid-cols-1 uog:sm:grid-cols-2"
42
+ class: "grid grid-cols-1 sm:grid-cols-2"
43
43
  },
44
44
  {
45
45
  divisibleByThree: !0,
46
46
  divisibleByFour: !1,
47
- class: "uog:grid uog:grid-cols-1 uog:sm:grid-cols-3"
47
+ class: "grid grid-cols-1 sm:grid-cols-3"
48
48
  }
49
49
  ]
50
- }), g = m(
51
- c({
52
- variant: o,
53
- divisibleByTwo: s % 2 === 0,
54
- divisibleByThree: s % 3 === 0,
55
- divisibleByFour: s % 4 === 0
50
+ }), a = f(
51
+ d({
52
+ variant: s,
53
+ divisibleByTwo: i % 2 === 0,
54
+ divisibleByThree: i % 3 === 0,
55
+ divisibleByFour: i % 4 === 0
56
56
  }),
57
57
  r
58
58
  );
59
- return /* @__PURE__ */ e(
59
+ return /* @__PURE__ */ t(
60
60
  p.Provider,
61
61
  {
62
62
  value: {
63
- variant: o,
64
- incrementCount: () => l((d) => d + 1)
63
+ variant: s,
64
+ incrementCount: () => l((m) => m + 1)
65
65
  },
66
- children: /* @__PURE__ */ e(
66
+ children: /* @__PURE__ */ t(
67
67
  "dl",
68
68
  {
69
- className: `uofg-statistics ${g}`,
69
+ className: `uofg-statistics ${a}`,
70
70
  style: (
71
71
  /* @ts-expect-error TypeScript doesn't like CSS Variables */
72
- o === "solid-colors-full" ? { "--statistic-bg-width": (i == null ? void 0 : i.contentRect.width) + "px" } : void 0
72
+ s === "solid-colors-full" ? { "--statistic-bg-width": (e == null ? void 0 : e.contentRect.width) + "px" } : void 0
73
73
  ),
74
- ref: u,
75
- children: t
74
+ ref: c,
75
+ children: o
76
76
  }
77
77
  )
78
78
  }
@@ -1,25 +1,25 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { twMerge as c } from "tailwind-merge";
3
- const l = "img";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { twMerge as l } from "tailwind-merge";
3
+ const u = "img";
4
4
  function f({
5
5
  as: o,
6
6
  src: t,
7
7
  alt: e,
8
8
  width: r,
9
- height: g,
10
- className: n,
11
- ...s
9
+ height: n,
10
+ className: s,
11
+ ...a
12
12
  }) {
13
- const a = o ?? l, m = c("uog:h-full uog:w-full uog:brightness-50", n);
14
- return /* @__PURE__ */ u(
15
- a,
13
+ const m = o ?? u, g = l("h-full w-full brightness-50", s);
14
+ return /* @__PURE__ */ c(
15
+ m,
16
16
  {
17
- ...s,
17
+ ...a,
18
18
  src: t,
19
19
  alt: e,
20
20
  width: r,
21
- height: g,
22
- className: `uofg-story-background-image ${m}`
21
+ height: n,
22
+ className: `uofg-story-background-image ${g}`
23
23
  }
24
24
  );
25
25
  }
@@ -1,10 +1,10 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { twMerge as a } from "tailwind-merge";
3
- function g({ children: o, className: u }) {
4
- const r = a("uog:absolute uog:z-0 uog:h-full uog:max-h-full uog:w-full", u);
5
- return /* @__PURE__ */ t("div", { className: `uofg-story-background ${r}`, children: o });
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { twMerge as l } from "tailwind-merge";
3
+ function s({ children: o, className: r }) {
4
+ const t = l("absolute z-0 h-full max-h-full w-full", r);
5
+ return /* @__PURE__ */ a("div", { className: `uofg-story-background ${t}`, children: o });
6
6
  }
7
- g.displayName = "StoryBackground";
7
+ s.displayName = "StoryBackground";
8
8
  export {
9
- g as StoryBackground
9
+ s as StoryBackground
10
10
  };
@@ -1,13 +1,10 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { twMerge as s } from "tailwind-merge";
3
- function u({ children: o, className: e }) {
4
- const r = s(
5
- "uog:relative uog:flex uog:w-full uog:items-center uog:justify-center uog:overflow-hidden",
6
- e
7
- );
8
- return /* @__PURE__ */ t("div", { className: `uofg-story-body ${r}`, children: o });
3
+ function i({ children: e, className: o }) {
4
+ const r = s("relative flex w-full items-center justify-center overflow-hidden", o);
5
+ return /* @__PURE__ */ t("div", { className: `uofg-story-body ${r}`, children: e });
9
6
  }
10
- u.displayName = "StoryBody";
7
+ i.displayName = "StoryBody";
11
8
  export {
12
- u as StoryBody
9
+ i as StoryBody
13
10
  };
@@ -1,17 +1,17 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { twMerge as n } from "tailwind-merge";
3
- import { tv as i } from "tailwind-variants";
4
- import { Container as g } from "./container.js";
5
- function c({ children: t, className: e }) {
6
- const r = i({
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { twMerge as i } from "tailwind-merge";
3
+ import { tv as c } from "tailwind-variants";
4
+ import { Container as a } from "./container.js";
5
+ function f({ children: e, className: o }) {
6
+ const r = c({
7
7
  slots: {
8
- base: "uog:flex uog:w-full uog:items-center uog:justify-center uog:bg-black uog:p-4 uog:text-white",
9
- container: "uog:flex uog:items-center uog:justify-center uog:p-2 uog:text-xl"
8
+ base: "flex w-full items-center justify-center bg-black p-4 text-white",
9
+ container: "flex items-center justify-center p-2 text-xl"
10
10
  }
11
- }), { base: s, container: u } = r();
12
- return /* @__PURE__ */ o("div", { className: `uofg-story-footer ${n(s(), e)}`, children: /* @__PURE__ */ o(g, { className: `uofg-story-footer-container ${u()}`, children: t }) });
11
+ }), { base: s, container: n } = r();
12
+ return /* @__PURE__ */ t("div", { className: `uofg-story-footer ${i(s(), o)}`, children: /* @__PURE__ */ t(a, { className: `uofg-story-footer-container ${n()}`, children: e }) });
13
13
  }
14
- c.displayName = "StoryFooter";
14
+ f.displayName = "StoryFooter";
15
15
  export {
16
- c as StoryFooter
16
+ f as StoryFooter
17
17
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { twMerge as n } from "tailwind-merge";
3
- function u({ children: o, className: r }) {
4
- const t = n("uog:flex uog:w-full uog:justify-center uog:px-8 uog:lg:w-1/2 uog:lg:p-0", r);
3
+ function s({ children: o, className: r }) {
4
+ const t = n("flex w-full justify-center px-8 lg:w-1/2 lg:p-0", r);
5
5
  return /* @__PURE__ */ e("div", { className: `uofg-story-foreground-content ${t}`, children: o });
6
6
  }
7
- u.displayName = "StoryForegroundContent";
7
+ s.displayName = "StoryForegroundContent";
8
8
  export {
9
- u as StoryForegroundContent
9
+ s as StoryForegroundContent
10
10
  };
@@ -1,31 +1,31 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { twMerge as i } from "tailwind-merge";
2
+ import { twMerge as u } from "tailwind-merge";
3
3
  import { tv as c } from "tailwind-variants";
4
4
  const d = "img";
5
5
  function p({
6
6
  as: e,
7
7
  src: r,
8
8
  alt: t,
9
- width: g,
10
- height: u,
11
- className: s,
12
- ...m
9
+ width: s,
10
+ height: m,
11
+ className: a,
12
+ ...n
13
13
  }) {
14
- const a = e ?? d, n = c({
14
+ const l = e ?? d, g = c({
15
15
  slots: {
16
- base: "uog:flex uog:w-full uog:justify-center uog:lg:mt-auto uog:lg:w-1/2",
17
- image: "uog:w-full uog:h-full"
16
+ base: "flex w-full justify-center lg:mt-auto lg:w-1/2",
17
+ image: "h-full w-full"
18
18
  }
19
- }), { base: l, image: f } = n();
20
- return /* @__PURE__ */ o("div", { className: `uofg-story-foreground-image-container ${l()}`, children: /* @__PURE__ */ o(
21
- a,
19
+ }), { base: f, image: i } = g();
20
+ return /* @__PURE__ */ o("div", { className: `uofg-story-foreground-image-container ${f()}`, children: /* @__PURE__ */ o(
21
+ l,
22
22
  {
23
- ...m,
23
+ ...n,
24
24
  src: r,
25
25
  alt: t,
26
- width: g,
27
- height: u,
28
- className: `uofg-story-foreground-image ${i(f(), s)}`
26
+ width: s,
27
+ height: m,
28
+ className: `uofg-story-foreground-image ${u(i(), a)}`
29
29
  }
30
30
  ) });
31
31
  }
@@ -1,13 +1,10 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { twMerge as u } from "tailwind-merge";
3
- function t({ children: o, className: r }) {
4
- const e = u(
5
- "uog:max-w-[137rem] uog:z-10 uog:flex uog:w-full uog:flex-col uog:items-center uog:gap-6 uog:px-4 uog:lg:flex-row",
6
- r
7
- );
8
- return /* @__PURE__ */ g("div", { className: `uofg-story-foreground ${e}`, children: o });
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { twMerge as l } from "tailwind-merge";
3
+ function s({ children: r, className: o }) {
4
+ const e = l("z-10 flex w-full max-w-[137rem] flex-col items-center gap-6 px-4 lg:flex-row", o);
5
+ return /* @__PURE__ */ t("div", { className: `uofg-story-foreground ${e}`, children: r });
9
6
  }
10
- t.displayName = "StoryForeground";
7
+ s.displayName = "StoryForeground";
11
8
  export {
12
- t as StoryForeground
9
+ s as StoryForeground
13
10
  };
package/dist/story.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { twMerge as m } from "tailwind-merge";
3
- import { StoryBackground as p } from "./story-background.js";
4
- import { StoryBackgroundImage as a } from "./story-background-image.js";
3
+ import { StoryBackground as a } from "./story-background.js";
4
+ import { StoryBackgroundImage as s } from "./story-background-image.js";
5
5
  import { StoryBody as S } from "./story-body.js";
6
6
  import { StoryFooter as l } from "./story-footer.js";
7
7
  import { StoryForeground as i } from "./story-foreground.js";
8
8
  import { StoryForegroundContent as B } from "./story-foreground-content.js";
9
9
  import { StoryForegroundImage as w } from "./story-foreground-image.js";
10
10
  function f({ children: o, className: r }) {
11
- const t = m("uog:flex uog:w-full uog:flex-col", r);
11
+ const t = m("flex w-full flex-col", r);
12
12
  return /* @__PURE__ */ e("div", { className: `uofg-story ${t}`, children: o });
13
13
  }
14
14
  f.displayName = "Story";
15
15
  export {
16
16
  f as Story,
17
- p as StoryBackground,
18
- a as StoryBackgroundImage,
17
+ a as StoryBackground,
18
+ s as StoryBackgroundImage,
19
19
  S as StoryBody,
20
20
  l as StoryFooter,
21
21
  i as StoryForeground,
package/dist/tab-list.js CHANGED
@@ -2,12 +2,9 @@
2
2
  import { jsx as e } from "react/jsx-runtime";
3
3
  import { TabList as r } from "@headlessui/react";
4
4
  import { twMerge as l } from "tailwind-merge";
5
- function a({ children: o, className: t }) {
6
- const s = l(
7
- "uofg-tab-list uog:flex uog:gap-1 uog:border-b-4 uog:border-yellow uog:w-full uog:flex-col uog:md:flex-row",
8
- t
9
- );
10
- return /* @__PURE__ */ e(r, { className: `uofg-tab-list ${s}`, children: o });
5
+ function a({ children: t, className: o }) {
6
+ const s = l("uofg-tab-list flex w-full flex-col gap-1 border-b-4 border-yellow md:flex-row", o);
7
+ return /* @__PURE__ */ e(r, { className: `uofg-tab-list ${s}`, children: t });
11
8
  }
12
9
  a.displayName = "TabList";
13
10
  export {
package/dist/tab-panel.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as n } from "react/jsx-runtime";
2
+ import { jsx as o } from "react/jsx-runtime";
3
3
  import { TabPanel as t } from "@headlessui/react";
4
4
  import { twMerge as l } from "tailwind-merge";
5
5
  function r({ children: a, className: e }) {
6
- const o = l("uofg-tab-panel uog:py-4", e);
7
- return /* @__PURE__ */ n(t, { className: `uofg-tab-panel ${o}`, children: a });
6
+ const n = l("uofg-tab-panel py-4", e);
7
+ return /* @__PURE__ */ o(t, { className: `uofg-tab-panel ${n}`, children: a });
8
8
  }
9
9
  r.displayName = "TabPanel";
10
10
  export {
package/dist/tab.js CHANGED
@@ -1,32 +1,32 @@
1
1
  "use client";
2
- import { jsx as u } from "react/jsx-runtime";
3
- import { Tab as t } from "@headlessui/react";
4
- import { twMerge as l } from "tailwind-merge";
5
- function r({ children: o, className: e }) {
6
- const g = l(
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ import { Tab as r } from "@headlessui/react";
4
+ import { twMerge as s } from "tailwind-merge";
5
+ function b({ children: e, className: t }) {
6
+ const o = s(
7
7
  "uofg-tab-list",
8
- "uog:mb-1",
9
- "uog:rounded-t-sm",
10
- "uog:bg-grey-light-bg",
11
- "uog:px-4",
12
- "uog:py-3",
13
- "uog:text-lg",
14
- "uog:font-bold",
15
- "uog:text-black",
16
- "uog:transition-colors",
17
- "uog:hover:bg-grey-light",
18
- "uog:focus:bg-grey-light",
19
- "uog:focus:outline-none",
20
- "uog:ui-selected:mb-0",
21
- "uog:ui-selected:border-2",
22
- "uog:ui-selected:border-yellow",
23
- "uog:ui-selected:bg-yellow",
24
- "uog:flex-1",
25
- e
8
+ "mb-1",
9
+ "rounded-t-sm",
10
+ "bg-grey-light-bg",
11
+ "px-4",
12
+ "py-3",
13
+ "text-lg",
14
+ "font-bold",
15
+ "text-black",
16
+ "transition-colors",
17
+ "hover:bg-grey-light",
18
+ "focus:bg-grey-light",
19
+ "focus:outline-none",
20
+ "ui-selected:mb-0",
21
+ "ui-selected:border-2",
22
+ "ui-selected:border-yellow",
23
+ "ui-selected:bg-yellow",
24
+ "flex-1",
25
+ t
26
26
  );
27
- return /* @__PURE__ */ u(t, { className: `uofg-tab ${g}`, children: o });
27
+ return /* @__PURE__ */ l(r, { className: `uofg-tab ${o}`, children: e });
28
28
  }
29
- r.displayName = "Tab";
29
+ b.displayName = "Tab";
30
30
  export {
31
- r as Tab
31
+ b as Tab
32
32
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
3
3
  import { h as y } from "./regular-DmWV6rTj.js";
4
4
  import { FontAwesomeIcon as N } from "@fortawesome/react-fontawesome";
5
5
  import { Field as B, Label as E, Input as $ } from "@headlessui/react";
@@ -7,69 +7,69 @@ import { useState as j, useRef as C, useEffect as I } from "react";
7
7
  import { twMerge as k } from "tailwind-merge";
8
8
  import { tv as F } from "tailwind-variants";
9
9
  function P({
10
- initialValue: g = "",
11
- type: p = "text",
12
- placeholder: a = "",
13
- onInput: n,
14
- children: i,
15
- className: f,
16
- hideClear: m,
10
+ initialValue: p = "",
11
+ type: a = "text",
12
+ placeholder: f = "",
13
+ onInput: i,
14
+ children: u,
15
+ className: m,
16
+ hideClear: x,
17
17
  value: l,
18
- ...x
18
+ ...b
19
19
  }) {
20
- const [u, s] = j(g), e = C(null);
20
+ const [n, s] = j(p), e = C(null);
21
21
  I(() => {
22
22
  s(l ?? "");
23
23
  }, [l]);
24
- const b = F({
24
+ const d = F({
25
25
  slots: {
26
- base: "uog:flex uog:flex-col uog:gap-0.5",
27
- wrapper: "uog:text-input uog:border-grey-light uog:flex uog:rounded-md uog:border uog:px-4 uog:py-2 uog:transition-colors uog:focus-within:border-blue uog:focus:outline-none uog:bg-white",
28
- input: "uog:flex-1 uog:focus:outline-none uog:bg-white",
29
- clearButton: "uog:rounded-full uog:text-xl"
26
+ base: "flex flex-col gap-0.5",
27
+ wrapper: "text-input flex rounded-md border border-grey-light bg-white px-4 py-2 transition-colors focus-within:border-blue focus:outline-none",
28
+ input: "flex-1 bg-white focus:outline-none",
29
+ clearButton: "rounded-full text-xl"
30
30
  },
31
31
  variants: {
32
32
  empty: {
33
33
  true: {
34
- clearButton: "uog:pointer-events-none uog:invisible"
34
+ clearButton: "pointer-events-none invisible"
35
35
  }
36
36
  },
37
37
  hide: {
38
38
  true: {
39
- clearButton: "uog:pointer-events-none uog:invisible"
39
+ clearButton: "pointer-events-none invisible"
40
40
  }
41
41
  }
42
42
  }
43
- }), { base: d, wrapper: w, input: h, clearButton: v } = b({ empty: (u == null ? void 0 : u.length) === 0 });
44
- return /* @__PURE__ */ c(B, { className: `uofg-text-input-field ${k(d(), f)}`, children: [
45
- i && /* @__PURE__ */ r(E, { className: "uofg-text-input-label", children: i }),
43
+ }), { base: g, wrapper: w, input: h, clearButton: v } = d({ empty: (n == null ? void 0 : n.length) === 0 });
44
+ return /* @__PURE__ */ c(B, { className: `uofg-text-input-field ${k(g(), m)}`, children: [
45
+ u && /* @__PURE__ */ o(E, { className: "uofg-text-input-label", children: u }),
46
46
  /* @__PURE__ */ c("div", { className: `uofg-text-input-wrapper ${w()}`, children: [
47
- /* @__PURE__ */ r(
47
+ /* @__PURE__ */ o(
48
48
  $,
49
49
  {
50
- ...x,
50
+ ...b,
51
51
  ref: e,
52
- value: u,
53
- type: p,
54
- placeholder: a,
52
+ value: n,
53
+ type: a,
54
+ placeholder: f,
55
55
  onInput: (t) => {
56
- var o;
57
- s((o = t == null ? void 0 : t.target) == null ? void 0 : o.value), n == null || n(t);
56
+ var r;
57
+ s((r = t == null ? void 0 : t.target) == null ? void 0 : r.value), i == null || i(t);
58
58
  },
59
59
  className: `uofg-text-input ${h()}`
60
60
  }
61
61
  ),
62
- /* @__PURE__ */ r(
62
+ /* @__PURE__ */ o(
63
63
  "button",
64
64
  {
65
- className: `uofg-text-input-clear-button ${v({ hide: m })}`,
65
+ className: `uofg-text-input-clear-button ${v({ hide: x })}`,
66
66
  onClick: () => {
67
- var o;
67
+ var r;
68
68
  if (!e.current) return;
69
- const t = (o = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) == null ? void 0 : o.set;
69
+ const t = (r = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) == null ? void 0 : r.set;
70
70
  t == null || t.call(e.current, ""), e.current.dispatchEvent(new Event("input", { bubbles: !0 })), e.current.focus();
71
71
  },
72
- children: /* @__PURE__ */ r(N, { icon: y })
72
+ children: /* @__PURE__ */ o(N, { icon: y })
73
73
  }
74
74
  )
75
75
  ] })