@uoguelph/react-components 1.3.13 → 1.4.0
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/accordion-button.js +22 -22
- package/dist/accordion-content.js +5 -5
- package/dist/accordion.js +3 -3
- package/dist/alert-footer.js +6 -6
- package/dist/alert-message.js +7 -10
- package/dist/alert-subtitle.js +7 -7
- package/dist/alert-title.js +23 -23
- package/dist/alert.js +7 -7
- package/dist/blockquote-author-name.js +1 -1
- package/dist/blockquote-author-title.js +2 -2
- package/dist/blockquote-author.js +11 -11
- package/dist/blockquote-content.js +16 -16
- package/dist/breadcrumb-home.js +2 -2
- package/dist/breadcrumb.js +15 -15
- package/dist/breadcrumbs.js +9 -9
- package/dist/button.js +44 -44
- package/dist/card-content.js +10 -10
- package/dist/card-footer.js +11 -11
- package/dist/card-image.js +15 -15
- package/dist/card-title.js +5 -5
- package/dist/card.js +11 -11
- package/dist/carousel.js +51 -51
- package/dist/checkbox.js +44 -44
- package/dist/contact-email.js +7 -7
- package/dist/contact-name.js +1 -1
- package/dist/contact-phone.js +11 -11
- package/dist/contact-title.js +1 -1
- package/dist/contact.js +11 -14
- package/dist/container.js +10 -10
- package/dist/dismissible-alert.js +2 -2
- package/dist/divider.js +18 -18
- package/dist/embedded-video-modal-button.js +16 -16
- package/dist/embedded-video.js +29 -29
- package/dist/hero-caption.js +1 -1
- package/dist/hero-content.js +23 -23
- package/dist/hero-link.js +1 -1
- package/dist/hero-title.js +11 -11
- package/dist/hero-video.js +9 -9
- package/dist/hero.js +19 -19
- package/dist/image-overlay.js +48 -48
- package/dist/index.css +1 -1
- package/dist/info.js +16 -16
- package/dist/layout-content.js +3 -3
- package/dist/layout.js +44 -44
- package/dist/link-carousel-content.js +11 -11
- package/dist/link-carousel-item.js +15 -15
- package/dist/link-carousel-link.js +22 -22
- package/dist/link-carousel-links.js +14 -14
- package/dist/link-carousel.js +21 -21
- package/dist/link.js +10 -10
- package/dist/list-item.js +6 -6
- package/dist/list.js +21 -21
- package/dist/loading-indicator.js +29 -29
- package/dist/media-caption.js +34 -34
- package/dist/modal.js +25 -25
- package/dist/navigation-link.js +25 -25
- package/dist/navigation.js +8 -11
- package/dist/number-input.js +46 -46
- package/dist/pagination.js +62 -62
- package/dist/radio-group.js +8 -8
- package/dist/radio.js +19 -19
- package/dist/select-button.js +32 -32
- package/dist/select-option.js +29 -29
- package/dist/select-options.js +27 -27
- package/dist/select.js +7 -7
- package/dist/statistics-item-image.js +9 -9
- package/dist/statistics-item-represents.js +7 -7
- package/dist/statistics-item-value.js +7 -7
- package/dist/statistics-item.js +35 -35
- package/dist/statistics.js +25 -25
- package/dist/story-background-image.js +12 -12
- package/dist/story-background.js +7 -7
- package/dist/story-body.js +5 -8
- package/dist/story-footer.js +12 -12
- package/dist/story-foreground-content.js +4 -4
- package/dist/story-foreground-image.js +15 -15
- package/dist/story-foreground.js +7 -10
- package/dist/story.js +5 -5
- package/dist/tab-list.js +3 -6
- package/dist/tab-panel.js +3 -3
- package/dist/tab.js +26 -26
- package/dist/text-input.js +32 -32
- package/dist/typography.js +22 -22
- package/package.json +2 -2
package/dist/typography.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { tv as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
type:
|
|
7
|
-
children:
|
|
8
|
-
className:
|
|
9
|
-
as:
|
|
10
|
-
...
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as x } from "tailwind-merge";
|
|
3
|
+
import { tv as a } from "tailwind-variants";
|
|
4
|
+
const n = "span";
|
|
5
|
+
function p({
|
|
6
|
+
type: t,
|
|
7
|
+
children: o,
|
|
8
|
+
className: d,
|
|
9
|
+
as: b,
|
|
10
|
+
...e
|
|
11
11
|
}) {
|
|
12
|
-
const
|
|
13
|
-
base: "
|
|
12
|
+
const y = b ?? n, l = a({
|
|
13
|
+
base: "leading-[1.4] [&_strong]:text-body-copy-bold [&_strong]:dark:text-body-copy-bold-on-dark",
|
|
14
14
|
variants: {
|
|
15
15
|
type: {
|
|
16
|
-
h1: "
|
|
17
|
-
h2: "
|
|
18
|
-
h3: "
|
|
19
|
-
h4: "
|
|
20
|
-
h5: "
|
|
21
|
-
h6: "
|
|
22
|
-
body: "
|
|
16
|
+
h1: "mt-7.5 font-serif text-4xl font-bold text-black dark:text-white",
|
|
17
|
+
h2: "mt-7.5 mb-3.75 text-3xl font-bold text-red dark:text-white",
|
|
18
|
+
h3: "mt-7.5 mb-3.75 text-2xl font-bold text-body-copy-bold dark:text-body-copy-bold-on-dark light:text-body-copy-bold-on-light",
|
|
19
|
+
h4: "mt-7.5 mb-3.75 text-xl font-bold text-body-copy-bold dark:text-body-copy-bold-on-dark light:text-body-copy-bold-on-light",
|
|
20
|
+
h5: "mt-7.5 mb-3.75 text-lg font-bold text-body-copy-bold dark:text-body-copy-bold-on-dark light:text-body-copy-bold-on-light",
|
|
21
|
+
h6: "mt-7.5 mb-3.75 text-base font-bold text-body-copy-bold dark:text-body-copy-bold-on-dark light:text-body-copy-bold-on-light",
|
|
22
|
+
body: "mt-3.75 text-lg leading-[1.6] font-normal text-body-copy dark:text-body-copy-on-dark light:text-body-copy-on-light"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ r(y, { ...e, className: `uofg-typography ${x(l({ type: t }), d)}`, children: o });
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
p.displayName = "Typography";
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
p as Typography
|
|
31
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uoguelph/react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
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": "ce2ef021d35ca523de77ee3b869b5c599edd3f34"
|
|
80
80
|
}
|