tungsten 0.1.42 → 0.1.43

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.
@@ -1 +1 @@
1
- {"version":3,"file":"jsxRuntime.d.ts","sourceRoot":"","sources":["../src/jsxRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,KAAK,6BAA6B,EAAoD,MAAM,kBAAkB,CAAA;AACvH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAM9C,cAAc,yBAAyB,CAAA;AAEvC,eAAO,MAAM,QAAQ,OAAkB,CAAA;AAEvC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,OAAO,QAAQ,CAAA;AAkBrE,wBAAgB,GAAG,CACf,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAChE,KAAK,EAAE,6BAA6B,EACpC,GAAG,EAAE,OAAO,GACb,WAAW,CAwDb;AAID,eAAO,MAAM,IAAI,YAAM,CAAA"}
1
+ {"version":3,"file":"jsxRuntime.d.ts","sourceRoot":"","sources":["../src/jsxRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,KAAK,6BAA6B,EAAoD,MAAM,kBAAkB,CAAA;AACvH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAM9C,cAAc,yBAAyB,CAAA;AAEvC,eAAO,MAAM,QAAQ,OAAkB,CAAA;AAEvC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,OAAO,QAAQ,CAAA;AAkBrE,wBAAgB,GAAG,CACf,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAChE,KAAK,EAAE,6BAA6B,EACpC,GAAG,EAAE,OAAO,GACb,WAAW,CAgEb;AAID,eAAO,MAAM,IAAI,YAAM,CAAA"}
@@ -25,7 +25,9 @@ export function jsx(type, props, key) {
25
25
  if (Array.isArray(props.class) || typeof props.class === 'string') {
26
26
  const classString = Array.isArray(props.class) ? classNameArrayToString(props.class) : props.class;
27
27
  if (props.className !== undefined) {
28
- if (typeof props.className !== 'string') throwError('jsxRuntime', `expected className prop to be string, instead got ${typeof props.className}`);
28
+ if (typeof props.className !== 'string') {
29
+ throwError('jsxRuntime', `expected className prop to be string, instead got ${typeof props.className}`);
30
+ }
29
31
  props.className = props.className + ' ' + classString;
30
32
  } else {
31
33
  props.className = classString;
@@ -34,6 +36,10 @@ export function jsx(type, props, key) {
34
36
  delete props.class;
35
37
  }
36
38
  }
39
+ if ('htmlFor' in props) {
40
+ props.for = props.htmlFor;
41
+ delete props.htmlFor;
42
+ }
37
43
  //const { children, ...filteredProps } = props
38
44
  if (type === Fragment) {
39
45
  const {
@@ -1 +1 @@
1
- {"version":3,"file":"processProps.d.ts","sourceRoot":"","sources":["../../src/render/processProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AAoBjE,wBAAgB,YAAY,CAAC,KAAK,EAAE,6BAA6B,iCAwChE"}
1
+ {"version":3,"file":"processProps.d.ts","sourceRoot":"","sources":["../../src/render/processProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AAoBjE,wBAAgB,YAAY,CAAC,KAAK,EAAE,6BAA6B,iCA2ChE"}
@@ -18,6 +18,8 @@ export function processProps(props) {
18
18
  delete props.class;
19
19
  if ('className' in props) props.class = props.className;
20
20
  delete props.className;
21
+ // if ('htmlFor' in props) props.for = props.htmlFor
22
+ // delete props.htmlFor
21
23
  // assignStyle
22
24
  // if (props.assignStyle) {
23
25
  // const assignStyle = attributes.class as AssignedStyle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tungsten",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {
@@ -949,6 +949,7 @@ export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
949
949
 
950
950
  export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
951
951
  form?: string | undefined;
952
+ for?: string | undefined;
952
953
  htmlFor?: string | undefined;
953
954
  }
954
955
 
@@ -1058,6 +1059,7 @@ export interface OptionHTMLAttributes<T, BO extends object> extends HTMLAttribut
1058
1059
 
1059
1060
  export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1060
1061
  form?: string | undefined;
1062
+ for?: string | undefined;
1061
1063
  htmlFor?: string | undefined;
1062
1064
  name?: string | undefined;
1063
1065
  }