@penn-libraries/web 0.0.7 → 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 +2 -13
- 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;
|
|
@@ -83,15 +83,12 @@ html {
|
|
|
83
83
|
--color-default: var(--color-gray-7);
|
|
84
84
|
--color-muted: var(--color-gray-5);
|
|
85
85
|
--color-on-emphasis: var(--color-white);
|
|
86
|
-
--color-subtle: var(--color-gray-2);
|
|
87
86
|
|
|
88
87
|
/* Role Colors */
|
|
89
|
-
--color-accent: var(--color-blue-
|
|
88
|
+
--color-accent: var(--color-blue-5);
|
|
90
89
|
--color-success: var(--color-green-5);
|
|
91
90
|
--color-attention: var(--color-orange-5);
|
|
92
91
|
--color-danger: var(--color-orange-5);
|
|
93
|
-
--color-done: var(--color-green-5);
|
|
94
|
-
--color-closed: var(--color-orange-5);
|
|
95
92
|
--color-done: var(--color-purple-5);
|
|
96
93
|
|
|
97
94
|
/* Role Colors */
|
|
@@ -99,8 +96,6 @@ html {
|
|
|
99
96
|
--color-success-light: var(--color-green-2);
|
|
100
97
|
--color-attention-light: var(--color-orange-2);
|
|
101
98
|
--color-danger-light: var(--color-orange-2);
|
|
102
|
-
--color-done-light: var(--color-green-2);
|
|
103
|
-
--color-closed-light: var(--color-orange-2);
|
|
104
99
|
--color-done-light: var(--color-purple-2);
|
|
105
100
|
}
|
|
106
101
|
|
|
@@ -113,8 +108,6 @@ body {
|
|
|
113
108
|
--color-fg-success: var(--color-success);
|
|
114
109
|
--color-fg-attention: var(--color-attention);
|
|
115
110
|
--color-fg-danger: var(--color-danger);
|
|
116
|
-
--color-fg-done: var(--color-success);
|
|
117
|
-
--color-fg-closed: var(--color-danger);
|
|
118
111
|
--color-fg-done: var(--color-done);
|
|
119
112
|
|
|
120
113
|
--color-bg-default: var(--color-on-emphasis); /* What is a good role name here? */
|
|
@@ -124,16 +117,12 @@ body {
|
|
|
124
117
|
--color-bg-success: var(--color-success-light);
|
|
125
118
|
--color-bg-attention: var(--color-attention-light);
|
|
126
119
|
--color-bg-danger: var(--color-danger-light);
|
|
127
|
-
--color-bg-done: var(--color-success-light);
|
|
128
|
-
--color-bg-closed: var(--color-danger-light);
|
|
129
120
|
--color-bg-done: var(--color-done-light);
|
|
130
121
|
|
|
131
122
|
--color-bg-accent-emphasis: var(--color-accent);
|
|
132
123
|
--color-bg-success-emphasis: var(--color-success);
|
|
133
124
|
--color-bg-attention-emphasis: var(--color-attention);
|
|
134
125
|
--color-bg-danger-emphasis: var(--color-danger);
|
|
135
|
-
--color-bg-done-emphasis: var(--color-success);
|
|
136
|
-
--color-bg-closed-emphasis: var(--color-danger);
|
|
137
126
|
--color-bg-done-emphasis: var(--color-done);
|
|
138
127
|
}
|
|
139
128
|
|
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**
|