@symbo.ls/preview 0.0.63 → 0.0.64

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": "",
5
- "version": "0.0.63",
5
+ "version": "0.0.64",
6
6
  "repository": "https://github.com/rackai/editor",
7
7
  "main": "src/index.js",
8
8
  "scripts": {
Binary file
Binary file
@@ -44,7 +44,7 @@ export const TutorialBanner = {
44
44
  ':after': {
45
45
  transition: 'B default-bezier',
46
46
  transitionProperty: 'opacity',
47
- background: 'imageOverlay',
47
+ background: 'shadow-overlay',
48
48
  opacity: '0.9'
49
49
  },
50
50
 
@@ -71,7 +71,8 @@ export const DesignComponent = {
71
71
  maxWidth: 'F2',
72
72
  round: 'A',
73
73
  height: 'fit-content',
74
- overflow: 'hidden'
74
+ overflow: 'hidden',
75
+ userSelect: 'none'
75
76
  },
76
77
 
77
78
  componentHeader,
@@ -2,6 +2,9 @@
2
2
 
3
3
  import { PageTemplate } from '@symbo.ls/components'
4
4
 
5
+ import MASK1 from '../assets/mask1.png'
6
+ import MASK2 from '../assets/mask2.png' // eslint-disable-line
7
+
5
8
  export const Page = {
6
9
  tag: 'main',
7
10
  extend: PageTemplate,
@@ -10,3 +13,44 @@ export const Page = {
10
13
  maxWidth: 'K-default'
11
14
  }
12
15
  }
16
+
17
+ export const DisabledPage = {
18
+ props: {
19
+ maxHeight: 'calc(100vh - 7em)',
20
+ overflow: 'hidden'
21
+ },
22
+
23
+ Overlay: {
24
+ props: {
25
+ overflow: 'hidden',
26
+ background: 'shadow-overlay',
27
+ animation: 'fadeInUp',
28
+ animationDuration: 'G'
29
+ },
30
+
31
+ Overlay: {
32
+ props: {
33
+ background: 'gradient-colorful',
34
+ inset: '0 0 0 0',
35
+ opacity: '.9',
36
+ style: {
37
+ // filter: 'blur(110px)',
38
+ WebkitMaskImage: 'url(' + MASK1 + ')',
39
+ WebkitMaskSize: '100% 100%'
40
+ }
41
+ }
42
+ },
43
+
44
+ H4: {
45
+ position: 'absolute',
46
+ margin: '0',
47
+ color: 'black',
48
+ left: 'C',
49
+ bottom: 'B',
50
+ text: 'Custom library will come up soon…',
51
+ animation: 'fadeInUpLong',
52
+ animationDuration: 'G',
53
+ animationDelay: 'G'
54
+ }
55
+ }
56
+ }
@@ -9,8 +9,8 @@ export const SlidersWithResponsive = {
9
9
  align: 'flex-end space-between',
10
10
  position: 'sticky',
11
11
  top: 'C2',
12
- background: 'black .5',
13
- zIndex: '9',
12
+ theme: 'header',
13
+ zIndex: '1000',
14
14
  margin: '-B2 -B -B',
15
15
  padding: 'B2 B B',
16
16
  style: {
package/src/index.js CHANGED
@@ -10,7 +10,7 @@ import * as smbls from '@symbo.ls/components'
10
10
  import * as components from './components'
11
11
 
12
12
  import App from './app'
13
- import { Library } from './pages'
13
+ import { DesignSystem, Library } from './pages' // eslint-disable-line
14
14
  import { router, lastLevel } from '@domql/router'
15
15
 
16
16
  import { context } from './state'
@@ -30,7 +30,7 @@ const app = DOM.create({
30
30
 
31
31
  header: components.Header,
32
32
  routes: {
33
- '/': Library
33
+ // '/': DesignSystem
34
34
  }
35
35
  }, undefined, 'app', {
36
36
  extend: [smbls.Box],
@@ -2,7 +2,8 @@
2
2
 
3
3
  const startElementProps = {
4
4
  position: 'relative',
5
- maxWidth: 'G',
5
+ minWidth: 'G',
6
+ maxWidth: 'G2',
6
7
  width: '100%',
7
8
  note: {
8
9
  fontSize: 'Z1',
@@ -29,7 +30,8 @@ export default {
29
30
 
30
31
  Flex: {
31
32
  props: {
32
- gap: 'C1',
33
+ // display: 'inline-flex',
34
+ gap: 'D1',
33
35
  align: 'flex-start space-between',
34
36
  childProps: {
35
37
  flex: '1',
@@ -1,20 +1,19 @@
1
1
  'use strict'
2
2
 
3
- import { ClickableItem, Grid } from '@symbo.ls/components'
3
+ import { ClickableItem } from '@symbo.ls/components'
4
4
  import { DesignComponent } from '../../../components'
5
5
 
6
6
  import state from './state'
7
7
 
8
- export const designComponents = {
9
- extend: Grid,
8
+ export const content = {
10
9
  props: {
11
- columns: `repeat(auto-fill, 15.235%)`,
12
- rows: 'repeat(2, 1fr)',
13
- autoFlow: 'dense',
14
- justifyItems: 'flex-start',
15
- autoColumns: 'auto',
16
- autoRows: 'auto',
17
-
10
+ // columns: `repeat(6, 1fr)`,
11
+ // rows: 'repeat(2, 1fr)',
12
+ // autoFlow: 'dense',
13
+ // justifyItems: 'flex-start',
14
+ // autoColumns: 'auto',
15
+ // autoRows: 'auto',
16
+ columns: '15rem',
18
17
  gap: 'B1'
19
18
  },
20
19
 
@@ -22,10 +21,8 @@ export const designComponents = {
22
21
  extend: [ClickableItem, DesignComponent],
23
22
  props: {
24
23
  maxWidth: 'none',
25
- width: '100%'
26
-
27
- // flex: '1 1 100%'
28
- // widthRange: 'F2 G'
24
+ width: '100%',
25
+ margin: '- - B1'
29
26
  }
30
27
  },
31
28
 
@@ -41,5 +38,5 @@ export default {
41
38
  p: 'Your tokens in the system at a glance'
42
39
  },
43
40
 
44
- designComponents
41
+ content
45
42
  }
@@ -152,6 +152,7 @@ export const DesignSystem = {
152
152
 
153
153
  define: { routes: param => param },
154
154
  routes: {
155
+ '/': DesignSystemDashboard,
155
156
  '/design-system': DesignSystemDashboard,
156
157
  '/colors': Color,
157
158
  '/theme': Theme,
@@ -169,7 +170,6 @@ export const DesignSystem = {
169
170
  extend: Flex,
170
171
 
171
172
  DesignSystemNavbar: { extend: true, ...NAV },
172
-
173
173
  Page: { extend: Page }
174
174
  },
175
175
 
@@ -192,3 +192,5 @@ export const DesignSystem = {
192
192
  }
193
193
  }
194
194
  }
195
+
196
+ export * from './Dashboard'
@@ -1,12 +1,12 @@
1
1
  'use strict'
2
2
 
3
3
  import { ComponentTemplate } from '@symbo.ls/components'
4
- import { Page } from '../../components'
4
+ import { Page, DisabledPage } from '../../components'
5
5
 
6
- import { COMPONENTS } from '../../../.symbols'
6
+ import { COMPONENTS } from '../../../.symbols' // eslint-disable-line
7
7
 
8
8
  export const Library = {
9
- extend: Page,
9
+ extend: [Page, DisabledPage],
10
10
 
11
11
  SectionHeader: {
12
12
  title: 'My Symbols',
@@ -27,17 +27,9 @@ export const Library = {
27
27
  },
28
28
 
29
29
  childExtend: ComponentTemplate,
30
- $setStateCollection: () => COMPONENTS
31
- },
32
-
33
- Overlay: {
34
- inset: '50% 0 0',
35
- style: {
36
- WebkitMaskImage: '-webkit-gradient(linear, left 90%, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)))'
37
- },
38
-
39
- H1: {
40
-
30
+ $setStateCollection: () => {
31
+ return new Array(14)
32
+ // COMPONENTS
41
33
  }
42
34
  }
43
35
  }