primer_view_components 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/app/assets/styles/primer_view_components.css +1 -1
  4. data/app/assets/styles/primer_view_components.css.map +1 -1
  5. data/app/components/primer/alpha/action_list.css +1 -1
  6. data/app/components/primer/alpha/action_list.css.map +1 -1
  7. data/app/components/primer/alpha/action_list.pcss +42 -42
  8. data/app/components/primer/alpha/auto_complete.css +1 -1
  9. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  10. data/app/components/primer/alpha/auto_complete.pcss +10 -10
  11. data/app/components/primer/alpha/banner.css +1 -1
  12. data/app/components/primer/alpha/banner.css.map +1 -1
  13. data/app/components/primer/alpha/banner.pcss +16 -16
  14. data/app/components/primer/alpha/button_marketing.css +1 -1
  15. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  16. data/app/components/primer/alpha/button_marketing.pcss +9 -9
  17. data/app/components/primer/alpha/dialog.css +1 -1
  18. data/app/components/primer/alpha/dialog.css.map +1 -1
  19. data/app/components/primer/alpha/dialog.pcss +9 -9
  20. data/app/components/primer/alpha/dropdown.css +1 -1
  21. data/app/components/primer/alpha/dropdown.css.map +1 -1
  22. data/app/components/primer/alpha/dropdown.pcss +16 -16
  23. data/app/components/primer/alpha/layout.css +1 -1
  24. data/app/components/primer/alpha/layout.css.map +1 -1
  25. data/app/components/primer/alpha/layout.pcss +3 -3
  26. data/app/components/primer/alpha/menu.css +1 -1
  27. data/app/components/primer/alpha/menu.css.map +1 -1
  28. data/app/components/primer/alpha/menu.pcss +13 -13
  29. data/app/components/primer/alpha/segmented_control.css +1 -1
  30. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  31. data/app/components/primer/alpha/segmented_control.pcss +6 -6
  32. data/app/components/primer/alpha/tab_nav.css +1 -1
  33. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  34. data/app/components/primer/alpha/tab_nav.pcss +10 -10
  35. data/app/components/primer/alpha/text_field.css +1 -1
  36. data/app/components/primer/alpha/text_field.css.map +1 -1
  37. data/app/components/primer/alpha/text_field.pcss +38 -38
  38. data/app/components/primer/alpha/toggle_switch.css +1 -1
  39. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  40. data/app/components/primer/alpha/toggle_switch.pcss +23 -23
  41. data/app/components/primer/alpha/underline_nav.css +1 -1
  42. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  43. data/app/components/primer/alpha/underline_nav.pcss +15 -15
  44. data/app/components/primer/beta/avatar.css +1 -1
  45. data/app/components/primer/beta/avatar.css.map +1 -1
  46. data/app/components/primer/beta/avatar.pcss +2 -2
  47. data/app/components/primer/beta/avatar_stack.css +1 -1
  48. data/app/components/primer/beta/avatar_stack.css.map +1 -1
  49. data/app/components/primer/beta/avatar_stack.pcss +10 -10
  50. data/app/components/primer/beta/blankslate.css +1 -1
  51. data/app/components/primer/beta/blankslate.css.map +1 -1
  52. data/app/components/primer/beta/blankslate.pcss +4 -4
  53. data/app/components/primer/beta/border_box.css +1 -1
  54. data/app/components/primer/beta/border_box.css.map +1 -1
  55. data/app/components/primer/beta/border_box.pcss +31 -31
  56. data/app/components/primer/beta/breadcrumbs.css +1 -1
  57. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  58. data/app/components/primer/beta/breadcrumbs.pcss +2 -2
  59. data/app/components/primer/beta/button.css +1 -1
  60. data/app/components/primer/beta/button.css.map +1 -1
  61. data/app/components/primer/beta/button.pcss +70 -70
  62. data/app/components/primer/beta/counter.css +1 -1
  63. data/app/components/primer/beta/counter.css.map +1 -1
  64. data/app/components/primer/beta/counter.pcss +7 -7
  65. data/app/components/primer/beta/flash.css +1 -1
  66. data/app/components/primer/beta/flash.css.map +1 -1
  67. data/app/components/primer/beta/flash.pcss +19 -19
  68. data/app/components/primer/beta/label.css +1 -1
  69. data/app/components/primer/beta/label.css.map +1 -1
  70. data/app/components/primer/beta/label.pcss +23 -23
  71. data/app/components/primer/beta/link.css +1 -1
  72. data/app/components/primer/beta/link.css.map +1 -1
  73. data/app/components/primer/beta/link.pcss +8 -8
  74. data/app/components/primer/beta/popover.css +1 -1
  75. data/app/components/primer/beta/popover.css.map +1 -1
  76. data/app/components/primer/beta/popover.pcss +10 -10
  77. data/app/components/primer/beta/progress_bar.css +1 -1
  78. data/app/components/primer/beta/progress_bar.css.map +1 -1
  79. data/app/components/primer/beta/progress_bar.pcss +1 -1
  80. data/app/components/primer/beta/state.css +1 -1
  81. data/app/components/primer/beta/state.css.map +1 -1
  82. data/app/components/primer/beta/state.pcss +8 -8
  83. data/app/components/primer/beta/subhead.css +1 -1
  84. data/app/components/primer/beta/subhead.css.map +1 -1
  85. data/app/components/primer/beta/subhead.pcss +3 -3
  86. data/app/components/primer/beta/timeline_item.css +1 -1
  87. data/app/components/primer/beta/timeline_item.css.map +1 -1
  88. data/app/components/primer/beta/timeline_item.pcss +13 -13
  89. data/lib/postcss_mixins/activeIndicatorLine.pcss +1 -1
  90. data/lib/postcss_mixins/focusBoxShadowInset.pcss +2 -2
  91. data/lib/postcss_mixins/focusOutline.pcss +1 -1
  92. data/lib/postcss_mixins/focusOutlineOnEmphasis.pcss +2 -2
  93. data/lib/postcss_mixins/targetBoxShadow.pcss +1 -2
  94. data/lib/primer/view_components/version.rb +1 -1
  95. data/static/arguments.json +80 -4
  96. data/static/audited_at.json +1 -0
  97. data/static/constants.json +3 -0
  98. data/static/info_arch.json +221 -41
  99. data/static/previews.json +48 -0
  100. data/static/statuses.json +1 -0
  101. metadata +2 -2
@@ -382,12 +382,15 @@
382
382
  "Primer::Alpha::NavList": {
383
383
  "Divider": "Primer::Alpha::NavList::Divider",
384
384
  "Group": "Primer::Alpha::NavList::Group",
385
+ "Heading": "Primer::Alpha::NavList::Heading",
385
386
  "Item": "Primer::Alpha::NavList::Item"
386
387
  },
387
388
  "Primer::Alpha::NavList::Divider": {
388
389
  },
389
390
  "Primer::Alpha::NavList::Group": {
390
391
  },
392
+ "Primer::Alpha::NavList::Heading": {
393
+ },
391
394
  "Primer::Alpha::NavList::Item": {
392
395
  },
393
396
  "Primer::Alpha::Navigation::Tab": {
@@ -76,7 +76,16 @@
76
76
  },
77
77
  {
78
78
  "name": "items",
79
- "description": "Items.",
79
+ "description": "Items. Items can be individual items or dividers. See the documentation for `#with_item` and `#with_divider` respectively for more information.",
80
+ "parameters": [
81
+
82
+ ]
83
+ }
84
+ ],
85
+ "methods": [
86
+ {
87
+ "name": "with_item",
88
+ "description": "Adds an item to the list.",
80
89
  "parameters": [
81
90
  {
82
91
  "name": "system_arguments",
@@ -85,12 +94,10 @@
85
94
  "description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
86
95
  }
87
96
  ]
88
- }
89
- ],
90
- "methods": [
97
+ },
91
98
  {
92
99
  "name": "with_divider",
93
- "description": "Adds a divider to the list of items.",
100
+ "description": "Adds a divider to the list. Dividers visually separate items.",
94
101
  "parameters": [
95
102
  {
96
103
  "name": "system_arguments",
@@ -1216,6 +1223,18 @@
1216
1223
  "color-contrast"
1217
1224
  ]
1218
1225
  }
1226
+ },
1227
+ {
1228
+ "preview_path": "primer/alpha/action_menu/two_menus",
1229
+ "name": "two_menus",
1230
+ "skip_rules": {
1231
+ "wont_fix": [
1232
+ "region"
1233
+ ],
1234
+ "will_fix": [
1235
+ "color-contrast"
1236
+ ]
1237
+ }
1219
1238
  }
1220
1239
  ],
1221
1240
  "subcomponents": [
@@ -1260,14 +1279,9 @@
1260
1279
  },
1261
1280
  {
1262
1281
  "name": "items",
1263
- "description": "Items.",
1282
+ "description": "Items. Items can be individual items or dividers. See the documentation for `#with_item` and `#with_divider` respectively for more information.",
1264
1283
  "parameters": [
1265
- {
1266
- "name": "system_arguments",
1267
- "type": "Hash",
1268
- "default": "N/A",
1269
- "description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
1270
- }
1284
+
1271
1285
  ]
1272
1286
  }
1273
1287
  ],
@@ -1791,6 +1805,12 @@
1791
1805
  "default": "`:button`",
1792
1806
  "description": "One of `:button` or `:submit`."
1793
1807
  },
1808
+ {
1809
+ "name": "disabled",
1810
+ "type": "Boolean",
1811
+ "default": "`false`",
1812
+ "description": "Whether or not the button is disabled. If true, this option forces `tag:` to `:button`."
1813
+ },
1794
1814
  {
1795
1815
  "name": "system_arguments",
1796
1816
  "type": "Hash",
@@ -3264,6 +3284,12 @@
3264
3284
  "default": "`false`",
3265
3285
  "description": "Whether or not the button is inline."
3266
3286
  },
3287
+ {
3288
+ "name": "disabled",
3289
+ "type": "Boolean",
3290
+ "default": "`false`",
3291
+ "description": "Whether or not the button is disabled."
3292
+ },
3267
3293
  {
3268
3294
  "name": "system_arguments",
3269
3295
  "type": "Hash",
@@ -4252,28 +4278,23 @@
4252
4278
  "slots": [
4253
4279
  {
4254
4280
  "name": "heading",
4255
- "description": null,
4281
+ "description": "The heading for the list at large. Accepts the arguments accepted by {{#link_to_component}}Primer::Alpha::NavList::Heading{{/link_to_component}}.",
4256
4282
  "parameters": [
4257
4283
 
4258
4284
  ]
4259
4285
  },
4260
4286
  {
4261
4287
  "name": "items",
4262
- "description": "Items.",
4288
+ "description": "Items. Items can be individual items, dividers, or groups. See the documentation for `#with_item`, `#with_divider`, and `#with_group` respectively for more information.",
4263
4289
  "parameters": [
4264
- {
4265
- "name": "system_arguments",
4266
- "type": "Hash",
4267
- "default": "N/A",
4268
- "description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}."
4269
- }
4290
+
4270
4291
  ]
4271
4292
  }
4272
4293
  ],
4273
4294
  "methods": [
4274
4295
  {
4275
4296
  "name": "with_group",
4276
- "description": "Groups. Each group is a list of links and a (required) heading.",
4297
+ "description": "Adds a group to the list. A group is a list of links and a (required) heading.",
4277
4298
  "parameters": [
4278
4299
  {
4279
4300
  "name": "system_arguments",
@@ -4285,7 +4306,7 @@
4285
4306
  },
4286
4307
  {
4287
4308
  "name": "with_divider",
4288
- "description": "Adds a divider to the list of items.",
4309
+ "description": "Adds a divider to the list. Dividers visually separate items and groups.",
4289
4310
  "parameters": [
4290
4311
  {
4291
4312
  "name": "system_arguments",
@@ -4366,6 +4387,84 @@
4366
4387
  }
4367
4388
  ],
4368
4389
  "subcomponents": [
4390
+ {
4391
+ "fully_qualified_name": "Primer::Alpha::NavList::Heading",
4392
+ "description": "The heading placed above a `NavList`'s items.\n\nSee {{#link_to_component}}Primer::Alpha::NavList{{/link_to_component}} for usage examples.",
4393
+ "is_form_component": false,
4394
+ "is_published": true,
4395
+ "requires_js": false,
4396
+ "component": "NavList::Heading",
4397
+ "status": "alpha",
4398
+ "a11y_reviewed": false,
4399
+ "short_name": "NavListHeading",
4400
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list/heading.rb",
4401
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/heading/default/",
4402
+ "parameters": [
4403
+ {
4404
+ "name": "title",
4405
+ "type": "String",
4406
+ "default": "N/A",
4407
+ "description": "The text content of the heading."
4408
+ },
4409
+ {
4410
+ "name": "id",
4411
+ "type": "String",
4412
+ "default": "`self.class.generate_id`",
4413
+ "description": "The value of the ID HTML attribute. Auto-generated by default."
4414
+ },
4415
+ {
4416
+ "name": "heading_level",
4417
+ "type": "Integer",
4418
+ "default": "`2`",
4419
+ "description": "The heading level, i.e. 2 for an `<h2>`, 3 for an `<h3>`, etc."
4420
+ },
4421
+ {
4422
+ "name": "system_arguments",
4423
+ "type": "Hash",
4424
+ "default": "N/A",
4425
+ "description": "{{link_to_system_arguments_docs}}"
4426
+ }
4427
+ ],
4428
+ "slots": [
4429
+
4430
+ ],
4431
+ "methods": [
4432
+ {
4433
+ "name": "title",
4434
+ "description": "Returns the value of attribute title.",
4435
+ "parameters": [
4436
+
4437
+ ]
4438
+ },
4439
+ {
4440
+ "name": "id",
4441
+ "description": "Returns the value of attribute id.",
4442
+ "parameters": [
4443
+
4444
+ ]
4445
+ },
4446
+ {
4447
+ "name": "heading_level",
4448
+ "description": "Returns the value of attribute heading_level.",
4449
+ "parameters": [
4450
+
4451
+ ]
4452
+ },
4453
+ {
4454
+ "name": "system_arguments",
4455
+ "description": "Returns the value of attribute system_arguments.",
4456
+ "parameters": [
4457
+
4458
+ ]
4459
+ }
4460
+ ],
4461
+ "previews": [
4462
+
4463
+ ],
4464
+ "subcomponents": [
4465
+
4466
+ ]
4467
+ },
4369
4468
  {
4370
4469
  "fully_qualified_name": "Primer::Alpha::NavList::Item",
4371
4470
  "description": "Items are rendered as styled links. They can optionally include leading and/or trailing visuals,\nsuch as icons, avatars, and counters. Items are selected by ID. IDs can be specified via the\n`selected_item_ids` argument, which accepts a list of valid IDs for the item. Items can also\nthemselves contain sub items. Sub items are rendered collapsed by default.",
@@ -5066,6 +5165,18 @@
5066
5165
  "color-contrast"
5067
5166
  ]
5068
5167
  }
5168
+ },
5169
+ {
5170
+ "preview_path": "primer/alpha/overlay/dialog_with_header_footer",
5171
+ "name": "dialog_with_header_footer",
5172
+ "skip_rules": {
5173
+ "wont_fix": [
5174
+ "region"
5175
+ ],
5176
+ "will_fix": [
5177
+ "color-contrast"
5178
+ ]
5179
+ }
5069
5180
  }
5070
5181
  ],
5071
5182
  "subcomponents": [
@@ -7370,7 +7481,7 @@
7370
7481
  },
7371
7482
  {
7372
7483
  "fully_qualified_name": "Primer::Alpha::Tooltip",
7373
- "description": "`Tooltip` only appears on mouse hover or keyboard focus and contain a label or description text. Use tooltips sparingly and as a last resort.\nUse tooltips as a last resort. Please consider [Tooltips alternatives](https://primer.style/design/accessibility/tooltip-alternatives).\n\nWhen using a tooltip, follow the provided guidelines to avoid accessibility issues:\n- Tooltips should contain only **non-essential text**. Tooltips can easily be missed and are not accessible on touch devices so never use tooltips to convey critical information.\n- `Tooltip` should be rendered through the API of {{#link_to_component}}Primer::ButtonComponent{{/link_to_component}}, {{#link_to_component}}Primer::Beta::Link{{/link_to_component}}, or {{#link_to_component}}Primer::IconButton{{/link_to_component}}. Avoid using `Tooltip` a standalone component unless absolutely necessary (and **only** on interactive elements).",
7484
+ "description": "`Tooltip` only appears on mouse hover or keyboard focus and contain a label or description text. Use tooltips sparingly and as a last resort.\nUse tooltips as a last resort. Please consider [Tooltips alternatives](https://primer.style/design/accessibility/tooltip-alternatives).\n\nWhen using a tooltip, follow the provided guidelines to avoid accessibility issues:\n- Tooltips should contain only **non-essential text**. Tooltips can easily be missed and are not accessible on touch devices so never use tooltips to convey critical information.\n- `Tooltip` should be rendered through the API of {{#link_to_component}}Primer::ButtonComponent{{/link_to_component}}, {{#link_to_component}}Primer::Beta::Link{{/link_to_component}}, or {{#link_to_component}}Primer::IconButton{{/link_to_component}}. Avoid using `Tooltip` a standalone component unless absolutely necessary (and **only** on interactive elements).\n- Tooltip text must be brief and concise even when used to display a description.\n- Tooltips can only hold string content.\n- Tooltips are not allowed on `disabled` elements because such elements are not keyboard-accessible. If you must set a tooltip on a disabled element, use `aria-disabled=\"true\"` instead and programmatically disable the element.\n- **Never set tooltips on static, non-interactive elements** like `span` or `div`. Tooltips should only be used on interactive elements like buttons or links to avoid excluding keyboard-only\nand screen reader users. Use of tooltips through {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}, {{#link_to_component}}Primer::Beta::Link{{/link_to_component}}, or {{#link_to_component}}Primer::Beta::IconButton{{/link_to_component}} will guarantee this.\n- If you must use `Tooltip` as a standalone component, place it immediately after the trigger element in the DOM. This allows screen reader users to navigate to the tooltip and copy its contents if desired.\n content.\n\nSemantically, a tooltip will either act an accessible name or an accessible description for the element that it is associated with resulting in either a\n`aria-labelledby` or an `aria-describedby` association. The `type` drastically changes semantics and screen reader behavior so follow these guidelines carefully:\n- When there is already a visible label text on the trigger element, the tooltip is likely intended be supplementary, so set `type: :description`.\nThe majority of tooltips will fall under this category.\n- When there is no visible text on the trigger element and the tooltip content is appropriate as a label for the element, set `type: :label`.\n`label` type is usually only appropriate for an icon-only control.",
7374
7485
  "is_form_component": false,
7375
7486
  "is_published": true,
7376
7487
  "requires_js": true,
@@ -8662,6 +8773,12 @@
8662
8773
  "default": "`false`",
8663
8774
  "description": "Whether button is full-width with `display: block`."
8664
8775
  },
8776
+ {
8777
+ "name": "disabled",
8778
+ "type": "Boolean",
8779
+ "default": "`false`",
8780
+ "description": "Whether or not the button is disabled. If true, this option forces `tag:` to `:button`."
8781
+ },
8665
8782
  {
8666
8783
  "name": "system_arguments",
8667
8784
  "type": "Hash",
@@ -8673,7 +8790,20 @@
8673
8790
 
8674
8791
  ],
8675
8792
  "methods": [
8793
+ {
8794
+ "name": "disabled",
8795
+ "description": "Returns the value of attribute disabled.",
8796
+ "parameters": [
8676
8797
 
8798
+ ]
8799
+ },
8800
+ {
8801
+ "name": "disabled?",
8802
+ "description": "Returns the value of attribute disabled.",
8803
+ "parameters": [
8804
+
8805
+ ]
8806
+ }
8677
8807
  ],
8678
8808
  "previews": [
8679
8809
  {
@@ -8699,6 +8829,18 @@
8699
8829
  "color-contrast"
8700
8830
  ]
8701
8831
  }
8832
+ },
8833
+ {
8834
+ "preview_path": "primer/beta/base_button/disabled",
8835
+ "name": "disabled",
8836
+ "skip_rules": {
8837
+ "wont_fix": [
8838
+ "region"
8839
+ ],
8840
+ "will_fix": [
8841
+ "color-contrast"
8842
+ ]
8843
+ }
8702
8844
  }
8703
8845
  ],
8704
8846
  "subcomponents": [
@@ -9386,6 +9528,12 @@
9386
9528
  "default": "`:button`",
9387
9529
  "description": "One of `:button`, `:reset`, or `:submit`."
9388
9530
  },
9531
+ {
9532
+ "name": "disabled",
9533
+ "type": "Boolean",
9534
+ "default": "`false`",
9535
+ "description": "Whether or not the button is disabled. If true, this option forces `tag:` to `:button`."
9536
+ },
9389
9537
  {
9390
9538
  "name": "system_arguments",
9391
9539
  "type": "Hash",
@@ -9735,6 +9883,18 @@
9735
9883
  "color-contrast"
9736
9884
  ]
9737
9885
  }
9886
+ },
9887
+ {
9888
+ "preview_path": "primer/beta/button_group/all_tags",
9889
+ "name": "all_tags",
9890
+ "skip_rules": {
9891
+ "wont_fix": [
9892
+ "region"
9893
+ ],
9894
+ "will_fix": [
9895
+ "color-contrast"
9896
+ ]
9897
+ }
9738
9898
  }
9739
9899
  ],
9740
9900
  "subcomponents": [
@@ -9858,6 +10018,12 @@
9858
10018
  "default": "`:button`",
9859
10019
  "description": "One of `:button` or `:submit`."
9860
10020
  },
10021
+ {
10022
+ "name": "disabled",
10023
+ "type": "Boolean",
10024
+ "default": "`false`",
10025
+ "description": "Whether or not the button is disabled."
10026
+ },
9861
10027
  {
9862
10028
  "name": "system_arguments",
9863
10029
  "type": "Hash",
@@ -10138,6 +10304,12 @@
10138
10304
  "default": "`false`",
10139
10305
  "description": "Defaults to false. If set to true, it will remove the default caret and remove style from the summary element"
10140
10306
  },
10307
+ {
10308
+ "name": "disabled",
10309
+ "type": "Boolean",
10310
+ "default": "`false`",
10311
+ "description": "Whether or not to disable the summary button."
10312
+ },
10141
10313
  {
10142
10314
  "name": "system_arguments",
10143
10315
  "type": "Hash",
@@ -10148,20 +10320,9 @@
10148
10320
  "slots": [
10149
10321
  {
10150
10322
  "name": "summary",
10151
- "description": "Use the Summary slot as a trigger to reveal the content.",
10323
+ "description": null,
10152
10324
  "parameters": [
10153
- {
10154
- "name": "button",
10155
- "type": "Boolean",
10156
- "default": "`true`",
10157
- "description": "Whether to render the Summary as a button or not."
10158
- },
10159
- {
10160
- "name": "kwargs",
10161
- "type": "Hash",
10162
- "default": "N/A",
10163
- "description": "The same arguments as {{link_to_system_arguments_docs}}."
10164
- }
10325
+
10165
10326
  ]
10166
10327
  },
10167
10328
  {
@@ -10184,7 +10345,20 @@
10184
10345
  }
10185
10346
  ],
10186
10347
  "methods": [
10348
+ {
10349
+ "name": "disabled",
10350
+ "description": "Returns the value of attribute disabled.",
10351
+ "parameters": [
10187
10352
 
10353
+ ]
10354
+ },
10355
+ {
10356
+ "name": "disabled?",
10357
+ "description": "Returns the value of attribute disabled.",
10358
+ "parameters": [
10359
+
10360
+ ]
10361
+ }
10188
10362
  ],
10189
10363
  "previews": [
10190
10364
  {
@@ -10485,7 +10659,7 @@
10485
10659
  },
10486
10660
  {
10487
10661
  "fully_qualified_name": "Primer::Beta::IconButton",
10488
- "description": "Use `IconButton` to render Icon-only buttons without the default button styles.\n\n`IconButton` will always render with a tooltip unless the tag is `:summary`.\n`IconButton` will always render with a tooltip unless the tag is `:summary`.",
10662
+ "description": "Use `IconButton` to render Icon-only buttons without the default button styles.\n\n`IconButton` will always render with a tooltip unless the tag is `:summary`.",
10489
10663
  "is_form_component": false,
10490
10664
  "is_published": true,
10491
10665
  "requires_js": false,
@@ -10502,6 +10676,12 @@
10502
10676
  "default": "N/A",
10503
10677
  "description": "Name of {{link_to_octicons}} to use."
10504
10678
  },
10679
+ {
10680
+ "name": "tag",
10681
+ "type": "Symbol",
10682
+ "default": "N/A",
10683
+ "description": "One of `:a`, `:button`, or `:summary`."
10684
+ },
10505
10685
  {
10506
10686
  "name": "wrapper_arguments",
10507
10687
  "type": "Hash",
@@ -10521,10 +10701,10 @@
10521
10701
  "description": "One of `:large`, `:medium`, or `:small`."
10522
10702
  },
10523
10703
  {
10524
- "name": "tag",
10525
- "type": "Symbol",
10526
- "default": "N/A",
10527
- "description": "One of `:a`, `:button`, or `:summary`."
10704
+ "name": "disabled",
10705
+ "type": "Boolean",
10706
+ "default": "`false`",
10707
+ "description": "Whether or not the button is disabled. If true, this option forces `tag:` to `:button`."
10528
10708
  },
10529
10709
  {
10530
10710
  "name": "type",
data/static/previews.json CHANGED
@@ -552,6 +552,18 @@
552
552
  "color-contrast"
553
553
  ]
554
554
  }
555
+ },
556
+ {
557
+ "preview_path": "primer/alpha/action_menu/two_menus",
558
+ "name": "two_menus",
559
+ "skip_rules": {
560
+ "wont_fix": [
561
+ "region"
562
+ ],
563
+ "will_fix": [
564
+ "color-contrast"
565
+ ]
566
+ }
555
567
  }
556
568
  ]
557
569
  },
@@ -1296,6 +1308,18 @@
1296
1308
  "color-contrast"
1297
1309
  ]
1298
1310
  }
1311
+ },
1312
+ {
1313
+ "preview_path": "primer/beta/base_button/disabled",
1314
+ "name": "disabled",
1315
+ "skip_rules": {
1316
+ "wont_fix": [
1317
+ "region"
1318
+ ],
1319
+ "will_fix": [
1320
+ "color-contrast"
1321
+ ]
1322
+ }
1299
1323
  }
1300
1324
  ]
1301
1325
  },
@@ -1872,6 +1896,18 @@
1872
1896
  "color-contrast"
1873
1897
  ]
1874
1898
  }
1899
+ },
1900
+ {
1901
+ "preview_path": "primer/beta/button_group/all_tags",
1902
+ "name": "all_tags",
1903
+ "skip_rules": {
1904
+ "wont_fix": [
1905
+ "region"
1906
+ ],
1907
+ "will_fix": [
1908
+ "color-contrast"
1909
+ ]
1910
+ }
1875
1911
  }
1876
1912
  ]
1877
1913
  },
@@ -3948,6 +3984,18 @@
3948
3984
  "color-contrast"
3949
3985
  ]
3950
3986
  }
3987
+ },
3988
+ {
3989
+ "preview_path": "primer/alpha/overlay/dialog_with_header_footer",
3990
+ "name": "dialog_with_header_footer",
3991
+ "skip_rules": {
3992
+ "wont_fix": [
3993
+ "region"
3994
+ ],
3995
+ "will_fix": [
3996
+ "color-contrast"
3997
+ ]
3998
+ }
3951
3999
  }
3952
4000
  ]
3953
4001
  },
data/static/statuses.json CHANGED
@@ -33,6 +33,7 @@
33
33
  "Primer::Alpha::NavList": "alpha",
34
34
  "Primer::Alpha::NavList::Divider": "alpha",
35
35
  "Primer::Alpha::NavList::Group": "alpha",
36
+ "Primer::Alpha::NavList::Heading": "alpha",
36
37
  "Primer::Alpha::NavList::Item": "alpha",
37
38
  "Primer::Alpha::Navigation::Tab": "alpha",
38
39
  "Primer::Alpha::OcticonSymbols": "alpha",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-27 00:00:00.000000000 Z
11
+ date: 2023-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview