openproject-primer_view_components 0.10.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +87 -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_menu/action_menu_element.js +2 -1
  9. data/app/components/primer/alpha/action_menu/action_menu_element.ts +2 -1
  10. data/app/components/primer/alpha/check_box_group.rb +2 -0
  11. data/app/components/primer/alpha/dialog/header.rb +12 -0
  12. data/app/components/primer/alpha/dialog.rb +1 -1
  13. data/app/components/primer/alpha/nav_list/divider.rb +2 -5
  14. data/app/components/primer/alpha/nav_list/group.rb +2 -98
  15. data/app/components/primer/alpha/nav_list/heading.rb +2 -27
  16. data/app/components/primer/alpha/nav_list/item.rb +2 -147
  17. data/app/components/primer/alpha/nav_list.rb +2 -205
  18. data/app/components/primer/alpha/overlay.css +1 -1
  19. data/app/components/primer/alpha/overlay.css.map +1 -1
  20. data/app/components/primer/alpha/overlay.pcss +1 -7
  21. data/app/components/primer/alpha/overlay.rb +6 -4
  22. data/app/components/primer/alpha/radio_button_group.rb +2 -0
  23. data/app/components/primer/alpha/text_field.css +1 -1
  24. data/app/components/primer/alpha/text_field.css.json +4 -1
  25. data/app/components/primer/alpha/text_field.css.map +1 -1
  26. data/app/components/primer/alpha/text_field.pcss +18 -3
  27. data/app/components/primer/alpha/tooltip.rb +3 -1
  28. data/app/components/primer/beta/button.css +1 -1
  29. data/app/components/primer/beta/button.css.json +2 -0
  30. data/app/components/primer/beta/button.css.map +1 -1
  31. data/app/components/primer/beta/button.pcss +11 -3
  32. data/app/components/primer/beta/icon_button.html.erb +1 -1
  33. data/app/components/primer/beta/icon_button.rb +8 -1
  34. data/app/components/primer/beta/link.css +1 -1
  35. data/app/components/primer/beta/link.css.json +1 -0
  36. data/app/components/primer/beta/link.css.map +1 -1
  37. data/app/components/primer/beta/link.pcss +5 -0
  38. data/app/components/primer/beta/link.rb +2 -2
  39. data/app/components/primer/beta/nav_list/divider.rb +14 -0
  40. data/app/components/primer/beta/nav_list/group.rb +107 -0
  41. data/app/components/primer/beta/nav_list/heading.rb +36 -0
  42. data/app/components/primer/beta/nav_list/item.rb +156 -0
  43. data/app/components/primer/beta/nav_list.rb +212 -0
  44. data/app/components/primer/focus_group.js +2 -1
  45. data/app/components/primer/focus_group.ts +2 -1
  46. data/app/components/primer/open_project/border_grid/cell.html.erb +3 -0
  47. data/app/components/primer/open_project/border_grid/cell.rb +25 -0
  48. data/app/components/primer/open_project/border_grid.css +1 -0
  49. data/app/components/primer/open_project/border_grid.css.json +11 -0
  50. data/app/components/primer/open_project/border_grid.css.map +1 -0
  51. data/app/components/primer/open_project/border_grid.html.erb +7 -0
  52. data/app/components/primer/open_project/border_grid.pcss +35 -0
  53. data/app/components/primer/open_project/border_grid.rb +36 -0
  54. data/app/components/primer/open_project/drag_handle.css +1 -0
  55. data/app/components/primer/open_project/drag_handle.css.json +6 -0
  56. data/app/components/primer/open_project/drag_handle.css.map +1 -0
  57. data/app/components/primer/open_project/drag_handle.html.erb +6 -0
  58. data/app/components/primer/open_project/drag_handle.pcss +6 -0
  59. data/app/components/primer/open_project/drag_handle.rb +28 -0
  60. data/app/components/primer/open_project/flex_layout.html.erb +23 -0
  61. data/app/components/primer/open_project/flex_layout.rb +52 -0
  62. data/app/components/primer/open_project/grid_layout/area.rb +38 -0
  63. data/app/components/primer/open_project/grid_layout.html.erb +11 -0
  64. data/app/components/primer/open_project/grid_layout.rb +34 -0
  65. data/app/components/primer/open_project/page_header.css +1 -1
  66. data/app/components/primer/open_project/page_header.css.map +1 -1
  67. data/app/components/primer/open_project/page_header.pcss +4 -0
  68. data/app/components/primer/primer.d.ts +1 -1
  69. data/app/components/primer/primer.js +1 -1
  70. data/app/components/primer/primer.pcss +2 -0
  71. data/app/components/primer/primer.ts +1 -1
  72. data/app/helpers/primer/form_helper.rb +10 -0
  73. data/lib/primer/deprecations.yml +20 -0
  74. data/lib/primer/forms/check_box_group.html.erb +3 -0
  75. data/lib/primer/forms/dsl/check_box_group_input.rb +1 -5
  76. data/lib/primer/forms/dsl/check_box_input.rb +5 -0
  77. data/lib/primer/forms/dsl/radio_button_input.rb +5 -0
  78. data/lib/primer/forms/form_control.html.erb +1 -4
  79. data/lib/primer/forms/radio_button_group.html.erb +3 -0
  80. data/lib/primer/forms/utils.rb +2 -0
  81. data/lib/primer/forms/validation_message.html.erb +4 -0
  82. data/lib/primer/forms/validation_message.rb +14 -0
  83. data/lib/primer/forms.rb +16 -0
  84. data/lib/primer/view_components/version.rb +2 -2
  85. data/lib/primer/yard/component_manifest.rb +4 -0
  86. data/previews/primer/alpha/check_box_group_preview.rb +13 -0
  87. data/previews/primer/alpha/dialog_preview/with_header.html.erb +5 -0
  88. data/previews/primer/alpha/dialog_preview.rb +17 -0
  89. data/previews/primer/alpha/overlay_preview.rb +1 -1
  90. data/previews/primer/alpha/radio_button_group_preview.rb +13 -0
  91. data/previews/primer/alpha/radio_button_preview.rb +1 -1
  92. data/previews/primer/alpha/text_field_preview/input_group_leading_action_menu.html.erb +21 -0
  93. data/previews/primer/alpha/text_field_preview/input_group_leading_button.html.erb +18 -0
  94. data/previews/primer/alpha/text_field_preview/input_group_trailing_button.html.erb +18 -0
  95. data/previews/primer/alpha/text_field_preview.rb +21 -0
  96. data/previews/primer/beta/button_preview.rb +1 -1
  97. data/previews/primer/{alpha → beta}/nav_list_preview/trailing_action.html.erb +1 -1
  98. data/previews/primer/{alpha → beta}/nav_list_preview.rb +5 -5
  99. data/previews/primer/open_project/border_grid_preview.rb +42 -0
  100. data/previews/primer/open_project/drag_handle_preview.rb +23 -0
  101. data/previews/primer/open_project/flex_layout_preview.rb +73 -0
  102. data/previews/primer/open_project/grid_layout_preview.rb +37 -0
  103. data/static/arguments.json +314 -6
  104. data/static/audited_at.json +11 -0
  105. data/static/classes.json +18 -0
  106. data/static/constants.json +48 -0
  107. data/static/info_arch.json +1867 -955
  108. data/static/previews.json +273 -7
  109. data/static/statuses.json +16 -5
  110. metadata +46 -11
  111. /data/app/assets/javascripts/app/components/primer/{alpha → beta}/nav_list.d.ts +0 -0
  112. /data/app/components/primer/{alpha → beta}/nav_list/group.html.erb +0 -0
  113. /data/app/components/primer/{alpha → beta}/nav_list/item.html.erb +0 -0
  114. /data/app/components/primer/{alpha → beta}/nav_list.d.ts +0 -0
  115. /data/app/components/primer/{alpha → beta}/nav_list.html.erb +0 -0
  116. /data/app/components/primer/{alpha → beta}/nav_list.js +0 -0
  117. /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: 72ca823337f4d723d643d53296f508372124c9edb6f822bd305bd88780954d9c
4
- data.tar.gz: cf0658ccd772fd39061ab945717f841422e8a3f701222dcd6cb54dcfc614c6a9
3
+ metadata.gz: 454a14550b5bf7628631c0cecc2365cdc910843884bb111eba2ea249af688b6a
4
+ data.tar.gz: 84336d1f818b4644f28a9e9455345159e9b116706daa46f1ec3cdede23a159b1
5
5
  SHA512:
6
- metadata.gz: 55412b39598e67c9d0708e0b09a464d4c138fedb57d26fd2596bf1caa024700b61ea0208f5f17727deaad097cb09ad9305f85310ea9758924357572545736ab3
7
- data.tar.gz: 24dc87933bdf299ef660a6fbc72726311cd9ba05f7255d58a8a56c8db994020cb95dd296e4bfac497e85c6eed280fb7ef5f85eea4e1143da3e2e2517df2f16ef
6
+ metadata.gz: fc8ba43208e095e6187aa38e89a19f105aabdda611df41fc81e1a5e5423519a84cf93269bc5d1e669f2e06f1d67e290b7cd632f40fa22e53a88693544fc84e3e
7
+ data.tar.gz: 6a1f8dffa64e11eb12959e156aa224092e6cd113da673831d380ab6a55bbe05021a93608d6b1f8b138e9f26788fae7bd8e19a11a42bcb70ff58ade1e91f2cca0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,92 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#39](https://github.com/opf/primer_view_components/pull/39) [`95b40c0e`](https://github.com/opf/primer_view_components/commit/95b40c0e31658a3331b04f14618c75129fff4d08) Thanks [@HDinger](https://github.com/HDinger)! - Update docs for setup instructions
8
+
9
+ <!-- Changed components: _none_ -->
10
+
11
+ ## 0.12.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#36](https://github.com/opf/primer_view_components/pull/36) [`cfa8b633`](https://github.com/opf/primer_view_components/commit/cfa8b633d7718abdb6ca5a54389fff542951c4d4) Thanks [@HDinger](https://github.com/HDinger)! - - Add FlexLayout Component
16
+
17
+ - Add GridLayout Component
18
+
19
+ <!-- Changed components: Primer::OpenProject::FlexLayout, Primer::OpenProject::GridLayout -->
20
+
21
+ - [#2240](https://github.com/primer/view_components/pull/2240) [`512fc39e`](https://github.com/opf/primer_view_components/commit/512fc39eef56321e2f2001604b4c4c89ca656c63) Thanks [@camertron](https://github.com/camertron)! - Allow anonymous forms, mostly useful for tests
22
+
23
+ <!-- Changed components: _none_ -->
24
+
25
+ - [#2241](https://github.com/primer/view_components/pull/2241) [`3f7e6198`](https://github.com/opf/primer_view_components/commit/3f7e61989c31a19fafc07b01ca48d5554ab269de) Thanks [@camertron](https://github.com/camertron)! - Enable validation messages on radio button and check box groups
26
+
27
+ <!-- Changed components: Primer::Alpha::CheckBoxGroup, Primer::Alpha::RadioButtonGroup -->
28
+
29
+ - [#2247](https://github.com/primer/view_components/pull/2247) [`09648632`](https://github.com/opf/primer_view_components/commit/09648632c5b083b87f03e006e38f303bd75bc9cc) Thanks [@jonrohan](https://github.com/jonrohan)! - Graduate NavList to beta status
30
+
31
+ <!-- Changed components: Primer::Alpha::NavList, Primer::Beta::NavList -->
32
+
33
+ - [#2251](https://github.com/primer/view_components/pull/2251) [`4a51102d`](https://github.com/opf/primer_view_components/commit/4a51102d49c57ac0caaafa54e1c422afc66dd8ca) Thanks [@camertron](https://github.com/camertron)! - Add header variant to Dialog
34
+
35
+ <!-- Changed components: Primer::Alpha::Dialog -->
36
+
37
+ ### Patch Changes
38
+
39
+ - [#2256](https://github.com/primer/view_components/pull/2256) [`fd17adfd`](https://github.com/opf/primer_view_components/commit/fd17adfd1cca6d034d3063b3ac7ab107b1725a8d) Thanks [@langermank](https://github.com/langermank)! - Fix disabled styles for radio
40
+
41
+ <!-- Changed components: _none_ -->
42
+
43
+ - [#2250](https://github.com/primer/view_components/pull/2250) [`66c4dd69`](https://github.com/opf/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)
44
+
45
+ - Fix disabled button styles (v8 colors)
46
+ - Bump Primitives to latest
47
+
48
+ <!-- Changed components: Primer::Beta::Button -->
49
+
50
+ - [#2242](https://github.com/primer/view_components/pull/2242) [`bc254f13`](https://github.com/opf/primer_view_components/commit/bc254f135eeb57b9872665d5e8ce1c30a8208f33) Thanks [@keithamus](https://github.com/keithamus)! - Remove background from anchored-position
51
+
52
+ <!-- Changed components: Primer::Alpha::ActionMenu, Primer::Alpha::Overlay -->
53
+
54
+ - [#2249](https://github.com/primer/view_components/pull/2249) [`1209d241`](https://github.com/opf/primer_view_components/commit/1209d2415c944796741c57150b8a41679d634fe5) Thanks [@camertron](https://github.com/camertron)! - Fix underline behavior in Link component
55
+
56
+ <!-- Changed components: Primer::Beta::Link -->
57
+
58
+ - [#2254](https://github.com/primer/view_components/pull/2254) [`cdb9fe4d`](https://github.com/opf/primer_view_components/commit/cdb9fe4d2e5d4c49c0aa4c76567709d9ac58ac7a) Thanks [@keithamus](https://github.com/keithamus)! - Only supply aria-label on Overlays with a role assigned
59
+
60
+ <!-- Changed components: Primer::Alpha::ActionMenu, Primer::Alpha::Overlay -->
61
+
62
+ - [#37](https://github.com/opf/primer_view_components/pull/37) [`a5979b8b`](https://github.com/opf/primer_view_components/commit/a5979b8b1a9d44b5902ad2492cdfe39f0e0b2fbd) Thanks [@HDinger](https://github.com/HDinger)! - Don't show a border for PageHeaders on mobile
63
+
64
+ <!-- Changed components: Primer::OpenProject::PageHeader -->
65
+
66
+ - [#2245](https://github.com/primer/view_components/pull/2245) [`495f911c`](https://github.com/opf/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]`.
67
+
68
+ <!-- Changed components: Primer::Alpha::ActionMenu -->
69
+
70
+ - [#2244](https://github.com/primer/view_components/pull/2244) [`3c5fb3a7`](https://github.com/opf/primer_view_components/commit/3c5fb3a70df51e10e720b97422678aa0b19a256e) Thanks [@camertron](https://github.com/camertron)! - Fix race condition causing dotcom axe check failures for icon button tooltips
71
+
72
+ <!-- Changed components: Primer::Alpha::Tooltip, Primer::Beta::IconButton -->
73
+
74
+ - [#2248](https://github.com/primer/view_components/pull/2248) [`9885a5d8`](https://github.com/opf/primer_view_components/commit/9885a5d8566df6c6b0dc165986c7cf60f051299a) Thanks [@keithamus](https://github.com/keithamus)! - Update popover support in older browsers.
75
+
76
+ <!-- Changed components: Primer::Alpha::ActionMenu, Primer::Alpha::Overlay -->
77
+
78
+ ## 0.11.0
79
+
80
+ ### Minor Changes
81
+
82
+ - [#32](https://github.com/opf/primer_view_components/pull/32) [`12ff42e3`](https://github.com/opf/primer_view_components/commit/12ff42e354da1e165de8ec13b0829693a612b556) Thanks [@HDinger](https://github.com/HDinger)! - Add BorderGrid Component
83
+
84
+ <!-- Changed components: Primer::OpenProject::BorderGrid -->
85
+
86
+ - [#30](https://github.com/opf/primer_view_components/pull/30) [`398eeaf7`](https://github.com/opf/primer_view_components/commit/398eeaf78ae6d8f9a24d6ba7c211e05a30ed7973) Thanks [@HDinger](https://github.com/HDinger)! - Add DragHandle component
87
+
88
+ <!-- Changed components: Primer::OpenProject::DragHandle -->
89
+
3
90
  ## 0.10.0
4
91
 
5
92
  ### 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';