@spectrum-web-components/card 0.13.9-overlay.0 → 0.14.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/README.md CHANGED
@@ -107,7 +107,7 @@ Cards can be supplied an `actions` via a names slot.
107
107
  alt="Demo Image"
108
108
  />
109
109
  <div slot="footer">Footer</div>
110
- <sp-action-menu slot="actions" placement="bottom-end">
110
+ <sp-action-menu slot="actions" placement="bottom-end" quiet>
111
111
  <sp-menu-item>Deselect</sp-menu-item>
112
112
  <sp-menu-item>Select Inverse</sp-menu-item>
113
113
  <sp-menu-item>Feather...</sp-menu-item>
@@ -181,7 +181,7 @@ Quiet cards will also accept `actions` via a named slot.
181
181
  <sp-card variant="quiet" heading="Card Heading" subheading="JPG Photo">
182
182
  <img alt="" slot="preview" src="https://picsum.photos/200/300" />
183
183
  <div slot="description">10/15/18</div>
184
- <sp-action-menu slot="actions" placement="bottom-end">
184
+ <sp-action-menu slot="actions" placement="bottom-end" quiet>
185
185
  <sp-menu-item>Deselect</sp-menu-item>
186
186
  <sp-menu-item>Select Inverse</sp-menu-item>
187
187
  <sp-menu-item>Feather...</sp-menu-item>
@@ -264,7 +264,7 @@ Or a `quiet` card:
264
264
  >
265
265
  <img src="https://picsum.photos/110" alt="Demo Image" slot="preview" />
266
266
  <div slot="footer">Footer</div>
267
- <sp-action-menu slot="actions" placement="bottom-end">
267
+ <sp-action-menu slot="actions" placement="bottom-end" quiet>
268
268
  <sp-menu-item>Deselect</sp-menu-item>
269
269
  <sp-menu-item>Select Inverse</sp-menu-item>
270
270
  <sp-menu-item>Feather...</sp-menu-item>
@@ -0,0 +1,485 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-card.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-card",
13
+ "declaration": {
14
+ "name": "Card",
15
+ "module": "/src/Card.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/Card.js",
23
+ "declarations": [
24
+ {
25
+ "kind": "class",
26
+ "description": "",
27
+ "name": "Card",
28
+ "slots": [
29
+ {
30
+ "description": "This is the preview image for Gallery Cards",
31
+ "name": "preview"
32
+ },
33
+ {
34
+ "description": "This is the cover photo for Default and Quiet Cards",
35
+ "name": "cover-photo"
36
+ },
37
+ {
38
+ "description": "HTML content to be listed as the heading",
39
+ "name": "heading"
40
+ },
41
+ {
42
+ "description": "HTML content to be listed as the subheading",
43
+ "name": "subheading"
44
+ },
45
+ {
46
+ "description": "A description of the card",
47
+ "name": "description"
48
+ },
49
+ {
50
+ "description": "an `sp-action-menu` element outlining actions to take on the represened object",
51
+ "name": "actions"
52
+ },
53
+ {
54
+ "description": "Footer text",
55
+ "name": "footer"
56
+ }
57
+ ],
58
+ "members": [
59
+ {
60
+ "kind": "field",
61
+ "name": "asset",
62
+ "type": {
63
+ "text": "'file' | 'folder' | undefined"
64
+ },
65
+ "privacy": "public",
66
+ "attribute": "asset"
67
+ },
68
+ {
69
+ "kind": "field",
70
+ "name": "variant",
71
+ "type": {
72
+ "text": "'standard' | 'gallery' | 'quiet'"
73
+ },
74
+ "privacy": "public",
75
+ "default": "'standard'",
76
+ "attribute": "variant",
77
+ "reflects": true
78
+ },
79
+ {
80
+ "kind": "field",
81
+ "name": "selected",
82
+ "type": {
83
+ "text": "boolean"
84
+ },
85
+ "attribute": "selected",
86
+ "reflects": true
87
+ },
88
+ {
89
+ "kind": "field",
90
+ "name": "_selected",
91
+ "type": {
92
+ "text": "boolean"
93
+ },
94
+ "privacy": "private",
95
+ "default": "false"
96
+ },
97
+ {
98
+ "kind": "field",
99
+ "name": "heading",
100
+ "type": {
101
+ "text": "string"
102
+ },
103
+ "privacy": "public",
104
+ "default": "''",
105
+ "attribute": "heading"
106
+ },
107
+ {
108
+ "kind": "field",
109
+ "name": "horizontal",
110
+ "type": {
111
+ "text": "boolean"
112
+ },
113
+ "privacy": "public",
114
+ "default": "false",
115
+ "attribute": "horizontal",
116
+ "reflects": true
117
+ },
118
+ {
119
+ "kind": "field",
120
+ "name": "likeAnchor",
121
+ "type": {
122
+ "text": "HTMLAnchorElement | undefined"
123
+ },
124
+ "privacy": "private"
125
+ },
126
+ {
127
+ "kind": "field",
128
+ "name": "focused",
129
+ "type": {
130
+ "text": "boolean"
131
+ },
132
+ "privacy": "public",
133
+ "default": "false",
134
+ "attribute": "focused",
135
+ "reflects": true
136
+ },
137
+ {
138
+ "kind": "field",
139
+ "name": "toggles",
140
+ "type": {
141
+ "text": "boolean"
142
+ },
143
+ "privacy": "public",
144
+ "default": "false",
145
+ "attribute": "toggles",
146
+ "reflects": true
147
+ },
148
+ {
149
+ "kind": "field",
150
+ "name": "value",
151
+ "type": {
152
+ "text": "string"
153
+ },
154
+ "privacy": "public",
155
+ "default": "''",
156
+ "attribute": "value"
157
+ },
158
+ {
159
+ "kind": "field",
160
+ "name": "subheading",
161
+ "type": {
162
+ "text": "string"
163
+ },
164
+ "privacy": "public",
165
+ "default": "''",
166
+ "attribute": "subheading"
167
+ },
168
+ {
169
+ "kind": "field",
170
+ "name": "hasCoverPhoto",
171
+ "type": {
172
+ "text": "boolean"
173
+ },
174
+ "privacy": "protected"
175
+ },
176
+ {
177
+ "kind": "field",
178
+ "name": "hasPreview",
179
+ "type": {
180
+ "text": "boolean"
181
+ },
182
+ "privacy": "protected"
183
+ },
184
+ {
185
+ "kind": "method",
186
+ "name": "click",
187
+ "privacy": "public",
188
+ "return": {
189
+ "type": {
190
+ "text": "void"
191
+ }
192
+ }
193
+ },
194
+ {
195
+ "kind": "field",
196
+ "name": "handleFocusin",
197
+ "privacy": "private"
198
+ },
199
+ {
200
+ "kind": "method",
201
+ "name": "handleFocusout",
202
+ "privacy": "private",
203
+ "return": {
204
+ "type": {
205
+ "text": "void"
206
+ }
207
+ },
208
+ "parameters": [
209
+ {
210
+ "name": "event",
211
+ "type": {
212
+ "text": "Event"
213
+ }
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ "kind": "method",
219
+ "name": "handleKeydown",
220
+ "privacy": "private",
221
+ "return": {
222
+ "type": {
223
+ "text": "void"
224
+ }
225
+ },
226
+ "parameters": [
227
+ {
228
+ "name": "event",
229
+ "type": {
230
+ "text": "KeyboardEvent"
231
+ }
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "kind": "method",
237
+ "name": "handleSelectedChange",
238
+ "privacy": "private",
239
+ "return": {
240
+ "type": {
241
+ "text": "void"
242
+ }
243
+ },
244
+ "parameters": [
245
+ {
246
+ "name": "event",
247
+ "type": {
248
+ "text": "Event & { target: Checkbox }"
249
+ }
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "kind": "method",
255
+ "name": "toggleSelected",
256
+ "privacy": "public",
257
+ "return": {
258
+ "type": {
259
+ "text": "void"
260
+ }
261
+ }
262
+ },
263
+ {
264
+ "kind": "method",
265
+ "name": "announceChange",
266
+ "privacy": "private",
267
+ "return": {
268
+ "type": {
269
+ "text": "void"
270
+ }
271
+ }
272
+ },
273
+ {
274
+ "kind": "method",
275
+ "name": "stopPropagationOnHref",
276
+ "privacy": "private",
277
+ "return": {
278
+ "type": {
279
+ "text": "void"
280
+ }
281
+ },
282
+ "parameters": [
283
+ {
284
+ "name": "event",
285
+ "type": {
286
+ "text": "Event"
287
+ }
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "kind": "method",
293
+ "name": "handlePointerdown",
294
+ "privacy": "private",
295
+ "return": {
296
+ "type": {
297
+ "text": "void"
298
+ }
299
+ },
300
+ "parameters": [
301
+ {
302
+ "name": "event",
303
+ "type": {
304
+ "text": "Event"
305
+ }
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "kind": "field",
311
+ "name": "renderHeading",
312
+ "type": {
313
+ "text": "TemplateResult"
314
+ },
315
+ "privacy": "protected"
316
+ },
317
+ {
318
+ "kind": "field",
319
+ "name": "renderPreviewImage",
320
+ "type": {
321
+ "text": "TemplateResult"
322
+ },
323
+ "privacy": "protected"
324
+ },
325
+ {
326
+ "kind": "field",
327
+ "name": "renderCoverImage",
328
+ "type": {
329
+ "text": "TemplateResult"
330
+ },
331
+ "privacy": "protected"
332
+ },
333
+ {
334
+ "kind": "field",
335
+ "name": "images",
336
+ "type": {
337
+ "text": "TemplateResult[]"
338
+ },
339
+ "privacy": "protected"
340
+ },
341
+ {
342
+ "kind": "method",
343
+ "name": "renderImage",
344
+ "privacy": "private",
345
+ "return": {
346
+ "type": {
347
+ "text": "TemplateResult[]"
348
+ }
349
+ }
350
+ },
351
+ {
352
+ "kind": "field",
353
+ "name": "renderSubtitleAndDescription",
354
+ "type": {
355
+ "text": "TemplateResult"
356
+ },
357
+ "privacy": "private"
358
+ }
359
+ ],
360
+ "events": [
361
+ {
362
+ "name": "click",
363
+ "type": {
364
+ "text": "Event"
365
+ }
366
+ },
367
+ {
368
+ "name": "change",
369
+ "type": {
370
+ "text": "Event"
371
+ },
372
+ "description": "Announces a change in the `selected` property of a card"
373
+ }
374
+ ],
375
+ "attributes": [
376
+ {
377
+ "name": "asset",
378
+ "type": {
379
+ "text": "'file' | 'folder' | undefined"
380
+ },
381
+ "fieldName": "asset"
382
+ },
383
+ {
384
+ "name": "variant",
385
+ "type": {
386
+ "text": "'standard' | 'gallery' | 'quiet'"
387
+ },
388
+ "default": "'standard'",
389
+ "fieldName": "variant"
390
+ },
391
+ {
392
+ "name": "selected",
393
+ "type": {
394
+ "text": "boolean"
395
+ },
396
+ "fieldName": "selected"
397
+ },
398
+ {
399
+ "name": "heading",
400
+ "type": {
401
+ "text": "string"
402
+ },
403
+ "default": "''",
404
+ "fieldName": "heading"
405
+ },
406
+ {
407
+ "name": "horizontal",
408
+ "type": {
409
+ "text": "boolean"
410
+ },
411
+ "default": "false",
412
+ "fieldName": "horizontal"
413
+ },
414
+ {
415
+ "name": "focused",
416
+ "type": {
417
+ "text": "boolean"
418
+ },
419
+ "default": "false",
420
+ "fieldName": "focused"
421
+ },
422
+ {
423
+ "name": "toggles",
424
+ "type": {
425
+ "text": "boolean"
426
+ },
427
+ "default": "false",
428
+ "fieldName": "toggles"
429
+ },
430
+ {
431
+ "name": "value",
432
+ "type": {
433
+ "text": "string"
434
+ },
435
+ "default": "''",
436
+ "fieldName": "value"
437
+ },
438
+ {
439
+ "name": "subheading",
440
+ "type": {
441
+ "text": "string"
442
+ },
443
+ "default": "''",
444
+ "fieldName": "subheading"
445
+ }
446
+ ],
447
+ "mixins": [
448
+ {
449
+ "name": "LikeAnchor",
450
+ "package": "@spectrum-web-components/shared/src/like-anchor.js"
451
+ },
452
+ {
453
+ "name": "SizedMixin",
454
+ "package": "@spectrum-web-components/base"
455
+ },
456
+ {
457
+ "name": "ObserveSlotPresence",
458
+ "package": "@spectrum-web-components/shared/src/observe-slot-presence.js"
459
+ },
460
+ {
461
+ "name": "FocusVisiblePolyfillMixin",
462
+ "package": "@spectrum-web-components/shared/src/focus-visible.js"
463
+ }
464
+ ],
465
+ "superclass": {
466
+ "name": "SpectrumElement",
467
+ "package": "@spectrum-web-components/base"
468
+ },
469
+ "tagName": "sp-card",
470
+ "customElement": true
471
+ }
472
+ ],
473
+ "exports": [
474
+ {
475
+ "kind": "js",
476
+ "name": "Card",
477
+ "declaration": {
478
+ "name": "Card",
479
+ "module": "src/Card.js"
480
+ }
481
+ }
482
+ ]
483
+ }
484
+ ]
485
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/card",
3
- "version": "0.13.9-overlay.0+499d5fe96",
3
+ "version": "0.14.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,13 +57,13 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/asset": "^0.7.6",
60
+ "@spectrum-web-components/asset": "^0.7.7",
61
61
  "@spectrum-web-components/base": "^0.7.4",
62
- "@spectrum-web-components/checkbox": "^0.14.11-overlay.0+499d5fe96",
63
- "@spectrum-web-components/icons-workflow": "^0.9.8",
64
- "@spectrum-web-components/quick-actions": "^0.7.6",
65
- "@spectrum-web-components/shared": "^0.15.6-overlay.99+499d5fe96",
66
- "@spectrum-web-components/styles": "^0.23.0"
62
+ "@spectrum-web-components/checkbox": "^0.14.12",
63
+ "@spectrum-web-components/icons-workflow": "^0.9.10",
64
+ "@spectrum-web-components/quick-actions": "^0.7.7",
65
+ "@spectrum-web-components/shared": "^0.15.5",
66
+ "@spectrum-web-components/styles": "^0.23.2"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@spectrum-css/card": "^5.0.8"
@@ -74,5 +74,5 @@
74
74
  "./sp-*.js",
75
75
  "./**/*.dev.js"
76
76
  ],
77
- "gitHead": "499d5fe966f35eb862c1983eb3a42641f213ac6a"
77
+ "gitHead": "1e25ee121f3bc838dbb99bac62f3c95857570f7a"
78
78
  }
@@ -105,69 +105,13 @@ const styles = css`
105
105
  --spectrum-card-m-border-radius,var(--spectrum-alias-border-radius-regular)
106
106
  );--spectrum-card-border-size:var(
107
107
  --spectrum-card-m-border-size,var(--spectrum-alias-border-size-thin)
108
- )}:host{border:var(--spectrum-card-border-size) solid transparent;border-radius:var(--spectrum-card-border-radius);box-sizing:border-box;display:inline-flex;flex-direction:column;min-width:var(--spectrum-card-min-width);position:relative;text-decoration:none}:host(:focus){outline:none}:host(:focus) .actions,:host(:focus) .quick-actions,:host(:hover) .actions,:host(:hover) .quick-actions,:host([focused]) .actions,:host([focused]) .quick-actions,:host([selected]) .actions,:host([selected]) .quick-actions{opacity:1;pointer-events:all;visibility:visible}:host([dir=ltr]) .actions{right:var(
109
- --spectrum-card-actions-margin
110
- )}:host([dir=rtl]) .actions{left:var(
111
- --spectrum-card-actions-margin
112
- )}.actions{height:var(
108
+ )}:host{border:var(--spectrum-card-border-size) solid transparent;border-radius:var(--spectrum-card-border-radius);box-sizing:border-box;display:inline-flex;flex-direction:column;min-width:var(--spectrum-card-min-width);position:relative;text-decoration:none}:host(:focus){outline:none}:host(:focus) .actions,:host(:focus) .quick-actions,:host(:hover) .actions,:host(:hover) .quick-actions,:host([focused]) .actions,:host([focused]) .quick-actions,:host([selected]) .actions,:host([selected]) .quick-actions{opacity:1;pointer-events:all;visibility:visible}:host([dir=ltr]) .actions{right:var(--spectrum-card-actions-margin)}:host([dir=rtl]) .actions{left:var(--spectrum-card-actions-margin)}.actions{height:var(
113
109
  --spectrum-quickactions-height,var(--spectrum-global-dimension-size-500)
114
- );position:absolute;top:var(--spectrum-card-actions-margin);visibility:hidden}:host([dir=ltr]) .quick-actions{left:var(
115
- --spectrum-card-checkbox-margin
116
- )}:host([dir=rtl]) .quick-actions{right:var(
117
- --spectrum-card-checkbox-margin
118
- )}.quick-actions{height:var(
110
+ );position:absolute;top:var(--spectrum-card-actions-margin);visibility:hidden}:host([dir=ltr]) .quick-actions{left:var(--spectrum-card-checkbox-margin)}:host([dir=rtl]) .quick-actions{right:var(--spectrum-card-checkbox-margin)}.quick-actions{height:var(
119
111
  --spectrum-quickactions-height,var(--spectrum-global-dimension-size-500)
120
112
  );position:absolute;top:var(--spectrum-card-checkbox-margin);visibility:hidden;width:var(
121
113
  --spectrum-quickactions-height,var(--spectrum-global-dimension-size-500)
122
- )}:host([dir=ltr]) .quick-actions .checkbox,:host([dir=rtl]) .quick-actions .checkbox{margin:0}#cover-photo{align-items:center;background-position:50%;background-size:cover;border-bottom:var(--spectrum-card-coverphoto-border-bottom-size) solid transparent;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:calc(var(--spectrum-card-border-radius) - 1px);border-top-right-radius:calc(var(--spectrum-card-border-radius) - 1px);box-sizing:border-box;display:flex;height:var(
123
- --spectrum-card-coverphoto-height
124
- );justify-content:center}:host([dir=ltr]) .body{padding-right:var(
125
- --spectrum-card-body-padding-right
126
- )}:host([dir=rtl]) .body{padding-left:var(
127
- --spectrum-card-body-padding-right
128
- )}:host([dir=ltr]) .body{padding-left:var(
129
- --spectrum-card-body-padding-left
130
- )}:host([dir=rtl]) .body{padding-right:var(
131
- --spectrum-card-body-padding-left
132
- )}.body{padding-bottom:var(--spectrum-card-body-padding-bottom);padding-top:var(
133
- --spectrum-card-body-padding-top
134
- )}.body:last-child{border-bottom-left-radius:var(--spectrum-card-border-radius);border-bottom-right-radius:var(--spectrum-card-border-radius);border-top-left-radius:0;border-top-right-radius:0}#preview{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:calc(var(--spectrum-card-border-radius) - 1px);border-top-right-radius:calc(var(--spectrum-card-border-radius) - 1px);overflow:hidden}.header{height:var(--spectrum-card-body-header-height)}.content{display:flex;margin-top:var(--spectrum-card-body-content-margin-top);min-height:var(--spectrum-card-body-content-min-height)}:host([dir=ltr]) .title{padding-right:var(
135
- --spectrum-card-title-padding-right
136
- )}:host([dir=rtl]) .title{padding-left:var(
137
- --spectrum-card-title-padding-right
138
- )}.title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([dir=ltr]) .subtitle{padding-right:var(
139
- --spectrum-card-subtitle-padding-right
140
- )}:host([dir=rtl]) .subtitle{padding-left:var(
141
- --spectrum-card-subtitle-padding-right
142
- )}::slotted([slot=description]){font-size:var(
143
- --spectrum-card-subtitle-text-size
144
- )}:host([dir=ltr]) .subtitle+::slotted([slot=description]):before{padding-right:var(
145
- --spectrum-card-subtitle-padding-right
146
- )}:host([dir=rtl]) .subtitle+::slotted([slot=description]):before{padding-left:var(
147
- --spectrum-card-subtitle-padding-right
148
- )}.subtitle+::slotted([slot=description]):before{content:"•"}:host([dir=ltr]) ::slotted([slot=footer]){margin-right:var(
149
- --spectrum-card-body-padding-right
150
- )}:host([dir=rtl]) ::slotted([slot=footer]){margin-left:var(
151
- --spectrum-card-body-padding-right
152
- )}:host([dir=ltr]) ::slotted([slot=footer]){margin-left:var(
153
- --spectrum-card-body-padding-left
154
- )}:host([dir=rtl]) ::slotted([slot=footer]){margin-right:var(
155
- --spectrum-card-body-padding-left
156
- )}::slotted([slot=footer]){border-top:var(--spectrum-card-footer-border-top-size) solid;padding-bottom:var(--spectrum-card-body-padding-bottom);padding-top:var(
157
- --spectrum-card-footer-padding-top
158
- )}.header{align-items:baseline;display:flex}.action-button{align-self:center;display:flex;flex:1;justify-content:flex-end}:host([variant=quiet]) #preview{min-height:var(
159
- --spectrum-card-quiet-min-height
160
- )}:host([variant=gallery]),:host([variant=quiet]){border-radius:0;border-width:0;height:100%;min-width:var(--spectrum-card-quiet-min-width);overflow:visible}:host([variant=gallery]) #preview,:host([variant=quiet]) #preview{border-radius:var(--spectrum-card-quiet-border-radius);box-sizing:border-box;flex:1;margin:0 auto;overflow:visible;padding:var(--spectrum-card-quiet-preview-padding);position:relative;transition:background-color var(--spectrum-global-animation-duration-100,.13s);width:100%}:host([dir=ltr][variant=gallery]) #preview:before,:host([dir=ltr][variant=quiet]) #preview:before{left:0}:host([dir=rtl][variant=gallery]) #preview:before,:host([dir=rtl][variant=quiet]) #preview:before{right:0}:host([variant=gallery]) #preview:before,:host([variant=quiet]) #preview:before{border:var(--spectrum-card-quiet-border-size) solid transparent;border-radius:inherit;box-sizing:border-box;content:"";height:100%;position:absolute;top:0;width:100%}:host([variant=gallery][drop-target]) #preview,:host([variant=quiet][drop-target]) #preview{transition:none}:host([variant=gallery]) .header,:host([variant=quiet]) .header{height:var(
161
- --spectrum-card-quiet-body-header-height
162
- );margin-top:var(--spectrum-card-quiet-body-header-margin-top)}:host([variant=gallery]) .body,:host([variant=quiet]) .body{padding:0}:host([horizontal]){flex-direction:row}:host([dir=ltr][horizontal]) #preview{border-top-left-radius:var(
163
- --spectrum-card-quiet-border-radius
164
- )}:host([dir=rtl][horizontal]) #preview{border-top-right-radius:var(
165
- --spectrum-card-quiet-border-radius
166
- )}:host([dir=ltr][horizontal]) #preview{border-top-right-radius:0}:host([dir=rtl][horizontal]) #preview{border-top-left-radius:0}:host([dir=ltr][horizontal]) #preview{border-bottom-left-radius:var(
167
- --spectrum-card-quiet-border-radius
168
- )}:host([dir=rtl][horizontal]) #preview{border-bottom-right-radius:var(
169
- --spectrum-card-quiet-border-radius
170
- )}:host([dir=ltr][horizontal]) #preview{border-bottom-right-radius:0}:host([dir=rtl][horizontal]) #preview{border-bottom-left-radius:0}:host([dir=ltr][horizontal]) #preview{border-right:var(--spectrum-card-border-size) solid transparent}:host([dir=rtl][horizontal]) #preview{border-left:var(--spectrum-card-border-size) solid transparent}:host([horizontal]) #preview{align-items:center;display:flex;flex-shrink:0;justify-content:center;min-height:0;padding:var(--spectrum-global-dimension-size-175)}:host([horizontal]) .content,:host([horizontal]) .header{height:auto;margin-top:0}:host([dir=ltr][horizontal]) .title{padding-right:0}:host([dir=rtl][horizontal]) .title{padding-left:0}:host([horizontal]) .body{display:flex;flex-direction:column;flex-shrink:0;justify-content:center;padding-bottom:0;padding-left:var(--spectrum-global-dimension-size-200);padding-right:var(--spectrum-global-dimension-size-200);padding-top:0}:host([variant=gallery]){min-width:0}:host([variant=gallery]) #preview{border-radius:0;padding:0}:host{background-color:var(
114
+ )}:host([dir=ltr]) .quick-actions .checkbox,:host([dir=rtl]) .quick-actions .checkbox{margin:0}#cover-photo{align-items:center;background-position:50%;background-size:cover;border-bottom:var(--spectrum-card-coverphoto-border-bottom-size) solid transparent;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:calc(var(--spectrum-card-border-radius) - 1px);border-top-right-radius:calc(var(--spectrum-card-border-radius) - 1px);box-sizing:border-box;display:flex;height:var(--spectrum-card-coverphoto-height);justify-content:center}:host([dir=ltr]) .body{padding-right:var(--spectrum-card-body-padding-right)}:host([dir=rtl]) .body{padding-left:var(--spectrum-card-body-padding-right)}:host([dir=ltr]) .body{padding-left:var(--spectrum-card-body-padding-left)}:host([dir=rtl]) .body{padding-right:var(--spectrum-card-body-padding-left)}.body{padding-bottom:var(--spectrum-card-body-padding-bottom);padding-top:var(--spectrum-card-body-padding-top)}.body:last-child{border-bottom-left-radius:var(--spectrum-card-border-radius);border-bottom-right-radius:var(--spectrum-card-border-radius);border-top-left-radius:0;border-top-right-radius:0}#preview{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:calc(var(--spectrum-card-border-radius) - 1px);border-top-right-radius:calc(var(--spectrum-card-border-radius) - 1px);overflow:hidden}.header{height:var(--spectrum-card-body-header-height)}.content{display:flex;margin-top:var(--spectrum-card-body-content-margin-top);min-height:var(--spectrum-card-body-content-min-height)}:host([dir=ltr]) .title{padding-right:var(--spectrum-card-title-padding-right)}:host([dir=rtl]) .title{padding-left:var(--spectrum-card-title-padding-right)}.title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([dir=ltr]) .subtitle{padding-right:var(--spectrum-card-subtitle-padding-right)}:host([dir=rtl]) .subtitle{padding-left:var(--spectrum-card-subtitle-padding-right)}::slotted([slot=description]){font-size:var(--spectrum-card-subtitle-text-size)}:host([dir=ltr]) .subtitle+::slotted([slot=description]):before{padding-right:var(--spectrum-card-subtitle-padding-right)}:host([dir=rtl]) .subtitle+::slotted([slot=description]):before{padding-left:var(--spectrum-card-subtitle-padding-right)}.subtitle+::slotted([slot=description]):before{content:"•"}:host([dir=ltr]) ::slotted([slot=footer]){margin-right:var(--spectrum-card-body-padding-right)}:host([dir=rtl]) ::slotted([slot=footer]){margin-left:var(--spectrum-card-body-padding-right)}:host([dir=ltr]) ::slotted([slot=footer]){margin-left:var(--spectrum-card-body-padding-left)}:host([dir=rtl]) ::slotted([slot=footer]){margin-right:var(--spectrum-card-body-padding-left)}::slotted([slot=footer]){border-top:var(--spectrum-card-footer-border-top-size) solid;padding-bottom:var(--spectrum-card-body-padding-bottom);padding-top:var(--spectrum-card-footer-padding-top)}.header{align-items:baseline;display:flex}.action-button{align-self:center;display:flex;flex:1;justify-content:flex-end}:host([variant=quiet]) #preview{min-height:var(--spectrum-card-quiet-min-height)}:host([variant=gallery]),:host([variant=quiet]){border-radius:0;border-width:0;height:100%;min-width:var(--spectrum-card-quiet-min-width);overflow:visible}:host([variant=gallery]) #preview,:host([variant=quiet]) #preview{border-radius:var(--spectrum-card-quiet-border-radius);box-sizing:border-box;flex:1;margin:0 auto;overflow:visible;padding:var(--spectrum-card-quiet-preview-padding);position:relative;transition:background-color var(--spectrum-global-animation-duration-100,.13s);width:100%}:host([dir=ltr][variant=gallery]) #preview:before,:host([dir=ltr][variant=quiet]) #preview:before{left:0}:host([dir=rtl][variant=gallery]) #preview:before,:host([dir=rtl][variant=quiet]) #preview:before{right:0}:host([variant=gallery]) #preview:before,:host([variant=quiet]) #preview:before{border:var(--spectrum-card-quiet-border-size) solid transparent;border-radius:inherit;box-sizing:border-box;content:"";height:100%;position:absolute;top:0;width:100%}:host([variant=gallery][drop-target]) #preview,:host([variant=quiet][drop-target]) #preview{transition:none}:host([variant=gallery]) .header,:host([variant=quiet]) .header{height:var(--spectrum-card-quiet-body-header-height);margin-top:var(--spectrum-card-quiet-body-header-margin-top)}:host([variant=gallery]) .body,:host([variant=quiet]) .body{padding:0}:host([horizontal]){flex-direction:row}:host([dir=ltr][horizontal]) #preview{border-top-left-radius:var(--spectrum-card-quiet-border-radius)}:host([dir=rtl][horizontal]) #preview{border-top-right-radius:var(--spectrum-card-quiet-border-radius)}:host([dir=ltr][horizontal]) #preview{border-top-right-radius:0}:host([dir=rtl][horizontal]) #preview{border-top-left-radius:0}:host([dir=ltr][horizontal]) #preview{border-bottom-left-radius:var(--spectrum-card-quiet-border-radius)}:host([dir=rtl][horizontal]) #preview{border-bottom-right-radius:var(--spectrum-card-quiet-border-radius)}:host([dir=ltr][horizontal]) #preview{border-bottom-right-radius:0}:host([dir=rtl][horizontal]) #preview{border-bottom-left-radius:0}:host([dir=ltr][horizontal]) #preview{border-right:var(--spectrum-card-border-size) solid transparent}:host([dir=rtl][horizontal]) #preview{border-left:var(--spectrum-card-border-size) solid transparent}:host([horizontal]) #preview{align-items:center;display:flex;flex-shrink:0;justify-content:center;min-height:0;padding:var(--spectrum-global-dimension-size-175)}:host([horizontal]) .content,:host([horizontal]) .header{height:auto;margin-top:0}:host([dir=ltr][horizontal]) .title{padding-right:0}:host([dir=rtl][horizontal]) .title{padding-left:0}:host([horizontal]) .body{-ms-flex-negative:0;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;padding-bottom:0;padding-left:var(--spectrum-global-dimension-size-200);padding-right:var(--spectrum-global-dimension-size-200);padding-top:0}:host([variant=gallery]){min-width:0}:host([variant=gallery]) #preview{border-radius:0;padding:0}:host{background-color:var(
171
115
  --spectrum-card-m-background-color,var(--spectrum-global-color-gray-50)
172
116
  );border-color:var(
173
117
  --spectrum-card-m-border-color,var(--spectrum-global-color-gray-200)
@@ -199,11 +143,11 @@ const styles = css`
199
143
  --spectrum-card-m-coverphoto-border-color,var(--spectrum-global-color-gray-200)
200
144
  )}::slotted([slot=footer]){border-color:var(
201
145
  --spectrum-card-m-border-color,var(--spectrum-global-color-gray-200)
202
- )}:host([variant=gallery]),:host([variant=quiet]){background-color:transparent;border-color:transparent}:host([variant=gallery]) #preview,:host([variant=quiet]) #preview{background-color:var(
146
+ )}:host([variant=gallery]),:host([variant=quiet]){background-color:#0000;border-color:#0000}:host([variant=gallery]) #preview,:host([variant=quiet]) #preview{background-color:var(
203
147
  --spectrum-card-m-quiet-preview-background-color,var(--spectrum-global-color-gray-200)
204
- )}:host([variant=gallery]:hover),:host([variant=quiet]:hover){border-color:transparent}:host([variant=gallery]:hover) #preview,:host([variant=quiet]:hover) #preview{background-color:var(
148
+ )}:host([variant=gallery]:hover),:host([variant=quiet]:hover){border-color:#0000}:host([variant=gallery]:hover) #preview,:host([variant=quiet]:hover) #preview{background-color:var(
205
149
  --spectrum-card-m-quiet-preview-background-color-hover,var(--spectrum-global-color-gray-300)
206
- )}:host([variant=gallery].focus-visible),:host([variant=gallery][selected]),:host([variant=quiet].focus-visible),:host([variant=quiet][selected]){border-color:transparent;box-shadow:none}:host([variant=gallery].focus-visible),:host([variant=gallery][selected]),:host([variant=quiet].focus-visible),:host([variant=quiet][selected]){border-color:transparent;box-shadow:none}:host([variant=gallery]:focus-visible),:host([variant=gallery][selected]),:host([variant=quiet]:focus-visible),:host([variant=quiet][selected]){border-color:transparent;box-shadow:none}:host([variant=gallery].focus-visible) #preview,:host([variant=gallery][selected]) #preview,:host([variant=quiet].focus-visible) #preview,:host([variant=quiet][selected]) #preview{background-color:var(
150
+ )}:host([variant=gallery].focus-visible),:host([variant=gallery][selected]),:host([variant=quiet].focus-visible),:host([variant=quiet][selected]){border-color:#0000;box-shadow:none}:host([variant=gallery].focus-visible),:host([variant=gallery][selected]),:host([variant=quiet].focus-visible),:host([variant=quiet][selected]){border-color:#0000;box-shadow:none}:host([variant=gallery]:focus-visible),:host([variant=gallery][selected]),:host([variant=quiet]:focus-visible),:host([variant=quiet][selected]){border-color:#0000;box-shadow:none}:host([variant=gallery].focus-visible) #preview,:host([variant=gallery][selected]) #preview,:host([variant=quiet].focus-visible) #preview,:host([variant=quiet][selected]) #preview{background-color:var(
207
151
  --spectrum-card-m-quiet-preview-background-color,var(--spectrum-global-color-gray-200)
208
152
  )}:host([variant=gallery].focus-visible) #preview,:host([variant=gallery][selected]) #preview,:host([variant=quiet].focus-visible) #preview,:host([variant=quiet][selected]) #preview{background-color:var(
209
153
  --spectrum-card-m-quiet-preview-background-color,var(--spectrum-global-color-gray-200)
@@ -221,15 +165,11 @@ const styles = css`
221
165
  --spectrum-card-m-quiet-border-color-selected,var(--spectrum-global-color-blue-500)
222
166
  );box-shadow:0 0 0 1px var(
223
167
  --spectrum-card-m-quiet-border-color-selected,var(--spectrum-global-color-blue-500)
224
- )}:host([variant=gallery][drop-target]),:host([variant=quiet][drop-target]){background-color:transparent;border-color:transparent;box-shadow:none}:host([variant=gallery][drop-target]) #preview,:host([variant=quiet][drop-target]) #preview{background-color:var(
225
- --spectrum-alias-highlight-selected
226
- )}:host([variant=gallery][drop-target]) #preview:before,:host([variant=quiet][drop-target]) #preview:before{border-color:var(
168
+ )}:host([variant=gallery][drop-target]),:host([variant=quiet][drop-target]){background-color:#0000;border-color:#0000;box-shadow:none}:host([variant=gallery][drop-target]) #preview,:host([variant=quiet][drop-target]) #preview{background-color:var(--spectrum-alias-highlight-selected)}:host([variant=gallery][drop-target]) #preview:before,:host([variant=quiet][drop-target]) #preview:before{border-color:var(
227
169
  --spectrum-card-m-quiet-border-color-selected,var(--spectrum-global-color-blue-500)
228
170
  );box-shadow:0 0 0 1px var(
229
171
  --spectrum-card-m-quiet-border-color-selected,var(--spectrum-global-color-blue-500)
230
- )}:host([variant=gallery][drop-target]) .spectrum-Asset-fileBackground,:host([variant=gallery][drop-target]) .spectrum-Asset-folderBackground,:host([variant=quiet][drop-target]) .spectrum-Asset-fileBackground,:host([variant=quiet][drop-target]) .spectrum-Asset-folderBackground{fill:var(
231
- --spectrum-alias-highlight-selected
232
- )}:host([variant=gallery][drop-target]) .spectrum-Asset-fileOutline,:host([variant=gallery][drop-target]) .spectrum-Asset-folderOutline,:host([variant=quiet][drop-target]) .spectrum-Asset-fileOutline,:host([variant=quiet][drop-target]) .spectrum-Asset-folderOutline{fill:var(
172
+ )}:host([variant=gallery][drop-target]) .spectrum-Asset-fileBackground,:host([variant=gallery][drop-target]) .spectrum-Asset-folderBackground,:host([variant=quiet][drop-target]) .spectrum-Asset-fileBackground,:host([variant=quiet][drop-target]) .spectrum-Asset-folderBackground{fill:var(--spectrum-alias-highlight-selected)}:host([variant=gallery][drop-target]) .spectrum-Asset-fileOutline,:host([variant=gallery][drop-target]) .spectrum-Asset-folderOutline,:host([variant=quiet][drop-target]) .spectrum-Asset-fileOutline,:host([variant=quiet][drop-target]) .spectrum-Asset-folderOutline{fill:var(
233
173
  --spectrum-card-m-quiet-border-color-selected,var(--spectrum-global-color-blue-500)
234
174
  )}:host([variant=gallery]) .title,:host([variant=quiet]) .title{color:var(
235
175
  --spectrum-card-m-quiet-title-text-color,var(--spectrum-global-color-gray-800)