jekyll-v4-theme-primer 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -3
  3. data/_layouts/default.html +4 -2
  4. data/_sass/@primer/css/autocomplete/suggester.scss +11 -11
  5. data/_sass/@primer/css/avatars/avatar-parent-child.scss +2 -2
  6. data/_sass/@primer/css/avatars/circle-badge.scss +3 -3
  7. data/_sass/@primer/css/base/base.scss +5 -5
  8. data/_sass/@primer/css/base/kbd.scss +5 -5
  9. data/_sass/@primer/css/base/normalize.scss +3 -2
  10. data/_sass/@primer/css/box/box-overlay.scss +3 -3
  11. data/_sass/@primer/css/branch-name/branch-name.scss +6 -6
  12. data/_sass/@primer/css/buttons/button.scss +63 -63
  13. data/_sass/@primer/css/buttons/misc.scss +26 -26
  14. data/_sass/@primer/css/color-modes/native.scss +4 -2
  15. data/_sass/@primer/css/core/index.scss +0 -1
  16. data/_sass/@primer/css/forms/form-control.scss +18 -18
  17. data/_sass/@primer/css/forms/form-group.scss +31 -30
  18. data/_sass/@primer/css/forms/form-select.scss +1 -1
  19. data/_sass/@primer/css/forms/index.scss +0 -1
  20. data/_sass/@primer/css/forms/input-group.scss +10 -0
  21. data/_sass/@primer/css/forms/radio-group.scss +6 -6
  22. data/_sass/@primer/css/header/header.scss +7 -7
  23. data/_sass/@primer/css/labels/index.scss +0 -1
  24. data/_sass/@primer/css/layout/app-frame.scss +13 -13
  25. data/_sass/@primer/css/layout/page-layout.scss +2 -6
  26. data/_sass/@primer/css/layout/stack.scss +7 -7
  27. data/_sass/@primer/css/markdown/blob-csv.scss +2 -2
  28. data/_sass/@primer/css/markdown/code.scss +3 -3
  29. data/_sass/@primer/css/markdown/footnotes.scss +3 -3
  30. data/_sass/@primer/css/markdown/headings.scss +4 -4
  31. data/_sass/@primer/css/markdown/images.scss +3 -3
  32. data/_sass/@primer/css/markdown/lists.scss +4 -4
  33. data/_sass/@primer/css/markdown/markdown-body.scss +4 -4
  34. data/_sass/@primer/css/markdown/tables.scss +4 -4
  35. data/_sass/@primer/css/marketing/buttons/button.scss +9 -10
  36. data/_sass/@primer/css/marketing/support/variables.scss +15 -0
  37. data/_sass/@primer/css/marketing/utilities/layout.scss +0 -1
  38. data/_sass/@primer/css/navigation/filter-list.scss +8 -8
  39. data/_sass/@primer/css/navigation/sidenav.scss +12 -12
  40. data/_sass/@primer/css/navigation/subnav.scss +9 -9
  41. data/_sass/@primer/css/pagination/pagination.scss +7 -7
  42. data/_sass/@primer/css/primitives/index.scss +9 -9
  43. data/_sass/@primer/css/select-menu/select-menu.scss +41 -41
  44. data/_sass/@primer/css/support/mixins/color-modes.scss +89 -1
  45. data/_sass/@primer/css/support/mixins/misc.scss +8 -8
  46. data/_sass/@primer/css/support/variables/misc.scss +2 -2
  47. data/_sass/@primer/css/support/variables/typography.scss +1 -1
  48. data/_sass/@primer/css/toasts/toasts.scss +17 -17
  49. data/_sass/@primer/css/tooltips/tooltips.scss +9 -62
  50. data/_sass/@primer/css/utilities/borders.scss +9 -9
  51. data/_sass/@primer/css/utilities/box-shadow.scss +8 -4
  52. data/_sass/@primer/css/utilities/colors.scss +59 -60
  53. data/_sass/@primer/css/utilities/details.scss +1 -1
  54. data/_sass/@primer/css/utilities/flexbox.scss +0 -1
  55. data/_sass/@primer/css/utilities/layout.scss +7 -5
  56. data/_sass/@primer/css/utilities/margin.scss +0 -2
  57. data/_sass/@primer/css/utilities/padding.scss +0 -1
  58. data/_sass/@primer/css/utilities/typography.scss +8 -8
  59. data/_sass/@primer/css/utilities/visibility-display.scss +10 -9
  60. data/_sass/@primer/primitives/dist/scss/base/size/size.scss +17 -0
  61. data/_sass/@primer/primitives/dist/scss/base/typography/typography.scss +4 -0
  62. data/_sass/@primer/primitives/dist/scss/colors/_dark.scss +29 -20
  63. data/_sass/@primer/primitives/dist/scss/colors/_dark_colorblind.scss +14 -5
  64. data/_sass/@primer/primitives/dist/scss/colors/_dark_dimmed.scss +14 -5
  65. data/_sass/@primer/primitives/dist/scss/colors/_dark_high_contrast.scss +12 -3
  66. data/_sass/@primer/primitives/dist/scss/colors/_dark_tritanopia.scss +14 -5
  67. data/_sass/@primer/primitives/dist/scss/colors/_light.scss +13 -4
  68. data/_sass/@primer/primitives/dist/scss/colors/_light_colorblind.scss +13 -4
  69. data/_sass/@primer/primitives/dist/scss/colors/_light_high_contrast.scss +13 -4
  70. data/_sass/@primer/primitives/dist/scss/colors/_light_tritanopia.scss +13 -4
  71. data/_sass/@primer/primitives/dist/scss/functional/motion/motion.scss +3 -0
  72. data/_sass/@primer/primitives/dist/scss/functional/size/border.scss +12 -0
  73. data/_sass/@primer/primitives/dist/scss/functional/size/breakpoints.scss +6 -0
  74. data/_sass/@primer/primitives/dist/scss/functional/size/size-coarse.scss +3 -0
  75. data/_sass/@primer/primitives/dist/scss/functional/size/size-fine.scss +3 -0
  76. data/_sass/@primer/primitives/dist/scss/functional/size/size.scss +72 -0
  77. data/_sass/@primer/primitives/dist/scss/functional/size/viewport.scss +6 -0
  78. data/_sass/@primer/primitives/dist/scss/functional/themes/dark-colorblind.scss +503 -0
  79. data/_sass/@primer/primitives/dist/scss/functional/themes/dark-dimmed.scss +503 -0
  80. data/_sass/@primer/primitives/dist/scss/functional/themes/dark-high-contrast.scss +503 -0
  81. data/_sass/@primer/primitives/dist/scss/functional/themes/dark-tritanopia.scss +503 -0
  82. data/_sass/@primer/primitives/dist/scss/functional/themes/dark.scss +503 -0
  83. data/_sass/@primer/primitives/dist/scss/functional/themes/light-colorblind.scss +503 -0
  84. data/_sass/@primer/primitives/dist/scss/functional/themes/light-high-contrast.scss +503 -0
  85. data/_sass/@primer/primitives/dist/scss/functional/themes/light-tritanopia.scss +503 -0
  86. data/_sass/@primer/primitives/dist/scss/functional/themes/light.scss +503 -0
  87. data/_sass/@primer/primitives/dist/scss/functional/typography/typography.scss +45 -0
  88. data/_sass/@primer/primitives/tokens-next-private/scss/base/size/size.scss +17 -21
  89. data/_sass/@primer/primitives/tokens-next-private/scss/base/typography/typography.scss +4 -8
  90. data/_sass/@primer/primitives/tokens-next-private/scss/functional/motion/motion.scss +3 -0
  91. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/border.scss +12 -16
  92. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/breakpoints.scss +6 -10
  93. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/size-coarse.scss +3 -7
  94. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/size-fine.scss +3 -7
  95. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/size.scss +72 -51
  96. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/viewport.scss +6 -19
  97. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark-colorblind.scss +503 -391
  98. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark-dimmed.scss +503 -391
  99. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark-high-contrast.scss +503 -391
  100. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark-tritanopia.scss +503 -391
  101. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark.scss +503 -391
  102. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/light-colorblind.scss +503 -366
  103. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/light-high-contrast.scss +503 -366
  104. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/light-tritanopia.scss +503 -366
  105. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/light.scss +503 -366
  106. data/_sass/@primer/primitives/tokens-next-private/scss/functional/typography/typography.scss +45 -49
  107. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/base/size/size.scss +2 -2
  108. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/base/typography/typography.scss +2 -2
  109. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/border.scss +2 -2
  110. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +2 -2
  111. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +2 -2
  112. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +2 -2
  113. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size.scss +2 -2
  114. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/viewport.scss +2 -2
  115. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/typography/typography.scss +2 -2
  116. data/_sass/@primer/view-components/README.md +1 -1
  117. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts +17 -0
  118. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +51 -0
  119. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
  120. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/dropdown.d.ts +1 -0
  121. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/image_crop.d.ts +1 -0
  122. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/modal_dialog.d.ts +18 -0
  123. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/segmented_control.d.ts +12 -0
  124. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/tab_container.d.ts +1 -0
  125. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts +30 -0
  126. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts +27 -0
  127. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts +13 -0
  128. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/anchored_position.d.ts +27 -0
  129. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
  130. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/beta/clipboard_copy.d.ts +1 -0
  131. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +17 -0
  132. data/_sass/@primer/view-components/app/{components/primer/alpha/nav_list.d.ts → assets/javascripts/app/components/primer/beta/nav_list_group_element.d.ts} +3 -9
  133. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/dialog_helper.d.ts +15 -0
  134. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/focus_group.d.ts +19 -0
  135. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/primer.d.ts +23 -0
  136. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/scrollable_region.d.ts +13 -0
  137. data/_sass/@primer/view-components/app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts +10 -0
  138. data/_sass/@primer/view-components/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +1 -0
  139. data/_sass/@primer/view-components/app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts +5 -0
  140. data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js +1 -1
  141. data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js.map +1 -1
  142. data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css +1 -3
  143. data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css.map +1 -1
  144. data/_sass/@primer/view-components/app/components/primer/alpha/action_bar.css +1 -0
  145. data/_sass/@primer/view-components/app/components/primer/alpha/action_bar.css.json +14 -0
  146. data/_sass/@primer/view-components/app/components/primer/alpha/action_bar_element.d.ts +17 -0
  147. data/_sass/@primer/view-components/app/components/primer/alpha/action_bar_element.js +180 -0
  148. data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css +1 -1
  149. data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css.json +136 -1
  150. data/_sass/@primer/view-components/app/components/primer/alpha/action_menu/action_menu_element.d.ts +51 -0
  151. data/_sass/@primer/view-components/app/components/primer/alpha/action_menu/action_menu_element.js +470 -0
  152. data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css +1 -1
  153. data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css.json +23 -1
  154. data/_sass/@primer/view-components/app/components/primer/alpha/banner.css +1 -1
  155. data/_sass/@primer/view-components/app/components/primer/alpha/banner.css.json +24 -1
  156. data/_sass/@primer/view-components/app/components/primer/alpha/button_marketing.css +1 -1
  157. data/_sass/@primer/view-components/app/components/primer/alpha/button_marketing.css.json +33 -1
  158. data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css +1 -1
  159. data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css.json +65 -1
  160. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css +1 -1
  161. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css.json +40 -1
  162. data/_sass/@primer/view-components/app/components/primer/alpha/layout.css +1 -1
  163. data/_sass/@primer/view-components/app/components/primer/alpha/layout.css.json +80 -1
  164. data/_sass/@primer/view-components/app/components/primer/alpha/menu.css +1 -1
  165. data/_sass/@primer/view-components/app/components/primer/alpha/menu.css.json +28 -1
  166. data/_sass/@primer/view-components/app/components/primer/alpha/modal_dialog.js +50 -27
  167. data/_sass/@primer/view-components/app/components/primer/alpha/overlay.css +1 -0
  168. data/_sass/@primer/view-components/app/components/primer/alpha/overlay.css.json +11 -0
  169. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css +1 -1
  170. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css.json +29 -1
  171. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.js +4 -4
  172. data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css +1 -1
  173. data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css.json +24 -1
  174. data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css +1 -3
  175. data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css.json +144 -1
  176. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css +1 -1
  177. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css.json +40 -1
  178. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.d.ts +2 -1
  179. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.js +54 -45
  180. data/_sass/@primer/view-components/app/components/primer/alpha/tool_tip.d.ts +4 -2
  181. data/_sass/@primer/view-components/app/components/primer/alpha/tool_tip.js +159 -72
  182. data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css +1 -1
  183. data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css.json +28 -1
  184. data/_sass/@primer/view-components/app/components/primer/alpha/x_banner.d.ts +3 -1
  185. data/_sass/@primer/view-components/app/components/primer/alpha/x_banner.js +25 -10
  186. data/_sass/@primer/view-components/app/components/primer/anchored_position.d.ts +27 -0
  187. data/_sass/@primer/view-components/app/components/primer/anchored_position.js +157 -0
  188. data/_sass/@primer/view-components/app/components/primer/beta/avatar.css +1 -1
  189. data/_sass/@primer/view-components/app/components/primer/beta/avatar.css.json +17 -1
  190. data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css +1 -1
  191. data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css.json +28 -1
  192. data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css +1 -1
  193. data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css.json +23 -1
  194. data/_sass/@primer/view-components/app/components/primer/beta/border_box.css +1 -1
  195. data/_sass/@primer/view-components/app/components/primer/beta/border_box.css.json +54 -1
  196. data/_sass/@primer/view-components/app/components/primer/beta/breadcrumbs.css +1 -1
  197. data/_sass/@primer/view-components/app/components/primer/beta/breadcrumbs.css.json +11 -1
  198. data/_sass/@primer/view-components/app/components/primer/beta/button.css +1 -1
  199. data/_sass/@primer/view-components/app/components/primer/beta/button.css.json +77 -1
  200. data/_sass/@primer/view-components/app/components/primer/beta/button_group.css +1 -0
  201. data/_sass/@primer/view-components/app/components/primer/beta/button_group.css.json +12 -0
  202. data/_sass/@primer/view-components/app/components/primer/beta/counter.css +1 -1
  203. data/_sass/@primer/view-components/app/components/primer/beta/counter.css.json +10 -1
  204. data/_sass/@primer/view-components/app/components/primer/beta/flash.css +1 -1
  205. data/_sass/@primer/view-components/app/components/primer/beta/flash.css.json +27 -1
  206. data/_sass/@primer/view-components/app/components/primer/beta/label.css +1 -1
  207. data/_sass/@primer/view-components/app/components/primer/beta/label.css.json +25 -1
  208. data/_sass/@primer/view-components/app/components/primer/beta/link.css +1 -1
  209. data/_sass/@primer/view-components/app/components/primer/beta/link.css.json +20 -1
  210. data/_sass/@primer/view-components/app/components/primer/beta/nav_list.d.ts +17 -0
  211. data/_sass/@primer/view-components/app/components/primer/beta/nav_list.js +170 -0
  212. data/_sass/@primer/view-components/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
  213. data/_sass/@primer/view-components/app/components/primer/{alpha/nav_list.js → beta/nav_list_group_element.js} +30 -53
  214. data/_sass/@primer/view-components/app/components/primer/beta/popover.css +1 -1
  215. data/_sass/@primer/view-components/app/components/primer/beta/popover.css.json +39 -1
  216. data/_sass/@primer/view-components/app/components/primer/beta/progress_bar.css +1 -1
  217. data/_sass/@primer/view-components/app/components/primer/beta/progress_bar.css.json +10 -1
  218. data/_sass/@primer/view-components/app/components/primer/beta/state.css +1 -1
  219. data/_sass/@primer/view-components/app/components/primer/beta/state.css.json +13 -1
  220. data/_sass/@primer/view-components/app/components/primer/beta/subhead.css +1 -1
  221. data/_sass/@primer/view-components/app/components/primer/beta/subhead.css.json +14 -1
  222. data/_sass/@primer/view-components/app/components/primer/beta/timeline_item.css +1 -1
  223. data/_sass/@primer/view-components/app/components/primer/beta/timeline_item.css.json +16 -1
  224. data/_sass/@primer/view-components/app/components/primer/beta/truncate.css +1 -1
  225. data/_sass/@primer/view-components/app/components/primer/beta/truncate.css.json +12 -1
  226. data/_sass/@primer/view-components/app/components/primer/dialog_helper.d.ts +15 -0
  227. data/_sass/@primer/view-components/app/components/primer/dialog_helper.js +117 -0
  228. data/_sass/@primer/view-components/app/components/primer/focus_group.d.ts +19 -0
  229. data/_sass/@primer/view-components/app/components/primer/focus_group.js +163 -0
  230. data/_sass/@primer/view-components/app/components/primer/primer.d.ts +10 -3
  231. data/_sass/@primer/view-components/app/components/primer/primer.js +10 -3
  232. data/_sass/@primer/view-components/app/components/primer/scrollable_region.d.ts +13 -0
  233. data/_sass/@primer/view-components/app/components/primer/scrollable_region.js +52 -0
  234. data/_sass/@primer/view-components/app/components/primer/truncate.css.json +13 -1
  235. data/_sass/@primer/view-components/lib/primer/forms/primer_multi_input.js +2 -3
  236. data/_sass/@primer/view-components/lib/primer/forms/primer_text_field.js +55 -11
  237. data/_sass/@primer/view-components/lib/primer/forms/toggle_switch_input.js +7 -2
  238. data/_sass/@primer/view-components/package.json +34 -33
  239. data/_sass/@primer/view-components/static/arguments.json +2786 -454
  240. data/_sass/@primer/view-components/static/audited_at.json +39 -24
  241. data/_sass/@primer/view-components/static/classes.json +612 -0
  242. data/_sass/@primer/view-components/static/constants.json +318 -77
  243. data/_sass/@primer/view-components/static/info_arch.json +15698 -0
  244. data/_sass/@primer/view-components/static/previews.json +6814 -0
  245. data/_sass/@primer/view-components/static/statuses.json +41 -26
  246. data/_sass/{jekyll-theme-primer.scss → jekyll-v4-theme-primer.scss} +14 -3
  247. data/_sass/primer.scss +1 -1
  248. data/assets/css/style.scss +1 -1
  249. data/assets/js/github-clipboard-copy-element.js +154 -0
  250. data/assets/js/primer-clipboard-copy.js +106 -0
  251. metadata +77 -18
  252. data/_sass/@primer/css/actionlist/action-list-item-divider.scss +0 -48
  253. data/_sass/@primer/css/actionlist/action-list-item.scss +0 -593
  254. data/_sass/@primer/css/actionlist/action-list-tree.scss +0 -118
  255. data/_sass/@primer/css/actionlist/action-list-variables.scss +0 -8
  256. data/_sass/@primer/css/actionlist/action-list.scss +0 -67
  257. data/_sass/@primer/css/actionlist/index.scss +0 -6
  258. data/_sass/@primer/css/forms/form-validation.scss +0 -265
  259. data/_sass/@primer/css/labels/diffstat.scss +0 -37
  260. data/_sass/@primer/view-components/app/components/primer/time_ago_component.js +0 -1
  261. /data/_sass/@primer/view-components/app/{components/primer/local_time.d.ts → assets/javascripts/app/components/primer/beta/relative_time.d.ts} +0 -0
  262. /data/_sass/@primer/view-components/app/components/primer/{local_time.js → beta/relative_time.d.ts} +0 -0
  263. /data/_sass/@primer/view-components/app/components/primer/{time_ago_component.d.ts → beta/relative_time.js} +0 -0
@@ -1,118 +0,0 @@
1
- // stylelint-disable max-nesting-depth, selector-max-compound-selectors, selector-max-specificity, selector-max-type, primer/spacing
2
- // tree-view variant
3
- // renders ActionList with default styling for tree-view
4
- // collapse/expand icons presents as leadingActions, rotate 90deg
5
- // connecting vertical lines between collapse groups
6
- // consistent font-size between nested groups
7
-
8
- @mixin treeConnectingLine($left) {
9
- position: absolute;
10
- left: $left;
11
- width: 1px;
12
- height: 100%;
13
- content: '';
14
- background: var(--color-action-list-item-inline-divider);
15
- }
16
-
17
- .ActionList--tree {
18
- --ActionList-tree-depth: 1;
19
- // TODO: remove with PVC implementation
20
- .ActionList-item--subItem > .ActionList-content {
21
- font-size: $body-font-size;
22
- }
23
-
24
- .ActionList-item {
25
- // class for single tree items not within a group
26
- &.ActionList-item--singleton {
27
- .ActionList-content {
28
- padding-left: $spacer-5;
29
- }
30
- }
31
-
32
- // normal font-weight for any active item
33
- &.ActionList-item--navActive {
34
- &:not(.ActionList-item--subItem) {
35
- .ActionList-item-label {
36
- font-weight: $font-weight-normal;
37
- }
38
- }
39
- }
40
- }
41
-
42
- .ActionList-content {
43
- // nesting (infinite levels)
44
- // target items inside expanded subgroup
45
- &[aria-expanded] {
46
- + .ActionList--subGroup {
47
- position: relative;
48
-
49
- // --ActionList-tree-depth is defined as an inline style referencing the aria-level of each item ie: aria-level="2"
50
- .ActionList-content {
51
- padding-left: calc(#{$spacer-2} * var(--ActionList-tree-depth));
52
- }
53
- }
54
- }
55
-
56
- // tree-view specific collapse icon positioning/animation
57
- &[aria-expanded='true'] {
58
- .ActionList-item-collapseIcon {
59
- transition: transform 120ms linear;
60
- transform: rotate(0deg);
61
- }
62
-
63
- // normal weight for parent folder containing active child
64
- &.ActionList-content--hasActiveSubItem {
65
- > .ActionList-item-label {
66
- font-weight: $font-weight-normal;
67
- }
68
- }
69
- }
70
-
71
- &[aria-expanded='false'] {
72
- .ActionList-item-collapseIcon {
73
- transition: transform 120ms linear;
74
- transform: rotate(-90deg);
75
- }
76
-
77
- &.ActionList-content--hasActiveSubItem {
78
- > .ActionList-item-label {
79
- font-weight: $font-weight-normal;
80
- }
81
- }
82
- }
83
- }
84
-
85
- // expand/collapse group
86
- .ActionList-item--hasSubItem {
87
- .ActionList-item--subItem:not(.ActionList-item--hasSubItem) {
88
- .ActionList-content {
89
- // increase child padding by targeting content first child span (add to ActionList-content padding, not replace)
90
- // creates a slight indent of child items
91
- > span:first-child {
92
- padding-left: $spacer-4;
93
- }
94
- }
95
- }
96
- }
97
-
98
- // first subitem
99
- > [aria-level='1'].ActionList-item--hasSubItem {
100
- > .ActionList--subGroup {
101
- &::before {
102
- @include treeConnectingLine($left: $spacer-3);
103
- }
104
- }
105
- }
106
-
107
- // all other subitems
108
- // center connecting line with parent (line is 1px (8px - 1px)
109
- .ActionList-item--hasSubItem:not([aria-level='1']) {
110
- > .ActionList--subGroup {
111
- &::before {
112
- @include treeConnectingLine(
113
- $left: calc(#{$spacer-2} * (var(--ActionList-tree-depth)) + #{$spacer-2 - $border-width})
114
- );
115
- }
116
- }
117
- }
118
- }
@@ -1,8 +0,0 @@
1
- $actionList-item-height-sm: $spacer-2 * 2.5 !default;
2
- $actionList-item-label-line-height: $spacer-2 * 2.5 !default;
3
- $actionList-item-padding-vertical-md: $spacer-2 * 1.25 !default;
4
- $actionList-item-padding-vertical-lg: $spacer-2 * 1.75 !default;
5
- $actionList-item-padding-vertical: $spacer-1 * 1.5 !default;
6
- $actionList-item-padding-horizontal: $spacer-2 !default;
7
- $actionList-item-bg-transition: background 33.333ms linear !default; // 2 frames on a 60hz monitor
8
- $actionList-item-checkmark-transition-timing: 50ms !default;
@@ -1,67 +0,0 @@
1
- // <ul>
2
- .ActionList {
3
- padding: $spacer-2;
4
- }
5
-
6
- // full bleed
7
- .ActionList--full {
8
- padding: 0;
9
- }
10
-
11
- // nested list within main ActionList
12
- .ActionList--subGroup {
13
- padding: 0;
14
- }
15
-
16
- // dividers
17
-
18
- .ActionList--divided {
19
- .ActionList-item-label::before {
20
- position: absolute;
21
- top: -$actionList-item-padding-vertical;
22
- display: block;
23
- width: 100%;
24
- height: 1px;
25
- content: '';
26
- background: var(--color-action-list-item-inline-divider);
27
- }
28
-
29
- // if descriptionWrap--inline exists, move pseudo divider to wrapper
30
- .ActionList-item-descriptionWrap--inline {
31
- &::before {
32
- position: absolute;
33
- top: -$actionList-item-padding-vertical;
34
- display: block;
35
- width: 100%;
36
- height: $border-width;
37
- content: '';
38
- background: var(--color-action-list-item-inline-divider);
39
- }
40
-
41
- // unset the default label pseudo
42
- .ActionList-item-label::before {
43
- content: unset;
44
- }
45
- }
46
-
47
- // hide divider if item is active
48
- .ActionList-item--navActive {
49
- // stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
50
- .ActionList-item-label::before,
51
- + .ActionList-item .ActionList-item-label::before {
52
- visibility: hidden;
53
- }
54
- }
55
- }
56
-
57
- // hide if item is first of type with label::before, or is the first item after a sectionDivider
58
- .ActionList-item:first-of-type .ActionList-item-label::before,
59
- .ActionList-sectionDivider + .ActionList-item .ActionList-item-label::before {
60
- visibility: hidden;
61
- }
62
-
63
- // hide if item is first of type with label::before, or is the first item after a sectionDivider
64
- .ActionList-item:first-of-type .ActionList-item-descriptionWrap--inline::before,
65
- .ActionList-sectionDivider + .ActionList-item .ActionList-item-descriptionWrap--inline::before {
66
- visibility: hidden;
67
- }
@@ -1,6 +0,0 @@
1
- @import '../support/index.scss';
2
- @import './action-list-variables.scss';
3
- @import './action-list.scss';
4
- @import './action-list-tree.scss';
5
- @import './action-list-item.scss';
6
- @import './action-list-item-divider.scss';
@@ -1,265 +0,0 @@
1
- // stylelint-disable selector-no-qualifying-type, selector-max-type
2
-
3
- // Inline verification
4
-
5
- .inline-form {
6
- display: inline-block;
7
-
8
- .btn-plain {
9
- background-color: transparent;
10
- border: 0;
11
- }
12
- }
13
-
14
- // Drag and drop
15
- //
16
- // Previously part of `_forms.scss` in Primer. Needs accounting for.
17
-
18
- .drag-and-drop {
19
- // stylelint-disable-next-line primer/spacing
20
- padding: 7px 10px;
21
- margin: 0;
22
- // stylelint-disable-next-line primer/typography
23
- font-size: 13px;
24
- // stylelint-disable-next-line primer/typography
25
- line-height: 16px;
26
- color: var(--color-fg-muted);
27
- background-color: var(--color-canvas-subtle);
28
- border: $border-width $border-style var(--color-border-default);
29
- border-top: 0;
30
- border-bottom-right-radius: $border-radius;
31
- border-bottom-left-radius: $border-radius;
32
-
33
- .default,
34
- .loading,
35
- .error {
36
- display: none;
37
- }
38
-
39
- .error {
40
- color: var(--color-danger-fg);
41
- }
42
-
43
- // Spinner
44
- img {
45
- vertical-align: top;
46
- }
47
- }
48
-
49
- .is-default .drag-and-drop .default {
50
- display: inline-block;
51
- }
52
-
53
- .is-uploading .drag-and-drop .loading {
54
- display: inline-block;
55
- }
56
-
57
- .is-bad-file .drag-and-drop .bad-file {
58
- display: inline-block;
59
- }
60
-
61
- .is-duplicate-filename .drag-and-drop .duplicate-filename {
62
- display: inline-block;
63
- }
64
-
65
- .is-too-big .drag-and-drop .too-big {
66
- display: inline-block;
67
- }
68
-
69
- .is-hidden-file .drag-and-drop .hidden-file {
70
- display: inline-block;
71
- }
72
-
73
- .is-empty .drag-and-drop .empty {
74
- display: inline-block;
75
- }
76
-
77
- .is-bad-permissions .drag-and-drop .bad-permissions {
78
- display: inline-block;
79
- }
80
-
81
- .is-repository-required .drag-and-drop .repository-required {
82
- display: inline-block;
83
- }
84
-
85
- .drag-and-drop-error-info {
86
- font-weight: $font-weight-normal;
87
- color: var(--color-fg-muted);
88
-
89
- a {
90
- color: var(--color-accent-fg);
91
- }
92
- }
93
-
94
- .is-failed .drag-and-drop .failed-request {
95
- display: inline-block;
96
- }
97
-
98
- .manual-file-chooser {
99
- position: absolute;
100
- width: 240px;
101
- // stylelint-disable-next-line primer/spacing
102
- padding: 5px;
103
- // stylelint-disable-next-line primer/spacing
104
- margin-left: -80px;
105
- cursor: pointer;
106
- opacity: 0.0001;
107
- }
108
-
109
- .manual-file-chooser:hover + .manual-file-chooser-text {
110
- text-decoration: underline;
111
- }
112
-
113
- .btn {
114
- // align manual-file-chooser inside a button
115
- .manual-file-chooser {
116
- top: 0;
117
- padding: 0;
118
- // stylelint-disable-next-line primer/typography
119
- line-height: 34px;
120
- }
121
- }
122
-
123
- // Focused Textarea styles
124
- .upload-enabled {
125
- textarea {
126
- display: block;
127
- // stylelint-disable-next-line primer/borders
128
- border-bottom: $border-width dashed var(--color-border-default);
129
- border-bottom-right-radius: 0;
130
- border-bottom-left-radius: 0;
131
- }
132
-
133
- &.focused {
134
- border-color: var(--color-accent-fg);
135
- border-radius: $border-radius;
136
- outline: none;
137
- // stylelint-disable-next-line primer/box-shadow
138
- box-shadow: 0 0 0 2px var(--color-accent-fg);
139
-
140
- .form-control {
141
- border-color: transparent;
142
- border-bottom-color: var(--color-accent-fg);
143
- box-shadow: none;
144
- }
145
-
146
- .drag-and-drop {
147
- border-color: transparent;
148
- }
149
- }
150
- }
151
-
152
- // Dropping a file on top
153
- .dragover textarea,
154
- .dragover .drag-and-drop {
155
- // stylelint-disable-next-line primer/box-shadow
156
- box-shadow: rgba(#c9ff00, 1) 0 0 3px;
157
- }
158
-
159
- .write-content {
160
- position: relative;
161
- }
162
-
163
- // Form style with a write and a preview tab
164
- .previewable-comment-form {
165
- position: relative;
166
-
167
- .tabnav {
168
- position: relative;
169
- padding: $spacer-2 $spacer-2 0;
170
- }
171
-
172
- .comment {
173
- border: $border-width $border-style var(--color-border-default);
174
- }
175
-
176
- .comment-form-error {
177
- margin-bottom: $spacer-2;
178
- }
179
-
180
- .write-content,
181
- .preview-content {
182
- display: none;
183
- margin: 0 $spacer-2 $spacer-2;
184
- }
185
-
186
- &.write-selected .write-content,
187
- &.preview-selected .preview-content {
188
- display: block;
189
- }
190
-
191
- textarea {
192
- display: block;
193
- width: 100%;
194
- min-height: 100px;
195
- max-height: 500px;
196
- padding: $spacer-2;
197
- resize: vertical;
198
- }
199
- }
200
-
201
- // Used in our boxed-group-less form styles. Give the submit button enough space
202
- // to breathe without the need for the extra hr.
203
- .form-action-spacious {
204
- // stylelint-disable-next-line primer/spacing
205
- margin-top: 10px;
206
- }
207
-
208
- // A two column form, with a .main and a .sidebar column
209
- //
210
- // Override some `.timeline-comment-wrapper` defaults.
211
- // The `div` is needed to be more specific than the other class.
212
- div.composer {
213
- margin-top: 0;
214
- border: 0;
215
- }
216
-
217
- // Override the previewable comment form defaults
218
- .composer .comment-form-textarea {
219
- height: 200px;
220
- min-height: 200px;
221
- }
222
-
223
- .composer .tabnav {
224
- // stylelint-disable-next-line primer/spacing
225
- margin: 0 0 10px;
226
- }
227
-
228
- // Misc CSS
229
- //
230
- // Previously part of `_forms.scss` in Primer. Needs accounting for.
231
-
232
- h2.account {
233
- // stylelint-disable-next-line primer/spacing
234
- margin: 15px 0 0;
235
- // stylelint-disable-next-line primer/typography
236
- font-size: 18px;
237
- font-weight: $font-weight-normal;
238
- color: var(--color-fg-muted);
239
- }
240
-
241
- p.explain {
242
- position: relative;
243
- font-size: $font-size-small;
244
- color: var(--color-fg-muted);
245
-
246
- strong {
247
- color: var(--color-fg-default);
248
- }
249
-
250
- .octicon {
251
- // stylelint-disable-next-line primer/spacing
252
- margin-right: 5px;
253
- color: var(--color-fg-muted);
254
- }
255
-
256
- .minibutton {
257
- top: -4px;
258
- float: right;
259
- }
260
- }
261
-
262
- // fix for chrome bug, see https://github.com/github/github/issues/53931
263
- .form-group label {
264
- position: static;
265
- }
@@ -1,37 +0,0 @@
1
- // diffstat
2
- //
3
- // Green/red blocks showing additions and deletions
4
-
5
- .diffstat {
6
- font-size: $h6-size;
7
- font-weight: $font-weight-bold;
8
- color: var(--color-fg-muted);
9
- white-space: nowrap;
10
- cursor: default;
11
- }
12
-
13
- .diffstat-block-deleted,
14
- .diffstat-block-added,
15
- .diffstat-block-neutral {
16
- display: inline-block;
17
- width: $spacer-2;
18
- height: $spacer-2;
19
- // stylelint-disable-next-line primer/spacing
20
- margin-left: 1px;
21
- outline-offset: -1px; // Support Firefox custom colors
22
- }
23
-
24
- .diffstat-block-deleted {
25
- background-color: var(--color-danger-emphasis);
26
- outline: 1px solid var(--color-border-subtle); // Support Firefox custom colors
27
- }
28
-
29
- .diffstat-block-added {
30
- background-color: var(--color-diffstat-addition-bg);
31
- outline: 1px solid var(--color-border-subtle); // Support Firefox custom colors
32
- }
33
-
34
- .diffstat-block-neutral {
35
- background-color: var(--color-neutral-muted);
36
- outline: 1px solid var(--color-border-subtle); // Support Firefox custom colors
37
- }
@@ -1 +0,0 @@
1
- import '@github/relative-time-element';