@symbo.ls/preview 0.0.90 → 0.0.91
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/package.json +6 -7
- package/src/pages/Components/index.js +1 -1
- package/src/pages/Components/sidebar.js +2 -2
- package/.symbols/button/index.js +0 -47
- package/.symbols/button-all-star/index.js +0 -50
- package/.symbols/button-circle/index.js +0 -47
- package/.symbols/button-pro/index.js +0 -75
- package/.symbols/button-theme-switcher/index.js +0 -74
- package/.symbols/categories.js +0 -44
- package/.symbols/components.js +0 -42
- package/.symbols/datepicker/index.js +0 -55
- package/.symbols/datepicker/style.js +0 -4
- package/.symbols/dropdown/index.js +0 -63
- package/.symbols/field/index.js +0 -43
- package/.symbols/index.js +0 -4
- package/.symbols/label/index.js +0 -47
- package/.symbols/library.js +0 -92
- package/.symbols/notification/index.js +0 -57
- package/.symbols/pills/index.js +0 -42
- package/.symbols/tooltip/index.js +0 -41
- package/.symbols/user/index.js +0 -89
- package/.symbols/user-bundle/index.js +0 -43
- package/.symbols/user-bundle/style.js +0 -13
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symbo.ls/preview",
|
|
3
3
|
"description": "",
|
|
4
4
|
"author": "",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.91",
|
|
6
6
|
"repository": "https://github.com/rackai/editor",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"scripts": {
|
|
@@ -25,15 +25,14 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@domql/router": "latest",
|
|
27
27
|
"@domql/tags": "latest",
|
|
28
|
-
"@symbo.ls/cli": "
|
|
28
|
+
"@symbo.ls/cli": "latest",
|
|
29
29
|
"@symbo.ls/components": "latest",
|
|
30
|
-
"@symbo.ls/config": "
|
|
31
|
-
"@symbo.ls/config-default": "
|
|
30
|
+
"@symbo.ls/config": "latest",
|
|
31
|
+
"@symbo.ls/config-default": "latest",
|
|
32
32
|
"@symbo.ls/icons": "latest",
|
|
33
|
-
"@symbo.ls/init": "
|
|
34
|
-
"@symbo.ls/preview": "^0.0.73",
|
|
33
|
+
"@symbo.ls/init": "latest",
|
|
35
34
|
"@symbo.ls/scratch": "latest",
|
|
36
|
-
"@symbo.ls/temp-db": "
|
|
35
|
+
"@symbo.ls/temp-db": "latest",
|
|
37
36
|
"@symbo.ls/utils": "latest",
|
|
38
37
|
"domql": "^1.5.35",
|
|
39
38
|
"showdown": "^2.1.0"
|
|
@@ -5,7 +5,7 @@ import { splitRoute } from 'domql/packages/router'
|
|
|
5
5
|
import sidebar from './sidebar'
|
|
6
6
|
import grid from './grid'
|
|
7
7
|
|
|
8
|
-
import { CATEGORIES } from '
|
|
8
|
+
import { CATEGORIES } from '@symbo.ls/temp-db/symbols/categories'
|
|
9
9
|
// import FAVORITES from '../../data/favorites'
|
|
10
10
|
// import COMPONENTS from '../../data/components'
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
4
|
FilterCategories,
|
|
5
5
|
FilterInteractivity,
|
|
6
6
|
FilterDataTypes
|
|
7
7
|
} from '@symbo.ls/components'
|
|
8
|
-
import { CATEGORIES } from '
|
|
8
|
+
import { CATEGORIES } from '@symbo.ls/temp-db/symbols/categories'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
sticky: {
|
package/.symbols/button/index.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { Button } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'button'
|
|
8
|
-
const title = 'Call to Action Button'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[1]
|
|
11
|
-
const extend = 'Button'
|
|
12
|
-
const state = {}
|
|
13
|
-
const props = {
|
|
14
|
-
icon: 'arrow angle up',
|
|
15
|
-
gap: 'X2',
|
|
16
|
-
theme: 'primary',
|
|
17
|
-
text: 'Call to Action',
|
|
18
|
-
padding: 'Z2 B2',
|
|
19
|
-
round: 'C'
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const component = {
|
|
23
|
-
extend: Button,
|
|
24
|
-
props
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const code = ``
|
|
28
|
-
|
|
29
|
-
const settings = {
|
|
30
|
-
gridOptions: { colspan: 4, rowspan: 2 }
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default {
|
|
34
|
-
key,
|
|
35
|
-
title,
|
|
36
|
-
description,
|
|
37
|
-
extend,
|
|
38
|
-
category,
|
|
39
|
-
component,
|
|
40
|
-
code,
|
|
41
|
-
state,
|
|
42
|
-
|
|
43
|
-
props,
|
|
44
|
-
settings,
|
|
45
|
-
interactivity: ['click'],
|
|
46
|
-
dataTypes: ['object']
|
|
47
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { Button } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'all-star'
|
|
8
|
-
const title = 'All Star'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[1]
|
|
11
|
-
const extend = 'Button'
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {
|
|
15
|
-
icon: 'star',
|
|
16
|
-
text: 'All Star',
|
|
17
|
-
theme: 'label',
|
|
18
|
-
padding: 'X1 Z2',
|
|
19
|
-
gap: 'X',
|
|
20
|
-
round: 'A',
|
|
21
|
-
fontWeight: 'bold'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const component = {
|
|
25
|
-
extend: Button,
|
|
26
|
-
props
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const code = ``
|
|
30
|
-
|
|
31
|
-
const settings = {
|
|
32
|
-
gridOptions: { colspan: 3, rowspan: 2 }
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default {
|
|
36
|
-
key,
|
|
37
|
-
title,
|
|
38
|
-
description,
|
|
39
|
-
category,
|
|
40
|
-
extend,
|
|
41
|
-
|
|
42
|
-
component,
|
|
43
|
-
code,
|
|
44
|
-
state,
|
|
45
|
-
props,
|
|
46
|
-
|
|
47
|
-
settings,
|
|
48
|
-
interactivity: [],
|
|
49
|
-
dataTypes: []
|
|
50
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { CircleButton } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'button-circle'
|
|
8
|
-
const title = 'Circle Button'
|
|
9
|
-
const extend = 'CircleButton'
|
|
10
|
-
const description = ''
|
|
11
|
-
const category = CATEGORIES[1]
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {
|
|
15
|
-
theme: 'secondary',
|
|
16
|
-
background: 'blue .2',
|
|
17
|
-
fontSize: 'A2',
|
|
18
|
-
color: 'white',
|
|
19
|
-
padding: 'Y2',
|
|
20
|
-
text: '3'
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const component = {
|
|
24
|
-
extend: CircleButton,
|
|
25
|
-
props
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const code = ``
|
|
29
|
-
|
|
30
|
-
const settings = {
|
|
31
|
-
gridOptions: { colspan: 2, rowspan: 2 }
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export default {
|
|
35
|
-
key,
|
|
36
|
-
title,
|
|
37
|
-
description,
|
|
38
|
-
category,
|
|
39
|
-
component,
|
|
40
|
-
extend,
|
|
41
|
-
code,
|
|
42
|
-
state,
|
|
43
|
-
props,
|
|
44
|
-
settings,
|
|
45
|
-
interactivity: ['click'],
|
|
46
|
-
dataTypes: ['object']
|
|
47
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { KangorooButton } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'ButtonPro'
|
|
8
|
-
const title = 'Pro Button'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[1]
|
|
11
|
-
const extend = 'KangorooButton'
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {
|
|
15
|
-
theme: 'quinary',
|
|
16
|
-
round: 'Z2',
|
|
17
|
-
padding: 'X1 X1 X1 A2',
|
|
18
|
-
size: 'A',
|
|
19
|
-
gap: 'A',
|
|
20
|
-
transition: 'A defaultBezier',
|
|
21
|
-
transitionProperty: 'background, color, opacity',
|
|
22
|
-
color: 'white',
|
|
23
|
-
|
|
24
|
-
label: {
|
|
25
|
-
gap: 'X1',
|
|
26
|
-
text: 'Become PRO',
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
color: 'white',
|
|
29
|
-
fontWeight: '500',
|
|
30
|
-
icon: {
|
|
31
|
-
name: 'star',
|
|
32
|
-
color: 'yellow'
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
child: {
|
|
36
|
-
background: 'black .65',
|
|
37
|
-
round: 'Z',
|
|
38
|
-
size: 'Z',
|
|
39
|
-
padding: 'Z A2',
|
|
40
|
-
text: '1 month free',
|
|
41
|
-
opacity: '.85'
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const component = {
|
|
46
|
-
extend: KangorooButton,
|
|
47
|
-
|
|
48
|
-
props,
|
|
49
|
-
|
|
50
|
-
label: {},
|
|
51
|
-
child: {}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const code = ``
|
|
55
|
-
|
|
56
|
-
const settings = {
|
|
57
|
-
gridOptions: { colspan: 5, rowspan: 2 }
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export default {
|
|
61
|
-
key,
|
|
62
|
-
title,
|
|
63
|
-
description,
|
|
64
|
-
category,
|
|
65
|
-
extend,
|
|
66
|
-
|
|
67
|
-
component,
|
|
68
|
-
code,
|
|
69
|
-
state,
|
|
70
|
-
props,
|
|
71
|
-
|
|
72
|
-
settings,
|
|
73
|
-
interactivity: ['click'],
|
|
74
|
-
dataTypes: ['object']
|
|
75
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { KangorooButton } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'button-theme-switcher'
|
|
8
|
-
const title = 'Theme Switcher'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[1]
|
|
11
|
-
const extend = 'KangorooButton'
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {
|
|
15
|
-
round: 'C',
|
|
16
|
-
padding: 'V2 V2 V2 A1',
|
|
17
|
-
gap: 'Z1',
|
|
18
|
-
depth: 16,
|
|
19
|
-
fontWeight: '500',
|
|
20
|
-
|
|
21
|
-
label: {
|
|
22
|
-
gap: 'X1',
|
|
23
|
-
text: 'Light Mode',
|
|
24
|
-
padding: 'Z2 X',
|
|
25
|
-
icon: {
|
|
26
|
-
color: 'yellow',
|
|
27
|
-
name: 'sun'
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
child: {
|
|
32
|
-
gap: 'X1',
|
|
33
|
-
round: 'C',
|
|
34
|
-
text: 'Dark Mode',
|
|
35
|
-
background: 'black .95',
|
|
36
|
-
color: 'white',
|
|
37
|
-
padding: 'Z2 A2',
|
|
38
|
-
icon: {
|
|
39
|
-
color: 'yellow',
|
|
40
|
-
name: 'moon'
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const component = {
|
|
46
|
-
extend: KangorooButton,
|
|
47
|
-
|
|
48
|
-
props,
|
|
49
|
-
|
|
50
|
-
label: {},
|
|
51
|
-
child: {}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const code = ``
|
|
55
|
-
|
|
56
|
-
const settings = {
|
|
57
|
-
gridOptions: { colspan: 5, rowspan: 2 }
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export default {
|
|
61
|
-
key,
|
|
62
|
-
title,
|
|
63
|
-
description,
|
|
64
|
-
category,
|
|
65
|
-
component,
|
|
66
|
-
extend,
|
|
67
|
-
|
|
68
|
-
code,
|
|
69
|
-
state,
|
|
70
|
-
props,
|
|
71
|
-
settings,
|
|
72
|
-
interactivity: [],
|
|
73
|
-
dataTypes: []
|
|
74
|
-
}
|
package/.symbols/categories.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
export const CATEGORIES = [
|
|
4
|
-
{
|
|
5
|
-
key: 'basic',
|
|
6
|
-
text: 'Basic'
|
|
7
|
-
}, {
|
|
8
|
-
key: 'button',
|
|
9
|
-
text: 'Button'
|
|
10
|
-
}, {
|
|
11
|
-
key: 'form',
|
|
12
|
-
text: 'Form'
|
|
13
|
-
}, {
|
|
14
|
-
key: 'navigation',
|
|
15
|
-
text: 'Navigation'
|
|
16
|
-
}, {
|
|
17
|
-
key: 'notification',
|
|
18
|
-
text: 'Notification'
|
|
19
|
-
}, {
|
|
20
|
-
key: 'dropdown',
|
|
21
|
-
text: 'Dropdown'
|
|
22
|
-
}, {
|
|
23
|
-
key: 'badge',
|
|
24
|
-
text: 'Badge'
|
|
25
|
-
}, {
|
|
26
|
-
key: 'datepicker',
|
|
27
|
-
text: 'Datepicker'
|
|
28
|
-
}, {
|
|
29
|
-
key: 'tooltip',
|
|
30
|
-
text: 'Tooltip'
|
|
31
|
-
}, {
|
|
32
|
-
key: 'table',
|
|
33
|
-
text: 'Table'
|
|
34
|
-
}, {
|
|
35
|
-
key: 'toggle',
|
|
36
|
-
text: 'Toggle'
|
|
37
|
-
}, {
|
|
38
|
-
key: 'user',
|
|
39
|
-
text: 'User'
|
|
40
|
-
}, {
|
|
41
|
-
key: 'misc',
|
|
42
|
-
text: 'Miscellaneous'
|
|
43
|
-
}
|
|
44
|
-
]
|
package/.symbols/components.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { codify } from '@symbo.ls/utils'
|
|
4
|
-
|
|
5
|
-
import Button from './button'
|
|
6
|
-
import CircleButton from './button-circle'
|
|
7
|
-
import ButtonPro from './button-pro'
|
|
8
|
-
import ButtonAllStar from './button-all-star'
|
|
9
|
-
import User from './user'
|
|
10
|
-
import UserBundle from './user-bundle'
|
|
11
|
-
import ButtonThemeSwitcher from './button-theme-switcher'
|
|
12
|
-
import Notification from './notification'
|
|
13
|
-
import DropdownList from './dropdown'
|
|
14
|
-
import Label from './label'
|
|
15
|
-
import Datepicker from './datepicker'
|
|
16
|
-
import Field from './field'
|
|
17
|
-
import Tooltip from './tooltip'
|
|
18
|
-
import Pills from './pills'
|
|
19
|
-
|
|
20
|
-
const components = {
|
|
21
|
-
Button,
|
|
22
|
-
CircleButton,
|
|
23
|
-
UserBundle,
|
|
24
|
-
ButtonPro,
|
|
25
|
-
ButtonAllStar,
|
|
26
|
-
User,
|
|
27
|
-
ButtonThemeSwitcher,
|
|
28
|
-
Notification,
|
|
29
|
-
DropdownList,
|
|
30
|
-
Label,
|
|
31
|
-
Datepicker,
|
|
32
|
-
Field,
|
|
33
|
-
Tooltip,
|
|
34
|
-
Pills
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const COMPONENTS = Object.keys(components).map(key => {
|
|
38
|
-
const item = components[key]
|
|
39
|
-
const { props } = item
|
|
40
|
-
const code = codify(item.extend, props)
|
|
41
|
-
return { ...item, code }
|
|
42
|
-
})
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { DatePicker } from 'smbls'
|
|
6
|
-
|
|
7
|
-
import style from './style'
|
|
8
|
-
|
|
9
|
-
const key = 'datepicker'
|
|
10
|
-
const title = 'DatePicker'
|
|
11
|
-
const description = ''
|
|
12
|
-
const category = CATEGORIES[7]
|
|
13
|
-
const extend = 'DatePicker'
|
|
14
|
-
|
|
15
|
-
const state = {}
|
|
16
|
-
const props = {
|
|
17
|
-
background: '--theme-quinary-dark-background',
|
|
18
|
-
style: {
|
|
19
|
-
backdropFilter: 'blur(3px)',
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const component = {
|
|
24
|
-
style,
|
|
25
|
-
extend: DatePicker,
|
|
26
|
-
props,
|
|
27
|
-
aside: {
|
|
28
|
-
cnt: {
|
|
29
|
-
$setStateCollection: () => {
|
|
30
|
-
return new Array(30).fill(undefined).map((_, i) => (2022 - i)).reverse()
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const code = `{}`
|
|
37
|
-
|
|
38
|
-
const settings = {
|
|
39
|
-
gridOptions: { colspan: 7, rowspan: 5 }
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default {
|
|
43
|
-
key,
|
|
44
|
-
title,
|
|
45
|
-
description,
|
|
46
|
-
category,
|
|
47
|
-
extend,
|
|
48
|
-
component,
|
|
49
|
-
code,
|
|
50
|
-
state,
|
|
51
|
-
props,
|
|
52
|
-
settings,
|
|
53
|
-
interactivity: ['click', 'choose'],
|
|
54
|
-
dataTypes: ['date']
|
|
55
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { DropdownList } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'dropdown'
|
|
8
|
-
const title = 'Dropdown List'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[5]
|
|
11
|
-
const extend = 'DropdownList'
|
|
12
|
-
|
|
13
|
-
const state = {
|
|
14
|
-
active: '1'
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const props = {
|
|
18
|
-
theme: 'quaternary',
|
|
19
|
-
round: 'A'
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const component = {
|
|
23
|
-
extend: DropdownList,
|
|
24
|
-
state,
|
|
25
|
-
props,
|
|
26
|
-
|
|
27
|
-
$setCollection: () => [
|
|
28
|
-
{ span: { text: 'Today' } } ,
|
|
29
|
-
{ span: { text: 'Yesterday' } } ,
|
|
30
|
-
{ span: { text: 'A week age' } } ,
|
|
31
|
-
{ span: { text: 'A month ago' } }
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
childExtend: {
|
|
35
|
-
on: {
|
|
36
|
-
click: (event, element, state) => {
|
|
37
|
-
state.update({ active: element.key })
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const code = `{}`
|
|
44
|
-
const settings = {
|
|
45
|
-
gridOptions: { colspan: 5, rowspan: 5 }
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export default {
|
|
49
|
-
key,
|
|
50
|
-
title,
|
|
51
|
-
description,
|
|
52
|
-
category,
|
|
53
|
-
extend,
|
|
54
|
-
|
|
55
|
-
component,
|
|
56
|
-
code,
|
|
57
|
-
state,
|
|
58
|
-
props,
|
|
59
|
-
|
|
60
|
-
settings,
|
|
61
|
-
interactivity: [],
|
|
62
|
-
dataTypes: []
|
|
63
|
-
}
|
package/.symbols/field/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { Field, Input } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'field'
|
|
8
|
-
const title = 'Field'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[2]
|
|
11
|
-
const extend = 'Input'
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {
|
|
15
|
-
placeholder: 'Text in me'
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const component = {
|
|
19
|
-
extend: Input,
|
|
20
|
-
props
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const code = ``
|
|
24
|
-
|
|
25
|
-
const settings = {
|
|
26
|
-
gridOptions: { colspan: 4, rowspan: 2 }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default {
|
|
30
|
-
key,
|
|
31
|
-
title,
|
|
32
|
-
description,
|
|
33
|
-
category,
|
|
34
|
-
component,
|
|
35
|
-
extend,
|
|
36
|
-
|
|
37
|
-
code,
|
|
38
|
-
state,
|
|
39
|
-
props,
|
|
40
|
-
settings,
|
|
41
|
-
interactivity: ['input'],
|
|
42
|
-
dataTypes: ['string']
|
|
43
|
-
}
|
package/.symbols/index.js
DELETED
package/.symbols/label/index.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { Label } from '@symbo.ls/components'
|
|
6
|
-
|
|
7
|
-
const key = 'label'
|
|
8
|
-
const title = 'Label'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[0]
|
|
11
|
-
const extend = 'Label'
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {
|
|
15
|
-
text: state.value
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const component = {
|
|
19
|
-
extend: Label,
|
|
20
|
-
state: { value: 2 },
|
|
21
|
-
props,
|
|
22
|
-
on: {
|
|
23
|
-
click: (ev, { state }) => {
|
|
24
|
-
state.update({ value: state.value + 1 })
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const code = ``
|
|
30
|
-
|
|
31
|
-
const settings = {
|
|
32
|
-
gridOptions: { colspan: 3, rowspan: 2 }
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default {
|
|
36
|
-
key,
|
|
37
|
-
title,
|
|
38
|
-
description,
|
|
39
|
-
category,
|
|
40
|
-
component,
|
|
41
|
-
code,
|
|
42
|
-
state,
|
|
43
|
-
props,
|
|
44
|
-
settings,
|
|
45
|
-
interactivity: [],
|
|
46
|
-
dataTypes: []
|
|
47
|
-
}
|
package/.symbols/library.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import * as lib from '@symbo.ls/components/src/allImports'
|
|
4
|
-
|
|
5
|
-
import { deepMerge } from '@domql/utils'
|
|
6
|
-
|
|
7
|
-
const define = {
|
|
8
|
-
default: {
|
|
9
|
-
settings: {
|
|
10
|
-
gridOptions: { colspan: 3, rowspan: 2 }
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
ButtonTitle: {
|
|
14
|
-
props: {
|
|
15
|
-
iconBox: {
|
|
16
|
-
icon: { name: 'checkmark' }
|
|
17
|
-
},
|
|
18
|
-
title: {
|
|
19
|
-
text: 'screen'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
settings: {
|
|
23
|
-
gridOptions: { colspan: 3, rowspan: 2 }
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
WiderButton: {
|
|
27
|
-
props: {
|
|
28
|
-
icon: { name: 'color outline' }
|
|
29
|
-
},
|
|
30
|
-
settings: {
|
|
31
|
-
gridOptions: { colspan: 3, rowspan: 2 }
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
AccessibilityCheck: {
|
|
35
|
-
settings: {
|
|
36
|
-
gridOptions: { colspan: 8, rowspan: 2 }
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
Upload: {
|
|
40
|
-
settings: {
|
|
41
|
-
gridOptions: { colspan: 5, rowspan: 2 }
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
TestText: {
|
|
45
|
-
settings: {
|
|
46
|
-
gridOptions: { colspan: 6, rowspan: 2 }
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
Platforms: {
|
|
50
|
-
settings: {
|
|
51
|
-
gridOptions: { colspan: 5, rowspan: 2 }
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
DeviceButtonSet: {
|
|
55
|
-
settings: {
|
|
56
|
-
gridOptions: { colspan: 6, rowspan: 2 }
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
SearchHeader: {
|
|
60
|
-
settings: {
|
|
61
|
-
gridOptions: { colspan: 8, rowspan: 2 }
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
Search: {
|
|
65
|
-
settings: {
|
|
66
|
-
gridOptions: { colspan: 4 }
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
CodePreview: {
|
|
70
|
-
settings: {
|
|
71
|
-
gridOptions: { colspan: 4, rowspan: 4 }
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
StateDesignElement: {
|
|
75
|
-
settings: {
|
|
76
|
-
gridOptions: { colspan: 3, rowspan: 2 }
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// export const LIBRARY = []
|
|
82
|
-
|
|
83
|
-
export const LIBRARY = Object.keys(lib).map(key => {
|
|
84
|
-
const component = lib[key]
|
|
85
|
-
const base = define[key] || define.default
|
|
86
|
-
return deepMerge({
|
|
87
|
-
key,
|
|
88
|
-
component: { extend: component },
|
|
89
|
-
props: {},
|
|
90
|
-
code: { react: 'private', domql: 'private' }
|
|
91
|
-
}, base)
|
|
92
|
-
})
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { Notification } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'notification'
|
|
8
|
-
const title = 'Notification'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[4]
|
|
11
|
-
const extend = 'Notification'
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {
|
|
15
|
-
theme: 'alert'
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const component = {
|
|
19
|
-
extend: Notification,
|
|
20
|
-
props
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const code = ``
|
|
24
|
-
|
|
25
|
-
const settings = {
|
|
26
|
-
gridOptions: { colspan: 4, rowspan: 2 }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default {
|
|
30
|
-
key,
|
|
31
|
-
title,
|
|
32
|
-
description,
|
|
33
|
-
category,
|
|
34
|
-
extend,
|
|
35
|
-
component,
|
|
36
|
-
|
|
37
|
-
code,
|
|
38
|
-
state,
|
|
39
|
-
props,
|
|
40
|
-
settings,
|
|
41
|
-
interactivity: [],
|
|
42
|
-
dataTypes: []
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// {
|
|
46
|
-
// "key": "notification",
|
|
47
|
-
// "title": "Symbols notification",
|
|
48
|
-
// "description": ,
|
|
49
|
-
// "category": ,
|
|
50
|
-
// "component": ,
|
|
51
|
-
// "code": ,
|
|
52
|
-
// "state": ,
|
|
53
|
-
// "props": ,
|
|
54
|
-
// "settings": ,
|
|
55
|
-
// "interactivity": [],
|
|
56
|
-
// "dataTypes": []
|
|
57
|
-
// }
|
package/.symbols/pills/index.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { Pills } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'pills'
|
|
8
|
-
const title = 'Pills'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[CATEGORIES.length - 1]
|
|
11
|
-
const extend = 'Pills'
|
|
12
|
-
|
|
13
|
-
const state = { active: 1 }
|
|
14
|
-
const props = {}
|
|
15
|
-
|
|
16
|
-
const component = {
|
|
17
|
-
extend: Pills,
|
|
18
|
-
state,
|
|
19
|
-
...[{}, {}, {}, {}, {}]
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const code = `{}`
|
|
23
|
-
|
|
24
|
-
const settings = {
|
|
25
|
-
gridOptions: { colspan: 3, rowspan: 2 }
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
key,
|
|
30
|
-
title,
|
|
31
|
-
description,
|
|
32
|
-
category,
|
|
33
|
-
component,
|
|
34
|
-
extend,
|
|
35
|
-
|
|
36
|
-
code,
|
|
37
|
-
state,
|
|
38
|
-
props,
|
|
39
|
-
settings,
|
|
40
|
-
interactivity: [],
|
|
41
|
-
dataTypes: []
|
|
42
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { Tooltip } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'tooltip'
|
|
8
|
-
const title = 'Tooltip'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[8]
|
|
11
|
-
const extend = 'Tooltip'
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {}
|
|
15
|
-
|
|
16
|
-
const component = {
|
|
17
|
-
extend: Tooltip
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const code = ``
|
|
21
|
-
|
|
22
|
-
const settings = {
|
|
23
|
-
gridOptions: { colspan: 4, rowspan: 2 }
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default {
|
|
27
|
-
key,
|
|
28
|
-
title,
|
|
29
|
-
description,
|
|
30
|
-
category,
|
|
31
|
-
extend,
|
|
32
|
-
|
|
33
|
-
component,
|
|
34
|
-
code,
|
|
35
|
-
state,
|
|
36
|
-
props,
|
|
37
|
-
|
|
38
|
-
settings,
|
|
39
|
-
interactivity: [],
|
|
40
|
-
dataTypes: []
|
|
41
|
-
}
|
package/.symbols/user/index.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
|
|
5
|
-
import { Button, User } from 'smbls'
|
|
6
|
-
|
|
7
|
-
const key = 'user'
|
|
8
|
-
const title = 'User Button'
|
|
9
|
-
const description = ''
|
|
10
|
-
const category = CATEGORIES[1]
|
|
11
|
-
const extend = 'User'
|
|
12
|
-
|
|
13
|
-
const state = {}
|
|
14
|
-
const props = {
|
|
15
|
-
size: 'A',
|
|
16
|
-
round: 'C',
|
|
17
|
-
depth: 16,
|
|
18
|
-
gap: 'Y',
|
|
19
|
-
padding: 'W2 A W2 W2',
|
|
20
|
-
theme: 'quaternary',
|
|
21
|
-
|
|
22
|
-
position: 'relative',
|
|
23
|
-
cursor: 'pointer',
|
|
24
|
-
|
|
25
|
-
user: {
|
|
26
|
-
boxSize: 'B1 B1',
|
|
27
|
-
pointerEvents: 'none'
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
select: {
|
|
31
|
-
outline: 'none',
|
|
32
|
-
pointerEvents: 'all',
|
|
33
|
-
appearance: 'none',
|
|
34
|
-
border: 'none',
|
|
35
|
-
width: '100%',
|
|
36
|
-
height: '100%',
|
|
37
|
-
background: 'none',
|
|
38
|
-
color: 'currentColor',
|
|
39
|
-
fontSize: 'A',
|
|
40
|
-
lineHeight: 1,
|
|
41
|
-
margin: '0 0 0 -B1+X',
|
|
42
|
-
padding: '0 A 0 B1+X'
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const component = {
|
|
47
|
-
extend: Button,
|
|
48
|
-
tag: 'label',
|
|
49
|
-
|
|
50
|
-
props,
|
|
51
|
-
|
|
52
|
-
user: { extend: User },
|
|
53
|
-
select: {
|
|
54
|
-
attr: { name: 'user', id: 'user' },
|
|
55
|
-
childExtend: { tag: 'option', text: ({ state }) => state.text },
|
|
56
|
-
$setCollection: () => [
|
|
57
|
-
{ text: 'Kevin' },
|
|
58
|
-
{ text: 'Jay' }
|
|
59
|
-
],
|
|
60
|
-
on: {
|
|
61
|
-
change: (ev, { parent }) => {
|
|
62
|
-
parent.user.update({ key: ev.target.value })
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const code = ``
|
|
69
|
-
|
|
70
|
-
const settings = {
|
|
71
|
-
gridOptions: { colspan: 4, rowspan: 2 }
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export default {
|
|
75
|
-
key,
|
|
76
|
-
title,
|
|
77
|
-
description,
|
|
78
|
-
category,
|
|
79
|
-
extend,
|
|
80
|
-
|
|
81
|
-
component,
|
|
82
|
-
code,
|
|
83
|
-
state,
|
|
84
|
-
props,
|
|
85
|
-
|
|
86
|
-
settings,
|
|
87
|
-
interactivity: [],
|
|
88
|
-
dataTypes: []
|
|
89
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { CATEGORIES } from '../categories'
|
|
4
|
-
import style from './style'
|
|
5
|
-
|
|
6
|
-
import { UserBundle } from 'smbls'
|
|
7
|
-
|
|
8
|
-
const key = 'user-bundle'
|
|
9
|
-
const title = 'Contacts Button'
|
|
10
|
-
const description = ''
|
|
11
|
-
const category = CATEGORIES[1]
|
|
12
|
-
const extend = 'UserBundle'
|
|
13
|
-
|
|
14
|
-
const state = {}
|
|
15
|
-
const props = {}
|
|
16
|
-
|
|
17
|
-
const component = {
|
|
18
|
-
extend: UserBundle,
|
|
19
|
-
...[{}, {}, {}]
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const code = ``
|
|
23
|
-
|
|
24
|
-
const settings = {
|
|
25
|
-
gridOptions: { colspan: 3, rowspan: 2 }
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
key,
|
|
30
|
-
title,
|
|
31
|
-
description,
|
|
32
|
-
category,
|
|
33
|
-
extend,
|
|
34
|
-
|
|
35
|
-
component,
|
|
36
|
-
code,
|
|
37
|
-
state,
|
|
38
|
-
props,
|
|
39
|
-
|
|
40
|
-
settings,
|
|
41
|
-
interactivity: [],
|
|
42
|
-
dataTypes: []
|
|
43
|
-
}
|