@symbo.ls/button 0.6.8 → 0.6.17
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/{src/index.js → index.js} +6 -6
- package/package.json +6 -6
- package/packages/react/dist/index.js +2 -2
- package/packages/react/dist/index.js.map +1 -1
- package/packages/react/index.js +12 -0
- package/packages/react/package.json +4 -4
- package/{src/style.js → style.js} +0 -0
- package/packages/react/src/index.js +0 -8
|
@@ -8,7 +8,7 @@ import { Direction } from '@symbo.ls/direction'
|
|
|
8
8
|
import style from './style'
|
|
9
9
|
|
|
10
10
|
export const Button = {
|
|
11
|
-
|
|
11
|
+
extends: [Shape, Block, IconText, Direction],
|
|
12
12
|
tag: 'button',
|
|
13
13
|
style,
|
|
14
14
|
props: {
|
|
@@ -20,7 +20,7 @@ export const Button = {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export const SquareButton = {
|
|
23
|
-
|
|
23
|
+
extends: Button,
|
|
24
24
|
props: {
|
|
25
25
|
size: 'A',
|
|
26
26
|
width: 'A',
|
|
@@ -37,21 +37,21 @@ export const SquareButton = {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export const CircleButton = {
|
|
40
|
-
|
|
40
|
+
extends: SquareButton,
|
|
41
41
|
props: { round: 'C' }
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export const KangorooButton = {
|
|
45
45
|
tag: 'button',
|
|
46
|
-
|
|
46
|
+
extends: [Shape, Direction, Block],
|
|
47
47
|
style,
|
|
48
48
|
|
|
49
49
|
iconText: {
|
|
50
|
-
|
|
50
|
+
extends: IconText
|
|
51
51
|
},
|
|
52
52
|
|
|
53
53
|
child: {
|
|
54
|
-
|
|
54
|
+
extends: [Shape, Block, IconText]
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/button",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "6883f036412a811f8875f80ad045c8c613111ead",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@symbo.ls/block": "^0.6.
|
|
9
|
-
"@symbo.ls/direction": "^0.6.
|
|
10
|
-
"@symbo.ls/icon-text": "^0.6.
|
|
11
|
-
"@symbo.ls/shape": "^0.6.
|
|
8
|
+
"@symbo.ls/block": "^0.6.15",
|
|
9
|
+
"@symbo.ls/direction": "^0.6.15",
|
|
10
|
+
"@symbo.ls/icon-text": "^0.6.16",
|
|
11
|
+
"@symbo.ls/shape": "^0.6.15"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js"
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $4nQLP$
|
|
1
|
+
var $4nQLP$symbolsreacttransformer = require("@symbo.ls/react-transformer");
|
|
2
2
|
var $4nQLP$symbolsbutton = require("@symbo.ls/button");
|
|
3
3
|
|
|
4
4
|
function $parcel$export(e, n, v, s) {
|
|
@@ -10,7 +10,7 @@ $parcel$export(module.exports, "Button", () => $d19727fd684347e6$export$353f5b6f
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
const $d19727fd684347e6$export$353f5b6fc5456de1 = (props, state)=>{
|
|
13
|
-
return $4nQLP$
|
|
13
|
+
return $4nQLP$symbolsreacttransformer.reactTransformer($4nQLP$symbolsbutton.Button, props, state);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;AAAA,CAAY;AAKL,KAAK,CAAC,yCAAM,IAAI,KAAK,EAAE,KAAK,GAAK,CAAC;IACvC,MAAM,CAAC,
|
|
1
|
+
{"mappings":";;;;;;;;;;AAAA,CAAY;AAKL,KAAK,CAAC,yCAAM,IAAI,KAAK,EAAE,KAAK,GAAK,CAAC;IACvC,MAAM,CAAC,+CAAgB,CAAC,2BAAS,EAAE,KAAK,EAAE,KAAK;AACjD,CAAC","sources":["packages/button/packages/react/src/index.js"],"sourcesContent":["'use strict'\n\nimport { reactTransformer } from '@symbo.ls/react-transformer'\nimport { Button as component } from '@symbo.ls/button'\n\nexport const Button = (props, state) => {\n return reactTransformer(component, props, state)\n}\n"],"names":[],"version":3,"file":"index.js.map"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { DOMQLReact } from '@symbo.ls/transform-react'
|
|
4
|
+
import { Button as ButtonCopy, SquareButton as SquareButtonCopy } from '@symbo.ls/button'
|
|
5
|
+
|
|
6
|
+
export const Button = (props, state) => {
|
|
7
|
+
return DOMQLReact(ButtonCopy, props, state)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const SquareButton = (props, state) => {
|
|
11
|
+
return DOMQLReact(SquareButtonCopy, props, state)
|
|
12
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/react-button",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "6883f036412a811f8875f80ad045c8c613111ead",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@symbo.ls/button": "^0.6.
|
|
9
|
-
"@symbo.ls/react
|
|
8
|
+
"@symbo.ls/button": "^0.6.17",
|
|
9
|
+
"@symbo.ls/transform-react": "^0.6.15"
|
|
10
10
|
},
|
|
11
11
|
"source": "src/index.js"
|
|
12
12
|
}
|
|
File without changes
|