@uoguelph/react-components 1.3.12 → 1.3.13
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/image-overlay.js +12 -10
- package/package.json +2 -2
package/dist/image-overlay.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { twMerge as
|
|
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:
|
|
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:
|
|
121
|
-
} = f({ blurred: m, overlay:
|
|
122
|
-
return /* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
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 ${
|
|
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
|
-
|
|
138
|
+
a !== "none" && /* @__PURE__ */ e("div", { className: `uofg-image-overlay-overlay ${p()}` })
|
|
137
139
|
] }),
|
|
138
|
-
/* @__PURE__ */ e("div", { className: `uofg-image-overlay-content ${
|
|
140
|
+
/* @__PURE__ */ e("div", { className: `uofg-image-overlay-content ${k()}`, children: n })
|
|
139
141
|
] });
|
|
140
142
|
}
|
|
141
143
|
x.displayName = "ImageOverlay";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uoguelph/react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
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": "
|
|
79
|
+
"gitHead": "c05a7bc222922450ffa1f751b53444d41bcc85e0"
|
|
80
80
|
}
|