@penn-libraries/web 0.0.6 → 0.0.8
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/cjs/{index-8aad290c.js → index-4f0a0453.js} +68 -24
- package/dist/cjs/index-4f0a0453.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pennlibs-banner_3.cjs.entry.js +60 -50
- package/dist/cjs/pennlibs-banner_3.cjs.entry.js.map +1 -1
- package/dist/cjs/web.cjs.js +3 -3
- package/dist/cjs/web.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/pennlibs-banner/pennlibs-banner.js +17 -17
- package/dist/collection/components/pennlibs-banner/pennlibs-banner.js.map +1 -1
- package/dist/collection/components/pennlibs-footer/pennlibs-footer.js +48 -48
- package/dist/collection/components/pennlibs-footer/pennlibs-footer.js.map +1 -1
- package/dist/collection/components/pennlibs-header/pennlibs-header.css +18 -6
- package/dist/collection/components/pennlibs-header/pennlibs-header.js +117 -107
- package/dist/collection/components/pennlibs-header/pennlibs-header.js.map +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/collection/utils/utils.spec.js +12 -12
- package/dist/collection/utils/utils.spec.js.map +1 -1
- package/dist/esm/{index-d58d1ee0.js → index-51b7707e.js} +68 -24
- package/dist/esm/index-51b7707e.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pennlibs-banner_3.entry.js +60 -50
- package/dist/esm/pennlibs-banner_3.entry.js.map +1 -1
- package/dist/esm/web.js +4 -4
- package/dist/esm/web.js.map +1 -1
- package/dist/types/components/pennlibs-banner/pennlibs-banner.d.ts +1 -1
- package/dist/types/components/pennlibs-footer/pennlibs-footer.d.ts +10 -10
- package/dist/types/components/pennlibs-header/pennlibs-header.d.ts +21 -20
- package/dist/types/stencil-public-runtime.d.ts +8 -0
- package/dist/web/p-41432e5b.entry.js +82 -0
- package/dist/web/p-41432e5b.entry.js.map +1 -0
- package/dist/web/{p-d9c828d7.js → p-dd3ab4f7.js} +68 -24
- package/dist/web/p-dd3ab4f7.js.map +1 -0
- package/dist/web/web.css +50 -2
- package/dist/web/web.esm.js +4 -4
- package/dist/web/web.esm.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +6 -9
- package/dist/cjs/index-8aad290c.js.map +0 -1
- package/dist/esm/index-d58d1ee0.js.map +0 -1
- package/dist/web/p-d85c4348.entry.js +0 -72
- package/dist/web/p-d85c4348.entry.js.map +0 -1
- package/dist/web/p-d9c828d7.js.map +0 -1
package/dist/web/web.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
--color-blue-2: #ebf2f9;
|
|
25
25
|
--color-blue-3: #d6e4f2;
|
|
26
26
|
--color-blue-4: #85afd8;
|
|
27
|
-
--color-blue-5: #
|
|
27
|
+
--color-blue-5: #3172b3;
|
|
28
28
|
--color-blue-6: #275b8f;
|
|
29
29
|
--color-blue-7: #1a3d5f;
|
|
30
30
|
--color-blue-8: #0d1e30;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
--color-orange-6: #7d542b;
|
|
39
39
|
--color-orange-7: #583a1e;
|
|
40
40
|
--color-orange-8: #3f2a15;
|
|
41
|
-
--color-orange-9: #
|
|
41
|
+
--color-orange-9: #191108;
|
|
42
42
|
|
|
43
43
|
--color-green-1: #f8fbf0;
|
|
44
44
|
--color-green-2: #f3f8e5;
|
|
@@ -78,6 +78,54 @@
|
|
|
78
78
|
--font-serif: 'Cormorant Garamond', serif;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
html {
|
|
82
|
+
/* Foundation Colors */
|
|
83
|
+
--color-default: var(--color-gray-7);
|
|
84
|
+
--color-muted: var(--color-gray-5);
|
|
85
|
+
--color-on-emphasis: var(--color-white);
|
|
86
|
+
|
|
87
|
+
/* Role Colors */
|
|
88
|
+
--color-accent: var(--color-blue-5);
|
|
89
|
+
--color-success: var(--color-green-5);
|
|
90
|
+
--color-attention: var(--color-orange-5);
|
|
91
|
+
--color-danger: var(--color-orange-5);
|
|
92
|
+
--color-done: var(--color-purple-5);
|
|
93
|
+
|
|
94
|
+
/* Role Colors */
|
|
95
|
+
--color-accent-light: var(--color-blue-2);
|
|
96
|
+
--color-success-light: var(--color-green-2);
|
|
97
|
+
--color-attention-light: var(--color-orange-2);
|
|
98
|
+
--color-danger-light: var(--color-orange-2);
|
|
99
|
+
--color-done-light: var(--color-purple-2);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
body {
|
|
103
|
+
--color-fg-default: var(--color-default);
|
|
104
|
+
--color-fg-muted: var(--color-muted);
|
|
105
|
+
--color-fg-on-emphasis: var(--color-on-emphasis);
|
|
106
|
+
|
|
107
|
+
--color-fg-accent: var(--color-accent);
|
|
108
|
+
--color-fg-success: var(--color-success);
|
|
109
|
+
--color-fg-attention: var(--color-attention);
|
|
110
|
+
--color-fg-danger: var(--color-danger);
|
|
111
|
+
--color-fg-done: var(--color-done);
|
|
112
|
+
|
|
113
|
+
--color-bg-default: var(--color-on-emphasis); /* What is a good role name here? */
|
|
114
|
+
--color-bg-subtle: var(--color-subtle);
|
|
115
|
+
|
|
116
|
+
--color-bg-accent: var(--color-accent-light);
|
|
117
|
+
--color-bg-success: var(--color-success-light);
|
|
118
|
+
--color-bg-attention: var(--color-attention-light);
|
|
119
|
+
--color-bg-danger: var(--color-danger-light);
|
|
120
|
+
--color-bg-done: var(--color-done-light);
|
|
121
|
+
|
|
122
|
+
--color-bg-accent-emphasis: var(--color-accent);
|
|
123
|
+
--color-bg-success-emphasis: var(--color-success);
|
|
124
|
+
--color-bg-attention-emphasis: var(--color-attention);
|
|
125
|
+
--color-bg-danger-emphasis: var(--color-danger);
|
|
126
|
+
--color-bg-done-emphasis: var(--color-done);
|
|
127
|
+
}
|
|
128
|
+
|
|
81
129
|
pennlibs-header:not(.hydrated) {
|
|
82
130
|
min-height: 110.84px;
|
|
83
131
|
}
|
package/dist/web/web.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './p-
|
|
2
|
-
export { s as setNonce } from './p-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './p-dd3ab4f7.js';
|
|
2
|
+
export { s as setNonce } from './p-dd3ab4f7.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -14,7 +14,7 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["p-
|
|
17
|
+
return bootstrapLazy([["p-41432e5b",[[1,"pennlibs-header",{"serviceName":[1,"service-name"],"serviceLede":[1,"service-lede"],"serviceHref":[1,"service-href"],"isMenuVisible":[32],"navigation":[32]},[[2,"click","handleToggleMenu"]]],[1,"pennlibs-footer",{"navigation":[16]}],[1,"pennlibs-banner"]]]], options);
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
//# sourceMappingURL=web.esm.js.map
|
package/dist/web/web.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"web.esm.js","mappings":";;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.
|
|
1
|
+
{"file":"web.esm.js","mappings":";;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@penn-libraries/web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "University of Pennsylvania Libraries web components and assets.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"generate": "stencil generate"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@stencil/core": "^4.
|
|
25
|
+
"@stencil/core": "^4.10.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/jest": "^27.5.2",
|
package/readme.md
CHANGED
|
@@ -7,21 +7,18 @@ Reusable web designs for University of Pennsylvania Libraries websites. This rep
|
|
|
7
7
|
You can start using the components immediately by adding these tags to the `<head>`:
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
|
-
<link href="https://cdn.jsdelivr.net/npm/@penn-libraries/web@
|
|
11
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@penn-libraries/web@
|
|
10
|
+
<link href="https://cdn.jsdelivr.net/npm/@penn-libraries/web@0/dist/web/web.css" rel="stylesheet"/>
|
|
11
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@penn-libraries/web@0/dist/web/web.esm.js"></script>
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Once included, components can be used in your markup like any other regular HTML elements:
|
|
15
15
|
|
|
16
16
|
**HTML**
|
|
17
17
|
```html
|
|
18
|
-
<pennlibs-header service-name="Schoenberg Database of Manuscripts" service-lede="Keeping observations of manuscripts"
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{ label: "Help", href: "/help" }
|
|
23
|
-
];
|
|
24
|
-
</script>
|
|
18
|
+
<pennlibs-header service-name="Schoenberg Database of Manuscripts" service-lede="Keeping observations of manuscripts">
|
|
19
|
+
<a href="/about">About</a>
|
|
20
|
+
<a href="/help">Help</a>
|
|
21
|
+
</pennlibs-header>
|
|
25
22
|
```
|
|
26
23
|
|
|
27
24
|
**Preview**
|