@symbo.ls/mcp 1.0.5 → 1.0.8

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,6 +1,6 @@
1
1
  # Default components and property usage
2
2
 
3
- This document lists the default components in `smbls/components` and how their properties are commonly used in Symbols/DOMQL v3.
3
+ This document lists the default components in `smbls/components` and how their properties are commonly used in Symbols.app.
4
4
 
5
5
  ## Component groups
6
6
 
@@ -51,7 +51,9 @@ Common props:
51
51
  Example:
52
52
 
53
53
  ```js
54
- H2: { text: 'Section title' }
54
+ H2: {
55
+ text: "Section title";
56
+ }
55
57
  ```
56
58
 
57
59
  ### P
@@ -66,7 +68,9 @@ Common props:
66
68
  Example:
67
69
 
68
70
  ```js
69
- P: { text: 'A short description goes here.' }
71
+ P: {
72
+ text: "A short description goes here.";
73
+ }
70
74
  ```
71
75
 
72
76
  ### Caption
@@ -81,7 +85,9 @@ Common props:
81
85
  Example:
82
86
 
83
87
  ```js
84
- Caption: { text: 'Updated 3 days ago' }
88
+ Caption: {
89
+ text: "Updated 3 days ago";
90
+ }
85
91
  ```
86
92
 
87
93
  ### Headline / Subhead / Footnote
@@ -96,9 +102,15 @@ Common props:
96
102
  Example:
97
103
 
98
104
  ```js
99
- Headline: { text: 'Welcome back' }
100
- Subhead: { text: 'Manage your workspace' }
101
- Footnote: { text: '* Prices are subject to change' }
105
+ Headline: {
106
+ text: "Welcome back";
107
+ }
108
+ Subhead: {
109
+ text: "Manage your workspace";
110
+ }
111
+ Footnote: {
112
+ text: "* Prices are subject to change";
113
+ }
102
114
  ```
103
115
 
104
116
  ### Strong / Italic / U
@@ -112,9 +124,15 @@ Common props:
112
124
  Example:
113
125
 
114
126
  ```js
115
- Strong: { text: 'Important' }
116
- Italic: { text: 'Note:' }
117
- U: { text: 'Terms of service' }
127
+ Strong: {
128
+ text: "Important";
129
+ }
130
+ Italic: {
131
+ text: "Note:";
132
+ }
133
+ U: {
134
+ text: "Terms of service";
135
+ }
118
136
  ```
119
137
 
120
138
  ---
@@ -136,7 +154,9 @@ Common props:
136
154
  Example:
137
155
 
138
156
  ```js
139
- Hr: { minWidth: 'F' }
157
+ Hr: {
158
+ minWidth: "F";
159
+ }
140
160
  ```
141
161
 
142
162
  ### HrLegend
@@ -150,7 +170,9 @@ Common props:
150
170
  Example:
151
171
 
152
172
  ```js
153
- HrLegend: { text: 'Or' }
173
+ HrLegend: {
174
+ text: "Or";
175
+ }
154
176
  ```
155
177
 
156
178
  ---
@@ -278,8 +300,14 @@ Common props:
278
300
  Example:
279
301
 
280
302
  ```js
281
- UploadButton: { text: 'Choose file' }
282
- UploadIconButton: { Icon: { name: 'upload' } }
303
+ UploadButton: {
304
+ text: "Choose file";
305
+ }
306
+ UploadIconButton: {
307
+ Icon: {
308
+ name: "upload";
309
+ }
310
+ }
283
311
  ```
284
312
 
285
313
  ### SubmitButton
@@ -295,7 +323,9 @@ Common props:
295
323
  Example:
296
324
 
297
325
  ```js
298
- SubmitButton: { value: 'Create account' }
326
+ SubmitButton: {
327
+ value: "Create account";
328
+ }
299
329
  ```
300
330
 
301
331
  ### ButtonSet
@@ -312,10 +342,7 @@ Example:
312
342
 
313
343
  ```js
314
344
  ButtonSet: {
315
- children: [
316
- { text: 'Cancel' },
317
- { text: 'Save', theme: 'primary' }
318
- ]
345
+ children: [{ text: "Cancel" }, { text: "Save", theme: "primary" }];
319
346
  }
320
347
  ```
321
348
 
@@ -332,10 +359,7 @@ Example:
332
359
 
333
360
  ```js
334
361
  ConfirmationButtons: {
335
- children: [
336
- { text: 'Cancel' },
337
- { text: 'Delete', theme: 'danger' }
338
- ]
362
+ children: [{ text: "Cancel" }, { text: "Delete", theme: "danger" }];
339
363
  }
340
364
  ```
341
365
 
@@ -388,7 +412,9 @@ Common props:
388
412
  Example:
389
413
 
390
414
  ```js
391
- Avatar: { boxSize: 'C2' }
415
+ Avatar: {
416
+ boxSize: "C2";
417
+ }
392
418
  ```
393
419
 
394
420
  ### AvatarSet
@@ -403,7 +429,9 @@ Common props:
403
429
  Example:
404
430
 
405
431
  ```js
406
- AvatarSet: { children: [{}, {}, {}] }
432
+ AvatarSet: {
433
+ children: [{}, {}, {}];
434
+ }
407
435
  ```
408
436
 
409
437
  ### AvatarStatus
@@ -739,7 +767,11 @@ Common props:
739
767
  Example:
740
768
 
741
769
  ```js
742
- FixedNumberField: { Input: { placeholder: '0000' } }
770
+ FixedNumberField: {
771
+ Input: {
772
+ placeholder: "0000";
773
+ }
774
+ }
743
775
  ```
744
776
 
745
777
  ### CardNumberField
@@ -753,7 +785,9 @@ Common props:
753
785
  Example:
754
786
 
755
787
  ```js
756
- CardNumberField: { children: [{}, {}, {}, {}] }
788
+ CardNumberField: {
789
+ children: [{}, {}, {}, {}];
790
+ }
757
791
  ```
758
792
 
759
793
  ### Group / GroupField
@@ -792,9 +826,9 @@ Example:
792
826
  SelectPicker: {
793
827
  Select: {
794
828
  children: [
795
- { text: 'Option A', value: 'a' },
796
- { text: 'Option B', value: 'b' }
797
- ]
829
+ { text: "Option A", value: "a" },
830
+ { text: "Option B", value: "b" },
831
+ ];
798
832
  }
799
833
  }
800
834
  ```
@@ -832,7 +866,9 @@ Example:
832
866
 
833
867
  ```js
834
868
  NumberPicker: {
835
- Value: { text: '{{ currentValue }}' }
869
+ Value: {
870
+ text: "{{ currentValue }}";
871
+ }
836
872
  }
837
873
  ```
838
874
 
@@ -849,7 +885,11 @@ Common props:
849
885
  Example:
850
886
 
851
887
  ```js
852
- Search: { Input: { placeholder: 'Search…' } }
888
+ Search: {
889
+ Input: {
890
+ placeholder: "Search…";
891
+ }
892
+ }
853
893
  ```
854
894
 
855
895
  ### SearchDropdown
@@ -865,7 +905,9 @@ Example:
865
905
 
866
906
  ```js
867
907
  SearchDropdown: {
868
- state: { data: ['New York', 'Los Angeles', 'Chicago'] }
908
+ state: {
909
+ data: ["New York", "Los Angeles", "Chicago"];
910
+ }
869
911
  }
870
912
  ```
871
913
 
@@ -1124,9 +1166,9 @@ Example:
1124
1166
  ```js
1125
1167
  IconTextSet: {
1126
1168
  children: [
1127
- { Icon: { name: 'phone' }, text: '+1 (555) 123-4567' },
1128
- { Icon: { name: 'mail' }, text: 'hello@example.com' }
1129
- ]
1169
+ { Icon: { name: "phone" }, text: "+1 (555) 123-4567" },
1170
+ { Icon: { name: "mail" }, text: "hello@example.com" },
1171
+ ];
1130
1172
  }
1131
1173
  ```
1132
1174
 
@@ -1185,9 +1227,21 @@ Common props:
1185
1227
  Example:
1186
1228
 
1187
1229
  ```js
1188
- CheckCaption: { Caption: { text: 'Accept terms' } }
1189
- RadioCaption: { Caption: { text: 'Option A' } }
1190
- ToggleCaption: { Caption: { text: 'Enable notifications' } }
1230
+ CheckCaption: {
1231
+ Caption: {
1232
+ text: "Accept terms";
1233
+ }
1234
+ }
1235
+ RadioCaption: {
1236
+ Caption: {
1237
+ text: "Option A";
1238
+ }
1239
+ }
1240
+ ToggleCaption: {
1241
+ Caption: {
1242
+ text: "Enable notifications";
1243
+ }
1244
+ }
1191
1245
  ```
1192
1246
 
1193
1247
  ### CheckCaptionList / RadioCaptionList / ToggleCaptionList
@@ -1203,9 +1257,9 @@ Example:
1203
1257
  ```js
1204
1258
  CheckCaptionList: {
1205
1259
  children: [
1206
- { Caption: { text: 'Option 1' } },
1207
- { Caption: { text: 'Option 2' } }
1208
- ]
1260
+ { Caption: { text: "Option 1" } },
1261
+ { Caption: { text: "Option 2" } },
1262
+ ];
1209
1263
  }
1210
1264
  ```
1211
1265
 
@@ -1240,9 +1294,9 @@ Example:
1240
1294
  ```js
1241
1295
  ToggleHgroupList: {
1242
1296
  children: [
1243
- { H: { text: 'Email alerts' }, P: { text: 'Sent daily' } },
1244
- { H: { text: 'Push notifications' }, P: { text: 'Instant' } }
1245
- ]
1297
+ { H: { text: "Email alerts" }, P: { text: "Sent daily" } },
1298
+ { H: { text: "Push notifications" }, P: { text: "Instant" } },
1299
+ ];
1246
1300
  }
1247
1301
  ```
1248
1302
 
@@ -1279,10 +1333,10 @@ Example:
1279
1333
  ```js
1280
1334
  RadioSteps: {
1281
1335
  children: [
1282
- { H6: { text: 'Account info' }, RadioMark: { isActive: true } },
1283
- { H6: { text: 'Payment' } },
1284
- { H6: { text: 'Confirm' } }
1285
- ]
1336
+ { H6: { text: "Account info" }, RadioMark: { isActive: true } },
1337
+ { H6: { text: "Payment" } },
1338
+ { H6: { text: "Confirm" } },
1339
+ ];
1286
1340
  }
1287
1341
  ```
1288
1342
 
@@ -1298,7 +1352,9 @@ Common props:
1298
1352
  Example:
1299
1353
 
1300
1354
  ```js
1301
- RadioMark: { theme: 'primary' }
1355
+ RadioMark: {
1356
+ theme: "primary";
1357
+ }
1302
1358
  ```
1303
1359
 
1304
1360
  ---
@@ -1394,7 +1450,7 @@ Example:
1394
1450
 
1395
1451
  ```js
1396
1452
  ProgressStepSet: {
1397
- children: [{ value: 1 }, { value: 0.4 }, { value: 0 }]
1453
+ children: [{ value: 1 }, { value: 0.4 }, { value: 0 }];
1398
1454
  }
1399
1455
  ```
1400
1456
 
@@ -1431,7 +1487,9 @@ Common props:
1431
1487
  Example:
1432
1488
 
1433
1489
  ```js
1434
- StatusDot: { theme: 'success' }
1490
+ StatusDot: {
1491
+ theme: "success";
1492
+ }
1435
1493
  ```
1436
1494
 
1437
1495
  ### Stars
@@ -1447,12 +1505,12 @@ Example:
1447
1505
  ```js
1448
1506
  Stars: {
1449
1507
  children: [
1450
- { name: 'star' },
1451
- { name: 'star' },
1452
- { name: 'star' },
1453
- { name: 'star' },
1454
- { name: 'star' }
1455
- ]
1508
+ { name: "star" },
1509
+ { name: "star" },
1510
+ { name: "star" },
1511
+ { name: "star" },
1512
+ { name: "star" },
1513
+ ];
1456
1514
  }
1457
1515
  ```
1458
1516
 
@@ -1560,7 +1618,9 @@ Common props:
1560
1618
  Example:
1561
1619
 
1562
1620
  ```js
1563
- Breadcrumb: { tag: 'nav' }
1621
+ Breadcrumb: {
1622
+ tag: "nav";
1623
+ }
1564
1624
  ```
1565
1625
 
1566
1626
  ### NavigationDots
@@ -1575,7 +1635,7 @@ Example:
1575
1635
 
1576
1636
  ```js
1577
1637
  NavigationDots: {
1578
- children: [{}, { isActive: true }, {}]
1638
+ children: [{}, { isActive: true }, {}];
1579
1639
  }
1580
1640
  ```
1581
1641
 
@@ -1593,9 +1653,9 @@ Example:
1593
1653
  ```js
1594
1654
  NavigationArrows: {
1595
1655
  children: [
1596
- { Icon: { name: 'chevronLeft' } },
1597
- { Icon: { name: 'chevronRight' } }
1598
- ]
1656
+ { Icon: { name: "chevronLeft" } },
1657
+ { Icon: { name: "chevronRight" } },
1658
+ ];
1599
1659
  }
1600
1660
  ```
1601
1661
 
@@ -1613,7 +1673,7 @@ Example:
1613
1673
  ```js
1614
1674
  Pagination: {
1615
1675
  Flex: {
1616
- children: [{ text: '1', isActive: true }, { text: '2' }, { text: '3' }]
1676
+ children: [{ text: "1", isActive: true }, { text: "2" }, { text: "3" }];
1617
1677
  }
1618
1678
  }
1619
1679
  ```
@@ -1632,10 +1692,10 @@ Example:
1632
1692
  ```js
1633
1693
  TabSet: {
1634
1694
  children: [
1635
- { text: 'Overview', isActive: true },
1636
- { text: 'Details' },
1637
- { text: 'Reviews' }
1638
- ]
1695
+ { text: "Overview", isActive: true },
1696
+ { text: "Details" },
1697
+ { text: "Reviews" },
1698
+ ];
1639
1699
  }
1640
1700
  ```
1641
1701
 
@@ -1915,7 +1975,10 @@ Common props:
1915
1975
  Example:
1916
1976
 
1917
1977
  ```js
1918
- Scrollbar: { NavigationArrows: {} }
1978
+ Scrollbar: {
1979
+ NavigationArrows: {
1980
+ }
1981
+ }
1919
1982
  ```
1920
1983
 
1921
1984
  ---