ziko 0.38.1 → 0.39.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziko",
3
- "version": "0.38.1",
3
+ "version": "0.39.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",
@@ -1,6 +1,6 @@
1
1
  import { __ZikoEvent__ } from "../__ZikoEvent__.js";
2
2
  import type { Callback, ClipboardEventKeys } from './__Shared__.js';
3
- import { ZikoUIElement } from "../../ui/index.js";
3
+ import { UIElement } from "../../ui/index.js";
4
4
 
5
5
  declare class ZikoEventClipboard extends __ZikoEvent__ {
6
6
  constructor(target: any, customizer?: Function);
@@ -12,7 +12,7 @@ declare class ZikoEventClipboard extends __ZikoEvent__ {
12
12
 
13
13
  }
14
14
 
15
- declare const bindClipboardEvent: (target: ZikoUIElement, customizer?: Function) => ZikoEventClipboard;
15
+ declare const bindClipboardEvent: (target: UIElement, customizer?: Function) => ZikoEventClipboard;
16
16
 
17
17
  export {
18
18
  ZikoEventClipboard,
@@ -1,6 +1,6 @@
1
1
  import { __ZikoEvent__ } from "../__ZikoEvent__.js";
2
2
  import type { Callback } from './__Shared__.js';
3
- import { ZikoUIElement } from "../../ui/index.js";
3
+ import { UIElement } from "../../ui/index.js";
4
4
 
5
5
  declare class ZikoEventFocus extends __ZikoEvent__ {
6
6
  constructor(target: any, customizer?: Function);
@@ -11,7 +11,7 @@ declare class ZikoEventFocus extends __ZikoEvent__ {
11
11
 
12
12
  }
13
13
 
14
- declare const bindFocusEvent: (target: ZikoUIElement, customizer?: Function) => ZikoEventFocus;
14
+ declare const bindFocusEvent: (target: UIElement, customizer?: Function) => ZikoEventFocus;
15
15
 
16
16
  export {
17
17
  ZikoEventFocus,
@@ -1,6 +1,6 @@
1
1
  import { __ZikoEvent__ } from "../__ZikoEvent__.js";
2
2
  import type { EventMethodesBinder, Callback, PointerEventKeys } from './__Shared__.js';
3
- import { ZikoUIElement } from "../../ui/index.js";
3
+ import { UIElement } from "../../ui/index.js";
4
4
 
5
5
  type PointerEventMethodesBinder = EventMethodesBinder<PointerEventKeys, ZikoEventPointer>;
6
6
 
@@ -37,7 +37,7 @@ declare class ZikoEventPointer extends __ZikoEvent__ implements PointerEventMeth
37
37
 
38
38
  }
39
39
 
40
- declare const bindPointerEvent: (target: ZikoUIElement, customizer?: Function) => ZikoEventPointer;
40
+ declare const bindPointerEvent: (target: UIElement, customizer?: Function) => ZikoEventPointer;
41
41
 
42
42
  export {
43
43
  ZikoEventPointer,
@@ -1,4 +1,4 @@
1
- export * from "./useStyle.js";
1
+ // export * from "./useStyle.js";
2
2
  // export * from "./useTheme";
3
3
  // export * from "../Head/useTitle";
4
4
  // export * from "../Head/useFavIcon";
@@ -0,0 +1,46 @@
1
+ import { Str } from "../../data";
2
+ import { isStateGetter } from "../../hooks/use-state.js";
3
+
4
+ // To Do add getter, watchAttr
5
+ export const AttrsMethods = {
6
+ setAttr(name, value) {
7
+ if(name instanceof Object){
8
+ const [names,values]=[Object.keys(name),Object.values(name)];
9
+ for(let i=0;i<names.length;i++){
10
+ if(values[i] instanceof Array)value[i] = values[i].join(" ");
11
+ _set_attrs_.call(this, names[i], values[i])
12
+ }
13
+ }
14
+ else{
15
+ if(value instanceof Array) value = value.join(" ");
16
+ _set_attrs_.call(this, name, value)
17
+ }
18
+ return this;
19
+ },
20
+ removeAttr(...names) {
21
+ for(let i=0;i<names.length;i++)this.element?.removeAttribute(names[i]);
22
+ return this;
23
+ },
24
+ getAttr(name){
25
+ name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
26
+ return this.element.attributes[name].value;
27
+ },
28
+ setContentEditable(bool = true) {
29
+ this.setAttr("contenteditable", bool);
30
+ return this;
31
+ }
32
+ };
33
+
34
+ function _set_attrs_(name, value){
35
+ if(this.element?.tagName !== "svg") name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
36
+ if(this?.attr[name] && this?.attr[name]===value) return;
37
+ if(isStateGetter(value)){
38
+ const getter = value()
39
+ getter._subscribe(
40
+ (newValue) => this.element?.setAttribute(name, newValue),
41
+ this
42
+ );
43
+ }
44
+ else this.element?.setAttribute(name, value)
45
+ Object.assign(this.cache.attributes, {[name]:value});
46
+ }
@@ -1,4 +1,5 @@
1
+ export * from './attrs.js'
1
2
  export * from './dom.js'
2
3
  export * from './events.js'
3
4
  export * from './indexing.js'
4
- // export * from './style.js'
5
+ export * from './style.js'
@@ -0,0 +1,14 @@
1
+ // Process width and height
2
+ export const StyleMethods = {
3
+ style(styles){
4
+ Object.assign(this.element.style, styles)
5
+ return this;
6
+ },
7
+ size(width, height){
8
+ return this.style({width, height})
9
+ },
10
+ animate(keyframe, {duration=1000, iterations=1, easing="ease"}={}){
11
+ this.element?.animate(keyframe,{duration, iterations, easing});
12
+ return this;
13
+ }
14
+ }
@@ -1,11 +1,11 @@
1
- import ZikoUIElement from "../constructors/ZikoUIElement.js";
1
+ import UIElement from "../constructors/UIElement.js";
2
2
  const Id = (a) => document.getElementById(a);
3
3
  const Class = (a) => [...document.getElementsByClassName(a)];
4
4
  const $=(...selector)=>{
5
5
  var ele=[]
6
6
  for(let i=0;i<selector.length;i++){
7
7
  if(typeof selector[i]=="string")ele.push(...document.querySelectorAll(selector[i]));
8
- if(selector[i] instanceof ZikoUIElement)ele.push(selector[i].element)
8
+ if(selector[i] instanceof UIElement)ele.push(selector[i].element)
9
9
  }
10
10
  return ele.length===1?ele[0]:ele;
11
11
  }
@@ -1,12 +1,12 @@
1
- import ZikoUINode from "./ZikoUINode.js";
1
+ import UINode from "./UINode.js";
2
2
  import { register } from "../../__helpers__/register/index.js";
3
3
  import {
4
+ AttrsMethods,
4
5
  DomMethods,
5
6
  IndexingMethods,
6
- EventsMethodes
7
+ EventsMethodes,
8
+ StyleMethods
7
9
  } from "../__methods__/index.js";
8
- import { ZikoUseStyle } from "../../reactivity/hooks/UI/useStyle.js";
9
- import { ZikoUIElementStyle } from "./style/index.js";
10
10
 
11
11
  import {
12
12
  useCustomEvent,
@@ -17,11 +17,10 @@ import {
17
17
  watchChildren
18
18
  } from "../../reactivity/index.js"
19
19
  import { Random } from "../../math/index.js";
20
- import { Str } from "../../data/index.js";
21
20
  import {__init__global__} from '../../__ziko__/index.js';
22
21
  __init__global__()
23
- class ZikoUIElement extends ZikoUINode{
24
- constructor(element, name="", {type="html", useDefaultStyle=false}={}){
22
+ class UIElement extends UINode{
23
+ constructor({element, name ='', type="html", useDefaultStyle=false}={}){
25
24
  super()
26
25
  this.target = globalThis.__Ziko__.__Config__.default.target||globalThis?.document?.body;
27
26
  if(typeof element === "string") {
@@ -32,9 +31,16 @@ class ZikoUIElement extends ZikoUINode{
32
31
  }
33
32
  }
34
33
  else{
35
- this.target = element.parentElement;
34
+ this.target = element?.parentElement;
36
35
  }
37
- register(this, DomMethods, IndexingMethods, EventsMethodes);
36
+ register(
37
+ this,
38
+ AttrsMethods,
39
+ DomMethods,
40
+ StyleMethods,
41
+ IndexingMethods,
42
+ EventsMethodes
43
+ );
38
44
  Object.assign(this.cache, {
39
45
  name,
40
46
  isInteractive : [true, false][Math.floor(2*Math.random())],
@@ -44,7 +50,6 @@ class ZikoUIElement extends ZikoUINode{
44
50
  isHidden: false,
45
51
  isFrozzen:false,
46
52
  legacyParent : null,
47
- style: new ZikoUIElementStyle({}),
48
53
  attributes: {},
49
54
  filters: {},
50
55
  temp:{}
@@ -69,7 +74,6 @@ class ZikoUIElement extends ZikoUINode{
69
74
  if(element)Object.assign(this.cache,{element});
70
75
  this.uuid = `${this.cache.name}-${Random.string(16)}`
71
76
  this.ui_index = globalThis.__Ziko__.__CACHE__.get_ui_index();
72
- this.cache.style.linkTo(this);
73
77
  useDefaultStyle && this.style({
74
78
  position: "relative",
75
79
  boxSizing:"border-box",
@@ -151,25 +155,17 @@ class ZikoUIElement extends ZikoUINode{
151
155
  else UI.element=this.element.cloneNode(true);
152
156
  return UI.render(render);
153
157
  }
154
- style(styles){
155
- styles instanceof ZikoUseStyle ? this.st.style(styles.current): this.st.style(styles);
156
- return this;
157
- }
158
- size(width,height){
159
- this.st.size(width,height);
160
- return this;
161
- }
162
158
  [Symbol.iterator]() {
163
159
  return this.items[Symbol.iterator]();
164
160
  }
165
161
  maintain() {
166
- for (let i = 0; i < this.items.length; i++) {
167
- Object.defineProperty(this, i, {
168
- value: this.items[i],
169
- writable: true,
170
- configurable: true,
171
- enumerable: false
172
- });
162
+ for (let i = 0; i < this.items.length; i++) {
163
+ Object.defineProperty(this, i, {
164
+ value: this.items[i],
165
+ writable: true,
166
+ configurable: true,
167
+ enumerable: false
168
+ });
173
169
  }
174
170
  }
175
171
  freeze(freeze){
@@ -187,43 +183,6 @@ class ZikoUIElement extends ZikoUINode{
187
183
  describe(label){
188
184
  if(label)this.setAttr("aria-label",label)
189
185
  }
190
- animate(keyframe, {duration=1000, iterations=1, easing="ease"}={}){
191
- this.element?.animate(keyframe,{duration, iterations, easing});
192
- return this;
193
- }
194
- // Attributes
195
- #setAttr(name, value){
196
- if(this.element?.tagName !== "svg") name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
197
- if(this?.attr[name] && this?.attr[name]===value) return;
198
- this.element?.setAttribute(name, value)
199
- Object.assign(this.cache.attributes, {[name]:value});
200
- }
201
- setAttr(name, value) {
202
- if(name instanceof Object){
203
- const [names,values]=[Object.keys(name),Object.values(name)];
204
- for(let i=0;i<names.length;i++){
205
- if(values[i] instanceof Array)value[i] = values[i].join(" ");
206
- this.#setAttr(names[i], values[i])
207
- }
208
- }
209
- else{
210
- if(value instanceof Array)value = value.join(" ");
211
- this.#setAttr(name, value)
212
- }
213
- return this;
214
- }
215
- removeAttr(...names) {
216
- for(let i=0;i<names.length;i++)this.element?.removeAttribute(names[i]);
217
- return this;
218
- }
219
- getAttr(name){
220
- name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
221
- return this.element.attributes[name].value;
222
- }
223
- setContentEditable(bool = true) {
224
- this.setAttr("contenteditable", bool);
225
- return this;
226
- }
227
186
  get children() {
228
187
  return [...this.element.children];
229
188
  }
@@ -295,4 +254,4 @@ class ZikoUIElement extends ZikoUINode{
295
254
  }
296
255
 
297
256
  }
298
- export default ZikoUIElement;
257
+ export default UIElement;
@@ -1,4 +1,4 @@
1
- export default class ZikoUINode {
1
+ export default class UINode {
2
2
  constructor(node){
3
3
  this.cache = {
4
4
  node
@@ -12,4 +12,4 @@ export default class ZikoUINode {
12
12
  }
13
13
  }
14
14
 
15
- globalThis.node = (node) => new ZikoUINode(node);
15
+ globalThis.node = (node) => new UINode(node);
@@ -1,7 +1,7 @@
1
- import ZikoUIElement from "../constructors/ZikoUIElement.js";
2
- class ZikoUIFlex extends ZikoUIElement {
1
+ import UIElement from "../constructors/UIElement.js";
2
+ class ZikoUIFlex extends UIElement {
3
3
  constructor(tag = "div", w = "100%", h = "100%") {
4
- super(tag ,"Flex");
4
+ super({element : tag , name : "Flex"});
5
5
  this.direction = "cols";
6
6
  if (typeof w == "number") w += "%";
7
7
  if (typeof h == "number") h += "%";
@@ -69,13 +69,13 @@ class ZikoUIFlex extends ZikoUIElement {
69
69
  }
70
70
  }
71
71
 
72
- const Flex = (...ZikoUIElement) =>{
72
+ const Flex = (...UIElement) =>{
73
73
  let tag="div";
74
- if(typeof ZikoUIElement[0]==="string"){
75
- tag=ZikoUIElement[0];
76
- ZikoUIElement.pop();
74
+ if(typeof UIElement[0]==="string"){
75
+ tag=UIElement[0];
76
+ UIElement.pop();
77
77
  }
78
- return new ZikoUIFlex(tag).append(...ZikoUIElement);
78
+ return new ZikoUIFlex(tag).append(...UIElement);
79
79
  }
80
80
  function set_vertical(direction){
81
81
  direction == 1
@@ -1,6 +1,6 @@
1
- import ZikoUIElement from "../constructors/ZikoUIElement.js";
1
+ import UIElement from "../constructors/UIElement.js";
2
2
  import {Matrix} from "../../math/matrix/Matrix.js"
3
- class ZikoUICanvas extends ZikoUIElement{
3
+ class ZikoUICanvas extends UIElement{
4
4
  constructor(w,h){
5
5
  super("canvas","canvas");
6
6
  this.ctx = this.element?.getContext("2d");
@@ -1,5 +1,5 @@
1
- import ZikoUIElement from "../constructors/ZikoUIElement.js";
2
- class ZikoUISvg extends ZikoUIElement {
1
+ import UIElement from "../constructors/UIElement.js";
2
+ class ZikoUISvg extends UIElement {
3
3
  constructor(w=360,h=300) {
4
4
  super("svg","svg");
5
5
  //this.cache={};
@@ -1,7 +1,7 @@
1
- import ZikoUIElement from "../constructors/ZikoUIElement.js"
2
- class ZikoUIGrid extends ZikoUIElement {
1
+ import UIElement from "../constructors/UIElement.js"
2
+ class ZikoUIGrid extends UIElement {
3
3
  constructor(tag ="div", w = "50vw", h = "50vh") {
4
- super(tag,"Grid");
4
+ super({element : tag, name : "Grid"});
5
5
  this.direction = "cols";
6
6
  if (typeof w == "number") w += "%";
7
7
  if (typeof h == "number") h += "%";
@@ -29,5 +29,5 @@ class ZikoUIGrid extends ZikoUIElement {
29
29
  return this;
30
30
  }
31
31
  }
32
- const Grid = (...ZikoUIElement) => new ZikoUIGrid("div").append(...ZikoUIElement);
32
+ const Grid = (...UIElement) => new ZikoUIGrid("div").append(...UIElement);
33
33
  export {Grid,ZikoUIGrid};
package/src/ui/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { default as ZikoUIElement } from "./constructors/ZikoUIElement.js"
2
- export { default as ZikoUINode } from "./constructors/ZikoUINode.js"
1
+ export { default as UIElement } from "./constructors/UIElement.js"
2
+ export { default as UINode } from "./constructors/UINode.js"
3
3
  export * from './tags/index.js';
4
4
  export * from './text/index.js';
5
5
  export * from './flex/index.js';
@@ -1,7 +1,7 @@
1
- import ZikoUIElement from "../constructors/ZikoUIElement";
2
- class ZikoUISuspense extends ZikoUIElement{
1
+ import UIElement from "../constructors/UIElement";
2
+ class ZikoUISuspense extends UIElement{
3
3
  constructor(fallback_ui, callback){
4
- super("div", "suspense")
4
+ super({element : "div", name : "suspense"})
5
5
  this.setAttr({
6
6
  dataTemp : "suspense"
7
7
  })
@@ -1,140 +1,140 @@
1
- import ZikoUIElement from "../elements/ZikoUIElement.js";
1
+ import UIElement from "../elements/UIElement.js";
2
2
  interface HtmlTags {
3
- a: ZikoUIElement;
4
- abbr: ZikoUIElement;
5
- address: ZikoUIElement;
6
- area: ZikoUIElement;
7
- article: ZikoUIElement;
8
- aside: ZikoUIElement;
9
- audio: ZikoUIElement;
10
- b: ZikoUIElement;
11
- base: ZikoUIElement;
12
- bdi: ZikoUIElement;
13
- bdo: ZikoUIElement;
14
- blockquote: ZikoUIElement;
15
- body: ZikoUIElement;
16
- br: ZikoUIElement;
17
- button: ZikoUIElement;
18
- canvas: ZikoUIElement;
19
- caption: ZikoUIElement;
20
- cite: ZikoUIElement;
21
- code: ZikoUIElement;
22
- col: ZikoUIElement;
23
- colgroup: ZikoUIElement;
24
- data: ZikoUIElement;
25
- datalist: ZikoUIElement;
26
- dd: ZikoUIElement;
27
- del: ZikoUIElement;
28
- details: ZikoUIElement;
29
- dfn: ZikoUIElement;
30
- dialog: ZikoUIElement;
31
- div: ZikoUIElement;
32
- dl: ZikoUIElement;
33
- dt: ZikoUIElement;
34
- em: ZikoUIElement;
35
- embed: ZikoUIElement;
36
- fieldset: ZikoUIElement;
37
- figcaption: ZikoUIElement;
38
- figure: ZikoUIElement;
39
- footer: ZikoUIElement;
40
- form: ZikoUIElement;
41
- h1: ZikoUIElement;
42
- h2: ZikoUIElement;
43
- h3: ZikoUIElement;
44
- h4: ZikoUIElement;
45
- h5: ZikoUIElement;
46
- h6: ZikoUIElement;
47
- head: ZikoUIElement;
48
- header: ZikoUIElement;
49
- hgroup: ZikoUIElement;
50
- hr: ZikoUIElement;
51
- html: ZikoUIElement;
52
- i: ZikoUIElement;
53
- iframe: ZikoUIElement;
54
- img: ZikoUIElement;
55
- input: ZikoUIElement;
56
- ins: ZikoUIElement;
57
- kbd: ZikoUIElement;
58
- label: ZikoUIElement;
59
- legend: ZikoUIElement;
60
- li: ZikoUIElement;
61
- link: ZikoUIElement;
62
- main: ZikoUIElement;
63
- map: ZikoUIElement;
64
- mark: ZikoUIElement;
65
- meta: ZikoUIElement;
66
- meter: ZikoUIElement;
67
- nav: ZikoUIElement;
68
- noscript: ZikoUIElement;
69
- object: ZikoUIElement;
70
- ol: ZikoUIElement;
71
- optgroup: ZikoUIElement;
72
- option: ZikoUIElement;
73
- output: ZikoUIElement;
74
- p: ZikoUIElement;
75
- param: ZikoUIElement;
76
- picture: ZikoUIElement;
77
- pre: ZikoUIElement;
78
- progress: ZikoUIElement;
79
- q: ZikoUIElement;
80
- rp: ZikoUIElement;
81
- rt: ZikoUIElement;
82
- ruby: ZikoUIElement;
83
- s: ZikoUIElement;
84
- samp: ZikoUIElement;
85
- script: ZikoUIElement;
86
- section: ZikoUIElement;
87
- select: ZikoUIElement;
88
- small: ZikoUIElement;
89
- source: ZikoUIElement;
90
- span: ZikoUIElement;
91
- strong: ZikoUIElement;
92
- style: ZikoUIElement;
93
- sub: ZikoUIElement;
94
- summary: ZikoUIElement;
95
- sup: ZikoUIElement;
96
- table: ZikoUIElement;
97
- tbody: ZikoUIElement;
98
- td: ZikoUIElement;
99
- template: ZikoUIElement;
100
- textarea: ZikoUIElement;
101
- tfoot: ZikoUIElement;
102
- th: ZikoUIElement;
103
- thead: ZikoUIElement;
104
- time: ZikoUIElement;
105
- title: ZikoUIElement;
106
- tr: ZikoUIElement;
107
- track: ZikoUIElement;
108
- u: ZikoUIElement;
109
- ul: ZikoUIElement;
110
- var: ZikoUIElement;
111
- video: ZikoUIElement;
112
- wbr: ZikoUIElement;
3
+ a: UIElement;
4
+ abbr: UIElement;
5
+ address: UIElement;
6
+ area: UIElement;
7
+ article: UIElement;
8
+ aside: UIElement;
9
+ audio: UIElement;
10
+ b: UIElement;
11
+ base: UIElement;
12
+ bdi: UIElement;
13
+ bdo: UIElement;
14
+ blockquote: UIElement;
15
+ body: UIElement;
16
+ br: UIElement;
17
+ button: UIElement;
18
+ canvas: UIElement;
19
+ caption: UIElement;
20
+ cite: UIElement;
21
+ code: UIElement;
22
+ col: UIElement;
23
+ colgroup: UIElement;
24
+ data: UIElement;
25
+ datalist: UIElement;
26
+ dd: UIElement;
27
+ del: UIElement;
28
+ details: UIElement;
29
+ dfn: UIElement;
30
+ dialog: UIElement;
31
+ div: UIElement;
32
+ dl: UIElement;
33
+ dt: UIElement;
34
+ em: UIElement;
35
+ embed: UIElement;
36
+ fieldset: UIElement;
37
+ figcaption: UIElement;
38
+ figure: UIElement;
39
+ footer: UIElement;
40
+ form: UIElement;
41
+ h1: UIElement;
42
+ h2: UIElement;
43
+ h3: UIElement;
44
+ h4: UIElement;
45
+ h5: UIElement;
46
+ h6: UIElement;
47
+ head: UIElement;
48
+ header: UIElement;
49
+ hgroup: UIElement;
50
+ hr: UIElement;
51
+ html: UIElement;
52
+ i: UIElement;
53
+ iframe: UIElement;
54
+ img: UIElement;
55
+ input: UIElement;
56
+ ins: UIElement;
57
+ kbd: UIElement;
58
+ label: UIElement;
59
+ legend: UIElement;
60
+ li: UIElement;
61
+ link: UIElement;
62
+ main: UIElement;
63
+ map: UIElement;
64
+ mark: UIElement;
65
+ meta: UIElement;
66
+ meter: UIElement;
67
+ nav: UIElement;
68
+ noscript: UIElement;
69
+ object: UIElement;
70
+ ol: UIElement;
71
+ optgroup: UIElement;
72
+ option: UIElement;
73
+ output: UIElement;
74
+ p: UIElement;
75
+ param: UIElement;
76
+ picture: UIElement;
77
+ pre: UIElement;
78
+ progress: UIElement;
79
+ q: UIElement;
80
+ rp: UIElement;
81
+ rt: UIElement;
82
+ ruby: UIElement;
83
+ s: UIElement;
84
+ samp: UIElement;
85
+ script: UIElement;
86
+ section: UIElement;
87
+ select: UIElement;
88
+ small: UIElement;
89
+ source: UIElement;
90
+ span: UIElement;
91
+ strong: UIElement;
92
+ style: UIElement;
93
+ sub: UIElement;
94
+ summary: UIElement;
95
+ sup: UIElement;
96
+ table: UIElement;
97
+ tbody: UIElement;
98
+ td: UIElement;
99
+ template: UIElement;
100
+ textarea: UIElement;
101
+ tfoot: UIElement;
102
+ th: UIElement;
103
+ thead: UIElement;
104
+ time: UIElement;
105
+ title: UIElement;
106
+ tr: UIElement;
107
+ track: UIElement;
108
+ u: UIElement;
109
+ ul: UIElement;
110
+ var: UIElement;
111
+ video: UIElement;
112
+ wbr: UIElement;
113
113
  }
114
114
 
115
115
  interface SvgTags {
116
- svg: ZikoUIElement;
117
- circle: ZikoUIElement;
118
- rect: ZikoUIElement;
119
- line: ZikoUIElement;
120
- path: ZikoUIElement;
121
- g: ZikoUIElement;
122
- text: ZikoUIElement;
116
+ svg: UIElement;
117
+ circle: UIElement;
118
+ rect: UIElement;
119
+ line: UIElement;
120
+ path: UIElement;
121
+ g: UIElement;
122
+ text: UIElement;
123
123
  //...
124
124
  }
125
125
 
126
126
  interface MathTags {
127
- math: ZikoUIElement;
128
- mrow: ZikoUIElement;
129
- mi: ZikoUIElement;
130
- mo: ZikoUIElement;
131
- mn: ZikoUIElement;
132
- ms: ZikoUIElement;
127
+ math: UIElement;
128
+ mrow: UIElement;
129
+ mi: UIElement;
130
+ mo: UIElement;
131
+ mn: UIElement;
132
+ ms: UIElement;
133
133
  //...
134
134
  }
135
135
 
136
136
  export type Tags = HtmlTags & SvgTags & MathTags & {
137
- [key: string]: ZikoUIElement;
137
+ [key: string]: UIElement;
138
138
  };
139
139
 
140
140
  declare const tags: Tags;