@uoguelph/web-components 1.1.3 → 1.2.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 (82) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/{index-469a8261.js → index-06b58d35.js} +5 -5
  3. package/dist/cjs/{index-4e3091d0.js → index-cdb046b4.js} +134 -40
  4. package/dist/cjs/loader.cjs.js +5 -3
  5. package/dist/cjs/uofg-alert.cjs.entry.js +11 -10
  6. package/dist/cjs/uofg-back-to-top_5.cjs.entry.js +1374 -0
  7. package/dist/cjs/uofg-modal.cjs.entry.js +152 -142
  8. package/dist/cjs/uofg-web-components.cjs.js +6 -4
  9. package/dist/cjs/utils-3d4b7e2e.js +16 -0
  10. package/dist/collection/collection-manifest.json +2 -2
  11. package/dist/collection/components/uofg-alert/uofg-alert.css +1 -75
  12. package/dist/collection/components/uofg-alert/uofg-alert.js +15 -15
  13. package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.css +1 -40
  14. package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.js +66 -63
  15. package/dist/collection/components/uofg-card/uofg-card.css +1 -95
  16. package/dist/collection/components/uofg-card/uofg-card.js +42 -40
  17. package/dist/collection/components/uofg-footer/uofg-footer.css +1 -249
  18. package/dist/collection/components/uofg-footer/uofg-footer.js +132 -40
  19. package/dist/collection/components/uofg-header/uofg-header.css +1 -542
  20. package/dist/collection/components/uofg-header/uofg-header.js +238 -157
  21. package/dist/collection/components/uofg-menu/uofg-menu.js +414 -410
  22. package/dist/collection/components/uofg-modal/uofg-modal.css +1 -113
  23. package/dist/collection/components/uofg-modal/uofg-modal.js +393 -386
  24. package/dist/collection/utils/font-awesome-icon.js +4 -4
  25. package/dist/collection/utils/utils.js +5 -5
  26. package/dist/components/font-awesome-icon.js +4 -4
  27. package/dist/components/uofg-alert.d.ts +2 -2
  28. package/dist/components/uofg-alert.js +22 -21
  29. package/dist/components/uofg-back-to-top.d.ts +2 -2
  30. package/dist/components/uofg-back-to-top.js +38 -34
  31. package/dist/components/uofg-card.d.ts +2 -2
  32. package/dist/components/uofg-card.js +28 -25
  33. package/dist/components/uofg-footer.d.ts +2 -2
  34. package/dist/components/uofg-footer.js +243 -115
  35. package/dist/components/uofg-header.d.ts +2 -2
  36. package/dist/components/uofg-header.js +234 -143
  37. package/dist/components/uofg-menu.d.ts +2 -2
  38. package/dist/components/uofg-menu2.js +245 -239
  39. package/dist/components/uofg-modal.d.ts +2 -2
  40. package/dist/components/uofg-modal.js +176 -166
  41. package/dist/components/utils.js +4 -4
  42. package/dist/esm/app-globals-0f993ce5.js +3 -0
  43. package/dist/esm/{index-f644a780.js → index-0b0002d2.js} +134 -40
  44. package/dist/esm/{index-26c6582e.js → index-e685921a.js} +5 -5
  45. package/dist/esm/loader.js +6 -4
  46. package/dist/esm/uofg-alert.entry.js +11 -10
  47. package/dist/esm/uofg-back-to-top_5.entry.js +1366 -0
  48. package/dist/esm/uofg-modal.entry.js +152 -142
  49. package/dist/esm/uofg-web-components.js +7 -5
  50. package/dist/esm/utils-379bb71a.js +12 -0
  51. package/dist/types/components/uofg-alert/uofg-alert.d.ts +1 -1
  52. package/dist/types/components/uofg-back-to-top/uofg-back-to-top.d.ts +8 -8
  53. package/dist/types/components/uofg-card/uofg-card.d.ts +5 -5
  54. package/dist/types/components/uofg-footer/uofg-footer.d.ts +6 -6
  55. package/dist/types/components/uofg-header/uofg-header.d.ts +30 -29
  56. package/dist/types/components/uofg-menu/uofg-menu.d.ts +65 -65
  57. package/dist/types/components/uofg-modal/uofg-modal.d.ts +70 -70
  58. package/dist/types/components.d.ts +1 -1
  59. package/dist/types/stencil-public-runtime.d.ts +8 -0
  60. package/dist/types/utils/font-awesome-icon.d.ts +1 -1
  61. package/dist/uofg-web-components/{p-afff1fb0.js → p-6fa0f8f6.js} +1 -1
  62. package/dist/uofg-web-components/p-7569d8f2.entry.js +1 -0
  63. package/dist/uofg-web-components/p-bce5df9d.entry.js +1 -0
  64. package/dist/uofg-web-components/p-e1255160.js +1 -0
  65. package/dist/uofg-web-components/p-ee27db22.js +2 -0
  66. package/dist/uofg-web-components/p-fde6370b.entry.js +1 -0
  67. package/dist/uofg-web-components/uofg-web-components.css +1 -1
  68. package/dist/uofg-web-components/uofg-web-components.esm.js +1 -1
  69. package/package.json +10 -5
  70. package/dist/cjs/uofg-back-to-top_4.cjs.entry.js +0 -1139
  71. package/dist/cjs/uofg-card.cjs.entry.js +0 -21
  72. package/dist/cjs/utils-582c8cb9.js +0 -16
  73. package/dist/components/_commonjsHelpers.js +0 -15
  74. package/dist/esm/uofg-back-to-top_4.entry.js +0 -1132
  75. package/dist/esm/uofg-card.entry.js +0 -17
  76. package/dist/esm/utils-cfa32fa2.js +0 -12
  77. package/dist/uofg-web-components/p-579599fd.js +0 -2
  78. package/dist/uofg-web-components/p-5f29369c.entry.js +0 -1
  79. package/dist/uofg-web-components/p-b55cb256.entry.js +0 -1
  80. package/dist/uofg-web-components/p-b81838c7.entry.js +0 -1
  81. package/dist/uofg-web-components/p-f42ff310.entry.js +0 -1
  82. /package/dist/uofg-web-components/{p-826dc478.js → p-fec87f9d.js} +0 -0
@@ -2,161 +2,171 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4e3091d0.js');
6
- const index$1 = require('./index-469a8261.js');
7
- const utils = require('./utils-582c8cb9.js');
5
+ const index = require('./index-cdb046b4.js');
6
+ const index$1 = require('./index-06b58d35.js');
7
+ const utils = require('./utils-3d4b7e2e.js');
8
8
 
9
- const uofgModalCss = ":host{visibility:visible !important;position:relative !important;z-index:100000 !important}:focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}*{box-sizing:border-box}button{border:none;background-color:transparent;cursor:pointer}a{color:inherit;text-decoration:none}ul{list-style:none;padding:0;margin:unset}ul>li{display:contents}#uofg-modal{display:flex;position:fixed;top:0;left:0;z-index:10000;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.5);visibility:hidden;opacity:0;transition-property:opacity, visibility;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-modal.open{visibility:visible;opacity:1}#uofg-modal-dismiss{display:flex;justify-content:center;align-items:center;position:absolute;top:2rem;right:2rem;padding:0.5rem;height:3.5rem;width:3.5rem;font-size:2rem;line-height:1;color:var(--uofg-modal-dismiss-color, white);z-index:2}#uofg-modal-dismiss>svg{display:block;height:1em;fill:currentColor}#uofg-modal-content{position:absolute;width:fit-content;height:fit-content;width:-moz-max-content;height:-moz-max-content;padding:2rem;max-width:100%;max-height:100%;left:50%;transform:translate(-50%, -50px);z-index:1;overflow:auto;transition-property:transform;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-modal-content.centered{top:50%;transform:translate(-50%, calc(-50% - 50px))}#uofg-modal.open #uofg-modal-content{visibility:visible;opacity:1;transform:translate(-50%, 0)}#uofg-modal.open #uofg-modal-content.centered{transform:translate(-50%, -50%)}@media (prefers-reduced-motion: reduce){#uofg-modal-content{transition:none}}";
9
+ const uofgModalCss = ":host{visibility:visible !important;position:relative !important;z-index:100000 !important}@defaults border-spacing{--tw-border-spacing-x:0;--tw-border-spacing-y:0}@defaults transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}@defaults touch-action{}@defaults scroll-snap-type{--tw-scroll-snap-strictness:proximity}@defaults gradient-color-stops{}@defaults font-variant-numeric{}@defaults box-shadow{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}@defaults ring-width{--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}@defaults filter{}@defaults backdrop-filter{}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.tw-visible{visibility:visible!important}.tw-invisible{visibility:hidden!important}.tw-fixed{position:fixed!important}.tw-absolute{position:absolute!important}.tw-left-0{left:0!important}.tw-left-1\\/2{left:50%!important}.tw-right-8{right:2rem!important}.tw-top-0{top:0!important}.tw-top-8{top:2rem!important}.tw-z-\\[1000\\]{z-index:1000!important}.tw-z-\\[2\\]{z-index:2!important}.tw-flex{display:flex!important}.tw-h-12{height:3rem!important}.tw-h-fit{height:fit-content!important}.tw-h-screen{height:100vh!important}.tw-max-h-full{max-height:100%!important}.tw-w-12{width:3rem!important}.tw-w-fit{width:fit-content!important}.tw-w-screen{width:100vw!important}.tw-max-w-full{max-width:100%!important}.-tw-translate-x-1\\/2{--tw-translate-x:-50%!important}.-tw-translate-x-1\\/2,.tw-translate-y-\\[-50px\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.tw-translate-y-\\[-50px\\]{--tw-translate-y:-50px!important}.tw-translate-y-\\[calc\\(-50\\%_-_50px\\)\\]{--tw-translate-y:calc(-50% - 50px)!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.tw-items-center{align-items:center!important}.tw-justify-center{justify-content:center!important}.tw-overflow-auto{overflow:auto!important}.tw-border-0{border-width:0!important}.tw-bg-black{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important}.tw-bg-transparent{background-color:transparent!important}.tw-bg-opacity-50{--tw-bg-opacity:0.5!important}.tw-p-2{padding:.5rem!important}.tw-p-8{padding:2rem!important}.tw-text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.tw-text-\\[var\\(--uofg-modal-dismiss-color\\,white\\)\\]{color:var(--uofg-modal-dismiss-color,#fff)!important}.tw-opacity-0{opacity:0!important}.tw-opacity-100{opacity:1!important}.tw-transition-\\[opacity\\,visibility\\]{transition-duration:.15s!important;transition-property:opacity,visibility!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.tw-transition-transform{transition-duration:.15s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}@media (prefers-reduced-motion:reduce){.motion-reduce\\:tw-transition-none{transition-property:none!important}}.\\[\\&\\>svg\\]\\:tw-h-\\[1em\\]>svg{height:1em!important}.\\[\\&\\>svg\\]\\:tw-fill-current>svg{fill:currentColor!important}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}";
10
+ const UofgModalStyle0 = uofgModalCss;
10
11
 
11
12
  const UofgModal = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- this.opened = index.createEvent(this, "opened", 2);
15
- this.closed = index.createEvent(this, "closed", 2);
16
- this.inertElements = [];
17
- this.label = undefined;
18
- this.alertDialog = false;
19
- this.centered = false;
20
- this.staticBackdrop = false;
21
- this.autoOpen = false;
22
- this.isOpen = false;
23
- }
24
- connectedCallback() {
25
- // Bind event handlers so that 'this' is always the component instance.
26
- this.handleClick = this.handleClick.bind(this);
27
- this.handleKeyUp = this.handleKeyUp.bind(this);
28
- this.handleFocusOut = this.handleFocusOut.bind(this);
29
- if (this.autoOpen) {
30
- this.isOpen = true;
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.opened = index.createEvent(this, "opened", 2);
16
+ this.closed = index.createEvent(this, "closed", 2);
17
+ this.inertElements = [];
18
+ this.label = undefined;
19
+ this.alertDialog = false;
20
+ this.centered = false;
21
+ this.staticBackdrop = false;
22
+ this.autoOpen = false;
23
+ this.isOpen = false;
31
24
  }
32
- }
33
- disconnectedCallback() {
34
- // Just in case the modal is removed from the DOM before it is closed, make sure to remove the inert attribute from all elements that we marked as inert when the modal was opened.
35
- for (const element of this.inertElements) {
36
- element.removeAttribute('inert');
25
+ connectedCallback() {
26
+ // Bind event handlers so that 'this' is always the component instance.
27
+ this.handleClick = this.handleClick.bind(this);
28
+ this.handleKeyUp = this.handleKeyUp.bind(this);
29
+ this.handleFocusOut = this.handleFocusOut.bind(this);
30
+ if (this.autoOpen) {
31
+ this.isOpen = true;
32
+ }
37
33
  }
38
- }
39
- handleClick(e) {
40
- if (!this.staticBackdrop && e.target === e.currentTarget) {
41
- this.isOpen = false;
34
+ disconnectedCallback() {
35
+ // Just in case the modal is removed from the DOM before it is closed, make sure to remove the inert attribute from all elements that we marked as inert when the modal was opened.
36
+ for (const element of this.inertElements) {
37
+ element.removeAttribute('inert');
38
+ }
42
39
  }
43
- }
44
- handleKeyUp(e) {
45
- if (e.key === 'Escape') {
46
- this.isOpen = false;
40
+ handleClick(e) {
41
+ if (!this.staticBackdrop && e.target === e.currentTarget) {
42
+ this.isOpen = false;
43
+ }
47
44
  }
48
- }
49
- handleFocusOut(e) {
50
- var _a;
51
- if (!this.isOpen)
52
- return; // Don't do anything if the modal is closed.
53
- const relatedTarget = e.relatedTarget;
54
- // If the focus is moving outside of the modal
55
- if (!this.container.contains(relatedTarget) && !this.el.contains(relatedTarget)) {
56
- e.preventDefault();
57
- // If the focus is moving away from the dismiss button, focus the last focusable element in the modal.
58
- if (e.target === this.dismissButton) {
59
- const focusableElements = utils.getAllFocusableElements(this.el);
60
- (_a = focusableElements[focusableElements.length - 1]) === null || _a === void 0 ? void 0 : _a.focus();
61
- }
62
- else {
63
- // Otherwise, focus the dismiss button.
64
- this.dismissButton.focus();
65
- }
45
+ handleKeyUp(e) {
46
+ if (e.key === 'Escape') {
47
+ this.isOpen = false;
48
+ }
49
+ }
50
+ handleFocusOut(e) {
51
+ var _a;
52
+ if (!this.isOpen)
53
+ return; // Don't do anything if the modal is closed.
54
+ const relatedTarget = e.relatedTarget;
55
+ // If the focus is moving outside the modal
56
+ if (!this.container.contains(relatedTarget) && !this.el.contains(relatedTarget)) {
57
+ e.preventDefault();
58
+ // If the focus is moving away from the dismiss button, focus the last focusable element in the modal.
59
+ if (e.target === this.dismissButton) {
60
+ const focusableElements = utils.getAllFocusableElements(this.el);
61
+ (_a = focusableElements[focusableElements.length - 1]) === null || _a === void 0 ? void 0 : _a.focus();
62
+ }
63
+ else {
64
+ // Otherwise, focus the dismiss button.
65
+ this.dismissButton.focus();
66
+ }
67
+ }
66
68
  }
67
- }
68
- handleIsOpenChange(newValue) {
69
- if (newValue === true) {
70
- window.requestAnimationFrame(() => {
71
- window.requestAnimationFrame(() => {
72
- window.requestAnimationFrame(() => {
73
- // Focus the container element when the modal is opened, so that the screen reader's will announce the modal when it opens.
74
- this.container.focus();
75
- });
76
- });
77
- });
78
- // Mark outer elements as inert when the modal is open.
79
- let current = this.el;
80
- // We want to mark all elements outside of the modal as inert, so we need to traverse up the DOM tree until we reach the body element.
81
- while (current !== null && current !== document.body) {
82
- const parent = current.parentElement;
83
- // If parent is null, then we may be inside a shadow root. If so, we get the host element and continue traversing up the DOM tree.
84
- if (parent === null) {
85
- const root = current.getRootNode();
86
- if (root instanceof ShadowRoot) {
87
- current = root.host;
88
- continue;
89
- }
69
+ handleIsOpenChange(newValue) {
70
+ if (newValue) {
71
+ window.requestAnimationFrame(() => {
72
+ window.requestAnimationFrame(() => {
73
+ window.requestAnimationFrame(() => {
74
+ // Focus the container element when the modal is opened, so that the screen reader's will announce the modal when it opens.
75
+ this.container.focus();
76
+ });
77
+ });
78
+ });
79
+ // Mark outer elements as inert when the modal is open.
80
+ let current = this.el;
81
+ // We want to mark all elements outside the modal as inert, so we need to traverse up the DOM tree until we reach the body element.
82
+ while (current !== null && current !== document.body) {
83
+ const parent = current.parentElement;
84
+ // If parent is null, then we may be inside a shadow root. If so, we get the host element and continue traversing up the DOM tree.
85
+ if (parent === null) {
86
+ const root = current.getRootNode();
87
+ if (root instanceof ShadowRoot) {
88
+ current = root.host;
89
+ continue;
90
+ }
91
+ }
92
+ if (parent !== null) {
93
+ for (const child of parent.children) {
94
+ if (child !== current && !child.inert) {
95
+ // Mark the element as inert and store it in an array so that we can remove the inert attribute when the modal closes.
96
+ child.inert = true;
97
+ this.inertElements.push(child);
98
+ }
99
+ }
100
+ }
101
+ current = parent;
102
+ this.opened.emit();
103
+ }
90
104
  }
91
- if (parent !== null) {
92
- for (const child of parent.children) {
93
- if (child !== current && !child.inert) {
94
- // Mark the element as inert and store it in an array so that we can remove the inert attribute when the modal closes.
95
- child.inert = true;
96
- this.inertElements.push(child);
105
+ else {
106
+ // Remove the inert attribute from all elements that we marked as inert when the modal was opened.
107
+ for (const element of this.inertElements) {
108
+ element.removeAttribute('inert');
97
109
  }
98
- }
110
+ // Clear the array of inert elements. This is important because we don't want to keep a reference to elements as they may be removed from the DOM and we could cause a memory leak.
111
+ this.inertElements = [];
112
+ this.closed.emit();
99
113
  }
100
- current = parent;
101
- this.opened.emit();
102
- }
114
+ // Prevent scrolling of the body when the modal is open.
115
+ document.body.style.overflow = newValue ? 'hidden' : '';
116
+ }
117
+ render() {
118
+ return (index.h("div", { key: 'c66f0986068658cc29b9c12715381a0fd40678c9', class: {
119
+ 'tw-visible tw-opacity-100': this.isOpen,
120
+ 'tw-invisible tw-opacity-0': !this.isOpen,
121
+ 'tw-fixed tw-left-0 tw-top-0 tw-z-[1000] tw-flex tw-h-screen tw-w-screen tw-bg-black tw-bg-opacity-50 tw-transition-[opacity,visibility]': true,
122
+ }, role: this.alertDialog ? 'alertdialog' : 'dialog', "aria-modal": this.isOpen ? 'true' : '', "aria-label": this.label, tabIndex: -1, onClick: this.handleClick, onKeyUp: this.handleKeyUp, onFocusout: this.handleFocusOut, ref: (el) => (this.container = el) }, index.h("div", { key: 'f6d05f9834e3d5398aa5cd0897605d5b16014c2e', part: "content", class: {
123
+ 'tw-visible tw-opacity-100': this.isOpen,
124
+ 'tw-translate-y-[calc(-50%_-_50px)]': !this.isOpen && this.centered,
125
+ 'tw-translate-y-[-50px]': (!this.isOpen && !this.centered) || (this.isOpen && this.centered),
126
+ 'tw-z-1 tw-absolute tw-left-1/2 tw-h-fit tw-max-h-full tw-w-fit tw-max-w-full -tw-translate-x-1/2 tw-overflow-auto tw-p-8 tw-transition-transform motion-reduce:tw-transition-none': true,
127
+ } }, index.h("button", { key: 'eecbcc13c724410cb085bec5e26f6a2a4c55c32a', class: "[&>svg]:h-[1em] tw-absolute tw-right-8 tw-top-8 tw-z-[2] tw-flex tw-h-12 tw-w-12 tw-items-center tw-justify-center tw-border-0 tw-bg-transparent tw-text-3xl tw-p-2 tw-text-[var(--uofg-modal-dismiss-color,white)] [&>svg]:tw-h-[1em] [&>svg]:tw-fill-current", part: "dismiss-button", "aria-label": "Close modal", ref: (el) => (this.dismissButton = el), onClick: () => (this.isOpen = false) }, index.h(index$1.FontAwesomeIcon, { key: '735ceec0b5bbace91a40db729d7b530767b8593a', icon: index$1.faTimes })), index.h("slot", { key: 'b3b156aa4d3859a1d827a9d826a8d91b8f379f18' }))));
128
+ }
129
+ /**
130
+ * Get the current state of the modal.
131
+ * @returns A promise which will resolve to true when the modal is open, or false when the modal is closed.
132
+ */
133
+ async getState() {
134
+ return this.isOpen;
135
+ }
136
+ /**
137
+ * Set the state of the modal.
138
+ * @param value The new state, set it to true to open the modal, or false to close the modal.
139
+ */
140
+ async setState(value) {
141
+ this.isOpen = value;
142
+ }
143
+ /**
144
+ * Toggle the state of the modal.
145
+ * @returns A promise which will resolve to true (if the modal opened) or false (if the modal closed).
146
+ */
147
+ async toggle() {
148
+ this.isOpen = !this.isOpen;
149
+ return this.isOpen;
150
+ }
151
+ /**
152
+ * Closes the modal.
153
+ * @returns empty Promise.
154
+ */
155
+ async close() {
156
+ this.isOpen = false;
103
157
  }
104
- else {
105
- // Remove the inert attribute from all elements that we marked as inert when the modal was opened.
106
- for (const element of this.inertElements) {
107
- element.removeAttribute('inert');
108
- }
109
- // Clear the array of inert elements. This is important because we don't want to keep a reference to elements as they may be removed from the DOM and we could cause a memory leak.
110
- this.inertElements = [];
111
- this.closed.emit();
158
+ /**
159
+ * Opens the modal.
160
+ * @returns empty Promise.
161
+ */
162
+ async open() {
163
+ this.isOpen = true;
112
164
  }
113
- // Prevent scrolling of the body when the modal is open.
114
- document.body.style.overflow = newValue ? 'hidden' : '';
115
- }
116
- render() {
117
- return (index.h("div", { id: "uofg-modal", class: { open: this.isOpen }, role: this.alertDialog ? 'alertdialog' : 'dialog', "aria-modal": this.isOpen ? 'true' : '', "aria-label": this.label, tabIndex: -1, onClick: this.handleClick, onKeyUp: this.handleKeyUp, onFocusout: this.handleFocusOut, ref: (el) => (this.container = el) }, index.h("div", { id: "uofg-modal-content", part: "content", class: { centered: this.centered } }, index.h("button", { id: "uofg-modal-dismiss", part: "dismiss-button", "aria-label": "Close modal", ref: (el) => (this.dismissButton = el), onClick: () => (this.isOpen = false) }, index.h(index$1.FontAwesomeIcon, { icon: index$1.faTimes })), index.h("slot", null))));
118
- }
119
- /**
120
- * Get the current state of the modal.
121
- * @returns A promise which will resolve to true when the modal is open, or false when the modal is closed.
122
- */
123
- async getState() {
124
- return this.isOpen;
125
- }
126
- /**
127
- * Set the state of the modal.
128
- * @param value The new state, set it to true to open the modal, or false to close the modal.
129
- */
130
- async setState(value) {
131
- this.isOpen = value;
132
- }
133
- /**
134
- * Toggle the state of the modal.
135
- * @returns A promise which will resolve to true (if the modal opened) or false (if the modal closed).
136
- */
137
- async toggle() {
138
- this.isOpen = !this.isOpen;
139
- return this.isOpen;
140
- }
141
- /**
142
- * Closes the modal.
143
- * @returns empty Promise.
144
- */
145
- async close() {
146
- this.isOpen = false;
147
- }
148
- /**
149
- * Opens the modal.
150
- * @returns empty Promise.
151
- */
152
- async open() {
153
- this.isOpen = true;
154
- }
155
- get el() { return index.getElement(this); }
156
- static get watchers() { return {
157
- "isOpen": ["handleIsOpenChange"]
158
- }; }
165
+ get el() { return index.getElement(this); }
166
+ static get watchers() { return {
167
+ "isOpen": ["handleIsOpenChange"]
168
+ }; }
159
169
  };
160
- UofgModal.style = uofgModalCss;
170
+ UofgModal.style = UofgModalStyle0;
161
171
 
162
172
  exports.uofg_modal = UofgModal;
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4e3091d0.js');
5
+ const index = require('./index-cdb046b4.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
6
7
 
7
8
  /*
8
- Stencil Client Patch Browser v4.6.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.12.4 | MIT Licensed | https://stenciljs.com
9
10
  */
10
11
  const patchBrowser = () => {
11
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('uofg-web-components.cjs.js', document.baseURI).href));
@@ -16,8 +17,9 @@ const patchBrowser = () => {
16
17
  return index.promiseResolve(opts);
17
18
  };
18
19
 
19
- patchBrowser().then(options => {
20
- return index.bootstrapLazy([["uofg-alert.cjs",[[1,"uofg-alert"]]],["uofg-card.cjs",[[1,"uofg-card",{"href":[1]}]]],["uofg-modal.cjs",[[1,"uofg-modal",{"label":[1],"alertDialog":[4,"alert-dialog"],"centered":[4],"staticBackdrop":[4,"static-backdrop"],"autoOpen":[4,"auto-open"],"isOpen":[32],"getState":[64],"setState":[64],"toggle":[64],"close":[64],"open":[64]},null,{"isOpen":["handleIsOpenChange"]}]]],["uofg-back-to-top_4.cjs",[[1,"uofg-header",{"pageTitle":[1,"page-title"],"pageUrl":[1,"page-url"],"isFullSize":[32],"pageSpecificContent":[32],"isSubContainerOverflowing":[32]},[[9,"resize","updateFullSize"]]],[1,"uofg-back-to-top",{"threshold":[2],"isVisible":[32]},[[9,"scroll","onScroll"]]],[1,"uofg-footer",{"extraLinks":[32]}],[0,"uofg-menu",{"autoCollapse":[4,"auto-collapse"],"isExpanded":[32],"getExpanded":[64],"setExpanded":[64],"toggle":[64],"collapse":[64],"expand":[64]},null,{"isExpanded":["handleIsExpandedChange"]}]]]], options);
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["uofg-alert.cjs",[[1,"uofg-alert"]]],["uofg-modal.cjs",[[1,"uofg-modal",{"label":[1],"alertDialog":[4,"alert-dialog"],"centered":[4],"staticBackdrop":[4,"static-backdrop"],"autoOpen":[4,"auto-open"],"isOpen":[32],"getState":[64],"setState":[64],"toggle":[64],"close":[64],"open":[64]},null,{"isOpen":["handleIsOpenChange"]}]]],["uofg-back-to-top_5.cjs",[[1,"uofg-header",{"pageTitle":[1,"page-title"],"pageUrl":[1,"page-url"],"isFullSize":[32],"pageSpecificContent":[32],"isSubContainerOverflowing":[32]},[[9,"resize","updateFullSize"]]],[1,"uofg-back-to-top",{"threshold":[2],"isVisible":[32]},[[9,"scroll","onScroll"]]],[1,"uofg-card",{"href":[1]}],[1,"uofg-footer",{"extraLinks":[32]}],[0,"uofg-menu",{"autoCollapse":[4,"auto-collapse"],"isExpanded":[32],"getExpanded":[64],"setExpanded":[64],"toggle":[64],"collapse":[64],"expand":[64]},null,{"isExpanded":["handleIsExpandedChange"]}]]]], options);
21
23
  });
22
24
 
23
25
  exports.setNonce = index.setNonce;
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ const WEB_ANIMATIONS_SUPPORTED = () => {
4
+ return typeof window !== 'undefined' && 'animate' in HTMLElement.prototype;
5
+ };
6
+ const PREFERS_REDUCED_MOTION = () => {
7
+ return typeof window !== 'undefined' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
8
+ };
9
+ const getAllFocusableElements = (container) => {
10
+ const query = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [contenteditable], audio[controls], video[controls], details, summary, [tabindex]:not([tabindex="-1"])';
11
+ return Array.from(container.querySelectorAll(query));
12
+ };
13
+
14
+ exports.PREFERS_REDUCED_MOTION = PREFERS_REDUCED_MOTION;
15
+ exports.WEB_ANIMATIONS_SUPPORTED = WEB_ANIMATIONS_SUPPORTED;
16
+ exports.getAllFocusableElements = getAllFocusableElements;
@@ -10,8 +10,8 @@
10
10
  ],
11
11
  "compiler": {
12
12
  "name": "@stencil/core",
13
- "version": "4.6.0",
14
- "typescriptVersion": "5.2.2"
13
+ "version": "4.12.4",
14
+ "typescriptVersion": "5.3.3"
15
15
  },
16
16
  "collections": [],
17
17
  "bundles": []
@@ -1,75 +1 @@
1
- * {
2
- box-sizing: border-box;
3
- }
4
-
5
- button {
6
- border: none;
7
- background-color: transparent;
8
- cursor: pointer;
9
- }
10
-
11
- a {
12
- color: inherit;
13
- text-decoration: none;
14
- }
15
-
16
- ul {
17
- list-style: none;
18
- padding: 0;
19
- margin: unset;
20
- }
21
- ul > li {
22
- display: contents;
23
- }
24
-
25
- :focus-visible {
26
- outline: 2px solid #ffc72a;
27
- outline-offset: 0.5rem;
28
- }
29
-
30
- :host {
31
- display: block;
32
- max-width: 100rem;
33
- }
34
-
35
- #uofg-alert {
36
- display: flex;
37
- flex-direction: column;
38
- font-size: 2rem;
39
- }
40
-
41
- #uofg-alert-title {
42
- display: flex;
43
- align-items: center;
44
- font-size: 2.25rem;
45
- padding: 2rem;
46
- color: white;
47
- background-color: #c20430;
48
- }
49
- #uofg-alert-title > svg {
50
- margin-right: 1rem;
51
- fill: currentColor;
52
- height: 1.5em;
53
- }
54
-
55
- #uofg-alert-body {
56
- display: flex;
57
- flex-direction: column;
58
- padding: 1.5rem 2rem;
59
- background-color: white;
60
- }
61
- #uofg-alert-body slot[name=subtitle]::slotted(*) {
62
- font-size: 2rem;
63
- margin-bottom: 2rem;
64
- font-weight: bold;
65
- }
66
- #uofg-alert-body slot[name=message]::slotted(*) {
67
- font-size: 1.6rem;
68
- }
69
-
70
- #uofg-alert-footer {
71
- display: flex;
72
- padding: 1rem 2rem;
73
- background-color: #dddddd;
74
- font-size: 1.4rem;
75
- }
1
+ :host { display: block; max-width: 100rem; } * { box-sizing: border-box; } a { text-decoration: none; color: inherit; } button { border: none; background: none; cursor: pointer; font-size: inherit; font-family: inherit; color: inherit; line-height: inherit; word-spacing: inherit; letter-spacing: inherit; } ul { list-style: none; padding: 0; margin: 0; }@defaults border-spacing { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0;}@defaults transform { --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1;}@defaults touch-action { --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ;}@defaults scroll-snap-type { --tw-scroll-snap-strictness: proximity;}@defaults gradient-color-stops { --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ;}@defaults font-variant-numeric { --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ;}@defaults box-shadow { --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000;}@defaults ring-width { --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000;}@defaults filter { --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ;}@defaults backdrop-filter { --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ;}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:;--tw-gradient-via-position:;--tw-gradient-to-position:;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:;--tw-gradient-via-position:;--tw-gradient-to-position:;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:}.tw-flex{display:flex!important}.tw-flex-col{flex-direction:column!important}.tw-items-center{align-items:center!important}.tw-bg-uofg-grey{--tw-bg-opacity:1!important;background-color:rgb(221 221 221/var(--tw-bg-opacity))!important}.tw-bg-uofg-red{--tw-bg-opacity:1!important;background-color:rgb(194 4 48/var(--tw-bg-opacity))!important}.tw-bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.tw-p-8{padding:2rem!important}.tw-px-8{padding-left:2rem!important;padding-right:2rem!important}.tw-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.tw-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.tw-text-2xl{font-size:1.5rem!important;line-height:2rem!important}.tw-text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.tw-text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.tw-text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.\[\&\>slot\[name\=\"message\"\]\:\:slotted\(\*\)\]\:tw-text-2xl>slot[name=message]::slotted(*){font-size:1.5rem!important;line-height:2rem!important}.\[\&\>slot\[name\=\"subtitle\"\]\:\:slotted\(\*\)\]\:tw-mb-8>slot[name=subtitle]::slotted(*){margin-bottom:2rem!important}.\[\&\>slot\[name\=\"subtitle\"\]\:\:slotted\(\*\)\]\:tw-text-4xl>slot[name=subtitle]::slotted(*){font-size:2.25rem!important;line-height:2.5rem!important}.\[\&\>slot\[name\=\"subtitle\"\]\:\:slotted\(\*\)\]\:tw-font-bold>slot[name=subtitle]::slotted(*){font-weight:700!important}.\[\&\>svg\]\:tw-mr-4>svg{margin-right:1rem!important}.\[\&\>svg\]\:tw-h-\[1\.5em\]>svg{height:1.5em!important}.\[\&\>svg\]\:tw-fill-current>svg{fill:currentColor!important}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:;--tw-gradient-via-position:;--tw-gradient-to-position:;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:;--tw-gradient-via-position:;--tw-gradient-to-position:;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:}
@@ -2,19 +2,19 @@ import { h } from "@stencil/core";
2
2
  import { FontAwesomeIcon } from "../../utils/font-awesome-icon";
3
3
  import { faCircleExclamation } from "@fortawesome/free-solid-svg-icons";
4
4
  export class UofgAlert {
5
- render() {
6
- return (h("div", { id: "uofg-alert" }, h("div", { id: "uofg-alert-title" }, h(FontAwesomeIcon, { icon: faCircleExclamation }), h("slot", { name: "title" })), h("div", { id: "uofg-alert-body" }, h("slot", { name: "subtitle" }), h("slot", { name: "message" })), h("div", { id: "uofg-alert-footer" }, h("slot", { name: "footer" }))));
7
- }
8
- static get is() { return "uofg-alert"; }
9
- static get encapsulation() { return "shadow"; }
10
- static get originalStyleUrls() {
11
- return {
12
- "$": ["uofg-alert.scss"]
13
- };
14
- }
15
- static get styleUrls() {
16
- return {
17
- "$": ["uofg-alert.css"]
18
- };
19
- }
5
+ render() {
6
+ return (h("div", { key: '43637578cd80a54999db4a08bf6a5fa09c76c402', class: "tw-flex tw-flex-col tw-text-3xl" }, h("div", { key: '22313ab033d01b2271fd7dfe7d7747b5fd59e776', class: "tw-flex tw-items-center tw-bg-uofg-red tw-p-8 tw-text-4xl tw-text-white [&>svg]:tw-mr-4 [&>svg]:tw-h-[1.5em] [&>svg]:tw-fill-current" }, h(FontAwesomeIcon, { key: 'a742d78bcb8a8215d55a6270eabba0a53b165f26', icon: faCircleExclamation }), h("slot", { key: '5afc5e3a18c0fb3ab5662af2fa912752fda379c8', name: "title" })), h("div", { key: 'd2ff3754074ce3b5e7e254cdf72711b1174222a7', class: 'tw-flex tw-flex-col tw-bg-white tw-px-8 tw-py-6 [&>slot[name="message"]::slotted(*)]:tw-text-2xl [&>slot[name="subtitle"]::slotted(*)]:tw-mb-8 [&>slot[name="subtitle"]::slotted(*)]:tw-text-4xl [&>slot[name="subtitle"]::slotted(*)]:tw-font-bold' }, h("slot", { key: '261b7f2434eecdc63cd0746bdb11539be6e3edf9', name: "subtitle" }), h("slot", { key: '438ef72be3746c53ee8f628e553163a7af93fe3e', name: "message" })), h("div", { key: '6b3a020c4a6d98e7f7fe90b922a0be997a6f341a', class: "tw-flex tw-bg-uofg-grey tw-py-4 tw-px-8 tw-text-2xl" }, h("slot", { key: '588ae6afce9d76c96768b807c3135cb1714f2889', name: "footer" }))));
7
+ }
8
+ static get is() { return "uofg-alert"; }
9
+ static get encapsulation() { return "shadow"; }
10
+ static get originalStyleUrls() {
11
+ return {
12
+ "$": ["uofg-alert.css"]
13
+ };
14
+ }
15
+ static get styleUrls() {
16
+ return {
17
+ "$": ["uofg-alert.css"]
18
+ };
19
+ }
20
20
  }
@@ -1,40 +1 @@
1
- :host {
2
- display: block;
3
- }
4
-
5
- :focus-visible {
6
- outline: 2px solid #ffc72a;
7
- outline-offset: 0.5rem;
8
- }
9
-
10
- #uofg-back-to-top {
11
- position: fixed;
12
- margin: 10px;
13
- height: 35px;
14
- width: 35px;
15
- right: 0;
16
- bottom: 0;
17
- z-index: 1000;
18
- cursor: pointer;
19
- background-color: black;
20
- color: white;
21
- transition-duration: 0.3s;
22
- transition-timing-function: ease-in-out;
23
- transition-property: opacity, visibility, background-color;
24
- opacity: 0;
25
- visibility: hidden;
26
- border-radius: 50%;
27
- border: 1px solid #fff;
28
- }
29
- #uofg-back-to-top:hover {
30
- background-color: #d50029;
31
- }
32
- #uofg-back-to-top > svg {
33
- width: 1em;
34
- height: 1em;
35
- fill: currentColor;
36
- }
37
- #uofg-back-to-top.visible {
38
- opacity: 1;
39
- visibility: visible;
40
- }
1
+ :host { display: block; }@defaults border-spacing { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0;}@defaults transform { --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1;}@defaults touch-action { --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ;}@defaults scroll-snap-type { --tw-scroll-snap-strictness: proximity;}@defaults gradient-color-stops { --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ;}@defaults font-variant-numeric { --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ;}@defaults box-shadow { --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000;}@defaults ring-width { --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000;}@defaults filter { --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ;}@defaults backdrop-filter { --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ;}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:;--tw-gradient-via-position:;--tw-gradient-to-position:;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:;--tw-gradient-via-position:;--tw-gradient-to-position:;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:}.tw-fixed{position:fixed!important}.tw-bottom-0{bottom:0!important}.tw-right-0{right:0!important}.tw-z-\[1000\]{z-index:1000!important}.tw-m-4{margin:1rem!important}.tw-flex{display:flex!important}.tw-h-\[3\.5rem\]{height:3.5rem!important}.tw-w-\[3\.5rem\]{width:3.5rem!important}.tw-cursor-pointer{cursor:pointer!important}.tw-items-center{align-items:center!important}.tw-justify-center{justify-content:center!important}.tw-rounded-\[50\%\]{border-radius:50%!important}.tw-border{border-width:1px!important}.tw-border-solid{border-style:solid!important}.tw-border-white{--tw-border-opacity:1!important;border-color:rgb(255 255 255/var(--tw-border-opacity))!important}.tw-bg-black{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important}.tw-fill-current{fill:currentColor!important}.tw-text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.tw-opacity-0{opacity:0!important}.tw-opacity-100{opacity:1!important}.tw-transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.hocus\:tw-bg-uofg-red:focus,.hocus\:tw-bg-uofg-red:hover{--tw-bg-opacity:1!important;background-color:rgb(194 4 48/var(--tw-bg-opacity))!important}.\[\&\>svg\]\:tw-h-\[1em\]>svg{height:1em!important}.\[\&\>svg\]\:tw-fill-current>svg{fill:currentColor!important}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:;--tw-gradient-via-position:;--tw-gradient-to-position:;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:;--tw-gradient-via-position:;--tw-gradient-to-position:;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:}