@symbo.ls/preview 0.0.98 → 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.
Files changed (216) hide show
  1. package/README.md +19 -0
  2. package/app.webmanifest +4 -0
  3. package/index.html +14 -4
  4. package/netlify.toml +19 -0
  5. package/package.json +32 -32
  6. package/protect-pwd.js +65 -0
  7. package/src/animations.js +71 -0
  8. package/src/app.js +68 -30
  9. package/src/assets/dots.png +0 -0
  10. package/src/assets/dotsDark.png +0 -0
  11. package/src/config/index.js +31 -12
  12. package/src/config/theme.js +71 -1
  13. package/src/data/Symbols.sketch +0 -0
  14. package/src/data/_Symbols.sketch/document.json +1 -0
  15. package/src/data/_Symbols.sketch/fonts/6c9956fc8970ec3d8268c3f286afe19d954fc40b +0 -0
  16. package/src/data/_Symbols.sketch/fonts/750e9b005158d57108ebbcf288e2582f078d6735 +0 -0
  17. package/src/data/_Symbols.sketch/fonts/86c45cb69ad4ba2a8e6d0b81f20964b33f4eca6c +0 -0
  18. package/src/data/_Symbols.sketch/fonts/f97cec7aed309ec77b4fd3005d1a3e0d86c2a7b9 +0 -0
  19. package/src/data/_Symbols.sketch/images/0427bc225ee7dc33db78252defd5b2e4cd5b7467.png +0 -0
  20. package/src/data/_Symbols.sketch/images/0c4846cdd2f11ffb23c9ce063380fc934f7a11ea.png +0 -0
  21. package/src/data/_Symbols.sketch/images/55d3f5e93869fbd70e8dfbca1ce3dfa0cc9f2dbe.png +0 -0
  22. package/src/data/_Symbols.sketch/images/67ae1583a9d77eec7106f5016f48b5594a02b3f6.png +0 -0
  23. package/src/data/_Symbols.sketch/images/7152b3ea22388d53052d0212995a1805527ea862.png +0 -0
  24. package/src/data/_Symbols.sketch/images/72f1896a8462385fd596bc35f240382ba15814fc.png +0 -0
  25. package/src/data/_Symbols.sketch/images/73e4245b1f867343001657193ff2318c9cf2ef53.png +0 -0
  26. package/src/data/_Symbols.sketch/images/7b89dae77676fb4cfd072e0830cff9c27afd11c6.png +0 -0
  27. package/src/data/_Symbols.sketch/images/811e2b516575d3b4e7709dfef6369bce7dae0a26.png +0 -0
  28. package/src/data/_Symbols.sketch/images/82d006789579f2ee1fa45c9116f7cd7dd1bcbe37.png +0 -0
  29. package/src/data/_Symbols.sketch/images/8a896270aa4da8e2401d0ea76e46dc9b9125e59a.png +0 -0
  30. package/src/data/_Symbols.sketch/images/966688c4a579283836f15ab69c8b76e11b236ff5.png +0 -0
  31. package/src/data/_Symbols.sketch/images/b903a498e1d438e8bb12de5422f732c717b79eff.png +0 -0
  32. package/src/data/_Symbols.sketch/images/b9f3cae81a855e21ae75185dcb6ae6551c5447f1.png +0 -0
  33. package/src/data/_Symbols.sketch/images/cd0f908410abf4cad7a4501539eb0711c41a182f.png +0 -0
  34. package/src/data/_Symbols.sketch/images/d54f15f130ba4f1d4ad56f03c01ac06fe0ab4f56.png +0 -0
  35. package/src/data/_Symbols.sketch/images/df5a20029363f95abc58b2c8972e1417d84c8aa7.png +0 -0
  36. package/src/data/_Symbols.sketch/images/e889546970c931244400c2f70412c39123029cb3.png +0 -0
  37. package/src/data/_Symbols.sketch/images/f420a7a2beb15bee5d2ecbba8f296c6d4b22dfa3.png +0 -0
  38. package/src/data/_Symbols.sketch/meta.json +1 -0
  39. package/src/data/_Symbols.sketch/pages/31D11772-FB33-42EC-A3CC-79F63922E04D.json +1 -0
  40. package/src/data/_Symbols.sketch/pages/35BD91AD-F0ED-4002-891D-F1B3250E88C1.json +1 -0
  41. package/src/data/_Symbols.sketch/pages/4831AF31-ECB8-4DA6-B4D0-C1095D42146C.json +1 -0
  42. package/src/data/_Symbols.sketch/pages/6FCC0155-B3F4-4792-892E-523D45315AFD.json +1 -0
  43. package/src/data/_Symbols.sketch/pages/7996D5DD-C5B2-4EE7-9DE8-2C05E2ACA9F3.json +1 -0
  44. package/src/data/_Symbols.sketch/pages/B314C0F3-0038-473F-A127-536AF28E5272.json +1 -0
  45. package/src/data/_Symbols.sketch/pages/B6798E64-F7E9-40F5-9BD0-88A548478438.json +1 -0
  46. package/src/data/_Symbols.sketch/pages/B9B28DF3-EDC2-4D5B-A412-12B3B2E7DE58.json +1 -0
  47. package/src/data/_Symbols.sketch/pages/CA6E47E4-DAF7-4D1D-8DDC-D5A60508D9A0.json +1 -0
  48. package/src/data/_Symbols.sketch/pages/D6F5EB10-9D31-47AC-9077-1CE8CB2C2448.json +1 -0
  49. package/src/data/_Symbols.sketch/previews/preview.png +0 -0
  50. package/src/data/_Symbols.sketch/user.json +1 -0
  51. package/src/data/categories.js +44 -0
  52. package/src/data/components/button-archived/index.js +63 -0
  53. package/src/data/components/button-archived/style.js +5 -0
  54. package/src/data/components/button-circle/index.js +54 -0
  55. package/src/data/components/button-contacts/index.js +56 -0
  56. package/src/data/components/button-contacts/style.js +13 -0
  57. package/src/data/components/button-download/index.js +63 -0
  58. package/src/data/components/button-pro/index.js +98 -0
  59. package/src/data/components/button-pro/style.js +19 -0
  60. package/src/data/components/button-theme-switcher/index.js +104 -0
  61. package/src/data/components/button-theme-switcher/style.js +16 -0
  62. package/src/data/components/button-user/index.js +82 -0
  63. package/src/data/components/button-user/style.js +25 -0
  64. package/src/data/components/datepicker/index.js +40 -0
  65. package/src/data/components/datepicker/style.js +4 -0
  66. package/src/data/components/dropdown-list/index.js +56 -0
  67. package/src/data/components/field/index.js +40 -0
  68. package/src/data/components/index.js +34 -0
  69. package/src/data/components/label/index.js +40 -0
  70. package/src/data/components/notification/index.js +55 -0
  71. package/src/data/components/notification/style.js +20 -0
  72. package/src/data/components/pills/index.js +37 -0
  73. package/src/data/components/tooltip/index.js +38 -0
  74. package/src/data/index.js +3 -0
  75. package/src/data/library/button-circle/index.js +52 -0
  76. package/src/data/library/button-join/index.js +61 -0
  77. package/src/data/library/family-bundle/index.js +99 -0
  78. package/src/data/library/family-bundle/style.js +27 -0
  79. package/src/data/library/index.js +15 -0
  80. package/src/data/library/join-class/index.js +45 -0
  81. package/src/data/library/parent-mode/index.js +69 -0
  82. package/src/data/library/parent-mode/style.js +25 -0
  83. package/src/index.html +57 -0
  84. package/src/index.js +7 -0
  85. package/src/pages/Account/index.js +147 -17
  86. package/src/pages/Account/{__/setUpProject.js → setUpProject.js} +10 -10
  87. package/src/pages/Color/colors.js +58 -0
  88. package/src/pages/Color/documentThemes.js +101 -0
  89. package/src/pages/Color/index.js +10 -7
  90. package/src/pages/Color/style.js +7 -0
  91. package/src/pages/Color/themes.js +117 -23
  92. package/src/pages/ColorEditor/colorTone.js +163 -0
  93. package/src/pages/{Theme → ColorEditor}/friendTheme.js +3 -3
  94. package/src/pages/ColorEditor/index.js +178 -0
  95. package/src/pages/{Theme → ColorEditor}/interactivity.js +7 -6
  96. package/src/pages/{Theme → ColorEditor}/style.js +12 -1
  97. package/src/pages/{Theme → ColorEditor}/themingTools.js +12 -12
  98. package/src/pages/Editor/index.js +9 -7
  99. package/src/pages/Editor/layers.js +14 -14
  100. package/src/pages/Editor/scene.js +9 -7
  101. package/src/pages/Editor/tools.js +22 -22
  102. package/{.legacy → src/pages/Export}/_tools_old.js +6 -7
  103. package/src/pages/Export/const.js +4 -3
  104. package/src/pages/Export/description.js +87 -58
  105. package/src/pages/Export/header.js +37 -0
  106. package/src/pages/Export/index.js +39 -48
  107. package/src/pages/Export/scene.js +61 -98
  108. package/src/pages/Export/state.js +5 -11
  109. package/src/pages/Export/style.js +28 -0
  110. package/src/pages/Export/tools.js +86 -41
  111. package/src/pages/Icons/index.js +69 -73
  112. package/src/pages/Icons/style.js +18 -0
  113. package/src/pages/Library/index.js +47 -24
  114. package/src/pages/Library/style.js +43 -0
  115. package/src/pages/PageProto.js +26 -0
  116. package/src/pages/Shapes/index.js +204 -54
  117. package/src/pages/Shapes/style.js +28 -0
  118. package/src/pages/Spaces/boxModel.js +3 -0
  119. package/src/pages/Spaces/index.js +47 -23
  120. package/{.legacy → src/pages/Spaces}/preview.js +14 -14
  121. package/src/pages/Spaces/sequence.js +1 -30
  122. package/src/pages/Spaces/state.js +14 -12
  123. package/{.legacy → src/pages/Spaces}/style.js +3 -0
  124. package/src/pages/Typography/docFonts.js +128 -0
  125. package/src/pages/Typography/docStyles.js +97 -0
  126. package/src/pages/Typography/index.js +36 -28
  127. package/src/pages/Typography/shared.js +3 -2
  128. package/src/pages/Typography/state.js +8 -9
  129. package/src/pages/Typography/style.js +11 -0
  130. package/src/pages/Typography/typeScale.js +82 -63
  131. package/src/pages/index.js +23 -15
  132. package/src/protect.js +114 -0
  133. package/src/state.js +3 -0
  134. package/src/style.js +12 -15
  135. package/src/test.js +30 -0
  136. package/svgSprite.config.js +1 -2
  137. package/test/index.test.js +5 -0
  138. package/.legacy/index copy.js +0 -45
  139. package/.vscode/extensions.json +0 -5
  140. package/index.js +0 -44
  141. package/src/assets/dark.png +0 -0
  142. package/src/assets/mask1.png +0 -0
  143. package/src/assets/mask2.png +0 -0
  144. package/src/assets/shapes.png +0 -0
  145. package/src/assets/space.png +0 -0
  146. package/src/assets/type.png +0 -0
  147. package/src/components/Aside.js +0 -101
  148. package/src/components/Banner.js +0 -58
  149. package/src/components/ColorText.js +0 -29
  150. package/src/components/ColorsPalette.js +0 -69
  151. package/src/components/ColumnParagrphs.js +0 -23
  152. package/src/components/ContinueButton.js +0 -14
  153. package/src/components/DesignComponent.js +0 -80
  154. package/src/components/FontText.js +0 -193
  155. package/src/components/Header.js +0 -50
  156. package/src/components/HeaderHeading.js +0 -23
  157. package/src/components/IconsGroup.js +0 -60
  158. package/src/components/Page.js +0 -135
  159. package/src/components/ResponsivePreview.js +0 -44
  160. package/src/components/Route.js +0 -1
  161. package/src/components/ShapePreview.js +0 -63
  162. package/src/components/ShapeSet.js +0 -85
  163. package/src/components/SlidersWithResponsive.js +0 -23
  164. package/src/components/SpacingButton/actionButtons.js +0 -41
  165. package/src/components/SpacingButton/dropdown.js +0 -114
  166. package/src/components/SpacingButton/index.js +0 -248
  167. package/src/components/SpacingButton/props.js +0 -45
  168. package/src/components/SpacingPreview.js +0 -154
  169. package/src/components/SpacingTable.js +0 -210
  170. package/src/components/ThemeButtons.js +0 -42
  171. package/src/components/UploadImage.js +0 -61
  172. package/src/components/Widget.js +0 -1
  173. package/src/components/index.js +0 -25
  174. package/src/pages/Account/__/index.js +0 -241
  175. package/src/pages/Color/globalThemes.js +0 -30
  176. package/src/pages/Color/palette.js +0 -35
  177. package/src/pages/Components/grid.js +0 -99
  178. package/src/pages/Components/index.js +0 -37
  179. package/src/pages/Components/sidebar.js +0 -28
  180. package/src/pages/Components/style.js +0 -16
  181. package/src/pages/DesignSystem/Dashboard/banners.js +0 -38
  182. package/src/pages/DesignSystem/Dashboard/designElements.js +0 -124
  183. package/src/pages/DesignSystem/Dashboard/index.js +0 -22
  184. package/src/pages/DesignSystem/Dashboard/quickstart.js +0 -86
  185. package/src/pages/DesignSystem/Dashboard/state.js +0 -118
  186. package/src/pages/DesignSystem/Dashboard/summary.js +0 -40
  187. package/src/pages/DesignSystem/index.js +0 -187
  188. package/src/pages/Export/gist.js +0 -23
  189. package/src/pages/Fonts/fontFaces.js +0 -50
  190. package/src/pages/Fonts/fontFamilies.js +0 -47
  191. package/src/pages/Fonts/index.js +0 -15
  192. package/src/pages/Fonts/state.js +0 -5
  193. package/src/pages/Init/ChooseEnvironment.js +0 -104
  194. package/src/pages/Init/CreateDocumentTheme.js +0 -166
  195. package/src/pages/Init/CreatePalette.js +0 -72
  196. package/src/pages/Init/FontText.js +0 -23
  197. package/src/pages/Init/Personalize/fields.js +0 -109
  198. package/src/pages/Init/Personalize/icon.js +0 -42
  199. package/src/pages/Init/Personalize/index.js +0 -37
  200. package/src/pages/Init/index.js +0 -36
  201. package/src/pages/Library/disabled.js +0 -38
  202. package/src/pages/MediaQuery/index.js +0 -46
  203. package/src/pages/MediaQuery/lists.js +0 -285
  204. package/src/pages/MediaQuery/state.js +0 -150
  205. package/src/pages/MediaQuery/typeScale.js +0 -69
  206. package/src/pages/Shapes/shapeSet.js +0 -133
  207. package/src/pages/State/index.js +0 -86
  208. package/src/pages/Theme/index.js +0 -197
  209. package/src/pages/Theme/preview.js +0 -153
  210. package/src/pages/Typography/collection.js +0 -110
  211. package/src/pages/Typography/documentStyles.js +0 -125
  212. package/src/pages/Typography/rangeButtons.js +0 -58
  213. package/src/pages/Typography/stylesHelpers.js +0 -30
  214. /package/{.legacy/boxModel.js → src/data/favorites.js} +0 -0
  215. /package/{.legacy/sequence.js → src/data/filters.js} +0 -0
  216. /package/src/pages/{Theme → ColorEditor}/ntc.js +0 -0
@@ -0,0 +1,43 @@
1
+ 'use strict'
2
+
3
+ export const grid = {
4
+ display: 'grid',
5
+ gridTemplateColumns: 'repeat(12, 1fr)',
6
+ gridAutoFlow: 'dense',
7
+ justifyItems: 'stretch',
8
+ boxSizing: 'border-box',
9
+ marginBottom: '2em',
10
+ gap: '1em',
11
+ gridAutoColumns: 'auto',
12
+ gridAutoRows: 'auto',
13
+
14
+ '@media only screen and (min-width: 1680px)': {
15
+ gridTemplateColumns: 'repeat(12, 1fr)'
16
+ }
17
+ }
18
+
19
+ export const styleFamilyBundle = {
20
+ display: 'flex',
21
+ alignItems: 'center',
22
+ justifyContent: 'space-between',
23
+ width: '50em',
24
+ '> div': {
25
+ display: 'flex',
26
+ alignItems: 'center'
27
+ },
28
+ img: {
29
+ width: '32px',
30
+ height: '32px'
31
+ },
32
+ button: {
33
+ '&:first-child': {
34
+ marginRight: '8px'
35
+ }
36
+ }
37
+ }
38
+
39
+ export default {
40
+ '> header': {
41
+ marginBottom: '1em'
42
+ }
43
+ }
@@ -0,0 +1,26 @@
1
+ 'use strict'
2
+
3
+ import { Block } from '@symbo.ls/all'
4
+
5
+ export default {
6
+ tag: 'main',
7
+ proto: Block,
8
+
9
+ // props: el => el.parent.props,
10
+
11
+ class: {
12
+ page: {
13
+ width: '100%',
14
+ margin: '0 auto',
15
+ boxSizing: 'border-box',
16
+ maxWidth: `${1280 / 16}em`,
17
+ '@media only screen and (min-width: 1680px)': {
18
+ maxWidth: '102em'
19
+ },
20
+
21
+ '@media only screen and (min-width: 1920px)': {
22
+ fontSize: `${17 / 16}em`
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,75 +1,225 @@
1
1
  'use strict'
2
2
 
3
- import { Flex } from '@symbo.ls/components'
3
+ import style, { styleShapeSet } from './style'
4
4
 
5
- import {
6
- rectangle,
7
- circle,
8
- toolTip,
9
- tagShape,
10
- bubble,
11
- chevron,
12
- tv,
13
- hexagon
14
- } from './shapeSet'
5
+ import { Shape, Link, Block, Text, Flex, SectionHeader, ClickableItem } from '@symbo.ls/all'
6
+ import { PageProto } from '..'
15
7
 
16
- export const Shapes = {
17
- extend: Flex,
18
- props: {
19
- flow: 'column'
8
+ const header = {
9
+ proto: SectionHeader,
10
+ props: { padding: 'C 0 B1 0' },
11
+ heading: {
12
+ caption: { props: { text: 'HTML Shapes' } },
13
+ p: { props: { text: 'This is a very basic component that helps you to build up other more complex elements' } }
20
14
  },
15
+ nav: {
16
+ // ...[{ icon: { name: 'arrowAngleDown' } }]
17
+ }
18
+ }
21
19
 
22
- state: {
23
- props: {}
20
+ const shapeSet = {
21
+ style: styleShapeSet,
22
+ label: {
23
+ proto: [Block, Text],
24
+ props: {
25
+ size: 'Y',
26
+ padding: '0 0 A 0'
27
+ }
24
28
  },
29
+ nav: {
30
+ proto: [Flex, Block],
31
+ props: { gap: 'Z1' },
32
+ childProto: {
33
+ proto: [ClickableItem, Link, Block, Flex, Shape],
34
+ // props: el => ({ href: `/shapes/${el.key}` }),
35
+ props: {
36
+ padding: 'B',
37
+ round: 'Z'
38
+ },
39
+ style: {
40
+ padding: '1.499em'
41
+ },
25
42
 
26
- content: {
27
- extend: Flex,
28
- props: {
29
- flow: 'column'
43
+ _shape: {
44
+ proto: [Shape, Block],
45
+ props: {
46
+ theme: 'shape',
47
+ width: 'C',
48
+ height: 'C'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ const rectangle = {
56
+ proto: shapeSet,
57
+ label: {
58
+ text: 'Rectangle ',
59
+ span: 'with rounds'
60
+ },
61
+ nav: {
62
+ style: {
63
+ '&:hover': {
64
+ '> div': { background: 'orangered' }
65
+ }
30
66
  },
67
+ ...[
68
+ {},
69
+ { _shape: { props: { round: 4 } } },
70
+ { _shape: { props: { round: 6 } } },
71
+ { _shape: { props: { round: 10 } } },
72
+ { _shape: { props: { round: 12 } } },
73
+ { _shape: { props: { round: 16 } } },
74
+ { _shape: { props: { round: 26 } } }
75
+ ]
76
+ }
77
+ }
31
78
 
32
- childExtend: {
33
- extend: Flex,
34
- props: {
35
- gap: 'A2',
36
- flow: 'column',
37
- SectionHeader: {
38
- margin: '- - A2'
39
- },
40
- section: {
41
- flow: 'row wrap',
42
- gap: 'A2'
79
+ const circle = {
80
+ proto: shapeSet,
81
+ label: { text: 'Circle' },
82
+ nav: {
83
+ style: {
84
+ '&:hover': {
85
+ '> div': { background: '#1ad3e8' }
86
+ }
87
+ },
88
+ ...[
89
+ {
90
+ _shape: { props: { shape: 'circle' } }
91
+ }
92
+ ]
93
+ }
94
+ }
95
+
96
+ const toolTip = {
97
+ proto: shapeSet,
98
+ label: { text: 'Tooltip' },
99
+ nav: {
100
+ style: {
101
+ '&:hover': {
102
+ '> div': {
103
+ background: '#8f1ae8',
104
+ '&::before': { borderColor: '#8f1ae8' }
43
105
  }
44
- },
45
- section: { extend: Flex }
106
+ }
46
107
  },
108
+ childProto: {
109
+ childProto: {
110
+ proto: Shape,
111
+ props: {
112
+ round: 'Y1'
113
+ }
114
+ }
115
+ },
116
+ ...[
117
+ { _shape: { props: { shape: 'tooltip', shapeDirection: 'left' } } },
118
+ { _shape: { props: { shape: 'tooltip', shapeDirection: 'top' } } },
119
+ { _shape: { props: { shape: 'tooltip', shapeDirection: 'right' } } },
120
+ { _shape: { props: { shape: 'tooltip', shapeDirection: 'bottom' } } }
121
+ ]
122
+ }
123
+ }
47
124
 
48
- htmlShapes: {
49
- SectionHeader: {
50
- title: 'HTML Shapes',
51
- p: 'All ungrouped document icons'
52
- },
125
+ const tagShape = {
126
+ proto: shapeSet,
127
+ label: { text: 'Tag' },
128
+ nav: {
129
+ style: {
130
+ 'a > div:hover': {
131
+ '> div': {
132
+ background: '#59AC56',
133
+ '&::before': { borderColor: '#59AC56' }
134
+ }
135
+ }
136
+ },
137
+ childProto: {
138
+ childProto: {
139
+ proto: Shape,
140
+ props: { round: 6 }
141
+ }
142
+ },
143
+ ...[
144
+ { _shape: { props: { shape: 'tag', shapeDirection: 'left' } } },
145
+ { _shape: { props: { shape: 'tag', shapeDirection: 'top' } } },
146
+ { _shape: { props: { shape: 'tag', shapeDirection: 'right' } } },
147
+ { _shape: { props: { shape: 'tag', shapeDirection: 'bottom' } } }
148
+ ]
149
+ }
150
+ }
53
151
 
54
- section: {
55
- rectangle,
56
- circle,
57
- toolTip,
58
- tagShape,
59
- bubble,
60
- tv,
61
- chevron,
62
- hexagon
152
+ const bubble = {
153
+ proto: shapeSet,
154
+ label: { text: 'Bubble' },
155
+ nav: {
156
+ style: {
157
+ '> div': { background: 'white' }
158
+ },
159
+ childProto: {
160
+ childProto: {
161
+ proto: Shape
63
162
  }
64
163
  },
164
+ ...[
165
+ {
166
+ _shape: {
167
+ class: {
168
+ radius: {
169
+ borderRadius: '8px 1.618em 1.618em 8px'
170
+ }
171
+ }
172
+ }
173
+ }, {
174
+ _shape: {
175
+ class: {
176
+ radius: {
177
+ borderRadius: '1.618em 8px 8px 1.618em'
178
+ }
179
+ }
180
+ }
181
+ },
182
+ {
183
+ _shape: {
184
+ class: {
185
+ radius: {
186
+ borderRadius: '8px 8px 1.618em 1.618em'
187
+ }
188
+ }
189
+ }
190
+ },
191
+ {
192
+ _shape: {
193
+ class: {
194
+ radius: {
195
+ borderRadius: '1.618em 1.618em 8px 8px'
196
+ }
197
+ }
198
+ }
199
+ },
200
+ { _shape: { class: { radius: { borderRadius: '1.618em 8px 8px 8px' } } } },
201
+ { _shape: { class: { radius: { borderRadius: '8px 1.618em 8px 8px' } } } },
202
+ { _shape: { class: { radius: { borderRadius: '8px 8px 1.618em 8px' } } } },
203
+ { _shape: { class: { radius: { borderRadius: '8px 8px 8px 1.618em' } } } }
204
+ ]
205
+ }
206
+ }
65
207
 
66
- Line: {},
208
+ export default {
209
+ style,
67
210
 
68
- svgShapes: {
69
- SectionHeader: {
70
- title: 'SVG Shapes',
71
- p: 'TBA'
72
- }
211
+ proto: PageProto,
212
+
213
+ htmlShapes: {
214
+
215
+ header,
216
+
217
+ section: {
218
+ rectangle,
219
+ circle,
220
+ toolTip,
221
+ tagShape,
222
+ bubble
73
223
  }
74
224
  }
75
225
  }
@@ -1,6 +1,24 @@
1
1
  'use strict'
2
2
 
3
+ export const styleShapeSet = {
4
+ label: {
5
+ display: 'block',
6
+ opacity: '.65',
7
+ span: { opacity: '.2' }
8
+ },
9
+ nav: {
10
+ flexWrap: 'wrap',
11
+ a: {
12
+ cursor: 'pointer',
13
+ background: 'rgba(255, 255, 255, .05)',
14
+ alignItems: 'center',
15
+ justifyContent: 'center'
16
+ }
17
+ }
18
+ }
19
+
3
20
  export const styleUploadSVG = {
21
+
4
22
  div: {
5
23
  background: 'rgba(255, 255, 255, .05)',
6
24
  display: 'flex',
@@ -9,3 +27,13 @@ export const styleUploadSVG = {
9
27
 
10
28
  input: { display: 'none' }
11
29
  }
30
+
31
+ export default {
32
+ flex: 1,
33
+
34
+ section: {
35
+ display: 'flex',
36
+ gap: '1em',
37
+ flexWrap: 'wrap'
38
+ }
39
+ }
@@ -0,0 +1,3 @@
1
+ 'use strict'
2
+
3
+ export default {}
@@ -1,37 +1,61 @@
1
1
  'use strict'
2
2
 
3
+ import style from './style'
4
+
5
+ import { Link, TabHeader } from '@symbo.ls/all'
6
+ import { PageProto } from '..'
7
+
8
+ import preview from './preview'
3
9
  import sequence from './sequence'
4
- import { state } from './state'
10
+ import boxModel from './boxModel'
5
11
 
6
- export const Spaces = {
7
- state,
12
+ export default {
13
+ style,
14
+ key: 'spaces',
8
15
 
9
- SectionHeader: {
10
- margin: '0 0 C',
11
- title: 'Spacing',
12
- p: 'Unlike typography, component may has the properties of padding, gap, width and rest.'
13
- },
16
+ proto: PageProto,
14
17
 
15
- SlidersWithResponsive: {},
18
+ state: {
19
+ activePage: 'spaces',
20
+ activeTab: 'preview'
21
+ },
16
22
 
17
- Line: {},
23
+ define: { routes: param => param },
18
24
 
19
- sequence,
25
+ routes: {
26
+ preview,
27
+ sequence,
28
+ boxModel
29
+ },
20
30
 
21
31
  on: {
22
32
  init: (el, s) => {
23
- if (!s.__system.SPACING) {
24
- s.systemUpdate({
25
- SPACING: { base: s.base, ratio: s.ratio }
26
- }, { preventUpdate: true })
27
- }
33
+ var route = window.location.pathname
34
+ var routes = route.slice(1).split('/')
35
+ s.activeTab = routes[1] || s.activeTab
36
+ }
37
+ },
38
+
39
+ header: {
40
+ proto: TabHeader,
41
+ style: {
42
+ margin: `${42 / 16}em -2em 2em -2em`,
43
+ paddingLeft: '2em'
28
44
  },
29
- stateUpdated: (el, s, changes) => {
30
- s.systemUpdate({
31
- SPACING: { base: s.base, ratio: s.ratio }
32
- }, {
33
- preventUpdate: true
34
- })
45
+ tabs: {
46
+ childProto: {
47
+ proto: [Link]
48
+ },
49
+
50
+ preview: { props: { text: 'Spacing Preview' } }
51
+ // sequence: { props: { text: 'Sequence' } },
52
+ // boxModel: { props: { text: 'Box Model' } }
35
53
  }
36
- }
54
+ },
55
+
56
+ preview
57
+
58
+ // page: {
59
+ // content: (el, s) => ({ proto: el.parent.routes[s.activeTab] })
60
+ // }
37
61
  }
@@ -2,10 +2,10 @@
2
2
 
3
3
  import { stylePreview, styleScene } from './style'
4
4
 
5
- import { Block, Button, Flex, Text, ResponsiveToolBar, Scene, SequenceGraph, StaticSpacing, CommonField, RangeFieldWithCaption, SelectFieldWithCaption } from '@symbo.ls/components'
5
+ import { Block, Button, Flex, Text, ResponsiveToolBar, Scene, SequenceGraph, StaticSpacing, CommonField, SliderToolWithCaption, SelectToolWithCaption } from '@symbo.ls/all'
6
6
 
7
7
  const buttonDownload = {
8
- extend: Button,
8
+ proto: Button,
9
9
  state: {},
10
10
  style: {
11
11
  svg: { marginRight: `${6 / 16}em` }
@@ -25,19 +25,19 @@ export default {
25
25
  cnt: {
26
26
  aside: {
27
27
  tag: 'aside',
28
- extend: [ResponsiveToolBar, Flex]
28
+ proto: [ResponsiveToolBar, Flex]
29
29
  },
30
30
  nameSequence: {
31
31
  style: { marginRight: '5.6em' },
32
- childExtend: {
33
- extend: CommonField
32
+ childProto: {
33
+ proto: CommonField
34
34
  },
35
35
  ...[
36
36
  // {
37
37
  // caption: { text: 'Name the sequence' },
38
38
  // element: {
39
39
  // tag: 'input',
40
- // extend: Shape,
40
+ // proto: Shape,
41
41
  // props: { theme: 'quaternary', round: 'Y1' },
42
42
  // attr: (el, s) => ({
43
43
  // autofocus: true
@@ -56,7 +56,7 @@ export default {
56
56
  // },
57
57
 
58
58
  {
59
- extend: SelectFieldWithCaption,
59
+ proto: SelectToolWithCaption,
60
60
  style: { marginTop: `${26 / 16}em` },
61
61
  caption: { props: { text: 'Used for' } },
62
62
  element: {
@@ -73,10 +73,10 @@ export default {
73
73
  },
74
74
 
75
75
  baseSize: {
76
- childExtend: CommonField,
76
+ childProto: CommonField,
77
77
  ...[
78
78
  {
79
- extend: RangeFieldWithCaption,
79
+ proto: SliderToolWithCaption,
80
80
  caption: { text: 'Base size' },
81
81
  element: {
82
82
  button0: {},
@@ -87,13 +87,13 @@ export default {
87
87
  style: { marginTop: `${26 / 16}em` },
88
88
  caption: { text: 'Sequence ratio' },
89
89
  element: {
90
- extend: StaticSpacing
90
+ proto: StaticSpacing
91
91
  }
92
92
  }
93
93
  ]
94
94
  },
95
95
  scene: {
96
- extend: CommonField,
96
+ proto: CommonField,
97
97
  style: {
98
98
  flex: 1,
99
99
  marginLeft: `${110 / 16}em`
@@ -101,7 +101,7 @@ export default {
101
101
  caption: { text: 'Preview' },
102
102
  element: {
103
103
  style: styleScene,
104
- extend: [Scene, Block],
104
+ proto: [Scene, Block],
105
105
  props: {
106
106
  width: 'H2',
107
107
  height: 'G'
@@ -115,7 +115,7 @@ export default {
115
115
 
116
116
  footer: {
117
117
  caption: {
118
- extend: [Text, Block],
118
+ proto: [Text, Block],
119
119
  props: {
120
120
  size: 'Y',
121
121
  padding: '0 0 B 0'
@@ -123,7 +123,7 @@ export default {
123
123
  text: 'Sizing generated by this setting'
124
124
  },
125
125
  Sequence: {
126
- extend: [SequenceGraph, Block, Text],
126
+ proto: [SequenceGraph, Block, Text],
127
127
  style: { alignItems: 'center' },
128
128
  props: {
129
129
  size: 'X'
@@ -1,32 +1,3 @@
1
1
  'use strict'
2
2
 
3
- import { Flex } from '@symbo.ls/components'
4
-
5
- export default {
6
- extend: [Flex],
7
-
8
- props: {
9
- lazyLoad: true,
10
- flow: 'column',
11
- gap: 'C1'
12
- },
13
-
14
- SectionHeader: {
15
- title: 'Sequence',
16
- p: 'Spacing scale is a set of values that are used to define the padding, margin, gap and width of components.',
17
- margin: '0'
18
- },
19
-
20
- Flex: {
21
- props: {
22
- lazyLoad: true,
23
- flow: 'column',
24
- gap: 'B1',
25
-
26
- table: { flex: 1 },
27
- preview: { flex: 1 }
28
- },
29
-
30
- SpacingTable: {}
31
- }
32
- }
3
+ export default {}
@@ -1,16 +1,18 @@
1
1
  'use strict'
2
2
 
3
- import { SPACING } from '@symbo.ls/scratch'
3
+ import { SPACING } from '@symbo.ls/all'
4
+ import { TYPOGRAPHY_SEQUENCE } from '../Export/const'
4
5
 
5
- export const state = {
6
- base: SPACING.base,
7
- ratio: SPACING.ratio,
8
- subSequence: true,
9
- range: [-5, +12],
10
- scales: {},
11
- sequence: {},
12
- vars: {},
13
- type: 'spacing-scale',
14
-
15
- props: {}
6
+ export default {
7
+ tabs: [{
8
+ key: 0,
9
+ name: 'Default'
10
+ }, {
11
+ key: 1,
12
+ name: 'Font Size'
13
+ }],
14
+ activeTab: '0',
15
+ sequence: TYPOGRAPHY_SEQUENCE,
16
+ spacingRatio: SPACING.ratio,
17
+ currentFontSizeIndex: 3
16
18
  }
@@ -28,3 +28,6 @@ export const stylePreview = {
28
28
  }
29
29
  }
30
30
  }
31
+
32
+ export default {
33
+ }