@uoguelph/react-components 1.2.12 → 1.2.14

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 (57) hide show
  1. package/dist/blockquote-author-link.js +8 -8
  2. package/dist/breadcrumb-home.js +13 -13
  3. package/dist/breadcrumb.js +13 -13
  4. package/dist/breadcrumbs.js +5 -5
  5. package/dist/card-content.js +4 -4
  6. package/dist/card-footer.js +1 -1
  7. package/dist/card-image.js +16 -16
  8. package/dist/card-title.js +5 -5
  9. package/dist/card.js +1 -1
  10. package/dist/carousel.js +30 -30
  11. package/dist/checkbox.js +26 -26
  12. package/dist/components/select/select.d.ts +4 -3
  13. package/dist/contact-email.js +8 -8
  14. package/dist/contact-name.js +6 -6
  15. package/dist/contact-phone.js +9 -9
  16. package/dist/contact-title.js +4 -4
  17. package/dist/contact.js +12 -12
  18. package/dist/container.js +7 -7
  19. package/dist/divider.js +10 -10
  20. package/dist/embedded-video-modal-button.js +30 -13
  21. package/dist/hero.js +19 -19
  22. package/dist/image-overlay.js +19 -19
  23. package/dist/index.css +1 -1
  24. package/dist/info.js +2 -2
  25. package/dist/layout-content.js +3 -3
  26. package/dist/layout.js +8 -8
  27. package/dist/link-carousel-link.js +6 -6
  28. package/dist/link.js +3 -3
  29. package/dist/list-item.js +5 -5
  30. package/dist/list.js +1 -1
  31. package/dist/modal.js +27 -16
  32. package/dist/radio-group.js +13 -13
  33. package/dist/radio.js +8 -8
  34. package/dist/select-button.js +32 -31
  35. package/dist/select-option.js +19 -16
  36. package/dist/select-options.js +1 -1
  37. package/dist/select.js +10 -4
  38. package/dist/statistics-item-image.js +12 -2
  39. package/dist/statistics-item-represents.js +2 -5
  40. package/dist/statistics-item-value.js +2 -5
  41. package/dist/statistics-item.js +2 -2
  42. package/dist/statistics.js +33 -33
  43. package/dist/story-background-image.js +12 -2
  44. package/dist/story-background.js +2 -2
  45. package/dist/story-body.js +2 -2
  46. package/dist/story-footer.js +3 -3
  47. package/dist/story-foreground-content.js +2 -5
  48. package/dist/story-foreground-image.js +13 -3
  49. package/dist/story-foreground.js +2 -2
  50. package/dist/story.js +2 -2
  51. package/dist/tab-list.js +7 -7
  52. package/dist/tab-panel.js +8 -8
  53. package/dist/tab-panels.js +4 -4
  54. package/dist/tab.js +1 -1
  55. package/dist/tabs.js +6 -6
  56. package/dist/text-input.js +18 -18
  57. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { TabPanels as r } from "@headlessui/react";
3
- import { twMerge as n } from "tailwind-merge";
2
+ import { TabPanels as n } from "@headlessui/react";
3
+ import { twMerge as r } from "tailwind-merge";
4
4
  function t({ children: a, className: s }) {
5
- const e = n("uofg-tab-panels", s);
6
- return /* @__PURE__ */ o(r, { className: e, children: a });
5
+ const e = r("uofg-tab-panels", s);
6
+ return /* @__PURE__ */ o(n, { className: `uofg-tab-panels ${e}`, children: a });
7
7
  }
8
8
  t.displayName = "TabPanels";
9
9
  export {
package/dist/tab.js CHANGED
@@ -23,7 +23,7 @@ function r({ children: o, className: e }) {
23
23
  "uog:flex-1",
24
24
  e
25
25
  );
26
- return /* @__PURE__ */ u(t, { className: g, children: o });
26
+ return /* @__PURE__ */ u(t, { className: `uofg-tab ${g}`, children: o });
27
27
  }
28
28
  r.displayName = "Tab";
29
29
  export {
package/dist/tabs.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { TabGroup as e } from "@headlessui/react";
3
- import { twMerge as s } from "tailwind-merge";
2
+ import { TabGroup as s } from "@headlessui/react";
3
+ import { twMerge as e } from "tailwind-merge";
4
4
  import { Tab as n } from "./tab.js";
5
5
  import { TabList as l } from "./tab-list.js";
6
- import { TabPanel as u } from "./tab-panel.js";
6
+ import { TabPanel as c } from "./tab-panel.js";
7
7
  import { TabPanels as N } from "./tab-panels.js";
8
8
  function m({ children: o, className: r }) {
9
- const a = s("uofg-tabs", r);
10
- return /* @__PURE__ */ t(e, { className: a, children: o });
9
+ const a = e("uofg-tabs", r);
10
+ return /* @__PURE__ */ t(s, { className: `uofg-tabs ${a}`, children: o });
11
11
  }
12
12
  m.displayName = "Tabs";
13
13
  export {
14
14
  n as Tab,
15
15
  l as TabList,
16
- u as TabPanel,
16
+ c as TabPanel,
17
17
  N as TabPanels,
18
18
  m as Tabs
19
19
  };
@@ -1,18 +1,18 @@
1
- import { jsxs as s, jsx as u } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import { h as w } from "./regular-DmWV6rTj.js";
3
3
  import { FontAwesomeIcon as h } from "@fortawesome/react-fontawesome";
4
4
  import { Field as v, Label as y, Input as N } from "@headlessui/react";
5
- import { useState as j, useRef as B } from "react";
6
- import { tv as E } from "tailwind-variants";
7
- function T({
8
- initialValue: i = "",
5
+ import { useState as $, useRef as j } from "react";
6
+ import { tv as B } from "tailwind-variants";
7
+ function O({
8
+ initialValue: s = "",
9
9
  type: c = "text",
10
10
  placeholder: a = "",
11
11
  onInput: n,
12
- children: l,
12
+ children: i,
13
13
  ...g
14
14
  }) {
15
- const [r, p] = j(i), e = B(null), m = E({
15
+ const [u, p] = $(s), e = j(null), f = B({
16
16
  slots: {
17
17
  base: "uog:flex uog:flex-col uog:gap-0.5",
18
18
  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",
@@ -26,41 +26,41 @@ function T({
26
26
  }
27
27
  }
28
28
  }
29
- }), { base: f, wrapper: b, input: d, clearButton: x } = m({ empty: (r == null ? void 0 : r.length) === 0 });
30
- return /* @__PURE__ */ s(v, { className: f(), children: [
31
- l && /* @__PURE__ */ u(y, { children: l }),
32
- /* @__PURE__ */ s("div", { className: b(), children: [
33
- /* @__PURE__ */ u(
29
+ }), { base: m, wrapper: x, input: b, clearButton: d } = f({ empty: (u == null ? void 0 : u.length) === 0 });
30
+ return /* @__PURE__ */ l(v, { className: `uofg-text-input-field ${m()}`, children: [
31
+ i && /* @__PURE__ */ r(y, { className: "uofg-text-input-label", children: i }),
32
+ /* @__PURE__ */ l("div", { className: `uofg-text-input-wrapper ${x()}`, children: [
33
+ /* @__PURE__ */ r(
34
34
  N,
35
35
  {
36
36
  ...g,
37
37
  ref: e,
38
- value: r,
38
+ value: u,
39
39
  type: c,
40
40
  placeholder: a,
41
41
  onInput: (t) => {
42
42
  var o;
43
43
  p((o = t == null ? void 0 : t.target) == null ? void 0 : o.value), n == null || n(t);
44
44
  },
45
- className: d()
45
+ className: `uofg-text-input ${b()}`
46
46
  }
47
47
  ),
48
- /* @__PURE__ */ u(
48
+ /* @__PURE__ */ r(
49
49
  "button",
50
50
  {
51
- className: x(),
51
+ className: `uofg-text-input-clear-button ${d()}`,
52
52
  onClick: () => {
53
53
  var o;
54
54
  if (!e.current) return;
55
55
  const t = (o = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) == null ? void 0 : o.set;
56
56
  t == null || t.call(e.current, ""), e.current.dispatchEvent(new Event("input", { bubbles: !0 })), e.current.focus();
57
57
  },
58
- children: /* @__PURE__ */ u(h, { icon: w })
58
+ children: /* @__PURE__ */ r(h, { icon: w })
59
59
  }
60
60
  )
61
61
  ] })
62
62
  ] });
63
63
  }
64
64
  export {
65
- T as TextInput
65
+ O as TextInput
66
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "University of Guelph React Components Library",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -84,5 +84,5 @@
84
84
  "bugs": {
85
85
  "url": "https://github.com/ccswbs/uofg-components/issues"
86
86
  },
87
- "gitHead": "79252819d4c0d25e47e6bfcd9698129d3551e397"
87
+ "gitHead": "dd17011e129ba30239853925e13c084e0c2615e9"
88
88
  }