@primer/view-components 0.44.0-rc.b6346e6e → 0.44.0-rc.c7fe423b
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/beta/breadcrumbs.css +1 -1
- package/app/components/primer/beta/breadcrumbs.css.json +0 -1
- package/app/components/primer/beta/progress_bar.css +1 -1
- package/package.json +2 -2
- package/static/arguments.json +167 -68
- package/static/audited_at.json +4 -0
- package/static/constants.json +27 -7
- package/static/info_arch.json +711 -221
- package/static/previews.json +13 -0
- package/static/statuses.json +4 -0
@@ -1 +1 @@
|
|
1
|
-
.breadcrumb-item{display:inline-block;list-style:none;
|
1
|
+
.breadcrumb-item{display:inline-block;list-style:none;max-width:100%}.breadcrumb-item:after{border-right:.1em solid var(--borderColor-neutral-emphasis);content:"";display:inline-block;height:.8em;margin:0 .15em 0 .5em;transform:rotate(15deg) translateY(.0625em)}:is(.breadcrumb-item-selected,.breadcrumb-item[aria-current]:not([aria-current=false])):after{content:none}.breadcrumb-item-selected a{color:var(--fgColor-default);cursor:default!important;-webkit-text-decoration:none!important;text-decoration:none!important}
|
@@ -1 +1 @@
|
|
1
|
-
.Progress{background-color:var(--
|
1
|
+
.Progress{background-color:var(--progressBar-track-bgColor);border-radius:var(--borderRadius-medium);display:flex;height:8px;outline:solid 1px var(--progressBar-track-borderColor);outline-offset:-1px;overflow:hidden}.Progress--large{height:10px}.Progress--small{height:5px}.Progress-item{outline:2px solid #0000}.Progress-item+.Progress-item{margin-left:var(--base-size-2)}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.44.0-rc.
|
3
|
+
"version": "0.44.0-rc.c7fe423b",
|
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",
|
@@ -68,7 +68,7 @@
|
|
68
68
|
"@github/markdownlint-github": "^0.8.0",
|
69
69
|
"@github/prettier-config": "0.0.6",
|
70
70
|
"@playwright/test": "^1.49.1",
|
71
|
-
"@primer/css": "22.0.
|
71
|
+
"@primer/css": "22.0.2",
|
72
72
|
"@primer/stylelint-config": "^13.1.1",
|
73
73
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
74
74
|
"@rollup/plugin-typescript": "^8.3.3",
|
package/static/arguments.json
CHANGED
@@ -325,77 +325,11 @@
|
|
325
325
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu.rb",
|
326
326
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/default/",
|
327
327
|
"parameters": [
|
328
|
-
{
|
329
|
-
"name": "menu_id",
|
330
|
-
"type": "String",
|
331
|
-
"default": "`self.class.generate_id`",
|
332
|
-
"description": "Id of the menu."
|
333
|
-
},
|
334
|
-
{
|
335
|
-
"name": "anchor_align",
|
336
|
-
"type": "Symbol",
|
337
|
-
"default": "`:start`",
|
338
|
-
"description": "One of `:center`, `:end`, or `:start`.."
|
339
|
-
},
|
340
|
-
{
|
341
|
-
"name": "anchor_side",
|
342
|
-
"type": "Symbol",
|
343
|
-
"default": "`:outside_bottom`",
|
344
|
-
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`.."
|
345
|
-
},
|
346
|
-
{
|
347
|
-
"name": "size",
|
348
|
-
"type": "Symbol",
|
349
|
-
"default": "`:auto`",
|
350
|
-
"description": "One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`.."
|
351
|
-
},
|
352
|
-
{
|
353
|
-
"name": "src",
|
354
|
-
"type": "String",
|
355
|
-
"default": "`nil`",
|
356
|
-
"description": "Used with an `include-fragment` element to load menu content from the given source URL."
|
357
|
-
},
|
358
|
-
{
|
359
|
-
"name": "preload",
|
360
|
-
"type": "Boolean",
|
361
|
-
"default": "`false`",
|
362
|
-
"description": "When true, and src is present, loads the `include-fragment` on trigger hover."
|
363
|
-
},
|
364
|
-
{
|
365
|
-
"name": "dynamic_label",
|
366
|
-
"type": "Boolean",
|
367
|
-
"default": "`false`",
|
368
|
-
"description": "Whether or not to display the text of the currently selected item in the show button."
|
369
|
-
},
|
370
|
-
{
|
371
|
-
"name": "dynamic_label_prefix",
|
372
|
-
"type": "String",
|
373
|
-
"default": "`nil`",
|
374
|
-
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
|
375
|
-
},
|
376
|
-
{
|
377
|
-
"name": "select_variant",
|
378
|
-
"type": "Symbol",
|
379
|
-
"default": "`:none`",
|
380
|
-
"description": "One of `:multiple`, `:none`, or `:single`."
|
381
|
-
},
|
382
|
-
{
|
383
|
-
"name": "form_arguments",
|
384
|
-
"type": "Hash",
|
385
|
-
"default": "`{}`",
|
386
|
-
"description": "Allows an `ActionMenu` to act as a select list in multi- and single-select modes. Pass the `builder:` and `name:` options to this hash. `builder:` should be an instance of `ActionView::Helpers::FormBuilder`, which are created by the standard Rails `#form_with` and `#form_for` helpers. The `name:` option is the desired name of the field that will be included in the params sent to the server on form submission."
|
387
|
-
},
|
388
|
-
{
|
389
|
-
"name": "overlay_arguments",
|
390
|
-
"type": "Hash",
|
391
|
-
"default": "`{}`",
|
392
|
-
"description": "Arguments to pass to the underlying [Overlay](/components/alpha/overlay)"
|
393
|
-
},
|
394
328
|
{
|
395
329
|
"name": "system_arguments",
|
396
330
|
"type": "Hash",
|
397
331
|
"default": "N/A",
|
398
|
-
"description": "
|
332
|
+
"description": "The arguments accepted by [ActionMenu::PrimaryMenu](/components/alpha/actionmenuprimarymenu)."
|
399
333
|
}
|
400
334
|
]
|
401
335
|
},
|
@@ -484,7 +418,7 @@
|
|
484
418
|
"name": "system_arguments",
|
485
419
|
"type": "Hash",
|
486
420
|
"default": "N/A",
|
487
|
-
"description": "The arguments accepted by [
|
421
|
+
"description": "The arguments accepted by [ActionMenu::ListWrapper](/components/alpha/actionmenulistwrapper)"
|
488
422
|
}
|
489
423
|
]
|
490
424
|
},
|
@@ -510,6 +444,171 @@
|
|
510
444
|
}
|
511
445
|
]
|
512
446
|
},
|
447
|
+
{
|
448
|
+
"component": "ActionMenu::Menu",
|
449
|
+
"status": "alpha",
|
450
|
+
"a11y_reviewed": false,
|
451
|
+
"short_name": "ActionMenuMenu",
|
452
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/menu.rb",
|
453
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/menu/default/",
|
454
|
+
"parameters": [
|
455
|
+
{
|
456
|
+
"name": "anchor_align",
|
457
|
+
"type": "Symbol",
|
458
|
+
"default": "N/A",
|
459
|
+
"description": "One of `:center`, `:end`, or `:start`."
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"name": "anchor_side",
|
463
|
+
"type": "Symbol",
|
464
|
+
"default": "N/A",
|
465
|
+
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
|
466
|
+
},
|
467
|
+
{
|
468
|
+
"name": "menu_id",
|
469
|
+
"type": "String",
|
470
|
+
"default": "`self.class.generate_id`",
|
471
|
+
"description": "Id of the menu."
|
472
|
+
},
|
473
|
+
{
|
474
|
+
"name": "size",
|
475
|
+
"type": "Symbol",
|
476
|
+
"default": "`:auto`",
|
477
|
+
"description": "One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`."
|
478
|
+
},
|
479
|
+
{
|
480
|
+
"name": "src",
|
481
|
+
"type": "String",
|
482
|
+
"default": "`nil`",
|
483
|
+
"description": "Used with an `include-fragment` element to load menu content from the given source URL."
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"name": "preload",
|
487
|
+
"type": "Boolean",
|
488
|
+
"default": "`false`",
|
489
|
+
"description": "When true, and src is present, loads the `include-fragment` on trigger hover."
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"name": "select_variant",
|
493
|
+
"type": "Symbol",
|
494
|
+
"default": "`:none`",
|
495
|
+
"description": "One of `:multiple`, `:none`, or `:single`."
|
496
|
+
},
|
497
|
+
{
|
498
|
+
"name": "form_arguments",
|
499
|
+
"type": "Hash",
|
500
|
+
"default": "`{}`",
|
501
|
+
"description": "Allows an `ActionMenu` to act as a select list in multi- and single-select modes. Pass the `builder:` and `name:` options to this hash. `builder:` should be an instance of `ActionView::Helpers::FormBuilder`, which are created by the standard Rails `#form_with` and `#form_for` helpers. The `name:` option is the desired name of the field that will be included in the params sent to the server on form submission."
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"name": "overlay_arguments",
|
505
|
+
"type": "Hash",
|
506
|
+
"default": "`{}`",
|
507
|
+
"description": "Arguments to pass to the underlying [Overlay](/components/alpha/overlay)"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"name": "list_arguments",
|
511
|
+
"type": "Hash",
|
512
|
+
"default": "`{}`",
|
513
|
+
"description": "Arguments to pass to the underlying [ActionMenu::List](/components/alpha/actionmenulist)"
|
514
|
+
},
|
515
|
+
{
|
516
|
+
"name": "system_arguments",
|
517
|
+
"type": "Hash",
|
518
|
+
"default": "N/A",
|
519
|
+
"description": "[System arguments](/system-arguments)."
|
520
|
+
}
|
521
|
+
]
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"component": "ActionMenu::PrimaryMenu",
|
525
|
+
"status": "alpha",
|
526
|
+
"a11y_reviewed": false,
|
527
|
+
"short_name": "ActionMenuPrimaryMenu",
|
528
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/primary_menu.rb",
|
529
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/primary_menu/default/",
|
530
|
+
"parameters": [
|
531
|
+
{
|
532
|
+
"name": "anchor_align",
|
533
|
+
"type": "Symbol",
|
534
|
+
"default": "`:start`",
|
535
|
+
"description": "One of `:center`, `:end`, or `:start`."
|
536
|
+
},
|
537
|
+
{
|
538
|
+
"name": "anchor_side",
|
539
|
+
"type": "Symbol",
|
540
|
+
"default": "`:outside_bottom`",
|
541
|
+
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"name": "dynamic_label",
|
545
|
+
"type": "Boolean",
|
546
|
+
"default": "`false`",
|
547
|
+
"description": "Whether or not to display the text of the currently selected item in the show button."
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"name": "dynamic_label_prefix",
|
551
|
+
"type": "String",
|
552
|
+
"default": "`nil`",
|
553
|
+
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"name": "system_arguments",
|
557
|
+
"type": "Hash",
|
558
|
+
"default": "N/A",
|
559
|
+
"description": "[System arguments](/system-arguments)."
|
560
|
+
}
|
561
|
+
]
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"component": "ActionMenu::SubMenu",
|
565
|
+
"status": "alpha",
|
566
|
+
"a11y_reviewed": false,
|
567
|
+
"short_name": "ActionMenuSubMenu",
|
568
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/sub_menu.rb",
|
569
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/sub_menu/default/",
|
570
|
+
"parameters": [
|
571
|
+
{
|
572
|
+
"name": "menu_id",
|
573
|
+
"type": "String",
|
574
|
+
"default": "`self.class.generate_id`",
|
575
|
+
"description": "Id of the menu."
|
576
|
+
},
|
577
|
+
{
|
578
|
+
"name": "anchor_align",
|
579
|
+
"type": "Symbol",
|
580
|
+
"default": "`:start`",
|
581
|
+
"description": "One of `:center`, `:end`, or `:start`."
|
582
|
+
},
|
583
|
+
{
|
584
|
+
"name": "anchor_side",
|
585
|
+
"type": "Symbol",
|
586
|
+
"default": "`:outside_right`",
|
587
|
+
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
|
588
|
+
},
|
589
|
+
{
|
590
|
+
"name": "overlay_arguments",
|
591
|
+
"type": "Hash",
|
592
|
+
"default": "`{}`",
|
593
|
+
"description": "Arguments to pass to the underlying [Overlay](/components/alpha/overlay)"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"name": "system_arguments",
|
597
|
+
"type": "Hash",
|
598
|
+
"default": "N/A",
|
599
|
+
"description": "[System arguments](/system-arguments)."
|
600
|
+
}
|
601
|
+
]
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"component": "ActionMenu::SubMenuItem",
|
605
|
+
"status": "alpha",
|
606
|
+
"a11y_reviewed": false,
|
607
|
+
"short_name": "ActionMenuSubMenuItem",
|
608
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/sub_menu_item.rb",
|
609
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/sub_menu_item/default/",
|
610
|
+
"parameters": []
|
611
|
+
},
|
513
612
|
{
|
514
613
|
"component": "AutoComplete",
|
515
614
|
"status": "deprecated",
|
package/static/audited_at.json
CHANGED
@@ -12,6 +12,10 @@
|
|
12
12
|
"Primer::Alpha::ActionMenu::Heading": "",
|
13
13
|
"Primer::Alpha::ActionMenu::List": "",
|
14
14
|
"Primer::Alpha::ActionMenu::ListWrapper": "2023-07-10",
|
15
|
+
"Primer::Alpha::ActionMenu::Menu": "",
|
16
|
+
"Primer::Alpha::ActionMenu::PrimaryMenu": "",
|
17
|
+
"Primer::Alpha::ActionMenu::SubMenu": "",
|
18
|
+
"Primer::Alpha::ActionMenu::SubMenuItem": "",
|
15
19
|
"Primer::Alpha::AutoComplete": "",
|
16
20
|
"Primer::Alpha::AutoComplete::Item": "",
|
17
21
|
"Primer::Alpha::Banner": "",
|
package/static/constants.json
CHANGED
@@ -152,18 +152,15 @@
|
|
152
152
|
]
|
153
153
|
},
|
154
154
|
"Primer::Alpha::ActionMenu": {
|
155
|
-
"DEFAULT_PRELOAD": false,
|
156
|
-
"DEFAULT_SELECT_VARIANT": "none",
|
157
155
|
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::GeneratedSlotMethods",
|
158
156
|
"Group": "Primer::Alpha::ActionMenu::Group",
|
159
157
|
"Heading": "Primer::Alpha::ActionMenu::Heading",
|
160
158
|
"List": "Primer::Alpha::ActionMenu::List",
|
161
159
|
"ListWrapper": "Primer::Alpha::ActionMenu::ListWrapper",
|
162
|
-
"
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
]
|
160
|
+
"Menu": "Primer::Alpha::ActionMenu::Menu",
|
161
|
+
"PrimaryMenu": "Primer::Alpha::ActionMenu::PrimaryMenu",
|
162
|
+
"SubMenu": "Primer::Alpha::ActionMenu::SubMenu",
|
163
|
+
"SubMenuItem": "Primer::Alpha::ActionMenu::SubMenuItem"
|
167
164
|
},
|
168
165
|
"Primer::Alpha::ActionMenu::Group": {
|
169
166
|
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::Group::GeneratedSlotMethods"
|
@@ -183,6 +180,29 @@
|
|
183
180
|
"Primer::Alpha::ActionMenu::ListWrapper": {
|
184
181
|
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::ListWrapper::GeneratedSlotMethods"
|
185
182
|
},
|
183
|
+
"Primer::Alpha::ActionMenu::Menu": {
|
184
|
+
"DEFAULT_PRELOAD": false,
|
185
|
+
"DEFAULT_SELECT_VARIANT": "none",
|
186
|
+
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::Menu::GeneratedSlotMethods",
|
187
|
+
"SELECT_VARIANT_OPTIONS": [
|
188
|
+
"single",
|
189
|
+
"multiple",
|
190
|
+
"none"
|
191
|
+
]
|
192
|
+
},
|
193
|
+
"Primer::Alpha::ActionMenu::PrimaryMenu": {
|
194
|
+
"DEFAULT_ANCHOR_ALIGN": "start",
|
195
|
+
"DEFAULT_ANCHOR_SIDE": "outside_bottom",
|
196
|
+
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::PrimaryMenu::GeneratedSlotMethods"
|
197
|
+
},
|
198
|
+
"Primer::Alpha::ActionMenu::SubMenu": {
|
199
|
+
"DEFAULT_ANCHOR_ALIGN": "start",
|
200
|
+
"DEFAULT_ANCHOR_SIDE": "outside_right",
|
201
|
+
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::SubMenu::GeneratedSlotMethods"
|
202
|
+
},
|
203
|
+
"Primer::Alpha::ActionMenu::SubMenuItem": {
|
204
|
+
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::SubMenuItem::GeneratedSlotMethods"
|
205
|
+
},
|
186
206
|
"Primer::Alpha::AutoComplete": {
|
187
207
|
"GeneratedSlotMethods": "Primer::Alpha::AutoComplete::GeneratedSlotMethods",
|
188
208
|
"Item": "Primer::Alpha::AutoComplete::Item"
|