@symbo.ls/input 0.6.4 → 0.6.15

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.
@@ -27,8 +27,11 @@ export const Input = {
27
27
  },
28
28
 
29
29
  on: {
30
- input: ({ key, value, props }) => {
31
-
30
+ input: (event, { key, value, props }) => {
31
+ props.onInput && props.onInput(event)
32
+ },
33
+ change: (event, { key, value, props }) => {
34
+ props.onChange && props.onChange(event)
32
35
  }
33
36
  }
34
37
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@symbo.ls/input",
3
- "version": "0.6.4",
3
+ "version": "0.6.15",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
- "gitHead": "f63471187f89dac3ca366bfa02c2327db68e9690",
6
+ "gitHead": "538c70b8727a5c40d70155d34fecdfc914e26a5b",
7
7
  "dependencies": {
8
- "@symbo.ls/block": "^0.6.4",
9
- "@symbo.ls/shape": "^0.6.4",
10
- "@symbo.ls/text": "^0.6.4"
8
+ "@symbo.ls/block": "^0.6.15",
9
+ "@symbo.ls/shape": "^0.6.15",
10
+ "@symbo.ls/text": "^0.6.15"
11
11
  },
12
12
  "source": "src/index.js"
13
13
  }
@@ -1,8 +1,8 @@
1
1
  'use strict'
2
2
 
3
- import { reactTransformer } from '@domql/react-transformer'
3
+ import { DOMQLReact } from '@symbo.ls/transform-react'
4
4
  import { Input as component } from '@symbo.ls/input'
5
5
 
6
6
  export const Input = (props, state) => {
7
- return reactTransformer(component, props, state)
7
+ return DOMQLReact(component, props, state)
8
8
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@symbo.ls/react-input",
3
- "version": "0.6.4",
3
+ "version": "0.6.15",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
- "gitHead": "f63471187f89dac3ca366bfa02c2327db68e9690",
6
+ "gitHead": "538c70b8727a5c40d70155d34fecdfc914e26a5b",
7
7
  "dependencies": {
8
- "@domql/react-transformer": "^2.0.0",
9
- "@symbo.ls/input": "^0.6.4"
8
+ "@symbo.ls/input": "^0.6.15",
9
+ "@symbo.ls/transform-react": "^0.6.15"
10
10
  },
11
11
  "source": "src/index.js"
12
12
  }
package/dist/index.js DELETED
@@ -1,50 +0,0 @@
1
- var $hKniz$symbolsshape = require("@symbo.ls/shape");
2
- var $hKniz$symbolsblock = require("@symbo.ls/block");
3
- var $hKniz$symbolstext = require("@symbo.ls/text");
4
-
5
- function $parcel$export(e, n, v, s) {
6
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
7
- }
8
-
9
- $parcel$export(module.exports, "Input", () => $c018d072eff388f3$export$f5b8910cec6cf069);
10
-
11
-
12
-
13
- 'use strict';
14
- const $c018d072eff388f3$export$f5b8910cec6cf069 = {
15
- proto: [
16
- $hKniz$symbolsshape.Shape,
17
- $hKniz$symbolsblock.Block,
18
- $hKniz$symbolstext.Text
19
- ],
20
- tag: 'input',
21
- props: (el, s)=>({
22
- type: 'input',
23
- value: s[el.key],
24
- // placeholder: '',
25
- round: 'C',
26
- padding: 'A B',
27
- theme: 'transparent'
28
- })
29
- ,
30
- attr: {
31
- placeholder: ({ props: props })=>props.placeholder
32
- ,
33
- value: ({ props: props })=>props.value
34
- ,
35
- disabled: ({ props: props })=>props.disabled || null
36
- ,
37
- readonly: ({ props: props })=>props.readonly
38
- ,
39
- required: ({ props: props })=>props.required
40
- ,
41
- type: ({ props: props })=>props.type
42
- },
43
- on: {
44
- input: ({ key: key , value: value , props: props })=>{
45
- }
46
- }
47
- };
48
-
49
-
50
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;AAAA,CAAY;AAML,KAAK,CAAC,yCAAK,GAAG,CAAC;IACpB,KAAK,EAAE,CAAC;QAAA,yBAAK;QAAE,yBAAK;QAAE,uBAAI;IAAA,CAAC;IAC3B,GAAG,EAAE,CAAO;IAEZ,KAAK,GAAG,EAAE,EAAE,CAAC,IAAM,CAAC;YAClB,IAAI,EAAE,CAAO;YACb,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG;YACf,EAAmB,AAAnB,iBAAmB;YACnB,KAAK,EAAE,CAAG;YACV,OAAO,EAAE,CAAK;YACd,KAAK,EAAE,CAAa;QACtB,CAAC;;IAED,IAAI,EAAE,CAAC;QACL,WAAW,GAAG,CAAC,QAAC,KAAK,EAAC,CAAC,GAAK,KAAK,CAAC,WAAW;;QAC7C,KAAK,GAAG,CAAC,QAAC,KAAK,EAAC,CAAC,GAAK,KAAK,CAAC,KAAK;;QACjC,QAAQ,GAAG,CAAC,QAAC,KAAK,EAAC,CAAC,GAAK,KAAK,CAAC,QAAQ,IAAI,IAAI;;QAC/C,QAAQ,GAAG,CAAC,QAAC,KAAK,EAAC,CAAC,GAAK,KAAK,CAAC,QAAQ;;QACvC,QAAQ,GAAG,CAAC,QAAC,KAAK,EAAC,CAAC,GAAK,KAAK,CAAC,QAAQ;;QACvC,IAAI,GAAG,CAAC,QAAC,KAAK,EAAC,CAAC,GAAK,KAAK,CAAC,IAAI;IACjC,CAAC;IAED,EAAE,EAAE,CAAC;QACH,KAAK,GAAG,CAAC,MAAC,GAAG,UAAE,KAAK,UAAE,KAAK,EAAC,CAAC,GAAK,CAAC;QAEnC,CAAC;IACH,CAAC;AACH,CAAC","sources":["packages/input/src/index.js"],"sourcesContent":["'use strict'\n\nimport { Shape } from '@symbo.ls/shape'\nimport { Block } from '@symbo.ls/block'\nimport { Text } from '@symbo.ls/text'\n\nexport const Input = {\n proto: [Shape, Block, Text],\n tag: 'input',\n\n props: (el, s) => ({\n type: 'input',\n value: s[el.key],\n // placeholder: '',\n round: 'C',\n padding: 'A B',\n theme: 'transparent'\n }),\n\n attr: {\n placeholder: ({ props }) => props.placeholder,\n value: ({ props }) => props.value,\n disabled: ({ props }) => props.disabled || null,\n readonly: ({ props }) => props.readonly,\n required: ({ props }) => props.required,\n type: ({ props }) => props.type\n },\n\n on: {\n input: ({ key, value, props }) => {\n\n }\n }\n}\n"],"names":[],"version":3,"file":"index.js.map"}
@@ -1,17 +0,0 @@
1
- var $j04YB$domqlreacttransformer = require("@domql/react-transformer");
2
- var $j04YB$symbolsinput = require("@symbo.ls/input");
3
-
4
- function $parcel$export(e, n, v, s) {
5
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
- }
7
-
8
- $parcel$export(module.exports, "Input", () => $3c5aa69c8787b6a7$export$f5b8910cec6cf069);
9
-
10
-
11
- 'use strict';
12
- const $3c5aa69c8787b6a7$export$f5b8910cec6cf069 = (props, state)=>{
13
- return $j04YB$domqlreacttransformer.reactTransformer($j04YB$symbolsinput.Input, props, state);
14
- };
15
-
16
-
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;AAAA,CAAY;AAKL,KAAK,CAAC,yCAAK,IAAI,KAAK,EAAE,KAAK,GAAK,CAAC;IACtC,MAAM,CAAC,6CAAgB,CAAC,yBAAS,EAAE,KAAK,EAAE,KAAK;AACjD,CAAC","sources":["packages/input/packages/react/src/index.js"],"sourcesContent":["'use strict'\n\nimport { reactTransformer } from '@domql/react-transformer'\nimport { Input as component } from '@symbo.ls/input'\n\nexport const Input = (props, state) => {\n return reactTransformer(component, props, state)\n}\n"],"names":[],"version":3,"file":"index.js.map"}