openproject-primer_view_components 0.95.0 → 0.97.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 (183) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -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 +7 -2
  10. data/app/components/primer/alpha/action_list.css +1 -1
  11. data/app/components/primer/alpha/action_list.css.json +16 -27
  12. data/app/components/primer/alpha/action_list.css.map +1 -1
  13. data/app/components/primer/alpha/action_list.html.erb +1 -5
  14. data/app/components/primer/alpha/action_list.pcss +55 -81
  15. data/app/components/primer/alpha/action_list.rb +9 -7
  16. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +6 -0
  17. data/app/components/primer/alpha/action_menu/action_menu_element.js +239 -84
  18. data/app/components/primer/alpha/action_menu/action_menu_element.ts +261 -81
  19. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +4 -1
  20. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +38 -14
  21. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts +42 -13
  22. data/app/components/primer/alpha/action_menu/menu.html.erb +27 -19
  23. data/app/components/primer/alpha/action_menu/menu.rb +7 -0
  24. data/app/components/primer/alpha/action_menu/menu_loader.d.ts +21 -0
  25. data/app/components/primer/alpha/action_menu/menu_loader.js +221 -0
  26. data/app/components/primer/alpha/action_menu/menu_loader.ts +269 -0
  27. data/app/components/primer/alpha/action_menu/primary_menu.rb +15 -0
  28. data/app/components/primer/alpha/action_menu.rb +55 -0
  29. data/app/components/primer/alpha/auto_complete.css +1 -1
  30. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  31. data/app/components/primer/alpha/banner.css +1 -1
  32. data/app/components/primer/alpha/banner.css.map +1 -1
  33. data/app/components/primer/alpha/button_marketing.css +1 -1
  34. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  35. data/app/components/primer/alpha/dialog.css +1 -1
  36. data/app/components/primer/alpha/dialog.css.map +1 -1
  37. data/app/components/primer/alpha/dropdown/menu.rb +1 -1
  38. data/app/components/primer/alpha/dropdown.css +1 -1
  39. data/app/components/primer/alpha/dropdown.css.json +1 -1
  40. data/app/components/primer/alpha/dropdown.css.map +1 -1
  41. data/app/components/primer/alpha/layout.css +1 -1
  42. data/app/components/primer/alpha/layout.css.json +3 -3
  43. data/app/components/primer/alpha/layout.css.map +1 -1
  44. data/app/components/primer/alpha/menu.css +1 -1
  45. data/app/components/primer/alpha/menu.css.json +3 -3
  46. data/app/components/primer/alpha/menu.css.map +1 -1
  47. data/app/components/primer/alpha/overlay.css +1 -1
  48. data/app/components/primer/alpha/overlay.css.map +1 -1
  49. data/app/components/primer/alpha/segmented_control.css +1 -1
  50. data/app/components/primer/alpha/segmented_control.css.json +1 -1
  51. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  52. data/app/components/primer/alpha/select_panel.css +1 -1
  53. data/app/components/primer/alpha/select_panel.css.map +1 -1
  54. data/app/components/primer/alpha/skeleton_box.css +1 -1
  55. data/app/components/primer/alpha/skeleton_box.css.map +1 -1
  56. data/app/components/primer/alpha/stack.css +1 -1
  57. data/app/components/primer/alpha/stack.css.map +1 -1
  58. data/app/components/primer/alpha/stack_item.css +1 -1
  59. data/app/components/primer/alpha/stack_item.css.map +1 -1
  60. data/app/components/primer/alpha/tab_nav.css +1 -1
  61. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  62. data/app/components/primer/alpha/text_field.css +1 -1
  63. data/app/components/primer/alpha/text_field.css.map +1 -1
  64. data/app/components/primer/alpha/toggle_switch.css +1 -1
  65. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  66. data/app/components/primer/alpha/tree_view.css +1 -1
  67. data/app/components/primer/alpha/tree_view.css.json +3 -3
  68. data/app/components/primer/alpha/tree_view.css.map +1 -1
  69. data/app/components/primer/alpha/underline_nav.css +1 -1
  70. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  71. data/app/components/primer/beta/border_box.css +1 -1
  72. data/app/components/primer/beta/border_box.css.json +5 -5
  73. data/app/components/primer/beta/border_box.css.map +1 -1
  74. data/app/components/primer/beta/button.css +1 -1
  75. data/app/components/primer/beta/button.css.map +1 -1
  76. data/app/components/primer/beta/button.pcss +97 -0
  77. data/app/components/primer/beta/button.rb +15 -3
  78. data/app/components/primer/beta/counter.css +1 -1
  79. data/app/components/primer/beta/counter.css.map +1 -1
  80. data/app/components/primer/beta/flash.css +1 -1
  81. data/app/components/primer/beta/flash.css.map +1 -1
  82. data/app/components/primer/beta/link.css +1 -1
  83. data/app/components/primer/beta/link.css.json +1 -1
  84. data/app/components/primer/beta/link.css.map +1 -1
  85. data/app/components/primer/beta/popover.css +1 -1
  86. data/app/components/primer/beta/popover.css.map +1 -1
  87. data/app/components/primer/beta/progress_bar.css +1 -1
  88. data/app/components/primer/beta/progress_bar.css.map +1 -1
  89. data/app/components/primer/beta/relative_time.rb +7 -1
  90. data/app/components/primer/beta/state.css +1 -1
  91. data/app/components/primer/beta/state.css.json +2 -2
  92. data/app/components/primer/beta/state.css.map +1 -1
  93. data/app/components/primer/beta/timeline_item.css +1 -1
  94. data/app/components/primer/beta/timeline_item.css.map +1 -1
  95. data/app/components/primer/open_project/border_grid.css +1 -1
  96. data/app/components/primer/open_project/border_grid.css.map +1 -1
  97. data/app/components/primer/open_project/color_field.css +1 -1
  98. data/app/components/primer/open_project/color_field.css.map +1 -1
  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/keybinding_hint/chords.d.ts +5 -0
  104. data/app/components/primer/open_project/keybinding_hint/chords.js +29 -0
  105. data/app/components/primer/open_project/keybinding_hint/chords.ts +38 -0
  106. data/app/components/primer/open_project/keybinding_hint/key_names.d.ts +16 -0
  107. data/app/components/primer/open_project/keybinding_hint/key_names.js +107 -0
  108. data/app/components/primer/open_project/keybinding_hint/key_names.ts +116 -0
  109. data/app/components/primer/open_project/keybinding_hint/localized_names.d.ts +22 -0
  110. data/app/components/primer/open_project/keybinding_hint/localized_names.js +47 -0
  111. data/app/components/primer/open_project/keybinding_hint/localized_names.ts +71 -0
  112. data/app/components/primer/open_project/keybinding_hint/names.rb +92 -0
  113. data/app/components/primer/open_project/keybinding_hint/names_from_scope.d.ts +21 -0
  114. data/app/components/primer/open_project/keybinding_hint/names_from_scope.js +81 -0
  115. data/app/components/primer/open_project/keybinding_hint/names_from_scope.ts +96 -0
  116. data/app/components/primer/open_project/keybinding_hint/platform.d.ts +10 -0
  117. data/app/components/primer/open_project/keybinding_hint/platform.js +24 -0
  118. data/app/components/primer/open_project/keybinding_hint/platform.ts +34 -0
  119. data/app/components/primer/open_project/keybinding_hint/platform_override.d.ts +2 -0
  120. data/app/components/primer/open_project/keybinding_hint/platform_override.js +4 -0
  121. data/app/components/primer/open_project/keybinding_hint/platform_override.ts +7 -0
  122. data/app/components/primer/open_project/keybinding_hint.css +1 -0
  123. data/app/components/primer/open_project/keybinding_hint.css.json +10 -0
  124. data/app/components/primer/open_project/keybinding_hint.css.map +1 -0
  125. data/app/components/primer/open_project/keybinding_hint.html.erb +4 -0
  126. data/app/components/primer/open_project/keybinding_hint.pcss +65 -0
  127. data/app/components/primer/open_project/keybinding_hint.rb +112 -0
  128. data/app/components/primer/open_project/keybinding_hint_element.d.ts +31 -0
  129. data/app/components/primer/open_project/keybinding_hint_element.js +183 -0
  130. data/app/components/primer/open_project/keybinding_hint_element.ts +152 -0
  131. data/app/components/primer/open_project/page_header.css +1 -1
  132. data/app/components/primer/open_project/page_header.css.json +2 -2
  133. data/app/components/primer/open_project/page_header.css.map +1 -1
  134. data/app/components/primer/open_project/pagination.css +1 -1
  135. data/app/components/primer/open_project/pagination.css.json +1 -1
  136. data/app/components/primer/open_project/pagination.css.map +1 -1
  137. data/app/components/primer/open_project/sub_header.css +1 -1
  138. data/app/components/primer/open_project/sub_header.css.map +1 -1
  139. data/app/components/primer/primer.d.ts +1 -0
  140. data/app/components/primer/primer.js +1 -0
  141. data/app/components/primer/primer.pcss +1 -0
  142. data/app/components/primer/primer.ts +1 -0
  143. data/app/components/primer/truncate.css +1 -1
  144. data/app/components/primer/truncate.css.json +3 -4
  145. data/app/components/primer/truncate.css.map +1 -1
  146. data/app/controllers/primer/view_components/action_menu_controller.rb +35 -0
  147. data/app/views/primer/view_components/action_menu/deferred.html.erb +25 -11
  148. data/app/views/primer/view_components/action_menu/deferred_form.html.erb +10 -0
  149. data/app/views/primer/view_components/action_menu/deferred_preload.html.erb +7 -1
  150. data/config/locales/en.yml +179 -0
  151. data/config/routes.rb +1 -0
  152. data/lib/primer/accessibility.rb +1 -2
  153. data/lib/primer/classify.rb +1 -2
  154. data/lib/primer/view_components/version.rb +1 -1
  155. data/previews/primer/alpha/action_list_preview.rb +46 -1
  156. data/previews/primer/alpha/action_menu_preview/deferred_refresh.html.erb +34 -0
  157. data/previews/primer/alpha/action_menu_preview/deferred_refresh_form.html.erb +9 -0
  158. data/previews/primer/alpha/action_menu_preview/sub_menus.html.erb +1 -1
  159. data/previews/primer/alpha/action_menu_preview.rb +19 -2
  160. data/previews/primer/open_project/keybinding_hint_preview/full_format.html.erb +3 -0
  161. data/previews/primer/open_project/keybinding_hint_preview/in_action_list.html.erb +12 -0
  162. data/previews/primer/open_project/keybinding_hint_preview/in_button.html.erb +24 -0
  163. data/previews/primer/open_project/keybinding_hint_preview/platforms.html.erb +8 -0
  164. data/previews/primer/open_project/keybinding_hint_preview/playground.html.erb +4 -0
  165. data/previews/primer/open_project/keybinding_hint_preview/prose.html.erb +3 -0
  166. data/previews/primer/open_project/keybinding_hint_preview/schemes.html.erb +6 -0
  167. data/previews/primer/open_project/keybinding_hint_preview/sequence.html.erb +1 -0
  168. data/previews/primer/open_project/keybinding_hint_preview/sizes.html.erb +4 -0
  169. data/previews/primer/open_project/keybinding_hint_preview.rb +71 -0
  170. data/static/arguments.json +55 -3
  171. data/static/audited_at.json +1 -0
  172. data/static/classes.json +15 -3
  173. data/static/classnames.cjs +5 -1
  174. data/static/classnames.js +5 -1
  175. data/static/constants.json +35 -0
  176. data/static/info_arch.json +255 -10
  177. data/static/previews.json +177 -0
  178. data/static/statuses.json +1 -0
  179. metadata +45 -5
  180. data/app/components/primer/alpha/text_field.css.json +0 -134
  181. data/app/components/primer/alpha/toggle_switch.css.json +0 -40
  182. data/app/components/primer/alpha/underline_nav.css.json +0 -26
  183. data/app/components/primer/beta/button.css.json +0 -86
@@ -0,0 +1,3 @@
1
+ <%= render(Primer::Beta::Text.new(tag: :p)) do %>
2
+ Press <%= render(Primer::OpenProject::KeybindingHint.new(keys: "Mod+Enter", data: { platform: "other" })) %> to save, or <%= render(Primer::OpenProject::KeybindingHint.new(keys: "Escape", data: { platform: "other" })) %> to cancel.
3
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <%= render(Primer::Box.new(display: :flex, style: "gap: var(--base-size-16); align-items: center")) do %>
2
+ <%= render(Primer::OpenProject::KeybindingHint.new(keys: "Mod+Shift+p", scheme: :default, data: { platform: "other" })) %>
3
+ <%= render(Primer::Box.new(p: 2, style: "background: var(--bgColor-emphasis); color: var(--fgColor-onEmphasis); border-radius: var(--borderRadius-medium)")) do %>
4
+ <%= render(Primer::OpenProject::KeybindingHint.new(keys: "Mod+Shift+p", scheme: :emphasis, data: { platform: "other" })) %>
5
+ <% end %>
6
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render(Primer::OpenProject::KeybindingHint.new(keys: "g i", data: { platform: "other" })) %>
@@ -0,0 +1,4 @@
1
+ <%= render(Primer::Box.new(display: :flex, style: "gap: var(--base-size-16); align-items: center")) do %>
2
+ <%= render(Primer::OpenProject::KeybindingHint.new(keys: "Mod+Shift+p", size: :medium, data: { platform: "other" })) %>
3
+ <%= render(Primer::OpenProject::KeybindingHint.new(keys: "Mod+Shift+p", size: :small, data: { platform: "other" })) %>
4
+ <% end %>
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Primer
4
+ module OpenProject
5
+ # @label KeybindingHint
6
+ class KeybindingHintPreview < ViewComponent::Preview
7
+ # `platform` is forced on snapshotted previews so CI (Linux) and
8
+ # developer machines (macOS) render the same glyphs.
9
+ #
10
+ # @label Default
11
+ # @snapshot
12
+ def default
13
+ render(Primer::OpenProject::KeybindingHint.new(keys: "Mod+Shift+p", data: { platform: "other" }))
14
+ end
15
+
16
+ # @label Playground
17
+ # @param keys text
18
+ # @param format [Symbol] select [condensed, full]
19
+ # @param scheme [Symbol] select [default, emphasis]
20
+ # @param size [Symbol] select [medium, small]
21
+ # @param platform [Symbol] select [detect, apple, windows, other]
22
+ # @param locale [Symbol] select [en, de]
23
+ def playground(keys: "Mod+Shift+p", format: :condensed, scheme: :default, size: :medium, platform: :detect, locale: :en)
24
+ render_with_template(locals: { keys: keys, format: format.to_sym, scheme: scheme.to_sym, size: size.to_sym, platform: platform.to_sym, locale: locale.to_sym })
25
+ end
26
+
27
+ # @label Full format
28
+ def full_format
29
+ render_with_template
30
+ end
31
+
32
+ # @label Sequence
33
+ def sequence
34
+ render_with_template
35
+ end
36
+
37
+ # @label Sizes
38
+ def sizes
39
+ render_with_template
40
+ end
41
+
42
+ # @label Schemes
43
+ def schemes
44
+ render_with_template
45
+ end
46
+
47
+ # @label Platforms
48
+ # @snapshot
49
+ def platforms
50
+ render_with_template
51
+ end
52
+
53
+ # @label In prose
54
+ def prose
55
+ render_with_template
56
+ end
57
+
58
+ # @label In Button
59
+ # @snapshot
60
+ def in_button
61
+ render_with_template
62
+ end
63
+
64
+ # @label In ActionList
65
+ # @snapshot
66
+ def in_action_list
67
+ render_with_template
68
+ end
69
+ end
70
+ end
71
+ end
@@ -94,7 +94,7 @@
94
94
  "name": "show_dividers",
95
95
  "type": "Boolean",
96
96
  "default": "`false`",
97
- "description": "Display a divider above each item in the list when it does not follow a header or divider."
97
+ "description": "Display a dividing line above each item in the list when it does not follow a header or divider. These are more subtle than manually inserted dividers. Only supported by `ActionList` itself so far. Menus have too many special cases. Hidden items are not supported, whether they are rendered with `hidden: true` or hidden later, eg. by filtering: the lines are placed with CSS sibling selectors. To leave items out, don't render them, or remove them from the DOM rather than setting `hidden`."
98
98
  },
99
99
  {
100
100
  "name": "select_variant",
@@ -369,7 +369,7 @@
369
369
  "name": "show_dividers",
370
370
  "type": "Boolean",
371
371
  "default": "`false`",
372
- "description": "Display a divider above each item in the list when it does not follow a header or divider."
372
+ "description": "Display a dividing line above each item in the list when it does not follow a header or divider. These are more subtle than manually inserted dividers. Only supported by `ActionList` itself so far. Menus have too many special cases. Hidden items are not supported, whether they are rendered with `hidden: true` or hidden later, eg. by filtering: the lines are placed with CSS sibling selectors. To leave items out, don't render them, or remove them from the DOM rather than setting `hidden`."
373
373
  },
374
374
  {
375
375
  "name": "select_variant",
@@ -518,6 +518,12 @@
518
518
  "default": "`{}`",
519
519
  "description": "Arguments to pass to the underlying [ActionMenu::List](/components/alpha/actionmenulist)"
520
520
  },
521
+ {
522
+ "name": "body_arguments",
523
+ "type": "Hash",
524
+ "default": "`{}`",
525
+ "description": "Arguments to pass to the underlying overlay's `body` slot."
526
+ },
521
527
  {
522
528
  "name": "system_arguments",
523
529
  "type": "Hash",
@@ -5153,7 +5159,7 @@
5153
5159
  "name": "minute",
5154
5160
  "type": "Symbol",
5155
5161
  "default": "`MINUTE_DEFAULT`",
5156
- "description": "What format minues should take. One of `nil`, `:numeric`, or `:two_digit`."
5162
+ "description": "What format minutes should take. One of `nil`, `:numeric`, or `:two_digit`."
5157
5163
  },
5158
5164
  {
5159
5165
  "name": "hour",
@@ -5161,6 +5167,12 @@
5161
5167
  "default": "`HOUR_DEFAULT`",
5162
5168
  "description": "What format hours should take. One of `nil`, `:numeric`, or `:two_digit`."
5163
5169
  },
5170
+ {
5171
+ "name": "hour_cycle",
5172
+ "type": "Symbol",
5173
+ "default": "`HOUR_CYCLE_DEFAULT`",
5174
+ "description": "What hour cycle should be used. One of `nil`, `:h11`, `:h12`, `:h23`, or `:h24`."
5175
+ },
5164
5176
  {
5165
5177
  "name": "weekday",
5166
5178
  "type": "Symbol",
@@ -6599,6 +6611,46 @@
6599
6611
  }
6600
6612
  ]
6601
6613
  },
6614
+ {
6615
+ "component": "OpenProject::KeybindingHint",
6616
+ "status": "open_project",
6617
+ "a11y_reviewed": false,
6618
+ "short_name": "OpenProjectKeybindingHint",
6619
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/keybinding_hint.rb",
6620
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/keybinding_hint/default/",
6621
+ "parameters": [
6622
+ {
6623
+ "name": "keys",
6624
+ "type": "String",
6625
+ "default": "N/A",
6626
+ "description": "The keys of the shortcut, e.g. `\"Mod+Shift+p\"` or `\"g i\"`. See the class documentation for the syntax."
6627
+ },
6628
+ {
6629
+ "name": "format",
6630
+ "type": "Symbol",
6631
+ "default": "`:condensed`",
6632
+ "description": "One of `:condensed` or `:full`. `:condensed` shows symbols (⌘⇧P) and suits menus and buttons; `:full` spells keys out (Command + Shift + P) and suits prose."
6633
+ },
6634
+ {
6635
+ "name": "scheme",
6636
+ "type": "Symbol",
6637
+ "default": "`:default`",
6638
+ "description": "One of `:default` or `:emphasis`. Use `:emphasis` on emphasis-coloured backgrounds."
6639
+ },
6640
+ {
6641
+ "name": "size",
6642
+ "type": "Symbol",
6643
+ "default": "`:medium`",
6644
+ "description": "One of `:medium` or `:small`."
6645
+ },
6646
+ {
6647
+ "name": "system_arguments",
6648
+ "type": "Hash",
6649
+ "default": "N/A",
6650
+ "description": "[System arguments](/system-arguments)"
6651
+ }
6652
+ ]
6653
+ },
6602
6654
  {
6603
6655
  "component": "OpenProject::PageHeader",
6604
6656
  "status": "open_project",
@@ -165,6 +165,7 @@
165
165
  "Primer::OpenProject::InlineMessage": "",
166
166
  "Primer::OpenProject::InputGroup": "",
167
167
  "Primer::OpenProject::InsetBox": "",
168
+ "Primer::OpenProject::KeybindingHint": "",
168
169
  "Primer::OpenProject::PageHeader": "",
169
170
  "Primer::OpenProject::PageHeader::Dialog": "",
170
171
  "Primer::OpenProject::PageHeader::Menu": "",
data/static/classes.json CHANGED
@@ -35,6 +35,9 @@
35
35
  "ActionListItem": [
36
36
  "Primer::Alpha::ActionList"
37
37
  ],
38
+ "ActionListItem--divided": [
39
+ "Primer::Alpha::ActionList"
40
+ ],
38
41
  "ActionListItem--subItem": [
39
42
  "Primer::Alpha::ActionList"
40
43
  ],
@@ -83,9 +86,6 @@
83
86
  "ActionListWrap": [
84
87
  "Primer::Alpha::ActionList"
85
88
  ],
86
- "ActionListWrap--divided": [
87
- "Primer::Alpha::ActionList"
88
- ],
89
89
  "ActionListWrap--inset": [
90
90
  "Primer::Alpha::ActionList"
91
91
  ],
@@ -403,6 +403,18 @@
403
403
  "InsetBox--title-container": [
404
404
  "Primer::OpenProject::InsetBox"
405
405
  ],
406
+ "KeybindingHint-chord": [
407
+ "Primer::OpenProject::KeybindingHint"
408
+ ],
409
+ "KeybindingHint-chord--emphasis": [
410
+ "Primer::OpenProject::KeybindingHint"
411
+ ],
412
+ "KeybindingHint-chord--small": [
413
+ "Primer::OpenProject::KeybindingHint"
414
+ ],
415
+ "KeybindingHint-kbd": [
416
+ "Primer::OpenProject::KeybindingHint"
417
+ ],
406
418
  "Label": [
407
419
  "Primer::Beta::Label"
408
420
  ],
@@ -23,6 +23,7 @@ module.exports = new Set([
23
23
  'ActionListItem',
24
24
  'ActionListItem--danger',
25
25
  'ActionListItem--disabled',
26
+ 'ActionListItem--divided',
26
27
  'ActionListItem--hasSubItem',
27
28
  'ActionListItem--navActive',
28
29
  'ActionListItem--subItem',
@@ -43,7 +44,6 @@ module.exports = new Set([
43
44
  'ActionListItem-visual--leading',
44
45
  'ActionListItem-visual--trailing',
45
46
  'ActionListWrap',
46
- 'ActionListWrap--divided',
47
47
  'ActionListWrap--inset',
48
48
  'AvatarStack',
49
49
  'AvatarStack--right',
@@ -201,6 +201,10 @@ module.exports = new Set([
201
201
  'InsetBox--body',
202
202
  'InsetBox--body--clip_board_copy',
203
203
  'InsetBox--title-container',
204
+ 'KeybindingHint-chord',
205
+ 'KeybindingHint-chord--emphasis',
206
+ 'KeybindingHint-chord--small',
207
+ 'KeybindingHint-kbd',
204
208
  'Label',
205
209
  'Label--accent',
206
210
  'Label--attention',
data/static/classnames.js CHANGED
@@ -23,6 +23,7 @@ const classNames = new Set([
23
23
  'ActionListItem',
24
24
  'ActionListItem--danger',
25
25
  'ActionListItem--disabled',
26
+ 'ActionListItem--divided',
26
27
  'ActionListItem--hasSubItem',
27
28
  'ActionListItem--navActive',
28
29
  'ActionListItem--subItem',
@@ -43,7 +44,6 @@ const classNames = new Set([
43
44
  'ActionListItem-visual--leading',
44
45
  'ActionListItem-visual--trailing',
45
46
  'ActionListWrap',
46
- 'ActionListWrap--divided',
47
47
  'ActionListWrap--inset',
48
48
  'AvatarStack',
49
49
  'AvatarStack--right',
@@ -201,6 +201,10 @@ const classNames = new Set([
201
201
  'InsetBox--body',
202
202
  'InsetBox--body--clip_board_copy',
203
203
  'InsetBox--title-container',
204
+ 'KeybindingHint-chord',
205
+ 'KeybindingHint-chord--emphasis',
206
+ 'KeybindingHint-chord--small',
207
+ 'KeybindingHint-kbd',
204
208
  'Label',
205
209
  'Label--accent',
206
210
  'Label--attention',
@@ -1433,6 +1433,14 @@
1433
1433
  "narrow"
1434
1434
  ],
1435
1435
  "GeneratedSlotMethods": "Primer::Beta::RelativeTime::GeneratedSlotMethods",
1436
+ "HOUR_CYCLE_DEFAULT": null,
1437
+ "HOUR_CYCLE_OPTIONS": [
1438
+ null,
1439
+ "h11",
1440
+ "h12",
1441
+ "h23",
1442
+ "h24"
1443
+ ],
1436
1444
  "HOUR_DEFAULT": null,
1437
1445
  "HOUR_MAPPINGS": {
1438
1446
  "": null,
@@ -1928,6 +1936,33 @@
1928
1936
  }
1929
1937
  }
1930
1938
  },
1939
+ "Primer::OpenProject::KeybindingHint": {
1940
+ "DEFAULT_FORMAT": "condensed",
1941
+ "DEFAULT_SCHEME": "default",
1942
+ "DEFAULT_SIZE": "medium",
1943
+ "FORMAT_OPTIONS": [
1944
+ "condensed",
1945
+ "full"
1946
+ ],
1947
+ "GeneratedSlotMethods": "Primer::OpenProject::KeybindingHint::GeneratedSlotMethods",
1948
+ "Names": "Primer::OpenProject::KeybindingHint::Names",
1949
+ "SCHEME_MAPPINGS": {
1950
+ "default": "",
1951
+ "emphasis": "KeybindingHint-chord--emphasis"
1952
+ },
1953
+ "SCHEME_OPTIONS": [
1954
+ "default",
1955
+ "emphasis"
1956
+ ],
1957
+ "SIZE_MAPPINGS": {
1958
+ "medium": "",
1959
+ "small": "KeybindingHint-chord--small"
1960
+ },
1961
+ "SIZE_OPTIONS": [
1962
+ "medium",
1963
+ "small"
1964
+ ]
1965
+ },
1931
1966
  "Primer::OpenProject::PageHeader": {
1932
1967
  "BACK_BUTTON_ICON_OPTIONS": [
1933
1968
  "arrow-left",