@symbo.ls/preview 0.0.97 → 2.0.7
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/README.md +19 -0
- package/app.webmanifest +4 -0
- package/index.html +14 -4
- package/netlify.toml +19 -0
- package/package.json +32 -32
- package/protect-pwd.js +65 -0
- package/src/animations.js +71 -0
- package/src/app.js +68 -30
- package/src/assets/dots.png +0 -0
- package/src/assets/dotsDark.png +0 -0
- package/src/config/index.js +31 -12
- package/src/config/theme.js +71 -1
- package/src/data/Symbols.sketch +0 -0
- package/src/data/_Symbols.sketch/document.json +1 -0
- package/src/data/_Symbols.sketch/fonts/6c9956fc8970ec3d8268c3f286afe19d954fc40b +0 -0
- package/src/data/_Symbols.sketch/fonts/750e9b005158d57108ebbcf288e2582f078d6735 +0 -0
- package/src/data/_Symbols.sketch/fonts/86c45cb69ad4ba2a8e6d0b81f20964b33f4eca6c +0 -0
- package/src/data/_Symbols.sketch/fonts/f97cec7aed309ec77b4fd3005d1a3e0d86c2a7b9 +0 -0
- package/src/data/_Symbols.sketch/images/0427bc225ee7dc33db78252defd5b2e4cd5b7467.png +0 -0
- package/src/data/_Symbols.sketch/images/0c4846cdd2f11ffb23c9ce063380fc934f7a11ea.png +0 -0
- package/src/data/_Symbols.sketch/images/55d3f5e93869fbd70e8dfbca1ce3dfa0cc9f2dbe.png +0 -0
- package/src/data/_Symbols.sketch/images/67ae1583a9d77eec7106f5016f48b5594a02b3f6.png +0 -0
- package/src/data/_Symbols.sketch/images/7152b3ea22388d53052d0212995a1805527ea862.png +0 -0
- package/src/data/_Symbols.sketch/images/72f1896a8462385fd596bc35f240382ba15814fc.png +0 -0
- package/src/data/_Symbols.sketch/images/73e4245b1f867343001657193ff2318c9cf2ef53.png +0 -0
- package/src/data/_Symbols.sketch/images/7b89dae77676fb4cfd072e0830cff9c27afd11c6.png +0 -0
- package/src/data/_Symbols.sketch/images/811e2b516575d3b4e7709dfef6369bce7dae0a26.png +0 -0
- package/src/data/_Symbols.sketch/images/82d006789579f2ee1fa45c9116f7cd7dd1bcbe37.png +0 -0
- package/src/data/_Symbols.sketch/images/8a896270aa4da8e2401d0ea76e46dc9b9125e59a.png +0 -0
- package/src/data/_Symbols.sketch/images/966688c4a579283836f15ab69c8b76e11b236ff5.png +0 -0
- package/src/data/_Symbols.sketch/images/b903a498e1d438e8bb12de5422f732c717b79eff.png +0 -0
- package/src/data/_Symbols.sketch/images/b9f3cae81a855e21ae75185dcb6ae6551c5447f1.png +0 -0
- package/src/data/_Symbols.sketch/images/cd0f908410abf4cad7a4501539eb0711c41a182f.png +0 -0
- package/src/data/_Symbols.sketch/images/d54f15f130ba4f1d4ad56f03c01ac06fe0ab4f56.png +0 -0
- package/src/data/_Symbols.sketch/images/df5a20029363f95abc58b2c8972e1417d84c8aa7.png +0 -0
- package/src/data/_Symbols.sketch/images/e889546970c931244400c2f70412c39123029cb3.png +0 -0
- package/src/data/_Symbols.sketch/images/f420a7a2beb15bee5d2ecbba8f296c6d4b22dfa3.png +0 -0
- package/src/data/_Symbols.sketch/meta.json +1 -0
- package/src/data/_Symbols.sketch/pages/31D11772-FB33-42EC-A3CC-79F63922E04D.json +1 -0
- package/src/data/_Symbols.sketch/pages/35BD91AD-F0ED-4002-891D-F1B3250E88C1.json +1 -0
- package/src/data/_Symbols.sketch/pages/4831AF31-ECB8-4DA6-B4D0-C1095D42146C.json +1 -0
- package/src/data/_Symbols.sketch/pages/6FCC0155-B3F4-4792-892E-523D45315AFD.json +1 -0
- package/src/data/_Symbols.sketch/pages/7996D5DD-C5B2-4EE7-9DE8-2C05E2ACA9F3.json +1 -0
- package/src/data/_Symbols.sketch/pages/B314C0F3-0038-473F-A127-536AF28E5272.json +1 -0
- package/src/data/_Symbols.sketch/pages/B6798E64-F7E9-40F5-9BD0-88A548478438.json +1 -0
- package/src/data/_Symbols.sketch/pages/B9B28DF3-EDC2-4D5B-A412-12B3B2E7DE58.json +1 -0
- package/src/data/_Symbols.sketch/pages/CA6E47E4-DAF7-4D1D-8DDC-D5A60508D9A0.json +1 -0
- package/src/data/_Symbols.sketch/pages/D6F5EB10-9D31-47AC-9077-1CE8CB2C2448.json +1 -0
- package/src/data/_Symbols.sketch/previews/preview.png +0 -0
- package/src/data/_Symbols.sketch/user.json +1 -0
- package/src/data/categories.js +44 -0
- package/src/data/components/button-archived/index.js +63 -0
- package/src/data/components/button-archived/style.js +5 -0
- package/src/data/components/button-circle/index.js +54 -0
- package/src/data/components/button-contacts/index.js +56 -0
- package/src/data/components/button-contacts/style.js +13 -0
- package/src/data/components/button-download/index.js +63 -0
- package/src/data/components/button-pro/index.js +98 -0
- package/src/data/components/button-pro/style.js +19 -0
- package/src/data/components/button-theme-switcher/index.js +104 -0
- package/src/data/components/button-theme-switcher/style.js +16 -0
- package/src/data/components/button-user/index.js +82 -0
- package/src/data/components/button-user/style.js +25 -0
- package/src/data/components/datepicker/index.js +40 -0
- package/src/data/components/datepicker/style.js +4 -0
- package/src/data/components/dropdown-list/index.js +56 -0
- package/src/data/components/field/index.js +40 -0
- package/src/data/components/index.js +34 -0
- package/src/data/components/label/index.js +40 -0
- package/src/data/components/notification/index.js +55 -0
- package/src/data/components/notification/style.js +20 -0
- package/src/data/components/pills/index.js +37 -0
- package/src/data/components/tooltip/index.js +38 -0
- package/src/data/index.js +3 -0
- package/src/data/library/button-circle/index.js +52 -0
- package/src/data/library/button-join/index.js +61 -0
- package/src/data/library/family-bundle/index.js +99 -0
- package/src/data/library/family-bundle/style.js +27 -0
- package/src/data/library/index.js +15 -0
- package/src/data/library/join-class/index.js +45 -0
- package/src/data/library/parent-mode/index.js +69 -0
- package/src/data/library/parent-mode/style.js +25 -0
- package/src/index.html +57 -0
- package/src/index.js +7 -0
- package/src/pages/Account/index.js +147 -17
- package/src/pages/Account/{__/setUpProject.js → setUpProject.js} +10 -10
- package/src/pages/Color/colors.js +58 -0
- package/src/pages/Color/documentThemes.js +101 -0
- package/src/pages/Color/index.js +10 -7
- package/src/pages/Color/style.js +7 -0
- package/src/pages/Color/themes.js +117 -23
- package/src/pages/ColorEditor/colorTone.js +163 -0
- package/src/pages/{Theme → ColorEditor}/friendTheme.js +3 -3
- package/src/pages/ColorEditor/index.js +178 -0
- package/src/pages/{Theme → ColorEditor}/interactivity.js +7 -6
- package/src/pages/{Theme → ColorEditor}/style.js +12 -1
- package/src/pages/{Theme → ColorEditor}/themingTools.js +12 -12
- package/src/pages/Editor/index.js +9 -7
- package/src/pages/Editor/layers.js +14 -14
- package/src/pages/Editor/scene.js +9 -7
- package/src/pages/Editor/tools.js +22 -22
- package/{.legacy → src/pages/Export}/_tools_old.js +6 -7
- package/src/pages/Export/const.js +4 -3
- package/src/pages/Export/description.js +87 -58
- package/src/pages/Export/header.js +37 -0
- package/src/pages/Export/index.js +39 -48
- package/src/pages/Export/scene.js +61 -98
- package/src/pages/Export/state.js +5 -11
- package/src/pages/Export/style.js +28 -0
- package/src/pages/Export/tools.js +86 -41
- package/src/pages/Icons/index.js +69 -73
- package/src/pages/Icons/style.js +18 -0
- package/src/pages/Library/index.js +47 -24
- package/src/pages/Library/style.js +43 -0
- package/src/pages/PageProto.js +26 -0
- package/src/pages/Shapes/index.js +204 -54
- package/src/pages/Shapes/style.js +28 -0
- package/src/pages/Spaces/boxModel.js +3 -0
- package/src/pages/Spaces/index.js +47 -23
- package/{.legacy → src/pages/Spaces}/preview.js +14 -14
- package/src/pages/Spaces/sequence.js +1 -30
- package/src/pages/Spaces/state.js +14 -12
- package/{.legacy → src/pages/Spaces}/style.js +3 -0
- package/src/pages/Typography/docFonts.js +128 -0
- package/src/pages/Typography/docStyles.js +97 -0
- package/src/pages/Typography/index.js +36 -28
- package/src/pages/Typography/shared.js +3 -2
- package/src/pages/Typography/state.js +8 -9
- package/src/pages/Typography/style.js +11 -0
- package/src/pages/Typography/typeScale.js +82 -63
- package/src/pages/index.js +23 -15
- package/src/protect.js +114 -0
- package/src/state.js +3 -0
- package/src/style.js +12 -15
- package/src/test.js +30 -0
- package/svgSprite.config.js +1 -2
- package/test/index.test.js +5 -0
- package/.legacy/index copy.js +0 -45
- package/.vscode/extensions.json +0 -5
- package/index.js +0 -44
- package/src/assets/dark.png +0 -0
- package/src/assets/mask1.png +0 -0
- package/src/assets/mask2.png +0 -0
- package/src/assets/shapes.png +0 -0
- package/src/assets/space.png +0 -0
- package/src/assets/type.png +0 -0
- package/src/components/Aside.js +0 -101
- package/src/components/Banner.js +0 -58
- package/src/components/ColorText.js +0 -29
- package/src/components/ColorsPalette.js +0 -69
- package/src/components/ColumnParagrphs.js +0 -23
- package/src/components/ContinueButton.js +0 -14
- package/src/components/DesignComponent.js +0 -80
- package/src/components/FontText.js +0 -193
- package/src/components/Header.js +0 -50
- package/src/components/HeaderHeading.js +0 -23
- package/src/components/IconsGroup.js +0 -60
- package/src/components/Page.js +0 -135
- package/src/components/ResponsivePreview.js +0 -44
- package/src/components/Route.js +0 -1
- package/src/components/ShapePreview.js +0 -63
- package/src/components/ShapeSet.js +0 -85
- package/src/components/SlidersWithResponsive.js +0 -23
- package/src/components/SpacingButton/actionButtons.js +0 -41
- package/src/components/SpacingButton/dropdown.js +0 -114
- package/src/components/SpacingButton/index.js +0 -248
- package/src/components/SpacingButton/props.js +0 -45
- package/src/components/SpacingPreview.js +0 -154
- package/src/components/SpacingTable.js +0 -210
- package/src/components/ThemeButtons.js +0 -42
- package/src/components/UploadImage.js +0 -61
- package/src/components/Widget.js +0 -1
- package/src/components/index.js +0 -25
- package/src/pages/Account/__/index.js +0 -241
- package/src/pages/Color/globalThemes.js +0 -30
- package/src/pages/Color/palette.js +0 -35
- package/src/pages/Components/grid.js +0 -99
- package/src/pages/Components/index.js +0 -37
- package/src/pages/Components/sidebar.js +0 -28
- package/src/pages/Components/style.js +0 -16
- package/src/pages/DesignSystem/Dashboard/banners.js +0 -38
- package/src/pages/DesignSystem/Dashboard/designElements.js +0 -124
- package/src/pages/DesignSystem/Dashboard/index.js +0 -22
- package/src/pages/DesignSystem/Dashboard/quickstart.js +0 -86
- package/src/pages/DesignSystem/Dashboard/state.js +0 -118
- package/src/pages/DesignSystem/Dashboard/summary.js +0 -40
- package/src/pages/DesignSystem/index.js +0 -187
- package/src/pages/Export/gist.js +0 -23
- package/src/pages/Fonts/fontFaces.js +0 -50
- package/src/pages/Fonts/fontFamilies.js +0 -47
- package/src/pages/Fonts/index.js +0 -15
- package/src/pages/Fonts/state.js +0 -5
- package/src/pages/Init/ChooseEnvironment.js +0 -104
- package/src/pages/Init/CreateDocumentTheme.js +0 -166
- package/src/pages/Init/CreatePalette.js +0 -72
- package/src/pages/Init/FontText.js +0 -23
- package/src/pages/Init/Personalize/fields.js +0 -109
- package/src/pages/Init/Personalize/icon.js +0 -42
- package/src/pages/Init/Personalize/index.js +0 -37
- package/src/pages/Init/index.js +0 -36
- package/src/pages/Library/disabled.js +0 -38
- package/src/pages/MediaQuery/index.js +0 -46
- package/src/pages/MediaQuery/lists.js +0 -285
- package/src/pages/MediaQuery/state.js +0 -150
- package/src/pages/MediaQuery/typeScale.js +0 -69
- package/src/pages/Shapes/shapeSet.js +0 -133
- package/src/pages/State/index.js +0 -86
- package/src/pages/Theme/index.js +0 -197
- package/src/pages/Theme/preview.js +0 -153
- package/src/pages/Typography/collection.js +0 -110
- package/src/pages/Typography/documentStyles.js +0 -125
- package/src/pages/Typography/rangeButtons.js +0 -58
- package/src/pages/Typography/stylesHelpers.js +0 -30
- /package/{.legacy/boxModel.js → src/data/favorites.js} +0 -0
- /package/{.legacy/sequence.js → src/data/filters.js} +0 -0
- /package/src/pages/{Theme → ColorEditor}/ntc.js +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ComponentTemplate,
|
|
5
|
-
Grid,
|
|
6
|
-
SectionHeader
|
|
7
|
-
} from '@symbo.ls/components'
|
|
8
|
-
import { COMPONENTS } from '@symbo.ls/temp-db/symbols'
|
|
9
|
-
import { gridStyle, rowStyle } from './style'
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
props: {
|
|
13
|
-
padding: '0 Y2',
|
|
14
|
-
flex: 1
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
header: {
|
|
18
|
-
extend: SectionHeader,
|
|
19
|
-
|
|
20
|
-
props: {
|
|
21
|
-
margin: '0 0 X2',
|
|
22
|
-
title: null,
|
|
23
|
-
heading: {
|
|
24
|
-
p: {
|
|
25
|
-
opacity: '0',
|
|
26
|
-
text: 'All Categories'
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
heading: {},
|
|
32
|
-
|
|
33
|
-
nav: {
|
|
34
|
-
childExtend: {
|
|
35
|
-
props: {
|
|
36
|
-
theme: 'transparent',
|
|
37
|
-
background: 'transparent 0'
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
...[{
|
|
42
|
-
props: (el, s) => ({
|
|
43
|
-
icon: { name: s.favorites ? 'star' : 'star outline' },
|
|
44
|
-
href: null
|
|
45
|
-
}),
|
|
46
|
-
on: {
|
|
47
|
-
click: (ev, el, s) => {
|
|
48
|
-
s.update({ favorites: !s.favorites })
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}, {
|
|
52
|
-
props: (el, s) => {
|
|
53
|
-
const active = s.view === 'grid'
|
|
54
|
-
return {
|
|
55
|
-
active,
|
|
56
|
-
href: null,
|
|
57
|
-
icon: { name: active ? 'grid' : 'grid outline' }
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
on: {
|
|
61
|
-
click: (ev, el, s) => {
|
|
62
|
-
s.update({ view: 'grid' })
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}, {
|
|
66
|
-
props: (el, s) => {
|
|
67
|
-
const active = s.view === 'list'
|
|
68
|
-
return {
|
|
69
|
-
active,
|
|
70
|
-
href: null,
|
|
71
|
-
icon: { name: active ? 'rows' : 'rows outline' }
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
on: {
|
|
75
|
-
click: (ev, el, s) => {
|
|
76
|
-
s.update({ view: 'list' })
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}]
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
components: {
|
|
84
|
-
extend: Grid,
|
|
85
|
-
|
|
86
|
-
props: ({ state }) => ({
|
|
87
|
-
flex: 1,
|
|
88
|
-
gap: 'A',
|
|
89
|
-
margin: '- -Y2',
|
|
90
|
-
style: state.view === 'grid' ? gridStyle : rowStyle
|
|
91
|
-
}),
|
|
92
|
-
|
|
93
|
-
childExtend: ComponentTemplate,
|
|
94
|
-
$setStateCollection: ({ state }) => COMPONENTS.filter(v => {
|
|
95
|
-
if (!state.category) return true
|
|
96
|
-
return state.category === v.category.key
|
|
97
|
-
})
|
|
98
|
-
}
|
|
99
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { splitRoute } from 'domql/packages/router'
|
|
4
|
-
|
|
5
|
-
import sidebar from './sidebar'
|
|
6
|
-
import grid from './grid'
|
|
7
|
-
|
|
8
|
-
import { CATEGORIES } from '@symbo.ls/temp-db/symbols/categories'
|
|
9
|
-
// import FAVORITES from '../../data/favorites'
|
|
10
|
-
// import COMPONENTS from '../../data/components'
|
|
11
|
-
|
|
12
|
-
export const Components = {
|
|
13
|
-
props: {
|
|
14
|
-
maxWidth: '100%',
|
|
15
|
-
width: '100%',
|
|
16
|
-
flexFlow: 'row',
|
|
17
|
-
flow: 'row',
|
|
18
|
-
gap: 'B1',
|
|
19
|
-
padding: 'A'
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
state: {
|
|
23
|
-
filters: {},
|
|
24
|
-
view: 'grid'
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
sidebar,
|
|
28
|
-
grid,
|
|
29
|
-
|
|
30
|
-
on: {
|
|
31
|
-
init: (el, s) => {
|
|
32
|
-
var route = splitRoute()[1]
|
|
33
|
-
var content = CATEGORIES.filter(v => v.key === route)[0]
|
|
34
|
-
s.category = content ? content.key : ''
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
FilterCategories,
|
|
5
|
-
FilterInteractivity,
|
|
6
|
-
FilterDataTypes
|
|
7
|
-
} from '@symbo.ls/components'
|
|
8
|
-
import { CATEGORIES } from '@symbo.ls/temp-db/symbols/categories'
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
sticky: {
|
|
12
|
-
props: {
|
|
13
|
-
position: 'sticky',
|
|
14
|
-
top: 'D2',
|
|
15
|
-
padding: '- - - X2'
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
categories: {
|
|
19
|
-
extend: FilterCategories,
|
|
20
|
-
header: {},
|
|
21
|
-
nav: {
|
|
22
|
-
...CATEGORIES
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
FilterInteractivity,
|
|
26
|
-
FilterDataTypes
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
export const gridStyle = {
|
|
4
|
-
gridTemplateColumns: 'repeat(12, 1fr)',
|
|
5
|
-
gridAutoFlow: 'dense',
|
|
6
|
-
justifyItems: 'stretch',
|
|
7
|
-
boxSizing: 'border-box',
|
|
8
|
-
marginBottom: '2em',
|
|
9
|
-
gridAutoColumns: 'auto',
|
|
10
|
-
gridAutoRows: 'auto'
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const rowStyle = {
|
|
14
|
-
display: 'flex',
|
|
15
|
-
flexFlow: 'row wrap'
|
|
16
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { Flex } from '@symbo.ls/components'
|
|
4
|
-
import { TutorialBanner } from '../../../components'
|
|
5
|
-
|
|
6
|
-
import DARK_PNG from '../../../assets/dark.png'
|
|
7
|
-
import TYPE_PNG from '../../../assets/type.png'
|
|
8
|
-
import SPACE_PNG from '../../../assets/space.png' // eslint-disable-line
|
|
9
|
-
import SHAPES_PNG from '../../../assets/shapes.png'
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
extend: Flex,
|
|
13
|
-
|
|
14
|
-
props: {
|
|
15
|
-
align: 'stretch space-between',
|
|
16
|
-
margin: 'C1 -Z1',
|
|
17
|
-
gap: 'B1'
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
childExtend: TutorialBanner,
|
|
21
|
-
|
|
22
|
-
$setStateCollection: ({ state }) => [{
|
|
23
|
-
title: 'Setting up a dark theme',
|
|
24
|
-
p: '15 sec tutorial',
|
|
25
|
-
background: DARK_PNG,
|
|
26
|
-
href: ''
|
|
27
|
-
}, {
|
|
28
|
-
title: 'How to composite',
|
|
29
|
-
p: '3 mins tutorial',
|
|
30
|
-
background: TYPE_PNG,
|
|
31
|
-
href: ''
|
|
32
|
-
}, {
|
|
33
|
-
title: 'Master Shapes',
|
|
34
|
-
p: '45 sec tutorial',
|
|
35
|
-
background: SHAPES_PNG,
|
|
36
|
-
href: ''
|
|
37
|
-
}]
|
|
38
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { Flex, DesignElement } from '@symbo.ls/components'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
extend: Flex,
|
|
7
|
-
|
|
8
|
-
props: {
|
|
9
|
-
flow: 'row wrap',
|
|
10
|
-
align: 'flex-start flex-start',
|
|
11
|
-
gap: 'C B2',
|
|
12
|
-
padding: 'B1 0 B2',
|
|
13
|
-
margin: '0 -Z2'
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
childExtend: {
|
|
17
|
-
extend: DesignElement,
|
|
18
|
-
props: {
|
|
19
|
-
flex: '1',
|
|
20
|
-
widthRange: 'F F'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
...[{
|
|
25
|
-
href: '/color',
|
|
26
|
-
button: {
|
|
27
|
-
theme: 'color',
|
|
28
|
-
icon: { name: 'color' }
|
|
29
|
-
},
|
|
30
|
-
heading: {
|
|
31
|
-
maxWidth: 'E1-default',
|
|
32
|
-
title: { text: 'Colors' },
|
|
33
|
-
p: { text: 'Colorize styles manually' }
|
|
34
|
-
}
|
|
35
|
-
}, {
|
|
36
|
-
href: '/theme',
|
|
37
|
-
button: {
|
|
38
|
-
theme: 'theme',
|
|
39
|
-
icon: { name: 'theme' }
|
|
40
|
-
},
|
|
41
|
-
heading: {
|
|
42
|
-
maxWidth: 'E1-default',
|
|
43
|
-
title: { text: 'Theming' },
|
|
44
|
-
p: { text: 'Color groups and states' }
|
|
45
|
-
}
|
|
46
|
-
}, {
|
|
47
|
-
href: '/typography',
|
|
48
|
-
button: {
|
|
49
|
-
theme: 'typography',
|
|
50
|
-
icon: { name: 'typography' }
|
|
51
|
-
},
|
|
52
|
-
heading: {
|
|
53
|
-
maxWidth: 'E-default',
|
|
54
|
-
title: { text: 'Typography' },
|
|
55
|
-
p: { text: 'Style a typed material' }
|
|
56
|
-
}
|
|
57
|
-
}, {
|
|
58
|
-
href: '/space',
|
|
59
|
-
button: {
|
|
60
|
-
theme: 'space',
|
|
61
|
-
icon: { name: 'space' }
|
|
62
|
-
},
|
|
63
|
-
heading: {
|
|
64
|
-
maxWidth: 'E1-default',
|
|
65
|
-
title: { text: 'Spacing' },
|
|
66
|
-
p: { text: 'Manage properties of a size' }
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
href: '/shape',
|
|
70
|
-
button: {
|
|
71
|
-
theme: 'shape',
|
|
72
|
-
icon: { name: 'shape' }
|
|
73
|
-
},
|
|
74
|
-
heading: {
|
|
75
|
-
maxWidth: 'E2-default',
|
|
76
|
-
title: { text: 'Shapes' },
|
|
77
|
-
p: { text: 'Design an outline to a component' }
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
80
|
-
href: '/icons',
|
|
81
|
-
button: {
|
|
82
|
-
theme: 'icons',
|
|
83
|
-
icon: { name: 'icons' }
|
|
84
|
-
},
|
|
85
|
-
heading: {
|
|
86
|
-
maxWidth: 'F-default',
|
|
87
|
-
title: { text: 'Icons' },
|
|
88
|
-
p: { text: 'Label a role of subject with glyphs' }
|
|
89
|
-
}
|
|
90
|
-
}, {
|
|
91
|
-
href: '/sequence',
|
|
92
|
-
button: {
|
|
93
|
-
theme: 'default',
|
|
94
|
-
icon: { name: 'state' }
|
|
95
|
-
},
|
|
96
|
-
heading: {
|
|
97
|
-
maxWidth: 'F-default',
|
|
98
|
-
title: { text: 'Sequence' },
|
|
99
|
-
p: { text: 'Generating set for measurable units' }
|
|
100
|
-
}
|
|
101
|
-
}, {
|
|
102
|
-
href: '/timing',
|
|
103
|
-
button: {
|
|
104
|
-
theme: 'default',
|
|
105
|
-
icon: { name: 'clock outline' }
|
|
106
|
-
},
|
|
107
|
-
heading: {
|
|
108
|
-
maxWidth: 'F-default',
|
|
109
|
-
title: { text: 'Timing' },
|
|
110
|
-
p: { text: 'Tokens for transitions and animations' }
|
|
111
|
-
}
|
|
112
|
-
}, {
|
|
113
|
-
href: '/media-query',
|
|
114
|
-
button: {
|
|
115
|
-
// theme: 'screen',
|
|
116
|
-
icon: { name: 'deviceSmallScreenOutline' }
|
|
117
|
-
},
|
|
118
|
-
heading: {
|
|
119
|
-
maxWidth: 'F-default',
|
|
120
|
-
title: { text: 'Media Query' },
|
|
121
|
-
p: { text: 'Frequently used media queries as variables' }
|
|
122
|
-
}
|
|
123
|
-
}].map(v => ({ props: v }))
|
|
124
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { Flex } from '@symbo.ls/components'
|
|
4
|
-
|
|
5
|
-
import banners from './banners' // eslint-disable-line no-unused-vars
|
|
6
|
-
import summary from './summary'
|
|
7
|
-
import quickstart from './quickstart'
|
|
8
|
-
|
|
9
|
-
export const DesignSystemDashboard = {
|
|
10
|
-
extend: Flex,
|
|
11
|
-
|
|
12
|
-
props: { flow: 'column', gap: 'C1' },
|
|
13
|
-
|
|
14
|
-
ArticleBig: {
|
|
15
|
-
title: { text: 'Design System' },
|
|
16
|
-
p: { text: 'Create your Design System guidelines' }
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
// banners,
|
|
20
|
-
summary,
|
|
21
|
-
quickstart
|
|
22
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const startElementProps = {
|
|
4
|
-
position: 'relative',
|
|
5
|
-
minWidth: 'G',
|
|
6
|
-
maxWidth: 'G2',
|
|
7
|
-
width: '100%',
|
|
8
|
-
note: {
|
|
9
|
-
fontSize: 'Z1',
|
|
10
|
-
color: 'gray6',
|
|
11
|
-
position: 'absolute',
|
|
12
|
-
maxWidth: '100%',
|
|
13
|
-
whiteSpace: 'initial',
|
|
14
|
-
top: '115%',
|
|
15
|
-
left: 'Z',
|
|
16
|
-
fontFamily: 'smbls'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default {
|
|
21
|
-
SectionHeader: {
|
|
22
|
-
margin: '- - B2',
|
|
23
|
-
title: 'Setting up locally',
|
|
24
|
-
p: 'This is how you initialize Symbols Design System to your local app.'
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
Flex: {
|
|
28
|
-
props: {
|
|
29
|
-
// display: 'inline-flex',
|
|
30
|
-
gap: 'D1',
|
|
31
|
-
align: 'flex-start space-between',
|
|
32
|
-
childProps: {
|
|
33
|
-
flex: '1',
|
|
34
|
-
|
|
35
|
-
Terminal: startElementProps,
|
|
36
|
-
Code: startElementProps
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
step1: {
|
|
41
|
-
extend: 'QuickStartTerminal',
|
|
42
|
-
QuickStartNumber: { width: '.87ch', text: '1' },
|
|
43
|
-
Terminal: {
|
|
44
|
-
note: { text: 'Install Symbols to your project' },
|
|
45
|
-
props: {
|
|
46
|
-
command: { text: 'npm i smbls -g' }
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
step2: {
|
|
52
|
-
extend: 'QuickStartTerminal',
|
|
53
|
-
QuickStartNumber: { text: '2' },
|
|
54
|
-
Terminal: {
|
|
55
|
-
note: { text: 'Login to Symbols from command line' },
|
|
56
|
-
props: {
|
|
57
|
-
command: { text: 'smbls login' }
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
step3: {
|
|
63
|
-
extend: 'QuickStartCode',
|
|
64
|
-
QuickStartNumber: { text: '3' },
|
|
65
|
-
Code: {
|
|
66
|
-
note: { text: 'Create .symbolsrc.js file in your project and insert your Symbols key' },
|
|
67
|
-
props: ({ state }) => ({
|
|
68
|
-
code: {
|
|
69
|
-
text: `{ "key": "${state.appKey}" }`
|
|
70
|
-
}
|
|
71
|
-
})
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
step4: {
|
|
76
|
-
extend: 'QuickStartTerminal',
|
|
77
|
-
QuickStartNumber: { text: '4' },
|
|
78
|
-
Terminal: {
|
|
79
|
-
note: { text: 'Sync live changes' },
|
|
80
|
-
props: {
|
|
81
|
-
command: { text: 'smbls sync --live' }
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
export default ({ parent: { state: { __system } } }) => ({
|
|
4
|
-
data: [{
|
|
5
|
-
icon: 'colorOutline',
|
|
6
|
-
iconTheme: 'theme',
|
|
7
|
-
title: 'colors',
|
|
8
|
-
paragraph: 'Colorize styles manually',
|
|
9
|
-
iconBackground: 'red',
|
|
10
|
-
properties: [{
|
|
11
|
-
property: 'Colors',
|
|
12
|
-
value: Object.keys(__system.COLOR).length
|
|
13
|
-
}, {
|
|
14
|
-
property: 'Themes',
|
|
15
|
-
value: Object.keys(__system.THEME).length
|
|
16
|
-
}]
|
|
17
|
-
}, {
|
|
18
|
-
icon: 'typographyOutline',
|
|
19
|
-
iconTheme: 'typography',
|
|
20
|
-
title: 'typography',
|
|
21
|
-
paragraph: 'style a typed material',
|
|
22
|
-
properties: [{
|
|
23
|
-
property: 'Base size',
|
|
24
|
-
value: __system.TYPOGRAPHY.base + 'px'
|
|
25
|
-
}, {
|
|
26
|
-
property: 'Ratio',
|
|
27
|
-
value: __system.TYPOGRAPHY.ratio
|
|
28
|
-
}, {
|
|
29
|
-
property: 'Styles',
|
|
30
|
-
value: __system.TYPOGRAPHY.styles && Object.keys(__system.TYPOGRAPHY.styles).length
|
|
31
|
-
}, {
|
|
32
|
-
property: 'Fonts',
|
|
33
|
-
value: Object.keys(__system.FONT).length
|
|
34
|
-
}, {
|
|
35
|
-
property: 'Families',
|
|
36
|
-
value: Object.keys(__system.FONT_FAMILY).length - 1
|
|
37
|
-
}]
|
|
38
|
-
}, {
|
|
39
|
-
icon: 'spaceOutline',
|
|
40
|
-
iconTheme: 'space',
|
|
41
|
-
title: 'Spacing',
|
|
42
|
-
paragraph: 'Manage properties of a size',
|
|
43
|
-
properties: [{
|
|
44
|
-
property: 'Ratio',
|
|
45
|
-
value: __system.SPACING.ratio
|
|
46
|
-
}, {
|
|
47
|
-
property: 'Templates',
|
|
48
|
-
value: 'TBA'
|
|
49
|
-
}]
|
|
50
|
-
}, {
|
|
51
|
-
icon: 'shape',
|
|
52
|
-
iconTheme: 'shape',
|
|
53
|
-
title: 'shapes',
|
|
54
|
-
paragraph: 'Design an outline to a chosen component',
|
|
55
|
-
properties: [{
|
|
56
|
-
property: 'HTML',
|
|
57
|
-
value: '32'
|
|
58
|
-
}, {
|
|
59
|
-
property: 'SVG',
|
|
60
|
-
value: 'TBA'
|
|
61
|
-
}]
|
|
62
|
-
}, {
|
|
63
|
-
icon: 'iconsOutline',
|
|
64
|
-
iconTheme: 'color',
|
|
65
|
-
title: 'Icons',
|
|
66
|
-
paragraph: 'Label a role of subject with glyphs',
|
|
67
|
-
properties: [{
|
|
68
|
-
property: 'All',
|
|
69
|
-
value: Object.keys(__system.ICONS).length
|
|
70
|
-
}, {
|
|
71
|
-
property: 'Linear',
|
|
72
|
-
value: Object.keys(__system.ICONS).filter(v => v.includes('Outline')).length
|
|
73
|
-
}, {
|
|
74
|
-
property: 'Colored',
|
|
75
|
-
value: Object.keys(__system.ICONS).filter(v => v.includes('Colored')).length
|
|
76
|
-
}]
|
|
77
|
-
}, {
|
|
78
|
-
icon: 'clock',
|
|
79
|
-
iconTheme: 'icons',
|
|
80
|
-
title: 'Timing',
|
|
81
|
-
paragraph: 'Tokens for transitions and animations',
|
|
82
|
-
properties: [{
|
|
83
|
-
property: 'Timing base',
|
|
84
|
-
value: __system.TIMING.base + 'ms'
|
|
85
|
-
}, {
|
|
86
|
-
property: 'Ratio',
|
|
87
|
-
value: __system.TIMING.ratio
|
|
88
|
-
}, {
|
|
89
|
-
property: 'Transitions',
|
|
90
|
-
value: 'TBA'
|
|
91
|
-
}, {
|
|
92
|
-
property: 'Animations',
|
|
93
|
-
value: 'TBA'
|
|
94
|
-
}]
|
|
95
|
-
}, {
|
|
96
|
-
icon: 'deviceMobileOutline',
|
|
97
|
-
title: 'Breakpoints',
|
|
98
|
-
paragraph: 'Label a role of subject with glyphs',
|
|
99
|
-
properties: [{
|
|
100
|
-
property: 'Breakpoints',
|
|
101
|
-
value: Object.keys(__system.MEDIA).length
|
|
102
|
-
}, {
|
|
103
|
-
property: 'Screens',
|
|
104
|
-
value: Object.keys(__system.DEVICES).length
|
|
105
|
-
}]
|
|
106
|
-
}, {
|
|
107
|
-
icon: 'threeDots',
|
|
108
|
-
title: 'Sequence',
|
|
109
|
-
paragraph: 'The mapping system of generative sizing units',
|
|
110
|
-
properties: [{
|
|
111
|
-
property: 'Breakpoints',
|
|
112
|
-
value: '8'
|
|
113
|
-
}, {
|
|
114
|
-
property: 'Screens',
|
|
115
|
-
value: '3'
|
|
116
|
-
}]
|
|
117
|
-
}]
|
|
118
|
-
})
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { ClickableItem } from '@symbo.ls/components'
|
|
4
|
-
import { DesignComponent } from '../../../components'
|
|
5
|
-
|
|
6
|
-
import state from './state'
|
|
7
|
-
|
|
8
|
-
export const content = {
|
|
9
|
-
props: {
|
|
10
|
-
margin: '- -Z',
|
|
11
|
-
columns: '15rem',
|
|
12
|
-
gap: 'B1'
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
childExtend: {
|
|
16
|
-
extend: [ClickableItem, DesignComponent],
|
|
17
|
-
props: {
|
|
18
|
-
maxWidth: 'none',
|
|
19
|
-
width: '100%',
|
|
20
|
-
margin: '- - B1'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
$setStateCollection: ({ state }) => state.data
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default {
|
|
28
|
-
props: {
|
|
29
|
-
margin: '- - C1'
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
state,
|
|
33
|
-
|
|
34
|
-
SectionHeader: {
|
|
35
|
-
title: 'Design System takeaways',
|
|
36
|
-
p: 'Your tokens in the system at a glance'
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
content
|
|
40
|
-
}
|