@symbo.ls/preview 2.7.6 → 2.7.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.
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.6",
5
+ "version": "2.7.7",
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,8 +1,7 @@
1
1
  'use strict'
2
2
 
3
- import { fetch } from '@symbo.ls/based'
4
- import { Flex, CommonField, ProjectTab, ContinueButton } from '@symbo.ls/components'
5
- import { Grid } from '@symbo.ls/components/src'
3
+ import { Flex, ProjectTab, Grid } from '@symbo.ls/components'
4
+
6
5
  import { InitPage } from '../../components'
7
6
 
8
7
  const props = {
@@ -39,21 +38,21 @@ export const ChooseProject = {
39
38
  gap: 'D1',
40
39
  margin: '10% -Z auto'
41
40
  },
42
-
41
+
43
42
  childExtend: ProjectTab,
44
43
  $setStateCollection: ({ state }) => state.projects
45
44
  },
46
45
 
47
46
  footer: {
48
47
  extend: Flex,
49
- props: {
48
+ props: {
50
49
  align: 'flex-start flex-start',
51
50
  gap: 'C',
52
- margin: 'auto - -',
51
+ margin: 'auto - -'
53
52
  },
54
53
  ContinueButton: {
55
54
  text: 'Create',
56
- href: '/init/personalize'
55
+ href: '/init/create'
57
56
  },
58
57
  p: {
59
58
  text: `In this example we'll initialize a Symbols Design System for you.`
@@ -137,6 +137,7 @@ export const CreateDocumentTheme = {
137
137
  on: {
138
138
  init: ({ state }) => {
139
139
  const { THEME, COLOR } = state.__projectSystem
140
+ if (!THEME) return
140
141
  const { document } = THEME
141
142
  const dark = document['@dark']
142
143
  const light = document['@light']