primer_view_components 0.9.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +78 -0
  3. data/app/assets/javascripts/app/components/primer/primer.d.ts +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 -1
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/action_bar/item.rb +7 -4
  9. data/app/components/primer/alpha/action_bar.rb +2 -2
  10. data/app/components/primer/alpha/action_bar_element.js +2 -2
  11. data/app/components/primer/alpha/action_bar_element.ts +2 -2
  12. data/app/components/primer/alpha/action_menu/action_menu_element.js +170 -85
  13. data/app/components/primer/alpha/action_menu/action_menu_element.ts +206 -80
  14. data/app/components/primer/alpha/action_menu/list.rb +0 -2
  15. data/app/components/primer/alpha/check_box_group.rb +2 -0
  16. data/app/components/primer/alpha/dialog/header.rb +12 -0
  17. data/app/components/primer/alpha/dialog.rb +1 -1
  18. data/app/components/primer/alpha/nav_list/divider.rb +2 -5
  19. data/app/components/primer/alpha/nav_list/group.rb +2 -98
  20. data/app/components/primer/alpha/nav_list/heading.rb +2 -27
  21. data/app/components/primer/alpha/nav_list/item.rb +2 -147
  22. data/app/components/primer/alpha/nav_list.rb +2 -205
  23. data/app/components/primer/alpha/overlay.css +1 -1
  24. data/app/components/primer/alpha/overlay.css.map +1 -1
  25. data/app/components/primer/alpha/overlay.pcss +1 -7
  26. data/app/components/primer/alpha/overlay.rb +6 -4
  27. data/app/components/primer/alpha/radio_button_group.rb +2 -0
  28. data/app/components/primer/alpha/text_field.css +1 -1
  29. data/app/components/primer/alpha/text_field.css.json +4 -1
  30. data/app/components/primer/alpha/text_field.css.map +1 -1
  31. data/app/components/primer/alpha/text_field.pcss +18 -3
  32. data/app/components/primer/alpha/tooltip.rb +3 -1
  33. data/app/components/primer/beta/button.css +1 -1
  34. data/app/components/primer/beta/button.css.json +2 -0
  35. data/app/components/primer/beta/button.css.map +1 -1
  36. data/app/components/primer/beta/button.pcss +11 -3
  37. data/app/components/primer/beta/icon_button.html.erb +1 -1
  38. data/app/components/primer/beta/icon_button.rb +8 -1
  39. data/app/components/primer/beta/link.css +1 -1
  40. data/app/components/primer/beta/link.css.json +1 -0
  41. data/app/components/primer/beta/link.css.map +1 -1
  42. data/app/components/primer/beta/link.pcss +5 -0
  43. data/app/components/primer/beta/link.rb +2 -2
  44. data/app/components/primer/beta/nav_list/divider.rb +14 -0
  45. data/app/components/primer/beta/nav_list/group.rb +107 -0
  46. data/app/components/primer/beta/nav_list/heading.rb +36 -0
  47. data/app/components/primer/beta/nav_list/item.rb +156 -0
  48. data/app/components/primer/beta/nav_list.rb +212 -0
  49. data/app/components/primer/focus_group.js +30 -4
  50. data/app/components/primer/focus_group.ts +29 -2
  51. data/app/components/primer/primer.d.ts +1 -1
  52. data/app/components/primer/primer.js +1 -1
  53. data/app/components/primer/primer.ts +1 -1
  54. data/app/helpers/primer/form_helper.rb +10 -0
  55. data/lib/primer/deprecations.yml +20 -0
  56. data/lib/primer/forms/check_box_group.html.erb +3 -0
  57. data/lib/primer/forms/dsl/check_box_group_input.rb +1 -5
  58. data/lib/primer/forms/dsl/check_box_input.rb +5 -0
  59. data/lib/primer/forms/dsl/radio_button_input.rb +5 -0
  60. data/lib/primer/forms/form_control.html.erb +1 -4
  61. data/lib/primer/forms/radio_button_group.html.erb +3 -0
  62. data/lib/primer/forms/utils.rb +2 -0
  63. data/lib/primer/forms/validation_message.html.erb +4 -0
  64. data/lib/primer/forms/validation_message.rb +14 -0
  65. data/lib/primer/forms.rb +16 -0
  66. data/lib/primer/view_components/version.rb +1 -1
  67. data/lib/primer/yard/component_manifest.rb +4 -0
  68. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +5 -4
  69. data/previews/primer/alpha/action_menu_preview.rb +4 -1
  70. data/previews/primer/alpha/check_box_group_preview.rb +13 -0
  71. data/previews/primer/alpha/dialog_preview/with_header.html.erb +5 -0
  72. data/previews/primer/alpha/dialog_preview.rb +17 -0
  73. data/previews/primer/alpha/overlay_preview.rb +1 -1
  74. data/previews/primer/alpha/radio_button_group_preview.rb +13 -0
  75. data/previews/primer/alpha/radio_button_preview.rb +1 -1
  76. data/previews/primer/alpha/text_field_preview/input_group_leading_action_menu.html.erb +21 -0
  77. data/previews/primer/alpha/text_field_preview/input_group_leading_button.html.erb +18 -0
  78. data/previews/primer/alpha/text_field_preview/input_group_trailing_button.html.erb +18 -0
  79. data/previews/primer/alpha/text_field_preview.rb +21 -0
  80. data/previews/primer/beta/button_preview.rb +1 -1
  81. data/previews/primer/{alpha → beta}/nav_list_preview/trailing_action.html.erb +1 -1
  82. data/previews/primer/{alpha → beta}/nav_list_preview.rb +5 -5
  83. data/static/arguments.json +194 -7
  84. data/static/audited_at.json +5 -0
  85. data/static/classes.json +3 -0
  86. data/static/constants.json +23 -0
  87. data/static/info_arch.json +1015 -527
  88. data/static/previews.json +85 -7
  89. data/static/statuses.json +10 -5
  90. metadata +23 -11
  91. /data/app/assets/javascripts/app/components/primer/{alpha → beta}/nav_list.d.ts +0 -0
  92. /data/app/components/primer/{alpha → beta}/nav_list/group.html.erb +0 -0
  93. /data/app/components/primer/{alpha → beta}/nav_list/item.html.erb +0 -0
  94. /data/app/components/primer/{alpha → beta}/nav_list.d.ts +0 -0
  95. /data/app/components/primer/{alpha → beta}/nav_list.html.erb +0 -0
  96. /data/app/components/primer/{alpha → beta}/nav_list.js +0 -0
  97. /data/app/components/primer/{alpha → beta}/nav_list.ts +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9535eb3bb448d2b8e7b4c9334af8df24d77455fd36634380bb860c1ec15b01f
4
- data.tar.gz: 37538037c2bd89f15d5d84d8446b0dcc6c09dbb69feac95f622a225b7bb31e39
3
+ metadata.gz: f48107c8d70bf5013cb17f594e7aacf039b6ee04511de34aba3a1dd536a09cd9
4
+ data.tar.gz: 7b5774525d9a69246b0aad997cb03ac9c413c10071f8583341ead8ffe0b4188a
5
5
  SHA512:
6
- metadata.gz: e8138ef11ce73f12dd5d188d75e90eea6ea961b57554ee95ef67dbd8e71e8e6943a65f7332477f0e82a496a25a182ec453d3b297324393f45fc79fffcbdcf5b5
7
- data.tar.gz: 221801ee922bb45bbe62aaa0c8a8664df2ebaac6b34ea9132c867e5e461f41e67e5b76df37a48e77d116fc45cd8e2f4b5f7f810ce73db3a093bda299a8553aeb
6
+ metadata.gz: 593249fcdf817fd9df568a8aa97ea00fec9e901fbfebdb6411de1d521a11b549e6f91bb0314512e644af86618276197326befaa6f2a227cb84c986c666e3ae8e
7
+ data.tar.gz: 96c27005ca0e11bb53edc19ab6821b8d54e8137dd24efce0f7340ca88cee67ba1b5ab037d5708c4766390024b68b087890913856645b57dad4fd7b39562d736e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,83 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2276](https://github.com/primer/view_components/pull/2276) [`7184d76e`](https://github.com/primer/view_components/commit/7184d76edbe94b008158940d15909b1778c9ed8c) Thanks [@jonrohan](https://github.com/jonrohan)! - Adding option item_arguments hash argument to ActionBar::Item that will control the item system arguments
8
+
9
+ <!-- Changed components: Primer::Alpha::ActionBar -->
10
+
11
+ - [#2259](https://github.com/primer/view_components/pull/2259) [`a2fe6134`](https://github.com/primer/view_components/commit/a2fe61342b2f3527533902d845f5a9d500d6910c) Thanks [@TylerJDev](https://github.com/TylerJDev)! - \* Includes ActionMenu in ActionBar focus trap when present.
12
+
13
+ - Adjusts `focus_group.ts` to set `tabindex="0"` back to invoker if it is non-focusable.
14
+ - Prevents popover invokers from being triggered with 'left' and 'right' arrow keys.
15
+
16
+ <!-- Changed components: Primer::Alpha::ActionBar, Primer::Alpha::ActionMenu -->
17
+
18
+ ### Patch Changes
19
+
20
+ - [#2260](https://github.com/primer/view_components/pull/2260) [`b584a6b5`](https://github.com/primer/view_components/commit/b584a6b57e07b4def45bd30e90bf31203e7b7010) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: hide the menu when focus leaves the component; focus the first list item when the menu is activated with the mouse; allow disabling list items while still permitting them to be focused with the keyboard
21
+
22
+ <!-- Changed components: Primer::Alpha::ActionMenu -->
23
+
24
+ ## 0.10.0
25
+
26
+ ### Minor Changes
27
+
28
+ - [#2240](https://github.com/primer/view_components/pull/2240) [`512fc39e`](https://github.com/primer/view_components/commit/512fc39eef56321e2f2001604b4c4c89ca656c63) Thanks [@camertron](https://github.com/camertron)! - Allow anonymous forms, mostly useful for tests
29
+
30
+ <!-- Changed components: _none_ -->
31
+
32
+ - [#2241](https://github.com/primer/view_components/pull/2241) [`3f7e6198`](https://github.com/primer/view_components/commit/3f7e61989c31a19fafc07b01ca48d5554ab269de) Thanks [@camertron](https://github.com/camertron)! - Enable validation messages on radio button and check box groups
33
+
34
+ <!-- Changed components: Primer::Alpha::CheckBoxGroup, Primer::Alpha::RadioButtonGroup -->
35
+
36
+ - [#2247](https://github.com/primer/view_components/pull/2247) [`09648632`](https://github.com/primer/view_components/commit/09648632c5b083b87f03e006e38f303bd75bc9cc) Thanks [@jonrohan](https://github.com/jonrohan)! - Graduate NavList to beta status
37
+
38
+ <!-- Changed components: Primer::Alpha::NavList, Primer::Beta::NavList -->
39
+
40
+ - [#2251](https://github.com/primer/view_components/pull/2251) [`4a51102d`](https://github.com/primer/view_components/commit/4a51102d49c57ac0caaafa54e1c422afc66dd8ca) Thanks [@camertron](https://github.com/camertron)! - Add header variant to Dialog
41
+
42
+ <!-- Changed components: Primer::Alpha::Dialog -->
43
+
44
+ ### Patch Changes
45
+
46
+ - [#2256](https://github.com/primer/view_components/pull/2256) [`fd17adfd`](https://github.com/primer/view_components/commit/fd17adfd1cca6d034d3063b3ac7ab107b1725a8d) Thanks [@langermank](https://github.com/langermank)! - Fix disabled styles for radio
47
+
48
+ <!-- Changed components: _none_ -->
49
+
50
+ - [#2250](https://github.com/primer/view_components/pull/2250) [`66c4dd69`](https://github.com/primer/view_components/commit/66c4dd6936b386caa42868beef9ea1b33f84b11b) Thanks [@langermank](https://github.com/langermank)! - - Improve contrast for icons in `invisible` button on hover in dark mode (within v8 colors)
51
+
52
+ - Fix disabled button styles (v8 colors)
53
+ - Bump Primitives to latest
54
+
55
+ <!-- Changed components: Primer::Beta::Button -->
56
+
57
+ - [#2242](https://github.com/primer/view_components/pull/2242) [`bc254f13`](https://github.com/primer/view_components/commit/bc254f135eeb57b9872665d5e8ce1c30a8208f33) Thanks [@keithamus](https://github.com/keithamus)! - Remove background from anchored-position
58
+
59
+ <!-- Changed components: Primer::Alpha::ActionMenu, Primer::Alpha::Overlay -->
60
+
61
+ - [#2249](https://github.com/primer/view_components/pull/2249) [`1209d241`](https://github.com/primer/view_components/commit/1209d2415c944796741c57150b8a41679d634fe5) Thanks [@camertron](https://github.com/camertron)! - Fix underline behavior in Link component
62
+
63
+ <!-- Changed components: Primer::Beta::Link -->
64
+
65
+ - [#2254](https://github.com/primer/view_components/pull/2254) [`cdb9fe4d`](https://github.com/primer/view_components/commit/cdb9fe4d2e5d4c49c0aa4c76567709d9ac58ac7a) Thanks [@keithamus](https://github.com/keithamus)! - Only supply aria-label on Overlays with a role assigned
66
+
67
+ <!-- Changed components: Primer::Alpha::ActionMenu, Primer::Alpha::Overlay -->
68
+
69
+ - [#2245](https://github.com/primer/view_components/pull/2245) [`495f911c`](https://github.com/primer/view_components/commit/495f911c5c4be2d8722dbb811eacc23a35e7d36a) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Fix bug in ActionMenu keyboard navigation, where items aren't skipped when they're functionally `[hidden]`.
70
+
71
+ <!-- Changed components: Primer::Alpha::ActionMenu -->
72
+
73
+ - [#2244](https://github.com/primer/view_components/pull/2244) [`3c5fb3a7`](https://github.com/primer/view_components/commit/3c5fb3a70df51e10e720b97422678aa0b19a256e) Thanks [@camertron](https://github.com/camertron)! - Fix race condition causing dotcom axe check failures for icon button tooltips
74
+
75
+ <!-- Changed components: Primer::Alpha::Tooltip, Primer::Beta::IconButton -->
76
+
77
+ - [#2248](https://github.com/primer/view_components/pull/2248) [`9885a5d8`](https://github.com/primer/view_components/commit/9885a5d8566df6c6b0dc165986c7cf60f051299a) Thanks [@keithamus](https://github.com/keithamus)! - Update popover support in older browsers.
78
+
79
+ <!-- Changed components: Primer::Alpha::ActionMenu, Primer::Alpha::Overlay -->
80
+
3
81
  ## 0.9.0
4
82
 
5
83
  ### Minor Changes
@@ -6,7 +6,7 @@ import './anchored_position';
6
6
  import './focus_group';
7
7
  import './alpha/image_crop';
8
8
  import './alpha/modal_dialog';
9
- import './alpha/nav_list';
9
+ import './beta/nav_list';
10
10
  import './alpha/segmented_control';
11
11
  import './alpha/toggle_switch';
12
12
  import './alpha/tool_tip';