@symbo.ls/input 0.4.2 → 0.6.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.js +50 -0
- package/dist/index.js.map +1 -0
- package/package.json +6 -6
- package/packages/react/dist/index.js +17 -0
- package/packages/react/dist/index.js.map +1 -0
- package/packages/react/package.json +7 -3
- package/packages/react/src/index.js +8 -0
- package/packages/react/index.js +0 -1
package/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/input",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"main": "
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "696d9a30a254d39860ebc3385f0114ce62cc9654",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@symbo.ls/block": "^0.
|
|
9
|
-
"@symbo.ls/shape": "^0.
|
|
10
|
-
"@symbo.ls/text": "^0.
|
|
8
|
+
"@symbo.ls/block": "^0.6.0",
|
|
9
|
+
"@symbo.ls/shape": "^0.6.1",
|
|
10
|
+
"@symbo.ls/text": "^0.6.1"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/react-input",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"main": "index.js",
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "696d9a30a254d39860ebc3385f0114ce62cc9654",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@domql/react-transformer": "^1.3.0",
|
|
9
|
+
"@symbo.ls/input": "^0.6.1"
|
|
10
|
+
}
|
|
7
11
|
}
|
package/packages/react/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict'
|