openproject-primer_view_components 0.48.2 → 0.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -0
- data/app/assets/javascripts/{app/components → components}/primer/primer.d.ts +3 -4
- data/app/assets/javascripts/primer_view_components.js +1 -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.map +1 -1
- data/app/components/primer/alpha/action_bar.pcss +7 -4
- data/app/components/primer/alpha/action_bar_element.js +0 -3
- data/app/components/primer/alpha/action_bar_element.ts +0 -4
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +25 -8
- data/app/components/primer/alpha/action_list.rb +1 -1
- 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/auto_complete.pcss +7 -7
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/banner.pcss +6 -2
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.pcss +11 -4
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.json +2 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +39 -13
- data/app/components/primer/alpha/dialog.rb +5 -1
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/dropdown.pcss +45 -11
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/layout.pcss +3 -2
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/menu.pcss +7 -0
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +3 -3
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +15 -8
- data/app/components/primer/alpha/select_panel.html.erb +8 -5
- data/app/components/primer/alpha/select_panel.rb +26 -1
- data/app/components/primer/alpha/select_panel_element.js +9 -3
- data/app/components/primer/alpha/select_panel_element.ts +10 -4
- data/app/components/primer/alpha/stack.css +1 -0
- data/app/components/primer/alpha/stack.css.json +90 -0
- data/app/components/primer/alpha/stack.css.map +1 -0
- data/app/components/primer/alpha/stack.html.erb +3 -0
- data/app/components/primer/alpha/stack.pcss +297 -0
- data/app/components/primer/alpha/stack.rb +185 -0
- data/app/components/primer/alpha/stack_item.css +1 -0
- data/app/components/primer/alpha/stack_item.css.json +12 -0
- data/app/components/primer/alpha/stack_item.css.map +1 -0
- data/app/components/primer/alpha/stack_item.html.erb +3 -0
- data/app/components/primer/alpha/stack_item.pcss +31 -0
- data/app/components/primer/alpha/stack_item.rb +54 -0
- 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/tab_nav.pcss +12 -3
- 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/text_field.pcss +29 -22
- 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/toggle_switch.pcss +6 -3
- 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/alpha/underline_nav.pcss +8 -2
- data/app/components/primer/base_component.rb +1 -1
- data/app/components/primer/beta/avatar.css +1 -1
- data/app/components/primer/beta/avatar.css.map +1 -1
- data/app/components/primer/beta/avatar.pcss +4 -1
- data/app/components/primer/beta/avatar_stack.css +1 -1
- data/app/components/primer/beta/avatar_stack.css.map +1 -1
- data/app/components/primer/beta/avatar_stack.pcss +9 -2
- data/app/components/primer/beta/blankslate.css +1 -1
- data/app/components/primer/beta/blankslate.css.map +1 -1
- data/app/components/primer/beta/blankslate.pcss +24 -3
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/border_box.pcss +8 -4
- data/app/components/primer/beta/breadcrumbs.css.map +1 -1
- data/app/components/primer/beta/breadcrumbs.pcss +5 -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 +31 -27
- data/app/components/primer/beta/button_group.css.map +1 -1
- data/app/components/primer/beta/button_group.pcss +1 -0
- data/app/components/primer/beta/counter.css +1 -1
- data/app/components/primer/beta/counter.css.map +1 -1
- data/app/components/primer/beta/counter.pcss +3 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/flash.pcss +7 -4
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/label.pcss +4 -0
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/popover.pcss +15 -7
- 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/progress_bar.pcss +2 -2
- data/app/components/primer/beta/state.css +1 -1
- data/app/components/primer/beta/state.css.map +1 -1
- data/app/components/primer/beta/state.pcss +6 -1
- data/app/components/primer/beta/subhead.css.map +1 -1
- data/app/components/primer/beta/subhead.pcss +3 -0
- data/app/components/primer/beta/timeline_item.css.map +1 -1
- data/app/components/primer/beta/timeline_item.pcss +11 -0
- data/app/components/primer/beta/truncate.css.map +1 -1
- data/app/components/primer/beta/truncate.pcss +1 -0
- data/app/components/primer/dialog_helper.js +0 -1
- data/app/components/primer/dialog_helper.ts +0 -1
- data/app/components/primer/primer.d.ts +3 -4
- data/app/components/primer/primer.js +3 -4
- data/app/components/primer/primer.pcss +6 -4
- data/app/components/primer/primer.ts +3 -4
- data/app/components/primer/responsive_arg.rb +66 -0
- data/app/forms/caption_template_form/places_bellevue_caption.html.erb +1 -0
- data/app/forms/caption_template_form/places_lopez_caption.html.erb +1 -0
- data/app/forms/caption_template_form/places_seattle_caption.html.erb +1 -0
- data/app/forms/caption_template_form.rb +6 -0
- data/app/forms/check_box_group_form.rb +1 -1
- data/app/forms/radio_button_group_form.rb +5 -1
- data/app/lib/primer/attributes_helper.rb +1 -1
- data/{lib → app/lib}/primer/forms/base_component.rb +0 -8
- data/{lib → app/lib}/primer/forms/button.rb +5 -2
- data/{lib → app/lib}/primer/forms/check_box_group.html.erb +3 -3
- data/{lib → app/lib}/primer/forms/check_box_group.rb +1 -1
- data/{lib → app/lib}/primer/forms/dsl/check_box_input.rb +4 -8
- data/{lib → app/lib}/primer/forms/dsl/input.rb +13 -1
- data/{lib → app/lib}/primer/forms/dsl/radio_button_input.rb +4 -0
- data/{lib → app/lib}/primer/forms/group.html.erb +1 -1
- data/{lib → app/lib}/primer/forms/group.rb +5 -0
- data/{lib → app/lib}/primer/forms/radio_button_group.html.erb +3 -3
- data/{lib → app/lib}/primer/forms/radio_button_group.rb +1 -1
- data/{lib → app/lib}/primer/forms/select.html.erb +0 -1
- data/lib/primer/view_components/linters/details_menu_migration.rb +3 -2
- data/lib/primer/view_components/version.rb +2 -2
- data/lib/primer/yard/component_manifest.rb +0 -1
- data/previews/primer/alpha/action_bar_preview/inline.html.erb +1 -1
- data/previews/primer/alpha/dialog_preview/autofocus_element.html.erb +1 -1
- data/previews/primer/alpha/dialog_preview/custom_header.html.erb +3 -1
- data/previews/primer/alpha/dialog_preview/dialog_inside_overlay.html.erb +4 -4
- data/previews/primer/alpha/dialog_preview/nested_dialog.html.erb +1 -1
- data/previews/primer/alpha/dialog_preview/scroll_container.html.erb +11 -2
- data/previews/primer/alpha/dialog_preview/with_footer.html.erb +2 -2
- data/previews/primer/alpha/dialog_preview/with_form.html.erb +2 -2
- data/previews/primer/alpha/dialog_preview/with_text_input.html.erb +1 -1
- data/previews/primer/alpha/dialog_preview.rb +4 -2
- data/previews/primer/alpha/overlay_preview/in_a_sticky_container.html.erb +1 -1
- data/previews/primer/alpha/overlay_preview/overlay_with_header_filter.html.erb +1 -1
- data/previews/primer/alpha/select_panel_preview/_interaction_subject_js.html.erb +1 -1
- data/previews/primer/alpha/select_panel_preview/custom_loading_description.html.erb +23 -0
- data/previews/primer/alpha/select_panel_preview/custom_loading_label.html.erb +21 -0
- data/previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb +4 -2
- data/previews/primer/alpha/select_panel_preview/scroll_container.html.erb +49 -0
- data/previews/primer/alpha/select_panel_preview.rb +40 -2
- data/previews/primer/alpha/stack_item_preview/default.html.erb +5 -0
- data/previews/primer/alpha/stack_item_preview/playground.html.erb +11 -0
- data/previews/primer/alpha/stack_item_preview.rb +40 -0
- data/previews/primer/alpha/stack_preview/playground.html.erb +5 -0
- data/previews/primer/alpha/stack_preview.rb +88 -0
- data/previews/primer/alpha/text_field_preview/input_group_leading_action_menu.html.erb +1 -2
- data/previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb +2 -2
- data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +1 -1
- data/previews/primer/alpha/underline_nav_preview/default.html.erb +1 -1
- data/previews/primer/alpha/underline_nav_preview/playground.html.erb +1 -1
- data/previews/primer/beta/auto_complete_preview/with_submit_button.html.erb +18 -18
- data/previews/primer/beta/breadcrumbs_preview/with_deprecated_truncate.html.erb +3 -1
- data/previews/primer/beta/button_preview/summary_as_button.html.erb +0 -1
- data/previews/primer/beta/subhead_preview/actions.html.erb +0 -1
- data/previews/primer/open_project/feedback_dialog_preview/additional_content.html.erb +1 -1
- data/previews/primer/open_project/feedback_dialog_preview/custom_footer.html.erb +1 -1
- data/previews/primer/open_project/feedback_dialog_preview/playground.html.erb +2 -2
- data/previews/primer/open_project/page_header_preview/actions.html.erb +1 -1
- data/previews/primer/open_project/page_header_preview/playground.html.erb +2 -2
- data/previews/primer/open_project/sub_header_preview/action_menu_buttons.html.erb +1 -1
- data/static/arguments.json +112 -30
- data/static/audited_at.json +2 -1
- data/static/classes.json +6 -0
- data/static/constants.json +172 -9
- data/static/info_arch.json +248 -98
- data/static/previews.json +107 -47
- data/static/statuses.json +2 -1
- metadata +137 -120
- data/app/assets/javascripts/app/components/primer/alpha/image_crop.d.ts +0 -1
- data/app/components/primer/alpha/image_crop.d.ts +0 -1
- data/app/components/primer/alpha/image_crop.html.erb +0 -12
- data/app/components/primer/alpha/image_crop.js +0 -1
- data/app/components/primer/alpha/image_crop.rb +0 -28
- data/app/components/primer/alpha/image_crop.ts +0 -1
- data/previews/primer/alpha/image_crop_preview.rb +0 -31
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/action_bar_element.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/action_list.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/action_menu/action_menu_element.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown/menu.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/modal_dialog.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/segmented_control.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/select_panel_element.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/tab_container.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/toggle_switch.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/tool_tip.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/alpha/x_banner.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/anchored_position.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/aria_live.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/beta/auto_complete/auto_complete.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/beta/clipboard_copy.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/beta/nav_list.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/beta/nav_list_group_element.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/beta/relative_time.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/dialog_helper.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/focus_group.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/open_project/page_header_element.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/open_project/sub_header_element.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/open_project/zen_mode_button.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/scrollable_region.d.ts +0 -0
- /data/app/assets/javascripts/{app/components → components}/primer/shared_events.d.ts +0 -0
- /data/{lib → app/lib}/primer/forms/action_menu.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/action_menu.rb +0 -0
- /data/{lib → app/lib}/primer/forms/acts_as_component.rb +0 -0
- /data/{lib → app/lib}/primer/forms/auto_complete.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/auto_complete.rb +0 -0
- /data/{lib → app/lib}/primer/forms/base.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/base.rb +0 -0
- /data/{lib → app/lib}/primer/forms/buffer_rewriter.rb +0 -0
- /data/{lib → app/lib}/primer/forms/builder.rb +0 -0
- /data/{lib → app/lib}/primer/forms/button.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/caption.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/caption.rb +0 -0
- /data/{lib → app/lib}/primer/forms/check_box.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/check_box.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/action_menu_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/auto_complete_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/button_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/check_box_group_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/form_object.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/form_reference_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/hidden_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/input_group.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/input_methods.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/multi_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/radio_button_group_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/select_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/submit_button_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/text_area_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/text_field_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/dsl/toggle_switch_input.rb +0 -0
- /data/{lib → app/lib}/primer/forms/form_control.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/form_control.rb +0 -0
- /data/{lib → app/lib}/primer/forms/form_list.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/form_list.rb +0 -0
- /data/{lib → app/lib}/primer/forms/form_reference.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/form_reference.rb +0 -0
- /data/{lib → app/lib}/primer/forms/hidden_field.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/hidden_field.rb +0 -0
- /data/{lib → app/lib}/primer/forms/multi.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/multi.rb +0 -0
- /data/{lib → app/lib}/primer/forms/primer_base_component_wrapper.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/primer_base_component_wrapper.rb +0 -0
- /data/{lib → app/lib}/primer/forms/primer_multi_input.d.ts +0 -0
- /data/{lib → app/lib}/primer/forms/primer_multi_input.js +0 -0
- /data/{lib → app/lib}/primer/forms/primer_multi_input.ts +0 -0
- /data/{lib → app/lib}/primer/forms/primer_text_field.d.ts +0 -0
- /data/{lib → app/lib}/primer/forms/primer_text_field.js +0 -0
- /data/{lib → app/lib}/primer/forms/primer_text_field.ts +0 -0
- /data/{lib → app/lib}/primer/forms/radio_button.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/radio_button.rb +0 -0
- /data/{lib → app/lib}/primer/forms/select.rb +0 -0
- /data/{lib → app/lib}/primer/forms/separator.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/separator.rb +0 -0
- /data/{lib → app/lib}/primer/forms/spacing_wrapper.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/spacing_wrapper.rb +0 -0
- /data/{lib → app/lib}/primer/forms/submit_button.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/submit_button.rb +0 -0
- /data/{lib → app/lib}/primer/forms/text_area.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/text_area.rb +0 -0
- /data/{lib → app/lib}/primer/forms/text_field.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/text_field.rb +0 -0
- /data/{lib → app/lib}/primer/forms/toggle_switch.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/toggle_switch.rb +0 -0
- /data/{lib → app/lib}/primer/forms/toggle_switch_form.rb +0 -0
- /data/{lib → app/lib}/primer/forms/toggle_switch_input.d.ts +0 -0
- /data/{lib → app/lib}/primer/forms/toggle_switch_input.js +0 -0
- /data/{lib → app/lib}/primer/forms/toggle_switch_input.ts +0 -0
- /data/{lib → app/lib}/primer/forms/utils.rb +0 -0
- /data/{lib → app/lib}/primer/forms/validation_message.html.erb +0 -0
- /data/{lib → app/lib}/primer/forms/validation_message.rb +0 -0
- /data/{lib → app/lib}/primer/forms.rb +0 -0
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.
|
4
|
+
version: 0.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|
@@ -83,34 +83,33 @@ files:
|
|
83
83
|
- LICENSE.txt
|
84
84
|
- README.md
|
85
85
|
- app/assets/images/loading_indicator.svg
|
86
|
-
- app/assets/javascripts/
|
87
|
-
- app/assets/javascripts/
|
88
|
-
- app/assets/javascripts/
|
89
|
-
- app/assets/javascripts/
|
90
|
-
- app/assets/javascripts/
|
91
|
-
- app/assets/javascripts/
|
92
|
-
- app/assets/javascripts/
|
93
|
-
- app/assets/javascripts/
|
94
|
-
- app/assets/javascripts/
|
95
|
-
- app/assets/javascripts/
|
96
|
-
- app/assets/javascripts/
|
97
|
-
- app/assets/javascripts/
|
98
|
-
- app/assets/javascripts/
|
99
|
-
- app/assets/javascripts/
|
100
|
-
- app/assets/javascripts/
|
101
|
-
- app/assets/javascripts/
|
102
|
-
- app/assets/javascripts/
|
103
|
-
- app/assets/javascripts/
|
104
|
-
- app/assets/javascripts/
|
105
|
-
- app/assets/javascripts/
|
106
|
-
- app/assets/javascripts/
|
107
|
-
- app/assets/javascripts/
|
108
|
-
- app/assets/javascripts/
|
109
|
-
- app/assets/javascripts/
|
110
|
-
- app/assets/javascripts/
|
111
|
-
- app/assets/javascripts/
|
112
|
-
- app/assets/javascripts/
|
113
|
-
- app/assets/javascripts/app/components/primer/shared_events.d.ts
|
86
|
+
- app/assets/javascripts/components/primer/alpha/action_bar_element.d.ts
|
87
|
+
- app/assets/javascripts/components/primer/alpha/action_list.d.ts
|
88
|
+
- app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts
|
89
|
+
- app/assets/javascripts/components/primer/alpha/dropdown.d.ts
|
90
|
+
- app/assets/javascripts/components/primer/alpha/dropdown/menu.d.ts
|
91
|
+
- app/assets/javascripts/components/primer/alpha/modal_dialog.d.ts
|
92
|
+
- app/assets/javascripts/components/primer/alpha/segmented_control.d.ts
|
93
|
+
- app/assets/javascripts/components/primer/alpha/select_panel_element.d.ts
|
94
|
+
- app/assets/javascripts/components/primer/alpha/tab_container.d.ts
|
95
|
+
- app/assets/javascripts/components/primer/alpha/toggle_switch.d.ts
|
96
|
+
- app/assets/javascripts/components/primer/alpha/tool_tip.d.ts
|
97
|
+
- app/assets/javascripts/components/primer/alpha/x_banner.d.ts
|
98
|
+
- app/assets/javascripts/components/primer/anchored_position.d.ts
|
99
|
+
- app/assets/javascripts/components/primer/aria_live.d.ts
|
100
|
+
- app/assets/javascripts/components/primer/beta/auto_complete/auto_complete.d.ts
|
101
|
+
- app/assets/javascripts/components/primer/beta/clipboard_copy.d.ts
|
102
|
+
- app/assets/javascripts/components/primer/beta/nav_list.d.ts
|
103
|
+
- app/assets/javascripts/components/primer/beta/nav_list_group_element.d.ts
|
104
|
+
- app/assets/javascripts/components/primer/beta/relative_time.d.ts
|
105
|
+
- app/assets/javascripts/components/primer/dialog_helper.d.ts
|
106
|
+
- app/assets/javascripts/components/primer/focus_group.d.ts
|
107
|
+
- app/assets/javascripts/components/primer/open_project/page_header_element.d.ts
|
108
|
+
- app/assets/javascripts/components/primer/open_project/sub_header_element.d.ts
|
109
|
+
- app/assets/javascripts/components/primer/open_project/zen_mode_button.d.ts
|
110
|
+
- app/assets/javascripts/components/primer/primer.d.ts
|
111
|
+
- app/assets/javascripts/components/primer/scrollable_region.d.ts
|
112
|
+
- app/assets/javascripts/components/primer/shared_events.d.ts
|
114
113
|
- app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts
|
115
114
|
- app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts
|
116
115
|
- app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts
|
@@ -205,11 +204,6 @@ files:
|
|
205
204
|
- app/components/primer/alpha/hellip_button.rb
|
206
205
|
- app/components/primer/alpha/hidden_text_expander.rb
|
207
206
|
- app/components/primer/alpha/image.rb
|
208
|
-
- app/components/primer/alpha/image_crop.d.ts
|
209
|
-
- app/components/primer/alpha/image_crop.html.erb
|
210
|
-
- app/components/primer/alpha/image_crop.js
|
211
|
-
- app/components/primer/alpha/image_crop.rb
|
212
|
-
- app/components/primer/alpha/image_crop.ts
|
213
207
|
- app/components/primer/alpha/layout.css
|
214
208
|
- app/components/primer/alpha/layout.css.json
|
215
209
|
- app/components/primer/alpha/layout.css.map
|
@@ -268,6 +262,18 @@ files:
|
|
268
262
|
- app/components/primer/alpha/select_panel_element.d.ts
|
269
263
|
- app/components/primer/alpha/select_panel_element.js
|
270
264
|
- app/components/primer/alpha/select_panel_element.ts
|
265
|
+
- app/components/primer/alpha/stack.css
|
266
|
+
- app/components/primer/alpha/stack.css.json
|
267
|
+
- app/components/primer/alpha/stack.css.map
|
268
|
+
- app/components/primer/alpha/stack.html.erb
|
269
|
+
- app/components/primer/alpha/stack.pcss
|
270
|
+
- app/components/primer/alpha/stack.rb
|
271
|
+
- app/components/primer/alpha/stack_item.css
|
272
|
+
- app/components/primer/alpha/stack_item.css.json
|
273
|
+
- app/components/primer/alpha/stack_item.css.map
|
274
|
+
- app/components/primer/alpha/stack_item.html.erb
|
275
|
+
- app/components/primer/alpha/stack_item.pcss
|
276
|
+
- app/components/primer/alpha/stack_item.rb
|
271
277
|
- app/components/primer/alpha/submit_button.rb
|
272
278
|
- app/components/primer/alpha/tab_container.d.ts
|
273
279
|
- app/components/primer/alpha/tab_container.js
|
@@ -548,6 +554,7 @@ files:
|
|
548
554
|
- app/components/primer/primer.js
|
549
555
|
- app/components/primer/primer.pcss
|
550
556
|
- app/components/primer/primer.ts
|
557
|
+
- app/components/primer/responsive_arg.rb
|
551
558
|
- app/components/primer/scrollable_region.d.ts
|
552
559
|
- app/components/primer/scrollable_region.js
|
553
560
|
- app/components/primer/scrollable_region.ts
|
@@ -574,6 +581,9 @@ files:
|
|
574
581
|
- app/forms/caption_template_form/age_young_caption.html.erb
|
575
582
|
- app/forms/caption_template_form/cool_caption.html.erb
|
576
583
|
- app/forms/caption_template_form/first_name_caption.html.erb
|
584
|
+
- app/forms/caption_template_form/places_bellevue_caption.html.erb
|
585
|
+
- app/forms/caption_template_form/places_lopez_caption.html.erb
|
586
|
+
- app/forms/caption_template_form/places_seattle_caption.html.erb
|
577
587
|
- app/forms/check_box_group_form.rb
|
578
588
|
- app/forms/check_box_with_nested_form.rb
|
579
589
|
- app/forms/composed_form.rb
|
@@ -605,6 +615,89 @@ files:
|
|
605
615
|
- app/lib/primer/experimental_render_helpers.rb
|
606
616
|
- app/lib/primer/experimental_slot_helpers.rb
|
607
617
|
- app/lib/primer/fetch_or_fallback_helper.rb
|
618
|
+
- app/lib/primer/forms.rb
|
619
|
+
- app/lib/primer/forms/action_menu.html.erb
|
620
|
+
- app/lib/primer/forms/action_menu.rb
|
621
|
+
- app/lib/primer/forms/acts_as_component.rb
|
622
|
+
- app/lib/primer/forms/auto_complete.html.erb
|
623
|
+
- app/lib/primer/forms/auto_complete.rb
|
624
|
+
- app/lib/primer/forms/base.html.erb
|
625
|
+
- app/lib/primer/forms/base.rb
|
626
|
+
- app/lib/primer/forms/base_component.rb
|
627
|
+
- app/lib/primer/forms/buffer_rewriter.rb
|
628
|
+
- app/lib/primer/forms/builder.rb
|
629
|
+
- app/lib/primer/forms/button.html.erb
|
630
|
+
- app/lib/primer/forms/button.rb
|
631
|
+
- app/lib/primer/forms/caption.html.erb
|
632
|
+
- app/lib/primer/forms/caption.rb
|
633
|
+
- app/lib/primer/forms/check_box.html.erb
|
634
|
+
- app/lib/primer/forms/check_box.rb
|
635
|
+
- app/lib/primer/forms/check_box_group.html.erb
|
636
|
+
- app/lib/primer/forms/check_box_group.rb
|
637
|
+
- app/lib/primer/forms/dsl/action_menu_input.rb
|
638
|
+
- app/lib/primer/forms/dsl/auto_complete_input.rb
|
639
|
+
- app/lib/primer/forms/dsl/button_input.rb
|
640
|
+
- app/lib/primer/forms/dsl/check_box_group_input.rb
|
641
|
+
- app/lib/primer/forms/dsl/check_box_input.rb
|
642
|
+
- app/lib/primer/forms/dsl/form_object.rb
|
643
|
+
- app/lib/primer/forms/dsl/form_reference_input.rb
|
644
|
+
- app/lib/primer/forms/dsl/hidden_input.rb
|
645
|
+
- app/lib/primer/forms/dsl/input.rb
|
646
|
+
- app/lib/primer/forms/dsl/input_group.rb
|
647
|
+
- app/lib/primer/forms/dsl/input_methods.rb
|
648
|
+
- app/lib/primer/forms/dsl/multi_input.rb
|
649
|
+
- app/lib/primer/forms/dsl/radio_button_group_input.rb
|
650
|
+
- app/lib/primer/forms/dsl/radio_button_input.rb
|
651
|
+
- app/lib/primer/forms/dsl/select_input.rb
|
652
|
+
- app/lib/primer/forms/dsl/submit_button_input.rb
|
653
|
+
- app/lib/primer/forms/dsl/text_area_input.rb
|
654
|
+
- app/lib/primer/forms/dsl/text_field_input.rb
|
655
|
+
- app/lib/primer/forms/dsl/toggle_switch_input.rb
|
656
|
+
- app/lib/primer/forms/form_control.html.erb
|
657
|
+
- app/lib/primer/forms/form_control.rb
|
658
|
+
- app/lib/primer/forms/form_list.html.erb
|
659
|
+
- app/lib/primer/forms/form_list.rb
|
660
|
+
- app/lib/primer/forms/form_reference.html.erb
|
661
|
+
- app/lib/primer/forms/form_reference.rb
|
662
|
+
- app/lib/primer/forms/group.html.erb
|
663
|
+
- app/lib/primer/forms/group.rb
|
664
|
+
- app/lib/primer/forms/hidden_field.html.erb
|
665
|
+
- app/lib/primer/forms/hidden_field.rb
|
666
|
+
- app/lib/primer/forms/multi.html.erb
|
667
|
+
- app/lib/primer/forms/multi.rb
|
668
|
+
- app/lib/primer/forms/primer_base_component_wrapper.html.erb
|
669
|
+
- app/lib/primer/forms/primer_base_component_wrapper.rb
|
670
|
+
- app/lib/primer/forms/primer_multi_input.d.ts
|
671
|
+
- app/lib/primer/forms/primer_multi_input.js
|
672
|
+
- app/lib/primer/forms/primer_multi_input.ts
|
673
|
+
- app/lib/primer/forms/primer_text_field.d.ts
|
674
|
+
- app/lib/primer/forms/primer_text_field.js
|
675
|
+
- app/lib/primer/forms/primer_text_field.ts
|
676
|
+
- app/lib/primer/forms/radio_button.html.erb
|
677
|
+
- app/lib/primer/forms/radio_button.rb
|
678
|
+
- app/lib/primer/forms/radio_button_group.html.erb
|
679
|
+
- app/lib/primer/forms/radio_button_group.rb
|
680
|
+
- app/lib/primer/forms/select.html.erb
|
681
|
+
- app/lib/primer/forms/select.rb
|
682
|
+
- app/lib/primer/forms/separator.html.erb
|
683
|
+
- app/lib/primer/forms/separator.rb
|
684
|
+
- app/lib/primer/forms/spacing_wrapper.html.erb
|
685
|
+
- app/lib/primer/forms/spacing_wrapper.rb
|
686
|
+
- app/lib/primer/forms/submit_button.html.erb
|
687
|
+
- app/lib/primer/forms/submit_button.rb
|
688
|
+
- app/lib/primer/forms/text_area.html.erb
|
689
|
+
- app/lib/primer/forms/text_area.rb
|
690
|
+
- app/lib/primer/forms/text_field.html.erb
|
691
|
+
- app/lib/primer/forms/text_field.rb
|
692
|
+
- app/lib/primer/forms/toggle_switch.html.erb
|
693
|
+
- app/lib/primer/forms/toggle_switch.rb
|
694
|
+
- app/lib/primer/forms/toggle_switch_form.rb
|
695
|
+
- app/lib/primer/forms/toggle_switch_input.d.ts
|
696
|
+
- app/lib/primer/forms/toggle_switch_input.js
|
697
|
+
- app/lib/primer/forms/toggle_switch_input.ts
|
698
|
+
- app/lib/primer/forms/utils.rb
|
699
|
+
- app/lib/primer/forms/validation_message.html.erb
|
700
|
+
- app/lib/primer/forms/validation_message.rb
|
608
701
|
- app/lib/primer/join_style_arguments_helper.rb
|
609
702
|
- app/lib/primer/octicon/cache.rb
|
610
703
|
- app/lib/primer/status/dsl.rb
|
@@ -629,89 +722,6 @@ files:
|
|
629
722
|
- lib/primer/deprecations.yml
|
630
723
|
- lib/primer/example_image.rb
|
631
724
|
- lib/primer/form_components.rb
|
632
|
-
- lib/primer/forms.rb
|
633
|
-
- lib/primer/forms/action_menu.html.erb
|
634
|
-
- lib/primer/forms/action_menu.rb
|
635
|
-
- lib/primer/forms/acts_as_component.rb
|
636
|
-
- lib/primer/forms/auto_complete.html.erb
|
637
|
-
- lib/primer/forms/auto_complete.rb
|
638
|
-
- lib/primer/forms/base.html.erb
|
639
|
-
- lib/primer/forms/base.rb
|
640
|
-
- lib/primer/forms/base_component.rb
|
641
|
-
- lib/primer/forms/buffer_rewriter.rb
|
642
|
-
- lib/primer/forms/builder.rb
|
643
|
-
- lib/primer/forms/button.html.erb
|
644
|
-
- lib/primer/forms/button.rb
|
645
|
-
- lib/primer/forms/caption.html.erb
|
646
|
-
- lib/primer/forms/caption.rb
|
647
|
-
- lib/primer/forms/check_box.html.erb
|
648
|
-
- lib/primer/forms/check_box.rb
|
649
|
-
- lib/primer/forms/check_box_group.html.erb
|
650
|
-
- lib/primer/forms/check_box_group.rb
|
651
|
-
- lib/primer/forms/dsl/action_menu_input.rb
|
652
|
-
- lib/primer/forms/dsl/auto_complete_input.rb
|
653
|
-
- lib/primer/forms/dsl/button_input.rb
|
654
|
-
- lib/primer/forms/dsl/check_box_group_input.rb
|
655
|
-
- lib/primer/forms/dsl/check_box_input.rb
|
656
|
-
- lib/primer/forms/dsl/form_object.rb
|
657
|
-
- lib/primer/forms/dsl/form_reference_input.rb
|
658
|
-
- lib/primer/forms/dsl/hidden_input.rb
|
659
|
-
- lib/primer/forms/dsl/input.rb
|
660
|
-
- lib/primer/forms/dsl/input_group.rb
|
661
|
-
- lib/primer/forms/dsl/input_methods.rb
|
662
|
-
- lib/primer/forms/dsl/multi_input.rb
|
663
|
-
- lib/primer/forms/dsl/radio_button_group_input.rb
|
664
|
-
- lib/primer/forms/dsl/radio_button_input.rb
|
665
|
-
- lib/primer/forms/dsl/select_input.rb
|
666
|
-
- lib/primer/forms/dsl/submit_button_input.rb
|
667
|
-
- lib/primer/forms/dsl/text_area_input.rb
|
668
|
-
- lib/primer/forms/dsl/text_field_input.rb
|
669
|
-
- lib/primer/forms/dsl/toggle_switch_input.rb
|
670
|
-
- lib/primer/forms/form_control.html.erb
|
671
|
-
- lib/primer/forms/form_control.rb
|
672
|
-
- lib/primer/forms/form_list.html.erb
|
673
|
-
- lib/primer/forms/form_list.rb
|
674
|
-
- lib/primer/forms/form_reference.html.erb
|
675
|
-
- lib/primer/forms/form_reference.rb
|
676
|
-
- lib/primer/forms/group.html.erb
|
677
|
-
- lib/primer/forms/group.rb
|
678
|
-
- lib/primer/forms/hidden_field.html.erb
|
679
|
-
- lib/primer/forms/hidden_field.rb
|
680
|
-
- lib/primer/forms/multi.html.erb
|
681
|
-
- lib/primer/forms/multi.rb
|
682
|
-
- lib/primer/forms/primer_base_component_wrapper.html.erb
|
683
|
-
- lib/primer/forms/primer_base_component_wrapper.rb
|
684
|
-
- lib/primer/forms/primer_multi_input.d.ts
|
685
|
-
- lib/primer/forms/primer_multi_input.js
|
686
|
-
- lib/primer/forms/primer_multi_input.ts
|
687
|
-
- lib/primer/forms/primer_text_field.d.ts
|
688
|
-
- lib/primer/forms/primer_text_field.js
|
689
|
-
- lib/primer/forms/primer_text_field.ts
|
690
|
-
- lib/primer/forms/radio_button.html.erb
|
691
|
-
- lib/primer/forms/radio_button.rb
|
692
|
-
- lib/primer/forms/radio_button_group.html.erb
|
693
|
-
- lib/primer/forms/radio_button_group.rb
|
694
|
-
- lib/primer/forms/select.html.erb
|
695
|
-
- lib/primer/forms/select.rb
|
696
|
-
- lib/primer/forms/separator.html.erb
|
697
|
-
- lib/primer/forms/separator.rb
|
698
|
-
- lib/primer/forms/spacing_wrapper.html.erb
|
699
|
-
- lib/primer/forms/spacing_wrapper.rb
|
700
|
-
- lib/primer/forms/submit_button.html.erb
|
701
|
-
- lib/primer/forms/submit_button.rb
|
702
|
-
- lib/primer/forms/text_area.html.erb
|
703
|
-
- lib/primer/forms/text_area.rb
|
704
|
-
- lib/primer/forms/text_field.html.erb
|
705
|
-
- lib/primer/forms/text_field.rb
|
706
|
-
- lib/primer/forms/toggle_switch.html.erb
|
707
|
-
- lib/primer/forms/toggle_switch.rb
|
708
|
-
- lib/primer/forms/toggle_switch_form.rb
|
709
|
-
- lib/primer/forms/toggle_switch_input.d.ts
|
710
|
-
- lib/primer/forms/toggle_switch_input.js
|
711
|
-
- lib/primer/forms/toggle_switch_input.ts
|
712
|
-
- lib/primer/forms/utils.rb
|
713
|
-
- lib/primer/forms/validation_message.html.erb
|
714
|
-
- lib/primer/forms/validation_message.rb
|
715
725
|
- lib/primer/static.rb
|
716
726
|
- lib/primer/static/generate_arguments.rb
|
717
727
|
- lib/primer/static/generate_audited_at.rb
|
@@ -838,7 +848,6 @@ files:
|
|
838
848
|
- previews/primer/alpha/form_control_preview/playground.html.erb
|
839
849
|
- previews/primer/alpha/hellip_button_preview.rb
|
840
850
|
- previews/primer/alpha/hidden_text_expander_preview.rb
|
841
|
-
- previews/primer/alpha/image_crop_preview.rb
|
842
851
|
- previews/primer/alpha/layout_preview.rb
|
843
852
|
- previews/primer/alpha/menu_preview.rb
|
844
853
|
- previews/primer/alpha/menu_preview/default.html.erb
|
@@ -861,6 +870,8 @@ files:
|
|
861
870
|
- previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
|
862
871
|
- previews/primer/alpha/select_panel_preview.rb
|
863
872
|
- previews/primer/alpha/select_panel_preview/_interaction_subject_js.html.erb
|
873
|
+
- previews/primer/alpha/select_panel_preview/custom_loading_description.html.erb
|
874
|
+
- previews/primer/alpha/select_panel_preview/custom_loading_label.html.erb
|
864
875
|
- previews/primer/alpha/select_panel_preview/eventually_local_fetch.html.erb
|
865
876
|
- previews/primer/alpha/select_panel_preview/eventually_local_fetch_initial_failure.html.erb
|
866
877
|
- previews/primer/alpha/select_panel_preview/eventually_local_fetch_no_results.html.erb
|
@@ -876,6 +887,7 @@ files:
|
|
876
887
|
- previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
|
877
888
|
- previews/primer/alpha/select_panel_preview/remote_fetch_initial_failure.html.erb
|
878
889
|
- previews/primer/alpha/select_panel_preview/remote_fetch_no_results.html.erb
|
890
|
+
- previews/primer/alpha/select_panel_preview/scroll_container.html.erb
|
879
891
|
- previews/primer/alpha/select_panel_preview/single_select.html.erb
|
880
892
|
- previews/primer/alpha/select_panel_preview/single_select_form.html.erb
|
881
893
|
- previews/primer/alpha/select_panel_preview/with_avatar_items.html.erb
|
@@ -885,6 +897,11 @@ files:
|
|
885
897
|
- previews/primer/alpha/select_panel_preview/with_subtitle.html.erb
|
886
898
|
- previews/primer/alpha/select_panel_preview/with_trailing_icons.html.erb
|
887
899
|
- previews/primer/alpha/select_preview.rb
|
900
|
+
- previews/primer/alpha/stack_item_preview.rb
|
901
|
+
- previews/primer/alpha/stack_item_preview/default.html.erb
|
902
|
+
- previews/primer/alpha/stack_item_preview/playground.html.erb
|
903
|
+
- previews/primer/alpha/stack_preview.rb
|
904
|
+
- previews/primer/alpha/stack_preview/playground.html.erb
|
888
905
|
- previews/primer/alpha/tab_nav_preview.rb
|
889
906
|
- previews/primer/alpha/tab_nav_preview/with_extra.html.erb
|
890
907
|
- previews/primer/alpha/tab_panels_preview.rb
|
@@ -1047,7 +1064,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1047
1064
|
- !ruby/object:Gem::Version
|
1048
1065
|
version: '0'
|
1049
1066
|
requirements: []
|
1050
|
-
rubygems_version: 3.5.
|
1067
|
+
rubygems_version: 3.5.22
|
1051
1068
|
signing_key:
|
1052
1069
|
specification_version: 4
|
1053
1070
|
summary: ViewComponents of the Primer Design System for OpenProject
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/image-crop-element';
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/image-crop-element';
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<%= render Primer::BaseComponent.new(**@system_arguments) do %>
|
2
|
-
<% if loading.present? %>
|
3
|
-
<%= loading %>
|
4
|
-
<% else %>
|
5
|
-
<%= render(Primer::Beta::Spinner.new(size: :large, flex: 1, "data-loading-slot": true)) %>
|
6
|
-
<% end %>
|
7
|
-
|
8
|
-
<input autocomplete="off" type="hidden" data-image-crop-input="x" name="cropped_x">
|
9
|
-
<input autocomplete="off" type="hidden" data-image-crop-input="y" name="cropped_y">
|
10
|
-
<input autocomplete="off" type="hidden" data-image-crop-input="width" name="cropped_width">
|
11
|
-
<input autocomplete="off" type="hidden" data-image-crop-input="height" name="cropped_height">
|
12
|
-
<% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/image-crop-element';
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Primer
|
4
|
-
module Alpha
|
5
|
-
# A client-side mechanism to crop images.
|
6
|
-
class ImageCrop < Primer::Component
|
7
|
-
# A loading indicator that is shown while the image is loading.
|
8
|
-
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
9
|
-
renders_one :loading, lambda { |**system_arguments|
|
10
|
-
deny_tag_argument(**system_arguments)
|
11
|
-
system_arguments[:tag] = :div
|
12
|
-
system_arguments[:"data-loading-slot"] = true
|
13
|
-
|
14
|
-
Primer::BaseComponent.new(**system_arguments)
|
15
|
-
}
|
16
|
-
|
17
|
-
# @param src [String] The path of the image to crop.
|
18
|
-
# @param rounded [Boolean] If the crop mask should be a circle. Defaults to true.
|
19
|
-
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
20
|
-
def initialize(src:, rounded: true, **system_arguments)
|
21
|
-
@system_arguments = deny_tag_argument(**system_arguments)
|
22
|
-
@system_arguments[:tag] = "image-crop"
|
23
|
-
@system_arguments[:src] = src
|
24
|
-
@system_arguments[:rounded] = true if rounded
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/image-crop-element'
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Primer
|
4
|
-
module Alpha
|
5
|
-
# @label ImageCrop
|
6
|
-
class ImageCropPreview < ViewComponent::Preview
|
7
|
-
# @label Playground
|
8
|
-
#
|
9
|
-
# @param rounded [Boolean]
|
10
|
-
def playground(rounded: false)
|
11
|
-
render(Primer::Alpha::ImageCrop.new(src: Primer::ExampleImage::BASE64_SRC, rounded: rounded))
|
12
|
-
end
|
13
|
-
|
14
|
-
# @label Default Options
|
15
|
-
#
|
16
|
-
# @param rounded [Boolean]
|
17
|
-
def default(rounded: false)
|
18
|
-
render(Primer::Alpha::ImageCrop.new(src: Primer::ExampleImage::BASE64_SRC, rounded: rounded))
|
19
|
-
end
|
20
|
-
|
21
|
-
# @label Custom loading slot
|
22
|
-
#
|
23
|
-
# @param rounded [Boolean]
|
24
|
-
def loading(rounded: false)
|
25
|
-
render(Primer::Alpha::ImageCrop.new(src: Primer::ExampleImage::BASE64_SRC, rounded: rounded)) do |c|
|
26
|
-
c.with_loading { "Loading..." }
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
/data/app/assets/javascripts/{app/components → components}/primer/alpha/action_bar_element.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/app/assets/javascripts/{app/components → components}/primer/alpha/segmented_control.d.ts
RENAMED
File without changes
|
/data/app/assets/javascripts/{app/components → components}/primer/alpha/select_panel_element.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/app/assets/javascripts/{app/components → components}/primer/beta/nav_list_group_element.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/app/assets/javascripts/{app/components → components}/primer/open_project/zen_mode_button.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|