@ktjs/shortcuts 0.33.0 → 0.33.1

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/index.mjs CHANGED
@@ -1,33 +1,6 @@
1
- import { h } from '@ktjs/core';
1
+ import { h } from "@ktjs/core";
2
2
 
3
- const aliasH = (tag) => (attr, content) => h(tag, attr, content);
4
-
5
- const div = aliasH('div');
6
- const span = aliasH('span');
7
- const label = aliasH('label');
8
- const p = aliasH('p');
9
- const h1 = aliasH('h1');
10
- const h2 = aliasH('h2');
11
- const h3 = aliasH('h3');
12
- const h4 = aliasH('h4');
13
- const h5 = aliasH('h5');
14
- const h6 = aliasH('h6');
15
- const ul = aliasH('ul');
16
- const ol = aliasH('ol');
17
- const li = aliasH('li');
18
- const btn = aliasH('button');
19
- const form = aliasH('form');
20
- const input = aliasH('input');
21
- const select = aliasH('select');
22
- const option = aliasH('option');
23
- const table = aliasH('table');
24
- const thead = aliasH('thead');
25
- const tbody = aliasH('tbody');
26
- const tr = aliasH('tr');
27
- const th = aliasH('th');
28
- const td = aliasH('td');
29
- const a = aliasH('a');
30
- const img = aliasH('img');
3
+ const aliasH = tag => (attr, content) => h(tag, attr, content), div = aliasH("div"), span = aliasH("span"), label = aliasH("label"), p = aliasH("p"), h1 = aliasH("h1"), h2 = aliasH("h2"), h3 = aliasH("h3"), h4 = aliasH("h4"), h5 = aliasH("h5"), h6 = aliasH("h6"), ul = aliasH("ul"), ol = aliasH("ol"), li = aliasH("li"), btn = aliasH("button"), form = aliasH("form"), input = aliasH("input"), select = aliasH("select"), option = aliasH("option"), table = aliasH("table"), thead = aliasH("thead"), tbody = aliasH("tbody"), tr = aliasH("tr"), th = aliasH("th"), td = aliasH("td"), a = aliasH("a"), img = aliasH("img");
31
4
 
32
5
  export { a, btn, div, form, h1, h2, h3, h4, h5, h6, img, input, label, li, ol, option, p, select, span, table, tbody, td, th, thead, tr, ul };
33
6
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../src/alias-h.ts","../src/common.ts"],"sourcesContent":["import type { KTRawAttr, KTRawContent, HTMLTag, HTML } from '@ktjs/core';\nimport { h } from '@ktjs/core';\n\nexport const aliasH: <T extends HTMLTag>(tag: T) => (attr?: KTRawAttr, content?: KTRawContent) => HTML<T> =\n <T extends HTMLTag>(tag: T) =>\n (attr?: KTRawAttr, content?: KTRawContent) =>\n h(tag, attr, content);\n","import { aliasH } from './alias-h.js';\n\nexport const div = aliasH('div');\nexport const span = aliasH('span');\nexport const label = aliasH('label');\n\nexport const p = aliasH('p');\nexport const h1 = aliasH('h1');\nexport const h2 = aliasH('h2');\nexport const h3 = aliasH('h3');\nexport const h4 = aliasH('h4');\nexport const h5 = aliasH('h5');\nexport const h6 = aliasH('h6');\n\nexport const ul = aliasH('ul');\nexport const ol = aliasH('ol');\nexport const li = aliasH('li');\n\nexport const btn = aliasH('button');\nexport const form = aliasH('form');\nexport const input = aliasH('input');\nexport const select = aliasH('select');\nexport const option = aliasH('option');\n\nexport const table = aliasH('table');\nexport const thead = aliasH('thead');\nexport const tbody = aliasH('tbody');\nexport const tr = aliasH('tr');\nexport const th = aliasH('th');\nexport const td = aliasH('td');\n\nexport const a = aliasH('a');\nexport const img = aliasH('img');\n"],"names":[],"mappings":";;AAGO,MAAM,MAAM,GACjB,CAAoB,GAAM,KAC1B,CAAC,IAAgB,EAAE,OAAsB,KACvC,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC;;MCJZ,GAAG,GAAG,MAAM,CAAC,KAAK;MAClB,IAAI,GAAG,MAAM,CAAC,MAAM;MACpB,KAAK,GAAG,MAAM,CAAC,OAAO;MAEtB,CAAC,GAAG,MAAM,CAAC,GAAG;MACd,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAEhB,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAEhB,GAAG,GAAG,MAAM,CAAC,QAAQ;MACrB,IAAI,GAAG,MAAM,CAAC,MAAM;MACpB,KAAK,GAAG,MAAM,CAAC,OAAO;MACtB,MAAM,GAAG,MAAM,CAAC,QAAQ;MACxB,MAAM,GAAG,MAAM,CAAC,QAAQ;MAExB,KAAK,GAAG,MAAM,CAAC,OAAO;MACtB,KAAK,GAAG,MAAM,CAAC,OAAO;MACtB,KAAK,GAAG,MAAM,CAAC,OAAO;MACtB,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAChB,EAAE,GAAG,MAAM,CAAC,IAAI;MAEhB,CAAC,GAAG,MAAM,CAAC,GAAG;MACd,GAAG,GAAG,MAAM,CAAC,KAAK;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../src/alias-h.ts","../src/common.ts"],"sourcesContent":["import type { KTRawAttr, KTRawContent, HTMLTag, HTML } from '@ktjs/core';\nimport { h } from '@ktjs/core';\n\nexport const aliasH: <T extends HTMLTag>(tag: T) => (attr?: KTRawAttr, content?: KTRawContent) => HTML<T> =\n <T extends HTMLTag>(tag: T) =>\n (attr?: KTRawAttr, content?: KTRawContent) =>\n h(tag, attr, content);\n","import { aliasH } from './alias-h.js';\n\nexport const div = aliasH('div');\nexport const span = aliasH('span');\nexport const label = aliasH('label');\n\nexport const p = aliasH('p');\nexport const h1 = aliasH('h1');\nexport const h2 = aliasH('h2');\nexport const h3 = aliasH('h3');\nexport const h4 = aliasH('h4');\nexport const h5 = aliasH('h5');\nexport const h6 = aliasH('h6');\n\nexport const ul = aliasH('ul');\nexport const ol = aliasH('ol');\nexport const li = aliasH('li');\n\nexport const btn = aliasH('button');\nexport const form = aliasH('form');\nexport const input = aliasH('input');\nexport const select = aliasH('select');\nexport const option = aliasH('option');\n\nexport const table = aliasH('table');\nexport const thead = aliasH('thead');\nexport const tbody = aliasH('tbody');\nexport const tr = aliasH('tr');\nexport const th = aliasH('th');\nexport const td = aliasH('td');\n\nexport const a = aliasH('a');\nexport const img = aliasH('img');\n"],"names":["aliasH","tag","attr","content","h","div","span","label","p","h1","h2","h3","h4","h5","h6","ul","ol","li","btn","form","input","select","option","table","thead","tbody","tr","th","td","a","img"],"mappings":";;AAGO,MAAMA,SACSC,OACpB,CAACC,MAAkBC,YACjBC,EAAEH,KAAKC,MAAMC,UCJJE,MAAML,OAAO,QACbM,OAAON,OAAO,SACdO,QAAQP,OAAO,UAEfQ,IAAIR,OAAO,MACXS,KAAKT,OAAO,OACZU,KAAKV,OAAO,OACZW,KAAKX,OAAO,OACZY,KAAKZ,OAAO,OACZa,KAAKb,OAAO,OACZc,KAAKd,OAAO,OAEZe,KAAKf,OAAO,OACZgB,KAAKhB,OAAO,OACZiB,KAAKjB,OAAO,OAEZkB,MAAMlB,OAAO,WACbmB,OAAOnB,OAAO,SACdoB,QAAQpB,OAAO,UACfqB,SAASrB,OAAO,WAChBsB,SAAStB,OAAO,WAEhBuB,QAAQvB,OAAO,UACfwB,QAAQxB,OAAO,UACfyB,QAAQzB,OAAO,UACf0B,KAAK1B,OAAO,OACZ2B,KAAK3B,OAAO,OACZ4B,KAAK5B,OAAO,OAEZ6B,IAAI7B,OAAO,MACX8B,MAAM9B,OAAO;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/shortcuts",
3
- "version": "0.33.0",
3
+ "version": "0.33.1",
4
4
  "description": "Shortcut functions for kt.js - common DOM operations",
5
5
  "description_zh": "kt.js 的快捷函数集合,封装常见 DOM 操作。",
6
6
  "type": "module",