@symbo.ls/input 0.6.16 → 0.6.18

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.js ADDED
@@ -0,0 +1,54 @@
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: (event, { key: key , value: value , props: props })=>{
45
+ props.onInput && props.onInput(event);
46
+ },
47
+ change: (event, { key: key , value: value , props: props })=>{
48
+ props.onChange && props.onChange(event);
49
+ }
50
+ }
51
+ };
52
+
53
+
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;AAAA,CAAY;AAML,KAAK,CAAC,yCAAK,GAAG,CAAC;IACpB,KAAK,EAAE,CAAC;QAAA,yBAA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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: (event, { key, value, props }) => {\n props.onInput && props.onInput(event)\n },\n change: (event, { key, value, props }) => {\n props.onChange && props.onChange(event)\n }\n }\n}\n"],"names":[],"version":3,"file":"index.js.map"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@symbo.ls/input",
3
- "version": "0.6.16",
4
- "main": "dist/index.js",
3
+ "version": "0.6.18",
4
+ "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "0cc8d34533c6e162987c235296c7bb66b975fac7",
6
+ "gitHead": "eabd5282ecb233f09e8654db6c42186b0f73c2fd",
7
7
  "dependencies": {
8
- "@symbo.ls/block": "^0.6.15",
9
- "@symbo.ls/shape": "^0.6.15",
10
- "@symbo.ls/text": "^0.6.15"
8
+ "@symbo.ls/block": "^0.6.18",
9
+ "@symbo.ls/shape": "^0.6.18",
10
+ "@symbo.ls/text": "^0.6.18"
11
11
  },
12
12
  "source": "src/index.js"
13
13
  }
@@ -0,0 +1,17 @@
1
+ var $j04YB$symbolsreacttransformer = require("@symbo.ls/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$symbolsreacttransformer.reactTransformer($j04YB$symbolsinput.Input, props, state);
14
+ };
15
+
16
+
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;AAAA,CAAY;AAKL,KAAK,CAAC,yCAAK,IAAI,KAAK,EAAE,KAAK,GAAK,CAAC;IACtC,MAAM,CAAC,+CAAgB,CAAC,yBAAS,EAAE,KAAK,EAAE,KAAK;AACjD,CAAC","sources":["packages/input/packages/react/src/index.js"],"sourcesContent":["'use strict'\n\nimport { reactTransformer } from '@symbo.ls/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"}
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@symbo.ls/react-input",
3
- "version": "0.6.16",
3
+ "version": "0.6.18",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
- "gitHead": "0cc8d34533c6e162987c235296c7bb66b975fac7",
6
+ "gitHead": "eabd5282ecb233f09e8654db6c42186b0f73c2fd",
7
7
  "dependencies": {
8
- "@symbo.ls/input": "^0.6.16",
9
- "@symbo.ls/transform-react": "^0.6.15"
8
+ "@symbo.ls/input": "^0.6.18",
9
+ "@symbo.ls/transform-react": "^0.6.18"
10
10
  },
11
11
  "source": "src/index.js"
12
12
  }