@uoguelph/react-components 1.2.11-rc.4 → 1.2.11-rc.5

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,27 +1,27 @@
1
- import { jsxs as y, jsx as i } from "react/jsx-runtime";
2
- import { twMerge as e } from "tailwind-merge";
3
- import { tv as x } from "tailwind-variants";
4
- import { EmbeddedVideo as v } from "./embedded-video.js";
5
- const h = "img";
6
- function k({
7
- as: s,
1
+ import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
+ import { twMerge as b } from "tailwind-merge";
3
+ import { tv as y } from "tailwind-variants";
4
+ import { EmbeddedVideo as x } from "./embedded-video.js";
5
+ const v = "img";
6
+ function h({
7
+ as: e,
8
8
  size: o = "small",
9
- position: t = "left",
10
- background: r = "none",
11
- children: g,
12
- src: n,
13
- className: l,
14
- mediaClassName: c,
15
- ...d
9
+ position: s = "left",
10
+ background: t = "none",
11
+ children: r,
12
+ src: g,
13
+ className: n,
14
+ mediaClassName: k,
15
+ ...l
16
16
  }) {
17
- const a = s ?? h;
18
- o = (a instanceof v ? "video" : "image") === "video" && o === "small" ? "medium" : o;
19
- const p = x({
17
+ const i = e ?? v;
18
+ o = (i instanceof x ? "video" : "image") === "video" && o === "small" ? "medium" : o;
19
+ const c = y({
20
20
  slots: {
21
- base: "uog:flex uog:flex-col",
22
- mediaWrapper: "",
23
- media: "uog:w-full uog:object-cover",
24
- caption: "uog:p-4"
21
+ base: "uofg-media-caption uog:flex uog:flex-col",
22
+ mediaWrapper: "uofg-media-caption-wrapper",
23
+ media: "uofg-media-caption-media uog:w-full uog:object-cover",
24
+ caption: "uofg-media-caption-caption uog:p-4"
25
25
  },
26
26
  variants: {
27
27
  size: {
@@ -117,13 +117,13 @@ function k({
117
117
  }
118
118
  }
119
119
  ]
120
- }), { base: m, mediaWrapper: u, media: f, caption: b } = p({ size: o, position: t, background: r });
121
- return /* @__PURE__ */ y("div", { className: e(m(), l), children: [
122
- /* @__PURE__ */ i("div", { className: u(), children: /* @__PURE__ */ i(a, { ...d, src: n, className: e(f(), c) }) }),
123
- /* @__PURE__ */ i("div", { className: b(), children: g })
120
+ }), { base: d, mediaWrapper: p, media: m, caption: u } = c({ size: o, position: s, background: t });
121
+ return /* @__PURE__ */ f("div", { className: b(d(), n), children: [
122
+ /* @__PURE__ */ a("div", { className: p(), children: /* @__PURE__ */ a(i, { ...l, src: g, className: m() }) }),
123
+ /* @__PURE__ */ a("div", { className: u(), children: r })
124
124
  ] });
125
125
  }
126
- k.displayName = "MediaCaption";
126
+ h.displayName = "MediaCaption";
127
127
  export {
128
- k as MediaCaption
128
+ h as MediaCaption
129
129
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.2.11-rc.4",
3
+ "version": "1.2.11-rc.5",
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": "b7bd3b87f32e7ef646ad187feac9d8b2b5c69a95"
87
+ "gitHead": "c27a1ee18c519cd6f784ec8557c77c5006fc2dac"
88
88
  }