jekyll-v4-theme-primer 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -0
  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 +2 -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/forms/form-control.scss +18 -18
  16. data/_sass/@primer/css/forms/form-group.scss +29 -29
  17. data/_sass/@primer/css/forms/form-select.scss +1 -1
  18. data/_sass/@primer/css/forms/input-group.scss +10 -0
  19. data/_sass/@primer/css/forms/radio-group.scss +6 -6
  20. data/_sass/@primer/css/header/header.scss +7 -7
  21. data/_sass/@primer/css/layout/app-frame.scss +7 -7
  22. data/_sass/@primer/css/layout/page-layout.scss +2 -6
  23. data/_sass/@primer/css/layout/stack.scss +1 -1
  24. data/_sass/@primer/css/markdown/blob-csv.scss +2 -2
  25. data/_sass/@primer/css/markdown/code.scss +3 -3
  26. data/_sass/@primer/css/markdown/footnotes.scss +3 -3
  27. data/_sass/@primer/css/markdown/headings.scss +4 -4
  28. data/_sass/@primer/css/markdown/images.scss +3 -3
  29. data/_sass/@primer/css/markdown/markdown-body.scss +4 -4
  30. data/_sass/@primer/css/markdown/tables.scss +4 -4
  31. data/_sass/@primer/css/marketing/buttons/button.scss +9 -10
  32. data/_sass/@primer/css/marketing/support/variables.scss +15 -0
  33. data/_sass/@primer/css/marketing/utilities/layout.scss +0 -1
  34. data/_sass/@primer/css/navigation/filter-list.scss +8 -8
  35. data/_sass/@primer/css/navigation/sidenav.scss +12 -12
  36. data/_sass/@primer/css/navigation/subnav.scss +9 -9
  37. data/_sass/@primer/css/pagination/pagination.scss +7 -7
  38. data/_sass/@primer/css/select-menu/select-menu.scss +41 -41
  39. data/_sass/@primer/css/support/mixins/color-modes.scss +89 -1
  40. data/_sass/@primer/css/support/mixins/misc.scss +8 -8
  41. data/_sass/@primer/css/support/variables/misc.scss +2 -2
  42. data/_sass/@primer/css/support/variables/typography.scss +1 -1
  43. data/_sass/@primer/css/toasts/toasts.scss +17 -17
  44. data/_sass/@primer/css/tooltips/tooltips.scss +9 -62
  45. data/_sass/@primer/css/utilities/borders.scss +1 -1
  46. data/_sass/@primer/css/utilities/box-shadow.scss +8 -4
  47. data/_sass/@primer/css/utilities/colors.scss +59 -60
  48. data/_sass/@primer/css/utilities/details.scss +1 -1
  49. data/_sass/@primer/css/utilities/flexbox.scss +0 -1
  50. data/_sass/@primer/css/utilities/layout.scss +7 -5
  51. data/_sass/@primer/css/utilities/margin.scss +0 -2
  52. data/_sass/@primer/css/utilities/padding.scss +0 -1
  53. data/_sass/@primer/css/utilities/typography.scss +8 -8
  54. data/_sass/@primer/primitives/dist/scss/base/size/size.scss +17 -0
  55. data/_sass/@primer/primitives/dist/scss/base/typography/typography.scss +4 -0
  56. data/_sass/@primer/primitives/dist/scss/colors/_dark.scss +29 -20
  57. data/_sass/@primer/primitives/dist/scss/colors/_dark_colorblind.scss +14 -5
  58. data/_sass/@primer/primitives/dist/scss/colors/_dark_dimmed.scss +14 -5
  59. data/_sass/@primer/primitives/dist/scss/colors/_dark_high_contrast.scss +12 -3
  60. data/_sass/@primer/primitives/dist/scss/colors/_dark_tritanopia.scss +14 -5
  61. data/_sass/@primer/primitives/dist/scss/colors/_light.scss +13 -4
  62. data/_sass/@primer/primitives/dist/scss/colors/_light_colorblind.scss +13 -4
  63. data/_sass/@primer/primitives/dist/scss/colors/_light_high_contrast.scss +13 -4
  64. data/_sass/@primer/primitives/dist/scss/colors/_light_tritanopia.scss +13 -4
  65. data/_sass/@primer/primitives/dist/scss/functional/motion/motion.scss +3 -0
  66. data/_sass/@primer/primitives/dist/scss/functional/size/border.scss +12 -0
  67. data/_sass/@primer/primitives/dist/scss/functional/size/breakpoints.scss +6 -0
  68. data/_sass/@primer/primitives/dist/scss/functional/size/size-coarse.scss +3 -0
  69. data/_sass/@primer/primitives/dist/scss/functional/size/size-fine.scss +3 -0
  70. data/_sass/@primer/primitives/dist/scss/functional/size/size.scss +72 -0
  71. data/_sass/@primer/primitives/dist/scss/functional/size/viewport.scss +6 -0
  72. data/_sass/@primer/primitives/dist/scss/functional/themes/dark-colorblind.scss +503 -0
  73. data/_sass/@primer/primitives/dist/scss/functional/themes/dark-dimmed.scss +503 -0
  74. data/_sass/@primer/primitives/dist/scss/functional/themes/dark-high-contrast.scss +503 -0
  75. data/_sass/@primer/primitives/dist/scss/functional/themes/dark-tritanopia.scss +503 -0
  76. data/_sass/@primer/primitives/dist/scss/functional/themes/dark.scss +503 -0
  77. data/_sass/@primer/primitives/dist/scss/functional/themes/light-colorblind.scss +503 -0
  78. data/_sass/@primer/primitives/dist/scss/functional/themes/light-high-contrast.scss +503 -0
  79. data/_sass/@primer/primitives/dist/scss/functional/themes/light-tritanopia.scss +503 -0
  80. data/_sass/@primer/primitives/dist/scss/functional/themes/light.scss +503 -0
  81. data/_sass/@primer/primitives/dist/scss/functional/typography/typography.scss +45 -0
  82. data/_sass/@primer/primitives/tokens-next-private/scss/base/size/size.scss +17 -21
  83. data/_sass/@primer/primitives/tokens-next-private/scss/base/typography/typography.scss +4 -8
  84. data/_sass/@primer/primitives/tokens-next-private/scss/functional/motion/motion.scss +3 -0
  85. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/border.scss +12 -16
  86. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/breakpoints.scss +6 -10
  87. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/size-coarse.scss +3 -7
  88. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/size-fine.scss +3 -7
  89. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/size.scss +72 -51
  90. data/_sass/@primer/primitives/tokens-next-private/scss/functional/size/viewport.scss +6 -19
  91. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark-colorblind.scss +503 -391
  92. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark-dimmed.scss +503 -391
  93. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark-high-contrast.scss +503 -391
  94. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark-tritanopia.scss +503 -391
  95. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/dark.scss +503 -391
  96. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/light-colorblind.scss +503 -366
  97. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/light-high-contrast.scss +503 -366
  98. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/light-tritanopia.scss +503 -366
  99. data/_sass/@primer/primitives/tokens-next-private/scss/functional/themes/light.scss +503 -366
  100. data/_sass/@primer/primitives/tokens-next-private/scss/functional/typography/typography.scss +45 -49
  101. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/base/size/size.scss +2 -2
  102. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/base/typography/typography.scss +2 -2
  103. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/border.scss +2 -2
  104. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +2 -2
  105. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +2 -2
  106. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +2 -2
  107. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size.scss +2 -2
  108. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/viewport.scss +2 -2
  109. data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/typography/typography.scss +2 -2
  110. data/_sass/@primer/view-components/README.md +1 -1
  111. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts +17 -0
  112. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +51 -0
  113. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
  114. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/dropdown.d.ts +1 -0
  115. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/image_crop.d.ts +1 -0
  116. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/modal_dialog.d.ts +18 -0
  117. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/segmented_control.d.ts +12 -0
  118. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/tab_container.d.ts +1 -0
  119. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts +30 -0
  120. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts +27 -0
  121. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts +13 -0
  122. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/anchored_position.d.ts +27 -0
  123. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
  124. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/beta/clipboard_copy.d.ts +1 -0
  125. data/_sass/@primer/view-components/app/{components/primer/alpha → assets/javascripts/app/components/primer/beta}/nav_list.d.ts +0 -11
  126. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
  127. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/beta/relative_time.d.ts +1 -0
  128. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/dialog_helper.d.ts +15 -0
  129. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/focus_group.d.ts +19 -0
  130. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/primer.d.ts +23 -0
  131. data/_sass/@primer/view-components/app/assets/javascripts/app/components/primer/scrollable_region.d.ts +13 -0
  132. data/_sass/@primer/view-components/app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts +10 -0
  133. data/_sass/@primer/view-components/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +1 -0
  134. data/_sass/@primer/view-components/app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts +5 -0
  135. data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js +1 -1
  136. data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js.map +1 -1
  137. data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css +1 -3
  138. data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css.map +1 -1
  139. data/_sass/@primer/view-components/app/components/primer/alpha/action_bar.css +1 -0
  140. data/_sass/@primer/view-components/app/components/primer/alpha/action_bar.css.json +14 -0
  141. data/_sass/@primer/view-components/app/components/primer/alpha/action_bar_element.d.ts +17 -0
  142. data/_sass/@primer/view-components/app/components/primer/alpha/action_bar_element.js +180 -0
  143. data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css +1 -1
  144. data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css.json +21 -16
  145. data/_sass/@primer/view-components/app/components/primer/alpha/action_menu/action_menu_element.d.ts +26 -4
  146. data/_sass/@primer/view-components/app/components/primer/alpha/action_menu/action_menu_element.js +318 -65
  147. data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css +1 -1
  148. data/_sass/@primer/view-components/app/components/primer/alpha/banner.css +1 -1
  149. data/_sass/@primer/view-components/app/components/primer/alpha/button_marketing.css +1 -1
  150. data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css +1 -1
  151. data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css.json +12 -27
  152. data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css +1 -1
  153. data/_sass/@primer/view-components/app/components/primer/alpha/layout.css +1 -1
  154. data/_sass/@primer/view-components/app/components/primer/alpha/menu.css +1 -1
  155. data/_sass/@primer/view-components/app/components/primer/alpha/modal_dialog.js +38 -27
  156. data/_sass/@primer/view-components/app/components/primer/alpha/overlay.css +1 -1
  157. data/_sass/@primer/view-components/app/components/primer/alpha/overlay.css.json +6 -3
  158. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css +1 -1
  159. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css.json +11 -13
  160. data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.js +4 -4
  161. data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css +1 -1
  162. data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css +1 -3
  163. data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css.json +16 -6
  164. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css +1 -1
  165. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css.json +11 -11
  166. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.d.ts +2 -1
  167. data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.js +54 -45
  168. data/_sass/@primer/view-components/app/components/primer/alpha/tool_tip.d.ts +4 -2
  169. data/_sass/@primer/view-components/app/components/primer/alpha/tool_tip.js +159 -72
  170. data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css +1 -1
  171. data/_sass/@primer/view-components/app/components/primer/alpha/x_banner.d.ts +3 -1
  172. data/_sass/@primer/view-components/app/components/primer/alpha/x_banner.js +25 -10
  173. data/_sass/@primer/view-components/app/components/primer/anchored_position.js +16 -8
  174. data/_sass/@primer/view-components/app/components/primer/beta/avatar.css +1 -1
  175. data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css +1 -1
  176. data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css +1 -1
  177. data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css.json +1 -0
  178. data/_sass/@primer/view-components/app/components/primer/beta/border_box.css +1 -1
  179. data/_sass/@primer/view-components/app/components/primer/beta/border_box.css.json +1 -1
  180. data/_sass/@primer/view-components/app/components/primer/beta/breadcrumbs.css +1 -1
  181. data/_sass/@primer/view-components/app/components/primer/beta/button.css +1 -1
  182. data/_sass/@primer/view-components/app/components/primer/beta/button.css.json +13 -7
  183. data/_sass/@primer/view-components/app/components/primer/beta/button_group.css +1 -0
  184. data/_sass/@primer/view-components/app/components/primer/beta/button_group.css.json +12 -0
  185. data/_sass/@primer/view-components/app/components/primer/beta/counter.css +1 -1
  186. data/_sass/@primer/view-components/app/components/primer/beta/flash.css +1 -1
  187. data/_sass/@primer/view-components/app/components/primer/beta/label.css +1 -1
  188. data/_sass/@primer/view-components/app/components/primer/beta/link.css +1 -1
  189. data/_sass/@primer/view-components/app/components/primer/beta/link.css.json +1 -0
  190. data/_sass/@primer/view-components/app/components/primer/beta/nav_list.d.ts +17 -0
  191. data/_sass/@primer/view-components/app/components/primer/{alpha → beta}/nav_list.js +28 -100
  192. data/_sass/@primer/view-components/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
  193. data/_sass/@primer/view-components/app/components/primer/beta/nav_list_group_element.js +107 -0
  194. data/_sass/@primer/view-components/app/components/primer/beta/popover.css +1 -1
  195. data/_sass/@primer/view-components/app/components/primer/beta/progress_bar.css +1 -1
  196. data/_sass/@primer/view-components/app/components/primer/beta/state.css +1 -1
  197. data/_sass/@primer/view-components/app/components/primer/beta/subhead.css +1 -1
  198. data/_sass/@primer/view-components/app/components/primer/beta/subhead.css.json +2 -0
  199. data/_sass/@primer/view-components/app/components/primer/beta/timeline_item.css +1 -1
  200. data/_sass/@primer/view-components/app/components/primer/beta/truncate.css +1 -1
  201. data/_sass/@primer/view-components/app/components/primer/dialog_helper.d.ts +15 -0
  202. data/_sass/@primer/view-components/app/components/primer/dialog_helper.js +117 -0
  203. data/_sass/@primer/view-components/app/components/primer/focus_group.js +41 -22
  204. data/_sass/@primer/view-components/app/components/primer/primer.d.ts +6 -2
  205. data/_sass/@primer/view-components/app/components/primer/primer.js +6 -2
  206. data/_sass/@primer/view-components/app/components/primer/scrollable_region.d.ts +13 -0
  207. data/_sass/@primer/view-components/app/components/primer/scrollable_region.js +52 -0
  208. data/_sass/@primer/view-components/lib/primer/forms/primer_multi_input.js +2 -3
  209. data/_sass/@primer/view-components/lib/primer/forms/primer_text_field.js +42 -9
  210. data/_sass/@primer/view-components/lib/primer/forms/toggle_switch_input.js +7 -2
  211. data/_sass/@primer/view-components/package.json +33 -34
  212. data/_sass/@primer/view-components/static/arguments.json +559 -48
  213. data/_sass/@primer/view-components/static/audited_at.json +18 -3
  214. data/_sass/@primer/view-components/static/classes.json +402 -369
  215. data/_sass/@primer/view-components/static/constants.json +104 -17
  216. data/_sass/@primer/view-components/static/info_arch.json +8248 -1640
  217. data/_sass/@primer/view-components/static/previews.json +6225 -1431
  218. data/_sass/@primer/view-components/static/statuses.json +20 -5
  219. data/_sass/jekyll-v4-theme-primer.scss +11 -0
  220. data/assets/js/github-clipboard-copy-element.js +154 -0
  221. data/assets/js/primer-clipboard-copy.js +106 -0
  222. metadata +63 -5
@@ -0,0 +1 @@
1
+ .ActionBar{align-items:center;box-sizing:initial;display:flex!important;flex-grow:1;flex-shrink:1;justify-content:flex-end;min-width:calc(var(--control-medium-size,2rem)*3);overflow:hidden;position:relative}.ActionBar-item-container{box-sizing:initial;height:var(--control-medium-size,2rem);overflow:hidden}.ActionBar-item{float:left;position:relative}.ActionBar-more-menu{float:left}.ActionBar--small{min-width:calc(var(--control-small-size,1.75rem)*3)}.ActionBar--large{min-width:calc(var(--control-large-size,2.5rem)*3)}.ActionBar-divider{border-left:var(--borderWidth-thin,max(1px,.0625rem)) solid var(--borderColor-muted,var(--color-border-muted));bottom:50%;float:left;height:calc(var(--control-medium-size,2rem)/2);margin:0 var(--controlStack-medium-gap-condensed,.5rem);top:50%;transform:translateY(-50%)}.ActionBar--small .ActionBar-divider{margin:0 var(--controlStack-small-gap-condensed,.5rem)}.ActionBar--large .ActionBar-divider{margin:0 var(--controlStack-large-gap-condensed,.5rem)}
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "alpha/action_bar",
3
+ "selectors": [
4
+ ".ActionBar",
5
+ ".ActionBar-item-container",
6
+ ".ActionBar-item",
7
+ ".ActionBar-more-menu",
8
+ ".ActionBar--small",
9
+ ".ActionBar--large",
10
+ ".ActionBar-divider",
11
+ ".ActionBar--small .ActionBar-divider",
12
+ ".ActionBar--large .ActionBar-divider"
13
+ ]
14
+ }
@@ -0,0 +1,17 @@
1
+ import { ActionMenuElement } from './action_menu/action_menu_element';
2
+ declare class ActionBarElement extends HTMLElement {
3
+ #private;
4
+ items: HTMLElement[];
5
+ itemContainer: HTMLElement;
6
+ moreMenu: ActionMenuElement;
7
+ connectedCallback(): void;
8
+ disconnectedCallback(): void;
9
+ menuItemClick(event: Event): void;
10
+ update(): void;
11
+ }
12
+ declare global {
13
+ interface Window {
14
+ ActionBarElement: typeof ActionBarElement;
15
+ }
16
+ }
17
+ export {};
@@ -0,0 +1,180 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
13
+ if (kind === "m") throw new TypeError("Private method is not writable");
14
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
16
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
17
+ };
18
+ var _ActionBarElement_instances, _ActionBarElement_focusZoneAbortController, _ActionBarElement_firstItem_get, _ActionBarElement_showItem, _ActionBarElement_hideItem, _ActionBarElement_menuItems_get, _ActionBarElement_eachItem;
19
+ import { controller, targets, target } from '@github/catalyst';
20
+ import { focusZone, FocusKeys } from '@primer/behaviors';
21
+ const instersectionObserver = new IntersectionObserver(entries => {
22
+ for (const entry of entries) {
23
+ const action = entry.target;
24
+ if (entry.isIntersecting && action instanceof ActionBarElement) {
25
+ action.update();
26
+ }
27
+ }
28
+ });
29
+ const resizeObserver = new ResizeObserver(entries => {
30
+ for (const entry of entries) {
31
+ const action = entry.target;
32
+ if (action instanceof ActionBarElement) {
33
+ action.update();
34
+ }
35
+ }
36
+ });
37
+ // These are definitely used, but eslint is dumb apparently
38
+ // eslint-disable-next-line no-unused-vars
39
+ var ItemType;
40
+ (function (ItemType) {
41
+ // eslint-disable-next-line no-unused-vars
42
+ ItemType[ItemType["Item"] = 0] = "Item";
43
+ // eslint-disable-next-line no-unused-vars
44
+ ItemType[ItemType["Divider"] = 1] = "Divider";
45
+ })(ItemType || (ItemType = {}));
46
+ let ActionBarElement = class ActionBarElement extends HTMLElement {
47
+ constructor() {
48
+ super(...arguments);
49
+ _ActionBarElement_instances.add(this);
50
+ _ActionBarElement_focusZoneAbortController.set(this, null);
51
+ }
52
+ connectedCallback() {
53
+ // Calculate the width of all the items before hiding anything
54
+ for (const item of this.items) {
55
+ const width = item.getBoundingClientRect().width;
56
+ const marginLeft = parseInt(window.getComputedStyle(item)?.marginLeft, 10);
57
+ const marginRight = parseInt(window.getComputedStyle(item)?.marginRight, 10);
58
+ item.setAttribute('data-offset-width', `${width + marginLeft + marginRight}`);
59
+ }
60
+ resizeObserver.observe(this);
61
+ instersectionObserver.observe(this);
62
+ requestAnimationFrame(() => {
63
+ // This overflow visible is needed for browsers that don't support PopoverElement
64
+ // to ensure the menu and tooltips are visible when the action bar is in a collapsed state
65
+ // once popover is fully supported we can remove this.style.overflow = 'visible'
66
+ this.style.overflow = 'visible';
67
+ this.update();
68
+ });
69
+ }
70
+ disconnectedCallback() {
71
+ resizeObserver.unobserve(this);
72
+ instersectionObserver.unobserve(this);
73
+ }
74
+ menuItemClick(event) {
75
+ const currentTarget = event.currentTarget;
76
+ const id = currentTarget?.getAttribute('data-for');
77
+ if (id) {
78
+ document.getElementById(id)?.click();
79
+ }
80
+ }
81
+ update() {
82
+ const firstItem = __classPrivateFieldGet(this, _ActionBarElement_instances, "a", _ActionBarElement_firstItem_get);
83
+ if (!firstItem)
84
+ return;
85
+ const firstItemTop = firstItem.getBoundingClientRect().top;
86
+ let previousItemType = null;
87
+ __classPrivateFieldGet(this, _ActionBarElement_instances, "m", _ActionBarElement_eachItem).call(this, (item, index, type) => {
88
+ const itemTop = item.getBoundingClientRect().top;
89
+ if (type === ItemType.Item) {
90
+ if (itemTop > firstItemTop) {
91
+ __classPrivateFieldGet(this, _ActionBarElement_instances, "m", _ActionBarElement_hideItem).call(this, index);
92
+ if (this.moreMenu.hidden) {
93
+ this.moreMenu.hidden = false;
94
+ }
95
+ if (previousItemType === ItemType.Divider) {
96
+ __classPrivateFieldGet(this, _ActionBarElement_instances, "m", _ActionBarElement_hideItem).call(this, index - 1);
97
+ }
98
+ }
99
+ else {
100
+ __classPrivateFieldGet(this, _ActionBarElement_instances, "m", _ActionBarElement_showItem).call(this, index);
101
+ if (index === this.items.length - 1) {
102
+ this.moreMenu.hidden = true;
103
+ }
104
+ if (previousItemType === ItemType.Divider) {
105
+ __classPrivateFieldGet(this, _ActionBarElement_instances, "m", _ActionBarElement_showItem).call(this, index - 1);
106
+ }
107
+ }
108
+ }
109
+ previousItemType = type;
110
+ return true;
111
+ });
112
+ if (__classPrivateFieldGet(this, _ActionBarElement_focusZoneAbortController, "f")) {
113
+ __classPrivateFieldGet(this, _ActionBarElement_focusZoneAbortController, "f").abort();
114
+ }
115
+ __classPrivateFieldSet(this, _ActionBarElement_focusZoneAbortController, focusZone(this, {
116
+ bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.HomeAndEnd,
117
+ focusOutBehavior: 'wrap',
118
+ focusableElementFilter: element => {
119
+ const idx = this.items.indexOf(element.parentElement);
120
+ const elementIsVisibleItem = idx > -1 && this.items[idx].style.visibility === 'visible';
121
+ const elementIsVisibleActionMenuInvoker = element === this.moreMenu.invokerElement && !this.moreMenu.hidden;
122
+ return elementIsVisibleItem || elementIsVisibleActionMenuInvoker;
123
+ },
124
+ }), "f");
125
+ }
126
+ };
127
+ _ActionBarElement_focusZoneAbortController = new WeakMap();
128
+ _ActionBarElement_instances = new WeakSet();
129
+ _ActionBarElement_firstItem_get = function _ActionBarElement_firstItem_get() {
130
+ let foundItem = null;
131
+ __classPrivateFieldGet(this, _ActionBarElement_instances, "m", _ActionBarElement_eachItem).call(this, (item, _index, type) => {
132
+ if (type === ItemType.Item) {
133
+ foundItem = item;
134
+ return false;
135
+ }
136
+ return true;
137
+ });
138
+ return foundItem;
139
+ };
140
+ _ActionBarElement_showItem = function _ActionBarElement_showItem(index) {
141
+ const item = this.items[index];
142
+ const menuItem = __classPrivateFieldGet(this, _ActionBarElement_instances, "a", _ActionBarElement_menuItems_get)[index];
143
+ if (!item || !menuItem)
144
+ return;
145
+ item.style.setProperty('visibility', 'visible');
146
+ menuItem.hidden = true;
147
+ };
148
+ _ActionBarElement_hideItem = function _ActionBarElement_hideItem(index) {
149
+ const item = this.items[index];
150
+ const menuItem = __classPrivateFieldGet(this, _ActionBarElement_instances, "a", _ActionBarElement_menuItems_get)[index];
151
+ if (!item || !menuItem)
152
+ return;
153
+ item.style.setProperty('visibility', 'hidden');
154
+ menuItem.hidden = false;
155
+ };
156
+ _ActionBarElement_menuItems_get = function _ActionBarElement_menuItems_get() {
157
+ return this.moreMenu.querySelectorAll('[role="menu"] > li');
158
+ };
159
+ _ActionBarElement_eachItem = function _ActionBarElement_eachItem(callback) {
160
+ for (let i = 0; i < this.items.length; i++) {
161
+ const item = this.items[i];
162
+ const type = item.classList.contains('ActionBar-divider') ? ItemType.Divider : ItemType.Item;
163
+ if (!callback(item, i, type)) {
164
+ break;
165
+ }
166
+ }
167
+ };
168
+ __decorate([
169
+ targets
170
+ ], ActionBarElement.prototype, "items", void 0);
171
+ __decorate([
172
+ target
173
+ ], ActionBarElement.prototype, "itemContainer", void 0);
174
+ __decorate([
175
+ target
176
+ ], ActionBarElement.prototype, "moreMenu", void 0);
177
+ ActionBarElement = __decorate([
178
+ controller
179
+ ], ActionBarElement);
180
+ window.ActionBarElement = ActionBarElement;
@@ -1 +1 @@
1
- :root{--actionListContent-paddingBlock:var(--control-medium-paddingBlock,6px)}.ActionListHeader{margin-bottom:var(--base-size-16,16px);margin-left:var(--base-size-8,8px)}.ActionListWrap{list-style:none}.ActionListWrap--inset{padding:var(--base-size-8,8px)}.ActionListWrap--divided .ActionListItem-label:before{height:1px}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline:before,.ActionListWrap--divided .ActionListItem-label:before{background:var(--color-action-list-item-inline-divider);content:"";display:block;position:absolute;top:calc(var(--actionListContent-paddingBlock)*-1);width:100%}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline:before{height:var(--borderWidth-thin,1px)}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label:before{content:unset}.ActionList-sectionDivider+.ActionListItem .ActionListItem-descriptionWrap--inline:before,.ActionList-sectionDivider+.ActionListItem .ActionListItem-label:before,.ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline:before,.ActionListItem:first-of-type .ActionListItem-label:before,.ActionListWrap--divided .ActionListItem--navActive .ActionListItem-label:before,.ActionListWrap--divided .ActionListItem--navActive+.ActionListItem .ActionListItem-label:before{visibility:hidden}.ActionListItem{background-color:initial;border-radius:var(--borderRadius-medium,6px);list-style:none;position:relative}.ActionListItem:active,.ActionListItem:hover{cursor:pointer}@media (hover:hover){.ActionListItem:hover .ActionListItem-descriptionWrap--inline:before,.ActionListItem:hover .ActionListItem-label:before,.ActionListItem:hover+.ActionListItem .ActionListItem-descriptionWrap--inline:before,.ActionListItem:hover+.ActionListItem .ActionListItem-label:before{visibility:hidden}}.ActionListItem[hidden]+.ActionList-sectionDivider{display:none}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent{z-index:1}@media (hover:hover){.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover{background-color:var(--color-action-list-item-default-hover-bg)}}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active{background-color:var(--color-action-list-item-default-active-bg)}@media (hover:hover){.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover,.ActionListItem:not(.ActionListItem--hasSubItem):hover{background-color:var(--color-action-list-item-default-hover-bg);cursor:pointer}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover:not(.ActionListItem--navActive,:focus-visible),.ActionListItem:not(.ActionListItem--hasSubItem):hover:not(.ActionListItem--navActive,:focus-visible){box-shadow:var(--borderInset-thin,1px) var(--color-action-list-item-default-active-border);outline:solid var(--borderWidth-thin,1px) #0000;outline-offset:calc(var(--borderWidth-thin, 1px)*-1)}}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active,.ActionListItem:not(.ActionListItem--hasSubItem):active{background:var(--color-action-list-item-default-active-bg)}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active:not(.ActionListItem--navActive),.ActionListItem:not(.ActionListItem--hasSubItem):active:not(.ActionListItem--navActive){box-shadow:var(--borderInset-thin,1px) var(--color-action-list-item-default-active-border);outline:solid var(--borderWidth-thin,1px) #0000;outline-offset:calc(var(--borderWidth-thin, 1px)*-1)}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active .ActionListItem-label:before,.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active+.ActionListItem .ActionListItem-label:before,.ActionListItem:not(.ActionListItem--hasSubItem):active .ActionListItem-label:before,.ActionListItem:not(.ActionListItem--hasSubItem):active+.ActionListItem .ActionListItem-label:before{visibility:hidden}.ActionListItem[aria-checked=true] .ActionListItem-multiSelectCheckmark,.ActionListItem[aria-selected=true] .ActionListItem-multiSelectCheckmark{opacity:1;transition:visibility 0 linear 0,opacity 50ms;visibility:visible}.ActionListItem[aria-checked=true] .ActionListItem-singleSelectCheckmark,.ActionListItem[aria-selected=true] .ActionListItem-singleSelectCheckmark{visibility:visible}@media screen and (prefers-reduced-motion:no-preference){.ActionListItem[aria-checked=true] .ActionListItem-singleSelectCheckmark,.ActionListItem[aria-selected=true] .ActionListItem-singleSelectCheckmark{animation:checkmarkIn .2s cubic-bezier(.11,0,.5,0) forwards;@keyframes checkmarkIn{0%{clip-path:inset(16px 0 0 0)}to{clip-path:inset(0 0 0 0)}}}}.ActionListItem[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect,.ActionListItem[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect{fill:var(--color-accent-fg);stroke:var(--color-accent-fg);stroke-width:var(--borderWidth-thin,1px)}.ActionListItem[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark,.ActionListItem[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark{fill:var(--color-fg-on-emphasis)}.ActionListItem[aria-checked=false] .ActionListItem-multiSelectCheckmark,.ActionListItem[aria-selected=false] .ActionListItem-multiSelectCheckmark{opacity:0;transition:visibility 0 linear 50ms,opacity 50ms;visibility:hidden}.ActionListItem[aria-checked=false] .ActionListItem-singleSelectCheckmark,.ActionListItem[aria-selected=false] .ActionListItem-singleSelectCheckmark{clip-path:inset(16px 0 0 0);transition:visibility 0s linear .2s;visibility:hidden}@media screen and (prefers-reduced-motion:no-preference){.ActionListItem[aria-checked=false] .ActionListItem-singleSelectCheckmark,.ActionListItem[aria-selected=false] .ActionListItem-singleSelectCheckmark{animation:checkmarkOut .2s cubic-bezier(.11,0,.5,0) forwards;@keyframes checkmarkOut{0%{clip-path:inset(0 0 0 0)}to{clip-path:inset(16px 0 0 0)}}}}.ActionListItem[aria-checked=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect,.ActionListItem[aria-selected=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect{fill:var(--color-canvas-default);stroke:var(--color-border-default);stroke-width:var(--borderWidth-thin,1px)}.ActionListItem[aria-checked=false] .ActionListItem-multiSelectIconRect,.ActionListItem[aria-selected=false] .ActionListItem-multiSelectIconRect{fill:var(--color-canvas-default);border:var(--borderWidth-thin,1px) solid var(--color-border-default)}.ActionListItem[aria-selected=true]{background:var(--color-action-list-item-default-selected-bg);font-weight:var(--base-text-weight-normal,400)}@media (hover:hover){.ActionListItem[aria-selected=true]:hover{background-color:var(--color-action-list-item-default-hover-bg)}}.ActionListItem[aria-selected=true]+.ActionListItem:before,.ActionListItem[aria-selected=true]:before{visibility:hidden}.ActionListItem[aria-selected=true]:after{background:var(--color-accent-fg);border-radius:var(--borderRadius-medium,6px);content:"";height:var(--base-size-24,24px);left:calc(var(--base-size-4, 4px)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,4px)}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger){background:var(--color-action-list-item-default-selected-bg)}@media (hover:hover){.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover{background-color:var(--color-action-list-item-default-hover-bg)}}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)+.ActionListItem:before,.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):before{visibility:hidden}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):after{background:var(--color-accent-fg);border-radius:var(--borderRadius-medium,6px);content:"";height:var(--base-size-24,24px);left:calc(var(--base-size-8, 8px)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,4px)}.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-description,.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-label,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-description,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-label{color:var(--color-primer-fg-disabled)}.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-visual,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-visual{fill:var(--color-primer-fg-disabled)}@media (hover:hover){.ActionListItem.ActionListItem--disabled:hover,.ActionListItem[aria-disabled=true]:hover{background-color:initial;cursor:not-allowed}}.ActionListItem.ActionListItem--danger .ActionListItem-label,.ActionListItem.ActionListItem--danger .ActionListItem-visual{color:var(--color-danger-fg)}@media (hover:hover){.ActionListItem.ActionListItem--danger:hover{background:var(--color-action-list-item-danger-hover-bg)}.ActionListItem.ActionListItem--danger:hover .ActionListItem-label,.ActionListItem.ActionListItem--danger:hover .ActionListItem-visual{color:var(--color-action-list-item-danger-hover-text)}}.ActionListItem.ActionListItem--danger .ActionListContent:active{background:var(--color-action-list-item-danger-active-bg)}.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-label,.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-visual{color:var(--color-action-list-item-danger-hover-text)}.ActionListContent{-webkit-tap-highlight-color:transparent;align-items:start;background-color:initial;border:none;border-radius:var(--borderRadius-medium,6px);color:var(--color-fg-default);display:grid;grid-template-areas:"leadingAction leadingVisual label trailingVisual trailingAction";grid-template-columns:min-content min-content minmax(0,auto) min-content min-content;grid-template-rows:min-content;padding-block:var(--actionListContent-paddingBlock);padding-inline:var(--control-medium-paddingInline-condensed,8px);position:relative;text-align:left;touch-action:manipulation;transition:background 33.333ms linear;-webkit-user-select:none;user-select:none;width:100%}.ActionListContent>:not(:last-child){margin-right:var(--control-medium-gap,8px)}.ActionListContent:hover{text-decoration:none}.ActionListContent[aria-disabled=true] .ActionListItem-description,.ActionListContent[aria-disabled=true] .ActionListItem-label{color:var(--color-primer-fg-disabled)}.ActionListContent[aria-disabled=true] .ActionListItem-visual{fill:var(--color-primer-fg-disabled)}@media (hover:hover){.ActionListContent[aria-disabled=true]:hover{background-color:initial;cursor:not-allowed}}@media screen and (prefers-reduced-motion:no-preference){.ActionListContent[aria-expanded]+.ActionList--subGroup{transition:opacity .16s cubic-bezier(.25,1,.5,1),transform .16s cubic-bezier(.25,1,.5,1)}}.ActionListContent[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-24,24px)}.ActionListContent.ActionListContent--visual16[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-32,32px)}.ActionListContent.ActionListContent--visual20[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-36,36px)}.ActionListContent.ActionListContent--visual24[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-40,40px)}.ActionListContent[aria-expanded=true] .ActionListItem-collapseIcon{transform:scaleY(-1);transition:transform .12s linear}.ActionListContent[aria-expanded=true]+.ActionList--subGroup{height:auto;opacity:1;overflow:visible;transform:translateY(0);visibility:visible}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=true]>.ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListContent[aria-expanded=false] .ActionListItem-collapseIcon{transform:scaleY(1);transition:transform .12s linear}.ActionListContent[aria-expanded=false]+.ActionList--subGroup{height:0;opacity:0;overflow:hidden;transform:translateY(calc(var(--base-size-16, 16px)*-1));visibility:hidden}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]{background:var(--color-action-list-item-default-selected-bg)}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false] .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]+.ActionListItem:before,.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:before{visibility:hidden}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:after{background:var(--color-accent-fg);border-radius:var(--borderRadius-medium,6px);content:"";height:var(--base-size-24,24px);left:calc(var(--base-size-8, 8px)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,4px)}.ActionListContent.ActionListContent--sizeLarge{--actionListContent-paddingBlock:var(--control-large-paddingBlock,0.625rem)}.ActionListContent.ActionListContent--sizeXLarge{--actionListContent-paddingBlock:var(--control-xlarge-paddingBlock,0.875rem)}@media (pointer:coarse){.ActionListContent{--actionListContent-paddingBlock:var(--control-large-paddingBlock,0.625rem)}}.ActionListContent.ActionListContent--blockDescription .ActionListItem-visual{place-self:start}.ActionListItem-action--leading{grid-area:leadingAction}.ActionListItem-visual--leading{grid-area:leadingVisual}.ActionListItem-visual--trailing{grid-area:trailingVisual}.ActionListItem-action--trailing{grid-area:trailingAction}.ActionListItem-descriptionWrap{display:flex;flex-direction:column;gap:var(--base-size-4,4px);grid-area:label}.ActionListItem-descriptionWrap .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListItem-descriptionWrap--inline{align-items:baseline;flex-direction:row;gap:var(--base-size-8,8px);position:relative}.ActionListItem-description{color:var(--color-fg-muted);font-size:var(--text-body-size-small,12px);font-weight:var(--base-text-weight-normal,400);line-height:var(--text-body-lineHeight-small,1.66667)}.ActionListItem-action,.ActionListItem-visual{fill:var(--color-fg-muted);align-items:center;color:var(--color-fg-muted);display:flex;min-height:var(--control-medium-lineBoxHeight,20px);pointer-events:none}.ActionListItem-label{color:var(--color-fg-default);font-size:var(--text-body-size-medium,14px);font-weight:var(--base-text-weight-normal,400);grid-area:label;line-height:var(--text-body-lineHeight-medium,1.42857);position:relative}.ActionListItem-label--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ActionListItem--subItem>.ActionListContent>.ActionListItem-label{font-size:var(--text-body-size-small,12px);line-height:var(--text-body-lineHeight-small,1.66667)}.ActionListItem--withActions{align-items:center;display:flex;flex-wrap:nowrap}.ActionListItem-trailingAction{border-bottom-left-radius:0;border-top-left-radius:0}.ActionListItem--trailingActionHover .ActionListItem-trailingAction{visibility:hidden}.ActionListItem--trailingActionHover:focus-within .ActionListItem-trailingAction,.ActionListItem--trailingActionHover:hover .ActionListItem-trailingAction{visibility:visible}.ActionList-sectionDivider:not(:empty){color:var(--color-fg-muted);display:flex;flex-direction:column;font-size:var(--text-body-size-small,12px);font-weight:var(--base-text-weight-semibold,600);line-height:var(--text-body-lineHeight-small,1.66667);padding-block:var(--base-size-8,8px);padding-inline:var(--actionListContent-paddingBlock)}.ActionList-sectionDivider:empty{background:var(--color-action-list-item-inline-divider);border:0;display:block;height:var(--borderWidth-thin,1px);list-style:none;margin-block-end:var(--base-size-8,8px);margin-block-start:calc(var(--base-size-8, 8px) - var(--borderWidth-thin, 1px));margin-inline:calc(var(--base-size-8, 8px)*-1);padding:0}.ActionList-sectionDivider .ActionList-sectionDivider-title{color:var(--color-fg-muted);font-size:var(--text-body-size-small,12px);font-weight:var(--base-text-weight-semibold,600)}.ActionList-sectionDivider--filled{background:var(--color-canvas-subtle);border-bottom:solid var(--borderWidth-thin,1px) var(--color-action-list-item-inline-divider);border-top:solid var(--borderWidth-thin,1px) var(--color-action-list-item-inline-divider);margin-block-end:var(--base-size-8,8px);margin-block-start:calc(var(--base-size-8, 8px) - var(--borderWidth-thin, 1px));margin-inline:calc(var(--base-size-8, 8px)*-1)}.ActionList-sectionDivider--filled:empty{box-sizing:border-box;height:var(--base-size-8,8px)}.ActionList-sectionDivider--filled:first-child{margin-block-start:0}
1
+ :root{--actionListContent-paddingBlock:var(--control-medium-paddingBlock,0.375rem)}.ActionListHeader{margin-bottom:var(--base-size-16,1rem);margin-left:var(--base-size-8,.5rem)}.ActionListWrap{list-style:none}.ActionListWrap--inset,.ActionListWrap--inset[popover]{padding:var(--base-size-8,.5rem)}.ActionListWrap--divided .ActionListItem-label:before{height:1px}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline:before,.ActionListWrap--divided .ActionListItem-label:before{background:var(--borderColor-muted,var(--color-action-list-item-inline-divider));content:"";display:block;position:absolute;top:calc(var(--actionListContent-paddingBlock)*-1);width:100%}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline:before{height:var(--borderWidth-thin,max(1px,.0625rem))}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label:before{content:unset}.ActionList-sectionDivider+.ActionListItem .ActionListItem-descriptionWrap--inline:before,.ActionList-sectionDivider+.ActionListItem .ActionListItem-label:before,.ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline:before,.ActionListItem:first-of-type .ActionListItem-label:before,.ActionListWrap--divided .ActionListItem--navActive .ActionListItem-label:before,.ActionListWrap--divided .ActionListItem--navActive+.ActionListItem .ActionListItem-label:before{visibility:hidden}.ActionListItem{background-color:var(--control-transparent-bgColor-rest,#0000);border-radius:var(--borderRadius-medium,.375rem);list-style:none;position:relative}.ActionListItem:active,.ActionListItem:hover{cursor:pointer}@media (hover:hover){.ActionListItem:hover .ActionListItem-descriptionWrap--inline:before,.ActionListItem:hover .ActionListItem-label:before,.ActionListItem:hover+.ActionListItem .ActionListItem-descriptionWrap--inline:before,.ActionListItem:hover+.ActionListItem .ActionListItem-label:before{visibility:hidden}}.ActionListItem[hidden]+.ActionList-sectionDivider{display:none}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent{z-index:1}@media (hover:hover){.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg))}}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active{background-color:var(--control-transparent-bgColor-active,var(--color-action-list-item-default-active-bg))}@media (hover:hover){.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover,.ActionListItem:not(.ActionListItem--hasSubItem):hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg));cursor:pointer}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover:not(.ActionListItem--navActive,:focus-visible),.ActionListItem:not(.ActionListItem--hasSubItem):hover:not(.ActionListItem--navActive,:focus-visible){box-shadow:var(--boxShadow-thin,inset 0 0 0 max(1px,.0625rem)) var(--control-transparent-borderColor-active,var(--color-action-list-item-default-active-border));outline:solid var(--borderWidth-thin,max(1px,.0625rem)) #0000;outline-offset:calc(var(--borderWidth-thin,max(1px, .0625rem))*-1)}}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active,.ActionListItem:not(.ActionListItem--hasSubItem):active{background:var(--control-transparent-bgColor-active,var(--color-action-list-item-default-active-bg))}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active:not(.ActionListItem--navActive),.ActionListItem:not(.ActionListItem--hasSubItem):active:not(.ActionListItem--navActive){box-shadow:var(--boxShadow-thin,inset 0 0 0 max(1px,.0625rem)) var(--control-transparent-borderColor-active,var(--color-action-list-item-default-active-border));outline:solid var(--borderWidth-thin,max(1px,.0625rem)) #0000;outline-offset:calc(var(--borderWidth-thin,max(1px, .0625rem))*-1)}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active .ActionListItem-label:before,.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active+.ActionListItem .ActionListItem-label:before,.ActionListItem:not(.ActionListItem--hasSubItem):active .ActionListItem-label:before,.ActionListItem:not(.ActionListItem--hasSubItem):active+.ActionListItem .ActionListItem-label:before{visibility:hidden}.ActionListItem[aria-selected=true]{background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg));font-weight:var(--base-text-weight-normal,400)}@media (hover:hover){.ActionListItem[aria-selected=true]:hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg))}}.ActionListItem[aria-selected=true]+.ActionListItem:before,.ActionListItem[aria-selected=true]:before{visibility:hidden}.ActionListItem[aria-selected=true]:after{background:var(--borderColor-accent-emphasis,var(--color-accent-emphasis));border-radius:var(--borderRadius-medium,.375rem);content:"";height:var(--base-size-24,1.5rem);left:calc(var(--base-size-4,.25rem)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,.25rem)}.ActionListItem.ActionListItem--navActive{outline:2px solid #0000}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger){background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg))}@media (hover:hover){.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg))}}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)+.ActionListItem:before,.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):before{visibility:hidden}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):after{background:var(--borderColor-accent-emphasis,var(--color-accent-emphasis));border-radius:var(--borderRadius-medium,.375rem);content:"";height:var(--base-size-24,1.5rem);left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,.25rem)}.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-description,.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-label,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-description,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-label{color:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-visual,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-visual{fill:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}@media (hover:hover){.ActionListItem.ActionListItem--disabled:hover,.ActionListItem[aria-disabled=true]:hover{background-color:initial;cursor:not-allowed}}.ActionListItem.ActionListItem--danger .ActionListItem-label,.ActionListItem.ActionListItem--danger .ActionListItem-visual{color:var(--control-danger-fgColor-rest,var(--color-danger-fg))}@media (hover:hover){.ActionListItem.ActionListItem--danger:hover{background:var(--control-danger-bgColor-hover,var(--color-action-list-item-danger-hover-bg))}.ActionListItem.ActionListItem--danger:hover .ActionListItem-description,.ActionListItem.ActionListItem--danger:hover .ActionListItem-label,.ActionListItem.ActionListItem--danger:hover .ActionListItem-visual{color:var(--control-danger-fgColor-hover,var(--color-action-list-item-danger-hover-text))}}.ActionListItem.ActionListItem--danger .ActionListContent:active{background:var(--control-danger-bgColor-active,var(--color-action-list-item-danger-active-bg))}.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-description,.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-label,.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-visual{color:var(--control-danger-fgColor-hover,var(--color-action-list-item-danger-hover-text))}.ActionListContent{background-color:initial;border:none;border-radius:var(--borderRadius-medium,.375rem);color:var(--control-fgColor-rest,var(--color-fg-default));display:grid;padding-block:var(--actionListContent-paddingBlock);padding-inline:var(--control-medium-paddingInline-condensed,.5rem);position:relative;text-align:left;touch-action:manipulation;transition:background 33.333ms linear;-webkit-user-select:none;user-select:none;width:100%;-webkit-tap-highlight-color:transparent;align-items:start;grid-template-areas:"leadingAction leadingVisual label trailingVisual trailingAction";grid-template-columns:min-content min-content minmax(0,auto) min-content min-content;grid-template-rows:min-content}.ActionListContent>:not(:last-child){margin-right:var(--control-medium-gap,.5rem)}.ActionListContent:hover{-webkit-text-decoration:none;text-decoration:none}.ActionListContent[aria-disabled=true] .ActionListItem-description,.ActionListContent[aria-disabled=true] .ActionListItem-label{color:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}.ActionListContent[aria-disabled=true] .ActionListItem-visual{fill:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}@media (hover:hover){.ActionListContent[aria-disabled=true]:hover{background-color:initial;cursor:not-allowed}}@media screen and (prefers-reduced-motion:no-preference){.ActionListContent[aria-expanded]+.ActionList--subGroup{transition:opacity .16s cubic-bezier(.25,1,.5,1),transform .16s cubic-bezier(.25,1,.5,1)}}.ActionListContent[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-24,1.5rem)}.ActionListContent.ActionListContent--visual16[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-32,2rem)}.ActionListContent.ActionListContent--visual20[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-36,2.25rem)}.ActionListContent.ActionListContent--visual24[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-40,2.5rem)}.ActionListContent[aria-expanded=true] .ActionListItem-collapseIcon{transform:scaleY(-1);transition:transform .12s linear}.ActionListContent[aria-expanded=true]+.ActionList--subGroup{height:auto;opacity:1;overflow:visible;transform:translateY(0);visibility:visible}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=true]>.ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListContent[aria-expanded=false] .ActionListItem-collapseIcon{transform:scaleY(1);transition:transform .12s linear}.ActionListContent[aria-expanded=false]+.ActionList--subGroup{height:0;opacity:0;overflow:hidden;transform:translateY(calc(var(--base-size-16,1rem)*-1));visibility:hidden}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]{background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg))}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false] .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]+.ActionListItem:before,.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:before{visibility:hidden}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:after{background:var(--borderColor-accent-emphasis,var(--color-accent-emphasis));border-radius:var(--borderRadius-medium,.375rem);content:"";height:var(--base-size-24,1.5rem);left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,.25rem)}.ActionListContent[aria-checked=true] .ActionListItem-multiSelectCheckmark,.ActionListContent[aria-selected=true] .ActionListItem-multiSelectCheckmark{opacity:1;transition:visibility 0 linear 0,opacity 50ms;visibility:visible}.ActionListContent[aria-checked=true] .ActionListItem-singleSelectCheckmark,.ActionListContent[aria-selected=true] .ActionListItem-singleSelectCheckmark{visibility:visible}.ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect,.ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect{fill:var(--control-checked-bgColor-rest,var(--color-switch-track-checked-bg));stroke:var(--control-checked-bgColor-rest,var(--color-switch-track-checked-bg));stroke-width:var(--borderWidth-thin,1px)}.ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark,.ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark{fill:var(--fgColor-onEmphasis,var(--color-fg-on-emphasis))}.ActionListContent[aria-checked=false] .ActionListItem-multiSelectCheckmark,.ActionListContent[aria-selected=false] .ActionListItem-multiSelectCheckmark{opacity:0;transition:visibility 0 linear 50ms,opacity 50ms;visibility:hidden}.ActionListContent[aria-checked=false] .ActionListItem-singleSelectCheckmark,.ActionListContent[aria-selected=false] .ActionListItem-singleSelectCheckmark{transition:visibility 0s linear .2s;visibility:hidden}.ActionListContent[aria-checked=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect,.ActionListContent[aria-selected=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect{fill:var(--bgColor-default,var(--color-canvas-default));stroke:var(--control-borderColor-rest,var(--color-btn-border));stroke-width:var(--borderWidth-thin,1px)}.ActionListContent[aria-checked=false] .ActionListItem-multiSelectIconRect,.ActionListContent[aria-selected=false] .ActionListItem-multiSelectIconRect{fill:var(--bgColor-default,var(--color-canvas-default));border:var(--borderWidth-thin,1px) solid var(--control-borderColor-rest,var(--color-btn-border))}.ActionListContent.ActionListContent--sizeLarge{--actionListContent-paddingBlock:var(--control-large-paddingBlock,0.625rem)}.ActionListContent.ActionListContent--sizeXLarge{--actionListContent-paddingBlock:var(--control-xlarge-paddingBlock,0.875rem)}@media (pointer:coarse){.ActionListContent{--actionListContent-paddingBlock:var(--control-large-paddingBlock,0.625rem)}}.ActionListContent.ActionListContent--blockDescription .ActionListItem-visual{place-self:start}.ActionListItem-action--leading{grid-area:leadingAction}.ActionListItem-visual--leading{grid-area:leadingVisual}.ActionListItem-visual--trailing{grid-area:trailingVisual}.ActionListItem-action--trailing{grid-area:trailingAction}.ActionListItem-visual--leading svg{fill:currentcolor}.ActionListItem-descriptionWrap{display:flex;flex-direction:column;gap:var(--base-size-4,.25rem);grid-area:label}.ActionListItem-descriptionWrap .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListItem-descriptionWrap--inline{align-items:baseline;flex-direction:row;gap:var(--base-size-8,.5rem);position:relative}.ActionListItem-description{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-normal,400);line-height:var(--text-body-lineHeight-small,1.6666)}.ActionListItem-action,.ActionListItem-visual{color:var(--fgColor-muted,var(--color-fg-muted));display:flex;min-height:var(--control-medium-lineBoxHeight,1.25rem);pointer-events:none;fill:var(--fgColor-muted,var(--color-fg-muted));align-items:center}.ActionListItem-label{color:var(--fgColor-default,var(--color-fg-default));font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-normal,400);grid-area:label;line-height:var(--text-body-lineHeight-medium,1.4285);position:relative}.ActionListItem-label--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ActionListItem--subItem>.ActionListContent>.ActionListItem-label{font-size:var(--text-body-size-small,.75rem);line-height:var(--text-body-lineHeight-small,1.6666)}.ActionListItem--withActions{align-items:center;display:flex;flex-wrap:nowrap}.ActionListItem-trailingAction{border-bottom-left-radius:0;border-top-left-radius:0}.ActionListItem--trailingActionHover .ActionListItem-trailingAction{visibility:hidden}.ActionListItem--trailingActionHover:focus-within .ActionListItem-trailingAction,.ActionListItem--trailingActionHover:hover .ActionListItem-trailingAction{visibility:visible}.ActionList-sectionDivider:not(:empty){color:var(--fgColor-muted,var(--color-fg-muted));display:flex;flex-direction:column;font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-semibold,600);line-height:var(--text-body-lineHeight-small,1.6666);padding-block:var(--base-size-8,.5rem);padding-inline:var(--actionListContent-paddingBlock)}.ActionList-sectionDivider:empty{background:var(--borderColor-muted,var(--color-action-list-item-inline-divider));border:0;display:block;height:var(--borderWidth-thin,max(1px,.0625rem));list-style:none;margin-block-end:var(--base-size-8,.5rem);margin-block-start:calc(var(--base-size-8,.5rem) - var(--borderWidth-thin,max(1px, .0625rem)));margin-inline:calc(var(--base-size-8,.5rem)*-1);padding:0}.ActionList-sectionDivider .ActionList-sectionDivider-title{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-semibold,600)}.ActionList-sectionDivider--filled{background:var(--bgColor-muted,var(--color-canvas-subtle));border-bottom:solid var(--borderWidth-thin,max(1px,.0625rem)) var(--borderColor-muted,var(--color-action-list-item-inline-divider));border-top:solid var(--borderWidth-thin,max(1px,.0625rem)) var(--borderColor-muted,var(--color-action-list-item-inline-divider));margin-block-end:var(--base-size-8,.5rem);margin-block-start:calc(var(--base-size-8,.5rem) - var(--borderWidth-thin,max(1px, .0625rem)));margin-inline:calc(var(--base-size-8,.5rem)*-1)}.ActionList-sectionDivider--filled:empty{box-sizing:border-box;height:var(--base-size-8,.5rem)}.ActionList-sectionDivider--filled:first-child{margin-block-start:0}
@@ -5,6 +5,7 @@
5
5
  ".ActionListHeader",
6
6
  ".ActionListWrap",
7
7
  ".ActionListWrap--inset",
8
+ ".ActionListWrap--inset[popover]",
8
9
  ".ActionListWrap--divided .ActionListItem-label:before",
9
10
  ".ActionListWrap--divided .ActionListItem-descriptionWrap--inline:before",
10
11
  ".ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label:before",
@@ -35,27 +36,12 @@
35
36
  ".ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active+.ActionListItem .ActionListItem-label:before",
36
37
  ".ActionListItem:not(.ActionListItem--hasSubItem):active .ActionListItem-label:before",
37
38
  ".ActionListItem:not(.ActionListItem--hasSubItem):active+.ActionListItem .ActionListItem-label:before",
38
- ".ActionListItem[aria-checked=true] .ActionListItem-multiSelectCheckmark",
39
- ".ActionListItem[aria-selected=true] .ActionListItem-multiSelectCheckmark",
40
- ".ActionListItem[aria-checked=true] .ActionListItem-singleSelectCheckmark",
41
- ".ActionListItem[aria-selected=true] .ActionListItem-singleSelectCheckmark",
42
- ".ActionListItem[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
43
- ".ActionListItem[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
44
- ".ActionListItem[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
45
- ".ActionListItem[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
46
- ".ActionListItem[aria-checked=false] .ActionListItem-multiSelectCheckmark",
47
- ".ActionListItem[aria-selected=false] .ActionListItem-multiSelectCheckmark",
48
- ".ActionListItem[aria-checked=false] .ActionListItem-singleSelectCheckmark",
49
- ".ActionListItem[aria-selected=false] .ActionListItem-singleSelectCheckmark",
50
- ".ActionListItem[aria-checked=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
51
- ".ActionListItem[aria-selected=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
52
- ".ActionListItem[aria-checked=false] .ActionListItem-multiSelectIconRect",
53
- ".ActionListItem[aria-selected=false] .ActionListItem-multiSelectIconRect",
54
39
  ".ActionListItem[aria-selected=true]",
55
40
  ".ActionListItem[aria-selected=true]:hover",
56
41
  ".ActionListItem[aria-selected=true]+.ActionListItem:before",
57
42
  ".ActionListItem[aria-selected=true]:before",
58
43
  ".ActionListItem[aria-selected=true]:after",
44
+ ".ActionListItem.ActionListItem--navActive",
59
45
  ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label",
60
46
  ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)",
61
47
  ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover",
@@ -73,9 +59,11 @@
73
59
  ".ActionListItem.ActionListItem--danger .ActionListItem-label",
74
60
  ".ActionListItem.ActionListItem--danger .ActionListItem-visual",
75
61
  ".ActionListItem.ActionListItem--danger:hover",
62
+ ".ActionListItem.ActionListItem--danger:hover .ActionListItem-description",
76
63
  ".ActionListItem.ActionListItem--danger:hover .ActionListItem-label",
77
64
  ".ActionListItem.ActionListItem--danger:hover .ActionListItem-visual",
78
65
  ".ActionListItem.ActionListItem--danger .ActionListContent:active",
66
+ ".ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-description",
79
67
  ".ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-label",
80
68
  ".ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-visual",
81
69
  ".ActionListContent",
@@ -100,6 +88,22 @@
100
88
  ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]+.ActionListItem:before",
101
89
  ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:before",
102
90
  ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:after",
91
+ ".ActionListContent[aria-checked=true] .ActionListItem-multiSelectCheckmark",
92
+ ".ActionListContent[aria-selected=true] .ActionListItem-multiSelectCheckmark",
93
+ ".ActionListContent[aria-checked=true] .ActionListItem-singleSelectCheckmark",
94
+ ".ActionListContent[aria-selected=true] .ActionListItem-singleSelectCheckmark",
95
+ ".ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
96
+ ".ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
97
+ ".ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
98
+ ".ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
99
+ ".ActionListContent[aria-checked=false] .ActionListItem-multiSelectCheckmark",
100
+ ".ActionListContent[aria-selected=false] .ActionListItem-multiSelectCheckmark",
101
+ ".ActionListContent[aria-checked=false] .ActionListItem-singleSelectCheckmark",
102
+ ".ActionListContent[aria-selected=false] .ActionListItem-singleSelectCheckmark",
103
+ ".ActionListContent[aria-checked=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
104
+ ".ActionListContent[aria-selected=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
105
+ ".ActionListContent[aria-checked=false] .ActionListItem-multiSelectIconRect",
106
+ ".ActionListContent[aria-selected=false] .ActionListItem-multiSelectIconRect",
103
107
  ".ActionListContent.ActionListContent--sizeLarge",
104
108
  ".ActionListContent.ActionListContent--sizeXLarge",
105
109
  ".ActionListContent.ActionListContent--blockDescription .ActionListItem-visual",
@@ -107,6 +111,7 @@
107
111
  ".ActionListItem-visual--leading",
108
112
  ".ActionListItem-visual--trailing",
109
113
  ".ActionListItem-action--trailing",
114
+ ".ActionListItem-visual--leading svg",
110
115
  ".ActionListItem-descriptionWrap",
111
116
  ".ActionListItem-descriptionWrap .ActionListItem-label",
112
117
  ".ActionListItem-descriptionWrap--inline",
@@ -1,12 +1,23 @@
1
- import '@github/include-fragment-element';
2
- declare type SelectVariant = 'none' | 'single' | 'multiple' | null;
3
- declare type SelectedItem = {
1
+ import '@oddbird/popover-polyfill';
2
+ import type { IncludeFragmentElement } from '@github/include-fragment-element';
3
+ type SelectVariant = 'none' | 'single' | 'multiple' | null;
4
+ type SelectedItem = {
4
5
  label: string | null | undefined;
5
6
  value: string | null | undefined;
6
7
  element: Element;
7
8
  };
9
+ export type ItemActivatedEvent = {
10
+ item: Element;
11
+ checked: boolean;
12
+ };
13
+ declare global {
14
+ interface HTMLElementEventMap {
15
+ itemActivated: CustomEvent<ItemActivatedEvent>;
16
+ }
17
+ }
8
18
  export declare class ActionMenuElement extends HTMLElement {
9
19
  #private;
20
+ includeFragment: IncludeFragmentElement;
10
21
  get selectVariant(): SelectVariant;
11
22
  set selectVariant(variant: SelectVariant);
12
23
  get dynamicLabelPrefix(): string;
@@ -14,12 +25,23 @@ export declare class ActionMenuElement extends HTMLElement {
14
25
  get dynamicLabel(): boolean;
15
26
  set dynamicLabel(value: boolean);
16
27
  get popoverElement(): HTMLElement | null;
17
- get invokerElement(): HTMLElement | null;
28
+ get invokerElement(): HTMLButtonElement | null;
18
29
  get invokerLabel(): HTMLElement | null;
19
30
  get selectedItems(): SelectedItem[];
20
31
  connectedCallback(): void;
21
32
  disconnectedCallback(): void;
22
33
  handleEvent(event: Event): void;
34
+ get items(): HTMLElement[];
35
+ getItemById(itemId: string): HTMLElement | null;
36
+ isItemDisabled(item: Element | null): boolean;
37
+ disableItem(item: Element | null): void;
38
+ enableItem(item: Element | null): void;
39
+ isItemHidden(item: Element | null): boolean;
40
+ hideItem(item: Element | null): void;
41
+ showItem(item: Element | null): void;
42
+ isItemChecked(item: Element | null): boolean;
43
+ checkItem(item: Element | null): void;
44
+ uncheckItem(item: Element | null): void;
23
45
  }
24
46
  declare global {
25
47
  interface Window {