@primer/view-components 0.14.0-rc.2a361c96 → 0.14.0-rc.2ea4701c
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/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +1 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar.css +1 -1
- package/app/components/primer/alpha/action_bar.css.json +1 -4
- package/app/components/primer/alpha/action_bar_element.js +21 -9
- package/app/components/primer/alpha/action_list.css +1 -1
- package/app/components/primer/alpha/action_menu/action_menu_element.js +44 -20
- package/app/components/primer/alpha/auto_complete.css +1 -1
- package/app/components/primer/alpha/button_marketing.css +1 -1
- package/app/components/primer/alpha/dropdown.css +1 -1
- package/app/components/primer/alpha/layout.css +1 -1
- package/app/components/primer/alpha/menu.css +1 -1
- package/app/components/primer/alpha/overlay.css +1 -1
- package/app/components/primer/alpha/overlay.css.json +0 -1
- package/app/components/primer/alpha/segmented_control.css +1 -1
- package/app/components/primer/alpha/segmented_control.css.json +0 -1
- package/app/components/primer/alpha/segmented_control.js +2 -1
- package/app/components/primer/alpha/tab_nav.css +1 -1
- package/app/components/primer/alpha/text_field.css +1 -1
- package/app/components/primer/alpha/toggle_switch.css +1 -1
- package/app/components/primer/alpha/underline_nav.css +1 -1
- package/app/components/primer/alpha/x_banner.js +2 -1
- package/app/components/primer/anchored_position.js +2 -1
- package/app/components/primer/beta/blankslate.css +1 -1
- package/app/components/primer/beta/blankslate.css.json +1 -0
- package/app/components/primer/beta/border_box.css +1 -1
- package/app/components/primer/beta/button.css +1 -1
- package/app/components/primer/beta/button.css.json +0 -1
- package/app/components/primer/beta/button_group.css +1 -1
- package/app/components/primer/beta/button_group.css.json +2 -4
- package/app/components/primer/beta/label.css +1 -1
- package/app/components/primer/beta/link.css +1 -1
- package/app/components/primer/beta/nav_list.js +14 -7
- package/app/components/primer/beta/subhead.css +1 -1
- package/app/components/primer/beta/subhead.css.json +2 -0
- package/app/components/primer/focus_group.js +2 -1
- package/package.json +8 -8
- package/static/arguments.json +75 -13
- package/static/audited_at.json +2 -0
- package/static/classes.json +6 -3
- package/static/constants.json +16 -1
- package/static/info_arch.json +316 -26
- package/static/previews.json +133 -0
- package/static/statuses.json +2 -0
package/static/arguments.json
CHANGED
@@ -923,7 +923,7 @@
|
|
923
923
|
"name": "subtitle",
|
924
924
|
"type": "String",
|
925
925
|
"default": "`nil`",
|
926
|
-
"description": "Provides
|
926
|
+
"description": "Provides additional context for the dialog, also setting the `aria-describedby` attribute."
|
927
927
|
},
|
928
928
|
{
|
929
929
|
"name": "show_divider",
|
@@ -3034,7 +3034,7 @@
|
|
3034
3034
|
"name": "size",
|
3035
3035
|
"type": "Integer",
|
3036
3036
|
"default": "`20`",
|
3037
|
-
"description": "One of `16`, `20`, `24`, `32`, `40`, `48`, or `80`."
|
3037
|
+
"description": "One of `16`, `20`, `24`, `32`, `40`, `48`, `64`, or `80`."
|
3038
3038
|
},
|
3039
3039
|
{
|
3040
3040
|
"name": "shape",
|
@@ -3108,7 +3108,7 @@
|
|
3108
3108
|
"name": "tag",
|
3109
3109
|
"type": "Symbol",
|
3110
3110
|
"default": "`:button`",
|
3111
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
3111
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3112
3112
|
},
|
3113
3113
|
{
|
3114
3114
|
"name": "type",
|
@@ -3249,6 +3249,12 @@
|
|
3249
3249
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/button.rb",
|
3250
3250
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/button/default/",
|
3251
3251
|
"parameters": [
|
3252
|
+
{
|
3253
|
+
"name": "base_button_class",
|
3254
|
+
"type": "Class",
|
3255
|
+
"default": "`Primer::Beta::BaseButton`",
|
3256
|
+
"description": "The button class to render."
|
3257
|
+
},
|
3252
3258
|
{
|
3253
3259
|
"name": "scheme",
|
3254
3260
|
"type": "Symbol",
|
@@ -3277,7 +3283,7 @@
|
|
3277
3283
|
"name": "tag",
|
3278
3284
|
"type": "Symbol",
|
3279
3285
|
"default": "`:button`",
|
3280
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
3286
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3281
3287
|
},
|
3282
3288
|
{
|
3283
3289
|
"name": "type",
|
@@ -3361,6 +3367,68 @@
|
|
3361
3367
|
}
|
3362
3368
|
]
|
3363
3369
|
},
|
3370
|
+
{
|
3371
|
+
"component": "ClipboardCopyBaseButton",
|
3372
|
+
"status": "beta",
|
3373
|
+
"a11y_reviewed": false,
|
3374
|
+
"short_name": "ClipboardCopyBaseButton",
|
3375
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/clipboard_copy_base_button.rb",
|
3376
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/clipboard_copy_base_button/default/",
|
3377
|
+
"parameters": [
|
3378
|
+
{
|
3379
|
+
"name": "tag",
|
3380
|
+
"type": "Symbol",
|
3381
|
+
"default": "`:button`",
|
3382
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3383
|
+
},
|
3384
|
+
{
|
3385
|
+
"name": "type",
|
3386
|
+
"type": "Symbol",
|
3387
|
+
"default": "`:button`",
|
3388
|
+
"description": "One of `:button`, `:reset`, or `:submit`."
|
3389
|
+
},
|
3390
|
+
{
|
3391
|
+
"name": "block",
|
3392
|
+
"type": "Boolean",
|
3393
|
+
"default": "`false`",
|
3394
|
+
"description": "Whether button is full-width with `display: block`."
|
3395
|
+
},
|
3396
|
+
{
|
3397
|
+
"name": "disabled",
|
3398
|
+
"type": "Boolean",
|
3399
|
+
"default": "`false`",
|
3400
|
+
"description": "Whether or not the button is disabled. If true, this option forces `tag:` to `:button`."
|
3401
|
+
},
|
3402
|
+
{
|
3403
|
+
"name": "inactive",
|
3404
|
+
"type": "Boolean",
|
3405
|
+
"default": "`false`",
|
3406
|
+
"description": "Whether the button looks visually disabled, but can still accept all the same interactions as an enabled button."
|
3407
|
+
},
|
3408
|
+
{
|
3409
|
+
"name": "system_arguments",
|
3410
|
+
"type": "Hash",
|
3411
|
+
"default": "N/A",
|
3412
|
+
"description": "[System arguments](/system-arguments)"
|
3413
|
+
}
|
3414
|
+
]
|
3415
|
+
},
|
3416
|
+
{
|
3417
|
+
"component": "ClipboardCopyButton",
|
3418
|
+
"status": "beta",
|
3419
|
+
"a11y_reviewed": false,
|
3420
|
+
"short_name": "ClipboardCopyButton",
|
3421
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/clipboard_copy_button.rb",
|
3422
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/clipboard_copy_button/default/",
|
3423
|
+
"parameters": [
|
3424
|
+
{
|
3425
|
+
"name": "system_arguments",
|
3426
|
+
"type": "Hash",
|
3427
|
+
"default": "N/A",
|
3428
|
+
"description": "The arguments accepted by [Button](/components/beta/button) and [ClipboardCopy](/components/beta/clipboardcopy)."
|
3429
|
+
}
|
3430
|
+
]
|
3431
|
+
},
|
3364
3432
|
{
|
3365
3433
|
"component": "CloseButton",
|
3366
3434
|
"status": "beta",
|
@@ -3561,13 +3629,7 @@
|
|
3561
3629
|
"name": "tag",
|
3562
3630
|
"type": "Symbol",
|
3563
3631
|
"default": "N/A",
|
3564
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
3565
|
-
},
|
3566
|
-
{
|
3567
|
-
"name": "wrapper_arguments",
|
3568
|
-
"type": "Hash",
|
3569
|
-
"default": "`{}`",
|
3570
|
-
"description": "Optional keyword arguments to be passed to the wrapper `<div>` tag."
|
3632
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3571
3633
|
},
|
3572
3634
|
{
|
3573
3635
|
"name": "scheme",
|
@@ -4399,7 +4461,7 @@
|
|
4399
4461
|
"name": "tag",
|
4400
4462
|
"type": "Symbol",
|
4401
4463
|
"default": "`:button`",
|
4402
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
4464
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
4403
4465
|
},
|
4404
4466
|
{
|
4405
4467
|
"name": "type",
|
@@ -4490,7 +4552,7 @@
|
|
4490
4552
|
"name": "tag",
|
4491
4553
|
"type": "Symbol",
|
4492
4554
|
"default": "N/A",
|
4493
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
4555
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
4494
4556
|
},
|
4495
4557
|
{
|
4496
4558
|
"name": "type",
|
package/static/audited_at.json
CHANGED
@@ -73,6 +73,8 @@
|
|
73
73
|
"Primer::Beta::Button": "",
|
74
74
|
"Primer::Beta::ButtonGroup": "",
|
75
75
|
"Primer::Beta::ClipboardCopy": "",
|
76
|
+
"Primer::Beta::ClipboardCopyBaseButton": "",
|
77
|
+
"Primer::Beta::ClipboardCopyButton": "",
|
76
78
|
"Primer::Beta::CloseButton": "",
|
77
79
|
"Primer::Beta::Counter": "",
|
78
80
|
"Primer::Beta::Details": "",
|
package/static/classes.json
CHANGED
@@ -218,9 +218,6 @@
|
|
218
218
|
"Button-visual": [
|
219
219
|
"Primer::Beta::Button"
|
220
220
|
],
|
221
|
-
"Button-withTooltip": [
|
222
|
-
"Primer::Beta::Button"
|
223
|
-
],
|
224
221
|
"ButtonGroup": [
|
225
222
|
"Primer::Beta::ButtonGroup"
|
226
223
|
],
|
@@ -528,6 +525,12 @@
|
|
528
525
|
"Subhead-heading--danger": [
|
529
526
|
"Primer::Beta::Subhead"
|
530
527
|
],
|
528
|
+
"Subhead-heading--large": [
|
529
|
+
"Primer::Beta::Subhead"
|
530
|
+
],
|
531
|
+
"Subhead-heading--medium": [
|
532
|
+
"Primer::Beta::Subhead"
|
533
|
+
],
|
531
534
|
"TimelineItem": [
|
532
535
|
"Primer::Beta::TimelineItem"
|
533
536
|
],
|
package/static/constants.json
CHANGED
@@ -709,6 +709,7 @@
|
|
709
709
|
32,
|
710
710
|
40,
|
711
711
|
48,
|
712
|
+
64,
|
712
713
|
80
|
713
714
|
],
|
714
715
|
"SMALL_THRESHOLD": 24
|
@@ -736,7 +737,8 @@
|
|
736
737
|
"TAG_OPTIONS": [
|
737
738
|
"button",
|
738
739
|
"a",
|
739
|
-
"summary"
|
740
|
+
"summary",
|
741
|
+
"clipboard-copy"
|
740
742
|
],
|
741
743
|
"TYPE_OPTIONS": [
|
742
744
|
"button",
|
@@ -836,6 +838,10 @@
|
|
836
838
|
},
|
837
839
|
"Primer::Beta::ClipboardCopy": {
|
838
840
|
},
|
841
|
+
"Primer::Beta::ClipboardCopyBaseButton": {
|
842
|
+
},
|
843
|
+
"Primer::Beta::ClipboardCopyButton": {
|
844
|
+
},
|
839
845
|
"Primer::Beta::CloseButton": {
|
840
846
|
"DEFAULT_TYPE": "button",
|
841
847
|
"TYPE_OPTIONS": [
|
@@ -1238,7 +1244,16 @@
|
|
1238
1244
|
]
|
1239
1245
|
},
|
1240
1246
|
"Primer::Beta::Subhead": {
|
1247
|
+
"DEFAULT_HEADING_SIZE": "large",
|
1241
1248
|
"DEFAULT_HEADING_TAG": "div",
|
1249
|
+
"HEADING_SIZE_MAP": {
|
1250
|
+
"large": "Subhead-heading--large",
|
1251
|
+
"medium": "Subhead-heading--medium"
|
1252
|
+
},
|
1253
|
+
"HEADING_SIZE_OPTIONS": [
|
1254
|
+
"large",
|
1255
|
+
"medium"
|
1256
|
+
],
|
1242
1257
|
"HEADING_TAG_OPTIONS": [
|
1243
1258
|
"div",
|
1244
1259
|
"h1",
|