@zcomponent/html 1.0.0-beta → 1.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.
- package/lib/i.d.ts +10 -0
- package/lib/i.js +11 -0
- package/lib/span.d.ts +10 -0
- package/lib/span.js +11 -0
- package/package.json +2 -2
package/lib/i.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContextManager } from '@zcomponent/core';
|
|
2
|
+
import { HTMLElementProps, ZHTMLElement } from './HTMLElement';
|
|
3
|
+
/** @zcomponent
|
|
4
|
+
* @ztag html/element/i
|
|
5
|
+
* @zparents html/element/**
|
|
6
|
+
* @zicon html
|
|
7
|
+
*/
|
|
8
|
+
export declare class I extends ZHTMLElement<HTMLElement> {
|
|
9
|
+
constructor(mgr: ContextManager, props: HTMLElementProps);
|
|
10
|
+
}
|
package/lib/i.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ZHTMLElement } from './HTMLElement';
|
|
2
|
+
/** @zcomponent
|
|
3
|
+
* @ztag html/element/i
|
|
4
|
+
* @zparents html/element/**
|
|
5
|
+
* @zicon html
|
|
6
|
+
*/
|
|
7
|
+
export class I extends ZHTMLElement {
|
|
8
|
+
constructor(mgr, props) {
|
|
9
|
+
super(mgr, props, document.createElement('i'));
|
|
10
|
+
}
|
|
11
|
+
}
|
package/lib/span.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContextManager } from '@zcomponent/core';
|
|
2
|
+
import { HTMLElementProps, ZHTMLElement } from './HTMLElement';
|
|
3
|
+
/** @zcomponent
|
|
4
|
+
* @ztag html/element/span
|
|
5
|
+
* @zparents html/element/**
|
|
6
|
+
* @zicon html
|
|
7
|
+
*/
|
|
8
|
+
export declare class Span extends ZHTMLElement<HTMLSpanElement> {
|
|
9
|
+
constructor(mgr: ContextManager, props: HTMLElementProps);
|
|
10
|
+
}
|
package/lib/span.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ZHTMLElement } from './HTMLElement';
|
|
2
|
+
/** @zcomponent
|
|
3
|
+
* @ztag html/element/span
|
|
4
|
+
* @zparents html/element/**
|
|
5
|
+
* @zicon html
|
|
6
|
+
*/
|
|
7
|
+
export class Span extends ZHTMLElement {
|
|
8
|
+
constructor(mgr, props) {
|
|
9
|
+
super(mgr, props, document.createElement('span'));
|
|
10
|
+
}
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zcomponent/html",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "Zappar Limited",
|
|
19
19
|
"license": "Proprietary",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@zcomponent/core": "1.x
|
|
21
|
+
"@zcomponent/core": "1.x"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^4.9.4"
|