@uoguelph/react-components 1.3.12 → 1.3.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.
@@ -1,5 +1,5 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { twMerge as k } from "tailwind-merge";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { twMerge as A } from "tailwind-merge";
3
3
  import { tv as w } from "tailwind-variants";
4
4
  const z = "img";
5
5
  function x({
@@ -12,7 +12,7 @@ function x({
12
12
  className: u,
13
13
  verticalAlignment: s = "center",
14
14
  horizontalAlignment: c = "center",
15
- overlay: o = "none",
15
+ overlay: a = "none",
16
16
  blurred: m = !1,
17
17
  ...v
18
18
  }) {
@@ -32,12 +32,14 @@ function x({
32
32
  },
33
33
  overlay: {
34
34
  dark: {
35
+ base: "dark",
35
36
  overlay: "uog:bg-black/60"
36
37
  },
37
38
  light: {
38
39
  overlay: "uog:bg-white/60"
39
40
  },
40
41
  "dark-gradient": {
42
+ base: "dark",
41
43
  overlay: "uog:from-black/50 uog:via-30% uog:via-black/20 uog:to-transparent"
42
44
  },
43
45
  "light-gradient": {
@@ -117,15 +119,15 @@ function x({
117
119
  imageWrapper: h,
118
120
  image: b,
119
121
  overlay: p,
120
- container: A
121
- } = f({ blurred: m, overlay: o, verticalAlignment: s, horizontalAlignment: c });
122
- return /* @__PURE__ */ a("div", { className: `uofg-image-overlay ${y()}`, children: [
123
- /* @__PURE__ */ a("div", { className: `uofg-image-overlay-wrapper ${h()}`, children: [
122
+ container: k
123
+ } = f({ blurred: m, overlay: a, verticalAlignment: s, horizontalAlignment: c });
124
+ return /* @__PURE__ */ o("div", { className: `uofg-image-overlay ${y()}`, children: [
125
+ /* @__PURE__ */ o("div", { className: `uofg-image-overlay-wrapper ${h()}`, children: [
124
126
  /* @__PURE__ */ e(
125
127
  d,
126
128
  {
127
129
  ...v,
128
- className: `uofg-image-overlay-image ${k(b(), u)}`,
130
+ className: `uofg-image-overlay-image ${A(b(), u)}`,
129
131
  src: r,
130
132
  width: g,
131
133
  height: l,
@@ -133,9 +135,9 @@ function x({
133
135
  sizes: "100vw"
134
136
  }
135
137
  ),
136
- o !== "none" && /* @__PURE__ */ e("div", { className: `uofg-image-overlay-overlay ${p()}` })
138
+ a !== "none" && /* @__PURE__ */ e("div", { className: `uofg-image-overlay-overlay ${p()}` })
137
139
  ] }),
138
- /* @__PURE__ */ e("div", { className: `uofg-image-overlay-content ${A()}`, children: n })
140
+ /* @__PURE__ */ e("div", { className: `uofg-image-overlay-content ${k()}`, children: n })
139
141
  ] });
140
142
  }
141
143
  x.displayName = "ImageOverlay";
@@ -1,20 +1,20 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as y } from "react/jsx-runtime";
2
2
  import { twMerge as l } from "tailwind-merge";
3
- import { tv as n } from "tailwind-variants";
4
- const r = "span";
5
- function x({
3
+ import { tv as r } from "tailwind-variants";
4
+ const x = "span";
5
+ function a({
6
6
  type: o,
7
7
  children: t,
8
8
  className: g,
9
9
  as: d,
10
10
  ...u
11
11
  }) {
12
- const b = d ?? r, y = n({
12
+ const b = d ?? x, e = r({
13
13
  base: "uog:leading-[1.4] uog:[&_strong]:text-body-copy-bold uog:[&_strong]:dark:text-body-copy-bold-on-dark",
14
14
  variants: {
15
15
  type: {
16
16
  h1: "uog:mt-7.5 uog:text-4xl uog:font-bold uog:text-black uog:dark:text-white uog:font-serif",
17
- h2: "uog:mt-7.5 uog:mb-3.75 uog:font-bold uog:text-red uog:text-3xl",
17
+ h2: "uog:mt-7.5 uog:mb-3.75 uog:font-bold uog:text-red uog:dark:text-white uog:text-3xl",
18
18
  h3: "uog:mt-7.5 uog:mb-3.75 uog:font-bold uog:text-body-copy-bold uog:dark:text-body-copy-bold-on-dark uog:light:text-body-copy-bold-on-light uog:text-2xl",
19
19
  h4: "uog:mt-7.5 uog:mb-3.75 uog:font-bold uog:text-body-copy-bold uog:dark:text-body-copy-bold-on-dark uog:light:text-body-copy-bold-on-light uog:text-xl",
20
20
  h5: "uog:mt-7.5 uog:mb-3.75 uog:font-bold uog:text-body-copy-bold uog:dark:text-body-copy-bold-on-dark uog:light:text-body-copy-bold-on-light uog:text-lg",
@@ -23,9 +23,9 @@ function x({
23
23
  }
24
24
  }
25
25
  });
26
- return /* @__PURE__ */ e(b, { ...u, className: `uofg-typography ${l(y({ type: o }), g)}`, children: t });
26
+ return /* @__PURE__ */ y(b, { ...u, className: `uofg-typography ${l(e({ type: o }), g)}`, children: t });
27
27
  }
28
- x.displayName = "Typography";
28
+ a.displayName = "Typography";
29
29
  export {
30
- x as Typography
30
+ a as Typography
31
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "University of Guelph React Components Library",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -76,5 +76,5 @@
76
76
  "bugs": {
77
77
  "url": "https://github.com/ccswbs/uofg-components/issues"
78
78
  },
79
- "gitHead": "5a84ad72bdaeb2e42c615a263e10304dfd11b681"
79
+ "gitHead": "f428b08f9e546064cee6468aa8f2b4c55dbe3630"
80
80
  }