@primer/view-components 0.6.0-rc.1223bcfd → 0.6.0-rc.7dee70b8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/arguments.json +2 -2
- package/static/info_arch.json +7 -218
- package/static/previews.json +0 -13
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.6.0-rc.
|
3
|
+
"version": "0.6.0-rc.7dee70b8",
|
4
4
|
"description": "ViewComponents for the Primer Design System",
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
6
6
|
"module": "app/components/primer/primer.js",
|
package/static/arguments.json
CHANGED
@@ -270,7 +270,7 @@
|
|
270
270
|
"name": "description_scheme",
|
271
271
|
"type": "Symbol",
|
272
272
|
"default": "`:block`",
|
273
|
-
"description": "Display description inline with label, or block on the next line.
|
273
|
+
"description": "Display description inline with label, or block on the next line."
|
274
274
|
},
|
275
275
|
{
|
276
276
|
"name": "active",
|
@@ -2986,7 +2986,7 @@
|
|
2986
2986
|
{
|
2987
2987
|
"name": "alt",
|
2988
2988
|
"type": "String",
|
2989
|
-
"default": "
|
2989
|
+
"default": "N/A",
|
2990
2990
|
"description": "Passed through to alt on img tag."
|
2991
2991
|
},
|
2992
2992
|
{
|
package/static/info_arch.json
CHANGED
@@ -259,7 +259,7 @@
|
|
259
259
|
},
|
260
260
|
{
|
261
261
|
"name": "items",
|
262
|
-
"description": "Items. Items can be individual items
|
262
|
+
"description": "Items. Items can be individual items or dividers. See the documentation for `#with_item` and `#with_divider` respectively for more information.",
|
263
263
|
"parameters": [
|
264
264
|
|
265
265
|
]
|
@@ -290,48 +290,6 @@
|
|
290
290
|
}
|
291
291
|
]
|
292
292
|
},
|
293
|
-
{
|
294
|
-
"name": "with_avatar_item",
|
295
|
-
"description": "Adds an avatar item to the list. Avatar items are a convenient way to accessibly add an item with a leading avatar image.",
|
296
|
-
"parameters": [
|
297
|
-
{
|
298
|
-
"name": "src",
|
299
|
-
"type": "String",
|
300
|
-
"default": "N/A",
|
301
|
-
"description": "The source url of the avatar image."
|
302
|
-
},
|
303
|
-
{
|
304
|
-
"name": "username",
|
305
|
-
"type": "String",
|
306
|
-
"default": "N/A",
|
307
|
-
"description": "The username associated with the avatar."
|
308
|
-
},
|
309
|
-
{
|
310
|
-
"name": "full_name",
|
311
|
-
"type": "String",
|
312
|
-
"default": "`nil`",
|
313
|
-
"description": "Optional. The user's full name."
|
314
|
-
},
|
315
|
-
{
|
316
|
-
"name": "full_name_scheme",
|
317
|
-
"type": "Symbol",
|
318
|
-
"default": "`:block`",
|
319
|
-
"description": "Optional. How to display the user's full name. One of `:block` or `:inline`."
|
320
|
-
},
|
321
|
-
{
|
322
|
-
"name": "avatar_arguments",
|
323
|
-
"type": "Hash",
|
324
|
-
"default": "`{}`",
|
325
|
-
"description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}."
|
326
|
-
},
|
327
|
-
{
|
328
|
-
"name": "system_arguments",
|
329
|
-
"type": "Hash",
|
330
|
-
"default": "N/A",
|
331
|
-
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
|
332
|
-
}
|
333
|
-
]
|
334
|
-
},
|
335
293
|
{
|
336
294
|
"name": "id",
|
337
295
|
"description": "Returns the value of attribute id.",
|
@@ -453,19 +411,6 @@
|
|
453
411
|
]
|
454
412
|
}
|
455
413
|
},
|
456
|
-
{
|
457
|
-
"preview_path": "primer/alpha/action_list/avatar_item",
|
458
|
-
"name": "avatar_item",
|
459
|
-
"snapshot": "false",
|
460
|
-
"skip_rules": {
|
461
|
-
"wont_fix": [
|
462
|
-
"region"
|
463
|
-
],
|
464
|
-
"will_fix": [
|
465
|
-
"color-contrast"
|
466
|
-
]
|
467
|
-
}
|
468
|
-
},
|
469
414
|
{
|
470
415
|
"preview_path": "primer/alpha/action_list/item_default",
|
471
416
|
"name": "item_default",
|
@@ -745,7 +690,7 @@
|
|
745
690
|
"name": "description_scheme",
|
746
691
|
"type": "Symbol",
|
747
692
|
"default": "`:block`",
|
748
|
-
"description": "Display description inline with label, or block on the next line.
|
693
|
+
"description": "Display description inline with label, or block on the next line."
|
749
694
|
},
|
750
695
|
{
|
751
696
|
"name": "active",
|
@@ -782,7 +727,7 @@
|
|
782
727
|
},
|
783
728
|
{
|
784
729
|
"name": "leading_visual",
|
785
|
-
"description": "An icon, avatar, SVG, or custom content that will render to the left of the label.\n\nTo render an icon, call the `with_leading_visual_icon` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Octicon{{/link_to_component}}.\n\nTo render an SVG, call the `with_leading_visual_svg` method.\n\nTo render custom content, call the `with_leading_visual_content` method and pass a block that returns a string.",
|
730
|
+
"description": "An icon, avatar, SVG, or custom content that will render to the left of the label.\n\nTo render an icon, call the `with_leading_visual_icon` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Octicon{{/link_to_component}}.\n\nTo render an avatar, call the `with_leading_visual_avatar` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}.\n\nTo render an SVG, call the `with_leading_visual_svg` method.\n\nTo render custom content, call the `with_leading_visual_content` method and pass a block that returns a string.",
|
786
731
|
"parameters": [
|
787
732
|
|
788
733
|
]
|
@@ -1192,48 +1137,6 @@
|
|
1192
1137
|
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList{{/link_to_component}}'s `divider` slot."
|
1193
1138
|
}
|
1194
1139
|
]
|
1195
|
-
},
|
1196
|
-
{
|
1197
|
-
"name": "with_avatar_item",
|
1198
|
-
"description": "Adds an avatar item to the list. Avatar items are a convenient way to accessibly add an item with a leading avatar image.",
|
1199
|
-
"parameters": [
|
1200
|
-
{
|
1201
|
-
"name": "src",
|
1202
|
-
"type": "String",
|
1203
|
-
"default": "N/A",
|
1204
|
-
"description": "The source url of the avatar image."
|
1205
|
-
},
|
1206
|
-
{
|
1207
|
-
"name": "username",
|
1208
|
-
"type": "String",
|
1209
|
-
"default": "N/A",
|
1210
|
-
"description": "The username associated with the avatar."
|
1211
|
-
},
|
1212
|
-
{
|
1213
|
-
"name": "full_name",
|
1214
|
-
"type": "String",
|
1215
|
-
"default": "N/A",
|
1216
|
-
"description": "Optional. The user's full name."
|
1217
|
-
},
|
1218
|
-
{
|
1219
|
-
"name": "full_name_scheme",
|
1220
|
-
"type": "Symbol",
|
1221
|
-
"default": "N/A",
|
1222
|
-
"description": "Optional. How to display the user's full name."
|
1223
|
-
},
|
1224
|
-
{
|
1225
|
-
"name": "avatar_arguments",
|
1226
|
-
"type": "Hash",
|
1227
|
-
"default": "N/A",
|
1228
|
-
"description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}."
|
1229
|
-
},
|
1230
|
-
{
|
1231
|
-
"name": "system_arguments",
|
1232
|
-
"type": "Hash",
|
1233
|
-
"default": "N/A",
|
1234
|
-
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
|
1235
|
-
}
|
1236
|
-
]
|
1237
1140
|
}
|
1238
1141
|
],
|
1239
1142
|
"previews": [
|
@@ -1605,7 +1508,7 @@
|
|
1605
1508
|
},
|
1606
1509
|
{
|
1607
1510
|
"name": "items",
|
1608
|
-
"description": "Items. Items can be individual items
|
1511
|
+
"description": "Items. Items can be individual items or dividers. See the documentation for `#with_item` and `#with_divider` respectively for more information.",
|
1609
1512
|
"parameters": [
|
1610
1513
|
|
1611
1514
|
]
|
@@ -1629,54 +1532,6 @@
|
|
1629
1532
|
"description": "The same arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
|
1630
1533
|
}
|
1631
1534
|
]
|
1632
|
-
},
|
1633
|
-
{
|
1634
|
-
"name": "with_avatar_item",
|
1635
|
-
"description": "Adds an avatar item to the list. Avatar items are a convenient way to accessibly add an item with a leading avatar image.",
|
1636
|
-
"parameters": [
|
1637
|
-
{
|
1638
|
-
"name": "src",
|
1639
|
-
"type": "String",
|
1640
|
-
"default": "N/A",
|
1641
|
-
"description": "The source url of the avatar image."
|
1642
|
-
},
|
1643
|
-
{
|
1644
|
-
"name": "username",
|
1645
|
-
"type": "String",
|
1646
|
-
"default": "N/A",
|
1647
|
-
"description": "The username associated with the avatar."
|
1648
|
-
},
|
1649
|
-
{
|
1650
|
-
"name": "full_name",
|
1651
|
-
"type": "String",
|
1652
|
-
"default": "`nil`",
|
1653
|
-
"description": "Optional. The user's full name."
|
1654
|
-
},
|
1655
|
-
{
|
1656
|
-
"name": "full_name_scheme",
|
1657
|
-
"type": "Symbol",
|
1658
|
-
"default": "`:block`",
|
1659
|
-
"description": "Optional. How to display the user's full name. One of `:block` or `:inline`."
|
1660
|
-
},
|
1661
|
-
{
|
1662
|
-
"name": "data",
|
1663
|
-
"type": "Hash",
|
1664
|
-
"default": "`{}`",
|
1665
|
-
"description": "When the menu is used as a form input (see the {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}} docs), the label is submitted to the server by default. However, if the `data: { value: }` or `\"data-value\":` attribute is provided, it will be sent to the server instead."
|
1666
|
-
},
|
1667
|
-
{
|
1668
|
-
"name": "avatar_arguments",
|
1669
|
-
"type": "Hash",
|
1670
|
-
"default": "`{}`",
|
1671
|
-
"description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}."
|
1672
|
-
},
|
1673
|
-
{
|
1674
|
-
"name": "system_arguments",
|
1675
|
-
"type": "Hash",
|
1676
|
-
"default": "N/A",
|
1677
|
-
"description": "The same arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
|
1678
|
-
}
|
1679
|
-
]
|
1680
1535
|
}
|
1681
1536
|
],
|
1682
1537
|
"previews": [
|
@@ -4780,72 +4635,6 @@
|
|
4780
4635
|
}
|
4781
4636
|
],
|
4782
4637
|
"methods": [
|
4783
|
-
{
|
4784
|
-
"name": "with_item",
|
4785
|
-
"description": "Adds an item to the list.",
|
4786
|
-
"parameters": [
|
4787
|
-
{
|
4788
|
-
"name": "component_klass",
|
4789
|
-
"type": "Class",
|
4790
|
-
"default": "N/A",
|
4791
|
-
"description": "The component class to use. Defaults to `Primer::Alpha::NavList::Item`."
|
4792
|
-
},
|
4793
|
-
{
|
4794
|
-
"name": "system_arguments",
|
4795
|
-
"type": "Hash",
|
4796
|
-
"default": "N/A",
|
4797
|
-
"description": "The arguments accepted by the `component_klass` class."
|
4798
|
-
}
|
4799
|
-
]
|
4800
|
-
},
|
4801
|
-
{
|
4802
|
-
"name": "with_avatar_item",
|
4803
|
-
"description": "Adds an avatar item to the list. Avatar items are a convenient way to accessibly add an item with a leading avatar image.",
|
4804
|
-
"parameters": [
|
4805
|
-
{
|
4806
|
-
"name": "src",
|
4807
|
-
"type": "String",
|
4808
|
-
"default": "N/A",
|
4809
|
-
"description": "The source url of the avatar image."
|
4810
|
-
},
|
4811
|
-
{
|
4812
|
-
"name": "username",
|
4813
|
-
"type": "String",
|
4814
|
-
"default": "N/A",
|
4815
|
-
"description": "The username associated with the avatar."
|
4816
|
-
},
|
4817
|
-
{
|
4818
|
-
"name": "full_name",
|
4819
|
-
"type": "String",
|
4820
|
-
"default": "`nil`",
|
4821
|
-
"description": "Optional. The user's full name."
|
4822
|
-
},
|
4823
|
-
{
|
4824
|
-
"name": "full_name_scheme",
|
4825
|
-
"type": "Symbol",
|
4826
|
-
"default": "`:block`",
|
4827
|
-
"description": "Optional. How to display the user's full name. One of `:block` or `:inline`."
|
4828
|
-
},
|
4829
|
-
{
|
4830
|
-
"name": "component_klass",
|
4831
|
-
"type": "Class",
|
4832
|
-
"default": "N/A",
|
4833
|
-
"description": "The component class to use. Defaults to `Primer::Alpha::NavList::Item`."
|
4834
|
-
},
|
4835
|
-
{
|
4836
|
-
"name": "avatar_arguments",
|
4837
|
-
"type": "Hash",
|
4838
|
-
"default": "`{}`",
|
4839
|
-
"description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}."
|
4840
|
-
},
|
4841
|
-
{
|
4842
|
-
"name": "system_arguments",
|
4843
|
-
"type": "Hash",
|
4844
|
-
"default": "N/A",
|
4845
|
-
"description": "The arguments accepted by the `component_klass` class."
|
4846
|
-
}
|
4847
|
-
]
|
4848
|
-
},
|
4849
4638
|
{
|
4850
4639
|
"name": "with_group",
|
4851
4640
|
"description": "Adds a group to the list. A group is a list of links and a (required) heading.",
|
@@ -4866,7 +4655,7 @@
|
|
4866
4655
|
"name": "system_arguments",
|
4867
4656
|
"type": "Hash",
|
4868
4657
|
"default": "N/A",
|
4869
|
-
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::
|
4658
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Divider{{/link_to_component}}."
|
4870
4659
|
}
|
4871
4660
|
]
|
4872
4661
|
},
|
@@ -5090,7 +4879,7 @@
|
|
5090
4879
|
},
|
5091
4880
|
{
|
5092
4881
|
"name": "leading_visual",
|
5093
|
-
"description": "An icon, avatar, SVG, or custom content that will render to the left of the label.\n\nTo render an icon, call the `with_leading_visual_icon` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Octicon{{/link_to_component}}.\n\nTo render an SVG, call the `with_leading_visual_svg` method.\n\nTo render custom content, call the `with_leading_visual_content` method and pass a block that returns a string.",
|
4882
|
+
"description": "An icon, avatar, SVG, or custom content that will render to the left of the label.\n\nTo render an icon, call the `with_leading_visual_icon` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Octicon{{/link_to_component}}.\n\nTo render an avatar, call the `with_leading_visual_avatar` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}.\n\nTo render an SVG, call the `with_leading_visual_svg` method.\n\nTo render custom content, call the `with_leading_visual_content` method and pass a block that returns a string.",
|
5094
4883
|
"parameters": [
|
5095
4884
|
|
5096
4885
|
]
|
@@ -9087,7 +8876,7 @@
|
|
9087
8876
|
{
|
9088
8877
|
"name": "alt",
|
9089
8878
|
"type": "String",
|
9090
|
-
"default": "
|
8879
|
+
"default": "N/A",
|
9091
8880
|
"description": "Passed through to alt on img tag."
|
9092
8881
|
},
|
9093
8882
|
{
|
package/static/previews.json
CHANGED
@@ -182,19 +182,6 @@
|
|
182
182
|
]
|
183
183
|
}
|
184
184
|
},
|
185
|
-
{
|
186
|
-
"preview_path": "primer/alpha/action_list/avatar_item",
|
187
|
-
"name": "avatar_item",
|
188
|
-
"snapshot": "false",
|
189
|
-
"skip_rules": {
|
190
|
-
"wont_fix": [
|
191
|
-
"region"
|
192
|
-
],
|
193
|
-
"will_fix": [
|
194
|
-
"color-contrast"
|
195
|
-
]
|
196
|
-
}
|
197
|
-
},
|
198
185
|
{
|
199
186
|
"preview_path": "primer/alpha/action_list/item_default",
|
200
187
|
"name": "item_default",
|