@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.
Files changed (126) hide show
  1. package/README.md +3 -0
  2. package/dist/accordion-button.d.ts +16 -0
  3. package/dist/accordion-button.js +42 -0
  4. package/dist/accordion-content.d.ts +15 -0
  5. package/dist/accordion-content.js +14 -0
  6. package/dist/accordion-context.d.ts +9 -0
  7. package/dist/accordion-context.js +5 -0
  8. package/dist/accordion.d.ts +42 -0
  9. package/dist/accordion.js +16 -0
  10. package/dist/alert-footer.d.ts +16 -0
  11. package/dist/alert-footer.js +10 -0
  12. package/dist/alert-message.d.ts +16 -0
  13. package/dist/alert-message.js +13 -0
  14. package/dist/alert-subtitle.d.ts +16 -0
  15. package/dist/alert-subtitle.js +10 -0
  16. package/dist/alert-title.d.ts +22 -0
  17. package/dist/alert-title.js +50 -0
  18. package/dist/alert.d.ts +70 -0
  19. package/dist/alert.js +18 -0
  20. package/dist/blockquote.d.ts +22 -0
  21. package/dist/blockquote.js +43 -0
  22. package/dist/breadcrumb-home.d.ts +32 -0
  23. package/dist/breadcrumb-home.js +21 -0
  24. package/dist/breadcrumb.d.ts +32 -0
  25. package/dist/breadcrumb.js +30 -0
  26. package/dist/breadcrumbs.d.ts +54 -0
  27. package/dist/breadcrumbs.js +15 -0
  28. package/dist/button.d.ts +51 -0
  29. package/dist/button.js +218 -0
  30. package/dist/card-content.d.ts +15 -0
  31. package/dist/card-content.js +20 -0
  32. package/dist/card-context.d.ts +10 -0
  33. package/dist/card-context.js +5 -0
  34. package/dist/card-footer.d.ts +16 -0
  35. package/dist/card-footer.js +20 -0
  36. package/dist/card-image.d.ts +40 -0
  37. package/dist/card-image.js +45 -0
  38. package/dist/card-title.d.ts +16 -0
  39. package/dist/card-title.js +20 -0
  40. package/dist/card.d.ts +105 -0
  41. package/dist/card.js +45 -0
  42. package/dist/carousel.d.ts +25 -0
  43. package/dist/carousel.js +113 -0
  44. package/dist/checkbox.d.ts +39 -0
  45. package/dist/checkbox.js +99 -0
  46. package/dist/contact-email.d.ts +17 -0
  47. package/dist/contact-email.js +21 -0
  48. package/dist/contact-name.d.ts +16 -0
  49. package/dist/contact-name.js +10 -0
  50. package/dist/contact-phone.d.ts +19 -0
  51. package/dist/contact-phone.js +25 -0
  52. package/dist/contact-title.d.ts +16 -0
  53. package/dist/contact-title.js +10 -0
  54. package/dist/contact.d.ts +73 -0
  55. package/dist/contact.js +18 -0
  56. package/dist/container.d.ts +32 -0
  57. package/dist/container.js +25 -0
  58. package/dist/divider.d.ts +6 -0
  59. package/dist/divider.js +30 -0
  60. package/dist/embedded-video-context.d.ts +10 -0
  61. package/dist/embedded-video-context.js +5 -0
  62. package/dist/embedded-video-modal-button.d.ts +54 -0
  63. package/dist/embedded-video-modal-button.js +25 -0
  64. package/dist/embedded-video.d.ts +81 -0
  65. package/dist/embedded-video.js +108 -0
  66. package/dist/hero-caption.d.ts +15 -0
  67. package/dist/hero-caption.js +8 -0
  68. package/dist/hero-content.d.ts +20 -0
  69. package/dist/hero-content.js +47 -0
  70. package/dist/hero-context.d.ts +9 -0
  71. package/dist/hero-context.js +5 -0
  72. package/dist/hero-link.d.ts +29 -0
  73. package/dist/hero-link.js +26 -0
  74. package/dist/hero-title.d.ts +24 -0
  75. package/dist/hero-title.js +26 -0
  76. package/dist/hero-video.d.ts +22 -0
  77. package/dist/hero-video.js +27 -0
  78. package/dist/hero.d.ts +141 -0
  79. package/dist/hero.js +52 -0
  80. package/dist/image-overlay.d.ts +66 -0
  81. package/dist/image-overlay.js +144 -0
  82. package/dist/index.css +1 -0
  83. package/dist/index.d.ts +11 -0
  84. package/dist/index.js +33 -0
  85. package/dist/info.d.ts +19 -0
  86. package/dist/info.js +24 -0
  87. package/dist/link-carousel-content.d.ts +11 -0
  88. package/dist/link-carousel-content.js +20 -0
  89. package/dist/link-carousel-context.d.ts +30 -0
  90. package/dist/link-carousel-context.js +5 -0
  91. package/dist/link-carousel-item.d.ts +15 -0
  92. package/dist/link-carousel-item.js +21 -0
  93. package/dist/link-carousel-link.d.ts +34 -0
  94. package/dist/link-carousel-link.js +39 -0
  95. package/dist/link-carousel-links.d.ts +11 -0
  96. package/dist/link-carousel-links.js +24 -0
  97. package/dist/link-carousel.d.ts +83 -0
  98. package/dist/link-carousel.js +57 -0
  99. package/dist/link.d.ts +30 -0
  100. package/dist/link.js +28 -0
  101. package/dist/list-item.d.ts +17 -0
  102. package/dist/list-item.js +9 -0
  103. package/dist/list.d.ts +39 -0
  104. package/dist/list.js +31 -0
  105. package/dist/loading-indicator.d.ts +23 -0
  106. package/dist/loading-indicator.js +75 -0
  107. package/dist/math-utils-BwzyIQRL.js +50 -0
  108. package/dist/media-caption.d.ts +110 -0
  109. package/dist/media-caption.js +129 -0
  110. package/dist/modal.d.ts +18 -0
  111. package/dist/modal.js +39 -0
  112. package/dist/navigation-link.d.ts +29 -0
  113. package/dist/navigation-link.js +40 -0
  114. package/dist/navigation.d.ts +40 -0
  115. package/dist/navigation.js +15 -0
  116. package/dist/radio-context.d.ts +9 -0
  117. package/dist/radio-context.js +5 -0
  118. package/dist/radio-group.d.ts +28 -0
  119. package/dist/radio-group.js +37 -0
  120. package/dist/radio.d.ts +13 -0
  121. package/dist/radio.js +36 -0
  122. package/dist/regular-CYeGUuiO.js +91 -0
  123. package/dist/solid-DM6GVhkF.js +80 -0
  124. package/dist/typography.d.ts +29 -0
  125. package/dist/typography.js +31 -0
  126. 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
+ }