openproject-primer_view_components 0.48.1 → 0.49.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/app/assets/javascripts/{app/components → components}/primer/open_project/zen_mode_button.d.ts +4 -0
  4. data/app/assets/javascripts/{app/components → components}/primer/primer.d.ts +3 -4
  5. data/app/assets/javascripts/primer_view_components.js +1 -1
  6. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  7. data/app/assets/styles/primer_view_components.css +1 -1
  8. data/app/assets/styles/primer_view_components.css.map +1 -1
  9. data/app/components/primer/alpha/action_bar.css.map +1 -1
  10. data/app/components/primer/alpha/action_bar.pcss +7 -4
  11. data/app/components/primer/alpha/action_bar_element.js +0 -3
  12. data/app/components/primer/alpha/action_bar_element.ts +0 -4
  13. data/app/components/primer/alpha/action_list.css +1 -1
  14. data/app/components/primer/alpha/action_list.css.map +1 -1
  15. data/app/components/primer/alpha/action_list.pcss +25 -8
  16. data/app/components/primer/alpha/action_list.rb +1 -1
  17. data/app/components/primer/alpha/auto_complete.css +1 -1
  18. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  19. data/app/components/primer/alpha/auto_complete.pcss +7 -7
  20. data/app/components/primer/alpha/banner.css +1 -1
  21. data/app/components/primer/alpha/banner.css.map +1 -1
  22. data/app/components/primer/alpha/banner.pcss +6 -2
  23. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  24. data/app/components/primer/alpha/button_marketing.pcss +11 -4
  25. data/app/components/primer/alpha/dialog.css +1 -1
  26. data/app/components/primer/alpha/dialog.css.json +2 -1
  27. data/app/components/primer/alpha/dialog.css.map +1 -1
  28. data/app/components/primer/alpha/dialog.pcss +39 -13
  29. data/app/components/primer/alpha/dialog.rb +5 -1
  30. data/app/components/primer/alpha/dropdown.css +1 -1
  31. data/app/components/primer/alpha/dropdown.css.map +1 -1
  32. data/app/components/primer/alpha/dropdown.pcss +45 -11
  33. data/app/components/primer/alpha/layout.css.map +1 -1
  34. data/app/components/primer/alpha/layout.pcss +3 -2
  35. data/app/components/primer/alpha/menu.css.map +1 -1
  36. data/app/components/primer/alpha/menu.pcss +7 -0
  37. data/app/components/primer/alpha/overlay.css.map +1 -1
  38. data/app/components/primer/alpha/overlay.pcss +3 -3
  39. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  40. data/app/components/primer/alpha/segmented_control.pcss +15 -8
  41. data/app/components/primer/alpha/select_panel.html.erb +8 -5
  42. data/app/components/primer/alpha/select_panel.rb +26 -1
  43. data/app/components/primer/alpha/select_panel_element.js +9 -3
  44. data/app/components/primer/alpha/select_panel_element.ts +10 -4
  45. data/app/components/primer/alpha/stack.css +1 -0
  46. data/app/components/primer/alpha/stack.css.json +90 -0
  47. data/app/components/primer/alpha/stack.css.map +1 -0
  48. data/app/components/primer/alpha/stack.html.erb +3 -0
  49. data/app/components/primer/alpha/stack.pcss +297 -0
  50. data/app/components/primer/alpha/stack.rb +185 -0
  51. data/app/components/primer/alpha/stack_item.css +1 -0
  52. data/app/components/primer/alpha/stack_item.css.json +12 -0
  53. data/app/components/primer/alpha/stack_item.css.map +1 -0
  54. data/app/components/primer/alpha/stack_item.html.erb +3 -0
  55. data/app/components/primer/alpha/stack_item.pcss +31 -0
  56. data/app/components/primer/alpha/stack_item.rb +54 -0
  57. data/app/components/primer/alpha/tab_nav.css +1 -1
  58. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  59. data/app/components/primer/alpha/tab_nav.pcss +12 -3
  60. data/app/components/primer/alpha/text_field.css +1 -1
  61. data/app/components/primer/alpha/text_field.css.map +1 -1
  62. data/app/components/primer/alpha/text_field.pcss +29 -22
  63. data/app/components/primer/alpha/toggle_switch.css +1 -1
  64. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  65. data/app/components/primer/alpha/toggle_switch.pcss +6 -3
  66. data/app/components/primer/alpha/underline_nav.css +1 -1
  67. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  68. data/app/components/primer/alpha/underline_nav.pcss +8 -2
  69. data/app/components/primer/base_component.rb +1 -1
  70. data/app/components/primer/beta/avatar.css +1 -1
  71. data/app/components/primer/beta/avatar.css.map +1 -1
  72. data/app/components/primer/beta/avatar.pcss +4 -1
  73. data/app/components/primer/beta/avatar_stack.css +1 -1
  74. data/app/components/primer/beta/avatar_stack.css.map +1 -1
  75. data/app/components/primer/beta/avatar_stack.pcss +9 -2
  76. data/app/components/primer/beta/blankslate.css +1 -1
  77. data/app/components/primer/beta/blankslate.css.map +1 -1
  78. data/app/components/primer/beta/blankslate.pcss +24 -3
  79. data/app/components/primer/beta/border_box.css +1 -1
  80. data/app/components/primer/beta/border_box.css.map +1 -1
  81. data/app/components/primer/beta/border_box.pcss +8 -4
  82. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  83. data/app/components/primer/beta/breadcrumbs.pcss +5 -1
  84. data/app/components/primer/beta/button.css +1 -1
  85. data/app/components/primer/beta/button.css.map +1 -1
  86. data/app/components/primer/beta/button.pcss +31 -27
  87. data/app/components/primer/beta/button_group.css.map +1 -1
  88. data/app/components/primer/beta/button_group.pcss +1 -0
  89. data/app/components/primer/beta/counter.css +1 -1
  90. data/app/components/primer/beta/counter.css.map +1 -1
  91. data/app/components/primer/beta/counter.pcss +3 -1
  92. data/app/components/primer/beta/flash.css.map +1 -1
  93. data/app/components/primer/beta/flash.pcss +7 -4
  94. data/app/components/primer/beta/label.css.map +1 -1
  95. data/app/components/primer/beta/label.pcss +4 -0
  96. data/app/components/primer/beta/popover.css +1 -1
  97. data/app/components/primer/beta/popover.css.map +1 -1
  98. data/app/components/primer/beta/popover.pcss +15 -7
  99. data/app/components/primer/beta/progress_bar.css +1 -1
  100. data/app/components/primer/beta/progress_bar.css.map +1 -1
  101. data/app/components/primer/beta/progress_bar.pcss +2 -2
  102. data/app/components/primer/beta/state.css +1 -1
  103. data/app/components/primer/beta/state.css.map +1 -1
  104. data/app/components/primer/beta/state.pcss +6 -1
  105. data/app/components/primer/beta/subhead.css.map +1 -1
  106. data/app/components/primer/beta/subhead.pcss +3 -0
  107. data/app/components/primer/beta/timeline_item.css.map +1 -1
  108. data/app/components/primer/beta/timeline_item.pcss +11 -0
  109. data/app/components/primer/beta/truncate.css.map +1 -1
  110. data/app/components/primer/beta/truncate.pcss +1 -0
  111. data/app/components/primer/dialog_helper.js +0 -1
  112. data/app/components/primer/dialog_helper.ts +0 -1
  113. data/app/components/primer/open_project/zen_mode_button.d.ts +4 -0
  114. data/app/components/primer/open_project/zen_mode_button.js +14 -6
  115. data/app/components/primer/open_project/zen_mode_button.ts +18 -5
  116. data/app/components/primer/primer.d.ts +3 -4
  117. data/app/components/primer/primer.js +3 -4
  118. data/app/components/primer/primer.pcss +6 -4
  119. data/app/components/primer/primer.ts +3 -4
  120. data/app/components/primer/responsive_arg.rb +66 -0
  121. data/app/forms/caption_template_form/places_bellevue_caption.html.erb +1 -0
  122. data/app/forms/caption_template_form/places_lopez_caption.html.erb +1 -0
  123. data/app/forms/caption_template_form/places_seattle_caption.html.erb +1 -0
  124. data/app/forms/caption_template_form.rb +6 -0
  125. data/app/forms/check_box_group_form.rb +1 -1
  126. data/app/forms/radio_button_group_form.rb +5 -1
  127. data/app/lib/primer/attributes_helper.rb +1 -1
  128. data/{lib → app/lib}/primer/forms/base_component.rb +0 -8
  129. data/{lib → app/lib}/primer/forms/button.rb +5 -2
  130. data/{lib → app/lib}/primer/forms/check_box_group.html.erb +3 -3
  131. data/{lib → app/lib}/primer/forms/check_box_group.rb +1 -1
  132. data/{lib → app/lib}/primer/forms/dsl/check_box_input.rb +4 -8
  133. data/{lib → app/lib}/primer/forms/dsl/input.rb +13 -1
  134. data/{lib → app/lib}/primer/forms/dsl/radio_button_input.rb +4 -0
  135. data/{lib → app/lib}/primer/forms/group.html.erb +1 -1
  136. data/{lib → app/lib}/primer/forms/group.rb +5 -0
  137. data/{lib → app/lib}/primer/forms/radio_button_group.html.erb +3 -3
  138. data/{lib → app/lib}/primer/forms/radio_button_group.rb +1 -1
  139. data/{lib → app/lib}/primer/forms/select.html.erb +0 -1
  140. data/lib/primer/view_components/linters/details_menu_migration.rb +3 -2
  141. data/lib/primer/view_components/version.rb +2 -2
  142. data/lib/primer/yard/component_manifest.rb +0 -1
  143. data/previews/primer/alpha/action_bar_preview/inline.html.erb +1 -1
  144. data/previews/primer/alpha/dialog_preview/autofocus_element.html.erb +1 -1
  145. data/previews/primer/alpha/dialog_preview/custom_header.html.erb +3 -1
  146. data/previews/primer/alpha/dialog_preview/dialog_inside_overlay.html.erb +4 -4
  147. data/previews/primer/alpha/dialog_preview/nested_dialog.html.erb +1 -1
  148. data/previews/primer/alpha/dialog_preview/scroll_container.html.erb +11 -2
  149. data/previews/primer/alpha/dialog_preview/with_footer.html.erb +2 -2
  150. data/previews/primer/alpha/dialog_preview/with_form.html.erb +2 -2
  151. data/previews/primer/alpha/dialog_preview/with_text_input.html.erb +1 -1
  152. data/previews/primer/alpha/dialog_preview.rb +4 -2
  153. data/previews/primer/alpha/overlay_preview/in_a_sticky_container.html.erb +1 -1
  154. data/previews/primer/alpha/overlay_preview/overlay_with_header_filter.html.erb +1 -1
  155. data/previews/primer/alpha/select_panel_preview/_interaction_subject_js.html.erb +1 -1
  156. data/previews/primer/alpha/select_panel_preview/custom_loading_description.html.erb +23 -0
  157. data/previews/primer/alpha/select_panel_preview/custom_loading_label.html.erb +21 -0
  158. data/previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb +4 -2
  159. data/previews/primer/alpha/select_panel_preview/scroll_container.html.erb +49 -0
  160. data/previews/primer/alpha/select_panel_preview.rb +40 -2
  161. data/previews/primer/alpha/stack_item_preview/default.html.erb +5 -0
  162. data/previews/primer/alpha/stack_item_preview/playground.html.erb +11 -0
  163. data/previews/primer/alpha/stack_item_preview.rb +40 -0
  164. data/previews/primer/alpha/stack_preview/playground.html.erb +5 -0
  165. data/previews/primer/alpha/stack_preview.rb +88 -0
  166. data/previews/primer/alpha/text_field_preview/input_group_leading_action_menu.html.erb +1 -2
  167. data/previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb +2 -2
  168. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +1 -1
  169. data/previews/primer/alpha/underline_nav_preview/default.html.erb +1 -1
  170. data/previews/primer/alpha/underline_nav_preview/playground.html.erb +1 -1
  171. data/previews/primer/beta/auto_complete_preview/with_submit_button.html.erb +18 -18
  172. data/previews/primer/beta/breadcrumbs_preview/with_deprecated_truncate.html.erb +3 -1
  173. data/previews/primer/beta/button_preview/summary_as_button.html.erb +0 -1
  174. data/previews/primer/beta/subhead_preview/actions.html.erb +0 -1
  175. data/previews/primer/open_project/feedback_dialog_preview/additional_content.html.erb +1 -1
  176. data/previews/primer/open_project/feedback_dialog_preview/custom_footer.html.erb +1 -1
  177. data/previews/primer/open_project/feedback_dialog_preview/playground.html.erb +2 -2
  178. data/previews/primer/open_project/page_header_preview/actions.html.erb +1 -1
  179. data/previews/primer/open_project/page_header_preview/playground.html.erb +2 -2
  180. data/previews/primer/open_project/sub_header_preview/action_menu_buttons.html.erb +1 -1
  181. data/static/arguments.json +112 -30
  182. data/static/audited_at.json +2 -1
  183. data/static/classes.json +6 -0
  184. data/static/constants.json +172 -9
  185. data/static/info_arch.json +248 -98
  186. data/static/previews.json +107 -47
  187. data/static/statuses.json +2 -1
  188. metadata +137 -120
  189. data/app/assets/javascripts/app/components/primer/alpha/image_crop.d.ts +0 -1
  190. data/app/components/primer/alpha/image_crop.d.ts +0 -1
  191. data/app/components/primer/alpha/image_crop.html.erb +0 -12
  192. data/app/components/primer/alpha/image_crop.js +0 -1
  193. data/app/components/primer/alpha/image_crop.rb +0 -28
  194. data/app/components/primer/alpha/image_crop.ts +0 -1
  195. data/previews/primer/alpha/image_crop_preview.rb +0 -31
  196. /data/app/assets/javascripts/{app/components → components}/primer/alpha/action_bar_element.d.ts +0 -0
  197. /data/app/assets/javascripts/{app/components → components}/primer/alpha/action_list.d.ts +0 -0
  198. /data/app/assets/javascripts/{app/components → components}/primer/alpha/action_menu/action_menu_element.d.ts +0 -0
  199. /data/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown/menu.d.ts +0 -0
  200. /data/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown.d.ts +0 -0
  201. /data/app/assets/javascripts/{app/components → components}/primer/alpha/modal_dialog.d.ts +0 -0
  202. /data/app/assets/javascripts/{app/components → components}/primer/alpha/segmented_control.d.ts +0 -0
  203. /data/app/assets/javascripts/{app/components → components}/primer/alpha/select_panel_element.d.ts +0 -0
  204. /data/app/assets/javascripts/{app/components → components}/primer/alpha/tab_container.d.ts +0 -0
  205. /data/app/assets/javascripts/{app/components → components}/primer/alpha/toggle_switch.d.ts +0 -0
  206. /data/app/assets/javascripts/{app/components → components}/primer/alpha/tool_tip.d.ts +0 -0
  207. /data/app/assets/javascripts/{app/components → components}/primer/alpha/x_banner.d.ts +0 -0
  208. /data/app/assets/javascripts/{app/components → components}/primer/anchored_position.d.ts +0 -0
  209. /data/app/assets/javascripts/{app/components → components}/primer/aria_live.d.ts +0 -0
  210. /data/app/assets/javascripts/{app/components → components}/primer/beta/auto_complete/auto_complete.d.ts +0 -0
  211. /data/app/assets/javascripts/{app/components → components}/primer/beta/clipboard_copy.d.ts +0 -0
  212. /data/app/assets/javascripts/{app/components → components}/primer/beta/nav_list.d.ts +0 -0
  213. /data/app/assets/javascripts/{app/components → components}/primer/beta/nav_list_group_element.d.ts +0 -0
  214. /data/app/assets/javascripts/{app/components → components}/primer/beta/relative_time.d.ts +0 -0
  215. /data/app/assets/javascripts/{app/components → components}/primer/dialog_helper.d.ts +0 -0
  216. /data/app/assets/javascripts/{app/components → components}/primer/focus_group.d.ts +0 -0
  217. /data/app/assets/javascripts/{app/components → components}/primer/open_project/page_header_element.d.ts +0 -0
  218. /data/app/assets/javascripts/{app/components → components}/primer/open_project/sub_header_element.d.ts +0 -0
  219. /data/app/assets/javascripts/{app/components → components}/primer/scrollable_region.d.ts +0 -0
  220. /data/app/assets/javascripts/{app/components → components}/primer/shared_events.d.ts +0 -0
  221. /data/{lib → app/lib}/primer/forms/action_menu.html.erb +0 -0
  222. /data/{lib → app/lib}/primer/forms/action_menu.rb +0 -0
  223. /data/{lib → app/lib}/primer/forms/acts_as_component.rb +0 -0
  224. /data/{lib → app/lib}/primer/forms/auto_complete.html.erb +0 -0
  225. /data/{lib → app/lib}/primer/forms/auto_complete.rb +0 -0
  226. /data/{lib → app/lib}/primer/forms/base.html.erb +0 -0
  227. /data/{lib → app/lib}/primer/forms/base.rb +0 -0
  228. /data/{lib → app/lib}/primer/forms/buffer_rewriter.rb +0 -0
  229. /data/{lib → app/lib}/primer/forms/builder.rb +0 -0
  230. /data/{lib → app/lib}/primer/forms/button.html.erb +0 -0
  231. /data/{lib → app/lib}/primer/forms/caption.html.erb +0 -0
  232. /data/{lib → app/lib}/primer/forms/caption.rb +0 -0
  233. /data/{lib → app/lib}/primer/forms/check_box.html.erb +0 -0
  234. /data/{lib → app/lib}/primer/forms/check_box.rb +0 -0
  235. /data/{lib → app/lib}/primer/forms/dsl/action_menu_input.rb +0 -0
  236. /data/{lib → app/lib}/primer/forms/dsl/auto_complete_input.rb +0 -0
  237. /data/{lib → app/lib}/primer/forms/dsl/button_input.rb +0 -0
  238. /data/{lib → app/lib}/primer/forms/dsl/check_box_group_input.rb +0 -0
  239. /data/{lib → app/lib}/primer/forms/dsl/form_object.rb +0 -0
  240. /data/{lib → app/lib}/primer/forms/dsl/form_reference_input.rb +0 -0
  241. /data/{lib → app/lib}/primer/forms/dsl/hidden_input.rb +0 -0
  242. /data/{lib → app/lib}/primer/forms/dsl/input_group.rb +0 -0
  243. /data/{lib → app/lib}/primer/forms/dsl/input_methods.rb +0 -0
  244. /data/{lib → app/lib}/primer/forms/dsl/multi_input.rb +0 -0
  245. /data/{lib → app/lib}/primer/forms/dsl/radio_button_group_input.rb +0 -0
  246. /data/{lib → app/lib}/primer/forms/dsl/select_input.rb +0 -0
  247. /data/{lib → app/lib}/primer/forms/dsl/submit_button_input.rb +0 -0
  248. /data/{lib → app/lib}/primer/forms/dsl/text_area_input.rb +0 -0
  249. /data/{lib → app/lib}/primer/forms/dsl/text_field_input.rb +0 -0
  250. /data/{lib → app/lib}/primer/forms/dsl/toggle_switch_input.rb +0 -0
  251. /data/{lib → app/lib}/primer/forms/form_control.html.erb +0 -0
  252. /data/{lib → app/lib}/primer/forms/form_control.rb +0 -0
  253. /data/{lib → app/lib}/primer/forms/form_list.html.erb +0 -0
  254. /data/{lib → app/lib}/primer/forms/form_list.rb +0 -0
  255. /data/{lib → app/lib}/primer/forms/form_reference.html.erb +0 -0
  256. /data/{lib → app/lib}/primer/forms/form_reference.rb +0 -0
  257. /data/{lib → app/lib}/primer/forms/hidden_field.html.erb +0 -0
  258. /data/{lib → app/lib}/primer/forms/hidden_field.rb +0 -0
  259. /data/{lib → app/lib}/primer/forms/multi.html.erb +0 -0
  260. /data/{lib → app/lib}/primer/forms/multi.rb +0 -0
  261. /data/{lib → app/lib}/primer/forms/primer_base_component_wrapper.html.erb +0 -0
  262. /data/{lib → app/lib}/primer/forms/primer_base_component_wrapper.rb +0 -0
  263. /data/{lib → app/lib}/primer/forms/primer_multi_input.d.ts +0 -0
  264. /data/{lib → app/lib}/primer/forms/primer_multi_input.js +0 -0
  265. /data/{lib → app/lib}/primer/forms/primer_multi_input.ts +0 -0
  266. /data/{lib → app/lib}/primer/forms/primer_text_field.d.ts +0 -0
  267. /data/{lib → app/lib}/primer/forms/primer_text_field.js +0 -0
  268. /data/{lib → app/lib}/primer/forms/primer_text_field.ts +0 -0
  269. /data/{lib → app/lib}/primer/forms/radio_button.html.erb +0 -0
  270. /data/{lib → app/lib}/primer/forms/radio_button.rb +0 -0
  271. /data/{lib → app/lib}/primer/forms/select.rb +0 -0
  272. /data/{lib → app/lib}/primer/forms/separator.html.erb +0 -0
  273. /data/{lib → app/lib}/primer/forms/separator.rb +0 -0
  274. /data/{lib → app/lib}/primer/forms/spacing_wrapper.html.erb +0 -0
  275. /data/{lib → app/lib}/primer/forms/spacing_wrapper.rb +0 -0
  276. /data/{lib → app/lib}/primer/forms/submit_button.html.erb +0 -0
  277. /data/{lib → app/lib}/primer/forms/submit_button.rb +0 -0
  278. /data/{lib → app/lib}/primer/forms/text_area.html.erb +0 -0
  279. /data/{lib → app/lib}/primer/forms/text_area.rb +0 -0
  280. /data/{lib → app/lib}/primer/forms/text_field.html.erb +0 -0
  281. /data/{lib → app/lib}/primer/forms/text_field.rb +0 -0
  282. /data/{lib → app/lib}/primer/forms/toggle_switch.html.erb +0 -0
  283. /data/{lib → app/lib}/primer/forms/toggle_switch.rb +0 -0
  284. /data/{lib → app/lib}/primer/forms/toggle_switch_form.rb +0 -0
  285. /data/{lib → app/lib}/primer/forms/toggle_switch_input.d.ts +0 -0
  286. /data/{lib → app/lib}/primer/forms/toggle_switch_input.js +0 -0
  287. /data/{lib → app/lib}/primer/forms/toggle_switch_input.ts +0 -0
  288. /data/{lib → app/lib}/primer/forms/utils.rb +0 -0
  289. /data/{lib → app/lib}/primer/forms/validation_message.html.erb +0 -0
  290. /data/{lib → app/lib}/primer/forms/validation_message.rb +0 -0
  291. /data/{lib → app/lib}/primer/forms.rb +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["layout.pcss"],"names":[],"mappings":"AAgFA,QACE,YAAa,CAEb,4BAA6B,CAC7B,oBA+IF,CA7IE,wCANF,QA7EE,kBAAmB,CACnB,mCA+NF,CA7NE,qEAIE,uBAAyB,CADzB,oBAEF,CAGE,8DACE,UACF,CAQA,uHACE,iBACF,CAEA,yDACE,UACF,CAIA,6DACE,YACF,CAGF,wBAoBA,iBAJA,CAMA,wCAEE,UAAW,CADX,UAeF,CAZE,4EACE,YACF,CAEA,6EAGE,+BAAgC,CAChC,uCAAwC,CACxC,kBAAmB,CACnB,sCAAuC,CALvC,UAAW,CACX,cAKF,CA7BE,iHACE,iBACF,CAEA,yEACE,UACF,CAmCJ,CAGE,wCADF,iCAvFA,kBAAmB,CACnB,mCA0FA,CAxFA,gJAIE,uBAAyB,CADzB,oBAEF,CAGE,uFACE,UACF,CAQA,yKACE,iBACF,CAEA,kFACE,UACF,CAIA,sFACE,YACF,CAGF,iDAoBA,iBAJA,CAMA,iEAEE,UAAW,CADX,UAeF,CAZE,qGACE,YACF,CAEA,sGAGE,+BAAgC,CAChC,uCAAwC,CACxC,kBAAmB,CACnB,sCAAuC,CALvC,UAAW,CACX,cAKF,CA7BE,mKACE,iBACF,CAEA,kGACE,UACF,CAwCF,CAIA,yCADF,iCA7FA,kBAAmB,CACnB,mCAgGA,CA9FA,gJAIE,uBAAyB,CADzB,oBAEF,CAGE,uFACE,UACF,CAQA,yKACE,iBACF,CAEA,kFACE,UACF,CAIA,sFACE,YACF,CAGF,iDAoBA,iBAJA,CAMA,iEAEE,UAAW,CADX,UAeF,CAZE,qGACE,YACF,CAEA,sGAGE,+BAAgC,CAChC,uCAAwC,CACxC,kBAAmB,CACnB,sCAAuC,CALvC,UAAW,CACX,cAKF,CA7BE,mKACE,iBACF,CAEA,kGACE,UACF,CA8CF,CAnBJ,QAwBE,qBAAsB,CACtB,sGAAwG,CACxG,6BAyHF,CAvHE,wBACE,aACF,CAEA,wBACE,YACF,CAEA,qBACE,oBACF,CAIA,0BA1CF,QA2CI,oBAwGJ,CAvGE,CAEA,4BAEE,mBACF,CAEA,iCACE,oBACF,CAGE,0BADF,gCAEI,oBAMJ,CALE,CAEA,0BALF,gCAMI,oBAEJ,CADE,CAIF,yBAlEF,QAmEI,4BAgFJ,CA/EE,CAEA,yBAtEF,QAuEI,4BA4EJ,CA3EE,CAEA,0BA1EF,QA2EI,4BAwEJ,CAvEE,CAGE,yBADF,+BAEI,4BAMJ,CALE,CAEA,0BALF,+BAMI,4BAEJ,CAEA,6BAEI,4BAMJ,CAXE,CAQA,0BALF,6BAMI,4BAEJ,CADE,CAMA,sDACE,aACF,CAEA,mDACE,oBACF,CAGF,oCACE,sGASF,CAPE,iDACE,aACF,CAEA,oDACE,oBACF,CAMA,wCAKE,qCAAsC,CAJtC,aAAc,CACd,aAAc,CAEd,iBAAkB,CADlB,SAGF,CAOE,yGACE,oBACF,CAEA,iEACE,aACF,CAKN,gBACE,YAAa,CACb,SACF,CAEA,gBACE,iCACF,CAEA,aACE,WA4BF,CAxBE,kHAIE,gBAAiB,CADjB,iBAQF,CALE,+YAGE,aACF,CAGF,sCACE,6FACF,CAEA,sCACE,4FACF,CAEA,sCACE,6FACF","file":"layout.css","sourcesContent":["/* Layout */\n\n@define-mixin flow-as-row {\n grid-auto-flow: row;\n grid-template-columns: 1fr !important;\n\n & .Layout-sidebar,\n & .Layout-divider,\n & .Layout-main {\n width: 100% !important;\n grid-column: 1 !important;\n }\n\n &.Layout--sidebarPosition-flowRow-start {\n & .Layout-sidebar {\n grid-row: 1;\n }\n\n & .Layout-main {\n grid-row: 2 / span 2;\n }\n }\n\n &.Layout--sidebarPosition-flowRow-end {\n & .Layout-sidebar {\n grid-row: 2 / span 2;\n }\n\n & .Layout-main {\n grid-row: 1;\n }\n }\n\n &.Layout--sidebarPosition-flowRow-none {\n & .Layout-sidebar {\n display: none;\n }\n }\n\n &.Layout--divided {\n @mixin flow-as-row-divider;\n\n & .Layout-main {\n grid-row: 3 / span 1;\n }\n\n &.Layout--sidebarPosition-flowRow-end {\n & .Layout-sidebar {\n grid-row: 3 / span 1;\n }\n\n & .Layout-main {\n grid-row: 1;\n }\n }\n }\n}\n\n@define-mixin flow-as-row-divider {\n --Layout-gutter: 0;\n\n & .Layout-divider {\n height: 1px;\n grid-row: 2;\n\n &.Layout-divider--flowRow-hidden {\n display: none;\n }\n\n &.Layout-divider--flowRow-shallow {\n height: 8px;\n margin-right: 0;\n background: var(--bgColor-inset);\n border-color: var(--borderColor-default);\n border-style: solid;\n border-width: var(--borderWidth-thin) 0;\n }\n }\n}\n\n.Layout {\n display: grid;\n\n --Layout-sidebar-width: 220px;\n --Layout-gutter: 16px;\n\n @media (max-width: calc(544px - 0.02px)) {\n @mixin flow-as-row;\n }\n\n &.Layout--flowRow-until-md {\n @media (max-width: calc(768px - 0.02px)) {\n @mixin flow-as-row;\n }\n }\n\n &.Layout--flowRow-until-lg {\n @media (max-width: calc(1012px - 0.02px)) {\n @mixin flow-as-row;\n }\n }\n\n /* Flow as column */\n\n grid-auto-flow: column;\n grid-template-columns: auto 0 minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))); /* sidebar column, separator, main column */\n grid-gap: var(--Layout-gutter);\n\n & .Layout-sidebar {\n grid-column: 1;\n }\n\n & .Layout-divider {\n display: none;\n }\n\n & .Layout-main {\n grid-column: 2 / span 2;\n }\n\n /* Gutter spacing */\n\n @media (min-width: 1012px) {\n --Layout-gutter: 24px;\n }\n\n &.Layout--gutter-none {\n /* stylelint-disable-next-line length-zero-no-unit */\n --Layout-gutter: 0px; /* Neds px in value */\n }\n\n &.Layout--gutter-condensed {\n --Layout-gutter: 16px;\n }\n\n &.Layout--gutter-spacious {\n @media (min-width: 1012px) {\n --Layout-gutter: 32px;\n }\n\n @media (min-width: 1280px) {\n --Layout-gutter: 40px;\n }\n }\n\n /* Sidebar width */\n @media (min-width: 544px) {\n --Layout-sidebar-width: 220px;\n }\n\n @media (min-width: 768px) {\n --Layout-sidebar-width: 256px;\n }\n\n @media (min-width: 1012px) {\n --Layout-sidebar-width: 296px;\n }\n\n &.Layout--sidebar-narrow {\n @media (min-width: 768px) {\n --Layout-sidebar-width: 240px;\n }\n\n @media (min-width: 1012px) {\n --Layout-sidebar-width: 256px;\n }\n }\n\n &.Layout--sidebar-wide {\n @media (min-width: 1012px) {\n --Layout-sidebar-width: 320px;\n }\n\n @media (min-width: 1280px) {\n --Layout-sidebar-width: 336px;\n }\n }\n\n /* Sidebar position */\n\n &.Layout--sidebarPosition-start {\n & .Layout-sidebar {\n grid-column: 1;\n }\n\n & .Layout-main {\n grid-column: 2 / span 2;\n }\n }\n\n &.Layout--sidebarPosition-end {\n grid-template-columns: minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))) 0 auto;\n\n & .Layout-main {\n grid-column: 1;\n }\n\n & .Layout-sidebar {\n grid-column: 2 / span 2;\n }\n }\n\n /* Sidebar divider */\n\n &.Layout--divided {\n & .Layout-divider {\n display: block;\n grid-column: 2;\n width: 1px;\n margin-right: -1px;\n background: var(--borderColor-default);\n }\n\n & .Layout-main {\n grid-column: 3 / span 1;\n }\n\n &.Layout--sidebarPosition-end {\n & .Layout-sidebar {\n grid-column: 3 / span 1;\n }\n\n & .Layout-main {\n grid-column: 1;\n }\n }\n }\n}\n\n.Layout-divider {\n display: none;\n width: 1px;\n}\n\n.Layout-sidebar {\n width: var(--Layout-sidebar-width);\n}\n\n.Layout-main {\n min-width: 0;\n\n /* Centered main column\n ** FIXME: right-aligned sidebar */\n & .Layout-main-centered-md,\n & .Layout-main-centered-lg,\n & .Layout-main-centered-xl {\n margin-right: auto;\n margin-left: auto;\n\n & > .container-md,\n & > .container-lg,\n & > .container-xl {\n margin-left: 0;\n }\n }\n\n & .Layout-main-centered-md {\n max-width: calc(var(--breakpoint-medium) + var(--Layout-sidebar-width) + var(--Layout-gutter));\n }\n\n & .Layout-main-centered-lg {\n max-width: calc(var(--breakpoint-large) + var(--Layout-sidebar-width) + var(--Layout-gutter));\n }\n\n & .Layout-main-centered-xl {\n max-width: calc(var(--breakpoint-xlarge) + var(--Layout-sidebar-width) + var(--Layout-gutter));\n }\n}\n"]}
1
+ {"version":3,"sources":["layout.pcss"],"names":[],"mappings":"AAgFA,QACE,YAAa,CAEb,4BAA6B,CAC7B,oBAgJF,CA9IE,wCANF,QA7EE,kBAAmB,CACnB,mCAgOF,CA9NE,qEAIE,uBAAyB,CADzB,oBAEF,CAGE,8DACE,UACF,CAQA,uHACE,iBACF,CAEA,yDACE,UACF,CAIA,6DACE,YACF,CAGF,wBAoBA,iBAJA,CAMA,wCAEE,UAAW,CADX,UAeF,CAZE,4EACE,YACF,CAEA,6EAGE,+BAAgC,CAChC,uCAAwC,CACxC,kBAAmB,CACnB,sCAAuC,CALvC,UAAW,CACX,cAKF,CA7BE,iHACE,iBACF,CAEA,yEACE,UACF,CAmCJ,CAGE,wCADF,iCAvFA,kBAAmB,CACnB,mCA0FA,CAxFA,gJAIE,uBAAyB,CADzB,oBAEF,CAGE,uFACE,UACF,CAQA,yKACE,iBACF,CAEA,kFACE,UACF,CAIA,sFACE,YACF,CAGF,iDAoBA,iBAJA,CAMA,iEAEE,UAAW,CADX,UAeF,CAZE,qGACE,YACF,CAEA,sGAGE,+BAAgC,CAChC,uCAAwC,CACxC,kBAAmB,CACnB,sCAAuC,CALvC,UAAW,CACX,cAKF,CA7BE,mKACE,iBACF,CAEA,kGACE,UACF,CAwCF,CAIA,yCADF,iCA7FA,kBAAmB,CACnB,mCAgGA,CA9FA,gJAIE,uBAAyB,CADzB,oBAEF,CAGE,uFACE,UACF,CAQA,yKACE,iBACF,CAEA,kFACE,UACF,CAIA,sFACE,YACF,CAGF,iDAoBA,iBAJA,CAMA,iEAEE,UAAW,CADX,UAeF,CAZE,qGACE,YACF,CAEA,sGAGE,+BAAgC,CAChC,uCAAwC,CACxC,kBAAmB,CACnB,sCAAuC,CALvC,UAAW,CACX,cAKF,CA7BE,mKACE,iBACF,CAEA,kGACE,UACF,CA8CF,CAnBJ,QAwBE,qBAAsB,CACtB,sGAAwG,CACxG,6BA0HF,CAxHE,wBACE,aACF,CAEA,wBACE,YACF,CAEA,qBACE,oBACF,CAIA,0BA1CF,QA2CI,oBAyGJ,CAxGE,CAEA,4BACE,mBACF,CAEA,iCACE,oBACF,CAGE,0BADF,gCAEI,oBAMJ,CALE,CAEA,0BALF,gCAMI,oBAEJ,CADE,CAIF,yBAjEF,QAkEI,4BAkFJ,CAjFE,CAEA,yBArEF,QAsEI,4BA8EJ,CA7EE,CAEA,0BAzEF,QA0EI,4BA0EJ,CAzEE,CAGE,yBADF,+BAEI,4BAMJ,CALE,CAEA,0BALF,+BAMI,4BAEJ,CAEA,6BAEI,4BAMJ,CAXE,CAQA,0BALF,6BAMI,4BAEJ,CADE,CAMA,sDACE,aACF,CAEA,mDACE,oBACF,CAGF,oCACE,sGASF,CAPE,iDACE,aACF,CAEA,oDACE,oBACF,CAMA,wCAOE,qCAAsC,CANtC,aAAc,CACd,aAAc,CAGd,iBAAkB,CAFlB,SAKF,CAOE,yGACE,oBACF,CAEA,iEACE,aACF,CAKN,gBACE,YAAa,CACb,SACF,CAEA,gBACE,iCACF,CAEA,aACE,WA4BF,CAxBE,kHAIE,gBAAiB,CADjB,iBAQF,CALE,+YAGE,aACF,CAGF,sCACE,6FACF,CAEA,sCACE,4FACF,CAEA,sCACE,6FACF","file":"layout.css","sourcesContent":["/* Layout */\n\n@define-mixin flow-as-row {\n grid-auto-flow: row;\n grid-template-columns: 1fr !important;\n\n & .Layout-sidebar,\n & .Layout-divider,\n & .Layout-main {\n width: 100% !important;\n grid-column: 1 !important;\n }\n\n &.Layout--sidebarPosition-flowRow-start {\n & .Layout-sidebar {\n grid-row: 1;\n }\n\n & .Layout-main {\n grid-row: 2 / span 2;\n }\n }\n\n &.Layout--sidebarPosition-flowRow-end {\n & .Layout-sidebar {\n grid-row: 2 / span 2;\n }\n\n & .Layout-main {\n grid-row: 1;\n }\n }\n\n &.Layout--sidebarPosition-flowRow-none {\n & .Layout-sidebar {\n display: none;\n }\n }\n\n &.Layout--divided {\n @mixin flow-as-row-divider;\n\n & .Layout-main {\n grid-row: 3 / span 1;\n }\n\n &.Layout--sidebarPosition-flowRow-end {\n & .Layout-sidebar {\n grid-row: 3 / span 1;\n }\n\n & .Layout-main {\n grid-row: 1;\n }\n }\n }\n}\n\n@define-mixin flow-as-row-divider {\n --Layout-gutter: 0;\n\n & .Layout-divider {\n height: 1px;\n grid-row: 2;\n\n &.Layout-divider--flowRow-hidden {\n display: none;\n }\n\n &.Layout-divider--flowRow-shallow {\n height: 8px;\n margin-right: 0;\n background: var(--bgColor-inset);\n border-color: var(--borderColor-default);\n border-style: solid;\n border-width: var(--borderWidth-thin) 0;\n }\n }\n}\n\n.Layout {\n display: grid;\n\n --Layout-sidebar-width: 220px;\n --Layout-gutter: 16px;\n\n @media (max-width: calc(544px - 0.02px)) {\n @mixin flow-as-row;\n }\n\n &.Layout--flowRow-until-md {\n @media (max-width: calc(768px - 0.02px)) {\n @mixin flow-as-row;\n }\n }\n\n &.Layout--flowRow-until-lg {\n @media (max-width: calc(1012px - 0.02px)) {\n @mixin flow-as-row;\n }\n }\n\n /* Flow as column */\n\n grid-auto-flow: column;\n grid-template-columns: auto 0 minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))); /* sidebar column, separator, main column */\n grid-gap: var(--Layout-gutter);\n\n & .Layout-sidebar {\n grid-column: 1;\n }\n\n & .Layout-divider {\n display: none;\n }\n\n & .Layout-main {\n grid-column: 2 / span 2;\n }\n\n /* Gutter spacing */\n\n @media (min-width: 1012px) {\n --Layout-gutter: 24px;\n }\n\n &.Layout--gutter-none {\n --Layout-gutter: 0px;\n }\n\n &.Layout--gutter-condensed {\n --Layout-gutter: 16px;\n }\n\n &.Layout--gutter-spacious {\n @media (min-width: 1012px) {\n --Layout-gutter: 32px;\n }\n\n @media (min-width: 1280px) {\n --Layout-gutter: 40px;\n }\n }\n\n /* Sidebar width */\n @media (min-width: 544px) {\n --Layout-sidebar-width: 220px;\n }\n\n @media (min-width: 768px) {\n --Layout-sidebar-width: 256px;\n }\n\n @media (min-width: 1012px) {\n --Layout-sidebar-width: 296px;\n }\n\n &.Layout--sidebar-narrow {\n @media (min-width: 768px) {\n --Layout-sidebar-width: 240px;\n }\n\n @media (min-width: 1012px) {\n --Layout-sidebar-width: 256px;\n }\n }\n\n &.Layout--sidebar-wide {\n @media (min-width: 1012px) {\n --Layout-sidebar-width: 320px;\n }\n\n @media (min-width: 1280px) {\n --Layout-sidebar-width: 336px;\n }\n }\n\n /* Sidebar position */\n\n &.Layout--sidebarPosition-start {\n & .Layout-sidebar {\n grid-column: 1;\n }\n\n & .Layout-main {\n grid-column: 2 / span 2;\n }\n }\n\n &.Layout--sidebarPosition-end {\n grid-template-columns: minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))) 0 auto;\n\n & .Layout-main {\n grid-column: 1;\n }\n\n & .Layout-sidebar {\n grid-column: 2 / span 2;\n }\n }\n\n /* Sidebar divider */\n\n &.Layout--divided {\n & .Layout-divider {\n display: block;\n grid-column: 2;\n width: 1px;\n /* stylelint-disable-next-line primer/spacing */\n margin-right: -1px;\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-default);\n }\n\n & .Layout-main {\n grid-column: 3 / span 1;\n }\n\n &.Layout--sidebarPosition-end {\n & .Layout-sidebar {\n grid-column: 3 / span 1;\n }\n\n & .Layout-main {\n grid-column: 1;\n }\n }\n }\n}\n\n.Layout-divider {\n display: none;\n width: 1px;\n}\n\n.Layout-sidebar {\n width: var(--Layout-sidebar-width);\n}\n\n.Layout-main {\n min-width: 0;\n\n /* Centered main column\n ** FIXME: right-aligned sidebar */\n & .Layout-main-centered-md,\n & .Layout-main-centered-lg,\n & .Layout-main-centered-xl {\n margin-right: auto;\n margin-left: auto;\n\n & > .container-md,\n & > .container-lg,\n & > .container-xl {\n margin-left: 0;\n }\n }\n\n & .Layout-main-centered-md {\n max-width: calc(var(--breakpoint-medium) + var(--Layout-sidebar-width) + var(--Layout-gutter));\n }\n\n & .Layout-main-centered-lg {\n max-width: calc(var(--breakpoint-large) + var(--Layout-sidebar-width) + var(--Layout-gutter));\n }\n\n & .Layout-main-centered-xl {\n max-width: calc(var(--breakpoint-xlarge) + var(--Layout-sidebar-width) + var(--Layout-gutter));\n }\n}\n"]}
@@ -125,8 +125,7 @@
125
125
  }
126
126
 
127
127
  &.Layout--gutter-none {
128
- /* stylelint-disable-next-line length-zero-no-unit */
129
- --Layout-gutter: 0px; /* Neds px in value */
128
+ --Layout-gutter: 0px;
130
129
  }
131
130
 
132
131
  &.Layout--gutter-condensed {
@@ -207,7 +206,9 @@
207
206
  display: block;
208
207
  grid-column: 2;
209
208
  width: 1px;
209
+ /* stylelint-disable-next-line primer/spacing */
210
210
  margin-right: -1px;
211
+ /* stylelint-disable-next-line primer/colors */
211
212
  background: var(--borderColor-default);
212
213
  }
213
214
 
@@ -1 +1 @@
1
- {"version":3,"sources":["menu.pcss"],"names":[],"mappings":"AAIA,MAGE,uCAAwC,CACxC,+DAAgE,CAChE,wCAAyC,CAHzC,eAAgB,CADhB,qCAKF,CAEA,WAKE,sEAAuE,CADvE,4BAA6B,CAF7B,aAAc,CACd,kGAAmG,CAFnG,iBA+EF,CAzEE,uBACE,YAAa,CAEb,kDAKF,CAHE,qDAHA,iDAKA,CAGF,sBACE,eAAgB,CAChB,qDAMF,CAHE,mDAFA,oDAIA,CAGF,iBAEE,6CAA8C,CAD9C,4BAAqB,CAArB,oBAEF,CAEA,kBACE,qCACF,CAEA,sGAIE,2CAA4C,CAD5C,cAYF,CATE,kHAOE,uDAAwD,CAJxD,QAAS,CAGT,UAAW,CAFX,MAAO,CAHP,iBAAkB,CAClB,KAAM,CAGN,SAGF,CAGF,oBAGE,0BAA2B,CAD3B,sCAAuC,CAEvC,iBAAkB,CAHlB,UAIF,CAEA,oBACE,WAAY,CACZ,oCACF,CAEA,yBAEE,8BAA+B,CAD/B,WAEF,CAEA,mBACE,UAAW,CACX,qCACF,CAGE,0BACE,2BACF,CAIJ,cAQE,sEAAuE,CADvE,4BAA6B,CAN7B,aAAc,CAId,iBAAkB,CAClB,4CAA6C,CAF7C,eAAgB,CADhB,YAAa,CADb,kGAsBF,CAdE,oBACE,4BAAqB,CAArB,oBACF,CAEA,0BACE,iDAAkD,CAClD,kDACF,CAEA,yBACE,eAAgB,CAEhB,oDAAqD,CADrD,qDAEF","file":"menu.css","sourcesContent":["/* menu */\n\n/* A menu on the side of a page, defaults to left side. e.g. github.com/about */\n\n.menu {\n margin-bottom: var(--stack-gap-normal);\n list-style: none;\n background-color: var(--bgColor-default);\n border: var(--borderWidth-thin) solid var(--borderColor-default);\n border-radius: var(--borderRadius-medium);\n}\n\n.menu-item {\n position: relative;\n display: block;\n padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);\n color: var(--fgColor-default);\n border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);\n\n &:first-child {\n border-top: 0;\n border-top-left-radius: var(--borderRadius-medium);\n border-top-right-radius: var(--borderRadius-medium);\n\n &::before {\n border-top-left-radius: var(--borderRadius-medium);\n }\n }\n\n &:last-child {\n border-bottom: 0;\n border-bottom-right-radius: var(--borderRadius-medium);\n border-bottom-left-radius: var(--borderRadius-medium);\n\n &::before {\n border-bottom-left-radius: var(--borderRadius-medium);\n }\n }\n\n &:hover {\n text-decoration: none;\n background-color: var(--bgColor-neutral-muted);\n }\n\n &:active {\n background-color: var(--bgColor-muted);\n }\n\n &.selected,\n &[aria-selected='true'],\n &[aria-current]:not([aria-current='false']) {\n cursor: default;\n background-color: var(--menu-bgColor-active);\n\n &::before {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 2px;\n content: '';\n background-color: var(--underlineNav-borderColor-active);\n }\n }\n\n & .octicon {\n width: 16px;\n margin-right: var(--control-medium-gap);\n color: var(--fgColor-muted);\n text-align: center;\n }\n\n & .Counter {\n float: right;\n margin-left: var(--control-small-gap);\n }\n\n & .menu-warning {\n float: right;\n color: var(--fgColor-attention);\n }\n\n & .avatar {\n float: left;\n margin-right: var(--control-small-gap);\n }\n\n &.alert {\n & .Counter {\n color: var(--fgColor-danger);\n }\n }\n}\n\n.menu-heading {\n display: block;\n padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);\n margin-top: 0;\n margin-bottom: 0;\n font-size: inherit;\n font-weight: var(--base-text-weight-semibold);\n color: var(--fgColor-default);\n border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);\n\n &:hover {\n text-decoration: none;\n }\n\n &:first-child {\n border-top-left-radius: var(--borderRadius-medium);\n border-top-right-radius: var(--borderRadius-medium);\n }\n\n &:last-child {\n border-bottom: 0;\n border-bottom-right-radius: var(--borderRadius-medium);\n border-bottom-left-radius: var(--borderRadius-medium);\n }\n}\n"]}
1
+ {"version":3,"sources":["menu.pcss"],"names":[],"mappings":"AAIA,MAIE,uCAAwC,CACxC,+DAAgE,CAChE,wCAAyC,CAHzC,eAAgB,CADhB,qCAKF,CAEA,WAME,sEAAuE,CADvE,4BAA6B,CAH7B,aAAc,CAEd,kGAAmG,CAHnG,iBAoFF,CA7EE,uBACE,YAAa,CAEb,kDAKF,CAHE,qDAHA,iDAKA,CAGF,sBACE,eAAgB,CAChB,qDAMF,CAHE,mDAFA,oDAIA,CAGF,iBAEE,6CAA8C,CAD9C,4BAAqB,CAArB,oBAEF,CAEA,kBACE,qCACF,CAEA,sGAIE,2CAA4C,CAD5C,cAaF,CAVE,kHAQE,uDAAwD,CALxD,QAAS,CAGT,UAAW,CAFX,MAAO,CAHP,iBAAkB,CAClB,KAAM,CAGN,SAIF,CAGF,oBAIE,0BAA2B,CAD3B,sCAAuC,CAEvC,iBAAkB,CAJlB,UAKF,CAEA,oBACE,WAAY,CAEZ,oCACF,CAEA,yBAEE,8BAA+B,CAD/B,WAEF,CAEA,mBACE,UAAW,CAEX,qCACF,CAGE,0BACE,2BACF,CAIJ,cASE,sEAAuE,CADvE,4BAA6B,CAP7B,aAAc,CAKd,iBAAkB,CAClB,4CAA6C,CAF7C,eAAgB,CADhB,YAAa,CADb,kGAsBF,CAdE,oBACE,4BAAqB,CAArB,oBACF,CAEA,0BACE,iDAAkD,CAClD,kDACF,CAEA,yBACE,eAAgB,CAEhB,oDAAqD,CADrD,qDAEF","file":"menu.css","sourcesContent":["/* menu */\n\n/* A menu on the side of a page, defaults to left side. e.g. github.com/about */\n\n.menu {\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: var(--stack-gap-normal);\n list-style: none;\n background-color: var(--bgColor-default);\n border: var(--borderWidth-thin) solid var(--borderColor-default);\n border-radius: var(--borderRadius-medium);\n}\n\n.menu-item {\n position: relative;\n display: block;\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);\n color: var(--fgColor-default);\n border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);\n\n &:first-child {\n border-top: 0;\n border-top-left-radius: var(--borderRadius-medium);\n border-top-right-radius: var(--borderRadius-medium);\n\n &::before {\n border-top-left-radius: var(--borderRadius-medium);\n }\n }\n\n &:last-child {\n border-bottom: 0;\n border-bottom-right-radius: var(--borderRadius-medium);\n border-bottom-left-radius: var(--borderRadius-medium);\n\n &::before {\n border-bottom-left-radius: var(--borderRadius-medium);\n }\n }\n\n &:hover {\n text-decoration: none;\n background-color: var(--bgColor-neutral-muted);\n }\n\n &:active {\n background-color: var(--bgColor-muted);\n }\n\n &.selected,\n &[aria-selected='true'],\n &[aria-current]:not([aria-current='false']) {\n cursor: default;\n background-color: var(--menu-bgColor-active);\n\n &::before {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 2px;\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--underlineNav-borderColor-active);\n }\n }\n\n & .octicon {\n width: 16px;\n /* stylelint-disable-next-line primer/spacing */\n margin-right: var(--control-medium-gap);\n color: var(--fgColor-muted);\n text-align: center;\n }\n\n & .Counter {\n float: right;\n /* stylelint-disable-next-line primer/spacing */\n margin-left: var(--control-small-gap);\n }\n\n & .menu-warning {\n float: right;\n color: var(--fgColor-attention);\n }\n\n & .avatar {\n float: left;\n /* stylelint-disable-next-line primer/spacing */\n margin-right: var(--control-small-gap);\n }\n\n &.alert {\n & .Counter {\n color: var(--fgColor-danger);\n }\n }\n}\n\n.menu-heading {\n display: block;\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);\n margin-top: 0;\n margin-bottom: 0;\n font-size: inherit;\n font-weight: var(--base-text-weight-semibold);\n color: var(--fgColor-default);\n border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);\n\n &:hover {\n text-decoration: none;\n }\n\n &:first-child {\n border-top-left-radius: var(--borderRadius-medium);\n border-top-right-radius: var(--borderRadius-medium);\n }\n\n &:last-child {\n border-bottom: 0;\n border-bottom-right-radius: var(--borderRadius-medium);\n border-bottom-left-radius: var(--borderRadius-medium);\n }\n}\n"]}
@@ -3,6 +3,7 @@
3
3
  /* A menu on the side of a page, defaults to left side. e.g. github.com/about */
4
4
 
5
5
  .menu {
6
+ /* stylelint-disable-next-line primer/spacing */
6
7
  margin-bottom: var(--stack-gap-normal);
7
8
  list-style: none;
8
9
  background-color: var(--bgColor-default);
@@ -13,6 +14,7 @@
13
14
  .menu-item {
14
15
  position: relative;
15
16
  display: block;
17
+ /* stylelint-disable-next-line primer/spacing */
16
18
  padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);
17
19
  color: var(--fgColor-default);
18
20
  border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);
@@ -59,12 +61,14 @@
59
61
  left: 0;
60
62
  width: 2px;
61
63
  content: '';
64
+ /* stylelint-disable-next-line primer/colors */
62
65
  background-color: var(--underlineNav-borderColor-active);
63
66
  }
64
67
  }
65
68
 
66
69
  & .octicon {
67
70
  width: 16px;
71
+ /* stylelint-disable-next-line primer/spacing */
68
72
  margin-right: var(--control-medium-gap);
69
73
  color: var(--fgColor-muted);
70
74
  text-align: center;
@@ -72,6 +76,7 @@
72
76
 
73
77
  & .Counter {
74
78
  float: right;
79
+ /* stylelint-disable-next-line primer/spacing */
75
80
  margin-left: var(--control-small-gap);
76
81
  }
77
82
 
@@ -82,6 +87,7 @@
82
87
 
83
88
  & .avatar {
84
89
  float: left;
90
+ /* stylelint-disable-next-line primer/spacing */
85
91
  margin-right: var(--control-small-gap);
86
92
  }
87
93
 
@@ -94,6 +100,7 @@
94
100
 
95
101
  .menu-heading {
96
102
  display: block;
103
+ /* stylelint-disable-next-line primer/spacing */
97
104
  padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);
98
105
  margin-top: 0;
99
106
  margin-bottom: 0;
@@ -1 +1 @@
1
- {"version":3,"sources":["overlay.pcss"],"names":[],"mappings":"AAAA,2BACE,cAAe,CAGf,eAAgB,CAChB,gBAAiB,CAHjB,SAAU,CACV,iBAGF,CAEA,gCACE,eACF,CAGA,qCACE,YACF,CAEA,0DACE,2EACF,CAEA,8BACE,eACF,CAEA,8BACE,SACE,uBACF,CACF","file":"overlay.css","sourcesContent":["anchored-position[popover] {\n border-width: 0;\n padding: 0;\n position: absolute;\n min-width: 192px;\n overflow: visible;\n}\n\nanchored-position:not(.Overlay) {\n background: none;\n}\n\n/* stylelint-disable-next-line selector-pseudo-class-no-unknown */\n.Overlay[popover]:not(:popover-open) {\n display: none\n}\n\nanchored-position.not-anchored::backdrop, dialog::backdrop {\n background-color: var(--overlay-backdrop-bgColor, var(--color-neutral-muted));\n}\n\nselect-panel dialog::backdrop {\n background: none;\n}\n\n@media (forced-colors: active) {\n .Overlay {\n outline: solid 1px transparent;\n }\n}\n"]}
1
+ {"version":3,"sources":["overlay.pcss"],"names":[],"mappings":"AACA,2BAKE,cAAe,CAHf,eAAgB,CAEhB,gBAAiB,CADjB,SAAU,CAFV,iBAKF,CAEA,gCACE,eACF,CAEA,qCACE,YACF,CAEA,0DACE,2EACF,CAEA,8BACE,eACF,CAEA,8BACE,SACE,uBACF,CACF","file":"overlay.css","sourcesContent":["/* stylelint-disable selector-max-type, selector-no-qualifying-type */\nanchored-position[popover] {\n position: absolute;\n min-width: 192px;\n padding: 0;\n overflow: visible;\n border-width: 0;\n}\n\nanchored-position:not(.Overlay) {\n background: none;\n}\n\n.Overlay[popover]:not(:popover-open) {\n display: none\n}\n\nanchored-position.not-anchored::backdrop, dialog::backdrop {\n background-color: var(--overlay-backdrop-bgColor, var(--color-neutral-muted));\n}\n\nselect-panel dialog::backdrop {\n background: none;\n}\n\n@media (forced-colors: active) {\n .Overlay {\n outline: solid 1px transparent;\n }\n}\n"]}
@@ -1,16 +1,16 @@
1
+ /* stylelint-disable selector-max-type, selector-no-qualifying-type */
1
2
  anchored-position[popover] {
2
- border-width: 0;
3
- padding: 0;
4
3
  position: absolute;
5
4
  min-width: 192px;
5
+ padding: 0;
6
6
  overflow: visible;
7
+ border-width: 0;
7
8
  }
8
9
 
9
10
  anchored-position:not(.Overlay) {
10
11
  background: none;
11
12
  }
12
13
 
13
- /* stylelint-disable-next-line selector-pseudo-class-no-unknown */
14
14
  .Overlay[popover]:not(:popover-open) {
15
15
  display: none
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["segmented_control.pcss"],"names":[],"mappings":"AAEA,kBACE,iEAAkE,CAClE,uBAAwB,CAIxB,mFAAqF,CACrF,uDAA+D,CAC/D,wCAAyC,CAJzC,mBAAoB,CACpB,eAIF,CAGE,yHAGE,0BAA4B,CAD5B,UAEF,CAKF,yBACE,kEAeF,CAbE,gDACE,gCAKF,CAHE,6DACE,sGACF,CAIA,2EACE,+BACF,CAKF,iDACE,iCACF,CAGE,4EACE,gCACF,CAMJ,uBAIE,0CAAiD,CACjD,wCAAyC,CAHzC,mBAAoB,CAIpB,iCAAkC,CAHlC,sBAAuB,CAIvB,4CAA6C,CAN7C,iBA6FF,CAnFI,oEACE,iGACF,CAEA,qEACE,mGACF,CAIF,uDACE,yFAA2F,CAC3F,sGAiBF,CAfE,+DACE,4CAKF,CAHE,0EACE,wBACF,CAGF,8DACE,4BACF,CAEA,qFACE,kBACF,CAIF,0DAKE,0BAA2B,CAJ3B,aAAc,CAEd,4CAA6C,CAD7C,QAAS,CAET,iBAEF,CAIE,gDAME,oEAAqE,CADrE,UAAW,CAHX,gBAAiB,CAEjB,gDAAiD,CADjD,6CAA8C,CAF9C,iBAMF,CAIF,+BAGE,QAAS,CAET,uFAA0F,CAD1F,0CAA2C,CAH3C,WAAY,CAMZ,0BAAsB,CAAtB,qBAAsB,CADtB,sGAAuG,CAJvG,UAWF,CAJE,kDAEE,uFAA0F,CAD1F,mFAEF,CAGF,oFACE,wCACF,CAEA,uCAEE,kBAAmB,CADnB,aAEF,CAGA,qCAEE,eAAgB,CAChB,sBAAuB,CAFvB,kBAGF,CAIF,6BACE,YAMF,CAJE,oDACE,MAAO,CACP,sBACF","file":"segmented_control.css","sourcesContent":["/* SegmentedControl */\n\n.SegmentedControl {\n --segmentedControl-item-padding: var(--control-small-paddingBlock);\n --overlay-offset: 0.5rem;\n\n display: inline-flex;\n list-style: none;\n background-color: var(--controlTrack-bgColor-rest, var(--color-segmented-control-bg));\n border-color: var(--controlTrack-borderColor-rest, transparent);\n border-radius: var(--borderRadius-medium);\n}\n\n.SegmentedControl--iconOnly {\n & .Button--iconOnly.Button--small,\n & .Button--iconOnly.Button--medium {\n width: 100%;\n padding-inline: 0 !important;\n }\n}\n\n/* sizes */\n\n.SegmentedControl--small {\n --segmentedControl-item-padding: var(--control-xsmall-paddingBlock);\n\n & .SegmentedControl-item {\n height: var(--control-small-size);\n\n & .Button {\n padding-inline: calc(var(--control-xsmall-paddingInline-normal) - var(--segmentedControl-item-padding));\n }\n }\n\n &.SegmentedControl--iconOnly {\n & .SegmentedControl-item {\n width: var(--control-small-size);\n }\n }\n}\n\n.SegmentedControl--medium {\n & .SegmentedControl-item {\n height: var(--control-medium-size);\n }\n\n &.SegmentedControl--iconOnly {\n & .SegmentedControl-item {\n width: var(--control-medium-size);\n }\n }\n}\n\n/* item */\n\n.SegmentedControl-item {\n position: relative;\n display: inline-flex;\n justify-content: center;\n border: var(--borderWidth-thin) solid transparent;\n border-radius: var(--borderRadius-medium);\n height: var(--control-medium-size);\n padding: var(--segmentedControl-item-padding);\n\n /* button color overrides */\n & .Button--invisible {\n &:hover:not(:disabled) {\n background-color: var(--controlTrack-bgColor-hover, var(--color-action-list-item-default-hover-bg));\n }\n\n &:active:not(:disabled) {\n background-color: var(--controlTrack-bgColor-active, var(--color-action-list-item-default-active-bg));\n }\n }\n\n /* Selected ---------------------------------------- */\n &.SegmentedControl-item--selected {\n background-color: var(--controlKnob-bgColor-rest, var(--color-segmented-control-button-bg));\n border-color: var(--controlKnob-borderColor-rest, var(--color-segmented-control-button-selected-border));\n\n & .Button {\n font-weight: var(--base-text-weight-semibold);\n\n &:hover {\n background-color: transparent;\n }\n }\n\n &::before {\n border-color: transparent !important;\n }\n\n & + .SegmentedControl-item::before {\n border-color: transparent;\n }\n }\n\n /* renders a visibly hidden \"copy\" of the text in bold, reserving box space for when text becomes bold on selected */\n & .Button-label[data-content]::before {\n display: block;\n height: 0;\n font-weight: var(--base-text-weight-semibold);\n visibility: hidden;\n content: attr(data-content);\n }\n\n /* Separator lines */\n &:not(:first-child) {\n &::before {\n position: absolute;\n inset: 0 0 0 -1px;\n margin-top: var(--control-medium-paddingBlock);\n margin-bottom: var(--control-medium-paddingBlock);\n content: '';\n border-left: var(--borderWidth-thin) solid var(--borderColor-default);\n }\n }\n\n /* Button ----------------------------------------- */\n & .Button {\n height: 100%;\n width: 100%;\n border: 0;\n font-weight: var(--base-text-weight-normal);\n border-radius: calc(var(--borderRadius-medium) - var(--segmentedControl-item-padding) / 2);\n padding-inline: calc(var(--control-medium-paddingInline-normal) - var(--segmentedControl-item-padding));\n min-width: fit-content;\n\n &:focus-visible {\n outline-offset: calc(var(--segmentedControl-item-padding) - var(--borderWidth-thin));\n border-radius: calc(var(--borderRadius-medium) - var(--segmentedControl-item-padding) / 1);\n }\n }\n\n & .Button--invisible.Button--invisible-noVisuals .Button-label {\n color: var(--button-default-fgColor-rest);\n }\n\n & .Button-content {\n flex: 1 1 auto;\n align-self: stretch;\n }\n\n /* use ellipsis with the assumption that icon only variant will be used when not enough space is available */\n & .Button-label {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n}\n\n/* fullWidth */\n.SegmentedControl--fullWidth {\n display: flex;\n\n & .SegmentedControl-item {\n flex: 1;\n justify-content: center;\n }\n}\n"]}
1
+ {"version":3,"sources":["segmented_control.pcss"],"names":[],"mappings":"AAEA,kBACE,iEAAkE,CAClE,uBAAwB,CAIxB,mFAAqF,CACrF,uDAA+D,CAC/D,wCAAyC,CAJzC,mBAAoB,CACpB,eAIF,CAGE,yHAGE,0BAA4B,CAD5B,UAEF,CAKF,yBACE,kEAgBF,CAdE,gDACE,gCAMF,CAJE,6DAEE,sGACF,CAIA,2EACE,+BACF,CAKF,iDACE,iCACF,CAGE,4EACE,gCACF,CAMJ,uBAME,0CAAiD,CACjD,wCAAyC,CALzC,mBAAoB,CACpB,iCAAkC,CAKlC,sBAAuB,CAHvB,4CAA6C,CAJ7C,iBAmGF,CAxFI,oEACE,iGACF,CAEA,qEACE,mGACF,CAIF,uDACE,yFAA2F,CAC3F,sGAiBF,CAfE,+DACE,4CAKF,CAHE,0EACE,wBACF,CAGF,8DACE,4BACF,CAEA,qFACE,kBACF,CAIF,0DAKE,0BAA2B,CAJ3B,aAAc,CAEd,4CAA6C,CAD7C,QAAS,CAET,iBAEF,CAIE,gDAQE,oEAAqE,CADrE,UAAW,CALX,gBAAiB,CAIjB,gDAAiD,CAFjD,6CAA8C,CAH9C,iBAQF,CAIF,+BAKE,QAAS,CAET,uFAA0F,CAH1F,0CAA2C,CAD3C,WAAY,CADZ,0BAAsB,CAAtB,qBAAsB,CAOtB,sGAAuG,CARvG,UAeF,CALE,kDAEE,uFAA0F,CAC1F,mFACF,CAGF,oFACE,wCACF,CAEA,uCAEE,kBAAmB,CADnB,aAEF,CAGA,qCACE,eAAgB,CAChB,sBAAuB,CACvB,kBACF,CAIF,6BACE,YAMF,CAJE,oDACE,MAAO,CACP,sBACF","file":"segmented_control.css","sourcesContent":["/* SegmentedControl */\n\n.SegmentedControl {\n --segmentedControl-item-padding: var(--control-small-paddingBlock);\n --overlay-offset: 0.5rem;\n\n display: inline-flex;\n list-style: none;\n background-color: var(--controlTrack-bgColor-rest, var(--color-segmented-control-bg));\n border-color: var(--controlTrack-borderColor-rest, transparent);\n border-radius: var(--borderRadius-medium);\n}\n\n.SegmentedControl--iconOnly {\n & .Button--iconOnly.Button--small,\n & .Button--iconOnly.Button--medium {\n width: 100%;\n padding-inline: 0 !important;\n }\n}\n\n/* sizes */\n\n.SegmentedControl--small {\n --segmentedControl-item-padding: var(--control-xsmall-paddingBlock);\n\n & .SegmentedControl-item {\n height: var(--control-small-size);\n\n & .Button {\n /* stylelint-disable-next-line primer/spacing */\n padding-inline: calc(var(--control-xsmall-paddingInline-normal) - var(--segmentedControl-item-padding));\n }\n }\n\n &.SegmentedControl--iconOnly {\n & .SegmentedControl-item {\n width: var(--control-small-size);\n }\n }\n}\n\n.SegmentedControl--medium {\n & .SegmentedControl-item {\n height: var(--control-medium-size);\n }\n\n &.SegmentedControl--iconOnly {\n & .SegmentedControl-item {\n width: var(--control-medium-size);\n }\n }\n}\n\n/* item */\n\n.SegmentedControl-item {\n position: relative;\n display: inline-flex;\n height: var(--control-medium-size);\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--segmentedControl-item-padding);\n border: var(--borderWidth-thin) solid transparent;\n border-radius: var(--borderRadius-medium);\n justify-content: center;\n\n /* button color overrides */\n & .Button--invisible {\n &:hover:not(:disabled) {\n background-color: var(--controlTrack-bgColor-hover, var(--color-action-list-item-default-hover-bg));\n }\n\n &:active:not(:disabled) {\n background-color: var(--controlTrack-bgColor-active, var(--color-action-list-item-default-active-bg));\n }\n }\n\n /* Selected ---------------------------------------- */\n &.SegmentedControl-item--selected {\n background-color: var(--controlKnob-bgColor-rest, var(--color-segmented-control-button-bg));\n border-color: var(--controlKnob-borderColor-rest, var(--color-segmented-control-button-selected-border));\n\n & .Button {\n font-weight: var(--base-text-weight-semibold);\n\n &:hover {\n background-color: transparent;\n }\n }\n\n &::before {\n border-color: transparent !important;\n }\n\n & + .SegmentedControl-item::before {\n border-color: transparent;\n }\n }\n\n /* renders a visibly hidden \"copy\" of the text in bold, reserving box space for when text becomes bold on selected */\n & .Button-label[data-content]::before {\n display: block;\n height: 0;\n font-weight: var(--base-text-weight-semibold);\n visibility: hidden;\n content: attr(data-content);\n }\n\n /* Separator lines */\n &:not(:first-child) {\n &::before {\n position: absolute;\n inset: 0 0 0 -1px;\n /* stylelint-disable-next-line primer/spacing */\n margin-top: var(--control-medium-paddingBlock);\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: var(--control-medium-paddingBlock);\n content: '';\n border-left: var(--borderWidth-thin) solid var(--borderColor-default);\n }\n }\n\n /* Button ----------------------------------------- */\n & .Button {\n width: 100%;\n min-width: fit-content;\n height: 100%;\n font-weight: var(--base-text-weight-normal);\n border: 0;\n /* stylelint-disable-next-line primer/borders */\n border-radius: calc(var(--borderRadius-medium) - var(--segmentedControl-item-padding) / 2);\n /* stylelint-disable-next-line primer/spacing */\n padding-inline: calc(var(--control-medium-paddingInline-normal) - var(--segmentedControl-item-padding));\n\n &:focus-visible {\n /* stylelint-disable-next-line primer/borders */\n border-radius: calc(var(--borderRadius-medium) - var(--segmentedControl-item-padding) / 1);\n outline-offset: calc(var(--segmentedControl-item-padding) - var(--borderWidth-thin));\n }\n }\n\n & .Button--invisible.Button--invisible-noVisuals .Button-label {\n color: var(--button-default-fgColor-rest);\n }\n\n & .Button-content {\n flex: 1 1 auto;\n align-self: stretch;\n }\n\n /* use ellipsis with the assumption that icon only variant will be used when not enough space is available */\n & .Button-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n}\n\n/* fullWidth */\n.SegmentedControl--fullWidth {\n display: flex;\n\n & .SegmentedControl-item {\n flex: 1;\n justify-content: center;\n }\n}\n"]}
@@ -28,6 +28,7 @@
28
28
  height: var(--control-small-size);
29
29
 
30
30
  & .Button {
31
+ /* stylelint-disable-next-line primer/spacing */
31
32
  padding-inline: calc(var(--control-xsmall-paddingInline-normal) - var(--segmentedControl-item-padding));
32
33
  }
33
34
  }
@@ -56,11 +57,12 @@
56
57
  .SegmentedControl-item {
57
58
  position: relative;
58
59
  display: inline-flex;
59
- justify-content: center;
60
- border: var(--borderWidth-thin) solid transparent;
61
- border-radius: var(--borderRadius-medium);
62
60
  height: var(--control-medium-size);
61
+ /* stylelint-disable-next-line primer/spacing */
63
62
  padding: var(--segmentedControl-item-padding);
63
+ border: var(--borderWidth-thin) solid transparent;
64
+ border-radius: var(--borderRadius-medium);
65
+ justify-content: center;
64
66
 
65
67
  /* button color overrides */
66
68
  & .Button--invisible {
@@ -109,7 +111,9 @@
109
111
  &::before {
110
112
  position: absolute;
111
113
  inset: 0 0 0 -1px;
114
+ /* stylelint-disable-next-line primer/spacing */
112
115
  margin-top: var(--control-medium-paddingBlock);
116
+ /* stylelint-disable-next-line primer/spacing */
113
117
  margin-bottom: var(--control-medium-paddingBlock);
114
118
  content: '';
115
119
  border-left: var(--borderWidth-thin) solid var(--borderColor-default);
@@ -118,17 +122,20 @@
118
122
 
119
123
  /* Button ----------------------------------------- */
120
124
  & .Button {
121
- height: 100%;
122
125
  width: 100%;
123
- border: 0;
126
+ min-width: fit-content;
127
+ height: 100%;
124
128
  font-weight: var(--base-text-weight-normal);
129
+ border: 0;
130
+ /* stylelint-disable-next-line primer/borders */
125
131
  border-radius: calc(var(--borderRadius-medium) - var(--segmentedControl-item-padding) / 2);
132
+ /* stylelint-disable-next-line primer/spacing */
126
133
  padding-inline: calc(var(--control-medium-paddingInline-normal) - var(--segmentedControl-item-padding));
127
- min-width: fit-content;
128
134
 
129
135
  &:focus-visible {
130
- outline-offset: calc(var(--segmentedControl-item-padding) - var(--borderWidth-thin));
136
+ /* stylelint-disable-next-line primer/borders */
131
137
  border-radius: calc(var(--borderRadius-medium) - var(--segmentedControl-item-padding) / 1);
138
+ outline-offset: calc(var(--segmentedControl-item-padding) - var(--borderWidth-thin));
132
139
  }
133
140
  }
134
141
 
@@ -143,9 +150,9 @@
143
150
 
144
151
  /* use ellipsis with the assumption that icon only variant will be used when not enough space is available */
145
152
  & .Button-label {
146
- white-space: nowrap;
147
153
  overflow: hidden;
148
154
  text-overflow: ellipsis;
155
+ white-space: nowrap;
149
156
  }
150
157
  }
151
158
 
@@ -11,7 +11,7 @@
11
11
  <% if show_filter? %>
12
12
  <% header.with_filter do %>
13
13
  <div data-target="select-panel.bannerErrorElement" hidden>
14
- <%= render Primer::Alpha::Banner.new(scheme: :danger, mb: 2) do %>
14
+ <%= render Primer::Alpha::Banner.new(scheme: @banner_scheme, mb: 2) do %>
15
15
  <% if error_content? %>
16
16
  <%= error_content %>
17
17
  <% else %>
@@ -65,13 +65,16 @@
65
65
  mb: 2,
66
66
  aria: { disabled: true, busy: true },
67
67
  display: :flex,
68
- align_items: :center,
68
+ align_items: :flex_start,
69
69
  justify_content: :center,
70
70
  text_align: :center,
71
71
  classes: "SelectPanel-loadingPanel"
72
72
  )) do %>
73
- <div data-hide-on-error>
74
- <%= render Primer::Beta::Spinner.new(aria: { label: "Loading content..." }, data: { target: "select-panel.bodySpinner" }) %>
73
+ <div data-hide-on-error class="pt-2">
74
+ <%= render Primer::Beta::Spinner.new(aria: { label: @loading_label, describedby: @loading_description_id }, data: { target: "select-panel.bodySpinner" }) %>
75
+ <% if @loading_description.present? %>
76
+ <div id="<%= @loading_description_id %>" aria-hidden="true"><%= @loading_description %></div>
77
+ <% end %>
75
78
  </div>
76
79
  <div data-show-on-error hidden data-target="select-panel.fragmentErrorElement">
77
80
  <% if preload_error_content? %>
@@ -89,7 +92,7 @@
89
92
  <%= render(@list) %>
90
93
  <% end %>
91
94
  </div>
92
- <div data-target="select-panel.noResults" class="color-border-muted text-center d-flex flex-items-center flex-justify-center SelectPanel-emptyPanel" hidden>
95
+ <div data-target="select-panel.noResults" class="pt-2 color-border-muted text-center d-flex flex-items-start flex-justify-center SelectPanel-emptyPanel" hidden>
93
96
  <h2 class="v-align-middle m-3 f5"><%= @no_results_label %></h2>
94
97
  </div>
95
98
  <% end %>
@@ -272,12 +272,13 @@ module Primer
272
272
  # @param system_arguments [Hash] The arguments accepted by <%= link_to_component(Primer::Alpha::ActionList) %>.
273
273
  def initialize(**system_arguments)
274
274
  raise_if_role_given!(**system_arguments)
275
- select_variant = system_arguments[:select_variant] || Primer::Alpha::ActionList::DEFAULT_SELECT_VARIANT
275
+ select_variant = system_arguments.delete(:select_variant) || Primer::Alpha::ActionList::DEFAULT_SELECT_VARIANT
276
276
 
277
277
  super(
278
278
  p: 2,
279
279
  role: "listbox",
280
280
  aria_selection_variant: select_variant == :single ? :selected : :checked,
281
+ select_variant: select_variant == :multiple ? :multiple_checkbox : :single,
281
282
  **system_arguments
282
283
  )
283
284
  end
@@ -311,6 +312,12 @@ module Primer
311
312
  :none,
312
313
  ].freeze
313
314
 
315
+ DEFAULT_BANNER_SCHEME = :danger
316
+ BANNER_SCHEME_OPTIONS = [
317
+ DEFAULT_BANNER_SCHEME,
318
+ :warning
319
+ ].freeze
320
+
314
321
  # The URL to fetch search results from.
315
322
  #
316
323
  # @return [String]
@@ -331,6 +338,11 @@ module Primer
331
338
  # @return [Symbol]
332
339
  attr_reader :select_variant
333
340
 
341
+ # <%= one_of(Primer::Alpha::SelectPanel::BANNER_SCHEME_OPTIONS) %>
342
+ #
343
+ # @return [Symbol]
344
+ attr_reader :banner_scheme
345
+
334
346
  # <%= one_of(Primer::Alpha::SelectPanel::FETCH_STRATEGIES) %>
335
347
  #
336
348
  # @return [Symbol]
@@ -368,6 +380,9 @@ module Primer
368
380
  # @param open_on_load [Boolean] Open the panel when the page loads.
369
381
  # @param anchor_align [Symbol] The anchor alignment of the Overlay. <%= one_of(Primer::Alpha::Overlay::ANCHOR_ALIGN_OPTIONS) %>
370
382
  # @param anchor_side [Symbol] The side to anchor the Overlay to. <%= one_of(Primer::Alpha::Overlay::ANCHOR_SIDE_OPTIONS) %>
383
+ # @param loading_label [String] The aria-label to use when the panel is loading, defaults to 'Loading content...'.
384
+ # @param loading_description [String] The description to use when the panel is loading. If not provided, no description will be used.
385
+ # @param banner_scheme [Symbol] The scheme for the error banner <%= one_of(Primer::Alpha::SelectPanel::BANNER_SCHEME_OPTIONS) %>
371
386
  # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
372
387
  def initialize(
373
388
  src: nil,
@@ -388,6 +403,9 @@ module Primer
388
403
  open_on_load: false,
389
404
  anchor_align: Primer::Alpha::Overlay::DEFAULT_ANCHOR_ALIGN,
390
405
  anchor_side: Primer::Alpha::Overlay::DEFAULT_ANCHOR_SIDE,
406
+ loading_label: "Loading content...",
407
+ loading_description: nil,
408
+ banner_scheme: DEFAULT_BANNER_SCHEME,
391
409
  **system_arguments
392
410
  )
393
411
  raise_if_role_given!(**system_arguments)
@@ -409,6 +427,13 @@ module Primer
409
427
  @dynamic_label = dynamic_label
410
428
  @dynamic_label_prefix = dynamic_label_prefix
411
429
  @dynamic_aria_label_prefix = dynamic_aria_label_prefix
430
+ @loading_label = loading_label
431
+ @loading_description_id = nil
432
+ if loading_description.present?
433
+ @loading_description_id = "#{@panel_id}-loading-description"
434
+ end
435
+ @loading_description = loading_description
436
+ @banner_scheme = fetch_or_fallback(BANNER_SCHEME_OPTIONS, banner_scheme, DEFAULT_BANNER_SCHEME)
412
437
 
413
438
  @system_arguments = deny_tag_argument(**system_arguments)
414
439
  @system_arguments[:id] = @panel_id
@@ -145,7 +145,7 @@ let SelectPanelElement = class SelectPanelElement extends HTMLElement {
145
145
  updateAnchorPosition() {
146
146
  // If the selectPanel is removed from the screen on resize close the dialog
147
147
  if (this && this.offsetParent === null) {
148
- this.dialog.close();
148
+ this.hide();
149
149
  }
150
150
  if (this.invokerElement) {
151
151
  const { top, left } = getAnchoredPosition(this.dialog, this.invokerElement, {
@@ -254,6 +254,12 @@ let SelectPanelElement = class SelectPanelElement extends HTMLElement {
254
254
  // Remove data-ready so it can be set the next time the panel is opened
255
255
  this.dialog.removeAttribute('data-ready');
256
256
  this.invokerElement?.setAttribute('aria-expanded', 'false');
257
+ // When we close the dialog, clear the filter input
258
+ const fireSearchEvent = this.filterInputTextField.value.length > 0;
259
+ this.filterInputTextField.value = '';
260
+ if (fireSearchEvent) {
261
+ this.filterInputTextField.dispatchEvent(new Event('input'));
262
+ }
257
263
  this.dispatchEvent(new CustomEvent('panelClosed', {
258
264
  detail: { panel: this },
259
265
  bubbles: true,
@@ -719,8 +725,8 @@ _SelectPanelElement_inErrorState = function _SelectPanelElement_inErrorState() {
719
725
  };
720
726
  _SelectPanelElement_setErrorState = function _SelectPanelElement_setErrorState(type) {
721
727
  let errorElement = this.fragmentErrorElement;
722
- if (type === ErrorStateType.BODY) {
723
- this.fragmentErrorElement?.removeAttribute('hidden');
728
+ if (type === ErrorStateType.BODY && this.fragmentErrorElement) {
729
+ this.fragmentErrorElement.removeAttribute('hidden');
724
730
  this.bannerErrorElement.setAttribute('hidden', '');
725
731
  }
726
732
  else {
@@ -2,7 +2,7 @@ import {getAnchoredPosition} from '@primer/behaviors'
2
2
  import {controller, target} from '@github/catalyst'
3
3
  import {announceFromElement, announce} from '../aria_live'
4
4
  import {IncludeFragmentElement} from '@github/include-fragment-element'
5
- import type {PrimerTextFieldElement} from 'lib/primer/forms/primer_text_field'
5
+ import type {PrimerTextFieldElement} from 'app/lib/primer/forms/primer_text_field'
6
6
  import type {AnchorAlignment, AnchorSide} from '@primer/behaviors'
7
7
  import '@oddbird/popover-polyfill'
8
8
 
@@ -165,7 +165,7 @@ export class SelectPanelElement extends HTMLElement {
165
165
  updateAnchorPosition() {
166
166
  // If the selectPanel is removed from the screen on resize close the dialog
167
167
  if (this && this.offsetParent === null) {
168
- this.dialog.close()
168
+ this.hide()
169
169
  }
170
170
 
171
171
  if (this.invokerElement) {
@@ -464,6 +464,12 @@ export class SelectPanelElement extends HTMLElement {
464
464
  // Remove data-ready so it can be set the next time the panel is opened
465
465
  this.dialog.removeAttribute('data-ready')
466
466
  this.invokerElement?.setAttribute('aria-expanded', 'false')
467
+ // When we close the dialog, clear the filter input
468
+ const fireSearchEvent = this.filterInputTextField.value.length > 0
469
+ this.filterInputTextField.value = ''
470
+ if (fireSearchEvent) {
471
+ this.filterInputTextField.dispatchEvent(new Event('input'))
472
+ }
467
473
 
468
474
  this.dispatchEvent(
469
475
  new CustomEvent('panelClosed', {
@@ -746,8 +752,8 @@ export class SelectPanelElement extends HTMLElement {
746
752
  #setErrorState(type: ErrorStateType) {
747
753
  let errorElement = this.fragmentErrorElement
748
754
 
749
- if (type === ErrorStateType.BODY) {
750
- this.fragmentErrorElement?.removeAttribute('hidden')
755
+ if (type === ErrorStateType.BODY && this.fragmentErrorElement) {
756
+ this.fragmentErrorElement.removeAttribute('hidden')
751
757
  this.bannerErrorElement.setAttribute('hidden', '')
752
758
  } else {
753
759
  errorElement = this.bannerErrorElement
@@ -0,0 +1 @@
1
+ .Stack{align-content:flex-start;align-items:stretch;display:flex;flex-flow:column;gap:var(--stack-gap,var(--stack-gap-normal,1rem))}.Stack[data-padding-narrow=none],.Stack[data-padding=none]{padding:0}.Stack[data-padding-narrow=condensed],.Stack[data-padding=condensed]{padding:var(--stack-padding-condensed,8px)}.Stack[data-padding-narrow=normal],.Stack[data-padding=normal]{padding:var(--stack-padding-normal,16px)}.Stack[data-padding-narrow=spacious],.Stack[data-padding=spacious]{padding:var(--stack-padding-spacious,24px)}.Stack[data-direction-narrow=horizontal],.Stack[data-direction=horizontal]{flex-flow:row}.Stack[data-direction-narrow=vertical],.Stack[data-direction=vertical]{flex-flow:column}.Stack[data-gap-narrow=none],.Stack[data-gap=none]{--stack-gap:var(--stack-gap-none,0)}.Stack[data-gap-narrow=condensed],.Stack[data-gap=condensed]{--stack-gap:var(--stack-gap-condensed,0.5rem)}.Stack[data-gap-narrow=normal],.Stack[data-gap=normal]{--stack-gap:var(--stack-gap-normal,1rem)}.Stack[data-gap-narrow=spacious],.Stack[data-gap=spacious]{--stack-gap:var(--stack-gap-spacious,1.5rem)}.Stack[data-align-narrow=start],.Stack[data-align=start]{align-items:flex-start}.Stack[data-align-narrow=center],.Stack[data-align=center]{align-items:center}.Stack[data-align-narrow=end],.Stack[data-align=end]{align-items:flex-end}.Stack[data-align-narrow=baseline],.Stack[data-align=baseline]{align-items:baseline}.Stack[data-justify-narrow=start],.Stack[data-justify=start]{justify-content:flex-start}.Stack[data-justify-narrow=center],.Stack[data-justify=center]{justify-content:center}.Stack[data-justify-narrow=end],.Stack[data-justify=end]{justify-content:flex-end}.Stack[data-justify-narrow=space-between],.Stack[data-justify=space-between]{justify-content:space-between}.Stack[data-justify-narrow=space-evenly],.Stack[data-justify=space-evenly]{justify-content:space-evenly}.Stack[data-wrap-narrow=wrap],.Stack[data-wrap=wrap]{flex-wrap:wrap}.Stack[data-wrap-narrow=nowrap],.Stack[data-wrap=nowrap]{flex-wrap:nowrap}@media (min-width:48rem){.Stack[data-padding-regular=none]{padding:0}.Stack[data-padding-regular=condensed]{padding:var(--stack-padding-condensed,8px)}.Stack[data-padding-regular=normal]{padding:var(--stack-padding-normal,16px)}.Stack[data-padding-regular=spacious]{padding:var(--stack-padding-spacious,24px)}.Stack[data-direction-regular=horizontal]{flex-flow:row}.Stack[data-direction-regular=vertical]{flex-flow:column}.Stack[data-gap-regular=none]{--stack-gap:var(--stack-gap-none,0)}.Stack[data-gap-regular=condensed]{--stack-gap:var(--stack-gap-condensed,0.5rem)}.Stack[data-gap-regular=normal]{--stack-gap:var(--stack-gap-normal,1rem)}.Stack[data-gap-regular=spacious]{--stack-gap:var(--stack-gap-spacious,1.5rem)}.Stack[data-align-regular=start]{align-items:flex-start}.Stack[data-align-regular=center]{align-items:center}.Stack[data-align-regular=end]{align-items:flex-end}.Stack[data-align-regular=baseline]{align-items:baseline}.Stack[data-justify-regular=start]{justify-content:flex-start}.Stack[data-justify-regular=center]{justify-content:center}.Stack[data-justify-regular=end]{justify-content:flex-end}.Stack[data-justify-regular=space-between]{justify-content:space-between}.Stack[data-justify-regular=space-evenly]{justify-content:space-evenly}.Stack[data-wrap-regular=wrap]{flex-wrap:wrap}.Stack[data-wrap-regular=nowrap]{flex-wrap:nowrap}}@media (min-width:87.5rem){.Stack[data-padding-wide=none]{padding:0}.Stack[data-padding-wide=condensed]{padding:var(--stack-padding-condensed,8px)}.Stack[data-padding-wide=normal]{padding:var(--stack-padding-normal,16px)}.Stack[data-padding-wide=spacious]{padding:var(--stack-padding-spacious,24px)}.Stack[data-direction-wide=horizontal]{flex-flow:row}.Stack[data-direction-wide=vertical]{flex-flow:column}.Stack[data-gap-wide=none]{--stack-gap:var(--stack-gap-none,0)}.Stack[data-gap-wide=condensed]{--stack-gap:var(--stack-gap-condensed,0.5rem)}.Stack[data-gap-wide=normal]{--stack-gap:var(--stack-gap-normal,1rem)}.Stack[data-gap-wide=spacious]{--stack-gap:var(--stack-gap-spacious,1.5rem)}.Stack[data-align-wide=start]{align-items:flex-start}.Stack[data-align-wide=center]{align-items:center}.Stack[data-align-wide=end]{align-items:flex-end}.Stack[data-align-wide=baseline]{align-items:baseline}.Stack[data-justify-wide=start]{justify-content:flex-start}.Stack[data-justify-wide=center]{justify-content:center}.Stack[data-justify-wide=end]{justify-content:flex-end}.Stack[data-justify-wide=space-between]{justify-content:space-between}.Stack[data-justify-wide=space-evenly]{justify-content:space-evenly}.Stack[data-wrap-wide=wrap]{flex-wrap:wrap}.Stack[data-wrap-wide=nowrap]{flex-wrap:nowrap}}
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "alpha/stack",
3
+ "selectors": [
4
+ ".Stack",
5
+ ".Stack[data-padding-narrow=none]",
6
+ ".Stack[data-padding=none]",
7
+ ".Stack[data-padding-narrow=condensed]",
8
+ ".Stack[data-padding=condensed]",
9
+ ".Stack[data-padding-narrow=normal]",
10
+ ".Stack[data-padding=normal]",
11
+ ".Stack[data-padding-narrow=spacious]",
12
+ ".Stack[data-padding=spacious]",
13
+ ".Stack[data-direction-narrow=horizontal]",
14
+ ".Stack[data-direction=horizontal]",
15
+ ".Stack[data-direction-narrow=vertical]",
16
+ ".Stack[data-direction=vertical]",
17
+ ".Stack[data-gap-narrow=none]",
18
+ ".Stack[data-gap=none]",
19
+ ".Stack[data-gap-narrow=condensed]",
20
+ ".Stack[data-gap=condensed]",
21
+ ".Stack[data-gap-narrow=normal]",
22
+ ".Stack[data-gap=normal]",
23
+ ".Stack[data-gap-narrow=spacious]",
24
+ ".Stack[data-gap=spacious]",
25
+ ".Stack[data-align-narrow=start]",
26
+ ".Stack[data-align=start]",
27
+ ".Stack[data-align-narrow=center]",
28
+ ".Stack[data-align=center]",
29
+ ".Stack[data-align-narrow=end]",
30
+ ".Stack[data-align=end]",
31
+ ".Stack[data-align-narrow=baseline]",
32
+ ".Stack[data-align=baseline]",
33
+ ".Stack[data-justify-narrow=start]",
34
+ ".Stack[data-justify=start]",
35
+ ".Stack[data-justify-narrow=center]",
36
+ ".Stack[data-justify=center]",
37
+ ".Stack[data-justify-narrow=end]",
38
+ ".Stack[data-justify=end]",
39
+ ".Stack[data-justify-narrow=space-between]",
40
+ ".Stack[data-justify=space-between]",
41
+ ".Stack[data-justify-narrow=space-evenly]",
42
+ ".Stack[data-justify=space-evenly]",
43
+ ".Stack[data-wrap-narrow=wrap]",
44
+ ".Stack[data-wrap=wrap]",
45
+ ".Stack[data-wrap-narrow=nowrap]",
46
+ ".Stack[data-wrap=nowrap]",
47
+ ".Stack[data-padding-regular=none]",
48
+ ".Stack[data-padding-regular=condensed]",
49
+ ".Stack[data-padding-regular=normal]",
50
+ ".Stack[data-padding-regular=spacious]",
51
+ ".Stack[data-direction-regular=horizontal]",
52
+ ".Stack[data-direction-regular=vertical]",
53
+ ".Stack[data-gap-regular=none]",
54
+ ".Stack[data-gap-regular=condensed]",
55
+ ".Stack[data-gap-regular=normal]",
56
+ ".Stack[data-gap-regular=spacious]",
57
+ ".Stack[data-align-regular=start]",
58
+ ".Stack[data-align-regular=center]",
59
+ ".Stack[data-align-regular=end]",
60
+ ".Stack[data-align-regular=baseline]",
61
+ ".Stack[data-justify-regular=start]",
62
+ ".Stack[data-justify-regular=center]",
63
+ ".Stack[data-justify-regular=end]",
64
+ ".Stack[data-justify-regular=space-between]",
65
+ ".Stack[data-justify-regular=space-evenly]",
66
+ ".Stack[data-wrap-regular=wrap]",
67
+ ".Stack[data-wrap-regular=nowrap]",
68
+ ".Stack[data-padding-wide=none]",
69
+ ".Stack[data-padding-wide=condensed]",
70
+ ".Stack[data-padding-wide=normal]",
71
+ ".Stack[data-padding-wide=spacious]",
72
+ ".Stack[data-direction-wide=horizontal]",
73
+ ".Stack[data-direction-wide=vertical]",
74
+ ".Stack[data-gap-wide=none]",
75
+ ".Stack[data-gap-wide=condensed]",
76
+ ".Stack[data-gap-wide=normal]",
77
+ ".Stack[data-gap-wide=spacious]",
78
+ ".Stack[data-align-wide=start]",
79
+ ".Stack[data-align-wide=center]",
80
+ ".Stack[data-align-wide=end]",
81
+ ".Stack[data-align-wide=baseline]",
82
+ ".Stack[data-justify-wide=start]",
83
+ ".Stack[data-justify-wide=center]",
84
+ ".Stack[data-justify-wide=end]",
85
+ ".Stack[data-justify-wide=space-between]",
86
+ ".Stack[data-justify-wide=space-evenly]",
87
+ ".Stack[data-wrap-wide=wrap]",
88
+ ".Stack[data-wrap-wide=nowrap]"
89
+ ]
90
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["stack.pcss"],"names":[],"mappings":"AAAA,OAIE,wBAAyB,CADzB,mBAAoB,CAFpB,YAAa,CACb,gBAAiB,CAGjB,iDAmSF,CA/RE,2DAEE,SACF,CAEA,qEAGE,0CACF,CAEA,+DAGE,wCACF,CAEA,mEAGE,0CACF,CAEA,2EAEE,aACF,CAEA,uEAEE,gBACF,CAEA,mDAEE,mCACF,CAEA,6DAEE,6CACF,CAEA,uDAEE,wCACF,CAEA,2DAEE,4CACF,CAEA,yDAEE,sBACF,CAEA,2DAEE,kBACF,CAEA,qDAEE,oBACF,CAEA,+DAEE,oBACF,CAEA,6DAEE,0BACF,CAEA,+DAEE,sBACF,CAEA,yDAEE,wBACF,CAEA,6EAEE,6BACF,CAEA,2EAEE,4BACF,CAEA,qDAEE,cACF,CAEA,yDAEE,gBACF,CAGA,yBACE,kCACE,SACF,CAEA,uCAEE,0CACF,CAEA,oCAEE,wCACF,CAEA,sCAEE,0CACF,CAEA,0CACE,aACF,CAEA,wCACE,gBACF,CAEA,8BACE,mCACF,CAEA,mCACE,6CACF,CAEA,gCACE,wCACF,CAEA,kCACE,4CACF,CAEA,iCACE,sBACF,CAEA,kCACE,kBACF,CAEA,+BACE,oBACF,CAEA,oCACE,oBACF,CAEA,mCACE,0BACF,CAEA,oCACE,sBACF,CAEA,iCACE,wBACF,CAEA,2CACE,6BACF,CAEA,0CACE,4BACF,CAEA,+BACE,cACF,CAEA,iCACE,gBACF,CACF,CAGA,2BACE,+BACE,SACF,CAEA,oCAEE,0CACF,CAEA,iCAEE,wCACF,CAEA,mCAEE,0CACF,CAEA,uCACE,aACF,CAEA,qCACE,gBACF,CAEA,2BACE,mCACF,CAEA,gCACE,6CACF,CAEA,6BACE,wCACF,CAEA,+BACE,4CACF,CAEA,8BACE,sBACF,CAEA,+BACE,kBACF,CAEA,4BACE,oBACF,CAEA,iCACE,oBACF,CAEA,gCACE,0BACF,CAEA,iCACE,sBACF,CAEA,8BACE,wBACF,CAEA,wCACE,6BACF,CAEA,uCACE,4BACF,CAEA,4BACE,cACF,CAEA,8BACE,gBACF,CACF","file":"stack.css","sourcesContent":[".Stack {\n display: flex;\n flex-flow: column;\n align-items: stretch;\n align-content: flex-start;\n gap: var(--stack-gap, var(--stack-gap-normal, 1rem));\n\n /* non-responsive values */\n\n &[data-padding='none'],\n &[data-padding-narrow='none'] {\n padding: 0;\n }\n\n &[data-padding='condensed'],\n &[data-padding-narrow='condensed'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-condensed, 8px);\n }\n\n &[data-padding='normal'],\n &[data-padding-narrow='normal'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-normal, 16px);\n }\n\n &[data-padding='spacious'],\n &[data-padding-narrow='spacious'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-spacious, 24px);\n }\n\n &[data-direction='horizontal'],\n &[data-direction-narrow='horizontal'] {\n flex-flow: row;\n }\n\n &[data-direction='vertical'],\n &[data-direction-narrow='vertical'] {\n flex-flow: column;\n }\n\n &[data-gap='none'],\n &[data-gap-narrow='none'] {\n --stack-gap: var(--stack-gap-none, 0);\n }\n\n &[data-gap='condensed'],\n &[data-gap-narrow='condensed'] {\n --stack-gap: var(--stack-gap-condensed, 0.5rem);\n }\n\n &[data-gap='normal'],\n &[data-gap-narrow='normal'] {\n --stack-gap: var(--stack-gap-normal, 1rem);\n }\n\n &[data-gap='spacious'],\n &[data-gap-narrow='spacious'] {\n --stack-gap: var(--stack-gap-spacious, 1.5rem);\n }\n\n &[data-align='start'],\n &[data-align-narrow='start'] {\n align-items: flex-start;\n }\n\n &[data-align='center'],\n &[data-align-narrow='center'] {\n align-items: center;\n }\n\n &[data-align='end'],\n &[data-align-narrow='end'] {\n align-items: flex-end;\n }\n\n &[data-align='baseline'],\n &[data-align-narrow='baseline'] {\n align-items: baseline;\n }\n\n &[data-justify='start'],\n &[data-justify-narrow='start'] {\n justify-content: flex-start;\n }\n\n &[data-justify='center'],\n &[data-justify-narrow='center'] {\n justify-content: center;\n }\n\n &[data-justify='end'],\n &[data-justify-narrow='end'] {\n justify-content: flex-end;\n }\n\n &[data-justify='space-between'],\n &[data-justify-narrow='space-between'] {\n justify-content: space-between;\n }\n\n &[data-justify='space-evenly'],\n &[data-justify-narrow='space-evenly'] {\n justify-content: space-evenly;\n }\n\n &[data-wrap='wrap'],\n &[data-wrap-narrow='wrap'] {\n flex-wrap: wrap;\n }\n\n &[data-wrap='nowrap'],\n &[data-wrap-narrow='nowrap'] {\n flex-wrap: nowrap;\n }\n\n /* @custom-media --veiwportRange-regular */\n @media (min-width: 48rem) {\n &[data-padding-regular='none'] {\n padding: 0;\n }\n\n &[data-padding-regular='condensed'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-condensed, 8px);\n }\n\n &[data-padding-regular='normal'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-normal, 16px);\n }\n\n &[data-padding-regular='spacious'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-spacious, 24px);\n }\n\n &[data-direction-regular='horizontal'] {\n flex-flow: row;\n }\n\n &[data-direction-regular='vertical'] {\n flex-flow: column;\n }\n\n &[data-gap-regular='none'] {\n --stack-gap: var(--stack-gap-none, 0);\n }\n\n &[data-gap-regular='condensed'] {\n --stack-gap: var(--stack-gap-condensed, 0.5rem);\n }\n\n &[data-gap-regular='normal'] {\n --stack-gap: var(--stack-gap-normal, 1rem);\n }\n\n &[data-gap-regular='spacious'] {\n --stack-gap: var(--stack-gap-spacious, 1.5rem);\n }\n\n &[data-align-regular='start'] {\n align-items: flex-start;\n }\n\n &[data-align-regular='center'] {\n align-items: center;\n }\n\n &[data-align-regular='end'] {\n align-items: flex-end;\n }\n\n &[data-align-regular='baseline'] {\n align-items: baseline;\n }\n\n &[data-justify-regular='start'] {\n justify-content: flex-start;\n }\n\n &[data-justify-regular='center'] {\n justify-content: center;\n }\n\n &[data-justify-regular='end'] {\n justify-content: flex-end;\n }\n\n &[data-justify-regular='space-between'] {\n justify-content: space-between;\n }\n\n &[data-justify-regular='space-evenly'] {\n justify-content: space-evenly;\n }\n\n &[data-wrap-regular='wrap'] {\n flex-wrap: wrap;\n }\n\n &[data-wrap-regular='nowrap'] {\n flex-wrap: nowrap;\n }\n }\n\n /* @custom-media --viewportRange-wide */\n @media (min-width: 87.5rem) {\n &[data-padding-wide='none'] {\n padding: 0;\n }\n\n &[data-padding-wide='condensed'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-condensed, 8px);\n }\n\n &[data-padding-wide='normal'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-normal, 16px);\n }\n\n &[data-padding-wide='spacious'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-spacious, 24px);\n }\n\n &[data-direction-wide='horizontal'] {\n flex-flow: row;\n }\n\n &[data-direction-wide='vertical'] {\n flex-flow: column;\n }\n\n &[data-gap-wide='none'] {\n --stack-gap: var(--stack-gap-none, 0);\n }\n\n &[data-gap-wide='condensed'] {\n --stack-gap: var(--stack-gap-condensed, 0.5rem);\n }\n\n &[data-gap-wide='normal'] {\n --stack-gap: var(--stack-gap-normal, 1rem);\n }\n\n &[data-gap-wide='spacious'] {\n --stack-gap: var(--stack-gap-spacious, 1.5rem);\n }\n\n &[data-align-wide='start'] {\n align-items: flex-start;\n }\n\n &[data-align-wide='center'] {\n align-items: center;\n }\n\n &[data-align-wide='end'] {\n align-items: flex-end;\n }\n\n &[data-align-wide='baseline'] {\n align-items: baseline;\n }\n\n &[data-justify-wide='start'] {\n justify-content: flex-start;\n }\n\n &[data-justify-wide='center'] {\n justify-content: center;\n }\n\n &[data-justify-wide='end'] {\n justify-content: flex-end;\n }\n\n &[data-justify-wide='space-between'] {\n justify-content: space-between;\n }\n\n &[data-justify-wide='space-evenly'] {\n justify-content: space-evenly;\n }\n\n &[data-wrap-wide='wrap'] {\n flex-wrap: wrap;\n }\n\n &[data-wrap-wide='nowrap'] {\n flex-wrap: nowrap;\n }\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ <%= render(Primer::BaseComponent.new(**@system_arguments)) do %>
2
+ <%= content %>
3
+ <% end %>