@penn-libraries/web 0.1.0-dev.1 → 0.1.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 (41) hide show
  1. package/dist/cjs/{index-4f0a0453.js → index-262bf56b.js} +4 -2
  2. package/dist/cjs/index-262bf56b.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/pennlibs-banner.cjs.entry.js +23 -0
  5. package/dist/cjs/pennlibs-banner.cjs.entry.js.map +1 -0
  6. package/dist/cjs/{pennlibs-banner_3.cjs.entry.js → pennlibs-colors_3.cjs.entry.js} +19 -23
  7. package/dist/cjs/pennlibs-colors_3.cjs.entry.js.map +1 -0
  8. package/dist/cjs/web.cjs.js +2 -2
  9. package/dist/collection/collection-manifest.json +1 -0
  10. package/dist/collection/components/pennlibs-banner/pennlibs-banner.css +2 -1
  11. package/dist/collection/components/pennlibs-colors/pennlibs-colors.css +51 -0
  12. package/dist/collection/components/pennlibs-colors/pennlibs-colors.js +46 -0
  13. package/dist/collection/components/pennlibs-colors/pennlibs-colors.js.map +1 -0
  14. package/dist/collection/components/pennlibs-footer/pennlibs-footer.css +2 -1
  15. package/dist/collection/components/pennlibs-header/pennlibs-header.css +5 -4
  16. package/dist/collection/components/pennlibs-header/pennlibs-header.js +11 -12
  17. package/dist/collection/components/pennlibs-header/pennlibs-header.js.map +1 -1
  18. package/dist/{web/p-dd3ab4f7.js → esm/index-96c7e79f.js} +4 -2
  19. package/dist/esm/index-96c7e79f.js.map +1 -0
  20. package/dist/esm/loader.js +3 -3
  21. package/dist/esm/pennlibs-banner.entry.js +19 -0
  22. package/dist/esm/pennlibs-banner.entry.js.map +1 -0
  23. package/dist/{web/p-455fb837.entry.js → esm/pennlibs-colors_3.entry.js} +19 -23
  24. package/dist/{cjs/pennlibs-banner_3.cjs.entry.js.map → esm/pennlibs-colors_3.entry.js.map} +1 -1
  25. package/dist/esm/web.js +3 -3
  26. package/dist/types/components/pennlibs-colors/pennlibs-colors.d.ts +13 -0
  27. package/dist/types/components/pennlibs-header/pennlibs-header.d.ts +0 -1
  28. package/dist/types/components.d.ts +33 -0
  29. package/dist/{esm/index-51b7707e.js → web/p-0e5df322.js} +4 -2
  30. package/dist/web/p-0e5df322.js.map +1 -0
  31. package/dist/{esm/pennlibs-banner_3.entry.js → web/p-a1b13893.entry.js} +19 -23
  32. package/dist/web/p-a1b13893.entry.js.map +1 -0
  33. package/dist/web/p-c3230a3f.entry.js +19 -0
  34. package/dist/web/p-c3230a3f.entry.js.map +1 -0
  35. package/dist/web/web.esm.js +3 -3
  36. package/package.json +1 -1
  37. package/dist/cjs/index-4f0a0453.js.map +0 -1
  38. package/dist/esm/index-51b7707e.js.map +0 -1
  39. package/dist/esm/pennlibs-banner_3.entry.js.map +0 -1
  40. package/dist/web/p-455fb837.entry.js.map +0 -1
  41. package/dist/web/p-dd3ab4f7.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ export declare class Footer {
2
+ /**
3
+ * The navigation sections.
4
+ */
5
+ navigation: Array<{
6
+ heading: string;
7
+ links: Array<{
8
+ label: string;
9
+ href: string;
10
+ }>;
11
+ }>;
12
+ render(): any;
13
+ }
@@ -16,7 +16,6 @@ export declare class Header {
16
16
  navigation: any[];
17
17
  componentWillLoad(): void;
18
18
  setNavigation(): void;
19
- renderNavigationElement(element: any): any;
20
19
  render(): any;
21
20
  renderMenuIcon(): any;
22
21
  handleToggleMenu(): void;
@@ -7,6 +7,18 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  export namespace Components {
9
9
  interface PennlibsBanner {
10
+ }
11
+ interface PennlibsColors {
12
+ /**
13
+ * The navigation sections.
14
+ */
15
+ "navigation": Array<{
16
+ heading: string;
17
+ links: Array<{
18
+ label: string;
19
+ href: string;
20
+ }>;
21
+ }>;
10
22
  }
11
23
  interface PennlibsFooter {
12
24
  /**
@@ -42,6 +54,12 @@ declare global {
42
54
  prototype: HTMLPennlibsBannerElement;
43
55
  new (): HTMLPennlibsBannerElement;
44
56
  };
57
+ interface HTMLPennlibsColorsElement extends Components.PennlibsColors, HTMLStencilElement {
58
+ }
59
+ var HTMLPennlibsColorsElement: {
60
+ prototype: HTMLPennlibsColorsElement;
61
+ new (): HTMLPennlibsColorsElement;
62
+ };
45
63
  interface HTMLPennlibsFooterElement extends Components.PennlibsFooter, HTMLStencilElement {
46
64
  }
47
65
  var HTMLPennlibsFooterElement: {
@@ -56,12 +74,25 @@ declare global {
56
74
  };
57
75
  interface HTMLElementTagNameMap {
58
76
  "pennlibs-banner": HTMLPennlibsBannerElement;
77
+ "pennlibs-colors": HTMLPennlibsColorsElement;
59
78
  "pennlibs-footer": HTMLPennlibsFooterElement;
60
79
  "pennlibs-header": HTMLPennlibsHeaderElement;
61
80
  }
62
81
  }
63
82
  declare namespace LocalJSX {
64
83
  interface PennlibsBanner {
84
+ }
85
+ interface PennlibsColors {
86
+ /**
87
+ * The navigation sections.
88
+ */
89
+ "navigation"?: Array<{
90
+ heading: string;
91
+ links: Array<{
92
+ label: string;
93
+ href: string;
94
+ }>;
95
+ }>;
65
96
  }
66
97
  interface PennlibsFooter {
67
98
  /**
@@ -91,6 +122,7 @@ declare namespace LocalJSX {
91
122
  }
92
123
  interface IntrinsicElements {
93
124
  "pennlibs-banner": PennlibsBanner;
125
+ "pennlibs-colors": PennlibsColors;
94
126
  "pennlibs-footer": PennlibsFooter;
95
127
  "pennlibs-header": PennlibsHeader;
96
128
  }
@@ -100,6 +132,7 @@ declare module "@stencil/core" {
100
132
  export namespace JSX {
101
133
  interface IntrinsicElements {
102
134
  "pennlibs-banner": LocalJSX.PennlibsBanner & JSXBase.HTMLAttributes<HTMLPennlibsBannerElement>;
135
+ "pennlibs-colors": LocalJSX.PennlibsColors & JSXBase.HTMLAttributes<HTMLPennlibsColorsElement>;
103
136
  "pennlibs-footer": LocalJSX.PennlibsFooter & JSXBase.HTMLAttributes<HTMLPennlibsFooterElement>;
104
137
  "pennlibs-header": LocalJSX.PennlibsHeader & JSXBase.HTMLAttributes<HTMLPennlibsHeaderElement>;
105
138
  }
@@ -812,7 +812,9 @@ const patch = (oldVNode, newVNode, isInitialRender = false) => {
812
812
  isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
813
813
  }
814
814
  {
815
- {
815
+ if (tag === 'slot')
816
+ ;
817
+ else {
816
818
  // either this is the first render of an element OR it's an update
817
819
  // AND we already know it's possible it could have changed
818
820
  // this updates the element's css classes, attrs, props, listeners, etc.
@@ -1744,4 +1746,4 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1744
1746
 
1745
1747
  export { getElement as a, bootstrapLazy as b, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1746
1748
 
1747
- //# sourceMappingURL=index-51b7707e.js.map
1749
+ //# sourceMappingURL=p-0e5df322.js.map