@symbo.ls/preview 2.7.21 → 2.7.24

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 +33 -38
  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,31 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex, CommonField, Upload, ClickableItem } from '@symbo.ls/components'
4
-
5
- export const UploadImage = {
6
- extend: [CommonField],
7
- props: {
8
- element: {
9
- border: 'none',
10
- background: 'gray1',
11
- padding: 'Z A Z Z',
12
- gap: 'Z',
13
- flow: 'row',
14
- icon: { fontSize: '52px' },
15
- p: {
16
- text: 'Upload or drop the image'
17
- }
18
- }
19
- },
20
- title: { text: 'Pick from the picture' },
21
- element: {
22
- extend: [Upload, Flex, ClickableItem],
23
- icon: {},
24
- p: { span: null },
25
- input: {
26
- on: {
27
- change: async (ev, el, s) => {}
28
- }
29
- }
30
- }
31
- }
@@ -1 +0,0 @@
1
- 'use strict'
@@ -1,25 +0,0 @@
1
- 'use strict'
2
-
3
- export * from './Widget'
4
- export * from './Route'
5
- export * from './Page'
6
- export * from './Header'
7
- export * from './Aside'
8
-
9
- export * from './Banner'
10
- export * from './ShapeSet'
11
- export * from './ColorText'
12
- export * from './ThemeButtons'
13
- export * from './SlidersWithResponsive'
14
- export * from './HeaderHeading'
15
- export * from './ColorsPalette'
16
- export * from './ShapePreview'
17
- export * from './SpacingPreview'
18
- export * from './ResponsivePreview'
19
- export * from './IconsGroup'
20
- export * from './FontText'
21
- export * from './DesignComponent'
22
- export * from './ColumnParagrphs'
23
- export * from './SpacingButton'
24
- export * from './UploadImage'
25
- export * from './SpacingTable'
@@ -1,59 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex, Grid } from '@symbo.ls/components'
4
-
5
- import { fieldsGridProps } from './fieldsGridProps'
6
-
7
- const fields = {
8
- extend: Grid,
9
-
10
- InputField_email: {
11
- gridColumn: 'span 2',
12
- title: { text: 'Your Email' }
13
- },
14
-
15
- InputField_username: {
16
- title: { text: 'Your Username' }
17
- },
18
-
19
- SelectField2_role: {
20
- title: { text: 'Your role' }
21
- },
22
-
23
- PasswordField: {
24
- title: { text: 'Change Password' }
25
- },
26
-
27
- PasswordField_repeat: {
28
- title: { opacity: '0' }
29
- }
30
- }
31
-
32
- const props = {
33
- boxSize: '100% 100%',
34
- flow: 'column',
35
- title: {
36
- text: 'Your personal account',
37
- padding: '- - C2 -'
38
- },
39
- fields: {
40
- ...fieldsGridProps
41
- },
42
- button: {
43
- text: 'Update',
44
- padding: 'Z1 C1',
45
- fontSize: 'Z2',
46
- margin: 'auto - - -',
47
- width: 'fit-content'
48
- }
49
- }
50
-
51
- export const PersonalAccount = {
52
- extend: Flex,
53
- props,
54
-
55
- title: {},
56
- fields,
57
-
58
- ContinueButton: {}
59
- }
@@ -1,40 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex } from '@symbo.ls/components'
4
- import icon from '../Init/Personalize/icon'
5
- import fields from '../Init/Personalize/fields'
6
-
7
- export const ProjectAccount = {
8
- extend: Flex,
9
- props: {
10
- flow: 'column',
11
- height: '100%'
12
- },
13
-
14
- SectionHeader: {
15
- title: ({ state }) => 'Settings for ' + state.projectName,
16
- p: 'Some settings will be stored only in this device.'
17
- },
18
-
19
- ColumnParagraphs: {
20
- props: { margin: '- - D1' },
21
- ...[
22
- { props: { text: `In this example we'll initialize a Symbols Design System for you.` } },
23
- { props: { text: `But we already initialized your system, let's just make sure it's all good.` } }
24
- ]
25
- },
26
-
27
- Flex: {
28
- props: { gap: 'C1', align: 'flex-start' },
29
-
30
- icon,
31
- fields
32
- },
33
-
34
- ContinueButton: {
35
- text: 'Update',
36
- padding: 'Z1 C1',
37
- margin: 'auto - - -',
38
- width: 'fit-content'
39
- }
40
- }
@@ -1,74 +0,0 @@
1
- 'use strict'
2
-
3
- import {
4
- InputField,
5
- Grid,
6
- PasswordField,
7
- SelectField2
8
- } from '@symbo.ls/components'
9
-
10
- import { fieldsGridProps } from './fieldsGridProps'
11
-
12
- export default {
13
- extend: Grid,
14
- props: fieldsGridProps,
15
- childExtend: {
16
- title: {},
17
- element: {
18
- props: ({ state, parent }) => ({ value: state[parent.key] }),
19
- on: {
20
- change: (event, el, s) => {
21
- s.update({ [el.parent.key]: event.target.value })
22
- }
23
- }
24
- }
25
- },
26
- ...[
27
- {
28
- extend: InputField,
29
- props: { title: { text: 'Name the project' } }
30
- },
31
-
32
- {
33
- extend: InputField,
34
- props: { title: { text: 'Key' } }
35
- },
36
-
37
- {
38
- extend: SelectField2,
39
- props: {
40
- title: { text: 'URL Access' },
41
- element: { title: { text: 'Password Protected' } }
42
- }
43
- },
44
-
45
- {
46
- extend: PasswordField,
47
- props: {
48
- opacity: '.3',
49
- title: { text: 'Password' }
50
- }
51
- },
52
- {
53
- extend: SelectField2,
54
- props: {
55
- title: { text: 'Environment' },
56
- element: { title: { text: 'JavaScript' } }
57
- }
58
- },
59
-
60
- {
61
- extend: SelectField2,
62
- props: {
63
- title: { text: 'Framework' },
64
- element: { title: { text: 'DOMQL' } }
65
- }
66
- }
67
- ]
68
- }
69
-
70
- // uploadIcon: {
71
- // extend: Upload,
72
- // icon: {},
73
- // p: { span: null }
74
- // },
@@ -1,15 +0,0 @@
1
- 'use strict'
2
-
3
- export const fieldsGridProps = {
4
- width: 'fit-content',
5
- columns: 'repeat(2, 1fr)',
6
- columnGap: 'C',
7
- rowGap: 'C2',
8
- childProps: {
9
- width: 'F3',
10
- element: {
11
- placeholder: null,
12
- height: 'C'
13
- }
14
- }
15
- }
@@ -1,117 +0,0 @@
1
- 'use strict'
2
-
3
- import { router } from '@domql/router'
4
- import { Flex, IconButton, Link, SquareButton } from '@symbo.ls/components'
5
-
6
- import { PersonalAccount } from './Personal'
7
- import { ProjectAccount } from './Project'
8
-
9
- const ProjectButton = {
10
- extend: [Link, SquareButton],
11
- props: ({ state }) => ({
12
- theme: 'transparent',
13
- href: '/account/' + state.key.split('.')[0],
14
- User: {
15
- round: '100%',
16
- src: state.icon && state.icon.src,
17
- title: state.projectName
18
- }
19
- }),
20
- User: {},
21
- on: {
22
- click: (event, el, s) => {
23
- const { id, name } = s.parse()
24
- el.context.fetchProject(el, s.parent, {
25
- username: name,
26
- projectId: id,
27
- activeProject: el.key
28
- })
29
- Link.on.click(event, el, s)
30
- }
31
- }
32
- }
33
-
34
- const sidebar = {
35
- extend: Flex,
36
-
37
- props: {
38
- flow: 'column',
39
- boxSize: '100% fit-content',
40
- justifyContent: 'space-between',
41
- padding: '- C - -',
42
- borderRight: 'gray2, solid',
43
- borderWidth: '1px',
44
- minWidth: 'D1',
45
-
46
- childProps: {
47
- flow: 'column',
48
- gap: 'A2'
49
- }
50
- },
51
-
52
- childExtend: {
53
- tag: 'nav',
54
- extend: Flex
55
- },
56
-
57
- Flex: {
58
- extend: Flex,
59
- profile: {
60
- extend: [Link, IconButton],
61
- props: { icon: 'human', href: '/account' }
62
- },
63
-
64
- projects: {
65
- extend: Flex,
66
- props: {
67
- flow: 'column',
68
- gap: 'A'
69
- },
70
- childExtend: ProjectButton,
71
- $setStateCollection: ({ state }) => state.projects
72
- },
73
-
74
- add: {
75
- extend: [IconButton, Link],
76
- props: { icon: 'plus', href: '/init/create' }
77
- }
78
- },
79
-
80
- meta: {
81
- extend: Flex,
82
- childExtend: [Link, IconButton],
83
- props: { gap: 'A' },
84
- info: { props: { icon: 'info' } },
85
- logout: { props: { icon: 'logout', href: '/logout' } }
86
- }
87
- }
88
-
89
- const props = {
90
- boxSize: '100% 100%',
91
- padding: 'D - D D1',
92
- gap: 'E',
93
- overflow: 'hidden',
94
-
95
- content: { flex: '1' }
96
- }
97
-
98
- export const Account = {
99
- extend: Flex,
100
- props,
101
-
102
- sidebar,
103
-
104
- define: { routes: param => param },
105
- routes: {
106
- '/': PersonalAccount,
107
- '/*': ProjectAccount
108
- },
109
-
110
- on: {
111
- render: element => {
112
- const { pathname, hash } = window.location
113
- const url = pathname + hash
114
- router(element, url, {})
115
- }
116
- }
117
- }
@@ -1,32 +0,0 @@
1
- 'use strict'
2
-
3
- import { GlobalThemeTemplate, Flex, SectionHeader, Link, ClickableItem } from '@symbo.ls/components'
4
-
5
- export default {
6
- state: 'THEME',
7
-
8
- header: {
9
- extend: SectionHeader,
10
- state: {
11
- title: 'Global Themes',
12
- p: 'Document styling and theming provides global themes of the entire app, imagine it as a <body> styling'
13
- }
14
- },
15
-
16
- modes: {
17
- extend: Flex,
18
- props: { gap: 'A' },
19
-
20
- childExtend: [GlobalThemeTemplate, ClickableItem, Link],
21
-
22
- $setStateCollection: () => [{
23
- title: 'Light',
24
- key: 'light',
25
- icon: 'sun'
26
- }, {
27
- title: 'Dark',
28
- key: 'dark',
29
- icon: 'moon'
30
- }]
31
- }
32
- }
@@ -1,18 +0,0 @@
1
- 'use strict'
2
-
3
- import globalThemes from './globalThemes'
4
- import palette from './palette'
5
- import themes from './themes'
6
-
7
- export const Color = {
8
- key: 'colors',
9
- state: 'PROJECT_SYSTEM',
10
-
11
- props: { gap: 'A' },
12
-
13
- globalThemes,
14
- Line: {},
15
- palette,
16
- Line_2: {},
17
- themes
18
- }
@@ -1,36 +0,0 @@
1
- 'use strict'
2
-
3
- import { SectionHeader, ColorTemplate, Flex } from '@symbo.ls/components'
4
-
5
- const mapColors = (el, s) => {
6
- const COLOR = s.parse()
7
- const colorKeys = Object.keys(COLOR)
8
- return colorKeys.map(v => ({ key: v, value: COLOR[v] }))
9
- }
10
-
11
- export default {
12
- state: 'COLOR',
13
-
14
- header: {
15
- extend: SectionHeader,
16
- state: {
17
- title: 'Color Palette',
18
- p: 'Document styling and theming',
19
- nav: [{
20
- icon: 'plus',
21
- href: '/colors/add-color'
22
- }]
23
- }
24
- },
25
-
26
- cnt: {
27
- extend: Flex,
28
- props: {
29
- flow: 'row wrap',
30
- gap: 'Z2'
31
- },
32
-
33
- childExtend: ColorTemplate,
34
- $setStateCollection: mapColors
35
- }
36
- }
@@ -1,37 +0,0 @@
1
- 'use strict'
2
-
3
- import { ThemeTemplate, SectionHeader, Grid } from '@symbo.ls/components'
4
-
5
- const mapThemes = (el, s) => {
6
- const THEME = s.parse()
7
- const themeKeys = Object.keys(THEME)
8
- return themeKeys.map(v => ({ ...THEME[v], key: v }))
9
- }
10
-
11
- export default {
12
- state: 'THEME',
13
-
14
- header: {
15
- extend: SectionHeader,
16
- state: {
17
- title: 'Themes',
18
- p: 'Themes are used to prepare color setting abstractly and apply it to any component',
19
- nav: [{
20
- icon: 'plus',
21
- href: '/colors/add-color'
22
- }]
23
- }
24
- },
25
-
26
- cnt: {
27
- extend: Grid,
28
- props: {
29
- columns: 'repeat(5, 1fr)',
30
- gap: 'C2',
31
- margin: '0 -Z'
32
- },
33
-
34
- childExtend: ThemeTemplate,
35
- $setStateCollection: mapThemes
36
- }
37
- }
@@ -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
- }