@uoguelph/react-components 1.3.13 → 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.
- package/dist/typography.js +9 -9
- package/package.json +2 -2
package/dist/typography.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as l } from "tailwind-merge";
|
|
3
|
-
import { tv as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
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 ??
|
|
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__ */
|
|
26
|
+
return /* @__PURE__ */ y(b, { ...u, className: `uofg-typography ${l(e({ type: o }), g)}`, children: t });
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
a.displayName = "Typography";
|
|
29
29
|
export {
|
|
30
|
-
|
|
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.
|
|
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": "
|
|
79
|
+
"gitHead": "f428b08f9e546064cee6468aa8f2b4c55dbe3630"
|
|
80
80
|
}
|