@primer/css 18.1.0 → 18.2.0-rc.f8ab630d

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @primer/css
2
2
 
3
+ ## 18.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1657](https://github.com/primer/css/pull/1657) [`e7543009`](https://github.com/primer/css/commit/e754300989a4e762091a957edd324b26682b104a) Thanks [@langermank](https://github.com/langermank)! - ActionList Component: Primer CSS Implementation. Adding a new component `ActionList` to learn more checkout the docs [https://primer.style/css/components/action-list](https://primer.style/css/components/action-list).
8
+
9
+ ### Patch Changes
10
+
11
+ - [#1731](https://github.com/primer/css/pull/1731) [`832e9988`](https://github.com/primer/css/commit/832e99886df66ea5860d725517aeb9d5f178dd58) Thanks [@jonrohan](https://github.com/jonrohan)! - Updating @primer/primitives@6.1.0
12
+
3
13
  ## 18.1.0
4
14
 
5
15
  ### Minor Changes
@@ -0,0 +1,42 @@
1
+ // emtpy divider
2
+
3
+ .ActionList-sectionDivider {
4
+ // has children
5
+ &:not(:empty) {
6
+ display: flex;
7
+ // stylelint-disable-next-line primer/spacing
8
+ padding: ($spacer-1 * 1.5) $spacer-2;
9
+ font-size: $font-size-small;
10
+ font-weight: $font-weight-bold;
11
+ color: var(--color-fg-muted);
12
+ flex-direction: column;
13
+ }
14
+
15
+ // no children
16
+ &:empty {
17
+ height: 1px;
18
+ padding: 0;
19
+ // stylelint-disable-next-line primer/spacing
20
+ margin: ($spacer-2 - 1px) ($spacer-2 * -1) $spacer-2;
21
+ list-style: none;
22
+ background: var(--color-action-list-item-inline-divider);
23
+ border: 0;
24
+ }
25
+ }
26
+
27
+ .ActionList-sectionDivider--filled {
28
+ margin: $spacer-2 ($spacer-2 * -1);
29
+ background: var(--color-canvas-subtle);
30
+ border-top: $border-width $border-style var(--color-action-list-item-inline-divider);
31
+ border-bottom: $border-width $border-style var(--color-action-list-item-inline-divider);
32
+
33
+ // if no children, treat as divider
34
+ &:empty {
35
+ height: $spacer-2;
36
+ box-sizing: border-box;
37
+ }
38
+
39
+ &:first-child {
40
+ margin-top: 0;
41
+ }
42
+ }
@@ -0,0 +1,444 @@
1
+ @mixin focusOutline {
2
+ position: relative;
3
+ z-index: 1;
4
+ outline: none;
5
+ box-shadow: 0 0 0 2px var(--color-accent-fg); // this color breaks convention
6
+ }
7
+
8
+ // <li>
9
+ .ActionList-item {
10
+ position: relative;
11
+ list-style: none;
12
+ background-color: transparent;
13
+ border-radius: $border-radius;
14
+
15
+ &:hover,
16
+ &:active {
17
+ cursor: pointer;
18
+
19
+ // a href
20
+ .ActionList-content {
21
+ text-decoration: none;
22
+ }
23
+ }
24
+
25
+ // only hover li without list as children
26
+ &:not(.ActionList-item--hasSubItem) {
27
+ &:hover {
28
+ cursor: pointer;
29
+ background-color: var(--color-action-list-item-default-hover-bg);
30
+ }
31
+
32
+ &:active {
33
+ background: var(--color-action-list-item-default-active-bg);
34
+
35
+ @media screen and (prefers-reduced-motion: no-preference) {
36
+ animation: ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1);
37
+ }
38
+
39
+ // stylelint-disable primer/box-shadow
40
+ @keyframes ActionList-item-active-bg {
41
+ // stylelint-disable-next-line max-nesting-depth
42
+ 50% {
43
+ box-shadow: inset 0 0 0 rgba(#000, 0.04);
44
+ transform: scale(1);
45
+ }
46
+
47
+ // stylelint-disable-next-line max-nesting-depth
48
+ 100% {
49
+ box-shadow: inset 0 3px 9px rgba(#000, 0.04);
50
+ transform: scale(0.97);
51
+ }
52
+ }
53
+ // stylelint-enable primer/box-shadow
54
+ }
55
+
56
+ &:hover,
57
+ &:active {
58
+ // hide dividers
59
+ // stylelint-disable-next-line selector-max-specificity
60
+ .ActionList-item-label::before,
61
+ + .ActionList-item .ActionList-item-label::before {
62
+ visibility: hidden;
63
+ }
64
+ }
65
+ }
66
+
67
+ // target contents of li if sub-item (li wraps item label + nested ul)
68
+ // collapse styles here
69
+ &.ActionList-item--hasSubItem {
70
+ // first child
71
+ > .ActionList-content {
72
+ &:hover {
73
+ background-color: var(--color-action-list-item-default-hover-bg);
74
+ }
75
+ }
76
+ }
77
+
78
+ // active state [aria-current]
79
+
80
+ &.ActionList-item--navActive:not(.ActionList-item--danger) {
81
+ background: var(--color-action-list-item-default-selected-bg);
82
+
83
+ // stylelint-disable-next-line selector-max-specificity
84
+ &::before,
85
+ + .ActionList-item::before {
86
+ visibility: hidden;
87
+ }
88
+
89
+ // blue accent line
90
+ &::after {
91
+ position: absolute;
92
+ top: calc(50% - 12px);
93
+ left: -$actionList-item-padding-horizontal;
94
+ width: $spacer-1;
95
+ height: $spacer-4;
96
+ content: '';
97
+ background: var(--color-accent-fg);
98
+ border-radius: $border-radius;
99
+ }
100
+ }
101
+
102
+ // collapsible item [aria-expanded]
103
+
104
+ &[aria-expanded='true'] {
105
+ .ActionList-item-collapseIcon {
106
+ transition: transform 120ms linear;
107
+ transform: scaleY(-1);
108
+ }
109
+
110
+ .ActionList--subGroup {
111
+ display: block;
112
+ }
113
+
114
+ &.ActionList-item--hasSubItem {
115
+ // stylelint-disable-next-line selector-max-specificity
116
+ > .ActionList-content > .ActionList-item-label {
117
+ font-weight: $font-weight-bold;
118
+ }
119
+ }
120
+ }
121
+
122
+ &[aria-expanded='false'] {
123
+ .ActionList-item-collapseIcon {
124
+ transition: transform 120ms linear;
125
+ transform: scaleY(1);
126
+ }
127
+
128
+ .ActionList--subGroup {
129
+ display: none;
130
+ }
131
+ }
132
+
133
+ // checkbox item [aria-checked]
134
+ // listbox [aria-selected]
135
+
136
+ &[aria-checked='true'],
137
+ &[aria-selected='true'] {
138
+ // multiselect checkmark
139
+ .ActionList-item-multiSelectCheckmark {
140
+ visibility: visible;
141
+ opacity: 1;
142
+ transition: visibility 0 linear 0, opacity $actionList-item-checkmark-transition-timing;
143
+ }
144
+
145
+ // singleselect checkmark
146
+ .ActionList-item-singleSelectCheckmark {
147
+ visibility: visible;
148
+
149
+ @media screen and (prefers-reduced-motion: no-preference) {
150
+ animation: checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
151
+ }
152
+ }
153
+
154
+ // checkbox
155
+ .ActionList-item-multiSelectIcon {
156
+ .ActionList-item-multiSelectIconRect {
157
+ fill: var(--color-accent-fg);
158
+ stroke: var(--color-accent-fg);
159
+ stroke-width: $border-width;
160
+ }
161
+
162
+ .ActionList-item-multiSelectCheckmark {
163
+ fill: var(--color-fg-on-emphasis);
164
+ }
165
+ }
166
+ }
167
+
168
+ &[aria-checked='false'],
169
+ &[aria-selected='false'] {
170
+ // multiselect checkmark
171
+ .ActionList-item-multiSelectCheckmark {
172
+ visibility: hidden;
173
+ opacity: 0;
174
+ transition:
175
+ visibility 0 linear $actionList-item-checkmark-transition-timing,
176
+ opacity $actionList-item-checkmark-transition-timing;
177
+ }
178
+
179
+ // singleselect checkmark
180
+ .ActionList-item-singleSelectCheckmark {
181
+ visibility: hidden;
182
+ transition: visibility 0s linear 200ms;
183
+ clip-path: inset(16px 0 0 0);
184
+
185
+ @media screen and (prefers-reduced-motion: no-preference) {
186
+ animation: checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
187
+ }
188
+ }
189
+
190
+ // checkbox
191
+ .ActionList-item-multiSelectIcon {
192
+ .ActionList-item-multiSelectIconRect {
193
+ fill: var(--color-canvas-default);
194
+ stroke: var(--color-border-default);
195
+ stroke-width: $border-width;
196
+ }
197
+ }
198
+
199
+ .ActionList-item-multiSelectIconRect {
200
+ fill: var(--color-canvas-default);
201
+ border: $border-width $border-style var(--color-border-default);
202
+ }
203
+ }
204
+
205
+ @keyframes checkmarkIn {
206
+ from {
207
+ clip-path: inset(16px 0 0 0);
208
+ }
209
+
210
+ to {
211
+ clip-path: inset(0 0 0 0);
212
+ }
213
+ }
214
+
215
+ @keyframes checkmarkOut {
216
+ from {
217
+ clip-path: inset(0 0 0 0);
218
+ }
219
+
220
+ to {
221
+ clip-path: inset(16px 0 0 0);
222
+ }
223
+ }
224
+
225
+ // variants
226
+
227
+ // danger
228
+ &.ActionList-item--danger {
229
+ .ActionList-item-label {
230
+ color: var(--color-danger-fg);
231
+ }
232
+
233
+ .ActionList-item-visual {
234
+ color: var(--color-danger-fg);
235
+ }
236
+
237
+ @media (hover: hover) and (pointer: fine) {
238
+ &:hover {
239
+ background: var(--color-action-list-item-danger-hover-bg);
240
+
241
+ // stylelint-disable-next-line max-nesting-depth
242
+ .ActionList-item-label {
243
+ color: var(--color-action-list-item-danger-hover-text);
244
+ }
245
+ }
246
+ }
247
+
248
+ &:active {
249
+ background: var(--color-action-list-item-danger-active-bg);
250
+ }
251
+ }
252
+
253
+ // disabled
254
+ &[aria-disabled='true'] {
255
+ .ActionList-item-label,
256
+ .ActionList-item-description {
257
+ color: var(--color-primer-fg-disabled);
258
+ }
259
+
260
+ .ActionList-item-visual {
261
+ fill: var(--color-primer-fg-disabled);
262
+ }
263
+
264
+ @media (hover: hover) and (pointer: fine) {
265
+ &:hover {
266
+ cursor: not-allowed;
267
+ background-color: transparent;
268
+ }
269
+ }
270
+ }
271
+
272
+ // if nested list exists, remove default padding
273
+ .ActionList {
274
+ // stylelint-disable-next-line primer/spacing
275
+ padding: unset;
276
+ }
277
+ }
278
+
279
+ // span or a href
280
+ .ActionList-content {
281
+ position: relative;
282
+ display: grid;
283
+ // stylelint-disable-next-line primer/spacing
284
+ padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
285
+ font-weight: $font-weight-normal;
286
+ color: var(--color-fg-default);
287
+ user-select: none;
288
+ border-radius: $border-radius;
289
+ transition: $actionList-item-bg-transition;
290
+ grid-template-rows: min-content;
291
+ grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
292
+ grid-template-columns: min-content min-content minmax(min-content, auto) min-content min-content;
293
+ align-items: center;
294
+
295
+ // column-gap persists with empty grid-areas, margin applies only when children exist
296
+ > :not(:last-child) {
297
+ margin-right: $spacer-2;
298
+ }
299
+
300
+ &:focus-visible {
301
+ @include focusOutline;
302
+ }
303
+
304
+ // sizes
305
+
306
+ &.ActionList-content--sizeMedium {
307
+ // 44px total height
308
+ // stylelint-disable-next-line primer/spacing
309
+ padding: $actionList-item-padding-vertical-md $actionList-item-padding-horizontal;
310
+ }
311
+
312
+ &.ActionList-content--sizeLarge {
313
+ // 48px total height
314
+ // stylelint-disable-next-line primer/spacing
315
+ padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
316
+ }
317
+
318
+ // On pointer:coarse (mobile), all list items are large
319
+ @media (pointer: coarse) {
320
+ // stylelint-disable-next-line primer/spacing
321
+ padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
322
+ }
323
+
324
+ &.ActionList-content--blockDescription {
325
+ // if leading/trailing visual, align with first line of content
326
+ .ActionList-item-visual {
327
+ place-self: start;
328
+ }
329
+ }
330
+ }
331
+
332
+ // place children on grid
333
+
334
+ .ActionList-item-action--leading {
335
+ grid-area: leadingAction;
336
+ }
337
+
338
+ .ActionList-item-visual--leading {
339
+ grid-area: leadingVisual;
340
+ }
341
+
342
+ .ActionList-item-label {
343
+ grid-area: label;
344
+ }
345
+
346
+ .ActionList-item-visual--trailing {
347
+ grid-area: trailingVisual;
348
+ }
349
+
350
+ .ActionList-item-action--trailing {
351
+ grid-area: trailingAction;
352
+ }
353
+
354
+ // wrapper span
355
+ // default block
356
+ .ActionList-item-descriptionWrap {
357
+ grid-area: label;
358
+ display: flex;
359
+ flex-direction: column;
360
+
361
+ .ActionList-item-description {
362
+ margin-top: $spacer-1;
363
+ }
364
+
365
+ .ActionList-item-label {
366
+ font-weight: $font-weight-bold;
367
+ }
368
+ }
369
+
370
+ // inline
371
+ .ActionList-item-descriptionWrap--inline {
372
+ flex-direction: row;
373
+ align-items: baseline;
374
+
375
+ .ActionList-item-description {
376
+ // stylelint-disable-next-line primer/spacing
377
+ margin-left: $actionList-item-padding-horizontal;
378
+ }
379
+ }
380
+
381
+ // description
382
+ .ActionList-item-description {
383
+ font-size: $font-size-small;
384
+ font-weight: $font-weight-normal;
385
+ line-height: $lh-default;
386
+ color: var(--color-fg-muted);
387
+ }
388
+
389
+ // helper for grid alignment with multi-line content
390
+ // span wrapping svg or text
391
+ .ActionList-item-visual,
392
+ .ActionList-item-action {
393
+ display: flex;
394
+ min-height: $actionList-item-height-sm;
395
+ color: var(--color-fg-muted); // if visual is text
396
+ fill: var(--color-fg-muted);
397
+ align-items: center;
398
+ }
399
+
400
+ // text
401
+ // stylelint-disable-next-line no-duplicate-selectors
402
+ .ActionList-item-label {
403
+ position: relative; // for pseudo dividers
404
+ font-weight: $font-weight-normal;
405
+ // we need a strict value here for grid alignment
406
+ // stylelint-disable-next-line primer/typography
407
+ line-height: $actionList-item-label-line-height;
408
+ color: var(--color-fg-default);
409
+ }
410
+
411
+ // nested lists (only supports 1 level currently)
412
+ // target ActionList-item--subItem for padding-left to maintain :active :after state
413
+
414
+ .ActionList-item--subItem > .ActionList-content {
415
+ font-size: $font-size-small;
416
+ }
417
+
418
+ // no leading visual
419
+ .ActionList--subGroup {
420
+ .ActionList-item--subItem {
421
+ padding-left: $spacer-3;
422
+ }
423
+ }
424
+
425
+ // has 16px leading visual
426
+ .ActionList-content--visual16 + .ActionList--subGroup {
427
+ .ActionList-item--subItem {
428
+ padding-left: $spacer-4;
429
+ }
430
+ }
431
+
432
+ // has 20px leading visual
433
+ .ActionList-content--visual20 + .ActionList--subGroup {
434
+ .ActionList-item--subItem {
435
+ padding-left: $spacer-3 * 1.75;
436
+ }
437
+ }
438
+
439
+ // has 24px leading visual
440
+ .ActionList-content--visual24 + .ActionList--subGroup {
441
+ .ActionList-item--subItem {
442
+ padding-left: $spacer-5;
443
+ }
444
+ }
@@ -0,0 +1,8 @@
1
+ $actionList-item-height-sm: $spacer-2 * 2.5 !default;
2
+ $actionList-item-label-line-height: $spacer-2 * 2.5 !default;
3
+ $actionList-item-padding-vertical-md: $spacer-2 * 1.25 !default;
4
+ $actionList-item-padding-vertical-lg: $spacer-2 * 1.75 !default;
5
+ $actionList-item-padding-vertical: $spacer-1 * 1.5 !default;
6
+ $actionList-item-padding-horizontal: $spacer-2 !default;
7
+ $actionList-item-bg-transition: background 33.333ms linear !default; // 2 frames on a 60hz monitor
8
+ $actionList-item-checkmark-transition-timing: 50ms !default;
@@ -0,0 +1,33 @@
1
+ // <ul>
2
+ .ActionList {
3
+ padding: $spacer-2;
4
+ }
5
+
6
+ // dividers
7
+
8
+ .ActionList--divided {
9
+ .ActionList-item-label::before {
10
+ position: absolute;
11
+ top: -$actionList-item-padding-vertical;
12
+ display: block;
13
+ width: 100%;
14
+ height: 1px;
15
+ content: '';
16
+ background: var(--color-action-list-item-inline-divider);
17
+ }
18
+
19
+ // hide divider if item is active
20
+ .ActionList-item--navActive {
21
+ // stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
22
+ .ActionList-item-label::before,
23
+ + .ActionList-item .ActionList-item-label::before {
24
+ visibility: hidden;
25
+ }
26
+ }
27
+ }
28
+
29
+ // hide if item is first of type with label::before, or is the first item after a sectionDivider
30
+ .ActionList-item:first-of-type .ActionList-item-label::before,
31
+ .ActionList-sectionDivider + .ActionList-item .ActionList-item-label::before {
32
+ visibility: hidden;
33
+ }
@@ -0,0 +1,5 @@
1
+ @import '../support/index.scss';
2
+ @import './action-list-variables.scss';
3
+ @import './action-list.scss';
4
+ @import './action-list-item.scss';
5
+ @import './action-list-item-divider.scss';
package/core/index.scss CHANGED
@@ -11,6 +11,7 @@
11
11
  // Color modes
12
12
 
13
13
  // Core modules
14
+ @import '../actionlist/index.scss';
14
15
  @import '../base/index.scss';
15
16
  @import '../box/index.scss';
16
17
  @import '../breadcrumb/index.scss';
@@ -0,0 +1,2 @@
1
+ .ActionList{padding:8px}.ActionList--divided .ActionList-item-label::before{position:absolute;top:-6px;display:block;width:100%;height:1px;content:"";background:var(--color-action-list-item-inline-divider)}.ActionList--divided .ActionList-item--navActive .ActionList-item-label::before,.ActionList--divided .ActionList-item--navActive+.ActionList-item .ActionList-item-label::before{visibility:hidden}.ActionList-item:first-of-type .ActionList-item-label::before,.ActionList-sectionDivider+.ActionList-item .ActionList-item-label::before{visibility:hidden}.ActionList-item{position:relative;list-style:none;background-color:transparent;border-radius:6px}.ActionList-item:hover,.ActionList-item:active{cursor:pointer}.ActionList-item:hover .ActionList-content,.ActionList-item:active .ActionList-content{text-decoration:none}.ActionList-item:not(.ActionList-item--hasSubItem):hover{cursor:pointer;background-color:var(--color-action-list-item-default-hover-bg)}.ActionList-item:not(.ActionList-item--hasSubItem):active{background:var(--color-action-list-item-default-active-bg)}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item:not(.ActionList-item--hasSubItem):active{animation:ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1)}}@keyframes ActionList-item-active-bg{50%{box-shadow:inset 0 0 0 rgba(0,0,0,.04);transform:scale(1)}100%{box-shadow:inset 0 3px 9px rgba(0,0,0,.04);transform:scale(0.97)}}.ActionList-item:not(.ActionList-item--hasSubItem):hover .ActionList-item-label::before,.ActionList-item:not(.ActionList-item--hasSubItem):hover+.ActionList-item .ActionList-item-label::before,.ActionList-item:not(.ActionList-item--hasSubItem):active .ActionList-item-label::before,.ActionList-item:not(.ActionList-item--hasSubItem):active+.ActionList-item .ActionList-item-label::before{visibility:hidden}.ActionList-item.ActionList-item--hasSubItem>.ActionList-content:hover{background-color:var(--color-action-list-item-default-hover-bg)}.ActionList-item.ActionList-item--navActive:not(.ActionList-item--danger){background:var(--color-action-list-item-default-selected-bg)}.ActionList-item.ActionList-item--navActive:not(.ActionList-item--danger)::before,.ActionList-item.ActionList-item--navActive:not(.ActionList-item--danger)+.ActionList-item::before{visibility:hidden}.ActionList-item.ActionList-item--navActive:not(.ActionList-item--danger)::after{position:absolute;top:calc(50% - 12px);left:-8px;width:4px;height:24px;content:"";background:var(--color-accent-fg);border-radius:6px}.ActionList-item[aria-expanded=true] .ActionList-item-collapseIcon{transition:transform 120ms linear;transform:scaleY(-1)}.ActionList-item[aria-expanded=true] .ActionList--subGroup{display:block}.ActionList-item[aria-expanded=true].ActionList-item--hasSubItem>.ActionList-content>.ActionList-item-label{font-weight:600}.ActionList-item[aria-expanded=false] .ActionList-item-collapseIcon{transition:transform 120ms linear;transform:scaleY(1)}.ActionList-item[aria-expanded=false] .ActionList--subGroup{display:none}.ActionList-item[aria-checked=true] .ActionList-item-multiSelectCheckmark,.ActionList-item[aria-selected=true] .ActionList-item-multiSelectCheckmark{visibility:visible;opacity:1;transition:visibility 0 linear 0,opacity 50ms}.ActionList-item[aria-checked=true] .ActionList-item-singleSelectCheckmark,.ActionList-item[aria-selected=true] .ActionList-item-singleSelectCheckmark{visibility:visible}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item[aria-checked=true] .ActionList-item-singleSelectCheckmark,.ActionList-item[aria-selected=true] .ActionList-item-singleSelectCheckmark{animation:checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards}}.ActionList-item[aria-checked=true] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectIconRect,.ActionList-item[aria-selected=true] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectIconRect{fill:var(--color-accent-fg);stroke:var(--color-accent-fg);stroke-width:1px}.ActionList-item[aria-checked=true] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectCheckmark,.ActionList-item[aria-selected=true] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectCheckmark{fill:var(--color-fg-on-emphasis)}.ActionList-item[aria-checked=false] .ActionList-item-multiSelectCheckmark,.ActionList-item[aria-selected=false] .ActionList-item-multiSelectCheckmark{visibility:hidden;opacity:0;transition:visibility 0 linear 50ms,opacity 50ms}.ActionList-item[aria-checked=false] .ActionList-item-singleSelectCheckmark,.ActionList-item[aria-selected=false] .ActionList-item-singleSelectCheckmark{visibility:hidden;transition:visibility 0s linear 200ms;-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item[aria-checked=false] .ActionList-item-singleSelectCheckmark,.ActionList-item[aria-selected=false] .ActionList-item-singleSelectCheckmark{animation:checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards}}.ActionList-item[aria-checked=false] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectIconRect,.ActionList-item[aria-selected=false] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectIconRect{fill:var(--color-canvas-default);stroke:var(--color-border-default);stroke-width:1px}.ActionList-item[aria-checked=false] .ActionList-item-multiSelectIconRect,.ActionList-item[aria-selected=false] .ActionList-item-multiSelectIconRect{fill:var(--color-canvas-default);border:1px solid var(--color-border-default)}@keyframes checkmarkIn{from{-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}to{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}}@keyframes checkmarkOut{from{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}to{-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}}.ActionList-item.ActionList-item--danger .ActionList-item-label{color:var(--color-danger-fg)}.ActionList-item.ActionList-item--danger .ActionList-item-visual{color:var(--color-danger-fg)}@media(hover: hover)and (pointer: fine){.ActionList-item.ActionList-item--danger:hover{background:var(--color-action-list-item-danger-hover-bg)}.ActionList-item.ActionList-item--danger:hover .ActionList-item-label{color:var(--color-action-list-item-danger-hover-text)}}.ActionList-item.ActionList-item--danger:active{background:var(--color-action-list-item-danger-active-bg)}.ActionList-item[aria-disabled=true] .ActionList-item-label,.ActionList-item[aria-disabled=true] .ActionList-item-description{color:var(--color-primer-fg-disabled)}.ActionList-item[aria-disabled=true] .ActionList-item-visual{fill:var(--color-primer-fg-disabled)}@media(hover: hover)and (pointer: fine){.ActionList-item[aria-disabled=true]:hover{cursor:not-allowed;background-color:transparent}}.ActionList-item .ActionList{padding:unset}.ActionList-content{position:relative;display:grid;padding:6px 8px;font-weight:400;color:var(--color-fg-default);-webkit-user-select:none;user-select:none;border-radius:6px;transition:background 33.333ms linear;grid-template-rows:min-content;grid-template-areas:"leadingAction leadingVisual label trailingVisual trailingAction";grid-template-columns:min-content min-content minmax(min-content, auto) min-content min-content;align-items:center}.ActionList-content>:not(:last-child){margin-right:8px}.ActionList-content:focus-visible{position:relative;z-index:1;outline:none;box-shadow:0 0 0 2px var(--color-accent-fg)}.ActionList-content.ActionList-content--sizeMedium{padding:10px 8px}.ActionList-content.ActionList-content--sizeLarge{padding:14px 8px}@media(pointer: coarse){.ActionList-content{padding:14px 8px}}.ActionList-content.ActionList-content--blockDescription .ActionList-item-visual{place-self:start}.ActionList-item-action--leading{grid-area:leadingAction}.ActionList-item-visual--leading{grid-area:leadingVisual}.ActionList-item-label{grid-area:label}.ActionList-item-visual--trailing{grid-area:trailingVisual}.ActionList-item-action--trailing{grid-area:trailingAction}.ActionList-item-descriptionWrap{grid-area:label;display:flex;flex-direction:column}.ActionList-item-descriptionWrap .ActionList-item-description{margin-top:4px}.ActionList-item-descriptionWrap .ActionList-item-label{font-weight:600}.ActionList-item-descriptionWrap--inline{flex-direction:row;align-items:baseline}.ActionList-item-descriptionWrap--inline .ActionList-item-description{margin-left:8px}.ActionList-item-description{font-size:12px;font-weight:400;line-height:1.5;color:var(--color-fg-muted)}.ActionList-item-visual,.ActionList-item-action{display:flex;min-height:20px;color:var(--color-fg-muted);fill:var(--color-fg-muted);align-items:center}.ActionList-item-label{position:relative;font-weight:400;line-height:20px;color:var(--color-fg-default)}.ActionList-item--subItem>.ActionList-content{font-size:12px}.ActionList--subGroup .ActionList-item--subItem{padding-left:16px}.ActionList-content--visual16+.ActionList--subGroup .ActionList-item--subItem{padding-left:24px}.ActionList-content--visual20+.ActionList--subGroup .ActionList-item--subItem{padding-left:28px}.ActionList-content--visual24+.ActionList--subGroup .ActionList-item--subItem{padding-left:32px}.ActionList-sectionDivider:not(:empty){display:flex;padding:6px 8px;font-size:12px;font-weight:600;color:var(--color-fg-muted);flex-direction:column}.ActionList-sectionDivider:empty{height:1px;padding:0;margin:7px -8px 8px;list-style:none;background:var(--color-action-list-item-inline-divider);border:0}.ActionList-sectionDivider--filled{margin:8px -8px;background:var(--color-canvas-subtle);border-top:1px solid var(--color-action-list-item-inline-divider);border-bottom:1px solid var(--color-action-list-item-inline-divider)}.ActionList-sectionDivider--filled:empty{height:8px;box-sizing:border-box}.ActionList-sectionDivider--filled:first-child{margin-top:0}
2
+ /*# sourceMappingURL=actionlist.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["file:///home/runner/work/css/css/src/actionlist/index.scss%23sass"],"names":[],"mappings":"AA2gBA,YAAA,WAAA,CAAA,oDAAA,iBAAA,CAAA,QAAA,CAAA,aAAA,CAAA,UAAA,CAAA,UAAA,CAAA,UAAA,CAAA,uDAAA,CAAA,iLAAA,iBAAA,CAAA,yIAAA,iBAAA,CAAA,iBAAA,iBAAA,CAAA,eAAA,CAAA,4BAAA,CAAA,iBAAA,CAAA,+CAAA,cAAA,CAAA,uFAAA,oBAAA,CAAA,yDAAA,cAAA,CAAA,+DAAA,CAAA,0DAAA,0DAAA,CAAA,0DAAA,0DAAA,8EAAA,CAAA,CAAA,qCAAA,IAAA,sCAAA,CAAA,kBAAA,CAAA,KAAA,0CAAA,CAAA,qBAAA,CAAA,CAAA,oYAAA,iBAAA,CAAA,uEAAA,+DAAA,CAAA,0EAAA,4DAAA,CAAA,qLAAA,iBAAA,CAAA,iFAAA,iBAAA,CAAA,oBAAA,CAAA,SAAA,CAAA,SAAA,CAAA,WAAA,CAAA,UAAA,CAAA,iCAAA,CAAA,iBAAA,CAAA,mEAAA,iCAAA,CAAA,oBAAA,CAAA,2DAAA,aAAA,CAAA,4GAAA,eAAA,CAAA,oEAAA,iCAAA,CAAA,mBAAA,CAAA,4DAAA,YAAA,CAAA,qJAAA,kBAAA,CAAA,SAAA,CAAA,6CAAA,CAAA,uJAAA,kBAAA,CAAA,0DAAA,uJAAA,kEAAA,CAAA,CAAA,qNAAA,2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