@uoguelph/react-components 1.0.0-rc.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/README.md +3 -0
- package/dist/accordion-button.d.ts +16 -0
- package/dist/accordion-button.js +42 -0
- package/dist/accordion-content.d.ts +15 -0
- package/dist/accordion-content.js +14 -0
- package/dist/accordion-context.d.ts +9 -0
- package/dist/accordion-context.js +5 -0
- package/dist/accordion.d.ts +42 -0
- package/dist/accordion.js +16 -0
- package/dist/alert-footer.d.ts +16 -0
- package/dist/alert-footer.js +10 -0
- package/dist/alert-message.d.ts +16 -0
- package/dist/alert-message.js +13 -0
- package/dist/alert-subtitle.d.ts +16 -0
- package/dist/alert-subtitle.js +10 -0
- package/dist/alert-title.d.ts +22 -0
- package/dist/alert-title.js +50 -0
- package/dist/alert.d.ts +70 -0
- package/dist/alert.js +18 -0
- package/dist/blockquote.d.ts +22 -0
- package/dist/blockquote.js +43 -0
- package/dist/breadcrumb-home.d.ts +32 -0
- package/dist/breadcrumb-home.js +21 -0
- package/dist/breadcrumb.d.ts +32 -0
- package/dist/breadcrumb.js +30 -0
- package/dist/breadcrumbs.d.ts +54 -0
- package/dist/breadcrumbs.js +15 -0
- package/dist/button.d.ts +51 -0
- package/dist/button.js +218 -0
- package/dist/card-content.d.ts +15 -0
- package/dist/card-content.js +20 -0
- package/dist/card-context.d.ts +10 -0
- package/dist/card-context.js +5 -0
- package/dist/card-footer.d.ts +16 -0
- package/dist/card-footer.js +20 -0
- package/dist/card-image.d.ts +40 -0
- package/dist/card-image.js +45 -0
- package/dist/card-title.d.ts +16 -0
- package/dist/card-title.js +20 -0
- package/dist/card.d.ts +105 -0
- package/dist/card.js +45 -0
- package/dist/carousel.d.ts +25 -0
- package/dist/carousel.js +113 -0
- package/dist/checkbox.d.ts +39 -0
- package/dist/checkbox.js +99 -0
- package/dist/contact-email.d.ts +17 -0
- package/dist/contact-email.js +21 -0
- package/dist/contact-name.d.ts +16 -0
- package/dist/contact-name.js +10 -0
- package/dist/contact-phone.d.ts +19 -0
- package/dist/contact-phone.js +25 -0
- package/dist/contact-title.d.ts +16 -0
- package/dist/contact-title.js +10 -0
- package/dist/contact.d.ts +73 -0
- package/dist/contact.js +18 -0
- package/dist/container.d.ts +32 -0
- package/dist/container.js +25 -0
- package/dist/divider.d.ts +6 -0
- package/dist/divider.js +30 -0
- package/dist/embedded-video-context.d.ts +10 -0
- package/dist/embedded-video-context.js +5 -0
- package/dist/embedded-video-modal-button.d.ts +54 -0
- package/dist/embedded-video-modal-button.js +25 -0
- package/dist/embedded-video.d.ts +81 -0
- package/dist/embedded-video.js +108 -0
- package/dist/hero-caption.d.ts +15 -0
- package/dist/hero-caption.js +8 -0
- package/dist/hero-content.d.ts +20 -0
- package/dist/hero-content.js +47 -0
- package/dist/hero-context.d.ts +9 -0
- package/dist/hero-context.js +5 -0
- package/dist/hero-link.d.ts +29 -0
- package/dist/hero-link.js +26 -0
- package/dist/hero-title.d.ts +24 -0
- package/dist/hero-title.js +26 -0
- package/dist/hero-video.d.ts +22 -0
- package/dist/hero-video.js +27 -0
- package/dist/hero.d.ts +141 -0
- package/dist/hero.js +52 -0
- package/dist/image-overlay.d.ts +66 -0
- package/dist/image-overlay.js +144 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +33 -0
- package/dist/info.d.ts +19 -0
- package/dist/info.js +24 -0
- package/dist/link-carousel-content.d.ts +11 -0
- package/dist/link-carousel-content.js +20 -0
- package/dist/link-carousel-context.d.ts +30 -0
- package/dist/link-carousel-context.js +5 -0
- package/dist/link-carousel-item.d.ts +15 -0
- package/dist/link-carousel-item.js +21 -0
- package/dist/link-carousel-link.d.ts +34 -0
- package/dist/link-carousel-link.js +39 -0
- package/dist/link-carousel-links.d.ts +11 -0
- package/dist/link-carousel-links.js +24 -0
- package/dist/link-carousel.d.ts +83 -0
- package/dist/link-carousel.js +57 -0
- package/dist/link.d.ts +30 -0
- package/dist/link.js +28 -0
- package/dist/list-item.d.ts +17 -0
- package/dist/list-item.js +9 -0
- package/dist/list.d.ts +39 -0
- package/dist/list.js +31 -0
- package/dist/loading-indicator.d.ts +23 -0
- package/dist/loading-indicator.js +75 -0
- package/dist/math-utils-BwzyIQRL.js +50 -0
- package/dist/media-caption.d.ts +110 -0
- package/dist/media-caption.js +129 -0
- package/dist/modal.d.ts +18 -0
- package/dist/modal.js +39 -0
- package/dist/navigation-link.d.ts +29 -0
- package/dist/navigation-link.js +40 -0
- package/dist/navigation.d.ts +40 -0
- package/dist/navigation.js +15 -0
- package/dist/radio-context.d.ts +9 -0
- package/dist/radio-context.js +5 -0
- package/dist/radio-group.d.ts +28 -0
- package/dist/radio-group.js +37 -0
- package/dist/radio.d.ts +13 -0
- package/dist/radio.js +36 -0
- package/dist/regular-CYeGUuiO.js +91 -0
- package/dist/solid-DM6GVhkF.js +80 -0
- package/dist/typography.d.ts +29 -0
- package/dist/typography.js +31 -0
- package/package.json +76 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as y } from "tailwind-merge";
|
|
3
|
+
import { tv as m } from "tailwind-variants";
|
|
4
|
+
const x = "span";
|
|
5
|
+
function p({
|
|
6
|
+
type: t,
|
|
7
|
+
children: o,
|
|
8
|
+
className: w,
|
|
9
|
+
as: e,
|
|
10
|
+
...l
|
|
11
|
+
}) {
|
|
12
|
+
const b = e ?? x, d = m({
|
|
13
|
+
base: "tw:inline-flex tw:leading-[1.4] tw:has-[strong]:text-body-copy-bold",
|
|
14
|
+
variants: {
|
|
15
|
+
type: {
|
|
16
|
+
h1: "tw:mt-7.5 tw:text-4xl tw:font-bold tw:text-black tw:font-serif",
|
|
17
|
+
h2: "tw:mt-7.5 tw:mb-3.75 tw:font-bold tw:text-red tw:text-3xl",
|
|
18
|
+
h3: "tw:mt-7.5 tw:mb-3.75 tw:font-bold tw:text-body-copy-bold tw:text-2xl",
|
|
19
|
+
h4: "tw:mt-7.5 tw:mb-3.75 tw:font-bold tw:text-body-copy-bold tw:text-xl",
|
|
20
|
+
h5: "tw:mt-7.5 tw:mb-3.75 tw:font-bold tw:text-body-copy-bold tw:text-lg",
|
|
21
|
+
h6: "tw:mt-7.5 tw:mb-3.75 tw:font-bold tw:text-body-copy-bold tw:text-base",
|
|
22
|
+
body: "tw:mt-3.75 tw:text-lg tw:text-body-copy tw:font-normal tw:leading-[1.6]"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ n(b, { ...l, className: `uofg-typography ${y(d({ type: t }), w)}`, children: o });
|
|
27
|
+
}
|
|
28
|
+
p.displayName = "Typography";
|
|
29
|
+
export {
|
|
30
|
+
p as Typography
|
|
31
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uoguelph/react-components",
|
|
3
|
+
"version": "1.0.0-rc.0",
|
|
4
|
+
"description": "University of Guelph React Components Library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "NODE_ENV=production vite build",
|
|
8
|
+
"prepack": "npm run build"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"./dist"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./*": {
|
|
20
|
+
"types": "./dist/*.d.ts",
|
|
21
|
+
"import": "./dist/*.js",
|
|
22
|
+
"default": "./dist/*.js"
|
|
23
|
+
},
|
|
24
|
+
"./style": "./dist/index.css"
|
|
25
|
+
},
|
|
26
|
+
"typesVersions": {
|
|
27
|
+
"*": {
|
|
28
|
+
"*": [
|
|
29
|
+
"dist/"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
35
|
+
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
36
|
+
"@headlessui/react": "^2.2.0",
|
|
37
|
+
"@headlessui/tailwindcss": "^0.2.2",
|
|
38
|
+
"react": "^19.0.0",
|
|
39
|
+
"react-animate-height": "^3.2.3",
|
|
40
|
+
"react-dom": "^19.0.0",
|
|
41
|
+
"tailwind-merge": "^3.0.1",
|
|
42
|
+
"tailwind-variants": "^0.3.1"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@awesome.me/kit-7993323d0c": "^1.0.10",
|
|
46
|
+
"@eslint/js": "^9.19.0",
|
|
47
|
+
"@tailwindcss/vite": "^4.0.9",
|
|
48
|
+
"@types/node": "^22.13.1",
|
|
49
|
+
"@types/react": "^19.0.8",
|
|
50
|
+
"@types/react-dom": "^19.0.3",
|
|
51
|
+
"@uoguelph/tailwind-theme": "^1.0.0-rc.0",
|
|
52
|
+
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
53
|
+
"autoprefixer": "^10.4.20",
|
|
54
|
+
"eslint": "^9.19.0",
|
|
55
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
56
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
|
57
|
+
"fast-glob": "^3.3.3",
|
|
58
|
+
"globals": "^15.14.0",
|
|
59
|
+
"postcss": "^8.5.2",
|
|
60
|
+
"tailwindcss": "^4.0.6",
|
|
61
|
+
"typescript": "~5.7.2",
|
|
62
|
+
"typescript-eslint": "^8.22.0",
|
|
63
|
+
"vite": "^6.1.0",
|
|
64
|
+
"vite-plugin-dts": "^4.5.0"
|
|
65
|
+
},
|
|
66
|
+
"license": "0BSD",
|
|
67
|
+
"author": "",
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/ccswbs/uofg-components.git"
|
|
71
|
+
},
|
|
72
|
+
"bugs": {
|
|
73
|
+
"url": "https://github.com/ccswbs/uofg-components/issues"
|
|
74
|
+
},
|
|
75
|
+
"gitHead": "7ac6a7335730c5c1c52c410f8de5546f337d6603"
|
|
76
|
+
}
|