@primer/view-components 0.23.0 → 0.24.0-rc.a7b4d45c

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}}
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>.tabnav{margin:var(--base-size-8) 0;padding:0 var(--base-size-8)}.Overlay-tabPanel{display:flex;overflow:hidden}
@@ -6,6 +6,9 @@
6
6
  ".Overlay[popover]:not(:popover-open)",
7
7
  "anchored-position.not-anchored::backdrop",
8
8
  "dialog::backdrop",
9
- ".Overlay"
9
+ ".Overlay",
10
+ ".Overlay-tabPanels",
11
+ ".Overlay-tabPanels>.tabnav",
12
+ ".Overlay-tabPanel"
10
13
  ]
11
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.23.0",
3
+ "version": "0.24.0-rc.a7b4d45c",
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,6 +1866,12 @@
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
+ },
1869
1875
  {
1870
1876
  "name": "system_arguments",
1871
1877
  "type": "Hash",
@@ -408,6 +408,12 @@
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
+ ],
411
417
  "Popover": [
412
418
  "Primer::Beta::Popover"
413
419
  ],
@@ -5951,8 +5951,8 @@
5951
5951
  ]
5952
5952
  },
5953
5953
  {
5954
- "name": "body",
5955
- "description": "Required body content.",
5954
+ "name": "bodies",
5955
+ "description": "Required body content.\nwhen multiple bodies are passed, they will be rendered in a TabPanels component.",
5956
5956
  "parameters": [
5957
5957
  {
5958
5958
  "name": "padding",
@@ -6094,6 +6094,19 @@
6094
6094
  "color-contrast"
6095
6095
  ]
6096
6096
  }
6097
+ },
6098
+ {
6099
+ "preview_path": "primer/alpha/overlay/overlay_with_three_bodies",
6100
+ "name": "overlay_with_three_bodies",
6101
+ "snapshot": "false",
6102
+ "skip_rules": {
6103
+ "wont_fix": [
6104
+ "region"
6105
+ ],
6106
+ "will_fix": [
6107
+ "color-contrast"
6108
+ ]
6109
+ }
6097
6110
  }
6098
6111
  ],
6099
6112
  "subcomponents": [
@@ -6238,6 +6251,12 @@
6238
6251
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/overlay/body.rb",
6239
6252
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/overlay/body/default/",
6240
6253
  "parameters": [
6254
+ {
6255
+ "name": "tab_arguments",
6256
+ "type": "Hash",
6257
+ "default": "`{}`",
6258
+ "description": "Arguments passed to TabPanels component"
6259
+ },
6241
6260
  {
6242
6261
  "name": "system_arguments",
6243
6262
  "type": "Hash",
@@ -6249,7 +6268,20 @@
6249
6268
 
6250
6269
  ],
6251
6270
  "methods": [
6271
+ {
6272
+ "name": "tab_arguments",
6273
+ "description": "Returns the value of attribute tab_arguments.",
6274
+ "parameters": [
6252
6275
 
6276
+ ]
6277
+ },
6278
+ {
6279
+ "name": "tab_label",
6280
+ "description": "Returns the value of attribute tab_label.",
6281
+ "parameters": [
6282
+
6283
+ ]
6284
+ }
6253
6285
  ],
6254
6286
  "previews": [
6255
6287
 
@@ -4926,6 +4926,19 @@
4926
4926
  "color-contrast"
4927
4927
  ]
4928
4928
  }
4929
+ },
4930
+ {
4931
+ "preview_path": "primer/alpha/overlay/overlay_with_three_bodies",
4932
+ "name": "overlay_with_three_bodies",
4933
+ "snapshot": "false",
4934
+ "skip_rules": {
4935
+ "wont_fix": [
4936
+ "region"
4937
+ ],
4938
+ "will_fix": [
4939
+ "color-contrast"
4940
+ ]
4941
+ }
4929
4942
  }
4930
4943
  ]
4931
4944
  },