openproject-primer_view_components 0.6.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +13 -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.rb +0 -7
  9. data/app/components/primer/alpha/action_list.css +1 -1
  10. data/app/components/primer/alpha/action_list.css.json +1 -0
  11. data/app/components/primer/alpha/action_list.css.map +1 -1
  12. data/app/components/primer/alpha/action_list.pcss +6 -0
  13. data/app/components/primer/alpha/action_menu/action_menu_element.js +37 -6
  14. data/app/components/primer/alpha/action_menu/action_menu_element.ts +39 -5
  15. data/app/components/primer/alpha/action_menu.rb +0 -269
  16. data/app/components/primer/alpha/auto_complete/item.rb +0 -12
  17. data/app/components/primer/alpha/auto_complete.css +1 -1
  18. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  19. data/app/components/primer/alpha/auto_complete.rb +0 -47
  20. data/app/components/primer/alpha/banner.css +1 -1
  21. data/app/components/primer/alpha/banner.css.map +1 -1
  22. data/app/components/primer/alpha/banner.rb +0 -31
  23. data/app/components/primer/alpha/button_marketing.rb +0 -12
  24. data/app/components/primer/alpha/dialog.css +1 -1
  25. data/app/components/primer/alpha/dialog.css.map +1 -1
  26. data/app/components/primer/alpha/dialog.rb +2 -18
  27. data/app/components/primer/alpha/dropdown.css +1 -1
  28. data/app/components/primer/alpha/dropdown.css.map +1 -1
  29. data/app/components/primer/alpha/dropdown.rb +0 -105
  30. data/app/components/primer/alpha/form_control.rb +0 -11
  31. data/app/components/primer/alpha/hellip_button.rb +0 -9
  32. data/app/components/primer/alpha/hidden_text_expander.rb +0 -9
  33. data/app/components/primer/alpha/image.rb +0 -16
  34. data/app/components/primer/alpha/image_crop.rb +0 -11
  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 +1 -1
  38. data/app/components/primer/alpha/layout.rb +0 -118
  39. data/app/components/primer/alpha/menu.css +1 -1
  40. data/app/components/primer/alpha/menu.css.map +1 -1
  41. data/app/components/primer/alpha/menu.rb +0 -19
  42. data/app/components/primer/alpha/multi_input.rb +0 -33
  43. data/app/components/primer/alpha/nav_list.rb +0 -69
  44. data/app/components/primer/alpha/navigation/tab.rb +0 -35
  45. data/app/components/primer/alpha/octicon_symbols.rb +0 -6
  46. data/app/components/primer/alpha/overlay.rb +0 -14
  47. data/app/components/primer/alpha/segmented_control.css +1 -1
  48. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  49. data/app/components/primer/alpha/segmented_control.rb +0 -61
  50. data/app/components/primer/alpha/tab_container.rb +0 -18
  51. data/app/components/primer/alpha/tab_nav.css +1 -1
  52. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  53. data/app/components/primer/alpha/tab_nav.rb +0 -63
  54. data/app/components/primer/alpha/tab_panels.rb +0 -16
  55. data/app/components/primer/alpha/text_field.css +1 -1
  56. data/app/components/primer/alpha/text_field.css.map +1 -1
  57. data/app/components/primer/alpha/text_field.rb +0 -68
  58. data/app/components/primer/alpha/toggle_switch.css +1 -1
  59. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  60. data/app/components/primer/alpha/toggle_switch.rb +0 -18
  61. data/app/components/primer/alpha/tooltip.rb +1 -69
  62. data/app/components/primer/alpha/underline_nav.css +1 -1
  63. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  64. data/app/components/primer/alpha/underline_nav.rb +0 -61
  65. data/app/components/primer/alpha/underline_panels.rb +0 -19
  66. data/app/components/primer/beta/auto_complete/item.rb +0 -8
  67. data/app/components/primer/beta/auto_complete.rb +0 -56
  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.rb +0 -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.rb +0 -21
  74. data/app/components/primer/beta/base_button.rb +0 -4
  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.rb +0 -104
  78. data/app/components/primer/beta/border_box/header.rb +4 -11
  79. data/app/components/primer/beta/border_box.css +1 -1
  80. data/app/components/primer/beta/border_box.css.map +1 -1
  81. data/app/components/primer/beta/border_box.html.erb +2 -2
  82. data/app/components/primer/beta/border_box.rb +11 -55
  83. data/app/components/primer/beta/breadcrumbs.rb +0 -7
  84. data/app/components/primer/beta/button.css +1 -1
  85. data/app/components/primer/beta/button.css.json +1 -0
  86. data/app/components/primer/beta/button.css.map +1 -1
  87. data/app/components/primer/beta/button.pcss +6 -2
  88. data/app/components/primer/beta/button.rb +6 -43
  89. data/app/components/primer/beta/button_group.css +1 -1
  90. data/app/components/primer/beta/button_group.css.map +1 -1
  91. data/app/components/primer/beta/button_group.rb +0 -16
  92. data/app/components/primer/beta/clipboard_copy.rb +0 -12
  93. data/app/components/primer/beta/close_button.rb +0 -3
  94. data/app/components/primer/beta/counter.rb +0 -8
  95. data/app/components/primer/beta/details.rb +0 -11
  96. data/app/components/primer/beta/flash.css +1 -1
  97. data/app/components/primer/beta/flash.css.map +1 -1
  98. data/app/components/primer/beta/flash.html.erb +1 -3
  99. data/app/components/primer/beta/flash.pcss +1 -2
  100. data/app/components/primer/beta/flash.rb +1 -23
  101. data/app/components/primer/beta/heading.rb +0 -8
  102. data/app/components/primer/beta/icon_button.rb +0 -21
  103. data/app/components/primer/beta/label.css +1 -1
  104. data/app/components/primer/beta/label.css.map +1 -1
  105. data/app/components/primer/beta/label.rb +0 -20
  106. data/app/components/primer/beta/link.rb +0 -22
  107. data/app/components/primer/beta/markdown.rb +1 -262
  108. data/app/components/primer/beta/octicon.rb +0 -10
  109. data/app/components/primer/beta/popover.css +1 -1
  110. data/app/components/primer/beta/popover.css.map +1 -1
  111. data/app/components/primer/beta/popover.rb +0 -43
  112. data/app/components/primer/beta/progress_bar.rb +1 -22
  113. data/app/components/primer/beta/relative_time.rb +0 -9
  114. data/app/components/primer/beta/spinner.rb +2 -10
  115. data/app/components/primer/beta/state.rb +0 -13
  116. data/app/components/primer/beta/subhead.rb +0 -55
  117. data/app/components/primer/beta/text.rb +0 -4
  118. data/app/components/primer/beta/timeline_item.css +1 -1
  119. data/app/components/primer/beta/timeline_item.css.map +1 -1
  120. data/app/components/primer/beta/timeline_item.rb +0 -9
  121. data/app/components/primer/beta/truncate.rb +0 -50
  122. data/app/components/primer/blankslate_component.rb +0 -76
  123. data/app/components/primer/box.rb +0 -6
  124. data/app/components/primer/button_component.rb +0 -49
  125. data/app/components/primer/component.rb +1 -1
  126. data/app/components/primer/conditional_wrapper.rb +2 -17
  127. data/app/components/primer/icon_button.rb +0 -30
  128. data/app/components/primer/layout_component.rb +0 -12
  129. data/app/components/primer/tooltip.rb +0 -27
  130. data/app/components/primer/truncate.rb +0 -19
  131. data/app/lib/primer/fetch_or_fallback_helper.rb +1 -1
  132. data/lib/primer/accessibility.rb +1 -1
  133. data/lib/primer/deprecations.yml +3 -3
  134. data/lib/primer/forms/dsl/input.rb +1 -0
  135. data/lib/primer/view_components/linters/details_menu_migration.rb +1 -1
  136. data/lib/primer/view_components/linters/migrations/truncate_component.rb +45 -0
  137. data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
  138. data/lib/primer/view_components/linters.rb +1 -0
  139. data/lib/primer/view_components/version.rb +2 -2
  140. data/lib/primer/view_components.rb +18 -0
  141. data/lib/primer/yard.rb +8 -9
  142. data/previews/primer/beta/button_preview/leading_visual.html.erb +2 -2
  143. data/previews/primer/beta/button_preview/leading_visual_svg.html.erb +12 -0
  144. data/previews/primer/beta/button_preview/trailing_counter.html.erb +1 -1
  145. data/previews/primer/beta/button_preview/trailing_visual.html.erb +1 -1
  146. data/previews/primer/beta/button_preview.rb +22 -0
  147. data/static/arguments.json +12 -1
  148. data/static/info_arch.json +32 -2
  149. data/static/previews.json +13 -0
  150. metadata +4 -3
  151. data/lib/primer/yard/legacy_gatsby_backend.rb +0 -233
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96b24b5daebcc0532027999ba046807bb4006996a79fe4b6b5d1f2a1a9cbdf4f
4
- data.tar.gz: b041dd98e1f24bcb07ef0ed4cf602d34f9601fa147b04be731a41c5029e3aa68
3
+ metadata.gz: 3b243f79fdf174eadf7e29276d54a5f7f111d495f5d61f1bd43ed01a5c29d2a3
4
+ data.tar.gz: 1a2360041d7b96d2126d6d1c3720914a5014e9e824d08f53b503ec8944da6dea
5
5
  SHA512:
6
- metadata.gz: f1d1cf8ca892774a0e56ee42e3edf707fc55a7673581d8865db64fc83b7a9540f102b11f29ed8c26e7c6de6d3a8a83a3718ee1724f7145724fb93dd32f1379f7
7
- data.tar.gz: 0b38773e379880a9e652cde3263b7459d247302d242f5f498c68ba5886ffffe68dace045e8ba0b0bacd53fcbe2a23116b2c520b57b60536858948c200b1501db
6
+ metadata.gz: e26e4eee889fc04d1106e8ecc59c19288af8cf6fa609ee9df315ad139937f49df015ad60a268885b1234044d3c79c669492ba8ee7f71b7a7fa1d8a0e63bc9c62
7
+ data.tar.gz: 3821c65dd83ce1efe3bb4c92f534987c44673cd69c2ef12af877d597d47c9725a800175d65aab2e1483189946435a8cf48bf52173d40f3d38e3dfd48e1292f75
data/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2215](https://github.com/primer/view_components/pull/2215) [`827634e9`](https://github.com/opf/primer_view_components/commit/827634e9a442fc6a6508235bdd38a1739e88cf5e) Thanks [@mjimenez98](https://github.com/mjimenez98)! - Support SVGs as leading visuals in `Button` component
8
+
9
+ <!-- Changed components: Primer::Beta::Button -->
10
+
11
+ - [#2222](https://github.com/primer/view_components/pull/2222) [`e196af7b`](https://github.com/opf/primer_view_components/commit/e196af7bed7f862f758f5edfd51107579128e0ee) Thanks [@jonrohan](https://github.com/jonrohan)! - Replace dismiss button in Flash with IconButton
12
+
13
+ <!-- Changed components: Primer::Beta::Flash -->
14
+
15
+ ### Patch Changes
16
+
17
+ - [#2213](https://github.com/primer/view_components/pull/2213) [`bc4b3340`](https://github.com/opf/primer_view_components/commit/bc4b33402a7cae813a77bafa7de9e1c7f2fc5419) Thanks [@camertron](https://github.com/camertron)! - Support Rails edge's custom deprecators
18
+
19
+ <!-- Changed components: _none_ -->
20
+
21
+ - [#2212](https://github.com/primer/view_components/pull/2212) [`3d0036ae`](https://github.com/opf/primer_view_components/commit/3d0036ae50b611942347d065f5be55822ec17748) Thanks [@keithamus](https://github.com/keithamus)! - Fix dialog invocation within deferred ActionMenus
22
+
23
+ <!-- Changed components: Primer::Alpha::ActionMenu -->
24
+
25
+ ## 0.7.0
26
+
27
+ ### Minor Changes
28
+
29
+ - [#2200](https://github.com/primer/view_components/pull/2200) [`1b770f90`](https://github.com/opf/primer_view_components/commit/1b770f9000faa119eb2ece3035be2eaa476ca1a1) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Add rubocop linter for `Truncate` component
30
+
31
+ <!-- Changed components: _none_ -->
32
+
33
+ - [#2207](https://github.com/primer/view_components/pull/2207) [`ba01f4e9`](https://github.com/opf/primer_view_components/commit/ba01f4e9f7d287c01fb3dab1b04b58c49c1d71fb) Thanks [@langermank](https://github.com/langermank)! - Bump Primitives v7.12.0
34
+
35
+ <!-- Changed components: _none_ -->
36
+
37
+ ### Patch Changes
38
+
39
+ - [#2203](https://github.com/primer/view_components/pull/2203) [`3f504021`](https://github.com/opf/primer_view_components/commit/3f504021e26cb92c99b16b63fe3e9b45fd5ede3b) Thanks [@orhantoy](https://github.com/orhantoy)! - Fix guide URLs (in lib/primer/deprecations.yml)
40
+
41
+ <!-- Changed components: _none_ -->
42
+
43
+ - [#2202](https://github.com/primer/view_components/pull/2202) [`d7da4012`](https://github.com/opf/primer_view_components/commit/d7da4012cb0a1d268cb0557cce171137dc766890) Thanks [@camertron](https://github.com/camertron)! - Label BorderBox lists with their header
44
+
45
+ <!-- Changed components: Primer::Beta::BorderBox -->
46
+
47
+ - [#2201](https://github.com/primer/view_components/pull/2201) [`ba90a43d`](https://github.com/opf/primer_view_components/commit/ba90a43d9904bb088e1ce3988c3b94211155e722) Thanks [@kintner](https://github.com/kintner)! - add aria-invalid when fields are invalid
48
+
49
+ <!-- Changed components: Primer::Alpha::CheckBox, Primer::Alpha::CheckBoxGroup, Primer::Alpha::FormButton, Primer::Alpha::MultiInput, Primer::Alpha::RadioButton, Primer::Alpha::RadioButtonGroup, Primer::Alpha::Select, Primer::Alpha::SubmitButton, Primer::Alpha::TextArea, Primer::Alpha::TextField, Primer::Alpha::ToggleSwitch -->
50
+
51
+ - [#14](https://github.com/opf/primer_view_components/pull/14) [`45a84b57`](https://github.com/opf/primer_view_components/commit/45a84b57b7bf5876c943a1383b7e385b9603b259) Thanks [@HDinger](https://github.com/HDinger)! - Update from base repo
52
+
3
53
  ## 0.6.3
4
54
 
5
55
  ### Patch Changes
data/README.md CHANGED
@@ -6,7 +6,19 @@ _Note: This library is under active pre-1.0 development. Breaking changes are li
6
6
 
7
7
  ## Contribution
8
8
 
9
- Please have a look at our [Contribution docs](./docs/contributors/README.md) to learn about adding or changing a ViewComponent.
9
+ Please have a look at our [Contribution docs](./docs/contributors/README.md) to learn about any ways to contribute as for example
10
+
11
+ * [Getting started](./docs/contributors/setup.md)
12
+ * [Adding a component](./docs/contributors/adding-components.md)
13
+ * [Releasing](./docs/contributors/releasing.md)
14
+ * ...
15
+
16
+ ## CI & Automation
17
+
18
+ Primer already provides us with a lot of automation and an advanced test setup. In our guide we explain how that works, and what we adapted to our need after the fork.
19
+
20
+ * [CI](./docs/contributors/ci.md)
21
+ * [Testing](./docs/contributors/playwright-testing.md)
10
22
 
11
23
  ## Documentation
12
24