openproject-primer_view_components 0.54.1 → 0.55.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/app/assets/javascripts/components/primer/beta/details_toggle_element.d.ts +39 -0
  4. data/app/assets/javascripts/components/primer/primer.d.ts +1 -0
  5. data/app/assets/javascripts/primer_view_components.js +1 -1
  6. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  7. data/app/components/primer/alpha/action_menu/action_menu_element.js +13 -3
  8. data/app/components/primer/alpha/action_menu/action_menu_element.ts +14 -2
  9. data/app/components/primer/alpha/dropdown.rb +8 -0
  10. data/app/components/primer/alpha/form_control.rb +47 -7
  11. data/app/components/primer/alpha/toggle_switch.html.erb +1 -1
  12. data/app/components/primer/alpha/toggle_switch.js +1 -0
  13. data/app/components/primer/alpha/toggle_switch.rb +14 -2
  14. data/app/components/primer/alpha/toggle_switch.ts +1 -0
  15. data/app/components/primer/beta/details.html.erb +8 -6
  16. data/app/components/primer/beta/details.rb +42 -0
  17. data/app/components/primer/beta/details_toggle_element.d.ts +39 -0
  18. data/app/components/primer/beta/details_toggle_element.js +60 -0
  19. data/app/components/primer/beta/details_toggle_element.ts +57 -0
  20. data/app/components/primer/beta/markdown.rb +1 -0
  21. data/app/components/primer/beta/nav_list.rb +1 -1
  22. data/app/components/primer/primer.d.ts +1 -0
  23. data/app/components/primer/primer.js +1 -0
  24. data/app/components/primer/primer.ts +1 -0
  25. data/app/lib/primer/forms/action_menu.html.erb +1 -1
  26. data/app/lib/primer/forms/action_menu.rb +5 -0
  27. data/lib/primer/view_components/version.rb +2 -2
  28. data/lib/primer/yard/component_manifest.rb +11 -10
  29. data/lib/primer/yard/lookbook_pages_backend.rb +8 -0
  30. data/previews/primer/alpha/action_menu_preview/multiple_select_form.html.erb +1 -1
  31. data/previews/primer/alpha/form_control_preview/playground.html.erb +14 -6
  32. data/previews/primer/alpha/overlay_preview.rb +0 -31
  33. data/previews/primer/alpha/select_preview.rb +6 -6
  34. data/previews/primer/alpha/text_field_preview.rb +22 -22
  35. data/previews/primer/alpha/toggle_switch_preview.rb +4 -0
  36. data/previews/primer/beta/details_preview.rb +12 -0
  37. data/previews/primer/beta/markdown_preview.rb +9 -9
  38. data/previews/primer/beta/relative_time_preview.rb +20 -10
  39. data/static/arguments.json +12 -0
  40. data/static/constants.json +4 -0
  41. data/static/info_arch.json +134 -70
  42. data/static/previews.json +27 -52
  43. metadata +5 -3
  44. data/previews/primer/alpha/overlay_preview/in_an_action_menu.html.erb +0 -13
  45. data/previews/primer/alpha/overlay_preview/overlay_with_header_filter.html.erb +0 -16
@@ -2838,7 +2838,7 @@
2838
2838
  "description": "Check boxes are true/false inputs rendered as `<input type=\"checkbox\">` in HTML.\n\n## Schemes\n\nCheck boxes can submit values to the server using one of two schemes, either `:array`\nor `:boolean` (the default). Check boxes with a scheme of `:boolean` function like normal\nHTML check boxes. If they are checked, a value of \"1\" is sent to the server; if they are\nunchecked, a value of \"0\" is sent to the server. The checked and unchecked values can be\ncustomized via the `:value` and `:unchecked_value` arguments respectively.\n\nWhereas `:boolean` check boxes must have unique names, `:array` check boxes all have the\nsame name. On form submission, Rails will aggregate the values of the check boxes with the\nsame name and provide them to the controller as an array. If `:scheme:` is `:array`, the\n`:value` argument must also be provided. The `:unchecked_value` argument is ignored. If a\ncheck box is checked on submit, its corresponding value will appear in the array. If it is\nnot checked, its value will not appear in the array.\n\n## Caption templates\n\nCaption templates for `:array`-type check boxes work a little differently than they do for\nother input types. Because the name must be the same for all check boxes that make up an\narray, caption template file names are comprised of both the name _and_ the value of each\ncheck box. For example, a check box with the name `foo` and value `bar` must have a caption\ntemplate named `foo_bar_caption.html.erb`.\n\n## Nested Forms\n\nCheck boxes can have \"nested\" forms that are rendered below the caption. A common use-case\nis a form that is hidden until the check box is checked. Nested forms are indented slightly\nto align with the label and caption.\n\nDefine a nested form via the `#nested_form` method, which is expected to return an instance\nof a Primer form (see the usage section below).\n\nAny fields defined in the nested form are submitted along with the parent form's fields.\n\n**NOTE**: Check boxes do not automatically show or hide nested forms. If such behavior is\ndesired, it must be done by hand.",
2839
2839
  "accessibility_docs": null,
2840
2840
  "is_form_component": true,
2841
- "is_published": false,
2841
+ "is_published": true,
2842
2842
  "requires_js": false,
2843
2843
  "component": "CheckBox",
2844
2844
  "status": "alpha",
@@ -3075,7 +3075,7 @@
3075
3075
  "description": "Check box groups consist of one or more related check boxes.",
3076
3076
  "accessibility_docs": null,
3077
3077
  "is_form_component": true,
3078
- "is_published": false,
3078
+ "is_published": true,
3079
3079
  "requires_js": false,
3080
3080
  "component": "CheckBoxGroup",
3081
3081
  "status": "alpha",
@@ -3843,7 +3843,18 @@
3843
3843
  "name": "button",
3844
3844
  "description": "Required trigger for the dropdown. Has the same arguments as {{#link_to_component}}Primer::ButtonComponent{{/link_to_component}},\nbut it is locked as a `summary` tag.",
3845
3845
  "parameters": [
3846
-
3846
+ {
3847
+ "name": "aria_label_open",
3848
+ "type": "String",
3849
+ "default": "N/A",
3850
+ "description": "Defaults to \"Close\". Value to announce when menu is open."
3851
+ },
3852
+ {
3853
+ "name": "aria_label_closed",
3854
+ "type": "String",
3855
+ "default": "N/A",
3856
+ "description": "Defaults to \"Open\". Value to announce when menu is closed."
3857
+ }
3847
3858
  ]
3848
3859
  },
3849
3860
  {
@@ -4195,7 +4206,7 @@
4195
4206
  "description": "A button input rendered using the HTML `<button type=\"button\">` tag.\n\nThis component wraps the Primer button component and supports the same slots and arguments.",
4196
4207
  "accessibility_docs": null,
4197
4208
  "is_form_component": true,
4198
- "is_published": false,
4209
+ "is_published": true,
4199
4210
  "requires_js": false,
4200
4211
  "component": "FormButton",
4201
4212
  "status": "alpha",
@@ -4268,9 +4279,9 @@
4268
4279
  },
4269
4280
  {
4270
4281
  "fully_qualified_name": "Primer::Alpha::FormControl",
4271
- "description": "Wraps an input (or arbitrary content) with a label above and a caption and validation message beneath.\nNOTE: This `FormControl` component is designed for wrapping inputs that aren't supported by the Primer\nforms framework.",
4272
- "accessibility_docs": null,
4273
- "is_form_component": false,
4282
+ "description": "Wraps an input (or arbitrary content) with a label above and a caption and validation message beneath.\n\nNOTE: This `FormControl` component is designed for wrapping inputs that aren't supported by the Primer\nforms framework.",
4283
+ "accessibility_docs": "Because `FormControl` does not manage the actual `<input>` element, it cannot semantically connect\nthe input and its associated label. For this and other reasons, consumers are highly encouraged to\nuse Primer's pre-made form components like `TextField`, etc, ideally via the Primer forms framework.\n\nUsers of the `FormControl` component will need to manually connect the label using the `for:`\nattribute, eg:\n\n```erb\n<%= form_with(url: \"/path/somewhere\") do |f| %>\n <%= render(Primer::Alpha::FormControl.new(label_arguments: { for: \"bar\" })) do |component| %>\n <% component.with_input do |input_arguments| %>\n <%= f.text_field(:bar, **input_arguments) %>\n <% end %>\n <% end %>\n<% end %>\n```\n\nNote that the name of the field, `:bar`, is passed to both the Rails `#text_field` method _and_\nas part of the `label_arguments` passed to the `FormControl` constructor.\n\nSimilarly, `FormControl` cannot automatically connect the `<input>` element to the caption and\nvalidation message elements. The component attempts to mitigate this by including the correct\n`aria-describedby` attribute in the hash it yields to the block passed to `#with_input`. In the\nexample above, `input_arguments[:aria][:describedby]` contains the HTML IDs for both the caption\nand validation message elements, and can be passed directly to Rails' form helper methods. If the\ninput being wrapped is not generated by a Rails form helper, care must be taken to set\n`aria-describedby` manually on the input element.",
4284
+ "is_form_component": true,
4274
4285
  "is_published": true,
4275
4286
  "requires_js": false,
4276
4287
  "component": "FormControl",
@@ -4316,6 +4327,12 @@
4316
4327
  "default": "`false`",
4317
4328
  "description": "When set to `true`, the form control will take up all the horizontal space allowed by its container."
4318
4329
  },
4330
+ {
4331
+ "name": "label_arguments",
4332
+ "type": "Hash",
4333
+ "default": "`{}`",
4334
+ "description": "HTML attributes to attach to the `<label>` element that labels the input."
4335
+ },
4319
4336
  {
4320
4337
  "name": "system_arguments",
4321
4338
  "type": "Hash",
@@ -4340,7 +4357,36 @@
4340
4357
  }
4341
4358
  ],
4342
4359
  "methods": [
4360
+ {
4361
+ "name": "required?",
4362
+ "description": "Whether or not this input is marked as required.",
4363
+ "parameters": [
4364
+
4365
+ ],
4366
+ "return_types": [
4367
+ "Boolean"
4368
+ ]
4369
+ },
4370
+ {
4371
+ "name": "visually_hide_label?",
4372
+ "description": "Whether or not to hide the label visually. The label will still be visible to screen readers.",
4373
+ "parameters": [
4343
4374
 
4375
+ ],
4376
+ "return_types": [
4377
+ "Boolean"
4378
+ ]
4379
+ },
4380
+ {
4381
+ "name": "full_width?",
4382
+ "description": "Whether or not the form control should take up all the horizontal space allowed by its container.",
4383
+ "parameters": [
4384
+
4385
+ ],
4386
+ "return_types": [
4387
+ "Boolean"
4388
+ ]
4389
+ }
4344
4390
  ],
4345
4391
  "previews": [
4346
4392
  {
@@ -5164,7 +5210,7 @@
5164
5210
  "description": "Multi inputs are comprised of multiple constituent fields, only one of which is visible\nat a given time. They are designed for situations where constituent inputs are shown or\nhidden based on the value of another field. For example, consider an address form. If\nthe user chooses the USA as the country, the region input should show a list of states\nand US territories; if the user instead chooses Canada, the region input should show a\nlist of Canadian provinces, etc.\n\nUnlike everywhere else in Primer forms, constituent inputs are not directly passed a\n`name` attribute. Instead, developers pass a `name` attribute to the multi input itself.\nThe multi input then automatically assigns each constituent input the same name. This is\ndone so that the multi input looks like a single field from the server's point of view.\nUsing the address form example from earlier, this means only one value - either a US state\nor a Canadian provice - will be submitted to the server under the `region` key.\n\nActually, that's not quite true. Constituent inputs _are_ given a `name`, but it's added to\nthe input as the `data-name` attribute as a way to identify constituent inputs, and will not\nbe sent to the server.",
5165
5211
  "accessibility_docs": null,
5166
5212
  "is_form_component": true,
5167
- "is_published": false,
5213
+ "is_published": true,
5168
5214
  "requires_js": true,
5169
5215
  "component": "MultiInput",
5170
5216
  "status": "alpha",
@@ -6178,58 +6224,6 @@
6178
6224
  ]
6179
6225
  }
6180
6226
  },
6181
- {
6182
- "preview_path": "primer/alpha/overlay/in_an_action_menu",
6183
- "name": "in_an_action_menu",
6184
- "snapshot": "false",
6185
- "skip_rules": {
6186
- "wont_fix": [
6187
- "region"
6188
- ],
6189
- "will_fix": [
6190
- "color-contrast"
6191
- ]
6192
- }
6193
- },
6194
- {
6195
- "preview_path": "primer/alpha/overlay/dialog_with_header_footer",
6196
- "name": "dialog_with_header_footer",
6197
- "snapshot": "false",
6198
- "skip_rules": {
6199
- "wont_fix": [
6200
- "region"
6201
- ],
6202
- "will_fix": [
6203
- "color-contrast"
6204
- ]
6205
- }
6206
- },
6207
- {
6208
- "preview_path": "primer/alpha/overlay/overlay_with_header_filter",
6209
- "name": "overlay_with_header_filter",
6210
- "snapshot": "false",
6211
- "skip_rules": {
6212
- "wont_fix": [
6213
- "region"
6214
- ],
6215
- "will_fix": [
6216
- "color-contrast"
6217
- ]
6218
- }
6219
- },
6220
- {
6221
- "preview_path": "primer/alpha/overlay/overlay_with_header_subtitle",
6222
- "name": "overlay_with_header_subtitle",
6223
- "snapshot": "false",
6224
- "skip_rules": {
6225
- "wont_fix": [
6226
- "region"
6227
- ],
6228
- "will_fix": [
6229
- "color-contrast"
6230
- ]
6231
- }
6232
- },
6233
6227
  {
6234
6228
  "preview_path": "primer/alpha/overlay/in_a_sticky_container",
6235
6229
  "name": "in_a_sticky_container",
@@ -6425,7 +6419,7 @@
6425
6419
  "description": "Radio buttons represent one of a set of options and are rendered as `<input type=\"radio\">` in HTML.\n**NOTE**: You probably want to use the {{#link_to_component}}Primer::Alpha::RadioButtonGroup{{/link_to_component}}\ncomponent instead, as it allows rendering a group of options.",
6426
6420
  "accessibility_docs": null,
6427
6421
  "is_form_component": true,
6428
- "is_published": false,
6422
+ "is_published": true,
6429
6423
  "requires_js": false,
6430
6424
  "component": "RadioButton",
6431
6425
  "status": "alpha",
@@ -6638,7 +6632,7 @@
6638
6632
  "description": "A group of mutually exclusive radio buttons.",
6639
6633
  "accessibility_docs": null,
6640
6634
  "is_form_component": true,
6641
- "is_published": false,
6635
+ "is_published": true,
6642
6636
  "requires_js": false,
6643
6637
  "component": "RadioButtonGroup",
6644
6638
  "status": "alpha",
@@ -7151,7 +7145,7 @@
7151
7145
  "description": "Select lists are single-line text inputs rendered as `<select>` tags in HTML.",
7152
7146
  "accessibility_docs": null,
7153
7147
  "is_form_component": true,
7154
- "is_published": false,
7148
+ "is_published": true,
7155
7149
  "requires_js": false,
7156
7150
  "component": "Select",
7157
7151
  "status": "alpha",
@@ -8349,7 +8343,7 @@
8349
8343
  "description": "A submit button input rendered using the HTML `<button type=\"submit\">` tag.\n\nThis component wraps the Primer button component and supports the same slots and arguments.",
8350
8344
  "accessibility_docs": null,
8351
8345
  "is_form_component": true,
8352
- "is_published": false,
8346
+ "is_published": true,
8353
8347
  "requires_js": false,
8354
8348
  "component": "SubmitButton",
8355
8349
  "status": "alpha",
@@ -8722,7 +8716,7 @@
8722
8716
  "description": "Text areas are multi-line text inputs rendered using the `<textarea>` tag in HTML.",
8723
8717
  "accessibility_docs": null,
8724
8718
  "is_form_component": true,
8725
- "is_published": false,
8719
+ "is_published": true,
8726
8720
  "requires_js": false,
8727
8721
  "component": "TextArea",
8728
8722
  "status": "alpha",
@@ -8981,7 +8975,7 @@
8981
8975
  "accessibility_docs": null,
8982
8976
  "is_form_component": true,
8983
8977
  "is_published": true,
8984
- "requires_js": false,
8978
+ "requires_js": true,
8985
8979
  "component": "TextField",
8986
8980
  "status": "alpha",
8987
8981
  "a11y_reviewed": false,
@@ -9603,6 +9597,12 @@
9603
9597
  "default": "`false`",
9604
9598
  "description": "Whether or not to request a turbo stream and render the response as such."
9605
9599
  },
9600
+ {
9601
+ "name": "autofocus",
9602
+ "type": "Boolean",
9603
+ "default": "`nil`",
9604
+ "description": "Whether switch should be autofocused when rendered."
9605
+ },
9606
9606
  {
9607
9607
  "name": "system_arguments",
9608
9608
  "type": "Hash",
@@ -9784,6 +9784,20 @@
9784
9784
  "color-contrast"
9785
9785
  ]
9786
9786
  }
9787
+ },
9788
+ {
9789
+ "preview_path": "primer/alpha/toggle_switch/with_autofocus",
9790
+ "name": "with_autofocus",
9791
+ "snapshot": "false",
9792
+ "skip_rules": {
9793
+ "wont_fix": [
9794
+ "region",
9795
+ "button-name"
9796
+ ],
9797
+ "will_fix": [
9798
+ "color-contrast"
9799
+ ]
9800
+ }
9787
9801
  }
9788
9802
  ],
9789
9803
  "subcomponents": [
@@ -13410,9 +13424,26 @@
13410
13424
  "slots": [
13411
13425
  {
13412
13426
  "name": "summary",
13413
- "description": null,
13427
+ "description": "Use the Summary slot as the target for toggling the Details content open/closed.",
13414
13428
  "parameters": [
13415
-
13429
+ {
13430
+ "name": "button",
13431
+ "type": "Boolean",
13432
+ "default": "N/A",
13433
+ "description": "Whether or not to render the summary element as a button."
13434
+ },
13435
+ {
13436
+ "name": "aria_label_open",
13437
+ "type": "String",
13438
+ "default": "N/A",
13439
+ "description": "Defaults to \"Collapse\". Value to announce when details element is open."
13440
+ },
13441
+ {
13442
+ "name": "aria_label_closed",
13443
+ "type": "String",
13444
+ "default": "N/A",
13445
+ "description": "Defaults to \"Expand\". Value to announce when details element is closed."
13446
+ }
13416
13447
  ]
13417
13448
  },
13418
13449
  {
@@ -13453,6 +13484,26 @@
13453
13484
  ],
13454
13485
  "return_types": [
13455
13486
 
13487
+ ]
13488
+ },
13489
+ {
13490
+ "name": "open",
13491
+ "description": "Returns the value of attribute open.",
13492
+ "parameters": [
13493
+
13494
+ ],
13495
+ "return_types": [
13496
+
13497
+ ]
13498
+ },
13499
+ {
13500
+ "name": "open?",
13501
+ "description": "Returns the value of attribute open.",
13502
+ "parameters": [
13503
+
13504
+ ],
13505
+ "return_types": [
13506
+
13456
13507
  ]
13457
13508
  }
13458
13509
  ],
@@ -13508,6 +13559,19 @@
13508
13559
  "color-contrast"
13509
13560
  ]
13510
13561
  }
13562
+ },
13563
+ {
13564
+ "preview_path": "primer/beta/details/open",
13565
+ "name": "open",
13566
+ "snapshot": "false",
13567
+ "skip_rules": {
13568
+ "wont_fix": [
13569
+ "region"
13570
+ ],
13571
+ "will_fix": [
13572
+ "color-contrast"
13573
+ ]
13574
+ }
13511
13575
  }
13512
13576
  ],
13513
13577
  "subcomponents": [
@@ -14456,7 +14520,7 @@
14456
14520
  {
14457
14521
  "fully_qualified_name": "Primer::Beta::Markdown",
14458
14522
  "description": "Use `Markdown` to wrap markdown content.",
14459
- "accessibility_docs": null,
14523
+ "accessibility_docs": "This component is purely presentational. Consumers should handle accessibility expectations, such as ensuring that an overflowing, scrollable code block or table is keyboard accessible.",
14460
14524
  "is_form_component": false,
14461
14525
  "is_published": true,
14462
14526
  "requires_js": false,
@@ -14713,7 +14777,7 @@
14713
14777
  },
14714
14778
  {
14715
14779
  "name": "render_outer_list?",
14716
- "description": "Lists that contain top-level items (i.e. items outside of a group) should be wrapped in a <ul>",
14780
+ "description": "Lists that contain top-level items (i.e. items outside of a group) should be wrapped in a `<ul>`",
14717
14781
  "parameters": [
14718
14782
 
14719
14783
  ],
data/static/previews.json CHANGED
@@ -3290,6 +3290,19 @@
3290
3290
  "color-contrast"
3291
3291
  ]
3292
3292
  }
3293
+ },
3294
+ {
3295
+ "preview_path": "primer/beta/details/open",
3296
+ "name": "open",
3297
+ "snapshot": "false",
3298
+ "skip_rules": {
3299
+ "wont_fix": [
3300
+ "region"
3301
+ ],
3302
+ "will_fix": [
3303
+ "color-contrast"
3304
+ ]
3305
+ }
3293
3306
  }
3294
3307
  ]
3295
3308
  },
@@ -5589,58 +5602,6 @@
5589
5602
  ]
5590
5603
  }
5591
5604
  },
5592
- {
5593
- "preview_path": "primer/alpha/overlay/in_an_action_menu",
5594
- "name": "in_an_action_menu",
5595
- "snapshot": "false",
5596
- "skip_rules": {
5597
- "wont_fix": [
5598
- "region"
5599
- ],
5600
- "will_fix": [
5601
- "color-contrast"
5602
- ]
5603
- }
5604
- },
5605
- {
5606
- "preview_path": "primer/alpha/overlay/dialog_with_header_footer",
5607
- "name": "dialog_with_header_footer",
5608
- "snapshot": "false",
5609
- "skip_rules": {
5610
- "wont_fix": [
5611
- "region"
5612
- ],
5613
- "will_fix": [
5614
- "color-contrast"
5615
- ]
5616
- }
5617
- },
5618
- {
5619
- "preview_path": "primer/alpha/overlay/overlay_with_header_filter",
5620
- "name": "overlay_with_header_filter",
5621
- "snapshot": "false",
5622
- "skip_rules": {
5623
- "wont_fix": [
5624
- "region"
5625
- ],
5626
- "will_fix": [
5627
- "color-contrast"
5628
- ]
5629
- }
5630
- },
5631
- {
5632
- "preview_path": "primer/alpha/overlay/overlay_with_header_subtitle",
5633
- "name": "overlay_with_header_subtitle",
5634
- "snapshot": "false",
5635
- "skip_rules": {
5636
- "wont_fix": [
5637
- "region"
5638
- ],
5639
- "will_fix": [
5640
- "color-contrast"
5641
- ]
5642
- }
5643
- },
5644
5605
  {
5645
5606
  "preview_path": "primer/alpha/overlay/in_a_sticky_container",
5646
5607
  "name": "in_a_sticky_container",
@@ -8358,6 +8319,20 @@
8358
8319
  "color-contrast"
8359
8320
  ]
8360
8321
  }
8322
+ },
8323
+ {
8324
+ "preview_path": "primer/alpha/toggle_switch/with_autofocus",
8325
+ "name": "with_autofocus",
8326
+ "snapshot": "false",
8327
+ "skip_rules": {
8328
+ "wont_fix": [
8329
+ "region",
8330
+ "button-name"
8331
+ ],
8332
+ "will_fix": [
8333
+ "color-contrast"
8334
+ ]
8335
+ }
8361
8336
  }
8362
8337
  ]
8363
8338
  },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.1
4
+ version: 0.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -98,6 +98,7 @@ files:
98
98
  - app/assets/javascripts/components/primer/anchored_position.d.ts
99
99
  - app/assets/javascripts/components/primer/beta/auto_complete/auto_complete.d.ts
100
100
  - app/assets/javascripts/components/primer/beta/clipboard_copy.d.ts
101
+ - app/assets/javascripts/components/primer/beta/details_toggle_element.d.ts
101
102
  - app/assets/javascripts/components/primer/beta/nav_list.d.ts
102
103
  - app/assets/javascripts/components/primer/beta/nav_list_group_element.d.ts
103
104
  - app/assets/javascripts/components/primer/beta/relative_time.d.ts
@@ -387,6 +388,9 @@ files:
387
388
  - app/components/primer/beta/counter.rb
388
389
  - app/components/primer/beta/details.html.erb
389
390
  - app/components/primer/beta/details.rb
391
+ - app/components/primer/beta/details_toggle_element.d.ts
392
+ - app/components/primer/beta/details_toggle_element.js
393
+ - app/components/primer/beta/details_toggle_element.ts
390
394
  - app/components/primer/beta/flash.css
391
395
  - app/components/primer/beta/flash.css.json
392
396
  - app/components/primer/beta/flash.css.map
@@ -876,10 +880,8 @@ files:
876
880
  - previews/primer/alpha/octicon_symbols_preview/playground.html.erb
877
881
  - previews/primer/alpha/overlay_preview.rb
878
882
  - previews/primer/alpha/overlay_preview/in_a_sticky_container.html.erb
879
- - previews/primer/alpha/overlay_preview/in_an_action_menu.html.erb
880
883
  - previews/primer/alpha/overlay_preview/middle_of_page.html.erb
881
884
  - previews/primer/alpha/overlay_preview/middle_of_page_with_relative_container.html.erb
882
- - previews/primer/alpha/overlay_preview/overlay_with_header_filter.html.erb
883
885
  - previews/primer/alpha/radio_button_group_preview.rb
884
886
  - previews/primer/alpha/radio_button_preview.rb
885
887
  - previews/primer/alpha/segmented_control_preview.rb
@@ -1,13 +0,0 @@
1
- <%= render(Primer::Alpha::ActionMenu.new()) do |menu| %>
2
- <% menu.with_show_button { "Menu" } %>
3
- <% menu.with_item(label: "Open Overlay", content_arguments: { id: "overlay-show-my-overlay", popovertarget: "my-overlay" }) %>
4
- <% end %>
5
- <%= render(Primer::Alpha::Overlay.new(
6
- id: "my-overlay",
7
- title: "An overlay",
8
- role: :dialog,
9
- popover: "manual",
10
- )) do |d| %>
11
- <% d.with_header(title: "An overlay") %>
12
- <% d.with_body { "This is an overlay" } %>
13
- <% end %>
@@ -1,16 +0,0 @@
1
- <%= render(Primer::Alpha::Overlay.new(title: "Dialog", role: :dialog, size: :large, padding: :condensed)) do |d| %>
2
- <% d.with_header(title: "Large Dialog Header", divider: true) do |header| %>
3
- <% header.with_filter do %>
4
- <%= render Primer::Alpha::TextField.new(
5
- autofocus: true,
6
- visually_hide_label:
7
- true,
8
- name: "filter",
9
- label: "Filter Overlay"
10
- ) %>
11
- <% end %>
12
- <% end %>
13
- <% d.with_show_button { "Show Overlay" } %>
14
- <% d.with_footer { "Large Dialog Footer" } %>
15
- <% d.with_body { "This is a long body for the overlay dialog. <br>".html_safe * 20 } %>
16
- <% end %>