@primer/view-components 0.24.0-rc.7481c9ae → 0.24.0-rc.7fa3de6f

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- anchored-position[popover]{border-width:0;min-width:192px;overflow:visible;padding:0;position:absolute}anchored-position:not(.Overlay){background:none}.Overlay[popover]:not(:popover-open){display:none}anchored-position.not-anchored::backdrop,dialog::backdrop{background-color:var(--overlay-backdrop-bgColor,var(--color-neutral-muted))}@media (forced-colors:active){.Overlay{outline:1px solid #0000}}.Overlay-tabPanels{display:flex;flex-direction:column;overflow-y:hidden}.Overlay-tabPanels::part(tablist-wrapper){margin:var(--base-size-8) 0;padding:0 var(--base-size-8)}.Overlay-tabPanel{display:flex;overflow:hidden}
1
+ anchored-position[popover]{border-width:0;min-width:192px;overflow:visible;padding:0;position:absolute}anchored-position:not(.Overlay){background:none}.Overlay[popover]:not(:popover-open){display:none}anchored-position.not-anchored::backdrop,dialog::backdrop{background-color:var(--overlay-backdrop-bgColor,var(--color-neutral-muted))}@media (forced-colors:active){.Overlay{outline:1px solid #0000}}
@@ -6,9 +6,6 @@
6
6
  ".Overlay[popover]:not(:popover-open)",
7
7
  "anchored-position.not-anchored::backdrop",
8
8
  "dialog::backdrop",
9
- ".Overlay",
10
- ".Overlay-tabPanels",
11
- ".Overlay-tabPanels::part(tablist-wrapper)",
12
- ".Overlay-tabPanel"
9
+ ".Overlay"
13
10
  ]
14
11
  }
@@ -23,6 +23,8 @@ const updateWhenVisible = (() => {
23
23
  return (el) => {
24
24
  // eslint-disable-next-line github/prefer-observers
25
25
  window.addEventListener('resize', updateVisibleAnchors);
26
+ // eslint-disable-next-line github/prefer-observers
27
+ window.addEventListener('scroll', updateVisibleAnchors);
26
28
  intersectionObserver || (intersectionObserver = new IntersectionObserver(entries => {
27
29
  for (const entry of entries) {
28
30
  const target = entry.target;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.24.0-rc.7481c9ae",
3
+ "version": "0.24.0-rc.7fa3de6f",
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",
@@ -1866,12 +1866,6 @@
1866
1866
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/overlay/body.rb",
1867
1867
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/overlay/body/default/",
1868
1868
  "parameters": [
1869
- {
1870
- "name": "tab_arguments",
1871
- "type": "Hash",
1872
- "default": "`{}`",
1873
- "description": "Arguments passed to TabPanels component"
1874
- },
1875
1869
  {
1876
1870
  "name": "system_arguments",
1877
1871
  "type": "Hash",
@@ -408,12 +408,6 @@
408
408
  "Overlay-headerFilter": [
409
409
  "Primer::Alpha::Dialog"
410
410
  ],
411
- "Overlay-tabPanel": [
412
- "Primer::Alpha::Overlay"
413
- ],
414
- "Overlay-tabPanels": [
415
- "Primer::Alpha::Overlay"
416
- ],
417
411
  "Popover": [
418
412
  "Primer::Beta::Popover"
419
413
  ],
@@ -2514,7 +2514,7 @@
2514
2514
  {
2515
2515
  "fully_qualified_name": "Primer::Alpha::ButtonMarketing",
2516
2516
  "description": "Use `ButtonMarketing` for actions (e.g. in forms). Use links for destinations, or moving from one page to another.",
2517
- "accessibility_docs": null,
2517
+ "accessibility_docs": "Setting the tag argument to `:a` requires you to pass in an `href` attribute.",
2518
2518
  "is_form_component": false,
2519
2519
  "is_published": true,
2520
2520
  "requires_js": false,
@@ -2595,6 +2595,19 @@
2595
2595
  ]
2596
2596
  }
2597
2597
  },
2598
+ {
2599
+ "preview_path": "primer/alpha/button_marketing/link_as_button",
2600
+ "name": "link_as_button",
2601
+ "snapshot": "false",
2602
+ "skip_rules": {
2603
+ "wont_fix": [
2604
+ "region"
2605
+ ],
2606
+ "will_fix": [
2607
+ "color-contrast"
2608
+ ]
2609
+ }
2610
+ },
2598
2611
  {
2599
2612
  "preview_path": "primer/alpha/button_marketing/sizes_default",
2600
2613
  "name": "sizes_default",
@@ -3453,6 +3466,19 @@
3453
3466
  "color-contrast"
3454
3467
  ]
3455
3468
  }
3469
+ },
3470
+ {
3471
+ "preview_path": "primer/alpha/dialog/with_header_filter",
3472
+ "name": "with_header_filter",
3473
+ "snapshot": "false",
3474
+ "skip_rules": {
3475
+ "wont_fix": [
3476
+ "region"
3477
+ ],
3478
+ "will_fix": [
3479
+ "color-contrast"
3480
+ ]
3481
+ }
3456
3482
  }
3457
3483
  ],
3458
3484
  "subcomponents": [
@@ -3514,7 +3540,30 @@
3514
3540
  }
3515
3541
  ],
3516
3542
  "slots": [
3517
-
3543
+ {
3544
+ "name": "filter",
3545
+ "description": "Optional filter slot for adding a filter input to the header.",
3546
+ "parameters": [
3547
+ {
3548
+ "name": "system_arguments",
3549
+ "type": "Hash",
3550
+ "default": "N/A",
3551
+ "description": "{{link_to_system_arguments_docs}}"
3552
+ }
3553
+ ]
3554
+ },
3555
+ {
3556
+ "name": "subtitle",
3557
+ "description": "Optional subtitle slot for adding a subtitle to the header.",
3558
+ "parameters": [
3559
+ {
3560
+ "name": "system_arguments",
3561
+ "type": "Hash",
3562
+ "default": "N/A",
3563
+ "description": "{{link_to_system_arguments_docs}}"
3564
+ }
3565
+ ]
3566
+ }
3518
3567
  ],
3519
3568
  "methods": [
3520
3569
 
@@ -5951,8 +6000,8 @@
5951
6000
  ]
5952
6001
  },
5953
6002
  {
5954
- "name": "bodies",
5955
- "description": "Required body content.\nwhen multiple bodies are passed, they will be rendered in a TabPanels component.",
6003
+ "name": "body",
6004
+ "description": "Required body content.",
5956
6005
  "parameters": [
5957
6006
  {
5958
6007
  "name": "padding",
@@ -6096,8 +6145,21 @@
6096
6145
  }
6097
6146
  },
6098
6147
  {
6099
- "preview_path": "primer/alpha/overlay/overlay_with_three_bodies",
6100
- "name": "overlay_with_three_bodies",
6148
+ "preview_path": "primer/alpha/overlay/overlay_with_header_subtitle",
6149
+ "name": "overlay_with_header_subtitle",
6150
+ "snapshot": "false",
6151
+ "skip_rules": {
6152
+ "wont_fix": [
6153
+ "region"
6154
+ ],
6155
+ "will_fix": [
6156
+ "color-contrast"
6157
+ ]
6158
+ }
6159
+ },
6160
+ {
6161
+ "preview_path": "primer/alpha/overlay/in_a_sticky_container",
6162
+ "name": "in_a_sticky_container",
6101
6163
  "snapshot": "false",
6102
6164
  "skip_rules": {
6103
6165
  "wont_fix": [
@@ -6179,6 +6241,18 @@
6179
6241
  "description": "{{link_to_system_arguments_docs}}"
6180
6242
  }
6181
6243
  ]
6244
+ },
6245
+ {
6246
+ "name": "subtitle",
6247
+ "description": "Optional subtitle slot for adding a subtitle to the header.",
6248
+ "parameters": [
6249
+ {
6250
+ "name": "system_arguments",
6251
+ "type": "Hash",
6252
+ "default": "N/A",
6253
+ "description": "{{link_to_system_arguments_docs}}"
6254
+ }
6255
+ ]
6182
6256
  }
6183
6257
  ],
6184
6258
  "methods": [
@@ -6251,12 +6325,6 @@
6251
6325
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/overlay/body.rb",
6252
6326
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/overlay/body/default/",
6253
6327
  "parameters": [
6254
- {
6255
- "name": "tab_arguments",
6256
- "type": "Hash",
6257
- "default": "`{}`",
6258
- "description": "Arguments passed to TabPanels component"
6259
- },
6260
6328
  {
6261
6329
  "name": "system_arguments",
6262
6330
  "type": "Hash",
@@ -6268,20 +6336,7 @@
6268
6336
 
6269
6337
  ],
6270
6338
  "methods": [
6271
- {
6272
- "name": "tab_arguments",
6273
- "description": "Returns the value of attribute tab_arguments.",
6274
- "parameters": [
6275
-
6276
- ]
6277
- },
6278
- {
6279
- "name": "tab_label",
6280
- "description": "Returns the value of attribute tab_label.",
6281
- "parameters": [
6282
6339
 
6283
- ]
6284
- }
6285
6340
  ],
6286
6341
  "previews": [
6287
6342
 
@@ -10928,7 +10983,7 @@
10928
10983
  {
10929
10984
  "fully_qualified_name": "Primer::Beta::Button",
10930
10985
  "description": "Use `Button` for actions (e.g. in forms). Use links for destinations, or moving from one page to another.",
10931
- "accessibility_docs": null,
10986
+ "accessibility_docs": "Additional markup is required if setting the `tag` argument to either `:a` or `:summary`.\n\n* `:a` requires you to pass in an `href` attribute\n* `:summary` requires you to wrap the component in a `<details>` element",
10932
10987
  "is_form_component": false,
10933
10988
  "is_published": true,
10934
10989
  "requires_js": false,
@@ -11203,6 +11258,19 @@
11203
11258
  ]
11204
11259
  }
11205
11260
  },
11261
+ {
11262
+ "preview_path": "primer/beta/button/summary_as_button",
11263
+ "name": "summary_as_button",
11264
+ "snapshot": "true",
11265
+ "skip_rules": {
11266
+ "wont_fix": [
11267
+ "region"
11268
+ ],
11269
+ "will_fix": [
11270
+ "color-contrast"
11271
+ ]
11272
+ }
11273
+ },
11206
11274
  {
11207
11275
  "preview_path": "primer/beta/button/trailing_visual",
11208
11276
  "name": "trailing_visual",
@@ -11465,8 +11533,8 @@
11465
11533
  }
11466
11534
  },
11467
11535
  {
11468
- "preview_path": "primer/beta/button_group/all_tags",
11469
- "name": "all_tags",
11536
+ "preview_path": "primer/beta/button_group/multiple_tags",
11537
+ "name": "multiple_tags",
11470
11538
  "snapshot": "true",
11471
11539
  "skip_rules": {
11472
11540
  "wont_fix": [
@@ -2163,6 +2163,19 @@
2163
2163
  ]
2164
2164
  }
2165
2165
  },
2166
+ {
2167
+ "preview_path": "primer/beta/button/summary_as_button",
2168
+ "name": "summary_as_button",
2169
+ "snapshot": "true",
2170
+ "skip_rules": {
2171
+ "wont_fix": [
2172
+ "region"
2173
+ ],
2174
+ "will_fix": [
2175
+ "color-contrast"
2176
+ ]
2177
+ }
2178
+ },
2166
2179
  {
2167
2180
  "preview_path": "primer/beta/button/trailing_visual",
2168
2181
  "name": "trailing_visual",
@@ -2341,8 +2354,8 @@
2341
2354
  }
2342
2355
  },
2343
2356
  {
2344
- "preview_path": "primer/beta/button_group/all_tags",
2345
- "name": "all_tags",
2357
+ "preview_path": "primer/beta/button_group/multiple_tags",
2358
+ "name": "multiple_tags",
2346
2359
  "snapshot": "true",
2347
2360
  "skip_rules": {
2348
2361
  "wont_fix": [
@@ -2400,6 +2413,19 @@
2400
2413
  ]
2401
2414
  }
2402
2415
  },
2416
+ {
2417
+ "preview_path": "primer/alpha/button_marketing/link_as_button",
2418
+ "name": "link_as_button",
2419
+ "snapshot": "false",
2420
+ "skip_rules": {
2421
+ "wont_fix": [
2422
+ "region"
2423
+ ],
2424
+ "will_fix": [
2425
+ "color-contrast"
2426
+ ]
2427
+ }
2428
+ },
2403
2429
  {
2404
2430
  "preview_path": "primer/alpha/button_marketing/sizes_default",
2405
2431
  "name": "sizes_default",
@@ -3256,6 +3282,19 @@
3256
3282
  "color-contrast"
3257
3283
  ]
3258
3284
  }
3285
+ },
3286
+ {
3287
+ "preview_path": "primer/alpha/dialog/with_header_filter",
3288
+ "name": "with_header_filter",
3289
+ "snapshot": "false",
3290
+ "skip_rules": {
3291
+ "wont_fix": [
3292
+ "region"
3293
+ ],
3294
+ "will_fix": [
3295
+ "color-contrast"
3296
+ ]
3297
+ }
3259
3298
  }
3260
3299
  ]
3261
3300
  },
@@ -4928,8 +4967,21 @@
4928
4967
  }
4929
4968
  },
4930
4969
  {
4931
- "preview_path": "primer/alpha/overlay/overlay_with_three_bodies",
4932
- "name": "overlay_with_three_bodies",
4970
+ "preview_path": "primer/alpha/overlay/overlay_with_header_subtitle",
4971
+ "name": "overlay_with_header_subtitle",
4972
+ "snapshot": "false",
4973
+ "skip_rules": {
4974
+ "wont_fix": [
4975
+ "region"
4976
+ ],
4977
+ "will_fix": [
4978
+ "color-contrast"
4979
+ ]
4980
+ }
4981
+ },
4982
+ {
4983
+ "preview_path": "primer/alpha/overlay/in_a_sticky_container",
4984
+ "name": "in_a_sticky_container",
4933
4985
  "snapshot": "false",
4934
4986
  "skip_rules": {
4935
4987
  "wont_fix": [