primer_view_components 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/assets/styles/primer_view_components.css +2 -2
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/alpha/action_list/divider.rb +1 -1
  8. data/app/components/primer/alpha/action_list/heading.html.erb +2 -2
  9. data/app/components/primer/alpha/action_list/heading.rb +9 -5
  10. data/app/components/primer/alpha/action_list/item.rb +1 -3
  11. data/app/components/primer/alpha/action_list.css +1 -1
  12. data/app/components/primer/alpha/action_list.css.json +1 -0
  13. data/app/components/primer/alpha/action_list.css.map +1 -1
  14. data/app/components/primer/alpha/action_list.html.erb +1 -0
  15. data/app/components/primer/alpha/action_list.pcss +5 -0
  16. data/app/components/primer/alpha/action_list.rb +14 -11
  17. data/app/components/primer/alpha/action_menu.rb +1 -1
  18. data/app/components/primer/alpha/dialog.rb +4 -0
  19. data/app/components/primer/alpha/modal_dialog.js +6 -0
  20. data/app/components/primer/alpha/modal_dialog.ts +6 -0
  21. data/app/components/primer/alpha/nav_list/divider.rb +14 -0
  22. data/app/components/primer/alpha/nav_list/group.html.erb +7 -0
  23. data/app/components/primer/alpha/nav_list/group.rb +24 -11
  24. data/app/components/primer/alpha/nav_list/item.rb +4 -0
  25. data/app/components/primer/alpha/nav_list.d.ts +0 -1
  26. data/app/components/primer/alpha/nav_list.html.erb +9 -4
  27. data/app/components/primer/alpha/nav_list.js +3 -4
  28. data/app/components/primer/alpha/nav_list.rb +87 -10
  29. data/app/components/primer/alpha/nav_list.ts +3 -2
  30. data/app/components/primer/alpha/overlay/header.html.erb +5 -3
  31. data/app/components/primer/alpha/overlay/header.rb +4 -1
  32. data/app/components/primer/alpha/overlay.css +1 -1
  33. data/app/components/primer/alpha/overlay.css.json +1 -1
  34. data/app/components/primer/alpha/overlay.css.map +1 -1
  35. data/app/components/primer/alpha/overlay.pcss +1 -1
  36. data/app/components/primer/alpha/overlay.rb +1 -0
  37. data/app/components/primer/alpha/segmented_control.css +1 -1
  38. data/app/components/primer/alpha/segmented_control.css.json +2 -2
  39. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  40. data/app/components/primer/alpha/segmented_control.pcss +10 -8
  41. data/app/components/primer/alpha/text_field.css +1 -1
  42. data/app/components/primer/alpha/text_field.css.json +11 -11
  43. data/app/components/primer/alpha/text_field.css.map +1 -1
  44. data/app/components/primer/alpha/text_field.pcss +2 -2
  45. data/app/components/primer/alpha/toggle_switch.css +1 -1
  46. data/app/components/primer/alpha/toggle_switch.css.json +11 -11
  47. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  48. data/app/components/primer/alpha/toggle_switch.d.ts +1 -1
  49. data/app/components/primer/alpha/toggle_switch.html.erb +2 -2
  50. data/app/components/primer/alpha/toggle_switch.js +44 -42
  51. data/app/components/primer/alpha/toggle_switch.pcss +4 -4
  52. data/app/components/primer/alpha/toggle_switch.rb +7 -0
  53. data/app/components/primer/alpha/toggle_switch.ts +50 -41
  54. data/app/components/primer/beta/auto_complete.rb +1 -1
  55. data/app/components/primer/beta/button.css +1 -1
  56. data/app/components/primer/beta/button.css.json +2 -0
  57. data/app/components/primer/beta/button.css.map +1 -1
  58. data/app/components/primer/beta/button.pcss +9 -0
  59. data/app/components/primer/component.rb +3 -96
  60. data/app/components/primer/focus_group.js +10 -6
  61. data/app/components/primer/focus_group.ts +10 -5
  62. data/app/lib/primer/attributes_helper.rb +105 -0
  63. data/lib/primer/forms/dsl/input.rb +4 -8
  64. data/lib/primer/forms/dsl/text_field_input.rb +0 -4
  65. data/lib/primer/forms/dsl/toggle_switch_input.rb +4 -0
  66. data/lib/primer/forms/form_control.html.erb +3 -5
  67. data/lib/primer/forms/primer_base_component_wrapper.html.erb +3 -0
  68. data/lib/primer/forms/primer_base_component_wrapper.rb +24 -0
  69. data/lib/primer/forms/text_field.rb +6 -0
  70. data/lib/primer/forms/toggle_switch.html.erb +3 -3
  71. data/lib/primer/forms/toggle_switch.rb +6 -2
  72. data/lib/primer/forms/toggle_switch_input.js +7 -2
  73. data/lib/primer/forms/toggle_switch_input.ts +9 -2
  74. data/lib/primer/static/generate_info_arch.rb +3 -0
  75. data/lib/primer/view_components/version.rb +1 -1
  76. data/lib/primer/yard/component_manifest.rb +1 -1
  77. data/lib/primer/yard/lookbook_pages_backend.rb +7 -1
  78. data/lib/primer/yard/registry.rb +4 -0
  79. data/previews/primer/alpha/nav_list_preview/trailing_action.html.erb +10 -10
  80. data/previews/primer/alpha/nav_list_preview.rb +37 -16
  81. data/previews/primer/alpha/overlay_preview/middle_of_page_with_relative_container.html.erb +19 -0
  82. data/previews/primer/alpha/overlay_preview.rb +31 -0
  83. data/previews/primer/beta/button_preview/trailing_counter.html.erb +11 -0
  84. data/previews/primer/beta/button_preview.rb +15 -0
  85. data/previews/primer/box_preview.rb +28 -0
  86. data/static/arguments.json +29 -13
  87. data/static/audited_at.json +1 -0
  88. data/static/classes.json +3 -0
  89. data/static/constants.json +3 -0
  90. data/static/info_arch.json +448 -20
  91. data/static/previews.json +43 -0
  92. data/static/statuses.json +1 -0
  93. metadata +10 -9
  94. data/lib/tasks/docs.rake +0 -185
  95. data/lib/tasks/helpers/ast_processor.rb +0 -44
  96. data/lib/tasks/helpers/ast_traverser.rb +0 -77
  97. data/lib/tasks/primer_view_components.rake +0 -47
  98. data/lib/tasks/static.rake +0 -29
  99. data/lib/tasks/test.rake +0 -83
  100. data/lib/tasks/utilities.rake +0 -109
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11559599f07155f9f22dbcb8be0db40c2a0f91cef9f6b6134f3776574a4c9c00
4
- data.tar.gz: bea93bb8841fc7ea94233b76103706a807d28e561c69f69c84ed1766052abbdc
3
+ metadata.gz: 1fc0049327ce6689f3e96aadfd16f20977af7697d7c9a8ab3a78458ad6526716
4
+ data.tar.gz: 3485b9e3cdbcc22ec4e4df8347f6d1aab58206225e72ea7d8ffa51d448b617a8
5
5
  SHA512:
6
- metadata.gz: 329e3d252ef249fe35e544fb8536598240fdae30360c14f603f841eaab5238acba3496d1342fac8fa56825f494cb5e1eb3a2bf6414f4109dd5653973ffae8449
7
- data.tar.gz: c6a63323abd0d12a99be6e98d2e3db9356ac8b4414cfbcb5d6fafebf080546041accaa7d956efde68e38e653d807786875a219ee5ba747c7e71938aa339405dd
6
+ metadata.gz: ff07055f38c33f61e0c8f1be6666a9d7b940f636ba4b63615d0bcc88d43f82dc760d1abd39779e6ac7028b0eec9d17de1f66e0f5ba67de5085540a3f921a2e11
7
+ data.tar.gz: f1f6e002bc2e2ebeb5598906b4aae85d66ee6c874a5d8da1069614c3312c94876e2533fd590f04561145907eef7a6208687c8775a540ed47326a819088b727c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1967](https://github.com/primer/view_components/pull/1967) [`20890415`](https://github.com/primer/view_components/commit/2089041551f0682b7c4cfa27a8656e148eec69ff) Thanks [@camertron](https://github.com/camertron)! - Toggle switch accessibility fixes
8
+
9
+ * [#2009](https://github.com/primer/view_components/pull/2009) [`65745bf4`](https://github.com/primer/view_components/commit/65745bf4c8044806a23e741eac0daf8e1fe65d53) Thanks [@camertron](https://github.com/camertron)! - Fix embedded example in SelectInput docs
10
+
11
+ - [#2011](https://github.com/primer/view_components/pull/2011) [`a1ca6fd0`](https://github.com/primer/view_components/commit/a1ca6fd0de5789f2b80fbc03257487dbe255b6f5) Thanks [@camertron](https://github.com/camertron)! - Make ActionList leading visual icons the same color as the item text.
12
+
13
+ * [#1998](https://github.com/primer/view_components/pull/1998) [`a23d5533`](https://github.com/primer/view_components/commit/a23d553372e08dbd57a0d4ad890b38c26d08674f) Thanks [@keithamus](https://github.com/keithamus)! - Fix style bug in popovers using native popover
14
+
15
+ - [#1996](https://github.com/primer/view_components/pull/1996) [`aeb9d2aa`](https://github.com/primer/view_components/commit/aeb9d2aa50238ade6b018b53a816d2c8b11e6457) Thanks [@keithamus](https://github.com/keithamus)! - Fix Dialogs aria-disabled attribute
16
+
17
+ * [#2003](https://github.com/primer/view_components/pull/2003) [`52ba2505`](https://github.com/primer/view_components/commit/52ba2505ca9897708357c5ed22a7bee0de4657c5) Thanks [@keithamus](https://github.com/keithamus)! - Fix positioning for native popovers
18
+
19
+ - [#1994](https://github.com/primer/view_components/pull/1994) [`064b0dea`](https://github.com/primer/view_components/commit/064b0dea7267a00ed5321ac9e1fe020f672ee085) Thanks [@keithamus](https://github.com/keithamus)! - Fix Overlay close buttons
20
+
21
+ * [#1995](https://github.com/primer/view_components/pull/1995) [`546df103`](https://github.com/primer/view_components/commit/546df103b50309ee8f9b6398707cd28eb99dcd98) Thanks [@keithamus](https://github.com/keithamus)! - Prevent page scrolling when using arrow keys in an ActionMenu
22
+
23
+ - [#1990](https://github.com/primer/view_components/pull/1990) [`15553fa9`](https://github.com/primer/view_components/commit/15553fa9d8f01a200053ddc45d1fc62e4da02738) Thanks [@jonrohan](https://github.com/jonrohan)! - Add custom properties fallback plugin to fallback primitives v8 colors
24
+
25
+ * [#1987](https://github.com/primer/view_components/pull/1987) [`01ad9325`](https://github.com/primer/view_components/commit/01ad932570295d03dd927646483c2f10b6fe6760) Thanks [@langermank](https://github.com/langermank)! - add padding back to autocomplete
26
+
27
+ - [#2002](https://github.com/primer/view_components/pull/2002) [`ef2540a1`](https://github.com/primer/view_components/commit/ef2540a1408c37e8d67fefcad62adcb1d99d938c) Thanks [@keithamus](https://github.com/keithamus)! - Fix focus groups when using native `popover`
28
+
29
+ * [#2004](https://github.com/primer/view_components/pull/2004) [`0cc69107`](https://github.com/primer/view_components/commit/0cc691072892f194f58796bef87eb832ea92a6d4) Thanks [@keithamus](https://github.com/keithamus)! - Fix bug where dialogs aren't shown due to keydown and pointer events firing
30
+
31
+ ## 0.1.8
32
+
33
+ ### Patch Changes
34
+
35
+ - [#1969](https://github.com/primer/view_components/pull/1969) [`37174d1b`](https://github.com/primer/view_components/commit/37174d1b97b20ffaa4b00080962a56726c6f6bed) Thanks [@jhunschejones](https://github.com/jhunschejones)! - Don't show segmented control item separator on first item
36
+
37
+ * [#1943](https://github.com/primer/view_components/pull/1943) [`40912f6a`](https://github.com/primer/view_components/commit/40912f6a173a67a4fbd8aaab54962ea25821ba51) Thanks [@camertron](https://github.com/camertron)! - Additional accessibility fixes for NavList and ActionList
38
+
39
+ - [#1965](https://github.com/primer/view_components/pull/1965) [`cd6d5ed4`](https://github.com/primer/view_components/commit/cd6d5ed48f3773e8532886422bc4b8b5e0e38321) Thanks [@langermank](https://github.com/langermank)! - Adjust background color for Button with Counter, fix small and large TextField visual alignment bugs
40
+
3
41
  ## 0.1.7
4
42
 
5
43
  ### Patch Changes