@symbo.ls/preview 0.0.89 → 0.0.91

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.
@@ -1,145 +0,0 @@
1
- 'use strict'
2
-
3
- import { CommonField, Input, Grid, Flex, ClickableItem } from '@symbo.ls/components'
4
-
5
- import { InitPage, UploadImage } from '../../components'
6
-
7
- const fields = {
8
- extend: Grid,
9
- props: {
10
- columns: 'repeat(2, 270px)',
11
- columnGap: 'C',
12
- rowGap: 'C2',
13
- childProps: {
14
- element: {
15
- round: 'Y2'
16
- // padding: '- A'
17
- // height: 'C',
18
-
19
- // style: { background: 'rgba(255, 255, 255, .1) !important' },
20
- // align: 'center space-between',
21
- }
22
- }
23
- },
24
-
25
- childExtend: {
26
- extend: CommonField,
27
- title: {},
28
- element: { extend: Flex }
29
- },
30
-
31
- ...[{
32
- props: {
33
- title: { text: 'Name the project' },
34
- element: { placeholder: 'You name it' }
35
- },
36
-
37
- title: {},
38
- element: { extend: Input, props: { } }
39
- }, {
40
- props: {
41
- title: { text: 'Key' },
42
- element: {
43
- extend: Input,
44
- props: {
45
- placeholder: 'a-zA-Z0-9'
46
- },
47
- Span: {
48
- position: 'absolute',
49
- text: '.symbo.ls',
50
- right: 'A',
51
- pointerEvents: 'none'
52
- }
53
- }
54
- },
55
- title: {},
56
- element: {
57
- input: { extend: Input },
58
- span: {}
59
- }
60
- }, {
61
- props: { title: { text: 'URL Access' } },
62
- title: {},
63
- element: {
64
- extend: [ClickableItem],
65
- Select: {
66
- props: {
67
- outline: 'none',
68
- pointerEvents: 'all',
69
- appearance: 'none',
70
- border: 'none',
71
- width: '100%',
72
- height: '100%',
73
- background: 'none',
74
- color: 'currentColor',
75
- fontSize: 'A',
76
- lineHeight: 1,
77
- padding: 'Z A',
78
-
79
- name: 'user',
80
- id: 'user'
81
- },
82
- childExtend: { tag: 'option', text: ({ state }) => state.text },
83
- $setCollection: () => [
84
- { text: 'Private' },
85
- { text: 'Public' }
86
- ],
87
- on: {
88
- change: (ev, { parent }) => {
89
- parent.user.update({ key: ev.target.value })
90
- }
91
- }
92
- }
93
- }
94
- }]
95
- }
96
-
97
- const uploadImage = {
98
- extend: UploadImage,
99
- props: {
100
- title: { text: 'Project icon' },
101
- element: {
102
- flow: 'column',
103
- width: 'fit-content',
104
- padding: 'A',
105
- gap: '0',
106
- p: {
107
- text: 'Drag and drop or click',
108
- maxWidth: 'E',
109
- textAlign: 'center'
110
- }
111
- }
112
- }
113
-
114
- }
115
-
116
- export const Personalize = {
117
- extend: InitPage,
118
-
119
- back: null,
120
-
121
- HeaderHeading: {
122
- props: { margin: '- - D2 -' },
123
- Caption: { text: `Let's personalize your Symbols` },
124
- H1: { text: 'Hi George' }
125
- },
126
-
127
- ColumnParagraphs: {
128
- extend: true,
129
- ...[
130
- { props: { text: `In this example we'll initialize a Symbols Design System for you.` } },
131
- { props: { text: `You can connect Symbols to your app and style it online.` } }
132
- ]
133
- },
134
-
135
- content: {
136
- extend: Flex,
137
- props: { gap: 'D1' },
138
- uploadImage,
139
- fields
140
- },
141
-
142
- ContinueButton: {
143
- href: '/init/theme'
144
- }
145
- }