@cscfi/csc-ui 1.3.6 → 1.3.7
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/c-autocomplete_34.cjs.entry.js +4 -1
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/collection/components/c-icon/c-icon.js +4 -1
- package/dist/collection/components/c-icon/c-icon.js.map +1 -1
- package/dist/components/c-icon2.js +4 -1
- package/dist/components/c-icon2.js.map +1 -1
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/p-dd714111.entry.js +2 -0
- package/dist/csc-ui/p-dd714111.entry.js.map +1 -0
- package/dist/esm/c-autocomplete_34.entry.js +4 -1
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/dist/types/components/c-icon/c-icon.d.ts +2 -0
- package/package.json +1 -1
- package/dist/csc-ui/p-c62460b3.entry.js +0 -2
- package/dist/csc-ui/p-c62460b3.entry.js.map +0 -1
|
@@ -946,11 +946,14 @@ const CIcon = class {
|
|
|
946
946
|
this.size = 24;
|
|
947
947
|
this.color = 'currentColor';
|
|
948
948
|
}
|
|
949
|
+
componentDidLoad() {
|
|
950
|
+
this._pathElement.setAttribute('d', this.host.dataset.path);
|
|
951
|
+
}
|
|
949
952
|
render() {
|
|
950
953
|
return (h(Host, { style: {
|
|
951
954
|
'--_c-icon-size': `${this.size}px`,
|
|
952
955
|
'--_c-icon-default-color': this.color,
|
|
953
|
-
} }, h("svg", { viewBox: "0 0 24 24" }, h("path", {
|
|
956
|
+
}, "data-path": this.path }, h("svg", { viewBox: "0 0 24 24" }, h("path", { ref: (el) => (this._pathElement = el) }))));
|
|
954
957
|
}
|
|
955
958
|
get host() { return getElement(this); }
|
|
956
959
|
};
|