@symbo.ls/preview 2.0.7 → 2.6.0
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/{src/pages/Export → .legacy}/_tools_old.js +7 -6
- package/.legacy/index copy.js +45 -0
- package/{src/pages/Spaces → .legacy}/preview.js +14 -14
- package/{src/pages/Spaces → .legacy}/style.js +0 -3
- package/.vscode/extensions.json +5 -0
- package/index.html +4 -14
- package/index.js +44 -0
- package/package.json +32 -32
- package/src/app.js +30 -68
- package/src/assets/dark.png +0 -0
- package/src/assets/mask1.png +0 -0
- package/src/assets/mask2.png +0 -0
- package/src/assets/shapes.png +0 -0
- package/src/assets/space.png +0 -0
- package/src/assets/type.png +0 -0
- package/src/components/Aside.js +101 -0
- package/src/components/Banner.js +58 -0
- package/src/components/ColorText.js +29 -0
- package/src/components/ColorsPalette.js +69 -0
- package/src/components/ColumnParagrphs.js +23 -0
- package/src/components/ContinueButton.js +14 -0
- package/src/components/DesignComponent.js +80 -0
- package/src/components/FontText.js +193 -0
- package/src/components/Header.js +50 -0
- package/src/components/HeaderHeading.js +23 -0
- package/src/components/IconsGroup.js +60 -0
- package/src/components/Page.js +135 -0
- package/src/components/ResponsivePreview.js +44 -0
- package/src/components/Route.js +1 -0
- package/src/components/ShapePreview.js +63 -0
- package/src/components/ShapeSet.js +85 -0
- package/src/components/SlidersWithResponsive.js +23 -0
- package/src/components/SpacingButton/actionButtons.js +41 -0
- package/src/components/SpacingButton/dropdown.js +114 -0
- package/src/components/SpacingButton/index.js +248 -0
- package/src/components/SpacingButton/props.js +45 -0
- package/src/components/SpacingPreview.js +154 -0
- package/src/components/SpacingTable.js +210 -0
- package/src/components/ThemeButtons.js +42 -0
- package/src/components/UploadImage.js +61 -0
- package/src/components/Widget.js +1 -0
- package/src/components/index.js +25 -0
- package/src/config/index.js +12 -31
- package/src/config/theme.js +1 -71
- package/src/pages/Account/__/index.js +241 -0
- package/src/pages/Account/{setUpProject.js → __/setUpProject.js} +10 -10
- package/src/pages/Account/index.js +17 -147
- package/src/pages/Color/globalThemes.js +30 -0
- package/src/pages/Color/index.js +7 -10
- package/src/pages/Color/palette.js +35 -0
- package/src/pages/Color/themes.js +23 -117
- package/src/pages/Components/grid.js +99 -0
- package/src/pages/Components/index.js +37 -0
- package/src/pages/Components/sidebar.js +28 -0
- package/src/pages/Components/style.js +16 -0
- package/src/pages/DesignSystem/Dashboard/banners.js +38 -0
- package/src/pages/DesignSystem/Dashboard/designElements.js +124 -0
- package/src/pages/DesignSystem/Dashboard/index.js +22 -0
- package/src/pages/DesignSystem/Dashboard/quickstart.js +86 -0
- package/src/pages/DesignSystem/Dashboard/state.js +118 -0
- package/src/pages/DesignSystem/Dashboard/summary.js +40 -0
- package/src/pages/DesignSystem/index.js +187 -0
- package/src/pages/Editor/index.js +7 -9
- package/src/pages/Editor/layers.js +14 -14
- package/src/pages/Editor/scene.js +7 -9
- package/src/pages/Editor/tools.js +22 -22
- package/src/pages/Export/const.js +3 -4
- package/src/pages/Export/description.js +58 -87
- package/src/pages/Export/gist.js +23 -0
- package/src/pages/Export/index.js +48 -39
- package/src/pages/Export/scene.js +98 -61
- package/src/pages/Export/state.js +11 -5
- package/src/pages/Export/tools.js +41 -86
- package/src/pages/Fonts/fontFaces.js +50 -0
- package/src/pages/Fonts/fontFamilies.js +47 -0
- package/src/pages/Fonts/index.js +15 -0
- package/src/pages/Fonts/state.js +5 -0
- package/src/pages/Icons/index.js +73 -69
- package/src/pages/Icons/style.js +0 -18
- package/src/pages/Init/ChooseEnvironment.js +104 -0
- package/src/pages/Init/CreateDocumentTheme.js +166 -0
- package/src/pages/Init/CreatePalette.js +72 -0
- package/src/pages/Init/FontText.js +23 -0
- package/src/pages/Init/Personalize/fields.js +109 -0
- package/src/pages/Init/Personalize/icon.js +42 -0
- package/src/pages/Init/Personalize/index.js +37 -0
- package/src/pages/Init/index.js +36 -0
- package/src/pages/Library/disabled.js +38 -0
- package/src/pages/Library/index.js +24 -47
- package/src/pages/MediaQuery/index.js +46 -0
- package/src/pages/MediaQuery/lists.js +285 -0
- package/src/pages/MediaQuery/state.js +150 -0
- package/src/pages/MediaQuery/typeScale.js +69 -0
- package/src/pages/Shapes/index.js +54 -204
- package/src/pages/Shapes/shapeSet.js +133 -0
- package/src/pages/Shapes/style.js +0 -28
- package/src/pages/Spaces/index.js +23 -47
- package/src/pages/Spaces/sequence.js +30 -1
- package/src/pages/Spaces/state.js +12 -14
- package/src/pages/State/index.js +86 -0
- package/src/pages/{ColorEditor → Theme}/friendTheme.js +3 -3
- package/src/pages/Theme/index.js +197 -0
- package/src/pages/{ColorEditor → Theme}/interactivity.js +6 -7
- package/src/pages/Theme/preview.js +153 -0
- package/src/pages/{ColorEditor → Theme}/style.js +1 -12
- package/src/pages/{ColorEditor → Theme}/themingTools.js +12 -12
- package/src/pages/Typography/collection.js +110 -0
- package/src/pages/Typography/documentStyles.js +125 -0
- package/src/pages/Typography/index.js +28 -36
- package/src/pages/Typography/rangeButtons.js +58 -0
- package/src/pages/Typography/shared.js +2 -3
- package/src/pages/Typography/state.js +9 -8
- package/src/pages/Typography/stylesHelpers.js +30 -0
- package/src/pages/Typography/typeScale.js +63 -82
- package/src/pages/index.js +15 -23
- package/src/style.js +15 -12
- package/svgSprite.config.js +2 -1
- package/README.md +0 -19
- package/app.webmanifest +0 -4
- package/netlify.toml +0 -19
- package/protect-pwd.js +0 -65
- package/src/animations.js +0 -71
- package/src/assets/dots.png +0 -0
- package/src/assets/dotsDark.png +0 -0
- package/src/data/Symbols.sketch +0 -0
- package/src/data/_Symbols.sketch/document.json +0 -1
- package/src/data/_Symbols.sketch/fonts/6c9956fc8970ec3d8268c3f286afe19d954fc40b +0 -0
- package/src/data/_Symbols.sketch/fonts/750e9b005158d57108ebbcf288e2582f078d6735 +0 -0
- package/src/data/_Symbols.sketch/fonts/86c45cb69ad4ba2a8e6d0b81f20964b33f4eca6c +0 -0
- package/src/data/_Symbols.sketch/fonts/f97cec7aed309ec77b4fd3005d1a3e0d86c2a7b9 +0 -0
- package/src/data/_Symbols.sketch/images/0427bc225ee7dc33db78252defd5b2e4cd5b7467.png +0 -0
- package/src/data/_Symbols.sketch/images/0c4846cdd2f11ffb23c9ce063380fc934f7a11ea.png +0 -0
- package/src/data/_Symbols.sketch/images/55d3f5e93869fbd70e8dfbca1ce3dfa0cc9f2dbe.png +0 -0
- package/src/data/_Symbols.sketch/images/67ae1583a9d77eec7106f5016f48b5594a02b3f6.png +0 -0
- package/src/data/_Symbols.sketch/images/7152b3ea22388d53052d0212995a1805527ea862.png +0 -0
- package/src/data/_Symbols.sketch/images/72f1896a8462385fd596bc35f240382ba15814fc.png +0 -0
- package/src/data/_Symbols.sketch/images/73e4245b1f867343001657193ff2318c9cf2ef53.png +0 -0
- package/src/data/_Symbols.sketch/images/7b89dae77676fb4cfd072e0830cff9c27afd11c6.png +0 -0
- package/src/data/_Symbols.sketch/images/811e2b516575d3b4e7709dfef6369bce7dae0a26.png +0 -0
- package/src/data/_Symbols.sketch/images/82d006789579f2ee1fa45c9116f7cd7dd1bcbe37.png +0 -0
- package/src/data/_Symbols.sketch/images/8a896270aa4da8e2401d0ea76e46dc9b9125e59a.png +0 -0
- package/src/data/_Symbols.sketch/images/966688c4a579283836f15ab69c8b76e11b236ff5.png +0 -0
- package/src/data/_Symbols.sketch/images/b903a498e1d438e8bb12de5422f732c717b79eff.png +0 -0
- package/src/data/_Symbols.sketch/images/b9f3cae81a855e21ae75185dcb6ae6551c5447f1.png +0 -0
- package/src/data/_Symbols.sketch/images/cd0f908410abf4cad7a4501539eb0711c41a182f.png +0 -0
- package/src/data/_Symbols.sketch/images/d54f15f130ba4f1d4ad56f03c01ac06fe0ab4f56.png +0 -0
- package/src/data/_Symbols.sketch/images/df5a20029363f95abc58b2c8972e1417d84c8aa7.png +0 -0
- package/src/data/_Symbols.sketch/images/e889546970c931244400c2f70412c39123029cb3.png +0 -0
- package/src/data/_Symbols.sketch/images/f420a7a2beb15bee5d2ecbba8f296c6d4b22dfa3.png +0 -0
- package/src/data/_Symbols.sketch/meta.json +0 -1
- package/src/data/_Symbols.sketch/pages/31D11772-FB33-42EC-A3CC-79F63922E04D.json +0 -1
- package/src/data/_Symbols.sketch/pages/35BD91AD-F0ED-4002-891D-F1B3250E88C1.json +0 -1
- package/src/data/_Symbols.sketch/pages/4831AF31-ECB8-4DA6-B4D0-C1095D42146C.json +0 -1
- package/src/data/_Symbols.sketch/pages/6FCC0155-B3F4-4792-892E-523D45315AFD.json +0 -1
- package/src/data/_Symbols.sketch/pages/7996D5DD-C5B2-4EE7-9DE8-2C05E2ACA9F3.json +0 -1
- package/src/data/_Symbols.sketch/pages/B314C0F3-0038-473F-A127-536AF28E5272.json +0 -1
- package/src/data/_Symbols.sketch/pages/B6798E64-F7E9-40F5-9BD0-88A548478438.json +0 -1
- package/src/data/_Symbols.sketch/pages/B9B28DF3-EDC2-4D5B-A412-12B3B2E7DE58.json +0 -1
- package/src/data/_Symbols.sketch/pages/CA6E47E4-DAF7-4D1D-8DDC-D5A60508D9A0.json +0 -1
- package/src/data/_Symbols.sketch/pages/D6F5EB10-9D31-47AC-9077-1CE8CB2C2448.json +0 -1
- package/src/data/_Symbols.sketch/previews/preview.png +0 -0
- package/src/data/_Symbols.sketch/user.json +0 -1
- package/src/data/categories.js +0 -44
- package/src/data/components/button-archived/index.js +0 -63
- package/src/data/components/button-archived/style.js +0 -5
- package/src/data/components/button-circle/index.js +0 -54
- package/src/data/components/button-contacts/index.js +0 -56
- package/src/data/components/button-contacts/style.js +0 -13
- package/src/data/components/button-download/index.js +0 -63
- package/src/data/components/button-pro/index.js +0 -98
- package/src/data/components/button-pro/style.js +0 -19
- package/src/data/components/button-theme-switcher/index.js +0 -104
- package/src/data/components/button-theme-switcher/style.js +0 -16
- package/src/data/components/button-user/index.js +0 -82
- package/src/data/components/button-user/style.js +0 -25
- package/src/data/components/datepicker/index.js +0 -40
- package/src/data/components/datepicker/style.js +0 -4
- package/src/data/components/dropdown-list/index.js +0 -56
- package/src/data/components/field/index.js +0 -40
- package/src/data/components/index.js +0 -34
- package/src/data/components/label/index.js +0 -40
- package/src/data/components/notification/index.js +0 -55
- package/src/data/components/notification/style.js +0 -20
- package/src/data/components/pills/index.js +0 -37
- package/src/data/components/tooltip/index.js +0 -38
- package/src/data/filters.js +0 -3
- package/src/data/index.js +0 -3
- package/src/data/library/button-circle/index.js +0 -52
- package/src/data/library/button-join/index.js +0 -61
- package/src/data/library/family-bundle/index.js +0 -99
- package/src/data/library/family-bundle/style.js +0 -27
- package/src/data/library/index.js +0 -15
- package/src/data/library/join-class/index.js +0 -45
- package/src/data/library/parent-mode/index.js +0 -69
- package/src/data/library/parent-mode/style.js +0 -25
- package/src/index.html +0 -57
- package/src/index.js +0 -7
- package/src/pages/Color/colors.js +0 -58
- package/src/pages/Color/documentThemes.js +0 -101
- package/src/pages/Color/style.js +0 -7
- package/src/pages/ColorEditor/colorTone.js +0 -163
- package/src/pages/ColorEditor/index.js +0 -178
- package/src/pages/Export/header.js +0 -37
- package/src/pages/Export/style.js +0 -28
- package/src/pages/Library/style.js +0 -43
- package/src/pages/PageProto.js +0 -26
- package/src/pages/Typography/docFonts.js +0 -128
- package/src/pages/Typography/docStyles.js +0 -97
- package/src/pages/Typography/style.js +0 -11
- package/src/protect.js +0 -114
- package/src/state.js +0 -3
- package/src/test.js +0 -30
- package/test/index.test.js +0 -5
- /package/{src/pages/Spaces → .legacy}/boxModel.js +0 -0
- /package/{src/data/favorites.js → .legacy/sequence.js} +0 -0
- /package/src/pages/{ColorEditor → Theme}/ntc.js +0 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
export const BREAKPOINTS_DATA = {
|
|
4
|
+
data: [{
|
|
5
|
+
icon: 'deviceBigScreenOutline',
|
|
6
|
+
name: 'iMac',
|
|
7
|
+
breakpoints: [{
|
|
8
|
+
type: 'minWidth',
|
|
9
|
+
value: '2780',
|
|
10
|
+
placeholder: '2780'
|
|
11
|
+
}]
|
|
12
|
+
}, {
|
|
13
|
+
icon: 'deviceSmallScreenOutline',
|
|
14
|
+
name: 'screenLg',
|
|
15
|
+
breakpoints: [{
|
|
16
|
+
type: 'minWidth',
|
|
17
|
+
value: '1920',
|
|
18
|
+
placeholder: '1920'
|
|
19
|
+
}]
|
|
20
|
+
}, {
|
|
21
|
+
icon: 'deviceSmallScreenOutline',
|
|
22
|
+
name: 'screebMd',
|
|
23
|
+
breakpoints: [{
|
|
24
|
+
type: 'minWidth',
|
|
25
|
+
value: '1680',
|
|
26
|
+
placeholder: '1680'
|
|
27
|
+
}]
|
|
28
|
+
}, {
|
|
29
|
+
icon: 'deviceSmallScreenOutline',
|
|
30
|
+
name: 'screebSm',
|
|
31
|
+
breakpoints: [{
|
|
32
|
+
type: 'minWidth',
|
|
33
|
+
value: '1440',
|
|
34
|
+
placeholder: '1440'
|
|
35
|
+
}]
|
|
36
|
+
}, {
|
|
37
|
+
icon: 'deviceTabletLandscapeOutline',
|
|
38
|
+
name: 'tabletLg',
|
|
39
|
+
breakpoints: [{
|
|
40
|
+
type: 'minWidth',
|
|
41
|
+
value: '1366',
|
|
42
|
+
placeholder: '1440'
|
|
43
|
+
}]
|
|
44
|
+
}, {
|
|
45
|
+
icon: 'deviceTabletLandscapeOutline',
|
|
46
|
+
name: 'tabletMd',
|
|
47
|
+
breakpoints: [{
|
|
48
|
+
type: 'minWidth',
|
|
49
|
+
value: '280',
|
|
50
|
+
placeholder: '1440'
|
|
51
|
+
}]
|
|
52
|
+
}, {
|
|
53
|
+
icon: 'deviceTabletLandscapeOutline',
|
|
54
|
+
name: 'tabletSm',
|
|
55
|
+
breakpoints: [{
|
|
56
|
+
type: 'minWidth',
|
|
57
|
+
value: '1024',
|
|
58
|
+
placeholder: '1440'
|
|
59
|
+
}]
|
|
60
|
+
}, {
|
|
61
|
+
icon: 'deviceMobileOutline',
|
|
62
|
+
name: 'mobileLg',
|
|
63
|
+
breakpoints: [{
|
|
64
|
+
type: 'minWidth',
|
|
65
|
+
value: '768',
|
|
66
|
+
value2: '657',
|
|
67
|
+
placeholder: '768'
|
|
68
|
+
}]
|
|
69
|
+
}, {
|
|
70
|
+
icon: 'deviceMobileOutline',
|
|
71
|
+
name: 'mobileMd',
|
|
72
|
+
breakpoints: [{
|
|
73
|
+
type: 'minWidth',
|
|
74
|
+
value: '560',
|
|
75
|
+
placeholder: '560'
|
|
76
|
+
}]
|
|
77
|
+
}, {
|
|
78
|
+
icon: 'deviceMobileOutline',
|
|
79
|
+
name: 'mobileSm',
|
|
80
|
+
breakpoints: [{
|
|
81
|
+
type: 'minWidth',
|
|
82
|
+
value: '480',
|
|
83
|
+
placeholder: '480'
|
|
84
|
+
}]
|
|
85
|
+
|
|
86
|
+
}, {
|
|
87
|
+
icon: 'deviceMobileOutline',
|
|
88
|
+
name: 'mobileXs',
|
|
89
|
+
breakpoints: [{
|
|
90
|
+
type: 'minWidth',
|
|
91
|
+
value: '375',
|
|
92
|
+
placeholder: '375'
|
|
93
|
+
}]
|
|
94
|
+
|
|
95
|
+
}]
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export const DEVICE_SIZE_DATA = {
|
|
99
|
+
data: [{
|
|
100
|
+
icon: 'deviceBigScreenOutline',
|
|
101
|
+
name: 'Apple XDR',
|
|
102
|
+
xValue: '3008',
|
|
103
|
+
yValue: '1692'
|
|
104
|
+
}, {
|
|
105
|
+
icon: 'deviceBigScreenOutline',
|
|
106
|
+
name: `iMac 27''`,
|
|
107
|
+
xValue: '2560',
|
|
108
|
+
yValue: '1440'
|
|
109
|
+
}, {
|
|
110
|
+
icon: 'deviceBigScreenOutline',
|
|
111
|
+
name: `iMac 24''`,
|
|
112
|
+
xValue: '2240',
|
|
113
|
+
yValue: '1260'
|
|
114
|
+
}, {
|
|
115
|
+
icon: 'deviceBigScreenOutline',
|
|
116
|
+
name: 'Full HD',
|
|
117
|
+
xValue: '1920',
|
|
118
|
+
yValue: '1080'
|
|
119
|
+
}, {
|
|
120
|
+
icon: 'deviceSmallScreenOutline',
|
|
121
|
+
name: `MacBook Pro 16''`,
|
|
122
|
+
xValue: '1728',
|
|
123
|
+
yValue: '1117'
|
|
124
|
+
}, {
|
|
125
|
+
icon: 'deviceSmallScreenOutline',
|
|
126
|
+
name: `MacBook Pro 14''`,
|
|
127
|
+
xValue: '1512',
|
|
128
|
+
yValue: '982'
|
|
129
|
+
}, {
|
|
130
|
+
icon: 'deviceSmallScreenOutline',
|
|
131
|
+
name: `MacBook Pro 13''`,
|
|
132
|
+
xValue: '1470',
|
|
133
|
+
yValue: '956'
|
|
134
|
+
}, {
|
|
135
|
+
icon: 'deviceTabletLandscapeOutline',
|
|
136
|
+
name: `iPad Pro 12.9''`,
|
|
137
|
+
xValue: '1024',
|
|
138
|
+
yValue: '1366'
|
|
139
|
+
}, {
|
|
140
|
+
icon: 'deviceTabletLandscapeOutline',
|
|
141
|
+
name: `iPad Air 10.9''`,
|
|
142
|
+
xValue: '820',
|
|
143
|
+
yValue: '1180'
|
|
144
|
+
}, {
|
|
145
|
+
icon: 'deviceTabletLandscapeOutline',
|
|
146
|
+
name: `iPad Mini 8.3''`,
|
|
147
|
+
xValue: '744',
|
|
148
|
+
yValue: '1133'
|
|
149
|
+
}]
|
|
150
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
TestText,
|
|
5
|
+
Flex
|
|
6
|
+
} from '@symbo.ls/components'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
extend: Flex,
|
|
10
|
+
|
|
11
|
+
props: {
|
|
12
|
+
gap: 'D',
|
|
13
|
+
align: 'flex-start flex-start',
|
|
14
|
+
|
|
15
|
+
sidebar: {
|
|
16
|
+
padding: 'B 0 0',
|
|
17
|
+
widthRange: 'F2',
|
|
18
|
+
position: 'sticky',
|
|
19
|
+
top: 'E'
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
content: {
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
flex: '1',
|
|
25
|
+
flow: 'column',
|
|
26
|
+
gap: 'C',
|
|
27
|
+
|
|
28
|
+
header: {
|
|
29
|
+
align: 'flex-end space-between',
|
|
30
|
+
padding: '0 0 0 C',
|
|
31
|
+
gap: 'C1'
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
footer: {
|
|
35
|
+
padding: '0 0 0 C'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
sidebar: {
|
|
41
|
+
SectionHeader: {
|
|
42
|
+
title: 'TypeScale',
|
|
43
|
+
p: 'Generate text sequence by a base size and ratio'
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
SequenceSliders: {
|
|
47
|
+
flow: 'column'
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
Paragraph: {
|
|
51
|
+
margin: '0',
|
|
52
|
+
fontSize: 'Z2',
|
|
53
|
+
padding: 'B2 0',
|
|
54
|
+
text: `Base size and ratio sequentially generate set by multiplying each next calculated unit by the ratio.`
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
content: {
|
|
59
|
+
extend: Flex,
|
|
60
|
+
|
|
61
|
+
header: {
|
|
62
|
+
extend: Flex,
|
|
63
|
+
TestText
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
sequence: {
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -1,225 +1,75 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { Flex } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
rectangle,
|
|
7
|
+
circle,
|
|
8
|
+
toolTip,
|
|
9
|
+
tagShape,
|
|
10
|
+
bubble,
|
|
11
|
+
chevron,
|
|
12
|
+
tv,
|
|
13
|
+
hexagon
|
|
14
|
+
} from './shapeSet'
|
|
7
15
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
props: {
|
|
11
|
-
|
|
12
|
-
caption: { props: { text: 'HTML Shapes' } },
|
|
13
|
-
p: { props: { text: 'This is a very basic component that helps you to build up other more complex elements' } }
|
|
16
|
+
export const Shapes = {
|
|
17
|
+
extend: Flex,
|
|
18
|
+
props: {
|
|
19
|
+
flow: 'column'
|
|
14
20
|
},
|
|
15
|
-
nav: {
|
|
16
|
-
// ...[{ icon: { name: 'arrowAngleDown' } }]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
label: {
|
|
23
|
-
proto: [Block, Text],
|
|
24
|
-
props: {
|
|
25
|
-
size: 'Y',
|
|
26
|
-
padding: '0 0 A 0'
|
|
27
|
-
}
|
|
22
|
+
state: {
|
|
23
|
+
props: {}
|
|
28
24
|
},
|
|
29
|
-
nav: {
|
|
30
|
-
proto: [Flex, Block],
|
|
31
|
-
props: { gap: 'Z1' },
|
|
32
|
-
childProto: {
|
|
33
|
-
proto: [ClickableItem, Link, Block, Flex, Shape],
|
|
34
|
-
// props: el => ({ href: `/shapes/${el.key}` }),
|
|
35
|
-
props: {
|
|
36
|
-
padding: 'B',
|
|
37
|
-
round: 'Z'
|
|
38
|
-
},
|
|
39
|
-
style: {
|
|
40
|
-
padding: '1.499em'
|
|
41
|
-
},
|
|
42
25
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
width: 'C',
|
|
48
|
-
height: 'C'
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const rectangle = {
|
|
56
|
-
proto: shapeSet,
|
|
57
|
-
label: {
|
|
58
|
-
text: 'Rectangle ',
|
|
59
|
-
span: 'with rounds'
|
|
60
|
-
},
|
|
61
|
-
nav: {
|
|
62
|
-
style: {
|
|
63
|
-
'&:hover': {
|
|
64
|
-
'> div': { background: 'orangered' }
|
|
65
|
-
}
|
|
26
|
+
content: {
|
|
27
|
+
extend: Flex,
|
|
28
|
+
props: {
|
|
29
|
+
flow: 'column'
|
|
66
30
|
},
|
|
67
|
-
...[
|
|
68
|
-
{},
|
|
69
|
-
{ _shape: { props: { round: 4 } } },
|
|
70
|
-
{ _shape: { props: { round: 6 } } },
|
|
71
|
-
{ _shape: { props: { round: 10 } } },
|
|
72
|
-
{ _shape: { props: { round: 12 } } },
|
|
73
|
-
{ _shape: { props: { round: 16 } } },
|
|
74
|
-
{ _shape: { props: { round: 26 } } }
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
31
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
_shape: { props: { shape: 'circle' } }
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
const toolTip = {
|
|
97
|
-
proto: shapeSet,
|
|
98
|
-
label: { text: 'Tooltip' },
|
|
99
|
-
nav: {
|
|
100
|
-
style: {
|
|
101
|
-
'&:hover': {
|
|
102
|
-
'> div': {
|
|
103
|
-
background: '#8f1ae8',
|
|
104
|
-
'&::before': { borderColor: '#8f1ae8' }
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
childProto: {
|
|
109
|
-
childProto: {
|
|
110
|
-
proto: Shape,
|
|
111
|
-
props: {
|
|
112
|
-
round: 'Y1'
|
|
32
|
+
childExtend: {
|
|
33
|
+
extend: Flex,
|
|
34
|
+
props: {
|
|
35
|
+
gap: 'A2',
|
|
36
|
+
flow: 'column',
|
|
37
|
+
SectionHeader: {
|
|
38
|
+
margin: '- - A2'
|
|
39
|
+
},
|
|
40
|
+
section: {
|
|
41
|
+
flow: 'row wrap',
|
|
42
|
+
gap: 'A2'
|
|
113
43
|
}
|
|
114
|
-
}
|
|
44
|
+
},
|
|
45
|
+
section: { extend: Flex }
|
|
115
46
|
},
|
|
116
|
-
...[
|
|
117
|
-
{ _shape: { props: { shape: 'tooltip', shapeDirection: 'left' } } },
|
|
118
|
-
{ _shape: { props: { shape: 'tooltip', shapeDirection: 'top' } } },
|
|
119
|
-
{ _shape: { props: { shape: 'tooltip', shapeDirection: 'right' } } },
|
|
120
|
-
{ _shape: { props: { shape: 'tooltip', shapeDirection: 'bottom' } } }
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
47
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
'a > div:hover': {
|
|
131
|
-
'> div': {
|
|
132
|
-
background: '#59AC56',
|
|
133
|
-
'&::before': { borderColor: '#59AC56' }
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
childProto: {
|
|
138
|
-
childProto: {
|
|
139
|
-
proto: Shape,
|
|
140
|
-
props: { round: 6 }
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
...[
|
|
144
|
-
{ _shape: { props: { shape: 'tag', shapeDirection: 'left' } } },
|
|
145
|
-
{ _shape: { props: { shape: 'tag', shapeDirection: 'top' } } },
|
|
146
|
-
{ _shape: { props: { shape: 'tag', shapeDirection: 'right' } } },
|
|
147
|
-
{ _shape: { props: { shape: 'tag', shapeDirection: 'bottom' } } }
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
}
|
|
48
|
+
htmlShapes: {
|
|
49
|
+
SectionHeader: {
|
|
50
|
+
title: 'HTML Shapes',
|
|
51
|
+
p: 'All ungrouped document icons'
|
|
52
|
+
},
|
|
151
53
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
proto: Shape
|
|
54
|
+
section: {
|
|
55
|
+
rectangle,
|
|
56
|
+
circle,
|
|
57
|
+
toolTip,
|
|
58
|
+
tagShape,
|
|
59
|
+
bubble,
|
|
60
|
+
tv,
|
|
61
|
+
chevron,
|
|
62
|
+
hexagon
|
|
162
63
|
}
|
|
163
64
|
},
|
|
164
|
-
...[
|
|
165
|
-
{
|
|
166
|
-
_shape: {
|
|
167
|
-
class: {
|
|
168
|
-
radius: {
|
|
169
|
-
borderRadius: '8px 1.618em 1.618em 8px'
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}, {
|
|
174
|
-
_shape: {
|
|
175
|
-
class: {
|
|
176
|
-
radius: {
|
|
177
|
-
borderRadius: '1.618em 8px 8px 1.618em'
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
_shape: {
|
|
184
|
-
class: {
|
|
185
|
-
radius: {
|
|
186
|
-
borderRadius: '8px 8px 1.618em 1.618em'
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
_shape: {
|
|
193
|
-
class: {
|
|
194
|
-
radius: {
|
|
195
|
-
borderRadius: '1.618em 1.618em 8px 8px'
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
{ _shape: { class: { radius: { borderRadius: '1.618em 8px 8px 8px' } } } },
|
|
201
|
-
{ _shape: { class: { radius: { borderRadius: '8px 1.618em 8px 8px' } } } },
|
|
202
|
-
{ _shape: { class: { radius: { borderRadius: '8px 8px 1.618em 8px' } } } },
|
|
203
|
-
{ _shape: { class: { radius: { borderRadius: '8px 8px 8px 1.618em' } } } }
|
|
204
|
-
]
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export default {
|
|
209
|
-
style,
|
|
210
65
|
|
|
211
|
-
|
|
66
|
+
Line: {},
|
|
212
67
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
rectangle,
|
|
219
|
-
circle,
|
|
220
|
-
toolTip,
|
|
221
|
-
tagShape,
|
|
222
|
-
bubble
|
|
68
|
+
svgShapes: {
|
|
69
|
+
SectionHeader: {
|
|
70
|
+
title: 'SVG Shapes',
|
|
71
|
+
p: 'TBA'
|
|
72
|
+
}
|
|
223
73
|
}
|
|
224
74
|
}
|
|
225
75
|
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { ShapeSet } from '../../components'
|
|
4
|
+
|
|
5
|
+
export const rectangle = {
|
|
6
|
+
extend: ShapeSet,
|
|
7
|
+
label: {
|
|
8
|
+
text: 'Rectangle ',
|
|
9
|
+
span: 'with rounds'
|
|
10
|
+
},
|
|
11
|
+
list: {
|
|
12
|
+
$setStateCollection: () => [
|
|
13
|
+
{ borderRadius: '0' },
|
|
14
|
+
{ borderRadius: 'X' },
|
|
15
|
+
{ borderRadius: 'Y' },
|
|
16
|
+
{ borderRadius: 'Z' },
|
|
17
|
+
{ borderRadius: 'A' },
|
|
18
|
+
{ borderRadius: 'B' },
|
|
19
|
+
{ borderRadius: 'C' }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const circle = {
|
|
25
|
+
extend: ShapeSet,
|
|
26
|
+
label: { text: 'Circle' },
|
|
27
|
+
list: {
|
|
28
|
+
$setStateCollection: () => [
|
|
29
|
+
{ shape: 'circle' }
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const toolTip = {
|
|
35
|
+
extend: ShapeSet,
|
|
36
|
+
label: { text: 'Tooltip' },
|
|
37
|
+
list: {
|
|
38
|
+
childExtend: {
|
|
39
|
+
props: {
|
|
40
|
+
childProps: { borderRadius: 'Y1' }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
$setStateCollection: () => [
|
|
45
|
+
{ shape: 'tooltip', shapeDirection: 'top' },
|
|
46
|
+
{ shape: 'tooltip', shapeDirection: 'right' },
|
|
47
|
+
{ shape: 'tooltip', shapeDirection: 'bottom' },
|
|
48
|
+
{ shape: 'tooltip', shapeDirection: 'left' }
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const tagShape = {
|
|
54
|
+
extend: ShapeSet,
|
|
55
|
+
label: { text: 'Tag' },
|
|
56
|
+
list: {
|
|
57
|
+
childExtend: {
|
|
58
|
+
props: {
|
|
59
|
+
padding: 'B C2+W',
|
|
60
|
+
childProps: { borderRadius: 6 }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
$setStateCollection: () => [
|
|
64
|
+
{ shape: 'tag', shapeDirection: 'left' },
|
|
65
|
+
{ shape: 'tag', shapeDirection: 'right' }
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const bubble = {
|
|
71
|
+
extend: ShapeSet,
|
|
72
|
+
label: { text: 'Bubble' },
|
|
73
|
+
|
|
74
|
+
list: {
|
|
75
|
+
$setStateCollection: () => [
|
|
76
|
+
{ borderRadius: 'X B B X' },
|
|
77
|
+
{ borderRadius: 'B X X B' },
|
|
78
|
+
{ borderRadius: 'X X B B' },
|
|
79
|
+
{ borderRadius: 'B B X X' },
|
|
80
|
+
{ borderRadius: 'B X X X' },
|
|
81
|
+
{ borderRadius: 'X B X X' },
|
|
82
|
+
{ borderRadius: 'X X B X' },
|
|
83
|
+
{ borderRadius: 'X X X B' }
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export const chevron = {
|
|
89
|
+
extend: ShapeSet,
|
|
90
|
+
label: { text: 'Chevron' },
|
|
91
|
+
list: {
|
|
92
|
+
childExtend: {
|
|
93
|
+
props: {
|
|
94
|
+
padding: 'B C2+W'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
$setStateCollection: () => [
|
|
98
|
+
{ shape: 'chevron', shapeDirection: 'left' },
|
|
99
|
+
{ shape: 'chevron', shapeDirection: 'right' }
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const tv = {
|
|
105
|
+
extend: ShapeSet,
|
|
106
|
+
label: { text: 'TV' },
|
|
107
|
+
list: {
|
|
108
|
+
childExtend: {
|
|
109
|
+
props: {
|
|
110
|
+
padding: 'B B2',
|
|
111
|
+
childProps: { minWidth: 'D' }
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
$setStateCollection: () => [
|
|
115
|
+
{ shape: 'tv' }
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export const hexagon = {
|
|
121
|
+
extend: ShapeSet,
|
|
122
|
+
label: { text: 'Hexagon' },
|
|
123
|
+
list: {
|
|
124
|
+
childExtend: {
|
|
125
|
+
props: {
|
|
126
|
+
padding: 'B C2+W'
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
$setStateCollection: () => [
|
|
130
|
+
{ shape: 'hexagon' }
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
export const styleShapeSet = {
|
|
4
|
-
label: {
|
|
5
|
-
display: 'block',
|
|
6
|
-
opacity: '.65',
|
|
7
|
-
span: { opacity: '.2' }
|
|
8
|
-
},
|
|
9
|
-
nav: {
|
|
10
|
-
flexWrap: 'wrap',
|
|
11
|
-
a: {
|
|
12
|
-
cursor: 'pointer',
|
|
13
|
-
background: 'rgba(255, 255, 255, .05)',
|
|
14
|
-
alignItems: 'center',
|
|
15
|
-
justifyContent: 'center'
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
3
|
export const styleUploadSVG = {
|
|
21
|
-
|
|
22
4
|
div: {
|
|
23
5
|
background: 'rgba(255, 255, 255, .05)',
|
|
24
6
|
display: 'flex',
|
|
@@ -27,13 +9,3 @@ export const styleUploadSVG = {
|
|
|
27
9
|
|
|
28
10
|
input: { display: 'none' }
|
|
29
11
|
}
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
flex: 1,
|
|
33
|
-
|
|
34
|
-
section: {
|
|
35
|
-
display: 'flex',
|
|
36
|
-
gap: '1em',
|
|
37
|
-
flexWrap: 'wrap'
|
|
38
|
-
}
|
|
39
|
-
}
|