@symbo.ls/preview 2.7.21 → 2.7.23

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.
Files changed (149) hide show
  1. package/.eslintrc.js +2 -8
  2. package/.vscode/settings.json +4 -1
  3. package/README.md +1 -0
  4. package/config.js +6 -0
  5. package/define.js +10 -0
  6. package/index.html +5 -5
  7. package/index.js +6 -9
  8. package/package.json +9 -28
  9. package/src/app.js +26 -40
  10. package/state.js +14 -0
  11. package/svgSprite.config.js +2 -2
  12. package/.babelrc.js +0 -5
  13. package/.coveralls.yml +0 -1
  14. package/.eslintignore +0 -1
  15. package/.legacy/_tools_old.js +0 -49
  16. package/.legacy/boxModel.js +0 -3
  17. package/.legacy/index copy.js +0 -45
  18. package/.legacy/preview.js +0 -133
  19. package/.legacy/sequence.js +0 -3
  20. package/.legacy/style.js +0 -30
  21. package/.prettierrc +0 -4
  22. package/.vscode/extensions.json +0 -5
  23. package/src/assets/dark.png +0 -0
  24. package/src/assets/fonts/FiraGO/FiraGO-Bold.woff2 +0 -0
  25. package/src/assets/fonts/FiraGO/FiraGO-Light.woff2 +0 -0
  26. package/src/assets/fonts/FiraGO/FiraGO-Medium.woff2 +0 -0
  27. package/src/assets/fonts/FiraGO/FiraGO-Regular.woff2 +0 -0
  28. package/src/assets/fonts/europa-bold-webfont.woff2 +0 -0
  29. package/src/assets/fonts/europa-bolditalic-webfont.woff2 +0 -0
  30. package/src/assets/fonts/europa-light-webfont.woff2 +0 -0
  31. package/src/assets/fonts/europa-lightitalic-webfont.woff2 +0 -0
  32. package/src/assets/fonts/europa-regular-webfont.woff2 +0 -0
  33. package/src/assets/fonts/europa-regularitalic-webfont.woff2 +0 -0
  34. package/src/assets/mask1.png +0 -0
  35. package/src/assets/mask2.png +0 -0
  36. package/src/assets/ovalCircle.svg +0 -9
  37. package/src/assets/shapes.png +0 -0
  38. package/src/assets/space.png +0 -0
  39. package/src/assets/type.png +0 -0
  40. package/src/components/Aside.js +0 -101
  41. package/src/components/Banner.js +0 -58
  42. package/src/components/ColorText.js +0 -29
  43. package/src/components/ColorsPalette.js +0 -69
  44. package/src/components/ColumnParagrphs.js +0 -22
  45. package/src/components/ContinueButton.js +0 -14
  46. package/src/components/DesignComponent.js +0 -81
  47. package/src/components/FontText.js +0 -193
  48. package/src/components/Header.js +0 -53
  49. package/src/components/HeaderHeading.js +0 -23
  50. package/src/components/IconsGroup.js +0 -64
  51. package/src/components/Page.js +0 -135
  52. package/src/components/ResponsivePreview.js +0 -44
  53. package/src/components/Route.js +0 -1
  54. package/src/components/ShapePreview.js +0 -63
  55. package/src/components/ShapeSet.js +0 -85
  56. package/src/components/SlidersWithResponsive.js +0 -23
  57. package/src/components/SpacingButton/actionButtons.js +0 -41
  58. package/src/components/SpacingButton/dropdown.js +0 -114
  59. package/src/components/SpacingButton/index.js +0 -250
  60. package/src/components/SpacingButton/props.js +0 -45
  61. package/src/components/SpacingPreview.js +0 -156
  62. package/src/components/SpacingTable.js +0 -213
  63. package/src/components/ThemeButtons.js +0 -41
  64. package/src/components/UploadImage.js +0 -31
  65. package/src/components/Widget.js +0 -1
  66. package/src/components/index.js +0 -25
  67. package/src/pages/Account/Personal.js +0 -59
  68. package/src/pages/Account/Project.js +0 -40
  69. package/src/pages/Account/fields.js +0 -74
  70. package/src/pages/Account/fieldsGridProps.js +0 -15
  71. package/src/pages/Account/index.js +0 -117
  72. package/src/pages/Color/globalThemes.js +0 -32
  73. package/src/pages/Color/index.js +0 -18
  74. package/src/pages/Color/palette.js +0 -36
  75. package/src/pages/Color/themes.js +0 -37
  76. package/src/pages/Components/grid.js +0 -99
  77. package/src/pages/Components/index.js +0 -37
  78. package/src/pages/Components/sidebar.js +0 -28
  79. package/src/pages/Components/style.js +0 -16
  80. package/src/pages/DesignSystem/Dashboard/banners.js +0 -38
  81. package/src/pages/DesignSystem/Dashboard/designElements.js +0 -124
  82. package/src/pages/DesignSystem/Dashboard/index.js +0 -22
  83. package/src/pages/DesignSystem/Dashboard/quickstart.js +0 -84
  84. package/src/pages/DesignSystem/Dashboard/state.js +0 -142
  85. package/src/pages/DesignSystem/Dashboard/summary.js +0 -52
  86. package/src/pages/DesignSystem/index.js +0 -187
  87. package/src/pages/Editor/index.js +0 -46
  88. package/src/pages/Editor/layers.js +0 -126
  89. package/src/pages/Editor/scene.js +0 -95
  90. package/src/pages/Editor/style.js +0 -13
  91. package/src/pages/Editor/tools.js +0 -360
  92. package/src/pages/Export/const.js +0 -19
  93. package/src/pages/Export/description.js +0 -88
  94. package/src/pages/Export/gist.js +0 -23
  95. package/src/pages/Export/index.js +0 -82
  96. package/src/pages/Export/scene.js +0 -59
  97. package/src/pages/Export/state.js +0 -23
  98. package/src/pages/Export/tools.js +0 -101
  99. package/src/pages/Fonts/fontFaces.js +0 -50
  100. package/src/pages/Fonts/fontFamilies.js +0 -48
  101. package/src/pages/Fonts/index.js +0 -16
  102. package/src/pages/Fonts/state.js +0 -5
  103. package/src/pages/Icons/index.js +0 -92
  104. package/src/pages/Icons/style.js +0 -1
  105. package/src/pages/Init/ChooseEnvironment.js +0 -149
  106. package/src/pages/Init/ChooseProject.js +0 -61
  107. package/src/pages/Init/CreateDocumentTheme.js +0 -176
  108. package/src/pages/Init/CreatePalette.js +0 -94
  109. package/src/pages/Init/FontText.js +0 -33
  110. package/src/pages/Init/Personalize/fields.js +0 -120
  111. package/src/pages/Init/Personalize/icon.js +0 -76
  112. package/src/pages/Init/Personalize/index.js +0 -120
  113. package/src/pages/Init/index.js +0 -39
  114. package/src/pages/Library/disabled.js +0 -38
  115. package/src/pages/Library/index.js +0 -33
  116. package/src/pages/MediaQuery/index.js +0 -46
  117. package/src/pages/MediaQuery/lists.js +0 -299
  118. package/src/pages/MediaQuery/state.js +0 -149
  119. package/src/pages/MediaQuery/typeScale.js +0 -69
  120. package/src/pages/Shapes/index.js +0 -75
  121. package/src/pages/Shapes/shapeSet.js +0 -133
  122. package/src/pages/Shapes/style.js +0 -11
  123. package/src/pages/Spaces/index.js +0 -65
  124. package/src/pages/Spaces/sequence.js +0 -34
  125. package/src/pages/Spaces/templates.js +0 -37
  126. package/src/pages/State/index.js +0 -87
  127. package/src/pages/Theme/buttonTitlesGrid.js +0 -47
  128. package/src/pages/Theme/buttonsHeader.js +0 -33
  129. package/src/pages/Theme/friendTheme.js +0 -30
  130. package/src/pages/Theme/index.js +0 -226
  131. package/src/pages/Theme/interactivity.js +0 -115
  132. package/src/pages/Theme/ntc.js +0 -1689
  133. package/src/pages/Theme/preview.js +0 -152
  134. package/src/pages/Theme/selectsGrid.js +0 -74
  135. package/src/pages/Theme/style.js +0 -38
  136. package/src/pages/Theme/themingTools.js +0 -106
  137. package/src/pages/Typography/collection.js +0 -115
  138. package/src/pages/Typography/documentStyles.js +0 -113
  139. package/src/pages/Typography/index.js +0 -71
  140. package/src/pages/Typography/rangeButtons.js +0 -58
  141. package/src/pages/Typography/shared.js +0 -9
  142. package/src/pages/Typography/stylesHelpers.js +0 -30
  143. package/src/pages/Typography/typeScale.js +0 -83
  144. package/src/pages/__Account/__/index.js +0 -241
  145. package/src/pages/__Account/__/setUpProject.js +0 -142
  146. package/src/pages/__Account/index.js +0 -111
  147. package/src/pages/index.js +0 -17
  148. package/src/state.js +0 -20
  149. package/src/style.js +0 -20
@@ -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: '-A -Z1 B',
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'
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,84 +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
- gap: 'D1',
30
- align: 'flex-start space-between',
31
- childProps: {
32
- flex: '1',
33
-
34
- Terminal: startElementProps,
35
- Code: startElementProps
36
- }
37
- },
38
-
39
- step1: {
40
- extend: 'QuickStartTerminal',
41
- QuickStartNumber: { width: '.87ch', text: '1' },
42
- Terminal: {
43
- note: { text: 'Install Symbols to your project' },
44
- props: {
45
- command: { text: 'npm i smbls --save' }
46
- }
47
- }
48
- },
49
-
50
- step2: {
51
- extend: 'QuickStartTerminal',
52
- QuickStartNumber: { text: '2' },
53
- Terminal: {
54
- note: { text: 'Login to Symbols from command line' },
55
- props: {
56
- command: { text: 'smbls login' }
57
- }
58
- }
59
- },
60
-
61
- step3: {
62
- extend: 'QuickStartCode',
63
- QuickStartNumber: { text: '3' },
64
- Code: {
65
- props: {},
66
- note: { text: 'Create .symbolsrc.js file in your project and insert your Symbols key' },
67
- code: {
68
- text: ({ state }) => `{ "key": "${state.appKey}" }`
69
- }
70
- }
71
- },
72
-
73
- step4: {
74
- extend: 'QuickStartTerminal',
75
- QuickStartNumber: { text: '4' },
76
- Terminal: {
77
- note: { text: 'Sync live changes' },
78
- props: {
79
- command: { text: 'smbls sync --live' }
80
- }
81
- }
82
- }
83
- }
84
- }
@@ -1,142 +0,0 @@
1
- 'use strict'
2
-
3
- export const applySummaryCollection = (el, s) => {
4
- if (!s) return
5
- const {
6
- COLOR,
7
- THEME,
8
- TYPOGRAPHY,
9
- FONT,
10
- FONT_FAMILY,
11
- SPACING,
12
- ICONS,
13
- TIMING,
14
- MEDIA,
15
- DEVICES
16
- } = s
17
-
18
- if (!COLOR) return
19
-
20
- return [{
21
- icon: 'colorOutline',
22
- href: '/colors',
23
- iconTheme: 'theme',
24
- title: 'colors',
25
- paragraph: 'Colorize styles manually',
26
- iconBackground: 'red',
27
- properties: [{
28
- property: 'Colors',
29
- value: COLOR && Object.keys(COLOR).length
30
- }, {
31
- property: 'Themes',
32
- value: THEME && Object.keys(THEME).length
33
- }]
34
- }, {
35
- icon: 'typographyOutline',
36
- href: '/typography',
37
- iconTheme: 'typography',
38
- title: 'typography',
39
- paragraph: 'style a typed material',
40
- properties: [{
41
- property: 'Base size',
42
- value: TYPOGRAPHY && TYPOGRAPHY.base + 'px'
43
- }, {
44
- property: 'Ratio',
45
- value: TYPOGRAPHY && TYPOGRAPHY.ratio
46
- }, {
47
- property: 'Styles',
48
- value: TYPOGRAPHY && TYPOGRAPHY.styles && Object.keys(TYPOGRAPHY.styles).length
49
- }, {
50
- property: 'Fonts',
51
- value: FONT && Object.keys(FONT).length
52
- }, {
53
- property: 'Families',
54
- value: FONT_FAMILY && Object.keys(FONT_FAMILY).length - 1
55
- }]
56
- }, {
57
- icon: 'spaceOutline',
58
- href: '/space',
59
- iconTheme: 'space',
60
- title: 'Spacing',
61
- paragraph: 'Manage properties of a size',
62
- properties: [{
63
- property: 'Ratio',
64
- value: SPACING && SPACING.ratio
65
- }, {
66
- property: 'Templates',
67
- value: 'TBA'
68
- }]
69
- }, {
70
- icon: 'shape',
71
- href: '/shape',
72
- iconTheme: 'shape',
73
- title: 'shapes',
74
- paragraph: 'Design an outline to a chosen component',
75
- properties: [{
76
- property: 'HTML',
77
- value: '32'
78
- }, {
79
- property: 'SVG',
80
- value: 'TBA'
81
- }]
82
- }, {
83
- icon: 'iconsOutline',
84
- href: '/icons',
85
- iconTheme: 'color',
86
- title: 'Icons',
87
- paragraph: 'Label a role of subject with glyphs',
88
- properties: [{
89
- property: 'All',
90
- value: ICONS && Object.keys(ICONS).length
91
- }, {
92
- property: 'Linear',
93
- value: ICONS && Object.keys(ICONS).filter(v => v.includes('Outline')).length
94
- }, {
95
- property: 'Colored',
96
- value: ICONS && Object.keys(ICONS).filter(v => v.includes('Colored')).length
97
- }]
98
- }, {
99
- icon: 'clock',
100
- href: '/timing',
101
- iconTheme: 'icons',
102
- title: 'Timing',
103
- paragraph: 'Tokens for transitions and animations',
104
- properties: [{
105
- property: 'Timing base',
106
- value: TIMING && TIMING.base + 'ms'
107
- }, {
108
- property: 'Ratio',
109
- value: TIMING && TIMING.ratio
110
- }, {
111
- property: 'Transitions',
112
- value: 'TBA'
113
- }, {
114
- property: 'Animations',
115
- value: 'TBA'
116
- }]
117
- }, {
118
- icon: 'deviceMobileOutline',
119
- href: '/media-query',
120
- title: 'Breakpoints',
121
- paragraph: 'Label a role of subject with glyphs',
122
- properties: [{
123
- property: 'Breakpoints',
124
- value: MEDIA && Object.keys(MEDIA).length
125
- }, {
126
- property: 'Screens',
127
- value: DEVICES && Object.keys(DEVICES).length
128
- }]
129
- }, {
130
- icon: 'threeDots',
131
- href: '/sequence',
132
- title: 'Sequence',
133
- paragraph: 'The mapping system of generative sizing units',
134
- properties: [{
135
- property: 'Breakpoints',
136
- value: '8'
137
- }, {
138
- property: 'Screens',
139
- value: '3'
140
- }]
141
- }]
142
- }
@@ -1,52 +0,0 @@
1
- 'use strict'
2
-
3
- import { ClickableItem, Link } from '@symbo.ls/components'
4
- import { DesignComponent } from '../../../components'
5
-
6
- import { applySummaryCollection } from './state'
7
-
8
- export const cnt = {
9
- state: 'summary',
10
-
11
- props: {
12
- margin: '- -Z',
13
- columns: '15rem',
14
- gap: 'B1'
15
- },
16
-
17
- childExtend: {
18
- extend: [Link, ClickableItem, DesignComponent],
19
- state: true,
20
- props: ({ state }) => ({
21
- maxWidth: 'none',
22
- width: '100%',
23
- margin: '- - B1',
24
- fontWeight: '400',
25
- href: state.href
26
- })
27
- },
28
-
29
- $setPropsCollection: (el, s) => s.parse()
30
- }
31
-
32
- export default {
33
- props: {
34
- margin: '- - C1'
35
- },
36
-
37
- state: 'PROJECT_SYSTEM',
38
-
39
- SectionHeader: {
40
- title: 'Design System takeaways',
41
- p: 'Your tokens in the system at a glance'
42
- },
43
-
44
- cnt,
45
-
46
- on: {
47
- initUpdate: (el, s) => {
48
- if (s.summary) return
49
- s.summary = applySummaryCollection(el, s)
50
- }
51
- }
52
- }
@@ -1,187 +0,0 @@
1
- 'use strict'
2
-
3
- import { router } from '@domql/router'
4
-
5
- import { Flex } from '@symbo.ls/components'
6
-
7
- import {
8
- ShapePreview,
9
- ResponsivePreview,
10
- SpacingPreview,
11
- Page
12
- } from '../../components'
13
-
14
- import { DesignSystemDashboard } from './Dashboard'
15
- import {
16
- Color,
17
- Theme,
18
- Shapes,
19
- Spaces,
20
- Icons,
21
- Typography,
22
- Fonts,
23
- MediaQuery
24
- } from '..'
25
-
26
- const NAV = [{
27
- state: {
28
- title: 'Colors',
29
- href: '/colors'
30
- },
31
- props: {
32
- icon: { name: 'color outline colored' }
33
- }
34
- }, {
35
- state: {
36
- title: 'Typography',
37
- href: '/typography'
38
- },
39
- props: {
40
- icon: { name: 'typography outline' },
41
- opacity: '.7'
42
- }
43
- }, {
44
- state: {
45
- title: 'Spacing',
46
- href: '/space'
47
- },
48
- props: {
49
- icon: { name: 'space outline' },
50
- opacity: '.7'
51
- }
52
- }, {
53
- state: {
54
- title: 'Shapes',
55
- href: '/shape'
56
- },
57
- props: {
58
- icon: { name: 'shape outline colored' }
59
- }
60
- }, {
61
- state: {
62
- title: 'Icons',
63
- href: '/icons'
64
- },
65
- props: {
66
- icon: { name: 'icons outline colored' },
67
- '.isActive': {
68
- icon: { name: 'icons colored' }
69
- }
70
- }
71
- }, {
72
- state: {
73
- title: 'Responsive',
74
- href: '/media-query'
75
- },
76
- props: {
77
- icon: { name: 'device mobile half fill' },
78
- opacity: '.7'
79
- }
80
- }, {
81
- state: {
82
- title: 'Fonts',
83
- href: '/fonts'
84
- },
85
- props: {
86
- icon: { name: 'fontFace colored' },
87
- opacity: '.7'
88
- }
89
- }, {
90
- state: {
91
- title: 'Timing',
92
- href: '/timing'
93
- },
94
- props: {
95
- icon: { name: 'clock colored' }
96
- }
97
- }, {
98
- state: {
99
- title: 'Sequence',
100
- href: '/sequence'
101
- },
102
- props: {
103
- icon: { name: 'sequence colored' }
104
- }
105
- }]
106
-
107
- export const DesignSystem = {
108
- extend: Flex,
109
-
110
- props: {
111
- margin: '-C2+X2 - -',
112
- padding: 'C2+X2 - -',
113
- minHeight: '100%',
114
- maxWidth: '100%',
115
- width: '100%',
116
- flow: 'column',
117
- gap: 'B1',
118
-
119
- page: {
120
- width: '100%',
121
- flow: 'row',
122
- flex: 1,
123
- align: 'flex-start flex-start',
124
- gap: 'B1',
125
- padding: 'D2 A C1',
126
-
127
- Page: {
128
- padding: 'X2 C1 B1',
129
- flex: 1
130
- }
131
- },
132
-
133
- widget: {
134
- padding: 'A',
135
- position: 'sticky',
136
- width: '100%',
137
- zIndex: 9999,
138
- bottom: '0'
139
- }
140
- },
141
-
142
- define: { routes: param => param },
143
- routes: {
144
- '/design-system': DesignSystemDashboard,
145
- '/colors': Color,
146
- '/theme': Theme,
147
- '/typography': Typography,
148
- '/space': Spaces,
149
- '/shape': Shapes,
150
- '/fonts': Fonts,
151
- '/icons': Icons,
152
- '/media-query': MediaQuery
153
- // '/sequence': Sequence,
154
- // '/timing': Timing,
155
- },
156
-
157
- page: {
158
- extend: Flex,
159
-
160
- DesignSystemNavbar: {
161
- extend: true,
162
- nav: { ...NAV }
163
- },
164
- Page: { extend: Page }
165
- },
166
-
167
- widget: {
168
- state: ({ parent }) => ({ __ref: parent.page.Page.state }),
169
-
170
- define: { routes: param => param },
171
- routes: {
172
- '/media-query': ResponsivePreview,
173
- '/space': SpacingPreview,
174
- '/shape': ShapePreview
175
- },
176
-
177
- on: {
178
- render: element => {
179
- const { pathname, hash } = window.location
180
- const url = pathname + hash
181
- router(element, url, {})
182
- }
183
- }
184
- }
185
- }
186
-
187
- export * from './Dashboard'
@@ -1,46 +0,0 @@
1
- 'use strict'
2
-
3
- import { Block, Flex, Footer, ResponsiveToolBar } from '@symbo.ls/components'
4
-
5
- import { LIBRARY } from '../../../.symbols'
6
-
7
- import LayerSidebar from './layers'
8
- import ToolSidebar from './tools'
9
- import scene from './scene'
10
-
11
- import style from './style'
12
- const COMPONENT_ROUTES = {}
13
- LIBRARY.map(v => (COMPONENT_ROUTES[`/${v.key}`] = v))
14
-
15
- export default {
16
- style,
17
- extend: Flex,
18
- mainContainer: {
19
- extend: [Block, Flex],
20
- props: {
21
- padding: '0 A2',
22
- gap: 'B'
23
- },
24
-
25
- LayerSidebar,
26
- scene,
27
- ToolSidebar
28
- },
29
-
30
- footer: {
31
- extend: Footer,
32
- FooterBar: {},
33
- // span: 'Autosaved 1 secsond ago',
34
- screenChanger: {
35
- extend: ResponsiveToolBar,
36
- style: {
37
- marginLeft: 'auto'
38
- }
39
- },
40
- spaceExport: {
41
- cd: null,
42
- fr: null,
43
- sp: null
44
- }
45
- }
46
- }