@uoguelph/web-components 0.0.26 → 0.0.28

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 (47) hide show
  1. package/dist/cjs/uofg-alert_6.cjs.entry.js +820 -216
  2. package/dist/collection/components/uofg-alert/uofg-alert.css +13 -27
  3. package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.css +2 -5
  4. package/dist/collection/components/uofg-footer/uofg-footer.css +39 -50
  5. package/dist/collection/components/uofg-footer/uofg-footer.js +19 -4
  6. package/dist/collection/components/uofg-header/uofg-header.css +55 -234
  7. package/dist/collection/components/uofg-header/uofg-header.js +25 -9
  8. package/dist/collection/components/uofg-menu/uofg-menu.js +1 -1
  9. package/dist/collection/components/uofg-modal/uofg-modal.css +45 -51
  10. package/dist/collection/components/uofg-modal/uofg-modal.js +91 -19
  11. package/dist/collection/utils/utils.js +9 -2
  12. package/dist/components/_commonjsHelpers.js +15 -0
  13. package/dist/components/font-awesome-icon.js +10 -0
  14. package/dist/components/index2.js +1 -81
  15. package/dist/components/uofg-alert.js +3 -2
  16. package/dist/components/uofg-back-to-top.js +3 -2
  17. package/dist/components/uofg-footer.js +569 -64
  18. package/dist/components/uofg-header.js +173 -60
  19. package/dist/components/uofg-menu2.js +1 -1
  20. package/dist/components/uofg-modal.js +64 -22
  21. package/dist/components/utils.js +6 -2
  22. package/dist/esm/uofg-alert_6.entry.js +820 -216
  23. package/dist/types/components/uofg-header/uofg-header.d.ts +11 -1
  24. package/dist/types/components/uofg-modal/uofg-modal.d.ts +12 -1
  25. package/dist/types/components.d.ts +12 -0
  26. package/dist/types/utils/utils.d.ts +3 -2
  27. package/dist/uofg-web-components/p-f37c9107.entry.js +1 -0
  28. package/dist/uofg-web-components/uofg-web-components.css +1 -1
  29. package/dist/uofg-web-components/uofg-web-components.esm.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/collection/components/uofg-footer/footer-links.js +0 -5
  32. package/dist/collection/components/uofg-footer/social-links.js +0 -5
  33. package/dist/collection/components/uofg-header/global-links.js +0 -2
  34. package/dist/collection/components/uofg-header/hello-you.js +0 -4
  35. package/dist/collection/components/uofg-header/page-specific.js +0 -15
  36. package/dist/collection/components/uofg-header/search.js +0 -4
  37. package/dist/collection/components/uofg-header/single-sign-on.js +0 -2
  38. package/dist/types/components/uofg-footer/footer-links.d.ts +0 -2
  39. package/dist/types/components/uofg-footer/social-links.d.ts +0 -2
  40. package/dist/types/components/uofg-header/global-links.d.ts +0 -2
  41. package/dist/types/components/uofg-header/hello-you.d.ts +0 -6
  42. package/dist/types/components/uofg-header/page-specific.d.ts +0 -17
  43. package/dist/types/components/uofg-header/search.d.ts +0 -2
  44. package/dist/types/components/uofg-header/single-sign-on.d.ts +0 -2
  45. package/dist/uofg-web-components/p-1976d7da.entry.js +0 -1
  46. /package/dist/collection/components/uofg-header/{logo-full-size.svg → logo-full.svg} +0 -0
  47. /package/dist/collection/components/uofg-header/{logo-reduced-size.svg → logo-reduced.svg} +0 -0
@@ -4,59 +4,45 @@
4
4
  }
5
5
 
6
6
  * {
7
- -webkit-box-sizing: border-box;
8
- box-sizing: border-box;
7
+ box-sizing: border-box;
9
8
  }
10
9
 
11
10
  #uofg-alert {
12
- display: -webkit-box;
13
- display: -ms-flexbox;
14
11
  display: flex;
15
- -webkit-box-orient: vertical;
16
- -webkit-box-direction: normal;
17
- -ms-flex-direction: column;
18
- flex-direction: column;
12
+ flex-direction: column;
19
13
  font-size: 2rem;
20
14
  }
21
- #uofg-alert #uofg-alert-title {
22
- display: -webkit-box;
23
- display: -ms-flexbox;
15
+
16
+ #uofg-alert-title {
24
17
  display: flex;
25
- -webkit-box-align: center;
26
- -ms-flex-align: center;
27
- align-items: center;
18
+ align-items: center;
28
19
  font-size: 2.25rem;
29
20
  padding: 2rem;
30
21
  color: white;
31
22
  background-color: #c10631;
32
23
  }
33
- #uofg-alert #uofg-alert-title > svg {
24
+ #uofg-alert-title > svg {
34
25
  margin-right: 1rem;
35
26
  fill: currentColor;
36
27
  height: 1.5em;
37
28
  }
38
- #uofg-alert #uofg-alert-body {
39
- display: -webkit-box;
40
- display: -ms-flexbox;
29
+
30
+ #uofg-alert-body {
41
31
  display: flex;
42
- -webkit-box-orient: vertical;
43
- -webkit-box-direction: normal;
44
- -ms-flex-direction: column;
45
- flex-direction: column;
32
+ flex-direction: column;
46
33
  padding: 1.5rem 2rem;
47
34
  background-color: white;
48
35
  }
49
- #uofg-alert #uofg-alert-body slot[name=subtitle]::slotted(*) {
36
+ #uofg-alert-body slot[name=subtitle]::slotted(*) {
50
37
  font-size: 2rem;
51
38
  margin-bottom: 2rem;
52
39
  font-weight: bold;
53
40
  }
54
- #uofg-alert #uofg-alert-body slot[name=message]::slotted(*) {
41
+ #uofg-alert-body slot[name=message]::slotted(*) {
55
42
  font-size: 1.6rem;
56
43
  }
57
- #uofg-alert #uofg-alert-footer {
58
- display: -webkit-box;
59
- display: -ms-flexbox;
44
+
45
+ #uofg-alert-footer {
60
46
  display: flex;
61
47
  padding: 1rem 2rem;
62
48
  background-color: #dddddd;
@@ -18,11 +18,8 @@
18
18
  cursor: pointer;
19
19
  background-color: black;
20
20
  color: white;
21
- -webkit-transition-duration: 0.3s;
22
- transition-duration: 0.3s;
23
- -webkit-transition-timing-function: ease-in-out;
24
- transition-timing-function: ease-in-out;
25
- -webkit-transition-property: opacity, visibility, background-color;
21
+ transition-duration: 0.3s;
22
+ transition-timing-function: ease-in-out;
26
23
  transition-property: opacity, visibility, background-color;
27
24
  opacity: 0;
28
25
  visibility: hidden;
@@ -5,38 +5,47 @@
5
5
  font-family: sans-serif;
6
6
  }
7
7
 
8
- * {
9
- -webkit-box-sizing: border-box;
10
- box-sizing: border-box;
11
- }
12
-
13
8
  :focus-visible {
14
9
  outline: 2px solid #ffc72a;
15
10
  outline-offset: 0.5rem;
16
11
  }
17
12
 
13
+ * {
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ button {
18
+ border: none;
19
+ background-color: transparent;
20
+ cursor: pointer;
21
+ }
22
+
23
+ a {
24
+ color: inherit;
25
+ text-decoration: none;
26
+ }
27
+
28
+ ul {
29
+ list-style: none;
30
+ padding: 0;
31
+ margin: unset;
32
+ }
33
+ ul > li {
34
+ display: contents;
35
+ }
36
+
18
37
  a {
19
- display: -webkit-box;
20
- display: -ms-flexbox;
21
38
  display: flex;
22
- -webkit-box-align: center;
23
- -ms-flex-align: center;
24
- align-items: center;
39
+ align-items: center;
25
40
  gap: 0.5rem;
26
41
  border-bottom: 2px dotted transparent;
27
- -webkit-transition-property: border-color;
28
- transition-property: border-color;
29
- width: -webkit-fit-content;
30
- width: -moz-fit-content;
31
42
  width: fit-content;
32
43
  color: inherit;
33
- -webkit-transition-duration: 200ms;
34
- transition-duration: 200ms;
35
- -webkit-transition-timing-function: ease-in-out;
36
- transition-timing-function: ease-in-out;
37
- text-decoration: none;
38
44
  white-space: nowrap;
39
45
  padding-bottom: 0.2rem;
46
+ transition-property: border-color;
47
+ transition-duration: 0.2s;
48
+ transition-timing-function: ease-in-out;
40
49
  }
41
50
  a:hover, a:focus {
42
51
  border-color: currentColor;
@@ -47,25 +56,14 @@ svg {
47
56
  height: 1.6rem;
48
57
  }
49
58
 
50
- ul {
51
- list-style: none;
52
- padding: 0;
53
- margin: unset;
54
- }
55
- ul li {
59
+ li {
56
60
  display: contents;
57
61
  }
58
62
 
59
63
  #uofg-footer {
60
- display: -webkit-box;
61
- display: -ms-flexbox;
62
64
  display: flex;
63
- -webkit-box-pack: center;
64
- -ms-flex-pack: center;
65
- justify-content: center;
66
- -webkit-box-align: center;
67
- -ms-flex-align: center;
68
- align-items: center;
65
+ justify-content: center;
66
+ align-items: center;
69
67
  background-color: #000;
70
68
  color: #fff;
71
69
  padding: 2rem;
@@ -76,7 +74,7 @@ ul li {
76
74
  grid-template-columns: 1fr;
77
75
  gap: 2rem;
78
76
  width: 100%;
79
- max-width: 1370px;
77
+ max-width: 1500px;
80
78
  }
81
79
  @media (min-width: 570px) {
82
80
  #uofg-footer-content {
@@ -92,22 +90,16 @@ ul li {
92
90
  }
93
91
 
94
92
  .uofg-footer-content-separator {
95
- display: -webkit-box;
96
- display: -ms-flexbox;
97
93
  display: flex;
98
- -webkit-box-orient: vertical;
99
- -webkit-box-direction: normal;
100
- -ms-flex-direction: column;
101
- flex-direction: column;
94
+ flex-direction: column;
102
95
  gap: 0.75rem;
103
- -webkit-box-pack: justify;
104
- -ms-flex-pack: justify;
105
- justify-content: space-between;
96
+ justify-content: space-between;
106
97
  }
107
98
 
108
99
  #uofg-footer-improve-life {
109
- -webkit-transition-property: opacity;
110
100
  transition-property: opacity;
101
+ transition-duration: 0.2s;
102
+ transition-timing-function: ease-in-out;
111
103
  border: 0;
112
104
  }
113
105
  #uofg-footer-improve-life > svg {
@@ -118,20 +110,17 @@ ul li {
118
110
  }
119
111
 
120
112
  #uofg-footer-social-links {
121
- display: -webkit-box;
122
- display: -ms-flexbox;
123
113
  display: flex;
124
- -webkit-box-align: center;
125
- -ms-flex-align: center;
126
- align-items: center;
114
+ align-items: center;
127
115
  list-style: none;
128
116
  padding: 0;
129
117
  margin-left: 0;
130
118
  gap: 0.75rem;
131
119
  }
132
120
  #uofg-footer-social-links a {
133
- -webkit-transition-property: color;
134
121
  transition-property: color;
122
+ transition-duration: 0.2s;
123
+ transition-timing-function: ease-in-out;
135
124
  border: 0;
136
125
  }
137
126
  #uofg-footer-social-links a:hover, #uofg-footer-social-links a:focus {
@@ -1,12 +1,27 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { FontAwesomeIcon } from "../../utils/font-awesome-icon";
3
- import { SocialLinks } from "./social-links";
4
- import { FooterLinks } from "./footer-links";
5
- import { faPhoneFlip } from "@fortawesome/free-solid-svg-icons";
6
3
  import improveLifeLogo from "./improve-life.svg";
4
+ import { faBriefcase } from "@fortawesome/free-solid-svg-icons/faBriefcase";
5
+ import { faCalendar } from "@fortawesome/free-solid-svg-icons/faCalendar";
6
+ import { faCircleCheck } from "@fortawesome/free-solid-svg-icons/faCircleCheck";
7
+ import { faHandHoldingHeart } from "@fortawesome/free-solid-svg-icons/faHandHoldingHeart";
8
+ import { faKey } from "@fortawesome/free-solid-svg-icons/faKey";
9
+ import { faList } from "@fortawesome/free-solid-svg-icons/faList";
10
+ import { faSitemap } from "@fortawesome/free-solid-svg-icons/faSitemap";
11
+ import { faTree } from "@fortawesome/free-solid-svg-icons/faTree";
12
+ import { faUniversalAccess } from "@fortawesome/free-solid-svg-icons/faUniversalAccess";
13
+ import { faPhoneFlip } from "@fortawesome/free-solid-svg-icons/faPhoneFlip";
14
+ import { faFacebookSquare } from "@fortawesome/free-brands-svg-icons/faFacebookSquare";
15
+ import { faInstagram } from "@fortawesome/free-brands-svg-icons/faInstagram";
16
+ import { faLinkedin } from "@fortawesome/free-brands-svg-icons/faLinkedin";
17
+ import { faTiktok } from "@fortawesome/free-brands-svg-icons/faTiktok";
18
+ import { faTwitterSquare } from "@fortawesome/free-brands-svg-icons/faTwitterSquare";
19
+ import { faYoutube } from "@fortawesome/free-brands-svg-icons/faYoutube";
20
+ const SocialLink = props => (h("li", null, h("a", { href: props.url, "aria-label": props.name }, h(FontAwesomeIcon, { icon: props.icon }))));
21
+ const FooterLink = props => (h("li", null, h("a", { href: props.url, title: props.title }, h(FontAwesomeIcon, { icon: props.icon }), h("span", null, props.text))));
7
22
  export class UofgFooter {
8
23
  render() {
9
- return (h("footer", { id: "uofg-footer" }, h("div", { id: "uofg-footer-content" }, h("div", { id: "uofg-footer-social", class: "uofg-footer-content-separator" }, h("a", { id: "uofg-footer-improve-life", href: "//www.uoguelph.ca/improve-life", "aria-label": "Improve Life", innerHTML: improveLifeLogo }), h(SocialLinks, null), h("a", { href: "https://www.uoguelph.ca/web/socialmedia/" }, "Social Media Directory"), h("a", { href: "//www.uoguelph.ca/web/" }, "\u00A9 ", new Date().getFullYear(), " University of Guelph")), h(FooterLinks, null), h("address", { id: "uofg-footer-address", class: "uofg-footer-content-separator" }, h("strong", null, "University of Guelph"), h("span", null, "50 Stone Road East,"), h("span", null, "Guelph, Ontario, Canada"), h("span", null, "N1G 2W1"), h("a", { href: "tel:1-519-824-4120" }, h(FontAwesomeIcon, { icon: faPhoneFlip }), h("span", null, "519-824-4120"))))));
24
+ return (h("footer", { id: "uofg-footer" }, h("div", { id: "uofg-footer-content" }, h("div", { id: "uofg-footer-social", class: "uofg-footer-content-separator" }, h("a", { id: "uofg-footer-improve-life", href: "//www.uoguelph.ca/improve-life", "aria-label": "Improve Life", innerHTML: improveLifeLogo }), h("ul", { id: "uofg-footer-social-links" }, h(SocialLink, { name: "Twitter", url: "https://twitter.com/uofg", icon: faTwitterSquare }), h(SocialLink, { name: "Facebook", url: "https://www.facebook.com/uofguelph", icon: faFacebookSquare }), h(SocialLink, { name: "Instagram", url: "https://www.instagram.com/uofguelph/", icon: faInstagram }), h(SocialLink, { name: "Youtube", url: "https://www.youtube.com/user/uofguelph", icon: faYoutube }), h(SocialLink, { name: "LinkedIn", url: "https://www.linkedin.com/school/university-of-guelph/", icon: faLinkedin }), h(SocialLink, { name: "TikTok", url: "https://www.tiktok.com/@uofguelph", icon: faTiktok })), h("a", { href: "https://www.uoguelph.ca/web/socialmedia/" }, "Social Media Directory"), h("a", { href: "//www.uoguelph.ca/web/" }, "\u00A9 ", new Date().getFullYear(), " University of Guelph")), h("ul", { id: "uofg-footer-links", class: "uofg-footer-content-separator" }, h(FooterLink, { text: "Accessibility", url: "https://www.uoguelph.ca/diversity-human-rights/accessibility-u-g", icon: faUniversalAccess }), h(FooterLink, { text: "Privacy", url: "https://www.uoguelph.ca/web/privacy/", icon: faKey }), h(FooterLink, { text: "Site Map", url: "https://www.uoguelph.ca/site-map/", icon: faSitemap }), h(FooterLink, { text: "Status Page", url: "https://uoguelph.statuspage.io/", icon: faCircleCheck }), h(FooterLink, { text: "Land Acknowledgement", url: "https://www.uoguelph.ca/land-acknowledgement/", icon: faTree, title: "The University of Guelph resides on the treaty lands and territory of the Mississaugas of the Credit. We recognize that today this gathering place is home to many First Nations, Inuit and M\u00E9tis peoples and acknowledging them reminds us of our collective responsibility to the land where we learn and work." }), h(FooterLink, { text: "Careers", url: "https://www.uoguelph.ca/hr/careers-guelph/current-opportunities", icon: faBriefcase }), h(FooterLink, { text: "Undergraduate Calendar", url: "https://www.uoguelph.ca/registrar/calendars/undergraduate/current/", icon: faCalendar }), h(FooterLink, { text: "Graduate Calendar", url: "https://www.uoguelph.ca/registrar/calendars/graduate/current/", icon: faCalendar }), h(FooterLink, { text: "Program Plans", url: "https://admission.uoguelph.ca/programs", icon: faList }), h(FooterLink, { text: "Give to U of G", url: "https://www.alumni.uoguelph.ca/give-to-guelph/how-to-give", icon: faHandHoldingHeart })), h("address", { id: "uofg-footer-address", class: "uofg-footer-content-separator" }, h("strong", null, "University of Guelph"), h("span", null, "50 Stone Road East,"), h("span", null, "Guelph, Ontario, Canada"), h("span", null, "N1G 2W1"), h("a", { href: "tel:1-519-824-4120" }, h(FontAwesomeIcon, { icon: faPhoneFlip }), h("span", null, "519-824-4120"))))));
10
25
  }
11
26
  static get is() { return "uofg-footer"; }
12
27
  static get encapsulation() { return "shadow"; }