@symbo.ls/preview 2.7.7 → 2.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/preview",
3
3
  "description": "",
4
4
  "author": "symbo.ls",
5
- "version": "2.7.7",
5
+ "version": "2.7.10",
6
6
  "main": "src/app.js",
7
7
  "scripts": {
8
8
  "link:all": "yarn link smbls domql css-in-props @symbo.ls/icons @symbo.ls/config @symbo.ls/components @symbo.ls/scratch @symbo.ls/playground @symbo.ls/utils @symbo.ls/init @symbo.ls/config-default @domql/router @domql/utils @domql/router",
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { router } from '@domql/router'
4
- import { HeaderSignup, HeaderOfMember } from '@symbo.ls/components'
4
+ import { HeaderSignup, HeaderOfMember, HeaderInitial } from '@symbo.ls/components'
5
5
 
6
6
  export const Header = {
7
7
  props: {
@@ -25,6 +25,7 @@ export const HeaderOnRouter = {
25
25
  define: { routes: param => param },
26
26
  routes: {
27
27
  '/': HeaderSignup, // HeaderInitial,
28
+ '/init': HeaderInitial, // HeaderInitial,
28
29
  '/*': HeaderOfMember
29
30
  },
30
31
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { Flex, IconButton, Link, SquareButton } from '@symbo.ls/components'
4
4
  import { fetchProject } from '@symbo.ls/fetch'
5
- import { setCookie } from 'domql/packages/cookie'
6
5
 
7
6
  import { personalAccount } from './personalAccount'
8
7
  import { projectAccount } from './projectAccount'
@@ -19,13 +18,12 @@ const ProjectButton = {
19
18
  },
20
19
  on: {
21
20
  click: (event, el, s) => {
22
- setCookie('activeProject', el.key + '', 3)
23
21
  const { id, name } = s.parse()
24
22
  fetchProject(el, s.parent, {
25
23
  username: name,
26
- projectId: id
24
+ projectId: id,
25
+ activeProject: el.key
27
26
  })
28
- console.log(s.parse())
29
27
  s.update({ activePersonalAccount: false })
30
28
  }
31
29
  }
@@ -21,6 +21,7 @@ export default ({ parent }) => {
21
21
  return {
22
22
  data: [{
23
23
  icon: 'colorOutline',
24
+ href: '/colors',
24
25
  iconTheme: 'theme',
25
26
  title: 'colors',
26
27
  paragraph: 'Colorize styles manually',
@@ -34,6 +35,7 @@ export default ({ parent }) => {
34
35
  }]
35
36
  }, {
36
37
  icon: 'typographyOutline',
38
+ href: '/typography',
37
39
  iconTheme: 'typography',
38
40
  title: 'typography',
39
41
  paragraph: 'style a typed material',
@@ -55,6 +57,7 @@ export default ({ parent }) => {
55
57
  }]
56
58
  }, {
57
59
  icon: 'spaceOutline',
60
+ href: '/space',
58
61
  iconTheme: 'space',
59
62
  title: 'Spacing',
60
63
  paragraph: 'Manage properties of a size',
@@ -67,6 +70,7 @@ export default ({ parent }) => {
67
70
  }]
68
71
  }, {
69
72
  icon: 'shape',
73
+ href: '/shape',
70
74
  iconTheme: 'shape',
71
75
  title: 'shapes',
72
76
  paragraph: 'Design an outline to a chosen component',
@@ -79,6 +83,7 @@ export default ({ parent }) => {
79
83
  }]
80
84
  }, {
81
85
  icon: 'iconsOutline',
86
+ href: '/icons',
82
87
  iconTheme: 'color',
83
88
  title: 'Icons',
84
89
  paragraph: 'Label a role of subject with glyphs',
@@ -94,6 +99,7 @@ export default ({ parent }) => {
94
99
  }]
95
100
  }, {
96
101
  icon: 'clock',
102
+ href: '/timing',
97
103
  iconTheme: 'icons',
98
104
  title: 'Timing',
99
105
  paragraph: 'Tokens for transitions and animations',
@@ -112,6 +118,7 @@ export default ({ parent }) => {
112
118
  }]
113
119
  }, {
114
120
  icon: 'deviceMobileOutline',
121
+ href: '/media-query',
115
122
  title: 'Breakpoints',
116
123
  paragraph: 'Label a role of subject with glyphs',
117
124
  properties: [{
@@ -123,6 +130,7 @@ export default ({ parent }) => {
123
130
  }]
124
131
  }, {
125
132
  icon: 'threeDots',
133
+ href: '/sequence',
126
134
  title: 'Sequence',
127
135
  paragraph: 'The mapping system of generative sizing units',
128
136
  properties: [{
@@ -14,11 +14,13 @@ export const content = {
14
14
 
15
15
  childExtend: {
16
16
  extend: [Link, ClickableItem, DesignComponent],
17
- props: {
17
+ props: () => ({
18
18
  maxWidth: 'none',
19
19
  width: '100%',
20
- margin: '- - B1'
21
- }
20
+ margin: '- - B1',
21
+ fontWeight: '400',
22
+ href: state.href
23
+ })
22
24
  },
23
25
 
24
26
  $setStateCollection: ({ state }) => state.data
@@ -137,7 +137,8 @@ export const CreateDocumentTheme = {
137
137
  on: {
138
138
  init: ({ state }) => {
139
139
  const { THEME, COLOR } = state.__projectSystem
140
- if (!THEME) return
140
+ console.log(state.__projectSystem)
141
+ if (!THEME || !THEME.document) return
141
142
  const { document } = THEME
142
143
  const dark = document['@dark']
143
144
  const light = document['@light']