primer_view_components 0.33.0 → 0.35.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 +67 -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.css +1 -0
- data/app/components/primer/alpha/select_panel.css.json +7 -0
- data/app/components/primer/alpha/select_panel.css.map +1 -0
- data/app/components/primer/alpha/select_panel.html.erb +21 -17
- data/app/components/primer/alpha/select_panel.pcss +7 -0
- data/app/components/primer/alpha/select_panel.rb +69 -5
- data/app/components/primer/alpha/select_panel_element.js +15 -9
- data/app/components/primer/alpha/select_panel_element.ts +16 -9
- 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 +1 -1
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/label.pcss +7 -4
- 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/component.rb +4 -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 -3
- 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/primer_text_field.js +1 -0
- data/{lib → app/lib}/primer/forms/primer_text_field.ts +1 -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 +1 -1
- data/lib/primer/yard/component_manifest.rb +0 -1
- data/lib/rubocop/cop/primer/primer_octicon.rb +1 -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/list_of_links.html.erb +1 -1
- data/previews/primer/alpha/select_panel_preview/local_fetch.html.erb +2 -1
- 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 +47 -9
- 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/static/arguments.json +112 -30
- data/static/audited_at.json +2 -1
- data/static/classes.json +12 -0
- data/static/constants.json +155 -8
- data/static/info_arch.json +248 -98
- data/static/previews.json +107 -47
- data/static/statuses.json +2 -1
- metadata +138 -117
- 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/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/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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.35.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -82,31 +82,30 @@ files:
|
|
82
82
|
- CHANGELOG.md
|
83
83
|
- LICENSE.txt
|
84
84
|
- README.md
|
85
|
-
- app/assets/javascripts/
|
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/app/components/primer/shared_events.d.ts
|
85
|
+
- app/assets/javascripts/components/primer/alpha/action_bar_element.d.ts
|
86
|
+
- app/assets/javascripts/components/primer/alpha/action_list.d.ts
|
87
|
+
- app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts
|
88
|
+
- app/assets/javascripts/components/primer/alpha/dropdown.d.ts
|
89
|
+
- app/assets/javascripts/components/primer/alpha/dropdown/menu.d.ts
|
90
|
+
- app/assets/javascripts/components/primer/alpha/modal_dialog.d.ts
|
91
|
+
- app/assets/javascripts/components/primer/alpha/segmented_control.d.ts
|
92
|
+
- app/assets/javascripts/components/primer/alpha/select_panel_element.d.ts
|
93
|
+
- app/assets/javascripts/components/primer/alpha/tab_container.d.ts
|
94
|
+
- app/assets/javascripts/components/primer/alpha/toggle_switch.d.ts
|
95
|
+
- app/assets/javascripts/components/primer/alpha/tool_tip.d.ts
|
96
|
+
- app/assets/javascripts/components/primer/alpha/x_banner.d.ts
|
97
|
+
- app/assets/javascripts/components/primer/anchored_position.d.ts
|
98
|
+
- app/assets/javascripts/components/primer/aria_live.d.ts
|
99
|
+
- app/assets/javascripts/components/primer/beta/auto_complete/auto_complete.d.ts
|
100
|
+
- app/assets/javascripts/components/primer/beta/clipboard_copy.d.ts
|
101
|
+
- app/assets/javascripts/components/primer/beta/nav_list.d.ts
|
102
|
+
- app/assets/javascripts/components/primer/beta/nav_list_group_element.d.ts
|
103
|
+
- app/assets/javascripts/components/primer/beta/relative_time.d.ts
|
104
|
+
- app/assets/javascripts/components/primer/dialog_helper.d.ts
|
105
|
+
- app/assets/javascripts/components/primer/focus_group.d.ts
|
106
|
+
- app/assets/javascripts/components/primer/primer.d.ts
|
107
|
+
- app/assets/javascripts/components/primer/scrollable_region.d.ts
|
108
|
+
- app/assets/javascripts/components/primer/shared_events.d.ts
|
110
109
|
- app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts
|
111
110
|
- app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts
|
112
111
|
- app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts
|
@@ -201,11 +200,6 @@ files:
|
|
201
200
|
- app/components/primer/alpha/hellip_button.rb
|
202
201
|
- app/components/primer/alpha/hidden_text_expander.rb
|
203
202
|
- app/components/primer/alpha/image.rb
|
204
|
-
- app/components/primer/alpha/image_crop.d.ts
|
205
|
-
- app/components/primer/alpha/image_crop.html.erb
|
206
|
-
- app/components/primer/alpha/image_crop.js
|
207
|
-
- app/components/primer/alpha/image_crop.rb
|
208
|
-
- app/components/primer/alpha/image_crop.ts
|
209
203
|
- app/components/primer/alpha/layout.css
|
210
204
|
- app/components/primer/alpha/layout.css.json
|
211
205
|
- app/components/primer/alpha/layout.css.map
|
@@ -255,11 +249,27 @@ files:
|
|
255
249
|
- app/components/primer/alpha/segmented_control/item.html.erb
|
256
250
|
- app/components/primer/alpha/segmented_control/item.rb
|
257
251
|
- app/components/primer/alpha/select.rb
|
252
|
+
- app/components/primer/alpha/select_panel.css
|
253
|
+
- app/components/primer/alpha/select_panel.css.json
|
254
|
+
- app/components/primer/alpha/select_panel.css.map
|
258
255
|
- app/components/primer/alpha/select_panel.html.erb
|
256
|
+
- app/components/primer/alpha/select_panel.pcss
|
259
257
|
- app/components/primer/alpha/select_panel.rb
|
260
258
|
- app/components/primer/alpha/select_panel_element.d.ts
|
261
259
|
- app/components/primer/alpha/select_panel_element.js
|
262
260
|
- app/components/primer/alpha/select_panel_element.ts
|
261
|
+
- app/components/primer/alpha/stack.css
|
262
|
+
- app/components/primer/alpha/stack.css.json
|
263
|
+
- app/components/primer/alpha/stack.css.map
|
264
|
+
- app/components/primer/alpha/stack.html.erb
|
265
|
+
- app/components/primer/alpha/stack.pcss
|
266
|
+
- app/components/primer/alpha/stack.rb
|
267
|
+
- app/components/primer/alpha/stack_item.css
|
268
|
+
- app/components/primer/alpha/stack_item.css.json
|
269
|
+
- app/components/primer/alpha/stack_item.css.map
|
270
|
+
- app/components/primer/alpha/stack_item.html.erb
|
271
|
+
- app/components/primer/alpha/stack_item.pcss
|
272
|
+
- app/components/primer/alpha/stack_item.rb
|
263
273
|
- app/components/primer/alpha/submit_button.rb
|
264
274
|
- app/components/primer/alpha/tab_container.d.ts
|
265
275
|
- app/components/primer/alpha/tab_container.js
|
@@ -476,6 +486,7 @@ files:
|
|
476
486
|
- app/components/primer/primer.js
|
477
487
|
- app/components/primer/primer.pcss
|
478
488
|
- app/components/primer/primer.ts
|
489
|
+
- app/components/primer/responsive_arg.rb
|
479
490
|
- app/components/primer/scrollable_region.d.ts
|
480
491
|
- app/components/primer/scrollable_region.js
|
481
492
|
- app/components/primer/scrollable_region.ts
|
@@ -502,6 +513,9 @@ files:
|
|
502
513
|
- app/forms/caption_template_form/age_young_caption.html.erb
|
503
514
|
- app/forms/caption_template_form/cool_caption.html.erb
|
504
515
|
- app/forms/caption_template_form/first_name_caption.html.erb
|
516
|
+
- app/forms/caption_template_form/places_bellevue_caption.html.erb
|
517
|
+
- app/forms/caption_template_form/places_lopez_caption.html.erb
|
518
|
+
- app/forms/caption_template_form/places_seattle_caption.html.erb
|
505
519
|
- app/forms/check_box_group_form.rb
|
506
520
|
- app/forms/check_box_with_nested_form.rb
|
507
521
|
- app/forms/composed_form.rb
|
@@ -533,6 +547,89 @@ files:
|
|
533
547
|
- app/lib/primer/experimental_render_helpers.rb
|
534
548
|
- app/lib/primer/experimental_slot_helpers.rb
|
535
549
|
- app/lib/primer/fetch_or_fallback_helper.rb
|
550
|
+
- app/lib/primer/forms.rb
|
551
|
+
- app/lib/primer/forms/action_menu.html.erb
|
552
|
+
- app/lib/primer/forms/action_menu.rb
|
553
|
+
- app/lib/primer/forms/acts_as_component.rb
|
554
|
+
- app/lib/primer/forms/auto_complete.html.erb
|
555
|
+
- app/lib/primer/forms/auto_complete.rb
|
556
|
+
- app/lib/primer/forms/base.html.erb
|
557
|
+
- app/lib/primer/forms/base.rb
|
558
|
+
- app/lib/primer/forms/base_component.rb
|
559
|
+
- app/lib/primer/forms/buffer_rewriter.rb
|
560
|
+
- app/lib/primer/forms/builder.rb
|
561
|
+
- app/lib/primer/forms/button.html.erb
|
562
|
+
- app/lib/primer/forms/button.rb
|
563
|
+
- app/lib/primer/forms/caption.html.erb
|
564
|
+
- app/lib/primer/forms/caption.rb
|
565
|
+
- app/lib/primer/forms/check_box.html.erb
|
566
|
+
- app/lib/primer/forms/check_box.rb
|
567
|
+
- app/lib/primer/forms/check_box_group.html.erb
|
568
|
+
- app/lib/primer/forms/check_box_group.rb
|
569
|
+
- app/lib/primer/forms/dsl/action_menu_input.rb
|
570
|
+
- app/lib/primer/forms/dsl/auto_complete_input.rb
|
571
|
+
- app/lib/primer/forms/dsl/button_input.rb
|
572
|
+
- app/lib/primer/forms/dsl/check_box_group_input.rb
|
573
|
+
- app/lib/primer/forms/dsl/check_box_input.rb
|
574
|
+
- app/lib/primer/forms/dsl/form_object.rb
|
575
|
+
- app/lib/primer/forms/dsl/form_reference_input.rb
|
576
|
+
- app/lib/primer/forms/dsl/hidden_input.rb
|
577
|
+
- app/lib/primer/forms/dsl/input.rb
|
578
|
+
- app/lib/primer/forms/dsl/input_group.rb
|
579
|
+
- app/lib/primer/forms/dsl/input_methods.rb
|
580
|
+
- app/lib/primer/forms/dsl/multi_input.rb
|
581
|
+
- app/lib/primer/forms/dsl/radio_button_group_input.rb
|
582
|
+
- app/lib/primer/forms/dsl/radio_button_input.rb
|
583
|
+
- app/lib/primer/forms/dsl/select_input.rb
|
584
|
+
- app/lib/primer/forms/dsl/submit_button_input.rb
|
585
|
+
- app/lib/primer/forms/dsl/text_area_input.rb
|
586
|
+
- app/lib/primer/forms/dsl/text_field_input.rb
|
587
|
+
- app/lib/primer/forms/dsl/toggle_switch_input.rb
|
588
|
+
- app/lib/primer/forms/form_control.html.erb
|
589
|
+
- app/lib/primer/forms/form_control.rb
|
590
|
+
- app/lib/primer/forms/form_list.html.erb
|
591
|
+
- app/lib/primer/forms/form_list.rb
|
592
|
+
- app/lib/primer/forms/form_reference.html.erb
|
593
|
+
- app/lib/primer/forms/form_reference.rb
|
594
|
+
- app/lib/primer/forms/group.html.erb
|
595
|
+
- app/lib/primer/forms/group.rb
|
596
|
+
- app/lib/primer/forms/hidden_field.html.erb
|
597
|
+
- app/lib/primer/forms/hidden_field.rb
|
598
|
+
- app/lib/primer/forms/multi.html.erb
|
599
|
+
- app/lib/primer/forms/multi.rb
|
600
|
+
- app/lib/primer/forms/primer_base_component_wrapper.html.erb
|
601
|
+
- app/lib/primer/forms/primer_base_component_wrapper.rb
|
602
|
+
- app/lib/primer/forms/primer_multi_input.d.ts
|
603
|
+
- app/lib/primer/forms/primer_multi_input.js
|
604
|
+
- app/lib/primer/forms/primer_multi_input.ts
|
605
|
+
- app/lib/primer/forms/primer_text_field.d.ts
|
606
|
+
- app/lib/primer/forms/primer_text_field.js
|
607
|
+
- app/lib/primer/forms/primer_text_field.ts
|
608
|
+
- app/lib/primer/forms/radio_button.html.erb
|
609
|
+
- app/lib/primer/forms/radio_button.rb
|
610
|
+
- app/lib/primer/forms/radio_button_group.html.erb
|
611
|
+
- app/lib/primer/forms/radio_button_group.rb
|
612
|
+
- app/lib/primer/forms/select.html.erb
|
613
|
+
- app/lib/primer/forms/select.rb
|
614
|
+
- app/lib/primer/forms/separator.html.erb
|
615
|
+
- app/lib/primer/forms/separator.rb
|
616
|
+
- app/lib/primer/forms/spacing_wrapper.html.erb
|
617
|
+
- app/lib/primer/forms/spacing_wrapper.rb
|
618
|
+
- app/lib/primer/forms/submit_button.html.erb
|
619
|
+
- app/lib/primer/forms/submit_button.rb
|
620
|
+
- app/lib/primer/forms/text_area.html.erb
|
621
|
+
- app/lib/primer/forms/text_area.rb
|
622
|
+
- app/lib/primer/forms/text_field.html.erb
|
623
|
+
- app/lib/primer/forms/text_field.rb
|
624
|
+
- app/lib/primer/forms/toggle_switch.html.erb
|
625
|
+
- app/lib/primer/forms/toggle_switch.rb
|
626
|
+
- app/lib/primer/forms/toggle_switch_form.rb
|
627
|
+
- app/lib/primer/forms/toggle_switch_input.d.ts
|
628
|
+
- app/lib/primer/forms/toggle_switch_input.js
|
629
|
+
- app/lib/primer/forms/toggle_switch_input.ts
|
630
|
+
- app/lib/primer/forms/utils.rb
|
631
|
+
- app/lib/primer/forms/validation_message.html.erb
|
632
|
+
- app/lib/primer/forms/validation_message.rb
|
536
633
|
- app/lib/primer/join_style_arguments_helper.rb
|
537
634
|
- app/lib/primer/octicon/cache.rb
|
538
635
|
- app/lib/primer/status/dsl.rb
|
@@ -557,89 +654,6 @@ files:
|
|
557
654
|
- lib/primer/deprecations.yml
|
558
655
|
- lib/primer/example_image.rb
|
559
656
|
- lib/primer/form_components.rb
|
560
|
-
- lib/primer/forms.rb
|
561
|
-
- lib/primer/forms/action_menu.html.erb
|
562
|
-
- lib/primer/forms/action_menu.rb
|
563
|
-
- lib/primer/forms/acts_as_component.rb
|
564
|
-
- lib/primer/forms/auto_complete.html.erb
|
565
|
-
- lib/primer/forms/auto_complete.rb
|
566
|
-
- lib/primer/forms/base.html.erb
|
567
|
-
- lib/primer/forms/base.rb
|
568
|
-
- lib/primer/forms/base_component.rb
|
569
|
-
- lib/primer/forms/buffer_rewriter.rb
|
570
|
-
- lib/primer/forms/builder.rb
|
571
|
-
- lib/primer/forms/button.html.erb
|
572
|
-
- lib/primer/forms/button.rb
|
573
|
-
- lib/primer/forms/caption.html.erb
|
574
|
-
- lib/primer/forms/caption.rb
|
575
|
-
- lib/primer/forms/check_box.html.erb
|
576
|
-
- lib/primer/forms/check_box.rb
|
577
|
-
- lib/primer/forms/check_box_group.html.erb
|
578
|
-
- lib/primer/forms/check_box_group.rb
|
579
|
-
- lib/primer/forms/dsl/action_menu_input.rb
|
580
|
-
- lib/primer/forms/dsl/auto_complete_input.rb
|
581
|
-
- lib/primer/forms/dsl/button_input.rb
|
582
|
-
- lib/primer/forms/dsl/check_box_group_input.rb
|
583
|
-
- lib/primer/forms/dsl/check_box_input.rb
|
584
|
-
- lib/primer/forms/dsl/form_object.rb
|
585
|
-
- lib/primer/forms/dsl/form_reference_input.rb
|
586
|
-
- lib/primer/forms/dsl/hidden_input.rb
|
587
|
-
- lib/primer/forms/dsl/input.rb
|
588
|
-
- lib/primer/forms/dsl/input_group.rb
|
589
|
-
- lib/primer/forms/dsl/input_methods.rb
|
590
|
-
- lib/primer/forms/dsl/multi_input.rb
|
591
|
-
- lib/primer/forms/dsl/radio_button_group_input.rb
|
592
|
-
- lib/primer/forms/dsl/radio_button_input.rb
|
593
|
-
- lib/primer/forms/dsl/select_input.rb
|
594
|
-
- lib/primer/forms/dsl/submit_button_input.rb
|
595
|
-
- lib/primer/forms/dsl/text_area_input.rb
|
596
|
-
- lib/primer/forms/dsl/text_field_input.rb
|
597
|
-
- lib/primer/forms/dsl/toggle_switch_input.rb
|
598
|
-
- lib/primer/forms/form_control.html.erb
|
599
|
-
- lib/primer/forms/form_control.rb
|
600
|
-
- lib/primer/forms/form_list.html.erb
|
601
|
-
- lib/primer/forms/form_list.rb
|
602
|
-
- lib/primer/forms/form_reference.html.erb
|
603
|
-
- lib/primer/forms/form_reference.rb
|
604
|
-
- lib/primer/forms/group.html.erb
|
605
|
-
- lib/primer/forms/group.rb
|
606
|
-
- lib/primer/forms/hidden_field.html.erb
|
607
|
-
- lib/primer/forms/hidden_field.rb
|
608
|
-
- lib/primer/forms/multi.html.erb
|
609
|
-
- lib/primer/forms/multi.rb
|
610
|
-
- lib/primer/forms/primer_base_component_wrapper.html.erb
|
611
|
-
- lib/primer/forms/primer_base_component_wrapper.rb
|
612
|
-
- lib/primer/forms/primer_multi_input.d.ts
|
613
|
-
- lib/primer/forms/primer_multi_input.js
|
614
|
-
- lib/primer/forms/primer_multi_input.ts
|
615
|
-
- lib/primer/forms/primer_text_field.d.ts
|
616
|
-
- lib/primer/forms/primer_text_field.js
|
617
|
-
- lib/primer/forms/primer_text_field.ts
|
618
|
-
- lib/primer/forms/radio_button.html.erb
|
619
|
-
- lib/primer/forms/radio_button.rb
|
620
|
-
- lib/primer/forms/radio_button_group.html.erb
|
621
|
-
- lib/primer/forms/radio_button_group.rb
|
622
|
-
- lib/primer/forms/select.html.erb
|
623
|
-
- lib/primer/forms/select.rb
|
624
|
-
- lib/primer/forms/separator.html.erb
|
625
|
-
- lib/primer/forms/separator.rb
|
626
|
-
- lib/primer/forms/spacing_wrapper.html.erb
|
627
|
-
- lib/primer/forms/spacing_wrapper.rb
|
628
|
-
- lib/primer/forms/submit_button.html.erb
|
629
|
-
- lib/primer/forms/submit_button.rb
|
630
|
-
- lib/primer/forms/text_area.html.erb
|
631
|
-
- lib/primer/forms/text_area.rb
|
632
|
-
- lib/primer/forms/text_field.html.erb
|
633
|
-
- lib/primer/forms/text_field.rb
|
634
|
-
- lib/primer/forms/toggle_switch.html.erb
|
635
|
-
- lib/primer/forms/toggle_switch.rb
|
636
|
-
- lib/primer/forms/toggle_switch_form.rb
|
637
|
-
- lib/primer/forms/toggle_switch_input.d.ts
|
638
|
-
- lib/primer/forms/toggle_switch_input.js
|
639
|
-
- lib/primer/forms/toggle_switch_input.ts
|
640
|
-
- lib/primer/forms/utils.rb
|
641
|
-
- lib/primer/forms/validation_message.html.erb
|
642
|
-
- lib/primer/forms/validation_message.rb
|
643
657
|
- lib/primer/static.rb
|
644
658
|
- lib/primer/static/generate_arguments.rb
|
645
659
|
- lib/primer/static/generate_audited_at.rb
|
@@ -766,7 +780,6 @@ files:
|
|
766
780
|
- previews/primer/alpha/form_control_preview/playground.html.erb
|
767
781
|
- previews/primer/alpha/hellip_button_preview.rb
|
768
782
|
- previews/primer/alpha/hidden_text_expander_preview.rb
|
769
|
-
- previews/primer/alpha/image_crop_preview.rb
|
770
783
|
- previews/primer/alpha/layout_preview.rb
|
771
784
|
- previews/primer/alpha/menu_preview.rb
|
772
785
|
- previews/primer/alpha/menu_preview/default.html.erb
|
@@ -789,6 +802,8 @@ files:
|
|
789
802
|
- previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
|
790
803
|
- previews/primer/alpha/select_panel_preview.rb
|
791
804
|
- previews/primer/alpha/select_panel_preview/_interaction_subject_js.html.erb
|
805
|
+
- previews/primer/alpha/select_panel_preview/custom_loading_description.html.erb
|
806
|
+
- previews/primer/alpha/select_panel_preview/custom_loading_label.html.erb
|
792
807
|
- previews/primer/alpha/select_panel_preview/eventually_local_fetch.html.erb
|
793
808
|
- previews/primer/alpha/select_panel_preview/eventually_local_fetch_initial_failure.html.erb
|
794
809
|
- previews/primer/alpha/select_panel_preview/eventually_local_fetch_no_results.html.erb
|
@@ -804,6 +819,7 @@ files:
|
|
804
819
|
- previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
|
805
820
|
- previews/primer/alpha/select_panel_preview/remote_fetch_initial_failure.html.erb
|
806
821
|
- previews/primer/alpha/select_panel_preview/remote_fetch_no_results.html.erb
|
822
|
+
- previews/primer/alpha/select_panel_preview/scroll_container.html.erb
|
807
823
|
- previews/primer/alpha/select_panel_preview/single_select.html.erb
|
808
824
|
- previews/primer/alpha/select_panel_preview/single_select_form.html.erb
|
809
825
|
- previews/primer/alpha/select_panel_preview/with_avatar_items.html.erb
|
@@ -813,6 +829,11 @@ files:
|
|
813
829
|
- previews/primer/alpha/select_panel_preview/with_subtitle.html.erb
|
814
830
|
- previews/primer/alpha/select_panel_preview/with_trailing_icons.html.erb
|
815
831
|
- previews/primer/alpha/select_preview.rb
|
832
|
+
- previews/primer/alpha/stack_item_preview.rb
|
833
|
+
- previews/primer/alpha/stack_item_preview/default.html.erb
|
834
|
+
- previews/primer/alpha/stack_item_preview/playground.html.erb
|
835
|
+
- previews/primer/alpha/stack_preview.rb
|
836
|
+
- previews/primer/alpha/stack_preview/playground.html.erb
|
816
837
|
- previews/primer/alpha/tab_nav_preview.rb
|
817
838
|
- previews/primer/alpha/tab_nav_preview/with_extra.html.erb
|
818
839
|
- previews/primer/alpha/tab_panels_preview.rb
|
@@ -949,7 +970,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
949
970
|
- !ruby/object:Gem::Version
|
950
971
|
version: '0'
|
951
972
|
requirements: []
|
952
|
-
rubygems_version: 3.5.
|
973
|
+
rubygems_version: 3.5.22
|
953
974
|
signing_key:
|
954
975
|
specification_version: 4
|
955
976
|
summary: ViewComponents for the Primer Design System
|
@@ -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
|
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
|