@symbo.ls/init 2.11.370 → 2.11.371
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/dynamic.json +1287 -193
- package/package.json +2 -2
package/dynamic.json
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"syncSchema": true,
|
|
62
62
|
"isSidebarSticky": false,
|
|
63
63
|
"showFileSidebar": false,
|
|
64
|
-
"componentShowFilter": "
|
|
64
|
+
"componentShowFilter": "recents",
|
|
65
65
|
"layoutDirection": "right",
|
|
66
66
|
"syncRouteNavigation": false,
|
|
67
67
|
"previewSize": "unset",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
|
-
"
|
|
210
|
+
"LayerSimple": {
|
|
211
211
|
"extend": "CommonFieldLike",
|
|
212
212
|
"props": {
|
|
213
213
|
"padding": "Z A A A",
|
|
@@ -2582,7 +2582,7 @@
|
|
|
2582
2582
|
}
|
|
2583
2583
|
},
|
|
2584
2584
|
"Code": {
|
|
2585
|
-
"props": "({\n props\n }) => ({\n tag: 'pre',\n display: 'block',\n round: 'A',\n padding: 'A B',\n width: '100%',\n maxWidth: 'H',\n minHeight: 'E',\n border: 'gray8, dashed, 1px',\n text: 'Code: ' + (props?.code?.text?.domql || props?.code?.text || ''),\n })",
|
|
2585
|
+
"props": "({\n props\n }) => ({\n tag: 'pre',\n display: 'block',\n round: 'A',\n padding: 'A B',\n width: '100%',\n maxWidth: 'H',\n minHeight: 'E',\n border: 'gray8, dashed, 1px',\n overflow: 'auto',\n text: 'Code: ' + (props?.code?.text?.symbols || props?.code?.text?.domql || props?.code?.text || ''),\n })",
|
|
2586
2586
|
"title": null,
|
|
2587
2587
|
"code": null,
|
|
2588
2588
|
"buttons": null
|
|
@@ -2791,25 +2791,12 @@
|
|
|
2791
2791
|
"id": "add-page"
|
|
2792
2792
|
},
|
|
2793
2793
|
"p": {
|
|
2794
|
-
"text": "
|
|
2794
|
+
"text": "Creating pages allow you apply routing to pages you create and add more SEO and other metadata properties."
|
|
2795
2795
|
}
|
|
2796
2796
|
},
|
|
2797
2797
|
"SuggestionAction": {
|
|
2798
|
-
"
|
|
2799
|
-
"
|
|
2800
|
-
"padding": "D1",
|
|
2801
|
-
"textAlign": "center",
|
|
2802
|
-
"fontWeight": "regular",
|
|
2803
|
-
"round": "B1",
|
|
2804
|
-
"maxWidth": "I",
|
|
2805
|
-
"border": "gray2 1 +4, 1px, solid",
|
|
2806
|
-
":hover": {
|
|
2807
|
-
"border": "gray2 1 +4, 1px, solid",
|
|
2808
|
-
"background": "gray2 .1"
|
|
2809
|
-
},
|
|
2810
|
-
"text": "Add a page",
|
|
2811
|
-
"href": "/docs/pages/add-component/add-page"
|
|
2812
|
-
}
|
|
2798
|
+
"text": "Add a page",
|
|
2799
|
+
"href": "/docs/pages/add-page"
|
|
2813
2800
|
},
|
|
2814
2801
|
"Section": {
|
|
2815
2802
|
"attr": {
|
|
@@ -2825,7 +2812,8 @@
|
|
|
2825
2812
|
"title": null,
|
|
2826
2813
|
"code": {
|
|
2827
2814
|
"text": {
|
|
2828
|
-
"
|
|
2815
|
+
"symbols": "{\n extend: 'Layout',\n props: {\n padding: 'C2 A',\n background: 'gray',\n borderRadius: 'C'\n },\n H1: {\n text: 'Hello Symbols'\n }\n}",
|
|
2816
|
+
"domql": "{\n '/': {\n extend: 'Layout',\n props: {\n padding: 'C2 A',\n background: 'gray',\n borderRadius: 'C'\n },\n H1: {\n text: 'Hello Symbols'\n }\n }\n}",
|
|
2829
2817
|
"react": ""
|
|
2830
2818
|
}
|
|
2831
2819
|
}
|
|
@@ -3149,7 +3137,7 @@
|
|
|
3149
3137
|
],
|
|
3150
3138
|
"props": {
|
|
3151
3139
|
"round": "A",
|
|
3152
|
-
"padding": "- -
|
|
3140
|
+
"padding": "- - C3",
|
|
3153
3141
|
"borderWidth": "1px",
|
|
3154
3142
|
"borderStyle": "solid",
|
|
3155
3143
|
"borderColor": "line",
|
|
@@ -3181,189 +3169,210 @@
|
|
|
3181
3169
|
}
|
|
3182
3170
|
}
|
|
3183
3171
|
}
|
|
3184
|
-
}
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3172
|
+
},
|
|
3173
|
+
"Item": {
|
|
3174
|
+
"extend": [
|
|
3175
|
+
"ArticleMedium",
|
|
3176
|
+
"Link"
|
|
3177
|
+
],
|
|
3178
|
+
"state": {
|
|
3179
|
+
"icon": "tree outline",
|
|
3180
|
+
"title": "Design System",
|
|
3181
|
+
"href": "/docs/design-system",
|
|
3182
|
+
"p": "Organized brand tokens into design and code"
|
|
3190
3183
|
},
|
|
3191
|
-
"
|
|
3184
|
+
"props": {
|
|
3185
|
+
"gap": "Y",
|
|
3186
|
+
"round": "A",
|
|
3187
|
+
"flex": "1",
|
|
3188
|
+
"padding": "A2 C D1 B",
|
|
3189
|
+
"width": "100%",
|
|
3190
|
+
"href": "{{ href }}",
|
|
3191
|
+
"Icon": {
|
|
3192
|
+
"name": "{{ icon }}",
|
|
3193
|
+
"fontSize": "B",
|
|
3194
|
+
"margin": "- - C1"
|
|
3195
|
+
},
|
|
3192
3196
|
"title": {
|
|
3193
|
-
"text": "
|
|
3194
|
-
}
|
|
3195
|
-
},
|
|
3196
|
-
"AtomicComponents": {},
|
|
3197
|
-
"Destructuring": {},
|
|
3198
|
-
"ArticleMedium": {
|
|
3199
|
-
"props": {
|
|
3200
|
-
"title": {
|
|
3201
|
-
"text": "Customizing defaults"
|
|
3202
|
-
},
|
|
3203
|
-
"p": {
|
|
3204
|
-
"text": "This is simple button so called atom."
|
|
3205
|
-
}
|
|
3197
|
+
"text": "{{ title }}"
|
|
3206
3198
|
},
|
|
3207
|
-
"title": {},
|
|
3208
3199
|
"p": {
|
|
3209
|
-
"
|
|
3210
|
-
"
|
|
3211
|
-
"extend": "DocsLink",
|
|
3212
|
-
"text": "Design System",
|
|
3213
|
-
"props": {
|
|
3214
|
-
"href": "/docs/design-system"
|
|
3215
|
-
}
|
|
3216
|
-
},
|
|
3217
|
-
"2": " page in this documentation explains each one in more detail.",
|
|
3218
|
-
"extend": "Paragraph"
|
|
3200
|
+
"text": "{{ p }}",
|
|
3201
|
+
"maxWidth": "F2"
|
|
3219
3202
|
}
|
|
3220
3203
|
}
|
|
3221
3204
|
},
|
|
3222
|
-
"
|
|
3205
|
+
"ItemOutline": {
|
|
3206
|
+
"extend": [
|
|
3207
|
+
"Item",
|
|
3208
|
+
"ClickableItem"
|
|
3209
|
+
],
|
|
3210
|
+
"props": "({\n state\n }) => ({\n hasHref: !!state.href,\n padding: 'A B',\n theme: 'common-card-outline-interactive',\n borderWidth: '1px',\n borderStyle: 'solid',\n '!hasHref': {\n pointerEvents: 'none',\n opacity: 0.35\n }\n })",
|
|
3211
|
+
"Icon": {}
|
|
3212
|
+
},
|
|
3213
|
+
"Guidebook": {
|
|
3214
|
+
"extend": "CommonFieldLike",
|
|
3223
3215
|
"props": {
|
|
3224
|
-
"
|
|
3225
|
-
"
|
|
3226
|
-
|
|
3227
|
-
|
|
3216
|
+
"gap": "A",
|
|
3217
|
+
"@mobileL": {
|
|
3218
|
+
"margin": "0 -Y2"
|
|
3219
|
+
},
|
|
3228
3220
|
"title": {
|
|
3229
|
-
"text": "
|
|
3221
|
+
"text": "The Guidebook",
|
|
3222
|
+
"padding": "- - - Y2"
|
|
3230
3223
|
},
|
|
3231
|
-
"
|
|
3232
|
-
"
|
|
3233
|
-
|
|
3224
|
+
"element": {
|
|
3225
|
+
"gap": "A",
|
|
3226
|
+
"columns": "repeat(5, 1fr)",
|
|
3227
|
+
"overflow": "auto hidden",
|
|
3228
|
+
"@screenM": {
|
|
3229
|
+
"columns": "repeat(4, 1fr)"
|
|
3234
3230
|
},
|
|
3235
|
-
"
|
|
3236
|
-
"
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
"
|
|
3242
|
-
|
|
3243
|
-
"extend": "LabeledHighlight",
|
|
3244
|
-
"text": "yourproject.symbo.ls/yourpage"
|
|
3245
|
-
},
|
|
3246
|
-
". The best way to reuse same layout through pages it to create Layout component and use it inside page as extend."
|
|
3247
|
-
]
|
|
3231
|
+
"@tabletM": {
|
|
3232
|
+
"columns": "repeat(3, 1fr)"
|
|
3233
|
+
},
|
|
3234
|
+
"@mobileL": {
|
|
3235
|
+
"width": "calc(100% + var(--spacing-B) * 2)",
|
|
3236
|
+
"margin": "0 -B",
|
|
3237
|
+
"padding": "0 A2"
|
|
3238
|
+
}
|
|
3248
3239
|
}
|
|
3249
3240
|
},
|
|
3250
|
-
"
|
|
3251
|
-
"
|
|
3252
|
-
|
|
3241
|
+
"title": {},
|
|
3242
|
+
"element": {
|
|
3243
|
+
"extend": "Grid",
|
|
3244
|
+
"childExtend": "ItemOutline",
|
|
3245
|
+
"$stateCollection": "() => [{\n icon: 'tree outline',\n title: 'Design System',\n href: '/docs/design-system',\n p: 'Organized brand tokens into design and code'\n }, {\n icon: 'grid outline',\n title: 'Components',\n href: '/docs/components',\n p: 'Component templates can be adjusted to your styles'\n }, {\n icon: 'pages outline',\n title: 'Pages',\n href: '/docs/pages',\n p: 'Your app, driven by a realtime data structures'\n }, {\n icon: 'code outline',\n title: 'Content',\n href: '/docs/content',\n p: 'Add state and CMS to your components and pages'\n }, {\n icon: 'fn outline',\n title: 'Functions',\n href: '/docs/functions',\n p: 'Create browser and node functions'\n }, {\n icon: 'folder outline',\n title: 'Files',\n href: '/docs/files',\n p: 'Manage files and user our global CDN delivery'\n }, {\n icon: 'npm outline',\n title: 'Dependencies',\n href: '/docs/dependencies',\n p: 'Using NPM depdendencies'\n }, {\n icon: 'noIcon',\n title: 'Secrets',\n href: '/docs/secrets',\n p: 'Securely store secret keys'\n }, {\n icon: 'fuse outline',\n title: 'Integrations',\n href: '/docs/integrations',\n p: 'Integration 3rd party libraries'\n }, {\n icon: 'upload outline',\n title: 'Deployment',\n href: '/docs/deployment',\n p: 'Learn about publishing and deployment options'\n }]"
|
|
3246
|
+
}
|
|
3253
3247
|
},
|
|
3254
|
-
"
|
|
3248
|
+
"Contributors": {
|
|
3249
|
+
"extend": "Flex",
|
|
3250
|
+
"if": "({\n state\n }) => !state.userToken",
|
|
3255
3251
|
"props": {
|
|
3256
|
-
"
|
|
3257
|
-
"
|
|
3252
|
+
"flow": "column",
|
|
3253
|
+
"align": "center flex-start",
|
|
3254
|
+
"padding": "- A D",
|
|
3255
|
+
"gap": "B2",
|
|
3256
|
+
"position": "relative"
|
|
3258
3257
|
},
|
|
3259
3258
|
"ArticleBig": {
|
|
3259
|
+
"gap": "0",
|
|
3260
|
+
"textAlign": "center",
|
|
3261
|
+
"width": "fit-content",
|
|
3262
|
+
"color": "white",
|
|
3260
3263
|
"title": {
|
|
3261
|
-
"text": "
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
"ArticleMedium": {
|
|
3268
|
-
"title": {
|
|
3269
|
-
"text": "Adding a page",
|
|
3270
|
-
"id": "add-page"
|
|
3264
|
+
"text": "Contributors",
|
|
3265
|
+
"fontWeight": "700",
|
|
3266
|
+
"@mobileL": {
|
|
3267
|
+
"lineHeight": 1,
|
|
3268
|
+
"margin": "- - W"
|
|
3269
|
+
}
|
|
3271
3270
|
},
|
|
3272
3271
|
"p": {
|
|
3273
|
-
"
|
|
3272
|
+
"color": "gray9",
|
|
3273
|
+
"text": "Thanks to these folks for the Github contribution"
|
|
3274
3274
|
}
|
|
3275
3275
|
},
|
|
3276
|
-
"
|
|
3277
|
-
"extend": "Link",
|
|
3276
|
+
"Flex": {
|
|
3278
3277
|
"props": {
|
|
3279
|
-
"
|
|
3280
|
-
"
|
|
3281
|
-
"fontWeight": "regular",
|
|
3282
|
-
"round": "B1",
|
|
3283
|
-
"maxWidth": "I",
|
|
3284
|
-
"border": "gray2 1 +4, 1px, solid",
|
|
3285
|
-
":hover": {
|
|
3286
|
-
"border": "gray2 1 +4, 1px, solid",
|
|
3287
|
-
"background": "gray2 .1"
|
|
3288
|
-
},
|
|
3289
|
-
"text": "Add a dependency",
|
|
3290
|
-
"href": "/page/dependencies/add-dependency"
|
|
3291
|
-
}
|
|
3292
|
-
},
|
|
3293
|
-
"Section": {
|
|
3294
|
-
"attr": {
|
|
3295
|
-
"id": "create"
|
|
3278
|
+
"gap": "A2",
|
|
3279
|
+
"align": "center center"
|
|
3296
3280
|
},
|
|
3297
|
-
"
|
|
3298
|
-
"
|
|
3299
|
-
"
|
|
3300
|
-
"
|
|
3281
|
+
"childExtend": {
|
|
3282
|
+
"extend": "Avatar",
|
|
3283
|
+
"props": {
|
|
3284
|
+
"boxSize": "C",
|
|
3285
|
+
"cursor": "default",
|
|
3286
|
+
"opacity": ".65",
|
|
3287
|
+
"transition": "opacity defaultBezier A",
|
|
3288
|
+
":hover": {
|
|
3289
|
+
"opacity": "1"
|
|
3290
|
+
}
|
|
3301
3291
|
}
|
|
3302
3292
|
},
|
|
3303
|
-
"
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
"
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3293
|
+
"$propsCollection": [
|
|
3294
|
+
{
|
|
3295
|
+
"alt": "nikoloza",
|
|
3296
|
+
"src": "https://avatars.githubusercontent.com/u/962224?s=120&v=4"
|
|
3297
|
+
},
|
|
3298
|
+
{
|
|
3299
|
+
"alt": "svinchy",
|
|
3300
|
+
"src": "https://avatars.githubusercontent.com/u/36074573?s=120&v=4"
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
"alt": "gugakatsi",
|
|
3304
|
+
"src": "https://avatars.githubusercontent.com/u/9134169?s=120&v=4"
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
"alt": "nikaoto",
|
|
3308
|
+
"src": "https://avatars.githubusercontent.com/u/21026339?s=120&v=4"
|
|
3309
|
+
},
|
|
3310
|
+
{
|
|
3311
|
+
"alt": "tokoyoung",
|
|
3312
|
+
"src": "https://avatars.githubusercontent.com/u/33081308?s=120&v=4"
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
"alt": "AlexTogonidze",
|
|
3316
|
+
"src": "https://avatars.githubusercontent.com/u/15612347?s=120&v=4"
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
"alt": "denismemphis",
|
|
3320
|
+
"src": "https://avatars.githubusercontent.com/u/126146345?v=4"
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
"alt": "MariamZedginidze",
|
|
3324
|
+
"src": "https://avatars.githubusercontent.com/u/66626385?v=4"
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
"alt": "rezicosta",
|
|
3328
|
+
"src": "https://avatars.githubusercontent.com/u/26996528?v=4"
|
|
3329
|
+
},
|
|
3330
|
+
{
|
|
3331
|
+
"alt": "lberia",
|
|
3332
|
+
"src": "https://avatars.githubusercontent.com/u/17147261?v=4"
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
"alt": "irakliberidze",
|
|
3336
|
+
"src": "https://avatars.githubusercontent.com/u/60253579?v=4"
|
|
3337
|
+
},
|
|
3338
|
+
{
|
|
3339
|
+
"alt": "burdulixda",
|
|
3340
|
+
"src": "https://avatars.githubusercontent.com/u/46271505?v=4"
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
"alt": "julianbraha",
|
|
3344
|
+
"src": "https://avatars.githubusercontent.com/u/11775551?v=4"
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"alt": "iviixii",
|
|
3348
|
+
"src": "https://avatars.githubusercontent.com/u/6956643?v=4"
|
|
3310
3349
|
}
|
|
3311
|
-
|
|
3350
|
+
]
|
|
3312
3351
|
}
|
|
3313
3352
|
},
|
|
3314
|
-
"
|
|
3353
|
+
"CreatingComponent": {
|
|
3354
|
+
"extend": "Flex",
|
|
3315
3355
|
"props": {
|
|
3316
|
-
"
|
|
3317
|
-
"gap": "
|
|
3318
|
-
},
|
|
3319
|
-
"ArticleBig": {
|
|
3320
|
-
"title": {
|
|
3321
|
-
"text": "Files"
|
|
3322
|
-
},
|
|
3323
|
-
"p": {
|
|
3324
|
-
"text": "Files are easy way to upload assets and custom scripts on the cloud and use throughout your app. Files can store any media, code or content and use it through the CDN. Other than using accessible URLs of files, you can as well use them inside code using Javascript require statement."
|
|
3325
|
-
}
|
|
3356
|
+
"flow": "column",
|
|
3357
|
+
"gap": "C1"
|
|
3326
3358
|
},
|
|
3327
3359
|
"ArticleMedium": {
|
|
3360
|
+
"attr": {
|
|
3361
|
+
"id": "create-component"
|
|
3362
|
+
},
|
|
3328
3363
|
"title": {
|
|
3329
|
-
"text": "
|
|
3330
|
-
"id": "add-page"
|
|
3364
|
+
"text": "Creating a component"
|
|
3331
3365
|
},
|
|
3332
3366
|
"p": {
|
|
3333
|
-
"text": "This
|
|
3367
|
+
"text": "This page will help you to start with components."
|
|
3334
3368
|
}
|
|
3335
3369
|
},
|
|
3336
3370
|
"SuggestionAction": {
|
|
3337
|
-
"
|
|
3338
|
-
"
|
|
3371
|
+
"text": "Add a component",
|
|
3372
|
+
"href": "/docs/components/add-component"
|
|
3339
3373
|
},
|
|
3340
3374
|
"Section": {
|
|
3341
|
-
"
|
|
3342
|
-
"id": "create"
|
|
3343
|
-
},
|
|
3344
|
-
"ArticleMedium": {
|
|
3345
|
-
"margin": "- - Z2",
|
|
3346
|
-
"p": {
|
|
3347
|
-
"text": "Example code:"
|
|
3348
|
-
}
|
|
3349
|
-
},
|
|
3350
|
-
"Code": {
|
|
3351
|
-
"title": null,
|
|
3352
|
-
"code": {
|
|
3353
|
-
"text": {
|
|
3354
|
-
"domql": "{\n Input: {\n onInput: (ev, el, s) => {\n const file = require('imgFromFiles.jpg')\n console.log(file)\n },\n },\n}",
|
|
3355
|
-
"react": ""
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
}
|
|
3359
|
-
},
|
|
3360
|
-
"Section_mediafiles": {
|
|
3361
|
-
"attr": {
|
|
3362
|
-
"id": "mediafiles"
|
|
3363
|
-
},
|
|
3364
|
-
"P": {
|
|
3365
|
-
"text": "You can also use file name directly in src of media files."
|
|
3366
|
-
},
|
|
3375
|
+
"props": {},
|
|
3367
3376
|
"ArticleMedium": {
|
|
3368
3377
|
"margin": "- - Z2",
|
|
3369
3378
|
"p": {
|
|
@@ -3374,45 +3383,1109 @@
|
|
|
3374
3383
|
"title": null,
|
|
3375
3384
|
"code": {
|
|
3376
3385
|
"text": {
|
|
3377
|
-
"domql": "{\n
|
|
3386
|
+
"domql": "{\n props: {\n padding: 'C2 A',\n background: 'gray',\n borderRadius: 'C'\n },\n H1: {\n text: 'Hello Symbols'\n }\n}",
|
|
3378
3387
|
"react": ""
|
|
3379
3388
|
}
|
|
3380
3389
|
}
|
|
3381
3390
|
}
|
|
3382
3391
|
}
|
|
3383
3392
|
},
|
|
3384
|
-
"
|
|
3393
|
+
"SuggestionAction": {
|
|
3394
|
+
"extend": "Link",
|
|
3385
3395
|
"props": {
|
|
3386
|
-
"
|
|
3387
|
-
"
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
"
|
|
3391
|
-
|
|
3396
|
+
"position": "relative",
|
|
3397
|
+
"padding": "D E3 D3",
|
|
3398
|
+
"textAlign": "center",
|
|
3399
|
+
"fontWeight": "regular",
|
|
3400
|
+
"round": "B1",
|
|
3401
|
+
"scrollToTop": false,
|
|
3402
|
+
"maxWidth": "I",
|
|
3403
|
+
"border": "gray2 1 +4, 1px, solid",
|
|
3404
|
+
":hover": {
|
|
3405
|
+
"border": "gray2 1 +4, 1px, solid",
|
|
3406
|
+
"background": "gray2 .1"
|
|
3392
3407
|
},
|
|
3393
|
-
"
|
|
3394
|
-
|
|
3395
|
-
}
|
|
3408
|
+
"text": "Add a page",
|
|
3409
|
+
"href": "/docs/pages/add-page"
|
|
3396
3410
|
},
|
|
3397
|
-
"
|
|
3398
|
-
"
|
|
3399
|
-
|
|
3400
|
-
|
|
3411
|
+
"IconText": {
|
|
3412
|
+
"left": "0",
|
|
3413
|
+
"textAlign": "center",
|
|
3414
|
+
"width": "100%",
|
|
3415
|
+
"gap": "X2",
|
|
3416
|
+
"icon": "click outline",
|
|
3417
|
+
"position": "absolute",
|
|
3418
|
+
"color": "dim",
|
|
3419
|
+
"bottom": "A1",
|
|
3420
|
+
"text": "Click and fill the required fields"
|
|
3421
|
+
}
|
|
3422
|
+
},
|
|
3423
|
+
"CreatingNew": {
|
|
3424
|
+
"extend": "CommonFieldLike",
|
|
3425
|
+
"props": {
|
|
3426
|
+
"gap": "A",
|
|
3401
3427
|
"title": {
|
|
3402
|
-
"text": "
|
|
3428
|
+
"text": "Creating a new",
|
|
3429
|
+
"padding": "- - - Y2"
|
|
3403
3430
|
},
|
|
3404
|
-
"
|
|
3405
|
-
"
|
|
3431
|
+
"element": {
|
|
3432
|
+
"gap": "A",
|
|
3433
|
+
"columns": "repeat(4, 1fr)"
|
|
3406
3434
|
}
|
|
3407
3435
|
},
|
|
3408
|
-
"
|
|
3409
|
-
|
|
3410
|
-
"
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3436
|
+
"title": {},
|
|
3437
|
+
"element": {
|
|
3438
|
+
"extend": "Grid",
|
|
3439
|
+
"childExtend": {
|
|
3440
|
+
"extend": "ArticleMedium",
|
|
3441
|
+
"props": {
|
|
3442
|
+
"gap": "Y",
|
|
3443
|
+
"round": "A",
|
|
3444
|
+
"flex": "1",
|
|
3445
|
+
"background": "rgba(104, 153, 209, .1)",
|
|
3446
|
+
"padding": "A2 C D1 B",
|
|
3447
|
+
"width": "100%",
|
|
3448
|
+
"title": {
|
|
3449
|
+
"text": "{{ title }}",
|
|
3450
|
+
"fontSize": "B1",
|
|
3451
|
+
"textTransform": "capitalize"
|
|
3452
|
+
},
|
|
3453
|
+
"p": {
|
|
3454
|
+
"text": "{{ p }}",
|
|
3455
|
+
"maxWidth": "F2"
|
|
3456
|
+
}
|
|
3457
|
+
}
|
|
3458
|
+
},
|
|
3459
|
+
"$stateCollection": "() => [{\n title: 'property',\n p: 'Welcome to the Symbols documentation page.'\n }, {\n title: 'component',\n p: 'Welcome to the Symbols documentation page.'\n }, {\n title: 'layout',\n p: 'Welcome to the Symbols documentation page.'\n }, {\n title: 'state',\n p: 'Welcome to the Symbols documentation page.'\n }]"
|
|
3460
|
+
}
|
|
3461
|
+
},
|
|
3462
|
+
"TheDesignSystem": {
|
|
3463
|
+
"extend": "CommonFieldLike",
|
|
3464
|
+
"props": {
|
|
3465
|
+
"gap": "A",
|
|
3466
|
+
"title": {
|
|
3467
|
+
"text": "The Design System",
|
|
3468
|
+
"padding": "- - - Y2"
|
|
3469
|
+
},
|
|
3470
|
+
"element": {
|
|
3471
|
+
"columns": "repeat(6, 1fr)",
|
|
3472
|
+
"gap": "A",
|
|
3473
|
+
"justifyItems": "stretch"
|
|
3474
|
+
}
|
|
3475
|
+
},
|
|
3476
|
+
"title": {},
|
|
3477
|
+
"element": {
|
|
3478
|
+
"extend": "Grid",
|
|
3479
|
+
"childExtend": {
|
|
3480
|
+
"extend": "ArticleMedium",
|
|
3481
|
+
"props": "({\n state\n }) => ({\n gap: 'X2',\n round: 'A',\n flex: '1',\n padding: 'B C E B1',\n gridColumn: state.column,\n gridRow: state.row,\n background: state.background || 'rgba(104, 153, 209, .1)',\n boxSizing: 'border-box',\n justifySelf: 'stretch',\n title: {\n text: state.title,\n fontSize: 'B1',\n textTransform: 'capitalize'\n },\n p: {\n text: state.p,\n maxWidth: state.maxWidth\n }\n })"
|
|
3482
|
+
},
|
|
3483
|
+
"$stateCollection": "() => [{\n title: 'Setup wizard',\n p: 'Create a project configuration',\n column: '1 / span 3',\n background: 'rgba(186, 206, 171, .08)'\n }, {\n title: 'Timeline',\n p: 'Record a snapshot of every patch change on the component, and learn the process of making.',\n background: 'rgba(186, 206, 171, .08)',\n column: '4 / span 3'\n }, {\n title: 'Lego like',\n p: `Welcome to the Symbols documentation page. Here you'll learn everything to get your page up and running starting from the initial setup to the end production.`,\n column: '1 / span 4',\n background: 'rgba(12, 12, 13, 1)'\n }, {\n title: 'Accessibility',\n p: `Welcome to the Symbols documentation page. Here you'll learn everything to get your page up and running starting from the initial setup to the end production.`,\n maxWidth: 'G+A',\n column: '5 / span 2',\n background: 'rgba(12, 12, 13, 1)'\n }]"
|
|
3484
|
+
}
|
|
3485
|
+
},
|
|
3486
|
+
"DesignSystem": {
|
|
3487
|
+
"extend": "CommonFieldLike",
|
|
3488
|
+
"tag": "section",
|
|
3489
|
+
"props": {
|
|
3490
|
+
"gap": "A",
|
|
3491
|
+
"title": {
|
|
3492
|
+
"width": "100%",
|
|
3493
|
+
"flex": "1",
|
|
3494
|
+
"align": "center space-between",
|
|
3495
|
+
"text": "All Properties",
|
|
3496
|
+
"padding": "- Y2",
|
|
3497
|
+
"color": "caption",
|
|
3498
|
+
"caption": {
|
|
3499
|
+
"text": "Design System",
|
|
3500
|
+
"color": "paragraph"
|
|
3501
|
+
}
|
|
3502
|
+
},
|
|
3503
|
+
"element": {
|
|
3504
|
+
"columns": "repeat(8, 1fr)",
|
|
3505
|
+
"gap": "Z"
|
|
3506
|
+
},
|
|
3507
|
+
"@mobileL": {
|
|
3508
|
+
"margin": "0 -Y2"
|
|
3509
|
+
}
|
|
3510
|
+
},
|
|
3511
|
+
"title": {
|
|
3512
|
+
"extend": "Flex",
|
|
3513
|
+
"caption": {}
|
|
3514
|
+
},
|
|
3515
|
+
"element": {
|
|
3516
|
+
"extend": "Grid",
|
|
3517
|
+
"props": {
|
|
3518
|
+
"columns": "repeat(8, 1fr)",
|
|
3519
|
+
"@screenM": {
|
|
3520
|
+
"columns": "repeat(6, 1fr)"
|
|
3521
|
+
},
|
|
3522
|
+
"@tabletL": {
|
|
3523
|
+
"columns": "repeat(4, 1fr)"
|
|
3524
|
+
},
|
|
3525
|
+
"@mobileL": {
|
|
3526
|
+
"columns": "repeat(2, 1fr)"
|
|
3527
|
+
}
|
|
3528
|
+
},
|
|
3529
|
+
"childExtend": {
|
|
3530
|
+
"extend": "DesignElement",
|
|
3531
|
+
"props": "({\n state\n }) => ({\n theme: 'common-card-interactive',\n padding: 'Z2 Y2 Z2 Z2',\n justifyContent: 'space-between',\n flex: '1',\n round: 'A',\n minHeight: 'F+A',\n width: '100%',\n href: state.href,\n '@tabletL': {\n maxWidth: 'none'\n },\n\n ':nth-child(2)': {\n '> div > p': {\n maxWidth: 'E3'\n }\n },\n\n button: {\n icon: state.icon,\n padding: 'Y2',\n background: state.background,\n theme: state.theme\n },\n heading: {\n gap: 'X2',\n title: {\n text: state.title,\n fontSize: 'A'\n },\n p: {\n text: state.p,\n fontSize: 'Z',\n maxWidth: state.maxWidth,\n '@tabletL': {\n maxWidth: 'E3+A1'\n }\n }\n }\n })"
|
|
3532
|
+
},
|
|
3533
|
+
"$stateCollection": "() => [{\n title: 'Colors',\n href: '/docs/color',\n p: 'Colorize styles manually',\n icon: 'color',\n theme: 'theme',\n maxWidth: 'E'\n }, {\n title: 'Typography',\n href: '/docs/typography',\n p: 'Style a typed material',\n icon: 'typography',\n theme: 'typography',\n maxWidth: 'E'\n }, {\n title: 'Spacing',\n href: '/docs/space',\n p: `Manage properties of a size`,\n maxWidth: 'E2',\n icon: 'space',\n theme: 'space'\n }, {\n title: 'Shapes',\n href: '/docs/shapes',\n p: `Design an outline\n to a chosen component`,\n icon: 'shape',\n theme: 'shape'\n }, {\n title: 'Icons',\n href: '/docs/icons',\n p: `Label a role of subject\n with glyphs`,\n icon: 'icons',\n theme: 'icons'\n }, {\n title: 'Breakpoints',\n href: '/docs/media',\n p: `The devices and the breakpoints`,\n icon: 'deviceMobileOutline'\n }, {\n title: 'Sequence',\n href: '/docs/sequence',\n p: `The mapping system of\n generative sizing units`,\n icon: 'stateColored'\n }, {\n title: 'Timing',\n href: '/docs/timing',\n p: `Tokens for transitions and animations`,\n icon: 'clock'\n }]"
|
|
3534
|
+
}
|
|
3535
|
+
},
|
|
3536
|
+
"FrameworkCardsSwitcher": {
|
|
3537
|
+
"extend": "CommonFieldLike",
|
|
3538
|
+
"tag": "section",
|
|
3539
|
+
"props": {
|
|
3540
|
+
"gap": "A",
|
|
3541
|
+
"@tabletL": {
|
|
3542
|
+
"wrap": "wrap"
|
|
3543
|
+
},
|
|
3544
|
+
"title": {
|
|
3545
|
+
"width": "100%",
|
|
3546
|
+
"flex": "1",
|
|
3547
|
+
"align": "center space-between",
|
|
3548
|
+
"text": "Your Framework",
|
|
3549
|
+
"padding": "- Y2",
|
|
3550
|
+
"color": "caption"
|
|
3551
|
+
},
|
|
3552
|
+
"element": {
|
|
3553
|
+
"gap": "A",
|
|
3554
|
+
"columns": "repeat(8, 1fr)"
|
|
3555
|
+
}
|
|
3556
|
+
},
|
|
3557
|
+
"title": {
|
|
3558
|
+
"extend": "Flex",
|
|
3559
|
+
"caption": null
|
|
3560
|
+
},
|
|
3561
|
+
"element": {
|
|
3562
|
+
"extend": "Grid",
|
|
3563
|
+
"props": {
|
|
3564
|
+
"columns": "repeat(8, 1fr)",
|
|
3565
|
+
"@tabletL": {
|
|
3566
|
+
"columns": "repeat(4, 1fr)"
|
|
3567
|
+
},
|
|
3568
|
+
"@mobileL": {
|
|
3569
|
+
"columns": "repeat(2, 1fr)"
|
|
3570
|
+
}
|
|
3571
|
+
},
|
|
3572
|
+
"childExtend": {
|
|
3573
|
+
"extend": "DesignElement",
|
|
3574
|
+
"props": "({\n state\n }) => ({\n active: state.root.framework === state.icon,\n disabled: !!state.disabled,\n href: null,\n gap: 'A1',\n padding: 'Z2 A Z',\n justifyContent: 'space-between',\n round: 'A',\n flex: '1',\n maxWidth: 'none',\n fontWeight: '400',\n width: '100%',\n theme: 'common-card-outline-interactive',\n borderWidth: '1px',\n borderStyle: 'solid',\n\n '.active': {\n '@dark': {\n borderWidth: '2px',\n borderColor: 'indigo .1',\n background: 'indigo .035',\n ':hover': {\n background: 'indigo .045'\n }\n },\n '@light': {\n background: 'indigo .15',\n borderColor: 'indigo .45'\n }\n },\n\n '.disabled': {\n pointerEvents: 'none',\n opacity: 0.35\n }\n })",
|
|
3575
|
+
"button": null,
|
|
3576
|
+
"Flex": {
|
|
3577
|
+
"props": {
|
|
3578
|
+
"gap": "Y2",
|
|
3579
|
+
"align": "center flex-start"
|
|
3580
|
+
},
|
|
3581
|
+
"Icon": "({\n state\n }) => ({\n fontSize: 'B',\n icon: state.icon\n })",
|
|
3582
|
+
"Label": {
|
|
3583
|
+
"if": "({\n state\n }) => state.disabled",
|
|
3584
|
+
"emoji": null,
|
|
3585
|
+
"props": "({\n state\n }) => ({\n fontSize: 'Z',\n text: state.disabled,\n theme: 'secondary'\n })"
|
|
3586
|
+
}
|
|
3587
|
+
},
|
|
3588
|
+
"heading": "({\n state\n }) => state.text",
|
|
3589
|
+
"on": {
|
|
3590
|
+
"click": "(ev, el, s, ctx) => {\n if (s.disabled) return\n const globalState = s.root\n globalState.update({\n framework: s.icon\n })\n ctx.utils.setCookie('framework', s.root.framework, 31)\n }"
|
|
3591
|
+
}
|
|
3592
|
+
},
|
|
3593
|
+
"$stateCollection": "() => [{\n icon: 'domql',\n text: 'DOMQL'\n }, {\n icon: 'react',\n text: 'React'\n }, {\n icon: 'html',\n text: 'HTML',\n disabled: 'Soon'\n }, {\n icon: 'angular',\n text: 'Angular',\n disabled: 'Soon'\n }, {\n icon: 'svelte',\n text: 'Svelte',\n disabled: 'Soon'\n }, {\n icon: 'vue',\n text: 'Vue',\n disabled: 'Soon'\n }, {\n icon: 'figma',\n text: 'Figma',\n disabled: 'Soon'\n }, {\n icon: 'sketch',\n text: 'Sketch',\n disabled: 'Soon'\n }]"
|
|
3594
|
+
}
|
|
3595
|
+
},
|
|
3596
|
+
"Configuration": {
|
|
3597
|
+
"attr": {
|
|
3598
|
+
"id": "configuration"
|
|
3599
|
+
},
|
|
3600
|
+
"ArticleMedium": {
|
|
3601
|
+
"padding": "0 0 B 0",
|
|
3602
|
+
"title": {
|
|
3603
|
+
"text": "Configuration"
|
|
3604
|
+
},
|
|
3605
|
+
"p": {
|
|
3606
|
+
"text": "Symbols use your configuration to create the Design System. Then the properties will be matching to your components attributes. How you configure main settings will define how global document and component styles will work and look like."
|
|
3607
|
+
}
|
|
3608
|
+
},
|
|
3609
|
+
"Paragraph": {
|
|
3610
|
+
"margin": "0",
|
|
3611
|
+
"children": [
|
|
3612
|
+
"Create ",
|
|
3613
|
+
{
|
|
3614
|
+
"extend": "Labeled",
|
|
3615
|
+
"text": "designSystem.js"
|
|
3616
|
+
},
|
|
3617
|
+
" file and insert the following code to check whether it's working: "
|
|
3618
|
+
]
|
|
3619
|
+
},
|
|
3620
|
+
"Code_2": {
|
|
3621
|
+
"title": null,
|
|
3622
|
+
"props": {
|
|
3623
|
+
"margin": "Z1 0 0"
|
|
3624
|
+
},
|
|
3625
|
+
"code": {
|
|
3626
|
+
"text": {
|
|
3627
|
+
"symbols": "{ \n color: {\n oceanblue: '#112233'\n },\n theme: {\n primary: {\n text: 'white',\n background: 'oceanblue 0.9',\n ':hover': {\n background: 'oceanblue'\n }\n }\n }\n}"
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
},
|
|
3631
|
+
"Paragraph_config": {
|
|
3632
|
+
"display": "flex",
|
|
3633
|
+
"margin": "A 0",
|
|
3634
|
+
"flowFlow": "row",
|
|
3635
|
+
"children": [
|
|
3636
|
+
{
|
|
3637
|
+
"props": {
|
|
3638
|
+
"color": "orange .65"
|
|
3639
|
+
},
|
|
3640
|
+
"text": "Note:"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"text": "If configuration is not presented, Symbols will load ",
|
|
3644
|
+
"props": {
|
|
3645
|
+
"padding": "0 V1"
|
|
3646
|
+
}
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"extend": [
|
|
3650
|
+
"DocsLink",
|
|
3651
|
+
"IconCaption"
|
|
3652
|
+
],
|
|
3653
|
+
"props": {
|
|
3654
|
+
"href": "https://github.com/symbo-ls/smbls/tree/main/packages/default-config",
|
|
3655
|
+
"target": "_blank",
|
|
3656
|
+
"gap": "W1",
|
|
3657
|
+
"name": {
|
|
3658
|
+
"text": "default-config"
|
|
3659
|
+
}
|
|
3660
|
+
}
|
|
3661
|
+
}
|
|
3662
|
+
]
|
|
3663
|
+
}
|
|
3664
|
+
},
|
|
3665
|
+
"Initialization": {
|
|
3666
|
+
"attr": {
|
|
3667
|
+
"id": "initialization"
|
|
3668
|
+
},
|
|
3669
|
+
"ArticleMedium": {
|
|
3670
|
+
"padding": "0 0 B 0",
|
|
3671
|
+
"title": {
|
|
3672
|
+
"text": "Initialization"
|
|
3673
|
+
},
|
|
3674
|
+
"p": {
|
|
3675
|
+
"text": "Depending on your configuration, Symbols will design a system that will produce properties matching the features of your components."
|
|
3676
|
+
}
|
|
3677
|
+
},
|
|
3678
|
+
"content": {
|
|
3679
|
+
"props": {
|
|
3680
|
+
"flexFlow": "column",
|
|
3681
|
+
"gap": "B2"
|
|
3682
|
+
},
|
|
3683
|
+
"initializeSymbols": {
|
|
3684
|
+
"NumbCaptionArticleSmall": {
|
|
3685
|
+
"title": {
|
|
3686
|
+
"numb": {
|
|
3687
|
+
"text": "1."
|
|
3688
|
+
},
|
|
3689
|
+
"name": {
|
|
3690
|
+
"text": "Initialize Symbols"
|
|
3691
|
+
}
|
|
3692
|
+
},
|
|
3693
|
+
"p": {
|
|
3694
|
+
"text": "First, let's initialize Symbols by the following snippet:",
|
|
3695
|
+
"padding": "0 0 0 A2"
|
|
3696
|
+
}
|
|
3697
|
+
},
|
|
3698
|
+
"Code": {
|
|
3699
|
+
"props": {
|
|
3700
|
+
"margin": "- - 0 B"
|
|
3701
|
+
},
|
|
3702
|
+
"title": null,
|
|
3703
|
+
"code": {
|
|
3704
|
+
"text": {
|
|
3705
|
+
"domql": "import { create } from 'smbls'\nimport designSystem from './designSystem'\n\ncreate({\n tag: 'h1',\n text: 'Hello!' \n}, {\n designSystem\n })",
|
|
3706
|
+
"react": "import React from 'react'\nimport ReactDOM from 'react-dom'\nimport { SymbolsProvider } from '@symbo.ls/react'\nimport designSystem from './designSystem'\n\nfunction App () {\n return (\n <SymbolsProvider designSystem={designSystem}>\n <h1>Hello!</h1>\n </SymbolsProvider>\n )\n}\n\nconst rootElement = document.getElementById(\"root\")\nReactDOM.render(<App />, rootElement)"
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
},
|
|
3711
|
+
"testComponent": {
|
|
3712
|
+
"NumbCaptionArticleSmall": {
|
|
3713
|
+
"title": {
|
|
3714
|
+
"numb": {
|
|
3715
|
+
"text": "2."
|
|
3716
|
+
},
|
|
3717
|
+
"name": {
|
|
3718
|
+
"text": "Test it out on component"
|
|
3719
|
+
}
|
|
3720
|
+
},
|
|
3721
|
+
"p": {
|
|
3722
|
+
"text": "Now we can import our first component and check if our color is working out"
|
|
3723
|
+
}
|
|
3724
|
+
},
|
|
3725
|
+
"code": {
|
|
3726
|
+
"extend": "Code",
|
|
3727
|
+
"props": {
|
|
3728
|
+
"margin": "- - 0 B"
|
|
3729
|
+
},
|
|
3730
|
+
"title": null,
|
|
3731
|
+
"code": {
|
|
3732
|
+
"text": {
|
|
3733
|
+
"symbols": "{\n props: {\n theme: 'primary',\n padding: 'X A1'\n }\n}",
|
|
3734
|
+
"domql": "const MyLabel = {\n props: {\n theme: 'primary',\n padding: 'X A1'\n }\n}",
|
|
3735
|
+
"react": "import { Box } from '@symbo.ls/react'\n \nconst MyLabel = () => {\n return <Box theme=\"primary\" padding=\"X A1\">Label</Box>\n}"
|
|
3736
|
+
}
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
},
|
|
3740
|
+
"setProperties": {
|
|
3741
|
+
"props": {
|
|
3742
|
+
"flexFlow": "column",
|
|
3743
|
+
"gap": "A2"
|
|
3744
|
+
},
|
|
3745
|
+
"NumbCaptionArticleSmall": {
|
|
3746
|
+
"title": {
|
|
3747
|
+
"props": {
|
|
3748
|
+
"numb": {
|
|
3749
|
+
"text": "3."
|
|
3750
|
+
},
|
|
3751
|
+
"name": {
|
|
3752
|
+
"text": "Get to know to Fundamentals"
|
|
3753
|
+
}
|
|
3754
|
+
}
|
|
3755
|
+
},
|
|
3756
|
+
"p": {
|
|
3757
|
+
"0": {
|
|
3758
|
+
"text": "Learn deeper about the initialization process and see examples at ",
|
|
3759
|
+
"props": {
|
|
3760
|
+
"padding": "0 V1"
|
|
3761
|
+
}
|
|
3762
|
+
},
|
|
3763
|
+
"1": {
|
|
3764
|
+
"extend": [
|
|
3765
|
+
"DocsLink"
|
|
3766
|
+
],
|
|
3767
|
+
"props": {
|
|
3768
|
+
"href": "/docs/fundamentals",
|
|
3769
|
+
"text": "Fundamentals"
|
|
3770
|
+
}
|
|
3771
|
+
},
|
|
3772
|
+
"extend": "Paragraph",
|
|
3773
|
+
"props": {
|
|
3774
|
+
"margin": "X2 0 0",
|
|
3775
|
+
"padding": "0 0 0 A2"
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
},
|
|
3781
|
+
"Paragraph": {
|
|
3782
|
+
"display": "flex",
|
|
3783
|
+
"margin": "B2 0 A",
|
|
3784
|
+
"flowFlow": "row",
|
|
3785
|
+
"children": [
|
|
3786
|
+
{
|
|
3787
|
+
"props": {
|
|
3788
|
+
"color": "orange .65"
|
|
3789
|
+
},
|
|
3790
|
+
"text": "Note:"
|
|
3791
|
+
},
|
|
3792
|
+
"Head over to the ",
|
|
3793
|
+
{
|
|
3794
|
+
"extend": "DocsLink",
|
|
3795
|
+
"props": {
|
|
3796
|
+
"href": "/docs/design-system",
|
|
3797
|
+
"text": "Design System"
|
|
3798
|
+
}
|
|
3799
|
+
},
|
|
3800
|
+
" page and read more how to configure each system property."
|
|
3801
|
+
]
|
|
3802
|
+
}
|
|
3803
|
+
},
|
|
3804
|
+
"Usage": {
|
|
3805
|
+
"attr": {
|
|
3806
|
+
"id": "usage"
|
|
3807
|
+
},
|
|
3808
|
+
"props": {
|
|
3809
|
+
"flexFlow": "column",
|
|
3810
|
+
"gap": "A"
|
|
3811
|
+
},
|
|
3812
|
+
"ArticleMedium": {
|
|
3813
|
+
"title": {
|
|
3814
|
+
"text": "Usage"
|
|
3815
|
+
},
|
|
3816
|
+
"p": {
|
|
3817
|
+
"text": "Since we set everything, we can go and configure our design system and use Symbols components in our codebase."
|
|
3818
|
+
}
|
|
3819
|
+
},
|
|
3820
|
+
"Flex": {
|
|
3821
|
+
"props": {
|
|
3822
|
+
"flow": "column",
|
|
3823
|
+
"gap": "A1",
|
|
3824
|
+
"children": [
|
|
3825
|
+
{
|
|
3826
|
+
"title": {
|
|
3827
|
+
"href": "/docs/fundamentals",
|
|
3828
|
+
"name": {
|
|
3829
|
+
"text": "Learn fundamentals"
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
},
|
|
3833
|
+
{
|
|
3834
|
+
"title": {
|
|
3835
|
+
"href": "/docs/design-system",
|
|
3836
|
+
"name": {
|
|
3837
|
+
"text": "Configure Design System properties"
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
"title": {
|
|
3843
|
+
"href": "/components",
|
|
3844
|
+
"name": {
|
|
3845
|
+
"text": "Check out components"
|
|
3846
|
+
}
|
|
3847
|
+
}
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
"title": {
|
|
3851
|
+
"href": "/docs/atoms",
|
|
3852
|
+
"name": {
|
|
3853
|
+
"text": "Learn using Atoms"
|
|
3854
|
+
}
|
|
3855
|
+
}
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
"title": {
|
|
3859
|
+
"href": "/docs/components",
|
|
3860
|
+
"name": {
|
|
3861
|
+
"text": "Learn how to create a component"
|
|
3862
|
+
}
|
|
3863
|
+
}
|
|
3864
|
+
}
|
|
3865
|
+
],
|
|
3866
|
+
"childrenAs": "props"
|
|
3867
|
+
},
|
|
3868
|
+
"childExtend": "DotCaptionArticle"
|
|
3869
|
+
}
|
|
3870
|
+
},
|
|
3871
|
+
"DotCaptionArticle": {
|
|
3872
|
+
"extend": "Article",
|
|
3873
|
+
"props": {
|
|
3874
|
+
"gap": "W1",
|
|
3875
|
+
"p": {
|
|
3876
|
+
"padding": "0 0 0 A1"
|
|
3877
|
+
}
|
|
3878
|
+
},
|
|
3879
|
+
"title": {
|
|
3880
|
+
"extend": [
|
|
3881
|
+
"Link",
|
|
3882
|
+
"DotCaption"
|
|
3883
|
+
]
|
|
3884
|
+
}
|
|
3885
|
+
},
|
|
3886
|
+
"NumbCaptionArticleBig": {
|
|
3887
|
+
"extend": "Article",
|
|
3888
|
+
"props": {
|
|
3889
|
+
"gap": "X2",
|
|
3890
|
+
"p": {
|
|
3891
|
+
"padding": "0 0 0 A2"
|
|
3892
|
+
}
|
|
3893
|
+
},
|
|
3894
|
+
"title": {
|
|
3895
|
+
"extend": "NumbCaption"
|
|
3896
|
+
}
|
|
3897
|
+
},
|
|
3898
|
+
"NumbCaptionArticleSmall": {
|
|
3899
|
+
"extend": "Article",
|
|
3900
|
+
"props": {
|
|
3901
|
+
"gap": "X",
|
|
3902
|
+
"P": {
|
|
3903
|
+
"margin": "- - - A2"
|
|
3904
|
+
}
|
|
3905
|
+
},
|
|
3906
|
+
"title": {
|
|
3907
|
+
"extend": "NumbCaption",
|
|
3908
|
+
"props": {
|
|
3909
|
+
"gap": "0"
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
},
|
|
3913
|
+
"StarterKit": {
|
|
3914
|
+
"attr": {
|
|
3915
|
+
"id": "starter-kit"
|
|
3916
|
+
},
|
|
3917
|
+
"props": {
|
|
3918
|
+
"flexFlow": "column",
|
|
3919
|
+
"gap": "B"
|
|
3920
|
+
},
|
|
3921
|
+
"ArticleMedium": {
|
|
3922
|
+
"title": {
|
|
3923
|
+
"text": "Starter kit"
|
|
3924
|
+
},
|
|
3925
|
+
"p": {
|
|
3926
|
+
"text": "To kick start your project, you can use one of these templates:"
|
|
3927
|
+
}
|
|
3928
|
+
},
|
|
3929
|
+
"Flex": {
|
|
3930
|
+
"props": {
|
|
3931
|
+
"flexFlow": "column",
|
|
3932
|
+
"gap": "B",
|
|
3933
|
+
"children": [
|
|
3934
|
+
{
|
|
3935
|
+
"href": "https://github.com/symbo-ls/starter-kit",
|
|
3936
|
+
"title": "starter-kit",
|
|
3937
|
+
"description": "Example setup using Symbols"
|
|
3938
|
+
},
|
|
3939
|
+
{
|
|
3940
|
+
"href": "https://github.com/symbo-ls/create-react-app",
|
|
3941
|
+
"title": "create-react-app",
|
|
3942
|
+
"description": "Example React setup using Symbols"
|
|
3943
|
+
}
|
|
3944
|
+
],
|
|
3945
|
+
"childrenAs": "state"
|
|
3946
|
+
},
|
|
3947
|
+
"childExtend": "IconLinkWithPath"
|
|
3948
|
+
}
|
|
3949
|
+
},
|
|
3950
|
+
"Breadcrumb": {
|
|
3951
|
+
"tag": "nav",
|
|
3952
|
+
"props": {
|
|
3953
|
+
"display": "flex",
|
|
3954
|
+
"align": "center",
|
|
3955
|
+
"childProps": {
|
|
3956
|
+
"fontWeight": "400",
|
|
3957
|
+
"textDecoration": "none",
|
|
3958
|
+
"&[href]": {
|
|
3959
|
+
"color": "title",
|
|
3960
|
+
"&:hover": {
|
|
3961
|
+
"textDecoration": "underline"
|
|
3962
|
+
}
|
|
3963
|
+
},
|
|
3964
|
+
"&:not([href])": {
|
|
3965
|
+
"cursor": "default"
|
|
3966
|
+
},
|
|
3967
|
+
"&:not(:first-child):before": {
|
|
3968
|
+
"content": "\"\"",
|
|
3969
|
+
"display": "inline-block",
|
|
3970
|
+
"width": "2px",
|
|
3971
|
+
"height": "2px",
|
|
3972
|
+
"borderRadius": "100%",
|
|
3973
|
+
"background": "white",
|
|
3974
|
+
"verticalAlign": "0.2em",
|
|
3975
|
+
"marginInline": ".65em",
|
|
3976
|
+
"opacity": ".5"
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
},
|
|
3980
|
+
"childExtend": {
|
|
3981
|
+
"extend": [
|
|
3982
|
+
"Link"
|
|
3983
|
+
],
|
|
3984
|
+
"props": {
|
|
3985
|
+
"scrollToTop": false,
|
|
3986
|
+
"color": "white 0.35"
|
|
3987
|
+
}
|
|
3988
|
+
},
|
|
3989
|
+
"$propsCollection": "(el, s, ctx) => {\n const routeArr = (s.root.route || window.location.pathname).split('/').slice(1)\n return routeArr\n .map((text, i) => text === 'page' ? ({\n href: '/pages',\n text: 'Page'\n }) : s.root.DATA.pages['/' + text] ? ({\n href: '/' + routeArr.slice(0, i + 1).join('/'),\n text: '/' + text\n }) : ({\n href: '/' + routeArr.slice(0, i + 1).join('/'),\n text: i === 0 ? ctx.utils.toTitleCase(text) : text\n }))\n .filter((_, k) => {\n const v = routeArr[k]\n return !v.includes('-') && !v.includes('editor') && !v.includes('preview')\n })\n }"
|
|
3990
|
+
},
|
|
3991
|
+
"PremiumBadge": {
|
|
3992
|
+
"extend": "Button",
|
|
3993
|
+
"props": {
|
|
3994
|
+
"theme": "secondary",
|
|
3995
|
+
"padding": "X Z",
|
|
3996
|
+
"fontSize": "Z",
|
|
3997
|
+
"borderRadius": "Z2",
|
|
3998
|
+
"fontWeight": "regular",
|
|
3999
|
+
"background": "britishBlue"
|
|
4000
|
+
},
|
|
4001
|
+
"attr": {
|
|
4002
|
+
"tabIndex": "-1"
|
|
4003
|
+
},
|
|
4004
|
+
"text": "Premium"
|
|
4005
|
+
},
|
|
4006
|
+
"FrameworkSwitcher": {
|
|
4007
|
+
"extend": "DropdownParent",
|
|
4008
|
+
"props": {
|
|
4009
|
+
":hover section": {
|
|
4010
|
+
"transform": "translate3d(0, 0, 0)",
|
|
4011
|
+
"visibility": "visible",
|
|
4012
|
+
"opacity": "1"
|
|
4013
|
+
},
|
|
4014
|
+
"tooltip": {
|
|
4015
|
+
"shape": "tooltip",
|
|
4016
|
+
"shapeDirection": "bottom",
|
|
4017
|
+
"shapeDirectionColor": "gray4",
|
|
4018
|
+
"round": "Z2",
|
|
4019
|
+
"position": "absolute",
|
|
4020
|
+
"right": "0",
|
|
4021
|
+
"bottom": "125%",
|
|
4022
|
+
"transform": "translate3d(0, 10px, 0)",
|
|
4023
|
+
"transition": "A",
|
|
4024
|
+
"transitionProperty": "visibility, transform, opacity",
|
|
4025
|
+
"opacity": "0",
|
|
4026
|
+
"visibility": "hidden",
|
|
4027
|
+
"fontFamily": "smbls",
|
|
4028
|
+
"@dark": {
|
|
4029
|
+
"background": "gray3"
|
|
4030
|
+
},
|
|
4031
|
+
"@light": {
|
|
4032
|
+
"background": "white"
|
|
4033
|
+
},
|
|
4034
|
+
":before": {
|
|
4035
|
+
"left": "87.5%"
|
|
4036
|
+
}
|
|
4037
|
+
}
|
|
4038
|
+
},
|
|
4039
|
+
"tooltip": {
|
|
4040
|
+
"tag": "section",
|
|
4041
|
+
"dropdown": {
|
|
4042
|
+
"extend": "Dropdown",
|
|
4043
|
+
"props": {
|
|
4044
|
+
"position": "relative",
|
|
4045
|
+
"transform": "translate3d(0, 0, 0)",
|
|
4046
|
+
"opacity": "1",
|
|
4047
|
+
"left": "0",
|
|
4048
|
+
"top": "0",
|
|
4049
|
+
"theme": null,
|
|
4050
|
+
"visibility": "auto",
|
|
4051
|
+
"header": {
|
|
4052
|
+
"text": "Choose Framework"
|
|
4053
|
+
}
|
|
4054
|
+
},
|
|
4055
|
+
"header": {},
|
|
4056
|
+
"list": {
|
|
4057
|
+
"extend": "ListInDropdown",
|
|
4058
|
+
"childExtend": {
|
|
4059
|
+
"extend": "KeyValueColumnFields",
|
|
4060
|
+
"key": "({ state }) => state.key",
|
|
4061
|
+
"props": {
|
|
4062
|
+
"Icon": {}
|
|
4063
|
+
},
|
|
4064
|
+
"Icon": {},
|
|
4065
|
+
"text": "({ state }) => state.text"
|
|
4066
|
+
},
|
|
4067
|
+
"$stateCollection": "() => [\n { key: 'symbols', text: 'Platform' },\n { key: 'domql', text: 'DOMQL' },\n { key: 'react', text: 'React' }\n // { key: 'iframe', text: 'Iframe' }\n ]"
|
|
4068
|
+
},
|
|
4069
|
+
"on": {
|
|
4070
|
+
"choose": "(ev, el, state, ctx) => {\n const globalState = state.root\n ctx.utils.setCookie('framework', ctx.state.key, 31)\n globalState.update({ framework: ctx.state.key }, {\n preventModalUpdate: true\n })\n }"
|
|
4071
|
+
}
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
},
|
|
4075
|
+
"PropsSearch": {
|
|
4076
|
+
"props": {
|
|
4077
|
+
"width": "G",
|
|
4078
|
+
"fontSize": "A",
|
|
4079
|
+
"gap": "Y",
|
|
4080
|
+
"flexAlign": "center flex-start",
|
|
4081
|
+
"round": "B",
|
|
4082
|
+
"@dark": {
|
|
4083
|
+
"background": "gray3"
|
|
4084
|
+
},
|
|
4085
|
+
"@light": {
|
|
4086
|
+
"background": "gray15"
|
|
4087
|
+
}
|
|
4088
|
+
},
|
|
4089
|
+
"tag": "label",
|
|
4090
|
+
"Icon": {
|
|
4091
|
+
"icon": "search outline",
|
|
4092
|
+
"color": "gray7",
|
|
4093
|
+
"margin": "0 -B 0 B",
|
|
4094
|
+
"zIndex": "1"
|
|
4095
|
+
},
|
|
4096
|
+
"Input": {
|
|
4097
|
+
"props": {
|
|
4098
|
+
"flex": "1",
|
|
4099
|
+
"margin": "0 0 0 -A2",
|
|
4100
|
+
"padding": "Z1 B Z1 C1",
|
|
4101
|
+
"fontSize": "A",
|
|
4102
|
+
"transition": "color 250ms ease",
|
|
4103
|
+
"theme": null,
|
|
4104
|
+
"background": "transparent 0",
|
|
4105
|
+
"color": "title",
|
|
4106
|
+
"@dark": {
|
|
4107
|
+
":placeholder": {
|
|
4108
|
+
"color": "gray8"
|
|
4109
|
+
}
|
|
4110
|
+
},
|
|
4111
|
+
"@light": {
|
|
4112
|
+
":placeholder": {
|
|
4113
|
+
"color": "gray6"
|
|
4114
|
+
}
|
|
4115
|
+
},
|
|
4116
|
+
"border": "none",
|
|
4117
|
+
"outline": "none",
|
|
4118
|
+
":focus::placeholder": {
|
|
4119
|
+
"color": "transparent"
|
|
4120
|
+
}
|
|
4121
|
+
},
|
|
4122
|
+
"attr": {
|
|
4123
|
+
"type": "search",
|
|
4124
|
+
"placeholder": "({ parent }) => parent.props.placeholder || 'Search properties'",
|
|
4125
|
+
"autofocus": "({ parent }) => parent.props.autofocus || 'autofocus'"
|
|
4126
|
+
},
|
|
4127
|
+
"on": {
|
|
4128
|
+
"input": "(event, { node, state }, ctx) => {\n ctx.utils.debounceOnContext(state, state.update, 150)({ searched: node.value })\n }"
|
|
4129
|
+
}
|
|
4130
|
+
}
|
|
4131
|
+
},
|
|
4132
|
+
"ColorText": {
|
|
4133
|
+
"extend": "Flex",
|
|
4134
|
+
"props": {
|
|
4135
|
+
"fontSize": "Z",
|
|
4136
|
+
"alignItems": "center",
|
|
4137
|
+
"gap": "Y1",
|
|
4138
|
+
"whiteSpace": "nowrap",
|
|
4139
|
+
"color": {
|
|
4140
|
+
"boxSize": "B B",
|
|
4141
|
+
"background": "red",
|
|
4142
|
+
"round": "Y2"
|
|
4143
|
+
},
|
|
4144
|
+
"value": {
|
|
4145
|
+
"text": "Background",
|
|
4146
|
+
"color": "white"
|
|
4147
|
+
}
|
|
4148
|
+
},
|
|
4149
|
+
"color": {},
|
|
4150
|
+
"value": {}
|
|
4151
|
+
},
|
|
4152
|
+
"DesignSystemBanners": {
|
|
4153
|
+
"extend": "Flex",
|
|
4154
|
+
"props": {
|
|
4155
|
+
"align": "stretch space-between",
|
|
4156
|
+
"gap": "B1"
|
|
4157
|
+
},
|
|
4158
|
+
"childExtend": "TutorialBanner",
|
|
4159
|
+
"$stateCollection": "({ state }) => [{\n title: 'Setting up global themes',\n p: '15 sec tutorial',\n theme: 'theme',\n href: (window.location.pathname.includes('dashboard') ? '/dashboard' : '/design-system') + '/watch/colors'\n }, {\n title: 'Adding more colors',\n p: '3 mins tutorial',\n theme: 'color',\n href: (window.location.pathname.includes('dashboard') ? '/dashboard' : '/design-system') + '/watch/colors'\n }, {\n title: 'How typography works',\n p: '3 mins tutorial',\n theme: 'typography',\n href: (window.location.pathname.includes('dashboard') ? '/dashboard' : '/design-system') + '/watch/colors'\n }, {\n title: 'How to get spacing units',\n p: '45 sec tutorial',\n theme: 'space',\n href: (window.location.pathname.includes('dashboard') ? '/dashboard' : '/design-system') + '/watch/colors'\n }, {\n title: 'Adding and using icons',\n p: '45 sec tutorial',\n theme: 'icons',\n href: (window.location.pathname.includes('dashboard') ? '/dashboard' : '/design-system') + '/watch/colors'\n }]"
|
|
4160
|
+
},
|
|
4161
|
+
"Logo": {
|
|
4162
|
+
"extend": [
|
|
4163
|
+
"Link",
|
|
4164
|
+
"SquareButton"
|
|
4165
|
+
],
|
|
4166
|
+
"props": "() => ({\n icon: 'logo',\n active: window.location.pathname === '/dashboard',\n fontSize: 'C',\n href: '/',\n position: 'relative',\n color: 'gray13',\n transition: 'B defaultBezier',\n transitionProperty: 'background, color',\n background: 'transparent 0',\n '@dark': { color: 'white' },\n '@light': { color: 'black' },\n margin: 'W',\n padding: 'Y',\n round: '100%',\n ':hover': {\n '@dark': {\n color: 'gray15',\n background: 'gray3'\n },\n '@light': {\n color: 'black',\n background: 'white'\n }\n },\n '.active': {\n '@dark': {\n color: 'gray15',\n background: 'gray3'\n },\n '@light': {\n color: 'black',\n background: 'white'\n }\n }\n })",
|
|
4167
|
+
"Span": {
|
|
4168
|
+
"animation": "slideInOut",
|
|
4169
|
+
"animationDelay": "B",
|
|
4170
|
+
"animationDuration": "K",
|
|
4171
|
+
"animationTimingFunction": "defaultBezier",
|
|
4172
|
+
"position": "absolute",
|
|
4173
|
+
"top": "50%",
|
|
4174
|
+
"left": "85%",
|
|
4175
|
+
"color": "orange",
|
|
4176
|
+
"fontSize": ".45em",
|
|
4177
|
+
"fontWeight": "500",
|
|
4178
|
+
"text": "BETA",
|
|
4179
|
+
"transform": "translate3d(0, 50%, 0)",
|
|
4180
|
+
"opacity": "0"
|
|
4181
|
+
}
|
|
4182
|
+
},
|
|
4183
|
+
"RequestAccessButtons": {
|
|
4184
|
+
"extend": "SectionHeader",
|
|
4185
|
+
"props": {
|
|
4186
|
+
"flow": "column",
|
|
4187
|
+
"align": "flex-start flex-start",
|
|
4188
|
+
"gap": "B2",
|
|
4189
|
+
"padding": "0 A2 0 C2",
|
|
4190
|
+
"width": "G2",
|
|
4191
|
+
"borderColor": "line",
|
|
4192
|
+
"borderStyle": "solid",
|
|
4193
|
+
"borderWidth": "0 0 0 1px",
|
|
4194
|
+
"margin": "0"
|
|
4195
|
+
},
|
|
4196
|
+
"heading": {
|
|
4197
|
+
"title": {
|
|
4198
|
+
"text": "Get early access"
|
|
4199
|
+
},
|
|
4200
|
+
"p": {
|
|
4201
|
+
"text": "We're kicking off invite-only. Get early signup to make it to the top."
|
|
4202
|
+
}
|
|
4203
|
+
},
|
|
4204
|
+
"button": {
|
|
4205
|
+
"extend": [
|
|
4206
|
+
"Link",
|
|
4207
|
+
"Button"
|
|
4208
|
+
],
|
|
4209
|
+
"props": {
|
|
4210
|
+
"margin": "0 0 0 -X",
|
|
4211
|
+
"theme": "quaternary",
|
|
4212
|
+
"fontWeight": "500",
|
|
4213
|
+
"text": "Join up",
|
|
4214
|
+
"href": "/signup"
|
|
4215
|
+
}
|
|
4216
|
+
},
|
|
4217
|
+
"nav": null
|
|
4218
|
+
}
|
|
4219
|
+
},
|
|
4220
|
+
"pages": {
|
|
4221
|
+
"/docs/anatomy": {
|
|
4222
|
+
"attr": {
|
|
4223
|
+
"id": "anatomy"
|
|
4224
|
+
},
|
|
4225
|
+
"ArticleBig": {
|
|
4226
|
+
"title": {
|
|
4227
|
+
"text": "Anatomy"
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4230
|
+
"AtomicComponents": {},
|
|
4231
|
+
"Destructuring": {},
|
|
4232
|
+
"ArticleMedium": {
|
|
4233
|
+
"props": {
|
|
4234
|
+
"title": {
|
|
4235
|
+
"text": "Customizing defaults"
|
|
4236
|
+
},
|
|
4237
|
+
"p": {
|
|
4238
|
+
"text": "This is simple button so called atom."
|
|
4239
|
+
}
|
|
4240
|
+
},
|
|
4241
|
+
"title": {},
|
|
4242
|
+
"p": {
|
|
4243
|
+
"0": "We try to implement the best practices and patterns for each constituent. The ",
|
|
4244
|
+
"1": {
|
|
4245
|
+
"extend": "DocsLink",
|
|
4246
|
+
"text": "Design System",
|
|
4247
|
+
"props": {
|
|
4248
|
+
"href": "/docs/design-system"
|
|
4249
|
+
}
|
|
4250
|
+
},
|
|
4251
|
+
"2": " page in this documentation explains each one in more detail.",
|
|
4252
|
+
"extend": "Paragraph"
|
|
4253
|
+
}
|
|
4254
|
+
}
|
|
4255
|
+
},
|
|
4256
|
+
"/docs/pages": {
|
|
4257
|
+
"props": {
|
|
4258
|
+
"flexFlow": "column",
|
|
4259
|
+
"gap": "C2"
|
|
4260
|
+
},
|
|
4261
|
+
"ArticleBig": {
|
|
4262
|
+
"title": {
|
|
4263
|
+
"text": "Pages"
|
|
4264
|
+
},
|
|
4265
|
+
"p": {
|
|
4266
|
+
"childProps": {
|
|
4267
|
+
"display": "inline"
|
|
4268
|
+
},
|
|
4269
|
+
"children": [
|
|
4270
|
+
"When you use Symbols for app development, you can create pages the same way as components, with additional metadata and SEO properties thats are going to be set to HTML ",
|
|
4271
|
+
{
|
|
4272
|
+
"extend": "Labeled",
|
|
4273
|
+
"text": "<head>"
|
|
4274
|
+
},
|
|
4275
|
+
" section. Once you create page on Symbols, it is automatically accessible at the URL of your project like: ",
|
|
4276
|
+
{
|
|
4277
|
+
"extend": "LabeledHighlight",
|
|
4278
|
+
"text": "yourproject.symbo.ls/yourpage"
|
|
4279
|
+
},
|
|
4280
|
+
". The best way to reuse same layout through pages it to create Layout component and use it inside page as extend."
|
|
4281
|
+
]
|
|
4282
|
+
}
|
|
4283
|
+
},
|
|
4284
|
+
"AddingPage": {},
|
|
4285
|
+
"NestedPages": {},
|
|
4286
|
+
"LinkComponent": {}
|
|
4287
|
+
},
|
|
4288
|
+
"/docs/dependencies": {
|
|
4289
|
+
"props": {
|
|
4290
|
+
"flexFlow": "column",
|
|
4291
|
+
"gap": "C2"
|
|
4292
|
+
},
|
|
4293
|
+
"ArticleBig": {
|
|
4294
|
+
"title": {
|
|
4295
|
+
"text": "Dependencies"
|
|
4296
|
+
},
|
|
4297
|
+
"p": {
|
|
4298
|
+
"text": "You can use NPM packages inside symbols by registering them in integrations page. You can point package name and version, click submit and use after symbols server builds it for you. Usually it takes 1-2 minutes to get compiled and hosted to CDN."
|
|
4299
|
+
}
|
|
4300
|
+
},
|
|
4301
|
+
"ArticleMedium": {
|
|
4302
|
+
"title": {
|
|
4303
|
+
"text": "Adding a dependency",
|
|
4304
|
+
"id": "creating-dependencies"
|
|
4305
|
+
},
|
|
4306
|
+
"p": {
|
|
4307
|
+
"text": "You can add NPM dependencies matching its pattern, where pacakge is the name of the package and version"
|
|
4308
|
+
}
|
|
4309
|
+
},
|
|
4310
|
+
"SuggestionAction": {
|
|
4311
|
+
"text": "Add a dependency",
|
|
4312
|
+
"href": "/page/dependencies/add-dependency"
|
|
4313
|
+
},
|
|
4314
|
+
"Example": {
|
|
4315
|
+
"props": {},
|
|
4316
|
+
"ArticleMedium_example": {
|
|
4317
|
+
"margin": "- - Z2",
|
|
4318
|
+
"p": {
|
|
4319
|
+
"text": "This is example of package.json:"
|
|
4320
|
+
}
|
|
4321
|
+
},
|
|
4322
|
+
"Code": {
|
|
4323
|
+
"title": null,
|
|
4324
|
+
"code": {
|
|
4325
|
+
"text": {
|
|
4326
|
+
"domql": "{\n \"dependencies\": {\n \"smbls\": \"^2.0.0\",\n \"packageName\": \"packageVersion\"\n }\n}",
|
|
4327
|
+
"react": ""
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
},
|
|
4332
|
+
"Section": {
|
|
4333
|
+
"attr": {
|
|
4334
|
+
"id": "using-dependencies"
|
|
4335
|
+
},
|
|
4336
|
+
"ArticleMedium": {
|
|
4337
|
+
"margin": "- - Z2",
|
|
4338
|
+
"title": {
|
|
4339
|
+
"text": "Using a dependency"
|
|
4340
|
+
},
|
|
4341
|
+
"p": {
|
|
4342
|
+
"childProps": {
|
|
4343
|
+
"display": "inline"
|
|
4344
|
+
},
|
|
4345
|
+
"children": [
|
|
4346
|
+
"Using dependencies are achieved with invoking ",
|
|
4347
|
+
{
|
|
4348
|
+
"extend": "Labeled",
|
|
4349
|
+
"text": "require()"
|
|
4350
|
+
},
|
|
4351
|
+
" function. ",
|
|
4352
|
+
{
|
|
4353
|
+
"extend": "Labeled",
|
|
4354
|
+
"text": "require"
|
|
4355
|
+
},
|
|
4356
|
+
" function takes package as the first argument such as ",
|
|
4357
|
+
{
|
|
4358
|
+
"extend": "Labeled",
|
|
4359
|
+
"text": "lodash"
|
|
4360
|
+
},
|
|
4361
|
+
", ",
|
|
4362
|
+
{
|
|
4363
|
+
"extend": "Labeled",
|
|
4364
|
+
"text": "@fontsource/montserrat"
|
|
4365
|
+
},
|
|
4366
|
+
" etc."
|
|
4367
|
+
]
|
|
4368
|
+
}
|
|
4369
|
+
},
|
|
4370
|
+
"ArticleMedium_example": {
|
|
4371
|
+
"margin": "- - Z2",
|
|
4372
|
+
"p": {
|
|
4373
|
+
"text": "Example code:"
|
|
4374
|
+
}
|
|
4375
|
+
},
|
|
4376
|
+
"Code": {
|
|
4377
|
+
"title": null,
|
|
4378
|
+
"code": {
|
|
4379
|
+
"text": {
|
|
4380
|
+
"domql": "{\n Input: {\n onInput: (ev, el, s) => {\n const anbani = require('anbani')\n console.log(anbani.core.convert(\"ანბანი\", \"მხედრული\", \"ასომთავრული\"))\n },\n },\n}",
|
|
4381
|
+
"react": ""
|
|
4382
|
+
}
|
|
4383
|
+
}
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
},
|
|
4387
|
+
"/docs/files": {
|
|
4388
|
+
"props": {
|
|
4389
|
+
"flexFlow": "column",
|
|
4390
|
+
"gap": "C2"
|
|
4391
|
+
},
|
|
4392
|
+
"ArticleBig": {
|
|
4393
|
+
"title": {
|
|
4394
|
+
"text": "Files"
|
|
4395
|
+
},
|
|
4396
|
+
"p": {
|
|
4397
|
+
"text": "Files are easy way to upload assets and custom scripts on the cloud and use throughout your app. Files can store any media, code or content and use it through the CDN. Other than using accessible URLs of files, you can as well use them inside code using Javascript require statement."
|
|
4398
|
+
}
|
|
4399
|
+
},
|
|
4400
|
+
"ArticleMedium": {
|
|
4401
|
+
"title": {
|
|
4402
|
+
"text": "Adding a page",
|
|
4403
|
+
"id": "add-page"
|
|
4404
|
+
},
|
|
4405
|
+
"p": {
|
|
4406
|
+
"text": "This modal helps you to add the page with metadata."
|
|
4407
|
+
}
|
|
4408
|
+
},
|
|
4409
|
+
"SuggestionAction": {
|
|
4410
|
+
"text": "Add a file",
|
|
4411
|
+
"href": "/docs/files/add-file"
|
|
4412
|
+
},
|
|
4413
|
+
"Section": {
|
|
4414
|
+
"attr": {
|
|
4415
|
+
"id": "create"
|
|
4416
|
+
},
|
|
4417
|
+
"ArticleMedium": {
|
|
4418
|
+
"margin": "- - Z2",
|
|
4419
|
+
"p": {
|
|
4420
|
+
"text": "Example code:"
|
|
4421
|
+
}
|
|
4422
|
+
},
|
|
4423
|
+
"Code": {
|
|
4424
|
+
"title": null,
|
|
4425
|
+
"code": {
|
|
4426
|
+
"text": {
|
|
4427
|
+
"domql": "{\n Input: {\n onInput: (ev, el, s) => {\n const file = require('imgFromFiles.jpg')\n console.log(file)\n },\n },\n}",
|
|
4428
|
+
"react": ""
|
|
4429
|
+
}
|
|
4430
|
+
}
|
|
4431
|
+
}
|
|
4432
|
+
},
|
|
4433
|
+
"Section_mediafiles": {
|
|
4434
|
+
"attr": {
|
|
4435
|
+
"id": "mediafiles"
|
|
4436
|
+
},
|
|
4437
|
+
"P": {
|
|
4438
|
+
"text": "You can also use file name directly in src of media files."
|
|
4439
|
+
},
|
|
4440
|
+
"ArticleMedium": {
|
|
4441
|
+
"margin": "- - Z2",
|
|
4442
|
+
"p": {
|
|
4443
|
+
"text": "Example code:"
|
|
4444
|
+
}
|
|
4445
|
+
},
|
|
4446
|
+
"Code": {
|
|
4447
|
+
"title": null,
|
|
4448
|
+
"code": {
|
|
4449
|
+
"text": {
|
|
4450
|
+
"domql": "{\n Img: { src: 'imgFromFiles.jpg' }\n}",
|
|
4451
|
+
"react": ""
|
|
4452
|
+
}
|
|
4453
|
+
}
|
|
4454
|
+
}
|
|
4455
|
+
}
|
|
4456
|
+
},
|
|
4457
|
+
"/docs/functions": {
|
|
4458
|
+
"props": {
|
|
4459
|
+
"flexFlow": "column",
|
|
4460
|
+
"gap": "C2"
|
|
4461
|
+
},
|
|
4462
|
+
"ArticleBig": {
|
|
4463
|
+
"title": {
|
|
4464
|
+
"text": "Functions"
|
|
4465
|
+
},
|
|
4466
|
+
"p": {
|
|
4467
|
+
"text": "Functions allow you to write reusable frontend and backend functions and call them anytime during your flow. Functions can be used as lambda, self sustaining executable scripts and can be shared across your internal Symbols app or externally with integrations."
|
|
4468
|
+
}
|
|
4469
|
+
},
|
|
4470
|
+
"ArticleMedium": {
|
|
4471
|
+
"attr": {
|
|
4472
|
+
"id": "frontend"
|
|
4473
|
+
},
|
|
4474
|
+
"title": {
|
|
4475
|
+
"text": "Frontend functions"
|
|
4476
|
+
},
|
|
4477
|
+
"p": {
|
|
4478
|
+
"text": "Frontend functions can be called within the browser when you want to execute some browser related functionality on your users browser. It can be perfectly used on events such as onClick, onLoad and etc. Most often frontend functions are used to reuse some functionality or wrap API requests in one place."
|
|
4479
|
+
}
|
|
4480
|
+
},
|
|
4481
|
+
"SuggestionAction": {
|
|
4482
|
+
"text": "Add frontend function",
|
|
4483
|
+
"href": "/page/docs/functions/add-function"
|
|
4484
|
+
},
|
|
4485
|
+
"Section": {
|
|
4486
|
+
"props": {
|
|
4487
|
+
"flexFlow": "column",
|
|
4488
|
+
"gap": "C2",
|
|
3416
4489
|
"width": "100%"
|
|
3417
4490
|
},
|
|
3418
4491
|
"attr": {
|
|
@@ -3427,8 +4500,8 @@
|
|
|
3427
4500
|
}
|
|
3428
4501
|
},
|
|
3429
4502
|
"SuggestionAction": {
|
|
3430
|
-
"
|
|
3431
|
-
"
|
|
4503
|
+
"text": "Add backend function",
|
|
4504
|
+
"href": "/settings/add-backend-function"
|
|
3432
4505
|
},
|
|
3433
4506
|
"ArticleSmall_accessibility": {
|
|
3434
4507
|
"attr": {
|
|
@@ -3496,8 +4569,29 @@
|
|
|
3496
4569
|
"minWidth": "100%"
|
|
3497
4570
|
}
|
|
3498
4571
|
},
|
|
3499
|
-
"$stateCollection": "(el, s, ctx) => {\n
|
|
4572
|
+
"$stateCollection": "(el, s, ctx) => {\n const {\n stringToObject\n } = ctx.utils\n return Object.values(s).map(v => ({\n ...v,\n component: stringToObject(v.data[v.data.length - 1].code)\n }))\n }"
|
|
3500
4573
|
}
|
|
4574
|
+
},
|
|
4575
|
+
"/docs/intro": {
|
|
4576
|
+
"tag": "article",
|
|
4577
|
+
"props": {
|
|
4578
|
+
"flexFlow": "column",
|
|
4579
|
+
"gap": "C2"
|
|
4580
|
+
},
|
|
4581
|
+
"Hgroup": {
|
|
4582
|
+
"H": {
|
|
4583
|
+
"text": "Intro"
|
|
4584
|
+
},
|
|
4585
|
+
"P": {
|
|
4586
|
+
"text": "Symbols is a Design System framework with an advanced toolchain that allows you to create flexible, accessible, and scalable user interfaces. We designed it in JavaScript for the node ecosystem that also can be used via cjs or require statements."
|
|
4587
|
+
}
|
|
4588
|
+
},
|
|
4589
|
+
"GettingStarted": {},
|
|
4590
|
+
"Installation": {},
|
|
4591
|
+
"Configuration": {},
|
|
4592
|
+
"Initialization": {},
|
|
4593
|
+
"Usage": {},
|
|
4594
|
+
"StarterKit": {}
|
|
3501
4595
|
}
|
|
3502
4596
|
},
|
|
3503
4597
|
"snippets": {},
|