primer_view_components 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/README.md +1 -1
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -3
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/action_list/item.rb +2 -2
  9. data/app/components/primer/alpha/action_list.css +1 -1
  10. data/app/components/primer/alpha/action_list.css.json +16 -16
  11. data/app/components/primer/alpha/action_list.css.map +1 -1
  12. data/app/components/primer/alpha/action_list.pcss +145 -145
  13. data/app/components/primer/alpha/action_list.rb +30 -15
  14. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -1
  15. data/app/components/primer/alpha/action_menu/action_menu_element.js +44 -34
  16. data/app/components/primer/alpha/action_menu/action_menu_element.ts +32 -30
  17. data/app/components/primer/alpha/action_menu/list.rb +6 -1
  18. data/app/components/primer/alpha/auto_complete.css +1 -1
  19. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  20. data/app/components/primer/alpha/auto_complete.pcss +3 -3
  21. data/app/components/primer/alpha/banner.css +1 -1
  22. data/app/components/primer/alpha/banner.css.map +1 -1
  23. data/app/components/primer/alpha/banner.pcss +11 -11
  24. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  25. data/app/components/primer/alpha/button_marketing.pcss +5 -12
  26. data/app/components/primer/alpha/button_marketing.rb +3 -0
  27. data/app/components/primer/alpha/dialog.css +1 -1
  28. data/app/components/primer/alpha/dialog.css.map +1 -1
  29. data/app/components/primer/alpha/dialog.pcss +36 -36
  30. data/app/components/primer/alpha/dropdown.css +1 -1
  31. data/app/components/primer/alpha/dropdown.css.map +1 -1
  32. data/app/components/primer/alpha/dropdown.pcss +12 -12
  33. data/app/components/primer/alpha/form_control.html.erb +1 -1
  34. data/app/components/primer/alpha/hellip_button.rb +3 -1
  35. data/app/components/primer/alpha/layout.css +1 -1
  36. data/app/components/primer/alpha/layout.css.map +1 -1
  37. data/app/components/primer/alpha/layout.pcss +4 -4
  38. data/app/components/primer/alpha/menu.css +1 -1
  39. data/app/components/primer/alpha/menu.css.map +1 -1
  40. data/app/components/primer/alpha/menu.pcss +21 -21
  41. data/app/components/primer/alpha/modal_dialog.js +11 -4
  42. data/app/components/primer/alpha/modal_dialog.ts +11 -4
  43. data/app/components/primer/alpha/nav_list/item.rb +2 -0
  44. data/app/components/primer/alpha/nav_list.js +6 -0
  45. data/app/components/primer/alpha/nav_list.rb +55 -36
  46. data/app/components/primer/alpha/nav_list.ts +8 -0
  47. data/app/components/primer/alpha/octicon_symbols.html.erb +1 -1
  48. data/app/components/primer/alpha/overlay.css +1 -1
  49. data/app/components/primer/alpha/overlay.css.json +1 -2
  50. data/app/components/primer/alpha/overlay.css.map +1 -1
  51. data/app/components/primer/alpha/overlay.pcss +14 -4
  52. data/app/components/primer/alpha/segmented_control.css +1 -1
  53. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  54. data/app/components/primer/alpha/segmented_control.pcss +24 -33
  55. data/app/components/primer/alpha/tab_nav.css +1 -1
  56. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  57. data/app/components/primer/alpha/tab_nav.pcss +12 -12
  58. data/app/components/primer/alpha/text_field.css +1 -3
  59. data/app/components/primer/alpha/text_field.css.json +1 -0
  60. data/app/components/primer/alpha/text_field.css.map +1 -1
  61. data/app/components/primer/alpha/text_field.pcss +87 -83
  62. data/app/components/primer/alpha/toggle_switch.css +1 -1
  63. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  64. data/app/components/primer/alpha/toggle_switch.pcss +12 -12
  65. data/app/components/primer/alpha/underline_nav.css +1 -1
  66. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  67. data/app/components/primer/alpha/underline_nav.pcss +11 -11
  68. data/app/components/primer/beta/avatar.css +1 -1
  69. data/app/components/primer/beta/avatar.css.map +1 -1
  70. data/app/components/primer/beta/avatar.pcss +18 -18
  71. data/app/components/primer/beta/avatar_stack.css +1 -1
  72. data/app/components/primer/beta/avatar_stack.css.map +1 -1
  73. data/app/components/primer/beta/avatar_stack.pcss +5 -5
  74. data/app/components/primer/beta/base_button.rb +11 -0
  75. data/app/components/primer/beta/blankslate.css +1 -1
  76. data/app/components/primer/beta/blankslate.css.map +1 -1
  77. data/app/components/primer/beta/blankslate.pcss +16 -16
  78. data/app/components/primer/beta/border_box.css +1 -1
  79. data/app/components/primer/beta/border_box.css.json +1 -1
  80. data/app/components/primer/beta/border_box.css.map +1 -1
  81. data/app/components/primer/beta/border_box.pcss +40 -42
  82. data/app/components/primer/beta/button.css +1 -1
  83. data/app/components/primer/beta/button.css.json +4 -0
  84. data/app/components/primer/beta/button.css.map +1 -1
  85. data/app/components/primer/beta/button.pcss +39 -24
  86. data/app/components/primer/beta/button.rb +3 -0
  87. data/app/components/primer/beta/button_group.css +1 -0
  88. data/app/components/primer/beta/button_group.css.json +14 -0
  89. data/app/components/primer/beta/button_group.css.map +1 -0
  90. data/app/components/primer/beta/button_group.pcss +27 -0
  91. data/app/components/primer/beta/button_group.rb +19 -19
  92. data/app/components/primer/beta/close_button.rb +3 -1
  93. data/app/components/primer/beta/counter.css +1 -1
  94. data/app/components/primer/beta/counter.css.map +1 -1
  95. data/app/components/primer/beta/counter.pcss +5 -5
  96. data/app/components/primer/beta/details.html.erb +6 -2
  97. data/app/components/primer/beta/details.rb +18 -10
  98. data/app/components/primer/beta/flash.css +1 -1
  99. data/app/components/primer/beta/flash.css.map +1 -1
  100. data/app/components/primer/beta/flash.pcss +12 -12
  101. data/app/components/primer/beta/icon_button.rb +7 -3
  102. data/app/components/primer/beta/label.css +1 -1
  103. data/app/components/primer/beta/label.css.map +1 -1
  104. data/app/components/primer/beta/label.pcss +3 -3
  105. data/app/components/primer/beta/popover.css +1 -1
  106. data/app/components/primer/beta/popover.css.map +1 -1
  107. data/app/components/primer/beta/popover.pcss +4 -4
  108. data/app/components/primer/beta/state.css +1 -1
  109. data/app/components/primer/beta/state.css.map +1 -1
  110. data/app/components/primer/beta/state.pcss +7 -7
  111. data/app/components/primer/beta/subhead.css +1 -1
  112. data/app/components/primer/beta/subhead.css.map +1 -1
  113. data/app/components/primer/beta/subhead.pcss +9 -9
  114. data/app/components/primer/beta/timeline_item.css +1 -1
  115. data/app/components/primer/beta/timeline_item.css.map +1 -1
  116. data/app/components/primer/beta/timeline_item.pcss +18 -18
  117. data/app/components/primer/beta/truncate.css +1 -1
  118. data/app/components/primer/beta/truncate.css.map +1 -1
  119. data/app/components/primer/beta/truncate.pcss +1 -1
  120. data/app/components/primer/focus_group.js +1 -10
  121. data/app/components/primer/focus_group.ts +1 -10
  122. data/app/components/primer/primer.d.ts +1 -0
  123. data/app/components/primer/primer.js +1 -0
  124. data/app/components/primer/primer.pcss +1 -0
  125. data/app/components/primer/primer.ts +1 -0
  126. data/lib/postcss_mixins/activeIndicatorLine.pcss +4 -4
  127. data/lib/primer/accessibility.rb +74 -0
  128. data/lib/primer/forms/form_control.html.erb +1 -1
  129. data/lib/primer/static/generate_previews.rb +15 -8
  130. data/lib/primer/view_components/linters/deprecated_components_counter.rb +37 -13
  131. data/lib/primer/view_components/version.rb +2 -2
  132. data/lib/primer/yard/lookbook_pages_backend.rb +3 -3
  133. data/previews/pages/forms/03_caption_templates.md.erb +1 -1
  134. data/previews/pages/forms/04_after_content.md.erb +1 -1
  135. data/previews/pages/forms/06_miscellaneous_inputs.md.erb +1 -1
  136. data/previews/pages/forms/07_toggle_switch_forms.md.erb +1 -1
  137. data/previews/primer/alpha/action_menu_preview/two_menus.html.erb +13 -0
  138. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +21 -0
  139. data/previews/primer/alpha/action_menu_preview.rb +5 -13
  140. data/previews/primer/alpha/button_marketing_preview.rb +3 -2
  141. data/previews/primer/alpha/dialog_preview.rb +4 -3
  142. data/previews/primer/alpha/hellip_button_preview.rb +3 -2
  143. data/previews/primer/alpha/nav_list_preview.rb +1 -1
  144. data/previews/primer/beta/base_button_preview.rb +9 -2
  145. data/previews/primer/beta/button_group_preview/action_menus.html.erb +8 -0
  146. data/previews/primer/beta/button_group_preview.rb +49 -11
  147. data/previews/primer/beta/button_preview/trailing_counter.html.erb +1 -1
  148. data/previews/primer/beta/button_preview.rb +5 -2
  149. data/previews/primer/beta/close_button_preview.rb +3 -2
  150. data/previews/primer/beta/details_preview.rb +11 -8
  151. data/previews/primer/forms_preview.rb +44 -0
  152. data/static/arguments.json +4 -4
  153. data/static/classes.json +378 -372
  154. data/static/constants.json +0 -1
  155. data/static/info_arch.json +5150 -1368
  156. data/static/previews.json +5197 -1433
  157. metadata +37 -29
  158. data/previews/primer/forms/forms_preview.rb +0 -48
  159. /data/previews/primer/{forms/forms_preview → forms_preview}/after_content_form.html.erb +0 -0
  160. /data/previews/primer/{forms/forms_preview → forms_preview}/array_check_box_group_form.html.erb +0 -0
  161. /data/previews/primer/{forms/forms_preview → forms_preview}/caption_template_form.html.erb +0 -0
  162. /data/previews/primer/{forms/forms_preview → forms_preview}/check_box_group_form.html.erb +0 -0
  163. /data/previews/primer/{forms/forms_preview → forms_preview}/check_box_with_nested_form.html.erb +0 -0
  164. /data/previews/primer/{forms/forms_preview → forms_preview}/composed_form.html.erb +0 -0
  165. /data/previews/primer/{forms/forms_preview → forms_preview}/example_toggle_switch_form.html.erb +0 -0
  166. /data/previews/primer/{forms/forms_preview → forms_preview}/horizontal_form.html.erb +0 -0
  167. /data/previews/primer/{forms/forms_preview → forms_preview}/immediate_validation_form.html.erb +0 -0
  168. /data/previews/primer/{forms/forms_preview → forms_preview}/invalid_form.html.erb +0 -0
  169. /data/previews/primer/{forms/forms_preview → forms_preview}/multi_input_form.html.erb +0 -0
  170. /data/previews/primer/{forms/forms_preview → forms_preview}/multi_text_field_form.html.erb +0 -0
  171. /data/previews/primer/{forms/forms_preview → forms_preview}/name_with_question_mark_form.html.erb +0 -0
  172. /data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_group_form.html.erb +0 -0
  173. /data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_with_nested_form.html.erb +0 -0
  174. /data/previews/primer/{forms/forms_preview → forms_preview}/select_form.html.erb +0 -0
  175. /data/previews/primer/{forms/forms_preview → forms_preview}/single_text_field_form.html.erb +0 -0
  176. /data/previews/primer/{forms/forms_preview → forms_preview}/submit_button_form.html.erb +0 -0
  177. /data/previews/primer/{forms/forms_preview → forms_preview}/text_field_and_checkbox_form.html.erb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fc0049327ce6689f3e96aadfd16f20977af7697d7c9a8ab3a78458ad6526716
4
- data.tar.gz: 3485b9e3cdbcc22ec4e4df8347f6d1aab58206225e72ea7d8ffa51d448b617a8
3
+ metadata.gz: 57fe49ec1bdc4feb70860edd88d98f67795e2c82ba78e1e2f4b27e5a4c090dfe
4
+ data.tar.gz: 2a2156d5287320bcae2e4e6a0500ed93ce4b9891a3e951ac10020383de79058f
5
5
  SHA512:
6
- metadata.gz: ff07055f38c33f61e0c8f1be6666a9d7b940f636ba4b63615d0bcc88d43f82dc760d1abd39779e6ac7028b0eec9d17de1f66e0f5ba67de5085540a3f921a2e11
7
- data.tar.gz: f1f6e002bc2e2ebeb5598906b4aae85d66ee6c874a5d8da1069614c3312c94876e2533fd590f04561145907eef7a6208687c8775a540ed47326a819088b727c7
6
+ metadata.gz: 2ad88804adfd95f446059c38aa16d47c80675737c7d13de582dd21491024d77795a34274fcae8a3e66d5f2fa6a31d0c83d4c8e7042da3bdb17ad6b2c51737da4
7
+ data.tar.gz: 85d15c556219d0d22634f3c4af9f41e12ad5dfa6d4696c3d301c551d95817cc4f862b7f53174756a870ae9052cc14974bb06206b2e2b3814fce27daac512ddaf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,56 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2060](https://github.com/primer/view_components/pull/2060) [`bc40f586`](https://github.com/primer/view_components/commit/bc40f586293a26e977a9b96e538aa5fe92ac5bb1) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: Move aria-checked to button
8
+
9
+ * [#2042](https://github.com/primer/view_components/pull/2042) [`9c53f8e0`](https://github.com/primer/view_components/commit/9c53f8e0c158e2f1c6618bf1a2635e4a41021fbb) Thanks [@camertron](https://github.com/camertron)! - Use polymorphic slots in ActionList and NavList
10
+
11
+ - [#2070](https://github.com/primer/view_components/pull/2070) [`04fc4f1b`](https://github.com/primer/view_components/commit/04fc4f1baec39993df468d0c9ca4a03803462186) Thanks [@camertron](https://github.com/camertron)! - Fix disabled button behavior
12
+
13
+ * [#2074](https://github.com/primer/view_components/pull/2074) [`b39eae8c`](https://github.com/primer/view_components/commit/b39eae8cd033089d3782c4552f9001a71eeceddf) Thanks [@camertron](https://github.com/camertron)! - Allow Beta::Details to be disabled
14
+
15
+ ### Patch Changes
16
+
17
+ - [#2055](https://github.com/primer/view_components/pull/2055) [`5911ff9c`](https://github.com/primer/view_components/commit/5911ff9c3e22e3b52e435a0b7ed54ea97358621c) Thanks [@keithamus](https://github.com/keithamus)! - Tweak Overlay CSS to account for cases where the browser supports :open, :popover-open, both, or neither.
18
+
19
+ * [#2008](https://github.com/primer/view_components/pull/2008) [`53190440`](https://github.com/primer/view_components/commit/531904404a962620cca734f1582f0771bd47a125) Thanks [@langermank](https://github.com/langermank)! - Update color vars for `Button` with counter
20
+
21
+ - [#2021](https://github.com/primer/view_components/pull/2021) [`7abf0965`](https://github.com/primer/view_components/commit/7abf09658d28640efe278bd00a3d1d03dab3e3e5) Thanks [@keithamus](https://github.com/keithamus)! - dont open dialog if button is aria-disabled
22
+
23
+ * [#2006](https://github.com/primer/view_components/pull/2006) [`7282911b`](https://github.com/primer/view_components/commit/7282911ba38b2f11681e2a558e189cf2e6174bd4) Thanks [@keithamus](https://github.com/keithamus)! - Fix ActionMenu staying open when focus moved, in browsers with native popover
24
+
25
+ - [#2075](https://github.com/primer/view_components/pull/2075) [`2eb286f2`](https://github.com/primer/view_components/commit/2eb286f2c3f5171b52c6e64b70e1602230fc6e75) Thanks [@camertron](https://github.com/camertron)! - NavList: Add aria-current to active nav item
26
+
27
+ * [#2077](https://github.com/primer/view_components/pull/2077) [`fe578c16`](https://github.com/primer/view_components/commit/fe578c166da02173680e4825113ede4c94b9be43) Thanks [@camertron](https://github.com/camertron)! - Don't use aria-disabled for buttons
28
+
29
+ - [#2013](https://github.com/primer/view_components/pull/2013) [`b7207d27`](https://github.com/primer/view_components/commit/b7207d27b23c77ea7280cc4175c6d665897e8e40) Thanks [@langermank](https://github.com/langermank)! - Update `ButtonGroup` to use `Beta::Button`
30
+
31
+ * [#2073](https://github.com/primer/view_components/pull/2073) [`c4ada3b1`](https://github.com/primer/view_components/commit/c4ada3b1d567f6e819f8321e71d977c16f3215eb) Thanks [@camertron](https://github.com/camertron)! - Fix text_field.pcss to use flex-start instead of start
32
+
33
+ - [#2032](https://github.com/primer/view_components/pull/2032) [`607889bc`](https://github.com/primer/view_components/commit/607889bc18c4a4ec98dd966940bb361d272f5f60) Thanks [@langermank](https://github.com/langermank)! - Bug fix: Text field validation wrap styles
34
+
35
+ * [#2069](https://github.com/primer/view_components/pull/2069) [`532095e9`](https://github.com/primer/view_components/commit/532095e957b072337ed1707ebc5289990b6d8d56) Thanks [@jalafel](https://github.com/jalafel)! - Add event.stopPropogation to enter event
36
+
37
+ - [#2071](https://github.com/primer/view_components/pull/2071) [`c0fa71ec`](https://github.com/primer/view_components/commit/c0fa71ecf718a184b73bdfae5c799efb755ece3d) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: don't swallow events attached via addEventListener
38
+
39
+ * [#2059](https://github.com/primer/view_components/pull/2059) [`bf60d7d7`](https://github.com/primer/view_components/commit/bf60d7d703752b9a6c096c8d1b1bd2fd0558a607) Thanks [@camertron](https://github.com/camertron)! - Fix keyboard functionality with deferred loading in ActionMenu
40
+
41
+ - [#2027](https://github.com/primer/view_components/pull/2027) [`f6d9fe97`](https://github.com/primer/view_components/commit/f6d9fe9741b66751a3c89cdfb5637a111ec4170b) Thanks [@keithamus](https://github.com/keithamus)! - ActionMenu: enable focussing first element on space activation
42
+
43
+ * [#2058](https://github.com/primer/view_components/pull/2058) [`3e50e06c`](https://github.com/primer/view_components/commit/3e50e06c308487b97aa5bf12bdc0c8eef66ba086) Thanks [@jonrohan](https://github.com/jonrohan)! - - Remove manual fallbacks for CSS vars
44
+ - Update PostCSS plugin to add fallbacks at build time
45
+
46
+ - [#2072](https://github.com/primer/view_components/pull/2072) [`70086f5e`](https://github.com/primer/view_components/commit/70086f5e3cbdd360cf85a34de34df83d063652d3) Thanks [@jonrohan](https://github.com/jonrohan)! - ButtonGroup: Change reset selector to use .Button class
47
+
48
+ * [#2025](https://github.com/primer/view_components/pull/2025) [`2d1f5074`](https://github.com/primer/view_components/commit/2d1f50747714706f93b8bc64495a56fb72b3e24e) Thanks [@strackoverflow](https://github.com/strackoverflow)! - Preserve aria-label when `Primer::Beta::IconButton` `show_tooltip` is false
49
+
50
+ - [#2023](https://github.com/primer/view_components/pull/2023) [`b47a3781`](https://github.com/primer/view_components/commit/b47a37811147af663358cb055fe9ac79701caf43) Thanks [@camertron](https://github.com/camertron)! - Bump popover-polyfill to latest version
51
+
52
+ * [#2033](https://github.com/primer/view_components/pull/2033) [`54ed872b`](https://github.com/primer/view_components/commit/54ed872bfb08b8fb07fb9fc9c057627419c601ca) Thanks [@langermank](https://github.com/langermank)! - Add `@primer/primitives` dependency to docs
53
+
3
54
  ## 0.1.9
4
55
 
5
56
  ### Patch Changes
data/README.md CHANGED
@@ -10,7 +10,7 @@ _Note: This library is under active pre-1.0 development. Breaking changes are li
10
10
 
11
11
  ## Documentation
12
12
 
13
- Visit [https://primer.style/view-components/](https://primer.style/view-components/) to view documentation.
13
+ Visit [https://primer.style/view_components/](https://primer.style/design/components/) to view documentation.
14
14
 
15
15
  ## License
16
16