kk-web-components 1.0.1 → 1.0.3
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/package.json +1 -1
- package/src/index.js +2 -3
- package/src/ui-icon.js +3 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import UiIcon from "./ui-icon.js";
|
|
2
|
-
import OtherComponent from "./other-component.js";
|
|
3
2
|
|
|
4
|
-
export { UiIcon
|
|
3
|
+
export { UiIcon };
|
|
5
4
|
|
|
6
5
|
export function registerComponents() {
|
|
7
6
|
customElements.define("ui-icon", UiIcon);
|
|
8
|
-
customElements.define("other-component"
|
|
7
|
+
customElements.define("other-component");
|
|
9
8
|
}
|
package/src/ui-icon.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Define a shared stylesheet using Constructable Stylesheets
|
|
2
2
|
const sharedStyles = new CSSStyleSheet();
|
|
3
|
+
|
|
3
4
|
sharedStyles.replaceSync(`
|
|
4
5
|
:host {
|
|
5
6
|
flex-shrink: 0;
|
|
@@ -109,3 +110,5 @@ class UiIcon extends HTMLElement {
|
|
|
109
110
|
|
|
110
111
|
// Register the custom element
|
|
111
112
|
customElements.define("ui-icon", UiIcon);
|
|
113
|
+
|
|
114
|
+
export default UiIcon;
|