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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/app/assets/javascripts/primer_view_components.js +11 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_bar.css +1 -1
- data/app/components/primer/alpha/action_bar.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.rb +5 -1
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +13 -11
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +12 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +6 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +389 -84
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +439 -78
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +4 -1
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +37 -13
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts +41 -12
- data/app/components/primer/alpha/action_menu/menu.html.erb +27 -19
- data/app/components/primer/alpha/action_menu/menu.rb +7 -0
- data/app/components/primer/alpha/action_menu/primary_menu.rb +15 -0
- data/app/components/primer/alpha/action_menu.rb +55 -0
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.css +1 -1
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dropdown/menu.rb +1 -1
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.json +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.json +3 -3
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.json +3 -3
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.json +1 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/select_panel.css +1 -1
- data/app/components/primer/alpha/select_panel.css.map +1 -1
- data/app/components/primer/alpha/skeleton_box.css +1 -1
- data/app/components/primer/alpha/skeleton_box.css.map +1 -1
- data/app/components/primer/alpha/stack.css +1 -1
- data/app/components/primer/alpha/stack.css.map +1 -1
- data/app/components/primer/alpha/stack_item.css +1 -1
- data/app/components/primer/alpha/stack_item.css.map +1 -1
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/tree_view.css +1 -1
- data/app/components/primer/alpha/tree_view.css.json +3 -3
- data/app/components/primer/alpha/tree_view.css.map +1 -1
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.json +5 -5
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +97 -0
- data/app/components/primer/beta/button.rb +15 -3
- data/app/components/primer/beta/counter.css +1 -1
- data/app/components/primer/beta/counter.css.map +1 -1
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/link.css +1 -1
- data/app/components/primer/beta/link.css.json +1 -1
- data/app/components/primer/beta/link.css.map +1 -1
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/progress_bar.css +1 -1
- data/app/components/primer/beta/progress_bar.css.map +1 -1
- data/app/components/primer/beta/relative_time.rb +7 -1
- data/app/components/primer/beta/state.css +1 -1
- data/app/components/primer/beta/state.css.json +2 -2
- data/app/components/primer/beta/state.css.map +1 -1
- data/app/components/primer/beta/timeline_item.css +1 -1
- data/app/components/primer/beta/timeline_item.css.map +1 -1
- data/app/components/primer/open_project/border_grid.css +1 -1
- data/app/components/primer/open_project/border_grid.css.map +1 -1
- data/app/components/primer/open_project/color_field.css +1 -1
- data/app/components/primer/open_project/color_field.css.map +1 -1
- data/app/components/primer/open_project/color_swatch.css +1 -0
- data/app/components/primer/open_project/color_swatch.css.json +6 -0
- data/app/components/primer/open_project/color_swatch.css.map +1 -0
- data/app/components/primer/open_project/color_swatch.pcss +8 -0
- data/app/components/primer/open_project/color_swatch.rb +57 -0
- data/app/components/primer/open_project/inline_message.css +1 -1
- data/app/components/primer/open_project/inline_message.css.map +1 -1
- data/app/components/primer/open_project/input_group.css +1 -1
- data/app/components/primer/open_project/input_group.css.map +1 -1
- data/app/components/primer/open_project/inset_box.css +1 -0
- data/app/components/primer/open_project/inset_box.css.json +9 -0
- data/app/components/primer/open_project/inset_box.css.map +1 -0
- data/app/components/primer/open_project/inset_box.html.erb +46 -0
- data/app/components/primer/open_project/inset_box.pcss +24 -0
- data/app/components/primer/open_project/inset_box.rb +63 -0
- data/app/components/primer/open_project/keybinding_hint/chords.d.ts +5 -0
- data/app/components/primer/open_project/keybinding_hint/chords.js +29 -0
- data/app/components/primer/open_project/keybinding_hint/chords.ts +38 -0
- data/app/components/primer/open_project/keybinding_hint/key_names.d.ts +16 -0
- data/app/components/primer/open_project/keybinding_hint/key_names.js +107 -0
- data/app/components/primer/open_project/keybinding_hint/key_names.ts +116 -0
- data/app/components/primer/open_project/keybinding_hint/localized_names.d.ts +22 -0
- data/app/components/primer/open_project/keybinding_hint/localized_names.js +47 -0
- data/app/components/primer/open_project/keybinding_hint/localized_names.ts +71 -0
- data/app/components/primer/open_project/keybinding_hint/names.rb +92 -0
- data/app/components/primer/open_project/keybinding_hint/names_from_scope.d.ts +21 -0
- data/app/components/primer/open_project/keybinding_hint/names_from_scope.js +81 -0
- data/app/components/primer/open_project/keybinding_hint/names_from_scope.ts +96 -0
- data/app/components/primer/open_project/keybinding_hint/platform.d.ts +10 -0
- data/app/components/primer/open_project/keybinding_hint/platform.js +24 -0
- data/app/components/primer/open_project/keybinding_hint/platform.ts +34 -0
- data/app/components/primer/open_project/keybinding_hint/platform_override.d.ts +2 -0
- data/app/components/primer/open_project/keybinding_hint/platform_override.js +4 -0
- data/app/components/primer/open_project/keybinding_hint/platform_override.ts +7 -0
- data/app/components/primer/open_project/keybinding_hint.css +1 -0
- data/app/components/primer/open_project/keybinding_hint.css.json +10 -0
- data/app/components/primer/open_project/keybinding_hint.css.map +1 -0
- data/app/components/primer/open_project/keybinding_hint.html.erb +4 -0
- data/app/components/primer/open_project/keybinding_hint.pcss +65 -0
- data/app/components/primer/open_project/keybinding_hint.rb +112 -0
- data/app/components/primer/open_project/keybinding_hint_element.d.ts +31 -0
- data/app/components/primer/open_project/keybinding_hint_element.js +183 -0
- data/app/components/primer/open_project/keybinding_hint_element.ts +152 -0
- data/app/components/primer/open_project/page_header.css +1 -1
- data/app/components/primer/open_project/page_header.css.json +2 -2
- data/app/components/primer/open_project/page_header.css.map +1 -1
- data/app/components/primer/open_project/pagination.css +1 -1
- data/app/components/primer/open_project/pagination.css.json +1 -1
- data/app/components/primer/open_project/pagination.css.map +1 -1
- data/app/components/primer/open_project/sub_header.css +1 -1
- data/app/components/primer/open_project/sub_header.css.map +1 -1
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.pcss +3 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/components/primer/truncate.css +1 -1
- data/app/components/primer/truncate.css.json +3 -4
- data/app/components/primer/truncate.css.map +1 -1
- data/app/controllers/primer/view_components/action_menu_controller.rb +35 -0
- data/app/views/primer/view_components/action_menu/deferred.html.erb +25 -11
- data/app/views/primer/view_components/action_menu/deferred_form.html.erb +10 -0
- data/app/views/primer/view_components/action_menu/deferred_preload.html.erb +7 -1
- data/config/locales/en.yml +179 -0
- data/config/routes.rb +1 -0
- data/lib/primer/accessibility.rb +1 -2
- data/lib/primer/classify.rb +1 -2
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_menu_preview/deferred_refresh.html.erb +34 -0
- data/previews/primer/alpha/action_menu_preview/deferred_refresh_form.html.erb +9 -0
- data/previews/primer/alpha/action_menu_preview.rb +14 -0
- data/previews/primer/open_project/color_swatch_preview.rb +27 -0
- data/previews/primer/open_project/inset_box_preview.rb +85 -0
- data/previews/primer/open_project/keybinding_hint_preview/full_format.html.erb +3 -0
- data/previews/primer/open_project/keybinding_hint_preview/in_action_list.html.erb +12 -0
- data/previews/primer/open_project/keybinding_hint_preview/in_button.html.erb +24 -0
- data/previews/primer/open_project/keybinding_hint_preview/platforms.html.erb +8 -0
- data/previews/primer/open_project/keybinding_hint_preview/playground.html.erb +4 -0
- data/previews/primer/open_project/keybinding_hint_preview/prose.html.erb +3 -0
- data/previews/primer/open_project/keybinding_hint_preview/schemes.html.erb +6 -0
- data/previews/primer/open_project/keybinding_hint_preview/sequence.html.erb +1 -0
- data/previews/primer/open_project/keybinding_hint_preview/sizes.html.erb +4 -0
- data/previews/primer/open_project/keybinding_hint_preview.rb +71 -0
- data/static/arguments.json +109 -1
- data/static/audited_at.json +3 -0
- data/static/classes.json +27 -0
- data/static/classnames.cjs +9 -0
- data/static/classnames.js +9 -0
- data/static/constants.json +63 -0
- data/static/info_arch.json +523 -8
- data/static/previews.json +310 -0
- data/static/statuses.json +3 -0
- metadata +55 -5
- data/app/components/primer/alpha/text_field.css.json +0 -134
- data/app/components/primer/alpha/toggle_switch.css.json +0 -40
- data/app/components/primer/alpha/underline_nav.css.json +0 -26
- data/app/components/primer/beta/button.css.json +0 -86
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<%= render(Primer::Box.new(display: :flex, style: "gap: var(--base-size-16); align-items: center")) do %>
|
|
2
|
+
<% %w[apple windows other].each do |platform| %>
|
|
3
|
+
<%= render(Primer::Box.new(display: :flex, style: "gap: var(--base-size-8); align-items: center")) do %>
|
|
4
|
+
<%= render(Primer::Beta::Text.new(tag: :span, color: :muted)) { platform } %>
|
|
5
|
+
<%= render(Primer::OpenProject::KeybindingHint.new(keys: "Mod+Alt+Shift+ArrowUp", data: { platform: platform })) %>
|
|
6
|
+
<% end %>
|
|
7
|
+
<% end %>
|
|
8
|
+
<% end %>
|
|
@@ -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
|
data/static/arguments.json
CHANGED
|
@@ -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
|
|
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",
|
|
@@ -6127,6 +6139,34 @@
|
|
|
6127
6139
|
}
|
|
6128
6140
|
]
|
|
6129
6141
|
},
|
|
6142
|
+
{
|
|
6143
|
+
"component": "OpenProject::ColorSwatch",
|
|
6144
|
+
"status": "open_project",
|
|
6145
|
+
"a11y_reviewed": false,
|
|
6146
|
+
"short_name": "OpenProjectColorSwatch",
|
|
6147
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/color_swatch.rb",
|
|
6148
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/color_swatch/default/",
|
|
6149
|
+
"parameters": [
|
|
6150
|
+
{
|
|
6151
|
+
"name": "hexcode",
|
|
6152
|
+
"type": "String",
|
|
6153
|
+
"default": "N/A",
|
|
6154
|
+
"description": "The hex color code to display, e.g. `#FF0000`."
|
|
6155
|
+
},
|
|
6156
|
+
{
|
|
6157
|
+
"name": "show_value",
|
|
6158
|
+
"type": "Boolean",
|
|
6159
|
+
"default": "`false`",
|
|
6160
|
+
"description": "Whether to display the hex value next to the swatch."
|
|
6161
|
+
},
|
|
6162
|
+
{
|
|
6163
|
+
"name": "system_arguments",
|
|
6164
|
+
"type": "Hash",
|
|
6165
|
+
"default": "N/A",
|
|
6166
|
+
"description": "[System arguments](/system-arguments)"
|
|
6167
|
+
}
|
|
6168
|
+
]
|
|
6169
|
+
},
|
|
6130
6170
|
{
|
|
6131
6171
|
"component": "OpenProject::DangerDialog",
|
|
6132
6172
|
"status": "open_project",
|
|
@@ -6543,6 +6583,74 @@
|
|
|
6543
6583
|
}
|
|
6544
6584
|
]
|
|
6545
6585
|
},
|
|
6586
|
+
{
|
|
6587
|
+
"component": "OpenProject::InsetBox",
|
|
6588
|
+
"status": "open_project",
|
|
6589
|
+
"a11y_reviewed": false,
|
|
6590
|
+
"short_name": "OpenProjectInsetBox",
|
|
6591
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/inset_box.rb",
|
|
6592
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/inset_box/default/",
|
|
6593
|
+
"parameters": [
|
|
6594
|
+
{
|
|
6595
|
+
"name": "border",
|
|
6596
|
+
"type": "Boolean",
|
|
6597
|
+
"default": "`true`",
|
|
6598
|
+
"description": "Whether to render a border around the box."
|
|
6599
|
+
},
|
|
6600
|
+
{
|
|
6601
|
+
"name": "scheme",
|
|
6602
|
+
"type": "Symbol",
|
|
6603
|
+
"default": "`:default`",
|
|
6604
|
+
"description": "One of `:danger`, `:default`, `:info`, `:success`, or `:warning`."
|
|
6605
|
+
},
|
|
6606
|
+
{
|
|
6607
|
+
"name": "system_arguments",
|
|
6608
|
+
"type": "Hash",
|
|
6609
|
+
"default": "N/A",
|
|
6610
|
+
"description": "[System arguments](/system-arguments)"
|
|
6611
|
+
}
|
|
6612
|
+
]
|
|
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
|
+
},
|
|
6546
6654
|
{
|
|
6547
6655
|
"component": "OpenProject::PageHeader",
|
|
6548
6656
|
"status": "open_project",
|
data/static/audited_at.json
CHANGED
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"Primer::OpenProject::BorderGrid::Cell": "",
|
|
148
148
|
"Primer::OpenProject::CollapsibleSection": "",
|
|
149
149
|
"Primer::OpenProject::ColorField": "",
|
|
150
|
+
"Primer::OpenProject::ColorSwatch": "",
|
|
150
151
|
"Primer::OpenProject::DangerDialog": "",
|
|
151
152
|
"Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "",
|
|
152
153
|
"Primer::OpenProject::DangerDialog::FormWrapper": "",
|
|
@@ -163,6 +164,8 @@
|
|
|
163
164
|
"Primer::OpenProject::Heading": "",
|
|
164
165
|
"Primer::OpenProject::InlineMessage": "",
|
|
165
166
|
"Primer::OpenProject::InputGroup": "",
|
|
167
|
+
"Primer::OpenProject::InsetBox": "",
|
|
168
|
+
"Primer::OpenProject::KeybindingHint": "",
|
|
166
169
|
"Primer::OpenProject::PageHeader": "",
|
|
167
170
|
"Primer::OpenProject::PageHeader::Dialog": "",
|
|
168
171
|
"Primer::OpenProject::PageHeader::Menu": "",
|
data/static/classes.json
CHANGED
|
@@ -268,6 +268,9 @@
|
|
|
268
268
|
"ColorField": [
|
|
269
269
|
"Primer::OpenProject::ColorField"
|
|
270
270
|
],
|
|
271
|
+
"ColorSwatch--indicator": [
|
|
272
|
+
"Primer::OpenProject::ColorSwatch"
|
|
273
|
+
],
|
|
271
274
|
"Counter": [
|
|
272
275
|
"Primer::Beta::Counter"
|
|
273
276
|
],
|
|
@@ -388,6 +391,30 @@
|
|
|
388
391
|
"InputGroup": [
|
|
389
392
|
"Primer::OpenProject::InputGroup"
|
|
390
393
|
],
|
|
394
|
+
"InsetBox--actions": [
|
|
395
|
+
"Primer::OpenProject::InsetBox"
|
|
396
|
+
],
|
|
397
|
+
"InsetBox--body": [
|
|
398
|
+
"Primer::OpenProject::InsetBox"
|
|
399
|
+
],
|
|
400
|
+
"InsetBox--body--clip_board_copy": [
|
|
401
|
+
"Primer::OpenProject::InsetBox"
|
|
402
|
+
],
|
|
403
|
+
"InsetBox--title-container": [
|
|
404
|
+
"Primer::OpenProject::InsetBox"
|
|
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
|
+
],
|
|
391
418
|
"Label": [
|
|
392
419
|
"Primer::Beta::Label"
|
|
393
420
|
],
|
data/static/classnames.cjs
CHANGED
|
@@ -126,6 +126,7 @@ module.exports = new Set([
|
|
|
126
126
|
'ColorField-picker',
|
|
127
127
|
'ColorField-swatch',
|
|
128
128
|
'ColorField-wrap',
|
|
129
|
+
'ColorSwatch--indicator',
|
|
129
130
|
'Counter',
|
|
130
131
|
'Counter--primary',
|
|
131
132
|
'Counter--secondary',
|
|
@@ -196,6 +197,14 @@ module.exports = new Set([
|
|
|
196
197
|
'InputGroup-input-width--xlarge',
|
|
197
198
|
'InputGroup-input-width--xsmall',
|
|
198
199
|
'InputGroup-input-width--xxlarge',
|
|
200
|
+
'InsetBox--actions',
|
|
201
|
+
'InsetBox--body',
|
|
202
|
+
'InsetBox--body--clip_board_copy',
|
|
203
|
+
'InsetBox--title-container',
|
|
204
|
+
'KeybindingHint-chord',
|
|
205
|
+
'KeybindingHint-chord--emphasis',
|
|
206
|
+
'KeybindingHint-chord--small',
|
|
207
|
+
'KeybindingHint-kbd',
|
|
199
208
|
'Label',
|
|
200
209
|
'Label--accent',
|
|
201
210
|
'Label--attention',
|
data/static/classnames.js
CHANGED
|
@@ -126,6 +126,7 @@ const classNames = new Set([
|
|
|
126
126
|
'ColorField-picker',
|
|
127
127
|
'ColorField-swatch',
|
|
128
128
|
'ColorField-wrap',
|
|
129
|
+
'ColorSwatch--indicator',
|
|
129
130
|
'Counter',
|
|
130
131
|
'Counter--primary',
|
|
131
132
|
'Counter--secondary',
|
|
@@ -196,6 +197,14 @@ const classNames = new Set([
|
|
|
196
197
|
'InputGroup-input-width--xlarge',
|
|
197
198
|
'InputGroup-input-width--xsmall',
|
|
198
199
|
'InputGroup-input-width--xxlarge',
|
|
200
|
+
'InsetBox--actions',
|
|
201
|
+
'InsetBox--body',
|
|
202
|
+
'InsetBox--body--clip_board_copy',
|
|
203
|
+
'InsetBox--title-container',
|
|
204
|
+
'KeybindingHint-chord',
|
|
205
|
+
'KeybindingHint-chord--emphasis',
|
|
206
|
+
'KeybindingHint-chord--small',
|
|
207
|
+
'KeybindingHint-kbd',
|
|
199
208
|
'Label',
|
|
200
209
|
'Label--accent',
|
|
201
210
|
'Label--attention',
|
data/static/constants.json
CHANGED
|
@@ -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,
|
|
@@ -1767,6 +1775,9 @@
|
|
|
1767
1775
|
"Primer::OpenProject::ColorField": {
|
|
1768
1776
|
"GeneratedSlotMethods": "Primer::OpenProject::ColorField::GeneratedSlotMethods"
|
|
1769
1777
|
},
|
|
1778
|
+
"Primer::OpenProject::ColorSwatch": {
|
|
1779
|
+
"GeneratedSlotMethods": "Primer::OpenProject::ColorSwatch::GeneratedSlotMethods"
|
|
1780
|
+
},
|
|
1770
1781
|
"Primer::OpenProject::DangerDialog": {
|
|
1771
1782
|
"ConfirmationCheckBox": "Primer::OpenProject::DangerDialog::ConfirmationCheckBox",
|
|
1772
1783
|
"FormWrapper": "Primer::OpenProject::DangerDialog::FormWrapper",
|
|
@@ -1900,6 +1911,58 @@
|
|
|
1900
1911
|
"xxlarge"
|
|
1901
1912
|
]
|
|
1902
1913
|
},
|
|
1914
|
+
"Primer::OpenProject::InsetBox": {
|
|
1915
|
+
"DEFAULT_SCHEME": "default",
|
|
1916
|
+
"GeneratedSlotMethods": "Primer::OpenProject::InsetBox::GeneratedSlotMethods",
|
|
1917
|
+
"SCHEME_MAPPINGS": {
|
|
1918
|
+
"default": {
|
|
1919
|
+
"bg": "inset"
|
|
1920
|
+
},
|
|
1921
|
+
"info": {
|
|
1922
|
+
"bg": "accent",
|
|
1923
|
+
"border_color": "accent"
|
|
1924
|
+
},
|
|
1925
|
+
"warning": {
|
|
1926
|
+
"bg": "attention",
|
|
1927
|
+
"border_color": "attention"
|
|
1928
|
+
},
|
|
1929
|
+
"danger": {
|
|
1930
|
+
"bg": "danger",
|
|
1931
|
+
"border_color": "danger"
|
|
1932
|
+
},
|
|
1933
|
+
"success": {
|
|
1934
|
+
"bg": "success",
|
|
1935
|
+
"border_color": "success"
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
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
|
+
},
|
|
1903
1966
|
"Primer::OpenProject::PageHeader": {
|
|
1904
1967
|
"BACK_BUTTON_ICON_OPTIONS": [
|
|
1905
1968
|
"arrow-left",
|