@mixtint/primer-view-components 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +21 -0
- package/README.md +30 -0
- package/app/assets/images/loading_indicator.svg +1 -0
- package/app/assets/javascripts/components/primer/alpha/action_bar_element.d.ts +17 -0
- package/app/assets/javascripts/components/primer/alpha/action_list.d.ts +16 -0
- package/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts +49 -0
- package/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
- package/app/assets/javascripts/components/primer/alpha/dropdown/menu.d.ts +1 -0
- package/app/assets/javascripts/components/primer/alpha/dropdown.d.ts +1 -0
- package/app/assets/javascripts/components/primer/alpha/modal_dialog.d.ts +18 -0
- package/app/assets/javascripts/components/primer/alpha/segmented_control.d.ts +12 -0
- package/app/assets/javascripts/components/primer/alpha/select_panel_element.d.ts +65 -0
- package/app/assets/javascripts/components/primer/alpha/tab_container.d.ts +1 -0
- package/app/assets/javascripts/components/primer/alpha/toggle_switch.d.ts +34 -0
- package/app/assets/javascripts/components/primer/alpha/tool_tip.d.ts +27 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view.d.ts +42 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view_icon_pair_element.d.ts +15 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view_include_fragment_element.d.ts +9 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view_roving_tab_index.d.ts +3 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.d.ts +45 -0
- package/app/assets/javascripts/components/primer/alpha/x_banner.d.ts +18 -0
- package/app/assets/javascripts/components/primer/anchored_position.d.ts +27 -0
- package/app/assets/javascripts/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
- package/app/assets/javascripts/components/primer/beta/clipboard_copy.d.ts +1 -0
- package/app/assets/javascripts/components/primer/beta/details_toggle_element.d.ts +40 -0
- package/app/assets/javascripts/components/primer/beta/nav_list.d.ts +20 -0
- package/app/assets/javascripts/components/primer/beta/nav_list_group_element.d.ts +19 -0
- package/app/assets/javascripts/components/primer/beta/relative_time.d.ts +1 -0
- package/app/assets/javascripts/components/primer/dialog_helper.d.ts +15 -0
- package/app/assets/javascripts/components/primer/focus_group.d.ts +19 -0
- package/app/assets/javascripts/components/primer/open_project/border_box/collapsible_header.d.ts +11 -0
- package/app/assets/javascripts/components/primer/open_project/collapsible.d.ts +13 -0
- package/app/assets/javascripts/components/primer/open_project/collapsible_section.d.ts +10 -0
- package/app/assets/javascripts/components/primer/open_project/danger_dialog_form_helper.d.ts +14 -0
- package/app/assets/javascripts/components/primer/open_project/filterable_tree_view.d.ts +29 -0
- package/app/assets/javascripts/components/primer/open_project/page_header_element.d.ts +9 -0
- package/app/assets/javascripts/components/primer/open_project/sub_header_element.d.ts +17 -0
- package/app/assets/javascripts/components/primer/open_project/zen_mode_button.d.ts +18 -0
- package/app/assets/javascripts/components/primer/primer.d.ts +40 -0
- package/app/assets/javascripts/components/primer/scrollable_region.d.ts +13 -0
- package/app/assets/javascripts/components/primer/shared_events.d.ts +26 -0
- package/app/assets/javascripts/components/primer/utils.d.ts +1 -0
- package/app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +28 -0
- package/app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/app/assets/javascripts/primer_view_components.js +2 -0
- package/app/assets/javascripts/primer_view_components.js.map +1 -0
- package/app/assets/styles/primer_view_components.css +7336 -0
- package/app/assets/styles/primer_view_components.css.map +1 -0
- package/app/components/primer/alpha/action_bar.css +49 -0
- package/app/components/primer/alpha/action_bar.css.json +14 -0
- package/app/components/primer/alpha/action_bar_element.d.ts +17 -0
- package/app/components/primer/alpha/action_bar_element.js +170 -0
- package/app/components/primer/alpha/action_list.css +526 -0
- package/app/components/primer/alpha/action_list.css.json +117 -0
- package/app/components/primer/alpha/action_list.d.ts +16 -0
- package/app/components/primer/alpha/action_list.js +70 -0
- package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +49 -0
- package/app/components/primer/alpha/action_menu/action_menu_element.js +591 -0
- package/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
- package/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +62 -0
- package/app/components/primer/alpha/auto_complete.css +131 -0
- package/app/components/primer/alpha/auto_complete.css.json +21 -0
- package/app/components/primer/alpha/banner.css +146 -0
- package/app/components/primer/alpha/banner.css.json +26 -0
- package/app/components/primer/alpha/button_marketing.css +183 -0
- package/app/components/primer/alpha/button_marketing.css.json +30 -0
- package/app/components/primer/alpha/dialog.css +377 -0
- package/app/components/primer/alpha/dialog.css.json +66 -0
- package/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
- package/app/components/primer/alpha/dropdown/menu.js +1 -0
- package/app/components/primer/alpha/dropdown.css +296 -0
- package/app/components/primer/alpha/dropdown.css.json +40 -0
- package/app/components/primer/alpha/dropdown.d.ts +1 -0
- package/app/components/primer/alpha/dropdown.js +1 -0
- package/app/components/primer/alpha/layout.css +374 -0
- package/app/components/primer/alpha/layout.css.json +74 -0
- package/app/components/primer/alpha/menu.css +124 -0
- package/app/components/primer/alpha/menu.css.json +26 -0
- package/app/components/primer/alpha/modal_dialog.d.ts +18 -0
- package/app/components/primer/alpha/modal_dialog.js +187 -0
- package/app/components/primer/alpha/overlay.css +25 -0
- package/app/components/primer/alpha/overlay.css.json +12 -0
- package/app/components/primer/alpha/segmented_control.css +161 -0
- package/app/components/primer/alpha/segmented_control.css.json +31 -0
- package/app/components/primer/alpha/segmented_control.d.ts +12 -0
- package/app/components/primer/alpha/segmented_control.js +59 -0
- package/app/components/primer/alpha/select_panel.css +10 -0
- package/app/components/primer/alpha/select_panel.css.json +7 -0
- package/app/components/primer/alpha/select_panel_element.d.ts +65 -0
- package/app/components/primer/alpha/select_panel_element.js +988 -0
- package/app/components/primer/alpha/skeleton_box.css +36 -0
- package/app/components/primer/alpha/skeleton_box.css.json +6 -0
- package/app/components/primer/alpha/stack.css +266 -0
- package/app/components/primer/alpha/stack.css.json +94 -0
- package/app/components/primer/alpha/stack_item.css +27 -0
- package/app/components/primer/alpha/stack_item.css.json +12 -0
- package/app/components/primer/alpha/tab_container.d.ts +1 -0
- package/app/components/primer/alpha/tab_container.js +1 -0
- package/app/components/primer/alpha/tab_nav.css +112 -0
- package/app/components/primer/alpha/tab_nav.css.json +22 -0
- package/app/components/primer/alpha/text_field.css +838 -0
- package/app/components/primer/alpha/text_field.css.json +134 -0
- package/app/components/primer/alpha/toggle_switch.css +230 -0
- package/app/components/primer/alpha/toggle_switch.css.json +40 -0
- package/app/components/primer/alpha/toggle_switch.d.ts +34 -0
- package/app/components/primer/alpha/toggle_switch.js +179 -0
- package/app/components/primer/alpha/tool_tip.d.ts +27 -0
- package/app/components/primer/alpha/tool_tip.js +443 -0
- package/app/components/primer/alpha/tree_view/tree_view.d.ts +42 -0
- package/app/components/primer/alpha/tree_view/tree_view.js +391 -0
- package/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.d.ts +15 -0
- package/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.js +62 -0
- package/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.d.ts +9 -0
- package/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.js +28 -0
- package/app/components/primer/alpha/tree_view/tree_view_roving_tab_index.d.ts +3 -0
- package/app/components/primer/alpha/tree_view/tree_view_roving_tab_index.js +130 -0
- package/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.d.ts +45 -0
- package/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.js +429 -0
- package/app/components/primer/alpha/tree_view.css +396 -0
- package/app/components/primer/alpha/tree_view.css.json +52 -0
- package/app/components/primer/alpha/underline_nav.css +150 -0
- package/app/components/primer/alpha/underline_nav.css.json +26 -0
- package/app/components/primer/alpha/x_banner.d.ts +18 -0
- package/app/components/primer/alpha/x_banner.js +51 -0
- package/app/components/primer/anchored_position.d.ts +27 -0
- package/app/components/primer/anchored_position.js +159 -0
- package/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
- package/app/components/primer/beta/auto_complete/auto_complete.js +1 -0
- package/app/components/primer/beta/avatar.css +77 -0
- package/app/components/primer/beta/avatar.css.json +17 -0
- package/app/components/primer/beta/avatar_stack.css +145 -0
- package/app/components/primer/beta/avatar_stack.css.json +28 -0
- package/app/components/primer/beta/blankslate.css +168 -0
- package/app/components/primer/beta/blankslate.css.json +23 -0
- package/app/components/primer/beta/border_box.css +218 -0
- package/app/components/primer/beta/border_box.css.json +54 -0
- package/app/components/primer/beta/breadcrumbs.css +29 -0
- package/app/components/primer/beta/breadcrumbs.css.json +9 -0
- package/app/components/primer/beta/button.css +359 -0
- package/app/components/primer/beta/button.css.json +86 -0
- package/app/components/primer/beta/button_group.css +20 -0
- package/app/components/primer/beta/button_group.css.json +12 -0
- package/app/components/primer/beta/clipboard_copy.d.ts +1 -0
- package/app/components/primer/beta/clipboard_copy.js +58 -0
- package/app/components/primer/beta/counter.css +38 -0
- package/app/components/primer/beta/counter.css.json +10 -0
- package/app/components/primer/beta/details_toggle_element.d.ts +40 -0
- package/app/components/primer/beta/details_toggle_element.js +65 -0
- package/app/components/primer/beta/flash.css +152 -0
- package/app/components/primer/beta/flash.css.json +27 -0
- package/app/components/primer/beta/label.css +109 -0
- package/app/components/primer/beta/label.css.json +24 -0
- package/app/components/primer/beta/link.css +79 -0
- package/app/components/primer/beta/link.css.json +19 -0
- package/app/components/primer/beta/nav_list.d.ts +20 -0
- package/app/components/primer/beta/nav_list.js +192 -0
- package/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
- package/app/components/primer/beta/nav_list_group_element.js +111 -0
- package/app/components/primer/beta/popover.css +215 -0
- package/app/components/primer/beta/popover.css.json +33 -0
- package/app/components/primer/beta/progress_bar.css +27 -0
- package/app/components/primer/beta/progress_bar.css.json +10 -0
- package/app/components/primer/beta/relative_time.d.ts +1 -0
- package/app/components/primer/beta/relative_time.js +1 -0
- package/app/components/primer/beta/state.css +59 -0
- package/app/components/primer/beta/state.css.json +13 -0
- package/app/components/primer/beta/subhead.css +64 -0
- package/app/components/primer/beta/subhead.css.json +14 -0
- package/app/components/primer/beta/timeline_item.css +106 -0
- package/app/components/primer/beta/timeline_item.css.json +16 -0
- package/app/components/primer/beta/truncate.css +30 -0
- package/app/components/primer/beta/truncate.css.json +12 -0
- package/app/components/primer/dialog_helper.d.ts +15 -0
- package/app/components/primer/dialog_helper.js +132 -0
- package/app/components/primer/focus_group.d.ts +19 -0
- package/app/components/primer/focus_group.js +163 -0
- package/app/components/primer/open_project/border_box/collapsible_header.css +21 -0
- package/app/components/primer/open_project/border_box/collapsible_header.css.json +11 -0
- package/app/components/primer/open_project/border_box/collapsible_header.d.ts +11 -0
- package/app/components/primer/open_project/border_box/collapsible_header.js +21 -0
- package/app/components/primer/open_project/border_grid.css +35 -0
- package/app/components/primer/open_project/border_grid.css.json +11 -0
- package/app/components/primer/open_project/collapsible.d.ts +13 -0
- package/app/components/primer/open_project/collapsible.js +67 -0
- package/app/components/primer/open_project/collapsible_section.css +5 -0
- package/app/components/primer/open_project/collapsible_section.css.json +6 -0
- package/app/components/primer/open_project/collapsible_section.d.ts +10 -0
- package/app/components/primer/open_project/collapsible_section.js +16 -0
- package/app/components/primer/open_project/danger_dialog_form_helper.d.ts +14 -0
- package/app/components/primer/open_project/danger_dialog_form_helper.js +54 -0
- package/app/components/primer/open_project/drag_handle.css +6 -0
- package/app/components/primer/open_project/drag_handle.css.json +6 -0
- package/app/components/primer/open_project/filterable_tree_view.d.ts +29 -0
- package/app/components/primer/open_project/filterable_tree_view.js +409 -0
- package/app/components/primer/open_project/input_group.css +22 -0
- package/app/components/primer/open_project/input_group.css.json +12 -0
- package/app/components/primer/open_project/page_header.css +87 -0
- package/app/components/primer/open_project/page_header.css.json +20 -0
- package/app/components/primer/open_project/page_header_element.d.ts +9 -0
- package/app/components/primer/open_project/page_header_element.js +23 -0
- package/app/components/primer/open_project/side_panel/section.css +27 -0
- package/app/components/primer/open_project/side_panel/section.css.json +11 -0
- package/app/components/primer/open_project/sub_header.css +80 -0
- package/app/components/primer/open_project/sub_header.css.json +17 -0
- package/app/components/primer/open_project/sub_header_element.d.ts +17 -0
- package/app/components/primer/open_project/sub_header_element.js +76 -0
- package/app/components/primer/open_project/zen_mode_button.d.ts +18 -0
- package/app/components/primer/open_project/zen_mode_button.js +64 -0
- package/app/components/primer/primer.d.ts +40 -0
- package/app/components/primer/primer.js +40 -0
- package/app/components/primer/scrollable_region.d.ts +13 -0
- package/app/components/primer/scrollable_region.js +52 -0
- package/app/components/primer/shared_events.d.ts +26 -0
- package/app/components/primer/shared_events.js +1 -0
- package/app/components/primer/truncate.css +23 -0
- package/app/components/primer/truncate.css.json +13 -0
- package/app/components/primer/utils.d.ts +1 -0
- package/app/components/primer/utils.js +16 -0
- package/app/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/app/lib/primer/forms/primer_multi_input.js +44 -0
- package/app/lib/primer/forms/primer_text_field.d.ts +28 -0
- package/app/lib/primer/forms/primer_text_field.js +119 -0
- package/app/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/app/lib/primer/forms/toggle_switch_input.js +34 -0
- package/package.json +103 -0
- package/static/arguments.json +6472 -0
- package/static/audited_at.json +173 -0
- package/static/classes.json +781 -0
- package/static/constants.json +1972 -0
- package/static/form_previews.json +118 -0
- package/static/info_arch.json +21331 -0
- package/static/previews.json +9436 -0
- package/static/statuses.json +173 -0
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
/* stylelint-disable selector-max-compound-selectors */
|
|
2
|
+
/* stylelint-disable selector-max-specificity */
|
|
3
|
+
/* stylelint-disable max-nesting-depth */
|
|
4
|
+
:root {
|
|
5
|
+
--actionListContent-paddingBlock: var(--control-medium-paddingBlock);
|
|
6
|
+
}
|
|
7
|
+
/* ActionList */
|
|
8
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
9
|
+
action-list {
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
13
|
+
nav-list {
|
|
14
|
+
display: block;
|
|
15
|
+
}
|
|
16
|
+
.ActionListHeader {
|
|
17
|
+
margin-bottom: var(--base-size-16);
|
|
18
|
+
margin-left: var(--base-size-8);
|
|
19
|
+
}
|
|
20
|
+
/* <ul> */
|
|
21
|
+
.ActionListWrap {
|
|
22
|
+
list-style: none;
|
|
23
|
+
}
|
|
24
|
+
.ActionListWrap--inset,
|
|
25
|
+
.ActionListWrap--inset[popover] {
|
|
26
|
+
margin-left: 0;
|
|
27
|
+
padding: var(--base-size-8);
|
|
28
|
+
}
|
|
29
|
+
/* list dividers */
|
|
30
|
+
.ActionListWrap--divided .ActionListItem-label::before {
|
|
31
|
+
position: absolute;
|
|
32
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
33
|
+
top: calc(-1 * var(--actionListContent-paddingBlock));
|
|
34
|
+
display: block;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 1px;
|
|
37
|
+
content: '';
|
|
38
|
+
/* stylelint-disable-next-line primer/colors */
|
|
39
|
+
background: var(--borderColor-muted);
|
|
40
|
+
}
|
|
41
|
+
/* if descriptionWrap--inline exists, move pseudo divider to wrapper */
|
|
42
|
+
:is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline)::before {
|
|
43
|
+
position: absolute;
|
|
44
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
45
|
+
top: calc(-1 * var(--actionListContent-paddingBlock));
|
|
46
|
+
display: block;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: var(--borderWidth-thin);
|
|
49
|
+
content: '';
|
|
50
|
+
/* stylelint-disable-next-line primer/colors */
|
|
51
|
+
background: var(--borderColor-muted);
|
|
52
|
+
}
|
|
53
|
+
/* unset the default label pseudo */
|
|
54
|
+
:is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline) .ActionListItem-label::before {
|
|
55
|
+
content: unset;
|
|
56
|
+
}
|
|
57
|
+
/* hide divider if item is active */
|
|
58
|
+
:is(.ActionListWrap--divided .ActionListItem--navActive) .ActionListItem-label::before,:is(.ActionListWrap--divided .ActionListItem--navActive) + .ActionListItem .ActionListItem-label::before {
|
|
59
|
+
visibility: hidden;
|
|
60
|
+
}
|
|
61
|
+
/* hide if item is first of type with label::before, or is the first item after a sectionDivider */
|
|
62
|
+
.ActionListItem:first-of-type .ActionListItem-label::before,
|
|
63
|
+
.ActionList-sectionDivider + .ActionListItem .ActionListItem-label::before {
|
|
64
|
+
visibility: hidden;
|
|
65
|
+
}
|
|
66
|
+
/* hide if item is first of type with label::before, or is the first item after a sectionDivider */
|
|
67
|
+
.ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline::before,
|
|
68
|
+
.ActionList-sectionDivider + .ActionListItem .ActionListItem-descriptionWrap--inline::before {
|
|
69
|
+
visibility: hidden;
|
|
70
|
+
}
|
|
71
|
+
/* ActionList::Item */
|
|
72
|
+
.ActionListItem {
|
|
73
|
+
position: relative;
|
|
74
|
+
list-style: none;
|
|
75
|
+
background-color: var(--control-transparent-bgColor-rest);
|
|
76
|
+
border-radius: var(--borderRadius-medium);
|
|
77
|
+
|
|
78
|
+
/* state */
|
|
79
|
+
}
|
|
80
|
+
.ActionListItem:hover,.ActionListItem:active {
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
/* hide dividers */
|
|
84
|
+
@media (hover: hover) {
|
|
85
|
+
.ActionListItem:hover .ActionListItem-label::before,.ActionListItem:hover + .ActionListItem .ActionListItem-label::before {
|
|
86
|
+
visibility: hidden;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ActionListItem:hover .ActionListItem-descriptionWrap--inline::before,.ActionListItem:hover + .ActionListItem .ActionListItem-descriptionWrap--inline::before {
|
|
90
|
+
visibility: hidden;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/* Make sure that the first visible item isn't a divider */
|
|
94
|
+
.ActionListItem[hidden] + .ActionList-sectionDivider {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
/* collapse styles here */
|
|
98
|
+
/* first child */
|
|
99
|
+
.ActionListItem.ActionListItem--hasSubItem > .ActionListContent {
|
|
100
|
+
z-index: 1;
|
|
101
|
+
}
|
|
102
|
+
@media (hover: hover) {
|
|
103
|
+
:is(.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover {
|
|
104
|
+
background-color: var(--control-transparent-bgColor-hover);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
:is(.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active {
|
|
108
|
+
background-color: var(--control-transparent-bgColor-active);
|
|
109
|
+
}
|
|
110
|
+
/* only hover li without list as children */
|
|
111
|
+
@media (hover: hover) {
|
|
112
|
+
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover {
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
background-color: var(--control-transparent-bgColor-hover);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover:not(.ActionListItem--navActive,:focus-visible) {
|
|
118
|
+
/* Support for "Windows high contrast mode" */
|
|
119
|
+
outline: solid var(--borderWidth-thin) transparent;
|
|
120
|
+
outline-offset: calc(-1 * var(--borderWidth-thin));
|
|
121
|
+
box-shadow: var(--boxShadow-thin) var(--control-transparent-borderColor-active);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active {
|
|
125
|
+
background: var(--control-transparent-bgColor-active);
|
|
126
|
+
}
|
|
127
|
+
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active:not(.ActionListItem--navActive) {
|
|
128
|
+
/* Support for "Windows high contrast mode" https:sarahmhigley.com/writing/whcm-quick-tips/ */
|
|
129
|
+
outline: solid var(--borderWidth-thin) transparent;
|
|
130
|
+
outline-offset: calc(-1 * var(--borderWidth-thin));
|
|
131
|
+
box-shadow: var(--boxShadow-thin) var(--control-transparent-borderColor-active);
|
|
132
|
+
}
|
|
133
|
+
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active .ActionListItem-label::before,:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active + .ActionListItem .ActionListItem-label::before {
|
|
134
|
+
visibility: hidden;
|
|
135
|
+
}
|
|
136
|
+
/* Autocomplete [aria-selected] items */
|
|
137
|
+
.ActionListItem[aria-selected='true'] {
|
|
138
|
+
font-weight: var(--base-text-weight-normal);
|
|
139
|
+
background: var(--control-transparent-bgColor-selected);
|
|
140
|
+
}
|
|
141
|
+
@media (hover: hover) {
|
|
142
|
+
.ActionListItem[aria-selected='true']:hover {
|
|
143
|
+
background-color: var(--control-transparent-bgColor-hover);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.ActionListItem[aria-selected='true']::before,.ActionListItem[aria-selected='true'] + .ActionListItem::before {
|
|
147
|
+
visibility: hidden;
|
|
148
|
+
}
|
|
149
|
+
/* blue accent line */
|
|
150
|
+
.ActionListItem[aria-selected='true']::after {
|
|
151
|
+
position: absolute;
|
|
152
|
+
top: calc(50% - 12px);
|
|
153
|
+
left: calc(-1 * var(--base-size-4));
|
|
154
|
+
width: var(--base-size-4);
|
|
155
|
+
height: var(--base-size-24);
|
|
156
|
+
content: '';
|
|
157
|
+
background: var(--borderColor-accent-emphasis);
|
|
158
|
+
border-radius: var(--borderRadius-medium);
|
|
159
|
+
}
|
|
160
|
+
/* active state [aria-current] */
|
|
161
|
+
.ActionListItem.ActionListItem--navActive {
|
|
162
|
+
/* provides a visual indication of the current item for Windows high-contrast mode */
|
|
163
|
+
outline: 2px solid transparent;
|
|
164
|
+
}
|
|
165
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label {
|
|
166
|
+
font-weight: var(--base-text-weight-semibold);
|
|
167
|
+
}
|
|
168
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) {
|
|
169
|
+
background: var(--control-transparent-bgColor-selected);
|
|
170
|
+
}
|
|
171
|
+
@media (hover: hover) {
|
|
172
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover {
|
|
173
|
+
background-color: var(--control-transparent-bgColor-hover);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::before,.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) + .ActionListItem::before {
|
|
177
|
+
visibility: hidden;
|
|
178
|
+
}
|
|
179
|
+
/* blue accent line */
|
|
180
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::after {
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: calc(50% - 12px);
|
|
183
|
+
left: calc(-1 * var(--base-size-8));
|
|
184
|
+
width: var(--base-size-4);
|
|
185
|
+
height: var(--base-size-24);
|
|
186
|
+
content: '';
|
|
187
|
+
background: var(--borderColor-accent-emphasis);
|
|
188
|
+
border-radius: var(--borderRadius-medium);
|
|
189
|
+
}
|
|
190
|
+
/* disabled */
|
|
191
|
+
:is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-label,:is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-description {
|
|
192
|
+
color: var(--control-fgColor-disabled);
|
|
193
|
+
}
|
|
194
|
+
:is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-visual {
|
|
195
|
+
fill: var(--control-fgColor-disabled);
|
|
196
|
+
}
|
|
197
|
+
@media (hover: hover) {
|
|
198
|
+
:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']):hover {
|
|
199
|
+
cursor: not-allowed;
|
|
200
|
+
background-color: transparent;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/* variants */
|
|
204
|
+
/* danger */
|
|
205
|
+
.ActionListItem.ActionListItem--danger .ActionListItem-label {
|
|
206
|
+
color: var(--control-danger-fgColor-rest);
|
|
207
|
+
}
|
|
208
|
+
.ActionListItem.ActionListItem--danger .ActionListItem-visual {
|
|
209
|
+
color: var(--control-danger-fgColor-rest);
|
|
210
|
+
}
|
|
211
|
+
@media (hover: hover) {
|
|
212
|
+
.ActionListItem.ActionListItem--danger:hover {
|
|
213
|
+
background: var(--control-danger-bgColor-hover);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ActionListItem.ActionListItem--danger:hover .ActionListItem-label,.ActionListItem.ActionListItem--danger:hover .ActionListItem-visual,.ActionListItem.ActionListItem--danger:hover .ActionListItem-description {
|
|
217
|
+
color: var(--control-danger-fgColor-hover);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
:is(.ActionListItem.ActionListItem--danger .ActionListContent):active {
|
|
221
|
+
background: var(--control-danger-bgColor-active);
|
|
222
|
+
}
|
|
223
|
+
:is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-label,:is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-visual,:is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-description {
|
|
224
|
+
color: var(--control-danger-fgColor-hover);
|
|
225
|
+
}
|
|
226
|
+
/* button or a href */
|
|
227
|
+
.ActionListContent {
|
|
228
|
+
position: relative;
|
|
229
|
+
display: grid;
|
|
230
|
+
width: 100%;
|
|
231
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
232
|
+
padding-block: var(--actionListContent-paddingBlock);
|
|
233
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
234
|
+
padding-inline: var(--control-medium-paddingInline-condensed);
|
|
235
|
+
color: var(--control-fgColor-rest);
|
|
236
|
+
text-align: left;
|
|
237
|
+
-webkit-user-select: none;
|
|
238
|
+
user-select: none;
|
|
239
|
+
background-color: transparent;
|
|
240
|
+
border: none;
|
|
241
|
+
border-radius: var(--borderRadius-medium);
|
|
242
|
+
transition: background 33.333ms linear;
|
|
243
|
+
touch-action: manipulation;
|
|
244
|
+
-webkit-tap-highlight-color: transparent;
|
|
245
|
+
grid-template-rows: min-content;
|
|
246
|
+
grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
|
|
247
|
+
grid-template-columns: min-content min-content minmax(0, auto) min-content min-content;
|
|
248
|
+
align-items: start;
|
|
249
|
+
|
|
250
|
+
/* column-gap persists with empty grid-areas, margin applies only when children exist */
|
|
251
|
+
}
|
|
252
|
+
.ActionListContent > :not(:last-child) {
|
|
253
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
254
|
+
margin-right: var(--control-medium-gap);
|
|
255
|
+
}
|
|
256
|
+
/* state */
|
|
257
|
+
.ActionListContent:hover {
|
|
258
|
+
-webkit-text-decoration: none;
|
|
259
|
+
text-decoration: none;
|
|
260
|
+
}
|
|
261
|
+
/* disabled */
|
|
262
|
+
.ActionListContent[aria-disabled='true'] .ActionListItem-label,.ActionListContent[aria-disabled='true'] .ActionListItem-description {
|
|
263
|
+
color: var(--control-fgColor-disabled);
|
|
264
|
+
}
|
|
265
|
+
.ActionListContent[aria-disabled='true'] .ActionListItem-visual {
|
|
266
|
+
fill: var(--control-fgColor-disabled);
|
|
267
|
+
}
|
|
268
|
+
@media (hover: hover) {
|
|
269
|
+
.ActionListContent[aria-disabled='true']:hover {
|
|
270
|
+
cursor: not-allowed;
|
|
271
|
+
background-color: transparent;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/* collapsible item [aria-expanded] */
|
|
275
|
+
/* nesting (single level)
|
|
276
|
+
target items inside expanded subgroups */
|
|
277
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
278
|
+
.ActionListContent[aria-expanded] + .ActionList--subGroup {
|
|
279
|
+
transition:
|
|
280
|
+
opacity 160ms cubic-bezier(0.25, 1, 0.5, 1),
|
|
281
|
+
transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
:is(.ActionListContent[aria-expanded] + .ActionList--subGroup) .ActionListContent {
|
|
285
|
+
padding-left: var(--base-size-24);
|
|
286
|
+
}
|
|
287
|
+
/* has 16px leading visual */
|
|
288
|
+
:is(.ActionListContent.ActionListContent--visual16[aria-expanded] + .ActionList--subGroup) .ActionListContent {
|
|
289
|
+
padding-left: var(--base-size-32);
|
|
290
|
+
}
|
|
291
|
+
/* has 20px leading visual */
|
|
292
|
+
:is(.ActionListContent.ActionListContent--visual20[aria-expanded] + .ActionList--subGroup) .ActionListContent {
|
|
293
|
+
padding-left: var(--base-size-36);
|
|
294
|
+
}
|
|
295
|
+
/* has 24px leading visual */
|
|
296
|
+
:is(.ActionListContent.ActionListContent--visual24[aria-expanded] + .ActionList--subGroup) .ActionListContent {
|
|
297
|
+
padding-left: var(--base-size-40);
|
|
298
|
+
}
|
|
299
|
+
.ActionListContent[aria-expanded='true'] .ActionListItem-collapseIcon {
|
|
300
|
+
transition: transform 120ms linear;
|
|
301
|
+
transform: scaleY(-1);
|
|
302
|
+
}
|
|
303
|
+
.ActionListContent[aria-expanded='true'] + .ActionList--subGroup {
|
|
304
|
+
height: auto;
|
|
305
|
+
overflow: visible;
|
|
306
|
+
visibility: visible;
|
|
307
|
+
opacity: 1;
|
|
308
|
+
transform: translateY(0);
|
|
309
|
+
}
|
|
310
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='true'] > .ActionListItem-label {
|
|
311
|
+
font-weight: var(--base-text-weight-semibold);
|
|
312
|
+
}
|
|
313
|
+
.ActionListContent[aria-expanded='false'] .ActionListItem-collapseIcon {
|
|
314
|
+
transition: transform 120ms linear;
|
|
315
|
+
transform: scaleY(1);
|
|
316
|
+
}
|
|
317
|
+
.ActionListContent[aria-expanded='false'] + .ActionList--subGroup {
|
|
318
|
+
height: 0;
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
visibility: hidden;
|
|
321
|
+
opacity: 0;
|
|
322
|
+
transform: translateY(calc(-1 * var(--base-size-16)));
|
|
323
|
+
}
|
|
324
|
+
/* show active indicator on parent collapse if child is active */
|
|
325
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] {
|
|
326
|
+
background: var(--control-transparent-bgColor-selected);
|
|
327
|
+
}
|
|
328
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] .ActionListItem-label {
|
|
329
|
+
font-weight: var(--base-text-weight-semibold);
|
|
330
|
+
}
|
|
331
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::before,.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] + .ActionListItem::before {
|
|
332
|
+
visibility: hidden;
|
|
333
|
+
}
|
|
334
|
+
/* blue accent line */
|
|
335
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::after {
|
|
336
|
+
position: absolute;
|
|
337
|
+
top: calc(50% - 12px);
|
|
338
|
+
left: calc(-1 * var(--base-size-8));
|
|
339
|
+
width: var(--base-size-4);
|
|
340
|
+
height: var(--base-size-24);
|
|
341
|
+
content: '';
|
|
342
|
+
background: var(--borderColor-accent-emphasis);
|
|
343
|
+
border-radius: var(--borderRadius-medium);
|
|
344
|
+
}
|
|
345
|
+
/*
|
|
346
|
+
* checkbox item [aria-checked]
|
|
347
|
+
* listbox [aria-selected]
|
|
348
|
+
*/
|
|
349
|
+
:is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .FormControl-checkbox {
|
|
350
|
+
background: var(--control-checked-bgColor-rest);
|
|
351
|
+
border-color: var(--control-checked-borderColor-rest);
|
|
352
|
+
transition: background-color, border-color 80ms cubic-bezier(0.32, 0, 0.67, 0) 0ms; /* unchecked -> checked */
|
|
353
|
+
}
|
|
354
|
+
:is(:is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .FormControl-checkbox)::before {
|
|
355
|
+
visibility: visible;
|
|
356
|
+
transition: visibility 0s linear 0s;
|
|
357
|
+
animation: checkmarkIn 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards 80ms;
|
|
358
|
+
}
|
|
359
|
+
/* singleselect checkmark */
|
|
360
|
+
:is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .ActionListItem-singleSelectCheckmark {
|
|
361
|
+
visibility: visible;
|
|
362
|
+
}
|
|
363
|
+
/* singleselect checkmark */
|
|
364
|
+
:is(.ActionListContent[aria-checked='false'],.ActionListContent[aria-selected='false']) .ActionListItem-singleSelectCheckmark {
|
|
365
|
+
visibility: hidden;
|
|
366
|
+
transition: visibility 0s linear 200ms;
|
|
367
|
+
}
|
|
368
|
+
/* sizes */
|
|
369
|
+
.ActionListContent.ActionListContent--sizeLarge {
|
|
370
|
+
--actionListContent-paddingBlock: var(--control-large-paddingBlock);
|
|
371
|
+
}
|
|
372
|
+
.ActionListContent.ActionListContent--sizeXLarge {
|
|
373
|
+
--actionListContent-paddingBlock: var(--control-xlarge-paddingBlock);
|
|
374
|
+
}
|
|
375
|
+
/* On pointer:coarse (mobile), all list items are large */
|
|
376
|
+
@media (pointer: coarse) {
|
|
377
|
+
.ActionListContent {
|
|
378
|
+
--actionListContent-paddingBlock: var(--control-large-paddingBlock);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
/* if leading/trailing visual, align with first line of content */
|
|
382
|
+
.ActionListContent.ActionListContent--blockDescription .ActionListItem-visual {
|
|
383
|
+
place-self: start;
|
|
384
|
+
}
|
|
385
|
+
/* place children on grid */
|
|
386
|
+
.ActionListItem-action--leading {
|
|
387
|
+
grid-area: leadingAction;
|
|
388
|
+
}
|
|
389
|
+
.ActionListItem-visual--leading {
|
|
390
|
+
grid-area: leadingVisual;
|
|
391
|
+
}
|
|
392
|
+
.ActionListItem-visual--trailing {
|
|
393
|
+
grid-area: trailingVisual;
|
|
394
|
+
}
|
|
395
|
+
.ActionListItem-action--trailing {
|
|
396
|
+
grid-area: trailingAction;
|
|
397
|
+
}
|
|
398
|
+
/* have leading visual svg filled with chosen color */
|
|
399
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
400
|
+
.ActionListItem-visual--leading svg {
|
|
401
|
+
fill: currentcolor;
|
|
402
|
+
}
|
|
403
|
+
/* wrapper span
|
|
404
|
+
default block */
|
|
405
|
+
.ActionListItem-descriptionWrap {
|
|
406
|
+
grid-area: label;
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-direction: column;
|
|
409
|
+
gap: var(--base-size-4);
|
|
410
|
+
}
|
|
411
|
+
.ActionListItem-descriptionWrap .ActionListItem-label {
|
|
412
|
+
font-weight: var(--base-text-weight-semibold);
|
|
413
|
+
}
|
|
414
|
+
/* inline */
|
|
415
|
+
.ActionListItem-descriptionWrap--inline {
|
|
416
|
+
position: relative;
|
|
417
|
+
flex-direction: row;
|
|
418
|
+
align-items: baseline;
|
|
419
|
+
gap: var(--base-size-8);
|
|
420
|
+
}
|
|
421
|
+
/* description */
|
|
422
|
+
.ActionListItem-description {
|
|
423
|
+
font-size: var(--text-body-size-small);
|
|
424
|
+
font-weight: var(--base-text-weight-normal);
|
|
425
|
+
line-height: var(--text-body-lineHeight-small);
|
|
426
|
+
color: var(--fgColor-muted);
|
|
427
|
+
}
|
|
428
|
+
/* helper for grid alignment with multi-line content
|
|
429
|
+
span wrapping svg or text */
|
|
430
|
+
.ActionListItem-visual,
|
|
431
|
+
.ActionListItem-action {
|
|
432
|
+
display: flex;
|
|
433
|
+
min-height: var(--control-medium-lineBoxHeight);
|
|
434
|
+
color: var(--fgColor-muted);
|
|
435
|
+
pointer-events: none;
|
|
436
|
+
fill: var(--fgColor-muted);
|
|
437
|
+
align-items: center;
|
|
438
|
+
}
|
|
439
|
+
/* text */
|
|
440
|
+
.ActionListItem-label {
|
|
441
|
+
position: relative;
|
|
442
|
+
font-size: var(--text-body-size-medium);
|
|
443
|
+
font-weight: var(--base-text-weight-normal);
|
|
444
|
+
line-height: var(--text-body-lineHeight-medium);
|
|
445
|
+
color: var(--fgColor-default);
|
|
446
|
+
grid-area: label;
|
|
447
|
+
}
|
|
448
|
+
.ActionListItem-label--truncate {
|
|
449
|
+
overflow: hidden;
|
|
450
|
+
text-overflow: ellipsis;
|
|
451
|
+
white-space: nowrap;
|
|
452
|
+
}
|
|
453
|
+
/* nested lists (only supports 1 level currently)
|
|
454
|
+
target ActionListItem--subItem for padding-left to maintain :active :after state */
|
|
455
|
+
.ActionListItem--subItem > .ActionListContent > .ActionListItem-label {
|
|
456
|
+
font-size: var(--text-body-size-small);
|
|
457
|
+
line-height: var(--text-body-lineHeight-small);
|
|
458
|
+
}
|
|
459
|
+
/* trailing action icon button */
|
|
460
|
+
.ActionListItem--withActions {
|
|
461
|
+
display: flex;
|
|
462
|
+
flex-wrap: nowrap;
|
|
463
|
+
align-items: center;
|
|
464
|
+
}
|
|
465
|
+
.ActionListItem-trailingAction {
|
|
466
|
+
border-top-left-radius: 0;
|
|
467
|
+
border-bottom-left-radius: 0;
|
|
468
|
+
}
|
|
469
|
+
/* show trailing action button on hover */
|
|
470
|
+
.ActionListItem--trailingActionHover .ActionListItem-trailingAction {
|
|
471
|
+
visibility: hidden;
|
|
472
|
+
}
|
|
473
|
+
:is(.ActionListItem--trailingActionHover:hover,.ActionListItem--trailingActionHover:focus-within) .ActionListItem-trailingAction {
|
|
474
|
+
visibility: visible;
|
|
475
|
+
}
|
|
476
|
+
/* ActionList::Divider */
|
|
477
|
+
/* with children */
|
|
478
|
+
.ActionList-sectionDivider:not(:empty) {
|
|
479
|
+
display: flex;
|
|
480
|
+
font-size: var(--text-body-size-small);
|
|
481
|
+
font-weight: var(--base-text-weight-semibold);
|
|
482
|
+
line-height: var(--text-body-lineHeight-small);
|
|
483
|
+
color: var(--fgColor-muted);
|
|
484
|
+
flex-direction: column;
|
|
485
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
486
|
+
padding-inline: var(--actionListContent-paddingBlock);
|
|
487
|
+
padding-block: var(--base-size-8);
|
|
488
|
+
}
|
|
489
|
+
/* no children */
|
|
490
|
+
.ActionList-sectionDivider:empty {
|
|
491
|
+
display: block;
|
|
492
|
+
height: var(--borderWidth-thin);
|
|
493
|
+
padding: 0;
|
|
494
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
495
|
+
margin-block-start: calc(var(--base-size-8) - var(--borderWidth-thin));
|
|
496
|
+
margin-block-end: var(--base-size-8);
|
|
497
|
+
margin-inline: calc(-1 * var(--base-size-8));
|
|
498
|
+
list-style: none;
|
|
499
|
+
/* stylelint-disable-next-line primer/colors */
|
|
500
|
+
background: var(--borderColor-muted);
|
|
501
|
+
border: 0;
|
|
502
|
+
}
|
|
503
|
+
.ActionList-sectionDivider .ActionList-sectionDivider-title {
|
|
504
|
+
font-size: var(--text-body-size-small);
|
|
505
|
+
font-weight: var(--base-text-weight-semibold);
|
|
506
|
+
color: var(--fgColor-muted);
|
|
507
|
+
align-self: flex-start;
|
|
508
|
+
}
|
|
509
|
+
.ActionList-sectionDivider--filled {
|
|
510
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
511
|
+
margin-block-start: calc(var(--base-size-8) - var(--borderWidth-thin));
|
|
512
|
+
margin-block-end: var(--base-size-8);
|
|
513
|
+
margin-inline: calc(-1 * var(--base-size-8));
|
|
514
|
+
background: var(--bgColor-muted);
|
|
515
|
+
border-top: solid var(--borderWidth-thin) var(--borderColor-muted, var(--color-action-list-item-inline-divider));
|
|
516
|
+
border-bottom: solid var(--borderWidth-thin) var(--borderColor-muted, var(--color-action-list-item-inline-divider));
|
|
517
|
+
|
|
518
|
+
/* if no children, treat as divider */
|
|
519
|
+
}
|
|
520
|
+
.ActionList-sectionDivider--filled:empty {
|
|
521
|
+
height: var(--base-size-8);
|
|
522
|
+
box-sizing: border-box;
|
|
523
|
+
}
|
|
524
|
+
.ActionList-sectionDivider--filled:first-child {
|
|
525
|
+
margin-block-start: 0;
|
|
526
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "alpha/action_list",
|
|
3
|
+
"selectors": [
|
|
4
|
+
":root",
|
|
5
|
+
"action-list",
|
|
6
|
+
"nav-list",
|
|
7
|
+
".ActionListHeader",
|
|
8
|
+
".ActionListWrap",
|
|
9
|
+
".ActionListWrap--inset",
|
|
10
|
+
".ActionListWrap--inset[popover]",
|
|
11
|
+
".ActionListWrap--divided .ActionListItem-label::before",
|
|
12
|
+
":is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline)::before",
|
|
13
|
+
":is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline) .ActionListItem-label::before",
|
|
14
|
+
":is(.ActionListWrap--divided .ActionListItem--navActive) .ActionListItem-label::before",
|
|
15
|
+
":is(.ActionListWrap--divided .ActionListItem--navActive) + .ActionListItem .ActionListItem-label::before",
|
|
16
|
+
".ActionListItem:first-of-type .ActionListItem-label::before",
|
|
17
|
+
".ActionList-sectionDivider + .ActionListItem .ActionListItem-label::before",
|
|
18
|
+
".ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline::before",
|
|
19
|
+
".ActionList-sectionDivider + .ActionListItem .ActionListItem-descriptionWrap--inline::before",
|
|
20
|
+
".ActionListItem",
|
|
21
|
+
".ActionListItem:hover",
|
|
22
|
+
".ActionListItem:active",
|
|
23
|
+
".ActionListItem:hover .ActionListItem-label::before",
|
|
24
|
+
".ActionListItem:hover + .ActionListItem .ActionListItem-label::before",
|
|
25
|
+
".ActionListItem:hover .ActionListItem-descriptionWrap--inline::before",
|
|
26
|
+
".ActionListItem:hover + .ActionListItem .ActionListItem-descriptionWrap--inline::before",
|
|
27
|
+
".ActionListItem[hidden] + .ActionList-sectionDivider",
|
|
28
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent",
|
|
29
|
+
":is(.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover",
|
|
30
|
+
":is(.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active",
|
|
31
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover",
|
|
32
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover:not(.ActionListItem--navActive,:focus-visible)",
|
|
33
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active",
|
|
34
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active:not(.ActionListItem--navActive)",
|
|
35
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active .ActionListItem-label::before",
|
|
36
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active + .ActionListItem .ActionListItem-label::before",
|
|
37
|
+
".ActionListItem[aria-selected='true']",
|
|
38
|
+
".ActionListItem[aria-selected='true']:hover",
|
|
39
|
+
".ActionListItem[aria-selected='true']::before",
|
|
40
|
+
".ActionListItem[aria-selected='true'] + .ActionListItem::before",
|
|
41
|
+
".ActionListItem[aria-selected='true']::after",
|
|
42
|
+
".ActionListItem.ActionListItem--navActive",
|
|
43
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label",
|
|
44
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)",
|
|
45
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover",
|
|
46
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::before",
|
|
47
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) + .ActionListItem::before",
|
|
48
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::after",
|
|
49
|
+
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-label",
|
|
50
|
+
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-description",
|
|
51
|
+
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-visual",
|
|
52
|
+
":is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']):hover",
|
|
53
|
+
".ActionListItem.ActionListItem--danger .ActionListItem-label",
|
|
54
|
+
".ActionListItem.ActionListItem--danger .ActionListItem-visual",
|
|
55
|
+
".ActionListItem.ActionListItem--danger:hover",
|
|
56
|
+
".ActionListItem.ActionListItem--danger:hover .ActionListItem-label",
|
|
57
|
+
".ActionListItem.ActionListItem--danger:hover .ActionListItem-visual",
|
|
58
|
+
".ActionListItem.ActionListItem--danger:hover .ActionListItem-description",
|
|
59
|
+
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active",
|
|
60
|
+
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-label",
|
|
61
|
+
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-visual",
|
|
62
|
+
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-description",
|
|
63
|
+
".ActionListContent",
|
|
64
|
+
".ActionListContent > :not(:last-child)",
|
|
65
|
+
".ActionListContent:hover",
|
|
66
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-label",
|
|
67
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-description",
|
|
68
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-visual",
|
|
69
|
+
".ActionListContent[aria-disabled='true']:hover",
|
|
70
|
+
".ActionListContent[aria-expanded] + .ActionList--subGroup",
|
|
71
|
+
":is(.ActionListContent[aria-expanded] + .ActionList--subGroup) .ActionListContent",
|
|
72
|
+
":is(.ActionListContent.ActionListContent--visual16[aria-expanded] + .ActionList--subGroup) .ActionListContent",
|
|
73
|
+
":is(.ActionListContent.ActionListContent--visual20[aria-expanded] + .ActionList--subGroup) .ActionListContent",
|
|
74
|
+
":is(.ActionListContent.ActionListContent--visual24[aria-expanded] + .ActionList--subGroup) .ActionListContent",
|
|
75
|
+
".ActionListContent[aria-expanded='true'] .ActionListItem-collapseIcon",
|
|
76
|
+
".ActionListContent[aria-expanded='true'] + .ActionList--subGroup",
|
|
77
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='true'] > .ActionListItem-label",
|
|
78
|
+
".ActionListContent[aria-expanded='false'] .ActionListItem-collapseIcon",
|
|
79
|
+
".ActionListContent[aria-expanded='false'] + .ActionList--subGroup",
|
|
80
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']",
|
|
81
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] .ActionListItem-label",
|
|
82
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::before",
|
|
83
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] + .ActionListItem::before",
|
|
84
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::after",
|
|
85
|
+
":is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .FormControl-checkbox",
|
|
86
|
+
":is(:is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .FormControl-checkbox)::before",
|
|
87
|
+
":is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .ActionListItem-singleSelectCheckmark",
|
|
88
|
+
":is(.ActionListContent[aria-checked='false'],.ActionListContent[aria-selected='false']) .ActionListItem-singleSelectCheckmark",
|
|
89
|
+
".ActionListContent.ActionListContent--sizeLarge",
|
|
90
|
+
".ActionListContent.ActionListContent--sizeXLarge",
|
|
91
|
+
".ActionListContent.ActionListContent--blockDescription .ActionListItem-visual",
|
|
92
|
+
".ActionListItem-action--leading",
|
|
93
|
+
".ActionListItem-visual--leading",
|
|
94
|
+
".ActionListItem-visual--trailing",
|
|
95
|
+
".ActionListItem-action--trailing",
|
|
96
|
+
".ActionListItem-visual--leading svg",
|
|
97
|
+
".ActionListItem-descriptionWrap",
|
|
98
|
+
".ActionListItem-descriptionWrap .ActionListItem-label",
|
|
99
|
+
".ActionListItem-descriptionWrap--inline",
|
|
100
|
+
".ActionListItem-description",
|
|
101
|
+
".ActionListItem-visual",
|
|
102
|
+
".ActionListItem-action",
|
|
103
|
+
".ActionListItem-label",
|
|
104
|
+
".ActionListItem-label--truncate",
|
|
105
|
+
".ActionListItem--subItem > .ActionListContent > .ActionListItem-label",
|
|
106
|
+
".ActionListItem--withActions",
|
|
107
|
+
".ActionListItem-trailingAction",
|
|
108
|
+
".ActionListItem--trailingActionHover .ActionListItem-trailingAction",
|
|
109
|
+
":is(.ActionListItem--trailingActionHover:hover,.ActionListItem--trailingActionHover:focus-within) .ActionListItem-trailingAction",
|
|
110
|
+
".ActionList-sectionDivider:not(:empty)",
|
|
111
|
+
".ActionList-sectionDivider:empty",
|
|
112
|
+
".ActionList-sectionDivider .ActionList-sectionDivider-title",
|
|
113
|
+
".ActionList-sectionDivider--filled",
|
|
114
|
+
".ActionList-sectionDivider--filled:empty",
|
|
115
|
+
".ActionList-sectionDivider--filled:first-child"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class ActionListTruncationObserver {
|
|
2
|
+
resizeObserver: ResizeObserver;
|
|
3
|
+
constructor(el: HTMLElement);
|
|
4
|
+
unobserve(el: HTMLElement): void;
|
|
5
|
+
update(el: HTMLElement): void;
|
|
6
|
+
}
|
|
7
|
+
export declare class ActionListElement extends HTMLElement {
|
|
8
|
+
#private;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface Window {
|
|
14
|
+
ActionListElement: typeof ActionListElement;
|
|
15
|
+
}
|
|
16
|
+
}
|