@symbo.ls/preview 2.0.7 → 2.6.0

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 (216) hide show
  1. package/{src/pages/Export → .legacy}/_tools_old.js +7 -6
  2. package/.legacy/index copy.js +45 -0
  3. package/{src/pages/Spaces → .legacy}/preview.js +14 -14
  4. package/{src/pages/Spaces → .legacy}/style.js +0 -3
  5. package/.vscode/extensions.json +5 -0
  6. package/index.html +4 -14
  7. package/index.js +44 -0
  8. package/package.json +32 -32
  9. package/src/app.js +30 -68
  10. package/src/assets/dark.png +0 -0
  11. package/src/assets/mask1.png +0 -0
  12. package/src/assets/mask2.png +0 -0
  13. package/src/assets/shapes.png +0 -0
  14. package/src/assets/space.png +0 -0
  15. package/src/assets/type.png +0 -0
  16. package/src/components/Aside.js +101 -0
  17. package/src/components/Banner.js +58 -0
  18. package/src/components/ColorText.js +29 -0
  19. package/src/components/ColorsPalette.js +69 -0
  20. package/src/components/ColumnParagrphs.js +23 -0
  21. package/src/components/ContinueButton.js +14 -0
  22. package/src/components/DesignComponent.js +80 -0
  23. package/src/components/FontText.js +193 -0
  24. package/src/components/Header.js +50 -0
  25. package/src/components/HeaderHeading.js +23 -0
  26. package/src/components/IconsGroup.js +60 -0
  27. package/src/components/Page.js +135 -0
  28. package/src/components/ResponsivePreview.js +44 -0
  29. package/src/components/Route.js +1 -0
  30. package/src/components/ShapePreview.js +63 -0
  31. package/src/components/ShapeSet.js +85 -0
  32. package/src/components/SlidersWithResponsive.js +23 -0
  33. package/src/components/SpacingButton/actionButtons.js +41 -0
  34. package/src/components/SpacingButton/dropdown.js +114 -0
  35. package/src/components/SpacingButton/index.js +248 -0
  36. package/src/components/SpacingButton/props.js +45 -0
  37. package/src/components/SpacingPreview.js +154 -0
  38. package/src/components/SpacingTable.js +210 -0
  39. package/src/components/ThemeButtons.js +42 -0
  40. package/src/components/UploadImage.js +61 -0
  41. package/src/components/Widget.js +1 -0
  42. package/src/components/index.js +25 -0
  43. package/src/config/index.js +12 -31
  44. package/src/config/theme.js +1 -71
  45. package/src/pages/Account/__/index.js +241 -0
  46. package/src/pages/Account/{setUpProject.js → __/setUpProject.js} +10 -10
  47. package/src/pages/Account/index.js +17 -147
  48. package/src/pages/Color/globalThemes.js +30 -0
  49. package/src/pages/Color/index.js +7 -10
  50. package/src/pages/Color/palette.js +35 -0
  51. package/src/pages/Color/themes.js +23 -117
  52. package/src/pages/Components/grid.js +99 -0
  53. package/src/pages/Components/index.js +37 -0
  54. package/src/pages/Components/sidebar.js +28 -0
  55. package/src/pages/Components/style.js +16 -0
  56. package/src/pages/DesignSystem/Dashboard/banners.js +38 -0
  57. package/src/pages/DesignSystem/Dashboard/designElements.js +124 -0
  58. package/src/pages/DesignSystem/Dashboard/index.js +22 -0
  59. package/src/pages/DesignSystem/Dashboard/quickstart.js +86 -0
  60. package/src/pages/DesignSystem/Dashboard/state.js +118 -0
  61. package/src/pages/DesignSystem/Dashboard/summary.js +40 -0
  62. package/src/pages/DesignSystem/index.js +187 -0
  63. package/src/pages/Editor/index.js +7 -9
  64. package/src/pages/Editor/layers.js +14 -14
  65. package/src/pages/Editor/scene.js +7 -9
  66. package/src/pages/Editor/tools.js +22 -22
  67. package/src/pages/Export/const.js +3 -4
  68. package/src/pages/Export/description.js +58 -87
  69. package/src/pages/Export/gist.js +23 -0
  70. package/src/pages/Export/index.js +48 -39
  71. package/src/pages/Export/scene.js +98 -61
  72. package/src/pages/Export/state.js +11 -5
  73. package/src/pages/Export/tools.js +41 -86
  74. package/src/pages/Fonts/fontFaces.js +50 -0
  75. package/src/pages/Fonts/fontFamilies.js +47 -0
  76. package/src/pages/Fonts/index.js +15 -0
  77. package/src/pages/Fonts/state.js +5 -0
  78. package/src/pages/Icons/index.js +73 -69
  79. package/src/pages/Icons/style.js +0 -18
  80. package/src/pages/Init/ChooseEnvironment.js +104 -0
  81. package/src/pages/Init/CreateDocumentTheme.js +166 -0
  82. package/src/pages/Init/CreatePalette.js +72 -0
  83. package/src/pages/Init/FontText.js +23 -0
  84. package/src/pages/Init/Personalize/fields.js +109 -0
  85. package/src/pages/Init/Personalize/icon.js +42 -0
  86. package/src/pages/Init/Personalize/index.js +37 -0
  87. package/src/pages/Init/index.js +36 -0
  88. package/src/pages/Library/disabled.js +38 -0
  89. package/src/pages/Library/index.js +24 -47
  90. package/src/pages/MediaQuery/index.js +46 -0
  91. package/src/pages/MediaQuery/lists.js +285 -0
  92. package/src/pages/MediaQuery/state.js +150 -0
  93. package/src/pages/MediaQuery/typeScale.js +69 -0
  94. package/src/pages/Shapes/index.js +54 -204
  95. package/src/pages/Shapes/shapeSet.js +133 -0
  96. package/src/pages/Shapes/style.js +0 -28
  97. package/src/pages/Spaces/index.js +23 -47
  98. package/src/pages/Spaces/sequence.js +30 -1
  99. package/src/pages/Spaces/state.js +12 -14
  100. package/src/pages/State/index.js +86 -0
  101. package/src/pages/{ColorEditor → Theme}/friendTheme.js +3 -3
  102. package/src/pages/Theme/index.js +197 -0
  103. package/src/pages/{ColorEditor → Theme}/interactivity.js +6 -7
  104. package/src/pages/Theme/preview.js +153 -0
  105. package/src/pages/{ColorEditor → Theme}/style.js +1 -12
  106. package/src/pages/{ColorEditor → Theme}/themingTools.js +12 -12
  107. package/src/pages/Typography/collection.js +110 -0
  108. package/src/pages/Typography/documentStyles.js +125 -0
  109. package/src/pages/Typography/index.js +28 -36
  110. package/src/pages/Typography/rangeButtons.js +58 -0
  111. package/src/pages/Typography/shared.js +2 -3
  112. package/src/pages/Typography/state.js +9 -8
  113. package/src/pages/Typography/stylesHelpers.js +30 -0
  114. package/src/pages/Typography/typeScale.js +63 -82
  115. package/src/pages/index.js +15 -23
  116. package/src/style.js +15 -12
  117. package/svgSprite.config.js +2 -1
  118. package/README.md +0 -19
  119. package/app.webmanifest +0 -4
  120. package/netlify.toml +0 -19
  121. package/protect-pwd.js +0 -65
  122. package/src/animations.js +0 -71
  123. package/src/assets/dots.png +0 -0
  124. package/src/assets/dotsDark.png +0 -0
  125. package/src/data/Symbols.sketch +0 -0
  126. package/src/data/_Symbols.sketch/document.json +0 -1
  127. package/src/data/_Symbols.sketch/fonts/6c9956fc8970ec3d8268c3f286afe19d954fc40b +0 -0
  128. package/src/data/_Symbols.sketch/fonts/750e9b005158d57108ebbcf288e2582f078d6735 +0 -0
  129. package/src/data/_Symbols.sketch/fonts/86c45cb69ad4ba2a8e6d0b81f20964b33f4eca6c +0 -0
  130. package/src/data/_Symbols.sketch/fonts/f97cec7aed309ec77b4fd3005d1a3e0d86c2a7b9 +0 -0
  131. package/src/data/_Symbols.sketch/images/0427bc225ee7dc33db78252defd5b2e4cd5b7467.png +0 -0
  132. package/src/data/_Symbols.sketch/images/0c4846cdd2f11ffb23c9ce063380fc934f7a11ea.png +0 -0
  133. package/src/data/_Symbols.sketch/images/55d3f5e93869fbd70e8dfbca1ce3dfa0cc9f2dbe.png +0 -0
  134. package/src/data/_Symbols.sketch/images/67ae1583a9d77eec7106f5016f48b5594a02b3f6.png +0 -0
  135. package/src/data/_Symbols.sketch/images/7152b3ea22388d53052d0212995a1805527ea862.png +0 -0
  136. package/src/data/_Symbols.sketch/images/72f1896a8462385fd596bc35f240382ba15814fc.png +0 -0
  137. package/src/data/_Symbols.sketch/images/73e4245b1f867343001657193ff2318c9cf2ef53.png +0 -0
  138. package/src/data/_Symbols.sketch/images/7b89dae77676fb4cfd072e0830cff9c27afd11c6.png +0 -0
  139. package/src/data/_Symbols.sketch/images/811e2b516575d3b4e7709dfef6369bce7dae0a26.png +0 -0
  140. package/src/data/_Symbols.sketch/images/82d006789579f2ee1fa45c9116f7cd7dd1bcbe37.png +0 -0
  141. package/src/data/_Symbols.sketch/images/8a896270aa4da8e2401d0ea76e46dc9b9125e59a.png +0 -0
  142. package/src/data/_Symbols.sketch/images/966688c4a579283836f15ab69c8b76e11b236ff5.png +0 -0
  143. package/src/data/_Symbols.sketch/images/b903a498e1d438e8bb12de5422f732c717b79eff.png +0 -0
  144. package/src/data/_Symbols.sketch/images/b9f3cae81a855e21ae75185dcb6ae6551c5447f1.png +0 -0
  145. package/src/data/_Symbols.sketch/images/cd0f908410abf4cad7a4501539eb0711c41a182f.png +0 -0
  146. package/src/data/_Symbols.sketch/images/d54f15f130ba4f1d4ad56f03c01ac06fe0ab4f56.png +0 -0
  147. package/src/data/_Symbols.sketch/images/df5a20029363f95abc58b2c8972e1417d84c8aa7.png +0 -0
  148. package/src/data/_Symbols.sketch/images/e889546970c931244400c2f70412c39123029cb3.png +0 -0
  149. package/src/data/_Symbols.sketch/images/f420a7a2beb15bee5d2ecbba8f296c6d4b22dfa3.png +0 -0
  150. package/src/data/_Symbols.sketch/meta.json +0 -1
  151. package/src/data/_Symbols.sketch/pages/31D11772-FB33-42EC-A3CC-79F63922E04D.json +0 -1
  152. package/src/data/_Symbols.sketch/pages/35BD91AD-F0ED-4002-891D-F1B3250E88C1.json +0 -1
  153. package/src/data/_Symbols.sketch/pages/4831AF31-ECB8-4DA6-B4D0-C1095D42146C.json +0 -1
  154. package/src/data/_Symbols.sketch/pages/6FCC0155-B3F4-4792-892E-523D45315AFD.json +0 -1
  155. package/src/data/_Symbols.sketch/pages/7996D5DD-C5B2-4EE7-9DE8-2C05E2ACA9F3.json +0 -1
  156. package/src/data/_Symbols.sketch/pages/B314C0F3-0038-473F-A127-536AF28E5272.json +0 -1
  157. package/src/data/_Symbols.sketch/pages/B6798E64-F7E9-40F5-9BD0-88A548478438.json +0 -1
  158. package/src/data/_Symbols.sketch/pages/B9B28DF3-EDC2-4D5B-A412-12B3B2E7DE58.json +0 -1
  159. package/src/data/_Symbols.sketch/pages/CA6E47E4-DAF7-4D1D-8DDC-D5A60508D9A0.json +0 -1
  160. package/src/data/_Symbols.sketch/pages/D6F5EB10-9D31-47AC-9077-1CE8CB2C2448.json +0 -1
  161. package/src/data/_Symbols.sketch/previews/preview.png +0 -0
  162. package/src/data/_Symbols.sketch/user.json +0 -1
  163. package/src/data/categories.js +0 -44
  164. package/src/data/components/button-archived/index.js +0 -63
  165. package/src/data/components/button-archived/style.js +0 -5
  166. package/src/data/components/button-circle/index.js +0 -54
  167. package/src/data/components/button-contacts/index.js +0 -56
  168. package/src/data/components/button-contacts/style.js +0 -13
  169. package/src/data/components/button-download/index.js +0 -63
  170. package/src/data/components/button-pro/index.js +0 -98
  171. package/src/data/components/button-pro/style.js +0 -19
  172. package/src/data/components/button-theme-switcher/index.js +0 -104
  173. package/src/data/components/button-theme-switcher/style.js +0 -16
  174. package/src/data/components/button-user/index.js +0 -82
  175. package/src/data/components/button-user/style.js +0 -25
  176. package/src/data/components/datepicker/index.js +0 -40
  177. package/src/data/components/datepicker/style.js +0 -4
  178. package/src/data/components/dropdown-list/index.js +0 -56
  179. package/src/data/components/field/index.js +0 -40
  180. package/src/data/components/index.js +0 -34
  181. package/src/data/components/label/index.js +0 -40
  182. package/src/data/components/notification/index.js +0 -55
  183. package/src/data/components/notification/style.js +0 -20
  184. package/src/data/components/pills/index.js +0 -37
  185. package/src/data/components/tooltip/index.js +0 -38
  186. package/src/data/filters.js +0 -3
  187. package/src/data/index.js +0 -3
  188. package/src/data/library/button-circle/index.js +0 -52
  189. package/src/data/library/button-join/index.js +0 -61
  190. package/src/data/library/family-bundle/index.js +0 -99
  191. package/src/data/library/family-bundle/style.js +0 -27
  192. package/src/data/library/index.js +0 -15
  193. package/src/data/library/join-class/index.js +0 -45
  194. package/src/data/library/parent-mode/index.js +0 -69
  195. package/src/data/library/parent-mode/style.js +0 -25
  196. package/src/index.html +0 -57
  197. package/src/index.js +0 -7
  198. package/src/pages/Color/colors.js +0 -58
  199. package/src/pages/Color/documentThemes.js +0 -101
  200. package/src/pages/Color/style.js +0 -7
  201. package/src/pages/ColorEditor/colorTone.js +0 -163
  202. package/src/pages/ColorEditor/index.js +0 -178
  203. package/src/pages/Export/header.js +0 -37
  204. package/src/pages/Export/style.js +0 -28
  205. package/src/pages/Library/style.js +0 -43
  206. package/src/pages/PageProto.js +0 -26
  207. package/src/pages/Typography/docFonts.js +0 -128
  208. package/src/pages/Typography/docStyles.js +0 -97
  209. package/src/pages/Typography/style.js +0 -11
  210. package/src/protect.js +0 -114
  211. package/src/state.js +0 -3
  212. package/src/test.js +0 -30
  213. package/test/index.test.js +0 -5
  214. /package/{src/pages/Spaces → .legacy}/boxModel.js +0 -0
  215. /package/{src/data/favorites.js → .legacy/sequence.js} +0 -0
  216. /package/src/pages/{ColorEditor → Theme}/ntc.js +0 -0
@@ -0,0 +1,118 @@
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
+ })
@@ -0,0 +1,40 @@
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
+ }
@@ -0,0 +1,187 @@
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,9 +1,8 @@
1
1
  'use strict'
2
2
 
3
- import { Block, Flex, Footer, ResponsiveToolBar } from '@symbo.ls/all'
3
+ import { Block, Flex, Footer, ResponsiveToolBar } from '@symbo.ls/components'
4
4
 
5
- import COMPONENTS from '../../data/components'
6
- import LIBRARIES from '../../data/library'
5
+ import { LIBRARY } from '../../../.symbols'
7
6
 
8
7
  import LayerSidebar from './layers'
9
8
  import ToolSidebar from './tools'
@@ -11,14 +10,13 @@ import scene from './scene'
11
10
 
12
11
  import style from './style'
13
12
  const COMPONENT_ROUTES = {}
14
- COMPONENTS.map(v => (COMPONENT_ROUTES[`/${v.key}`] = v.component))
15
- LIBRARIES.map(v => (COMPONENT_ROUTES[`/${v.key}`] = v.component))
13
+ LIBRARY.map(v => (COMPONENT_ROUTES[`/${v.key}`] = v))
16
14
 
17
15
  export default {
18
16
  style,
19
- proto: Flex,
17
+ extend: Flex,
20
18
  mainContainer: {
21
- proto: [Block, Flex],
19
+ extend: [Block, Flex],
22
20
  props: {
23
21
  padding: '0 A2',
24
22
  gap: 'B'
@@ -30,11 +28,11 @@ export default {
30
28
  },
31
29
 
32
30
  footer: {
33
- proto: Footer,
31
+ extend: Footer,
34
32
  FooterBar: {},
35
33
  // span: 'Autosaved 1 secsond ago',
36
34
  screenChanger: {
37
- proto: ResponsiveToolBar,
35
+ extend: ResponsiveToolBar,
38
36
  style: {
39
37
  marginLeft: 'auto'
40
38
  }
@@ -1,16 +1,16 @@
1
1
  ' use strict'
2
2
 
3
- import { Shape, Block, Flex, Text, Icon } from '@symbo.ls/all'
3
+ import { Shape, Block, Flex, Text, Icon } from '@symbo.ls/components'
4
4
 
5
5
  const objectLayer = {
6
- proto: [Block, Text, Shape],
6
+ extend: [Block, Text, Shape],
7
7
  props: {
8
8
  round: 'A',
9
9
  padding: '0 Y Y Y'
10
10
  },
11
11
 
12
12
  h4: {
13
- proto: [Block, Text],
13
+ extend: [Block, Text],
14
14
  props: {
15
15
  text: 'Button',
16
16
  padding: 'A 0 A1 A1'
@@ -19,7 +19,7 @@ const objectLayer = {
19
19
  },
20
20
 
21
21
  caption: {
22
- proto: [Block, Text],
22
+ extend: [Block, Text],
23
23
  props: {
24
24
  text: 'IconText',
25
25
  padding: '0 0 A B1'
@@ -27,10 +27,10 @@ const objectLayer = {
27
27
  },
28
28
 
29
29
  objectComponent: {
30
- proto: [Block, Flex],
30
+ extend: [Block, Flex],
31
31
  style: { flexDirection: 'column' },
32
- childProto: {
33
- proto: [Block, Flex, Text, Shape],
32
+ childExtend: {
33
+ extend: [Block, Flex, Text, Shape],
34
34
  props: {
35
35
  padding: 'Z2 0 Z2 B1',
36
36
  round: 'A'
@@ -38,13 +38,13 @@ const objectLayer = {
38
38
  style: {
39
39
  alignItems: 'center'
40
40
  },
41
- icon: { proto: Icon },
41
+ icon: { extend: Icon },
42
42
  caption: {
43
- proto: [Block, Text],
43
+ extend: [Block, Text],
44
44
  props: { padding: '0 X2 0 Y' }
45
45
  },
46
46
  span: {
47
- proto: Text,
47
+ extend: Text,
48
48
  style: { opacity: '.35' }
49
49
  }
50
50
  },
@@ -72,11 +72,11 @@ const objectLayer = {
72
72
 
73
73
  export default {
74
74
  tag: 'aside',
75
- proto: [Block, Text],
75
+ extend: [Block, Text],
76
76
  props: { size: 'Y' },
77
77
 
78
78
  caption: {
79
- proto: [Block, Text],
79
+ extend: [Block, Text],
80
80
  props: {
81
81
  text: 'Layer'
82
82
  },
@@ -92,7 +92,7 @@ export default {
92
92
  },
93
93
 
94
94
  layer: {
95
- proto: objectLayer,
95
+ extend: objectLayer,
96
96
  props: {
97
97
  theme: 'buttonPrimary'
98
98
  },
@@ -102,7 +102,7 @@ export default {
102
102
  objectComponent: {},
103
103
 
104
104
  layer2: {
105
- proto: objectLayer,
105
+ extend: objectLayer,
106
106
  style: {
107
107
  margin: '0 auto',
108
108
  background: 'rgba(255, 255, 255, .04)',
@@ -1,16 +1,16 @@
1
1
  'use strict'
2
2
 
3
- import { Block, Flex, Text, KangorooButton, Breadcrumb, SceneToolBar, Scene } from '@symbo.ls/all'
3
+ import { Block, Flex, Text, KangorooButton, Breadcrumb, SceneToolBar, Scene } from '@symbo.ls/components'
4
4
 
5
5
  const header = {
6
- proto: [Flex, Block],
6
+ extend: [Flex, Block],
7
7
  style: {
8
8
  justifyContent: 'space-between',
9
9
  marginTop: '12px',
10
10
  marginBottom: '4px'
11
11
  },
12
12
  nav: {
13
- proto: [Breadcrumb, Text],
13
+ extend: [Breadcrumb, Text],
14
14
  props: { size: 'A' },
15
15
  all: {
16
16
  props: {
@@ -29,11 +29,10 @@ const header = {
29
29
  }
30
30
 
31
31
  const buttonThemeSwitcher = {
32
- proto: KangorooButton,
32
+ extend: KangorooButton,
33
33
 
34
34
  props: {
35
35
  round: 'C',
36
- theme: 'lightDark',
37
36
  size: 'A',
38
37
  padding: 'X1 Y X1 A1',
39
38
  gap: 'Z1',
@@ -45,7 +44,6 @@ const buttonThemeSwitcher = {
45
44
  },
46
45
 
47
46
  dark: {
48
- theme: ['lightDark', 'inverse'],
49
47
  round: 'C',
50
48
  icon: 'moon',
51
49
  padding: 'Z Z1',
@@ -78,14 +76,14 @@ const buttonThemeSwitcher = {
78
76
 
79
77
  }
80
78
  export default {
81
- proto: Flex,
79
+ extend: Flex,
82
80
  style: {
83
81
  flex: 1,
84
82
  flexDirection: 'column'
85
83
  },
86
- header: { proto: header },
84
+ header: { extend: header },
87
85
  scene: {
88
- proto: Scene,
86
+ extend: Scene,
89
87
  style: {
90
88
  flex: 1,
91
89
  '> div': { height: '100%' }
@@ -1,11 +1,11 @@
1
1
  'use strict'
2
2
 
3
- import { Shape, Block, Flex, Text, SquareButton, ButtonSet, ClickableItem, ThemeSwitcher, ToolItem } from '@symbo.ls/all'
3
+ import { Shape, Block, Flex, Text, SquareButton, ButtonSet, ClickableItem, ThemeSwitcher, ToolItem } from '@symbo.ls/components'
4
4
 
5
5
  const commonComponent = {
6
- proto: Block,
6
+ extend: Block,
7
7
  caption: {
8
- proto: [Block, Text],
8
+ extend: [Block, Text],
9
9
  props: {
10
10
  padding: 'A X'
11
11
  },
@@ -15,7 +15,7 @@ const commonComponent = {
15
15
  }
16
16
  },
17
17
  toolsContainer: {
18
- proto: [Block, Shape, Flex],
18
+ extend: [Block, Shape, Flex],
19
19
  props: {
20
20
  gap: 'A',
21
21
  padding: 'A 0',
@@ -27,13 +27,13 @@ const commonComponent = {
27
27
  background: 'rgba(255, 255, 255, .06)'
28
28
  },
29
29
  tools: {
30
- proto: [Block, Flex],
30
+ extend: [Block, Flex],
31
31
  props: { gap: 'A' },
32
32
  style: {
33
33
  flexDirection: 'column'
34
34
  },
35
- childProto: {
36
- proto: ToolItem,
35
+ childExtend: {
36
+ extend: ToolItem,
37
37
  icon: { },
38
38
  tool: {
39
39
  props: { padding: 'X2' },
@@ -45,7 +45,7 @@ const commonComponent = {
45
45
  range: {},
46
46
  button1: { props: { size: 'B' } },
47
47
  button2: {
48
- proto: [SquareButton, ClickableItem],
48
+ extend: [SquareButton, ClickableItem],
49
49
  props: {
50
50
  icon: 'arrowAngleMirroringVertical',
51
51
  size: 'B',
@@ -60,7 +60,7 @@ const commonComponent = {
60
60
  }
61
61
 
62
62
  const themeSwitcher = {
63
- proto: ThemeSwitcher,
63
+ extend: ThemeSwitcher,
64
64
  props: {
65
65
  padding: 'Y2 X2 Y2 Z'
66
66
  },
@@ -83,7 +83,7 @@ const themeSwitcher = {
83
83
  },
84
84
 
85
85
  title: {
86
- proto: [Flex, Block],
86
+ extend: [Flex, Block],
87
87
  props: { gap: 'W' },
88
88
  style: { flexDirection: 'column' },
89
89
  text: 'Revolver',
@@ -105,7 +105,7 @@ const themeSwitcher = {
105
105
  }
106
106
 
107
107
  const style = {
108
- proto: commonComponent,
108
+ extend: commonComponent,
109
109
  caption: {
110
110
  props: { text: 'style' }
111
111
  },
@@ -142,7 +142,7 @@ const style = {
142
142
  }
143
143
 
144
144
  const spaces = {
145
- proto: commonComponent,
145
+ extend: commonComponent,
146
146
  caption: { props: { text: 'spaces' } },
147
147
  toolsContainer: {
148
148
  tools: {
@@ -185,7 +185,7 @@ const spaces = {
185
185
  }
186
186
 
187
187
  const border = {
188
- proto: commonComponent,
188
+ extend: commonComponent,
189
189
  caption: { props: { text: 'border' } },
190
190
  toolsContainer: {
191
191
  tools: {
@@ -219,7 +219,7 @@ const border = {
219
219
  }
220
220
 
221
221
  const form = {
222
- proto: commonComponent,
222
+ extend: commonComponent,
223
223
  caption: { props: { text: 'form' } },
224
224
  toolsContainer: {
225
225
  tools: {
@@ -230,7 +230,7 @@ const form = {
230
230
  tool: {
231
231
  button0: null,
232
232
  box: {
233
- proto: [Block, Shape],
233
+ extend: [Block, Shape],
234
234
  props: {
235
235
  round: 'X2'
236
236
  },
@@ -278,14 +278,14 @@ const form = {
278
278
  }
279
279
 
280
280
  export const accessibilityButoons = {
281
- proto: ButtonSet,
281
+ extend: ButtonSet,
282
282
  props: {
283
283
  gap: 'A1',
284
284
  padding: '0 0 Z 0'
285
285
  },
286
286
 
287
- childProto: {
288
- proto: SquareButton,
287
+ childExtend: {
288
+ extend: SquareButton,
289
289
  props: {
290
290
  theme: 'transparent',
291
291
  size: 'C'
@@ -301,7 +301,7 @@ export const accessibilityButoons = {
301
301
  }
302
302
 
303
303
  const accessibility = {
304
- proto: commonComponent,
304
+ extend: commonComponent,
305
305
  caption: { props: { text: 'accessibility' } },
306
306
  toolsContainer: {
307
307
  accessibilityButoons,
@@ -313,7 +313,7 @@ const accessibility = {
313
313
  tool: {
314
314
  button0: null,
315
315
  box: {
316
- proto: [Block, Shape],
316
+ extend: [Block, Shape],
317
317
  props: {
318
318
  round: 'X2'
319
319
  },
@@ -344,12 +344,12 @@ const accessibility = {
344
344
 
345
345
  export default {
346
346
  tag: 'aside',
347
- proto: [Block, Text],
347
+ extend: [Block, Text],
348
348
  props: { size: 'Y' },
349
349
  style: {
350
350
  paddingTop: '10px'
351
351
  },
352
- childProto: commonComponent,
352
+ childExtend: commonComponent,
353
353
  ...[
354
354
  style,
355
355
  spaces,
@@ -1,12 +1,11 @@
1
1
  'use strict'
2
2
 
3
- import { SEQUENCE, TYPOGRAPHY } from '@symbo.ls/all'
4
- import COMPONENTS from '../../data/components'
5
- import LIBRARIES from '../../data/library'
3
+ import { SEQUENCE, TYPOGRAPHY } from '@symbo.ls/scratch'
4
+ import { LIBRARY, COMPONENTS } from '@symbo.ls/temp-db/symbols' // eslint-disable-line
6
5
 
7
6
  const COMPONENT_ROUTES = {}
7
+ // LIBRARY.map(v => (COMPONENT_ROUTES[`/${v.key}`] = v))
8
8
  COMPONENTS.map(v => (COMPONENT_ROUTES[`/${v.key}`] = v))
9
- LIBRARIES.map(v => (COMPONENT_ROUTES[`/${v.key}`] = v))
10
9
 
11
10
  // const SEQUENCE = [8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 22, 24, 26, 32, 36, 42, 48, 56, 62, 68, 76, 84, 92, 100, 110]
12
11