openproject-primer_view_components 0.94.0 → 0.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/app/assets/javascripts/primer_view_components.js +11 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/alpha/action_bar.css +1 -1
  8. data/app/components/primer/alpha/action_bar.css.map +1 -1
  9. data/app/components/primer/alpha/action_list/item.rb +5 -1
  10. data/app/components/primer/alpha/action_list.css +1 -1
  11. data/app/components/primer/alpha/action_list.css.json +13 -11
  12. data/app/components/primer/alpha/action_list.css.map +1 -1
  13. data/app/components/primer/alpha/action_list.pcss +12 -0
  14. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +6 -0
  15. data/app/components/primer/alpha/action_menu/action_menu_element.js +389 -84
  16. data/app/components/primer/alpha/action_menu/action_menu_element.ts +439 -78
  17. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +4 -1
  18. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +37 -13
  19. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts +41 -12
  20. data/app/components/primer/alpha/action_menu/menu.html.erb +27 -19
  21. data/app/components/primer/alpha/action_menu/menu.rb +7 -0
  22. data/app/components/primer/alpha/action_menu/primary_menu.rb +15 -0
  23. data/app/components/primer/alpha/action_menu.rb +55 -0
  24. data/app/components/primer/alpha/auto_complete.css +1 -1
  25. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  26. data/app/components/primer/alpha/banner.css +1 -1
  27. data/app/components/primer/alpha/banner.css.map +1 -1
  28. data/app/components/primer/alpha/button_marketing.css +1 -1
  29. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  30. data/app/components/primer/alpha/dialog.css +1 -1
  31. data/app/components/primer/alpha/dialog.css.map +1 -1
  32. data/app/components/primer/alpha/dropdown/menu.rb +1 -1
  33. data/app/components/primer/alpha/dropdown.css +1 -1
  34. data/app/components/primer/alpha/dropdown.css.json +1 -1
  35. data/app/components/primer/alpha/dropdown.css.map +1 -1
  36. data/app/components/primer/alpha/layout.css +1 -1
  37. data/app/components/primer/alpha/layout.css.json +3 -3
  38. data/app/components/primer/alpha/layout.css.map +1 -1
  39. data/app/components/primer/alpha/menu.css +1 -1
  40. data/app/components/primer/alpha/menu.css.json +3 -3
  41. data/app/components/primer/alpha/menu.css.map +1 -1
  42. data/app/components/primer/alpha/overlay.css +1 -1
  43. data/app/components/primer/alpha/overlay.css.map +1 -1
  44. data/app/components/primer/alpha/segmented_control.css +1 -1
  45. data/app/components/primer/alpha/segmented_control.css.json +1 -1
  46. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  47. data/app/components/primer/alpha/select_panel.css +1 -1
  48. data/app/components/primer/alpha/select_panel.css.map +1 -1
  49. data/app/components/primer/alpha/skeleton_box.css +1 -1
  50. data/app/components/primer/alpha/skeleton_box.css.map +1 -1
  51. data/app/components/primer/alpha/stack.css +1 -1
  52. data/app/components/primer/alpha/stack.css.map +1 -1
  53. data/app/components/primer/alpha/stack_item.css +1 -1
  54. data/app/components/primer/alpha/stack_item.css.map +1 -1
  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/text_field.css +1 -1
  58. data/app/components/primer/alpha/text_field.css.map +1 -1
  59. data/app/components/primer/alpha/toggle_switch.css +1 -1
  60. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  61. data/app/components/primer/alpha/tree_view.css +1 -1
  62. data/app/components/primer/alpha/tree_view.css.json +3 -3
  63. data/app/components/primer/alpha/tree_view.css.map +1 -1
  64. data/app/components/primer/alpha/underline_nav.css +1 -1
  65. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  66. data/app/components/primer/beta/border_box.css +1 -1
  67. data/app/components/primer/beta/border_box.css.json +5 -5
  68. data/app/components/primer/beta/border_box.css.map +1 -1
  69. data/app/components/primer/beta/button.css +1 -1
  70. data/app/components/primer/beta/button.css.map +1 -1
  71. data/app/components/primer/beta/button.pcss +97 -0
  72. data/app/components/primer/beta/button.rb +15 -3
  73. data/app/components/primer/beta/counter.css +1 -1
  74. data/app/components/primer/beta/counter.css.map +1 -1
  75. data/app/components/primer/beta/flash.css +1 -1
  76. data/app/components/primer/beta/flash.css.map +1 -1
  77. data/app/components/primer/beta/link.css +1 -1
  78. data/app/components/primer/beta/link.css.json +1 -1
  79. data/app/components/primer/beta/link.css.map +1 -1
  80. data/app/components/primer/beta/popover.css +1 -1
  81. data/app/components/primer/beta/popover.css.map +1 -1
  82. data/app/components/primer/beta/progress_bar.css +1 -1
  83. data/app/components/primer/beta/progress_bar.css.map +1 -1
  84. data/app/components/primer/beta/relative_time.rb +7 -1
  85. data/app/components/primer/beta/state.css +1 -1
  86. data/app/components/primer/beta/state.css.json +2 -2
  87. data/app/components/primer/beta/state.css.map +1 -1
  88. data/app/components/primer/beta/timeline_item.css +1 -1
  89. data/app/components/primer/beta/timeline_item.css.map +1 -1
  90. data/app/components/primer/open_project/border_grid.css +1 -1
  91. data/app/components/primer/open_project/border_grid.css.map +1 -1
  92. data/app/components/primer/open_project/color_field.css +1 -1
  93. data/app/components/primer/open_project/color_field.css.map +1 -1
  94. data/app/components/primer/open_project/color_swatch.css +1 -0
  95. data/app/components/primer/open_project/color_swatch.css.json +6 -0
  96. data/app/components/primer/open_project/color_swatch.css.map +1 -0
  97. data/app/components/primer/open_project/color_swatch.pcss +8 -0
  98. data/app/components/primer/open_project/color_swatch.rb +57 -0
  99. data/app/components/primer/open_project/inline_message.css +1 -1
  100. data/app/components/primer/open_project/inline_message.css.map +1 -1
  101. data/app/components/primer/open_project/input_group.css +1 -1
  102. data/app/components/primer/open_project/input_group.css.map +1 -1
  103. data/app/components/primer/open_project/inset_box.css +1 -0
  104. data/app/components/primer/open_project/inset_box.css.json +9 -0
  105. data/app/components/primer/open_project/inset_box.css.map +1 -0
  106. data/app/components/primer/open_project/inset_box.html.erb +46 -0
  107. data/app/components/primer/open_project/inset_box.pcss +24 -0
  108. data/app/components/primer/open_project/inset_box.rb +63 -0
  109. data/app/components/primer/open_project/keybinding_hint/chords.d.ts +5 -0
  110. data/app/components/primer/open_project/keybinding_hint/chords.js +29 -0
  111. data/app/components/primer/open_project/keybinding_hint/chords.ts +38 -0
  112. data/app/components/primer/open_project/keybinding_hint/key_names.d.ts +16 -0
  113. data/app/components/primer/open_project/keybinding_hint/key_names.js +107 -0
  114. data/app/components/primer/open_project/keybinding_hint/key_names.ts +116 -0
  115. data/app/components/primer/open_project/keybinding_hint/localized_names.d.ts +22 -0
  116. data/app/components/primer/open_project/keybinding_hint/localized_names.js +47 -0
  117. data/app/components/primer/open_project/keybinding_hint/localized_names.ts +71 -0
  118. data/app/components/primer/open_project/keybinding_hint/names.rb +92 -0
  119. data/app/components/primer/open_project/keybinding_hint/names_from_scope.d.ts +21 -0
  120. data/app/components/primer/open_project/keybinding_hint/names_from_scope.js +81 -0
  121. data/app/components/primer/open_project/keybinding_hint/names_from_scope.ts +96 -0
  122. data/app/components/primer/open_project/keybinding_hint/platform.d.ts +10 -0
  123. data/app/components/primer/open_project/keybinding_hint/platform.js +24 -0
  124. data/app/components/primer/open_project/keybinding_hint/platform.ts +34 -0
  125. data/app/components/primer/open_project/keybinding_hint/platform_override.d.ts +2 -0
  126. data/app/components/primer/open_project/keybinding_hint/platform_override.js +4 -0
  127. data/app/components/primer/open_project/keybinding_hint/platform_override.ts +7 -0
  128. data/app/components/primer/open_project/keybinding_hint.css +1 -0
  129. data/app/components/primer/open_project/keybinding_hint.css.json +10 -0
  130. data/app/components/primer/open_project/keybinding_hint.css.map +1 -0
  131. data/app/components/primer/open_project/keybinding_hint.html.erb +4 -0
  132. data/app/components/primer/open_project/keybinding_hint.pcss +65 -0
  133. data/app/components/primer/open_project/keybinding_hint.rb +112 -0
  134. data/app/components/primer/open_project/keybinding_hint_element.d.ts +31 -0
  135. data/app/components/primer/open_project/keybinding_hint_element.js +183 -0
  136. data/app/components/primer/open_project/keybinding_hint_element.ts +152 -0
  137. data/app/components/primer/open_project/page_header.css +1 -1
  138. data/app/components/primer/open_project/page_header.css.json +2 -2
  139. data/app/components/primer/open_project/page_header.css.map +1 -1
  140. data/app/components/primer/open_project/pagination.css +1 -1
  141. data/app/components/primer/open_project/pagination.css.json +1 -1
  142. data/app/components/primer/open_project/pagination.css.map +1 -1
  143. data/app/components/primer/open_project/sub_header.css +1 -1
  144. data/app/components/primer/open_project/sub_header.css.map +1 -1
  145. data/app/components/primer/primer.d.ts +1 -0
  146. data/app/components/primer/primer.js +1 -0
  147. data/app/components/primer/primer.pcss +3 -0
  148. data/app/components/primer/primer.ts +1 -0
  149. data/app/components/primer/truncate.css +1 -1
  150. data/app/components/primer/truncate.css.json +3 -4
  151. data/app/components/primer/truncate.css.map +1 -1
  152. data/app/controllers/primer/view_components/action_menu_controller.rb +35 -0
  153. data/app/views/primer/view_components/action_menu/deferred.html.erb +25 -11
  154. data/app/views/primer/view_components/action_menu/deferred_form.html.erb +10 -0
  155. data/app/views/primer/view_components/action_menu/deferred_preload.html.erb +7 -1
  156. data/config/locales/en.yml +179 -0
  157. data/config/routes.rb +1 -0
  158. data/lib/primer/accessibility.rb +1 -2
  159. data/lib/primer/classify.rb +1 -2
  160. data/lib/primer/view_components/version.rb +1 -1
  161. data/previews/primer/alpha/action_menu_preview/deferred_refresh.html.erb +34 -0
  162. data/previews/primer/alpha/action_menu_preview/deferred_refresh_form.html.erb +9 -0
  163. data/previews/primer/alpha/action_menu_preview.rb +14 -0
  164. data/previews/primer/open_project/color_swatch_preview.rb +27 -0
  165. data/previews/primer/open_project/inset_box_preview.rb +85 -0
  166. data/previews/primer/open_project/keybinding_hint_preview/full_format.html.erb +3 -0
  167. data/previews/primer/open_project/keybinding_hint_preview/in_action_list.html.erb +12 -0
  168. data/previews/primer/open_project/keybinding_hint_preview/in_button.html.erb +24 -0
  169. data/previews/primer/open_project/keybinding_hint_preview/platforms.html.erb +8 -0
  170. data/previews/primer/open_project/keybinding_hint_preview/playground.html.erb +4 -0
  171. data/previews/primer/open_project/keybinding_hint_preview/prose.html.erb +3 -0
  172. data/previews/primer/open_project/keybinding_hint_preview/schemes.html.erb +6 -0
  173. data/previews/primer/open_project/keybinding_hint_preview/sequence.html.erb +1 -0
  174. data/previews/primer/open_project/keybinding_hint_preview/sizes.html.erb +4 -0
  175. data/previews/primer/open_project/keybinding_hint_preview.rb +71 -0
  176. data/static/arguments.json +109 -1
  177. data/static/audited_at.json +3 -0
  178. data/static/classes.json +27 -0
  179. data/static/classnames.cjs +9 -0
  180. data/static/classnames.js +9 -0
  181. data/static/constants.json +63 -0
  182. data/static/info_arch.json +523 -8
  183. data/static/previews.json +310 -0
  184. data/static/statuses.json +3 -0
  185. metadata +55 -5
  186. data/app/components/primer/alpha/text_field.css.json +0 -134
  187. data/app/components/primer/alpha/toggle_switch.css.json +0 -40
  188. data/app/components/primer/alpha/underline_nav.css.json +0 -26
  189. data/app/components/primer/beta/button.css.json +0 -86
data/static/previews.json CHANGED
@@ -632,6 +632,32 @@
632
632
  ]
633
633
  }
634
634
  },
635
+ {
636
+ "preview_path": "primer/alpha/action_menu/deferred_refresh",
637
+ "name": "deferred_refresh",
638
+ "snapshot": "false",
639
+ "skip_rules": {
640
+ "wont_fix": [
641
+ "region"
642
+ ],
643
+ "will_fix": [
644
+ "color-contrast"
645
+ ]
646
+ }
647
+ },
648
+ {
649
+ "preview_path": "primer/alpha/action_menu/deferred_refresh_form",
650
+ "name": "deferred_refresh_form",
651
+ "snapshot": "false",
652
+ "skip_rules": {
653
+ "wont_fix": [
654
+ "region"
655
+ ],
656
+ "will_fix": [
657
+ "color-contrast"
658
+ ]
659
+ }
660
+ },
635
661
  {
636
662
  "preview_path": "primer/alpha/action_menu/with_deferred_content_near_bottom_of_viewport",
637
663
  "name": "with_deferred_content_near_bottom_of_viewport",
@@ -8990,6 +9016,53 @@
8990
9016
  }
8991
9017
  ]
8992
9018
  },
9019
+ {
9020
+ "name": "color_swatch",
9021
+ "component": "OpenProject::ColorSwatch",
9022
+ "status": "open_project",
9023
+ "lookup_path": "primer/open_project/color_swatch",
9024
+ "examples": [
9025
+ {
9026
+ "preview_path": "primer/open_project/color_swatch/playground",
9027
+ "name": "playground",
9028
+ "snapshot": "false",
9029
+ "skip_rules": {
9030
+ "wont_fix": [
9031
+ "region"
9032
+ ],
9033
+ "will_fix": [
9034
+ "color-contrast"
9035
+ ]
9036
+ }
9037
+ },
9038
+ {
9039
+ "preview_path": "primer/open_project/color_swatch/default",
9040
+ "name": "default",
9041
+ "snapshot": "true",
9042
+ "skip_rules": {
9043
+ "wont_fix": [
9044
+ "region"
9045
+ ],
9046
+ "will_fix": [
9047
+ "color-contrast"
9048
+ ]
9049
+ }
9050
+ },
9051
+ {
9052
+ "preview_path": "primer/open_project/color_swatch/with_value",
9053
+ "name": "with_value",
9054
+ "snapshot": "true",
9055
+ "skip_rules": {
9056
+ "wont_fix": [
9057
+ "region"
9058
+ ],
9059
+ "will_fix": [
9060
+ "color-contrast"
9061
+ ]
9062
+ }
9063
+ }
9064
+ ]
9065
+ },
8993
9066
  {
8994
9067
  "name": "danger_dialog",
8995
9068
  "component": "OpenProject::DangerDialog",
@@ -9759,6 +9832,243 @@
9759
9832
  }
9760
9833
  ]
9761
9834
  },
9835
+ {
9836
+ "name": "inset_box",
9837
+ "component": "OpenProject::InsetBox",
9838
+ "status": "open_project",
9839
+ "lookup_path": "primer/open_project/inset_box",
9840
+ "examples": [
9841
+ {
9842
+ "preview_path": "primer/open_project/inset_box/playground",
9843
+ "name": "playground",
9844
+ "snapshot": "false",
9845
+ "skip_rules": {
9846
+ "wont_fix": [
9847
+ "region"
9848
+ ],
9849
+ "will_fix": [
9850
+ "color-contrast"
9851
+ ]
9852
+ }
9853
+ },
9854
+ {
9855
+ "preview_path": "primer/open_project/inset_box/default",
9856
+ "name": "default",
9857
+ "snapshot": "true",
9858
+ "skip_rules": {
9859
+ "wont_fix": [
9860
+ "region"
9861
+ ],
9862
+ "will_fix": [
9863
+ "color-contrast"
9864
+ ]
9865
+ }
9866
+ },
9867
+ {
9868
+ "preview_path": "primer/open_project/inset_box/with_scheme",
9869
+ "name": "with_scheme",
9870
+ "snapshot": "true",
9871
+ "skip_rules": {
9872
+ "wont_fix": [
9873
+ "region"
9874
+ ],
9875
+ "will_fix": [
9876
+ "color-contrast"
9877
+ ]
9878
+ }
9879
+ },
9880
+ {
9881
+ "preview_path": "primer/open_project/inset_box/with_icon",
9882
+ "name": "with_icon",
9883
+ "snapshot": "true",
9884
+ "skip_rules": {
9885
+ "wont_fix": [
9886
+ "region"
9887
+ ],
9888
+ "will_fix": [
9889
+ "color-contrast"
9890
+ ]
9891
+ }
9892
+ },
9893
+ {
9894
+ "preview_path": "primer/open_project/inset_box/with_clipboard_copy_button",
9895
+ "name": "with_clipboard_copy_button",
9896
+ "snapshot": "true",
9897
+ "skip_rules": {
9898
+ "wont_fix": [
9899
+ "region"
9900
+ ],
9901
+ "will_fix": [
9902
+ "color-contrast"
9903
+ ]
9904
+ }
9905
+ },
9906
+ {
9907
+ "preview_path": "primer/open_project/inset_box/with_actions",
9908
+ "name": "with_actions",
9909
+ "snapshot": "true",
9910
+ "skip_rules": {
9911
+ "wont_fix": [
9912
+ "region"
9913
+ ],
9914
+ "will_fix": [
9915
+ "color-contrast"
9916
+ ]
9917
+ }
9918
+ },
9919
+ {
9920
+ "preview_path": "primer/open_project/inset_box/without_border",
9921
+ "name": "without_border",
9922
+ "snapshot": "true",
9923
+ "skip_rules": {
9924
+ "wont_fix": [
9925
+ "region"
9926
+ ],
9927
+ "will_fix": [
9928
+ "color-contrast"
9929
+ ]
9930
+ }
9931
+ }
9932
+ ]
9933
+ },
9934
+ {
9935
+ "name": "keybinding_hint",
9936
+ "component": "OpenProject::KeybindingHint",
9937
+ "status": "open_project",
9938
+ "lookup_path": "primer/open_project/keybinding_hint",
9939
+ "examples": [
9940
+ {
9941
+ "preview_path": "primer/open_project/keybinding_hint/default",
9942
+ "name": "default",
9943
+ "snapshot": "true",
9944
+ "skip_rules": {
9945
+ "wont_fix": [
9946
+ "region"
9947
+ ],
9948
+ "will_fix": [
9949
+ "color-contrast"
9950
+ ]
9951
+ }
9952
+ },
9953
+ {
9954
+ "preview_path": "primer/open_project/keybinding_hint/playground",
9955
+ "name": "playground",
9956
+ "snapshot": "false",
9957
+ "skip_rules": {
9958
+ "wont_fix": [
9959
+ "region"
9960
+ ],
9961
+ "will_fix": [
9962
+ "color-contrast"
9963
+ ]
9964
+ }
9965
+ },
9966
+ {
9967
+ "preview_path": "primer/open_project/keybinding_hint/full_format",
9968
+ "name": "full_format",
9969
+ "snapshot": "false",
9970
+ "skip_rules": {
9971
+ "wont_fix": [
9972
+ "region"
9973
+ ],
9974
+ "will_fix": [
9975
+ "color-contrast"
9976
+ ]
9977
+ }
9978
+ },
9979
+ {
9980
+ "preview_path": "primer/open_project/keybinding_hint/sequence",
9981
+ "name": "sequence",
9982
+ "snapshot": "false",
9983
+ "skip_rules": {
9984
+ "wont_fix": [
9985
+ "region"
9986
+ ],
9987
+ "will_fix": [
9988
+ "color-contrast"
9989
+ ]
9990
+ }
9991
+ },
9992
+ {
9993
+ "preview_path": "primer/open_project/keybinding_hint/sizes",
9994
+ "name": "sizes",
9995
+ "snapshot": "false",
9996
+ "skip_rules": {
9997
+ "wont_fix": [
9998
+ "region"
9999
+ ],
10000
+ "will_fix": [
10001
+ "color-contrast"
10002
+ ]
10003
+ }
10004
+ },
10005
+ {
10006
+ "preview_path": "primer/open_project/keybinding_hint/schemes",
10007
+ "name": "schemes",
10008
+ "snapshot": "false",
10009
+ "skip_rules": {
10010
+ "wont_fix": [
10011
+ "region"
10012
+ ],
10013
+ "will_fix": [
10014
+ "color-contrast"
10015
+ ]
10016
+ }
10017
+ },
10018
+ {
10019
+ "preview_path": "primer/open_project/keybinding_hint/platforms",
10020
+ "name": "platforms",
10021
+ "snapshot": "true",
10022
+ "skip_rules": {
10023
+ "wont_fix": [
10024
+ "region"
10025
+ ],
10026
+ "will_fix": [
10027
+ "color-contrast"
10028
+ ]
10029
+ }
10030
+ },
10031
+ {
10032
+ "preview_path": "primer/open_project/keybinding_hint/prose",
10033
+ "name": "prose",
10034
+ "snapshot": "false",
10035
+ "skip_rules": {
10036
+ "wont_fix": [
10037
+ "region"
10038
+ ],
10039
+ "will_fix": [
10040
+ "color-contrast"
10041
+ ]
10042
+ }
10043
+ },
10044
+ {
10045
+ "preview_path": "primer/open_project/keybinding_hint/in_button",
10046
+ "name": "in_button",
10047
+ "snapshot": "true",
10048
+ "skip_rules": {
10049
+ "wont_fix": [
10050
+ "region"
10051
+ ],
10052
+ "will_fix": [
10053
+ "color-contrast"
10054
+ ]
10055
+ }
10056
+ },
10057
+ {
10058
+ "preview_path": "primer/open_project/keybinding_hint/in_action_list",
10059
+ "name": "in_action_list",
10060
+ "snapshot": "true",
10061
+ "skip_rules": {
10062
+ "wont_fix": [
10063
+ "region"
10064
+ ],
10065
+ "will_fix": [
10066
+ "color-contrast"
10067
+ ]
10068
+ }
10069
+ }
10070
+ ]
10071
+ },
9762
10072
  {
9763
10073
  "name": "page_header",
9764
10074
  "component": "OpenProject::PageHeader",
data/static/statuses.json CHANGED
@@ -147,6 +147,7 @@
147
147
  "Primer::OpenProject::BorderGrid::Cell": "open_project",
148
148
  "Primer::OpenProject::CollapsibleSection": "open_project",
149
149
  "Primer::OpenProject::ColorField": "open_project",
150
+ "Primer::OpenProject::ColorSwatch": "open_project",
150
151
  "Primer::OpenProject::DangerDialog": "open_project",
151
152
  "Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "open_project",
152
153
  "Primer::OpenProject::DangerDialog::FormWrapper": "open_project",
@@ -163,6 +164,8 @@
163
164
  "Primer::OpenProject::Heading": "open_project",
164
165
  "Primer::OpenProject::InlineMessage": "open_project",
165
166
  "Primer::OpenProject::InputGroup": "open_project",
167
+ "Primer::OpenProject::InsetBox": "open_project",
168
+ "Primer::OpenProject::KeybindingHint": "open_project",
166
169
  "Primer::OpenProject::PageHeader": "open_project",
167
170
  "Primer::OpenProject::PageHeader::Dialog": "open_project",
168
171
  "Primer::OpenProject::PageHeader::Menu": "open_project",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.94.0
4
+ version: 0.96.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -276,12 +276,10 @@ files:
276
276
  - app/components/primer/alpha/tab_panels.rb
277
277
  - app/components/primer/alpha/text_area.rb
278
278
  - app/components/primer/alpha/text_field.css
279
- - app/components/primer/alpha/text_field.css.json
280
279
  - app/components/primer/alpha/text_field.css.map
281
280
  - app/components/primer/alpha/text_field.pcss
282
281
  - app/components/primer/alpha/text_field.rb
283
282
  - app/components/primer/alpha/toggle_switch.css
284
- - app/components/primer/alpha/toggle_switch.css.json
285
283
  - app/components/primer/alpha/toggle_switch.css.map
286
284
  - app/components/primer/alpha/toggle_switch.d.ts
287
285
  - app/components/primer/alpha/toggle_switch.html.erb
@@ -341,7 +339,6 @@ files:
341
339
  - app/components/primer/alpha/tree_view/visual.html.erb
342
340
  - app/components/primer/alpha/tree_view/visual.rb
343
341
  - app/components/primer/alpha/underline_nav.css
344
- - app/components/primer/alpha/underline_nav.css.json
345
342
  - app/components/primer/alpha/underline_nav.css.map
346
343
  - app/components/primer/alpha/underline_nav.html.erb
347
344
  - app/components/primer/alpha/underline_nav.pcss
@@ -396,7 +393,6 @@ files:
396
393
  - app/components/primer/beta/breadcrumbs.pcss
397
394
  - app/components/primer/beta/breadcrumbs.rb
398
395
  - app/components/primer/beta/button.css
399
- - app/components/primer/beta/button.css.json
400
396
  - app/components/primer/beta/button.css.map
401
397
  - app/components/primer/beta/button.html.erb
402
398
  - app/components/primer/beta/button.pcss
@@ -565,6 +561,11 @@ files:
565
561
  - app/components/primer/open_project/color_field.css.map
566
562
  - app/components/primer/open_project/color_field.pcss
567
563
  - app/components/primer/open_project/color_field.rb
564
+ - app/components/primer/open_project/color_swatch.css
565
+ - app/components/primer/open_project/color_swatch.css.json
566
+ - app/components/primer/open_project/color_swatch.css.map
567
+ - app/components/primer/open_project/color_swatch.pcss
568
+ - app/components/primer/open_project/color_swatch.rb
568
569
  - app/components/primer/open_project/danger_dialog.html.erb
569
570
  - app/components/primer/open_project/danger_dialog.rb
570
571
  - app/components/primer/open_project/danger_dialog/confirmation_check_box.rb
@@ -613,6 +614,40 @@ files:
613
614
  - app/components/primer/open_project/input_group.html.erb
614
615
  - app/components/primer/open_project/input_group.pcss
615
616
  - app/components/primer/open_project/input_group.rb
617
+ - app/components/primer/open_project/inset_box.css
618
+ - app/components/primer/open_project/inset_box.css.json
619
+ - app/components/primer/open_project/inset_box.css.map
620
+ - app/components/primer/open_project/inset_box.html.erb
621
+ - app/components/primer/open_project/inset_box.pcss
622
+ - app/components/primer/open_project/inset_box.rb
623
+ - app/components/primer/open_project/keybinding_hint.css
624
+ - app/components/primer/open_project/keybinding_hint.css.json
625
+ - app/components/primer/open_project/keybinding_hint.css.map
626
+ - app/components/primer/open_project/keybinding_hint.html.erb
627
+ - app/components/primer/open_project/keybinding_hint.pcss
628
+ - app/components/primer/open_project/keybinding_hint.rb
629
+ - app/components/primer/open_project/keybinding_hint/chords.d.ts
630
+ - app/components/primer/open_project/keybinding_hint/chords.js
631
+ - app/components/primer/open_project/keybinding_hint/chords.ts
632
+ - app/components/primer/open_project/keybinding_hint/key_names.d.ts
633
+ - app/components/primer/open_project/keybinding_hint/key_names.js
634
+ - app/components/primer/open_project/keybinding_hint/key_names.ts
635
+ - app/components/primer/open_project/keybinding_hint/localized_names.d.ts
636
+ - app/components/primer/open_project/keybinding_hint/localized_names.js
637
+ - app/components/primer/open_project/keybinding_hint/localized_names.ts
638
+ - app/components/primer/open_project/keybinding_hint/names.rb
639
+ - app/components/primer/open_project/keybinding_hint/names_from_scope.d.ts
640
+ - app/components/primer/open_project/keybinding_hint/names_from_scope.js
641
+ - app/components/primer/open_project/keybinding_hint/names_from_scope.ts
642
+ - app/components/primer/open_project/keybinding_hint/platform.d.ts
643
+ - app/components/primer/open_project/keybinding_hint/platform.js
644
+ - app/components/primer/open_project/keybinding_hint/platform.ts
645
+ - app/components/primer/open_project/keybinding_hint/platform_override.d.ts
646
+ - app/components/primer/open_project/keybinding_hint/platform_override.js
647
+ - app/components/primer/open_project/keybinding_hint/platform_override.ts
648
+ - app/components/primer/open_project/keybinding_hint_element.d.ts
649
+ - app/components/primer/open_project/keybinding_hint_element.js
650
+ - app/components/primer/open_project/keybinding_hint_element.ts
616
651
  - app/components/primer/open_project/page_header.css
617
652
  - app/components/primer/open_project/page_header.css.json
618
653
  - app/components/primer/open_project/page_header.css.map
@@ -851,6 +886,7 @@ files:
851
886
  - app/lib/primer/underline_nav_helper.rb
852
887
  - app/lib/primer/view_helper.rb
853
888
  - app/views/primer/view_components/action_menu/deferred.html.erb
889
+ - app/views/primer/view_components/action_menu/deferred_form.html.erb
854
890
  - app/views/primer/view_components/action_menu/deferred_preload.html.erb
855
891
  - app/views/primer/view_components/action_menu/form_action.html.erb
856
892
  - app/views/primer/view_components/action_menu/landing.html.erb
@@ -986,6 +1022,8 @@ files:
986
1022
  - previews/primer/alpha/action_menu_preview.rb
987
1023
  - previews/primer/alpha/action_menu_preview/align_end.html.erb
988
1024
  - previews/primer/alpha/action_menu_preview/content_labels.html.erb
1025
+ - previews/primer/alpha/action_menu_preview/deferred_refresh.html.erb
1026
+ - previews/primer/alpha/action_menu_preview/deferred_refresh_form.html.erb
989
1027
  - previews/primer/alpha/action_menu_preview/in_scroll_container.html.erb
990
1028
  - previews/primer/alpha/action_menu_preview/multiple_select_form.html.erb
991
1029
  - previews/primer/alpha/action_menu_preview/opens_dialog.html.erb
@@ -1237,6 +1275,7 @@ files:
1237
1275
  - previews/primer/open_project/color_field_preview/in_form.html.erb
1238
1276
  - previews/primer/open_project/color_field_preview/in_multi.html.erb
1239
1277
  - previews/primer/open_project/color_field_preview/multiple.html.erb
1278
+ - previews/primer/open_project/color_swatch_preview.rb
1240
1279
  - previews/primer/open_project/danger_dialog_preview.rb
1241
1280
  - previews/primer/open_project/danger_dialog_preview/deletion_form.rb
1242
1281
  - previews/primer/open_project/danger_dialog_preview/playground.html.erb
@@ -1273,6 +1312,17 @@ files:
1273
1312
  - previews/primer/open_project/inline_message_preview.rb
1274
1313
  - previews/primer/open_project/inline_message_preview/playground.html.erb
1275
1314
  - previews/primer/open_project/input_group_preview.rb
1315
+ - previews/primer/open_project/inset_box_preview.rb
1316
+ - previews/primer/open_project/keybinding_hint_preview.rb
1317
+ - previews/primer/open_project/keybinding_hint_preview/full_format.html.erb
1318
+ - previews/primer/open_project/keybinding_hint_preview/in_action_list.html.erb
1319
+ - previews/primer/open_project/keybinding_hint_preview/in_button.html.erb
1320
+ - previews/primer/open_project/keybinding_hint_preview/platforms.html.erb
1321
+ - previews/primer/open_project/keybinding_hint_preview/playground.html.erb
1322
+ - previews/primer/open_project/keybinding_hint_preview/prose.html.erb
1323
+ - previews/primer/open_project/keybinding_hint_preview/schemes.html.erb
1324
+ - previews/primer/open_project/keybinding_hint_preview/sequence.html.erb
1325
+ - previews/primer/open_project/keybinding_hint_preview/sizes.html.erb
1276
1326
  - previews/primer/open_project/page_header_preview.rb
1277
1327
  - previews/primer/open_project/page_header_preview/actions.html.erb
1278
1328
  - previews/primer/open_project/page_header_preview/create_action.html.erb
@@ -1,134 +0,0 @@
1
- {
2
- "name": "alpha/text_field",
3
- "selectors": [
4
- ".FormControl",
5
- ".FormControl--fullWidth",
6
- ".FormControl-label",
7
- ".FormControl-caption",
8
- ".FormControl-caption a",
9
- ".FormControl-inlineValidation",
10
- ".FormControl-inlineValidation p",
11
- ".FormControl-inlineValidation--success",
12
- ".FormControl-inlineValidation--visual",
13
- ".FormControl-spacingWrapper",
14
- ".FormControl-horizontalGroup",
15
- ".FormControl-input",
16
- ".FormControl-select",
17
- ".FormControl-textarea",
18
- "[disabled]:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
19
- "[invalid=true]:is(.FormControl-input,.FormControl-select,.FormControl-textarea):not(:focus)",
20
- "[invalid=false]:is(.FormControl-input,.FormControl-select,.FormControl-textarea):not(:focus)",
21
- ":is(.FormControl-input,.FormControl-select,.FormControl-textarea):not([type=checkbox],[type=radio]):focus",
22
- ":is(.FormControl-input,.FormControl-select,.FormControl-textarea):not([type=checkbox],[type=radio]):focus:not(:focus-visible)",
23
- ":is(.FormControl-input,.FormControl-select,.FormControl-textarea):not([type=checkbox],[type=radio]):focus-visible",
24
- "[disabled]:is(.FormControl-input,.FormControl-select,.FormControl-textarea)::placeholder",
25
- "[readonly]:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
26
- ":is(.FormControl-input,.FormControl-select,.FormControl-textarea)::placeholder",
27
- ".FormControl-small:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
28
- ".FormControl-medium:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
29
- ".FormControl-large:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
30
- ".FormControl-inset:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
31
- ".FormControl-inset:is(.FormControl-input,.FormControl-select,.FormControl-textarea):focus",
32
- ".FormControl-inset:is(.FormControl-input,.FormControl-select,.FormControl-textarea):focus-visible",
33
- ".FormControl-monospace:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
34
- ".FormControl-error:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
35
- ".FormControl-success:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
36
- ".FormControl-warning:is(.FormControl-input,.FormControl-select,.FormControl-textarea)",
37
- ".FormControl-toggleSwitchInput",
38
- ".FormControl-input-wrap",
39
- ".FormControl-input-wrap.FormControl-input-width--auto",
40
- ".FormControl-input-wrap.FormControl-input-width--xsmall",
41
- ".FormControl-input-wrap.FormControl-input-width--small",
42
- ".FormControl-input-wrap.FormControl-input-width--medium",
43
- ".FormControl-input-wrap.FormControl-input-width--large",
44
- ".FormControl-input-wrap.FormControl-input-width--xlarge",
45
- ".FormControl-input-wrap.FormControl-input-width--xxlarge",
46
- ".FormControl-input-wrap .FormControl-input-leadingVisualWrap",
47
- ":is(.FormControl-input-wrap .FormControl-input-leadingVisualWrap) .FormControl-input-leadingVisual",
48
- ".FormControl-input-wrap .FormControl-input-trailingVisualWrap",
49
- ":is(.FormControl-input-wrap .FormControl-input-trailingVisualWrap):has(.FormControl-input-trailingVisualLabel)",
50
- ":is(.FormControl-input-wrap .FormControl-input-trailingVisualWrap):has(.FormControl-input-trailingVisualText)",
51
- ":is(.FormControl-input-wrap .FormControl-input-trailingVisualWrap) .FormControl-input-trailingVisualLabel",
52
- ".FormControl-input-wrap .FormControl-input-trailingAction",
53
- ":is(.FormControl-input-wrap .FormControl-input-trailingAction) svg",
54
- "[disabled]:is(.FormControl-input-wrap .FormControl-input-trailingAction)",
55
- ":is(.FormControl-input-wrap .FormControl-input-trailingAction):hover",
56
- ":is(.FormControl-input-wrap .FormControl-input-trailingAction):active",
57
- ".FormControl-input-trailingAction--divider:is(.FormControl-input-wrap .FormControl-input-trailingAction):before",
58
- ":is(:is(.FormControl-input-wrap .FormControl-input-trailingAction):after)",
59
- ":is(.FormControl-input-wrap .FormControl-input-trailingAction):after",
60
- ".FormControl-input-wrap.FormControl-input-wrap--leadingVisual .FormControl-input",
61
- ".FormControl-input-wrap.FormControl-input-wrap--trailingVisual .FormControl-input",
62
- ".FormControl-input-wrap.FormControl-input-wrap--trailingVisual:has(.FormControl-input-trailingVisualLabel) .FormControl-input",
63
- ".FormControl-input-wrap.FormControl-input-wrap--trailingVisual:has(.FormControl-input-trailingVisualText) .FormControl-input",
64
- ".FormControl-input-wrap.FormControl-input-wrap--trailingAction .FormControl-input",
65
- ".FormControl-input-wrap.FormControl-input-wrap--trailingAction.FormControl-input-wrap-trailingAction--divider .FormControl-input",
66
- ".FormControl-input-wrap.FormControl-input-wrap--small .FormControl-input-leadingVisualWrap",
67
- ".FormControl-input-wrap.FormControl-input-wrap--small .FormControl-input-trailingVisualWrap",
68
- ".FormControl-input-wrap.FormControl-input-wrap--small.FormControl-input-wrap--trailingAction .FormControl-input.FormControl-small",
69
- ".FormControl-input-wrap.FormControl-input-wrap--small.FormControl-input-wrap--trailingAction.FormControl-input-wrap-trailingAction--divider .FormControl-input.FormControl-small",
70
- ".FormControl-input-wrap.FormControl-input-wrap--small .FormControl-input-trailingAction",
71
- ":is(.FormControl-input-wrap.FormControl-input-wrap--small .FormControl-input-trailingAction):before",
72
- ".FormControl-input-wrap.FormControl-input-wrap--large .FormControl-input-leadingVisualWrap",
73
- ".FormControl-input-wrap.FormControl-input-wrap--large .FormControl-input-trailingVisualWrap",
74
- ".FormControl-input-wrap.FormControl-input-wrap--large.FormControl-input-wrap--leadingVisual .FormControl-input.FormControl-large",
75
- ".FormControl-input-wrap.FormControl-input-wrap--large.FormControl-input-wrap--trailingVisual .FormControl-input",
76
- ".FormControl-input-wrap.FormControl-input-wrap--large.FormControl-input-wrap--trailingLabel .FormControl-input.FormControl-large",
77
- ".FormControl-input-wrap.FormControl-input-wrap--large.FormControl-input-wrap--trailingText .FormControl-input.FormControl-large",
78
- ".FormControl-input-wrap.FormControl-input-wrap--large.FormControl-input-wrap--trailingVisual:has(.FormControl-input-trailingVisualLabel) .FormControl-input",
79
- ".FormControl-input-wrap.FormControl-input-wrap--large.FormControl-input-wrap--trailingVisual:has(.FormControl-input-trailingVisualText) .FormControl-input",
80
- ".FormControl-input-wrap.FormControl-input-wrap--large.FormControl-input-wrap--trailingAction .FormControl-input.FormControl-large",
81
- ".FormControl-input-wrap.FormControl-input-wrap--large.FormControl-input-wrap--trailingAction.FormControl-input-wrap-trailingAction--divider .FormControl-input.FormControl-large",
82
- ".FormControl-input-wrap.FormControl-input-wrap--large .FormControl-input-trailingAction",
83
- ":is(.FormControl-input-wrap.FormControl-input-wrap--large .FormControl-input-trailingAction):before",
84
- ".FormControl-select-wrap",
85
- ".FormControl-select-wrap.FormControl-input-width--auto",
86
- ".FormControl-select-wrap.FormControl-input-width--xsmall",
87
- ".FormControl-select-wrap.FormControl-input-width--small",
88
- ".FormControl-select-wrap.FormControl-input-width--medium",
89
- ".FormControl-select-wrap.FormControl-input-width--large",
90
- ".FormControl-select-wrap.FormControl-input-width--xlarge",
91
- ".FormControl-select-wrap.FormControl-input-width--xxlarge",
92
- ".FormControl-select-wrap:after",
93
- ".FormControl-select-wrap .FormControl-select",
94
- ".FormControl-select-wrap[data-multiple]:after",
95
- ".FormControl-select-wrap[data-multiple] .FormControl-select",
96
- ".FormControl-checkbox-wrap",
97
- ".FormControl-radio-wrap",
98
- ":is(.FormControl-checkbox-wrap,.FormControl-radio-wrap) .FormControl-label",
99
- ".FormControl-checkbox-wrap .FormControl-checkbox-labelWrap",
100
- ".FormControl-radio-wrap .FormControl-radio-labelWrap",
101
- ".FormControl-check-group-wrap fieldset",
102
- ".FormControl-radio-group-wrap fieldset",
103
- ".FormControl-checkbox",
104
- ".FormControl-checkbox[disabled]",
105
- ".FormControl-checkbox[invalid=true]:not(:focus)",
106
- ".FormControl-checkbox[invalid=false]:not(:focus)",
107
- ".FormControl-checkbox:not([type=checkbox],[type=radio]):focus",
108
- ".FormControl-checkbox:not([type=checkbox],[type=radio]):focus:not(:focus-visible)",
109
- ".FormControl-checkbox:not([type=checkbox],[type=radio]):focus-visible",
110
- ".FormControl-checkbox:before",
111
- ":is(.FormControl-checkbox:after)",
112
- ":is(.FormControl-checkbox[disabled]~.FormControl-checkbox-labelWrap) .FormControl-label",
113
- ".FormControl-checkbox:checked",
114
- ".FormControl-checkbox:checked:before",
115
- ".FormControl-checkbox:checked:disabled",
116
- ".FormControl-checkbox:checked:disabled:before",
117
- ".FormControl-checkbox:focus-visible",
118
- ".FormControl-checkbox:indeterminate:before",
119
- ".FormControl-radio",
120
- ".FormControl-radio[disabled]",
121
- ".FormControl-radio[invalid=true]:not(:focus)",
122
- ".FormControl-radio[invalid=false]:not(:focus)",
123
- ".FormControl-radio:not([type=checkbox],[type=radio]):focus",
124
- ".FormControl-radio:not([type=checkbox],[type=radio]):focus:not(:focus-visible)",
125
- ".FormControl-radio:not([type=checkbox],[type=radio]):focus-visible",
126
- ":is(.FormControl-radio:after)",
127
- ":is(.FormControl-radio[disabled]~.FormControl-radio-labelWrap) .FormControl-label",
128
- ".FormControl-radio:checked",
129
- ".FormControl-radio:checked:disabled",
130
- ".FormControl-radio[disabled]:checked",
131
- ":is(:is(.FormControl-radio[disabled]:checked,.FormControl-radio:checked:disabled)~.FormControl-radio-labelWrap) .FormControl-label",
132
- ".FormControl-radio:focus-visible"
133
- ]
134
- }
@@ -1,40 +0,0 @@
1
- {
2
- "name": "alpha/toggle_switch",
3
- "selectors": [
4
- ".ToggleSwitch",
5
- ".ToggleSwitch.ToggleSwitch",
6
- ".ToggleSwitch--checked .ToggleSwitch-statusOn",
7
- ".ToggleSwitch--checked .ToggleSwitch-statusOff",
8
- ".ToggleSwitch-track",
9
- ".ToggleSwitch-track:focus",
10
- ".ToggleSwitch-track:focus-visible",
11
- ".ToggleSwitch-track:hover",
12
- ".ToggleSwitch-track:active",
13
- ":is(.ToggleSwitch-track:before)",
14
- ".ToggleSwitch-track *",
15
- ".ToggleSwitch-track[aria-pressed=true][disabled]",
16
- ".ToggleSwitch-track[aria-pressed=true]",
17
- ".ToggleSwitch-track[aria-pressed=true]:not([disabled]):hover",
18
- ".ToggleSwitch-track[aria-pressed=true]:not([disabled]):active",
19
- ".ToggleSwitch-track[aria-pressed=true] .ToggleSwitch-knob",
20
- ".ToggleSwitch-track[aria-pressed=true] .ToggleSwitch-lineIcon",
21
- ".ToggleSwitch-track[aria-pressed=true] .ToggleSwitch-circleIcon",
22
- ".ToggleSwitch-track[disabled]",
23
- ".ToggleSwitch-track[disabled] .ToggleSwitch-knob",
24
- ".ToggleSwitch-track[disabled] .ToggleSwitch-circleIcon",
25
- ".ToggleSwitch-track[disabled] .ToggleSwitch-lineIcon",
26
- ".ToggleSwitch-icons",
27
- ".ToggleSwitch-lineIcon",
28
- ".ToggleSwitch-circleIcon",
29
- ".ToggleSwitch-knob",
30
- ".ToggleSwitch-status",
31
- ".ToggleSwitch-statusIcon",
32
- ".ToggleSwitch--small .ToggleSwitch-status",
33
- ".ToggleSwitch--small .ToggleSwitch-track",
34
- ".ToggleSwitch--disabled .ToggleSwitch-status",
35
- ".ToggleSwitch-statusOn",
36
- ".ToggleSwitch-statusOff",
37
- ".ToggleSwitch--statusAtEnd",
38
- ".ToggleSwitch--statusAtEnd .ToggleSwitch-status"
39
- ]
40
- }