ziko 0.62.1 → 0.63.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.
- package/dist/ziko.cjs +1 -1
- package/dist/ziko.js +1 -1
- package/dist/ziko.min.js +1 -1
- package/dist/ziko.mjs +1 -1
- package/package.json +1 -1
- package/src/ui/utils/index.js +9 -0
package/dist/ziko.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
Project: ziko.js
|
|
4
4
|
Author: Zakaria Elalaoui
|
|
5
|
-
Date : Wed Feb 11 2026 13:
|
|
5
|
+
Date : Wed Feb 11 2026 13:55:49 GMT+0100 (UTC+01:00)
|
|
6
6
|
Git-Repo : https://github.com/zakarialaoui10/ziko.js
|
|
7
7
|
Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
|
|
8
8
|
Released under MIT License
|
package/dist/ziko.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
Project: ziko.js
|
|
4
4
|
Author: Zakaria Elalaoui
|
|
5
|
-
Date : Wed Feb 11 2026 13:
|
|
5
|
+
Date : Wed Feb 11 2026 13:55:49 GMT+0100 (UTC+01:00)
|
|
6
6
|
Git-Repo : https://github.com/zakarialaoui10/ziko.js
|
|
7
7
|
Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
|
|
8
8
|
Released under MIT License
|
package/dist/ziko.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Project: ziko.js
|
|
3
3
|
Author: Zakaria Elalaoui
|
|
4
|
-
Date : Wed Feb 11 2026 13:
|
|
4
|
+
Date : Wed Feb 11 2026 13:55:49 GMT+0100 (UTC+01:00)
|
|
5
5
|
Git-Repo : https://github.com/zakarialaoui10/ziko.js
|
|
6
6
|
Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
|
|
7
7
|
Released under MIT License
|
package/dist/ziko.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
Project: ziko.js
|
|
4
4
|
Author: Zakaria Elalaoui
|
|
5
|
-
Date : Wed Feb 11 2026 13:
|
|
5
|
+
Date : Wed Feb 11 2026 13:55:49 GMT+0100 (UTC+01:00)
|
|
6
6
|
Git-Repo : https://github.com/zakarialaoui10/ziko.js
|
|
7
7
|
Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
|
|
8
8
|
Released under MIT License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ziko",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "A versatile JavaScript library offering a rich set of Hyperscript Based UI components, advanced mathematical utilities, interactivity ,animations, client side routing and more ...",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"front-end",
|
package/src/ui/utils/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export const call_with_optional_props = (Component) => {
|
|
2
|
+
return (...args) => {
|
|
3
|
+
const first = args[0];
|
|
4
|
+
const isChild = first?.isUIElement() || isPrimitive(first) ;
|
|
5
|
+
return isChild
|
|
6
|
+
? new Component({}, ...args)
|
|
7
|
+
: new Component(first, ...args.slice(1))
|
|
8
|
+
};
|
|
9
|
+
};
|
|
1
10
|
export function add_vendor_prefix(property) {
|
|
2
11
|
const propertyUC = property.slice(0, 1).toUpperCase() + property.slice(1);
|
|
3
12
|
const vendors = ['Webkit', 'Moz', 'O', 'ms'];
|