@sproutsocial/seeds-react-card 1.0.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.
@@ -0,0 +1,1357 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // ../../node_modules/object-assign/index.js
28
+ var require_object_assign = __commonJS({
29
+ "../../node_modules/object-assign/index.js"(exports, module) {
30
+ "use strict";
31
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
32
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
33
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
34
+ function toObject(val) {
35
+ if (val === null || val === void 0) {
36
+ throw new TypeError("Object.assign cannot be called with null or undefined");
37
+ }
38
+ return Object(val);
39
+ }
40
+ function shouldUseNative() {
41
+ try {
42
+ if (!Object.assign) {
43
+ return false;
44
+ }
45
+ var test1 = new String("abc");
46
+ test1[5] = "de";
47
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
48
+ return false;
49
+ }
50
+ var test2 = {};
51
+ for (var i = 0; i < 10; i++) {
52
+ test2["_" + String.fromCharCode(i)] = i;
53
+ }
54
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
55
+ return test2[n];
56
+ });
57
+ if (order2.join("") !== "0123456789") {
58
+ return false;
59
+ }
60
+ var test3 = {};
61
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
62
+ test3[letter] = letter;
63
+ });
64
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
65
+ return false;
66
+ }
67
+ return true;
68
+ } catch (err) {
69
+ return false;
70
+ }
71
+ }
72
+ module.exports = shouldUseNative() ? Object.assign : function(target, source) {
73
+ var from;
74
+ var to = toObject(target);
75
+ var symbols;
76
+ for (var s = 1; s < arguments.length; s++) {
77
+ from = Object(arguments[s]);
78
+ for (var key in from) {
79
+ if (hasOwnProperty.call(from, key)) {
80
+ to[key] = from[key];
81
+ }
82
+ }
83
+ if (getOwnPropertySymbols) {
84
+ symbols = getOwnPropertySymbols(from);
85
+ for (var i = 0; i < symbols.length; i++) {
86
+ if (propIsEnumerable.call(from, symbols[i])) {
87
+ to[symbols[i]] = from[symbols[i]];
88
+ }
89
+ }
90
+ }
91
+ }
92
+ return to;
93
+ };
94
+ }
95
+ });
96
+
97
+ // src/Card.tsx
98
+ import { useRef, useState } from "react";
99
+
100
+ // src/styles.tsx
101
+ import styled from "styled-components";
102
+
103
+ // ../../node_modules/@styled-system/core/dist/index.esm.js
104
+ var import_object_assign = __toESM(require_object_assign());
105
+ var merge = function merge2(a, b) {
106
+ var result = (0, import_object_assign.default)({}, a, b);
107
+ for (var key in a) {
108
+ var _assign;
109
+ if (!a[key] || typeof b[key] !== "object")
110
+ continue;
111
+ (0, import_object_assign.default)(result, (_assign = {}, _assign[key] = (0, import_object_assign.default)(a[key], b[key]), _assign));
112
+ }
113
+ return result;
114
+ };
115
+ var sort = function sort2(obj) {
116
+ var next = {};
117
+ Object.keys(obj).sort(function(a, b) {
118
+ return a.localeCompare(b, void 0, {
119
+ numeric: true,
120
+ sensitivity: "base"
121
+ });
122
+ }).forEach(function(key) {
123
+ next[key] = obj[key];
124
+ });
125
+ return next;
126
+ };
127
+ var defaults = {
128
+ breakpoints: [40, 52, 64].map(function(n) {
129
+ return n + "em";
130
+ })
131
+ };
132
+ var createMediaQuery = function createMediaQuery2(n) {
133
+ return "@media screen and (min-width: " + n + ")";
134
+ };
135
+ var getValue = function getValue2(n, scale) {
136
+ return get(scale, n, n);
137
+ };
138
+ var get = function get2(obj, key, def, p, undef) {
139
+ key = key && key.split ? key.split(".") : [key];
140
+ for (p = 0; p < key.length; p++) {
141
+ obj = obj ? obj[key[p]] : undef;
142
+ }
143
+ return obj === undef ? def : obj;
144
+ };
145
+ var createParser = function createParser2(config9) {
146
+ var cache = {};
147
+ var parse = function parse2(props) {
148
+ var styles = {};
149
+ var shouldSort = false;
150
+ var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;
151
+ for (var key in props) {
152
+ if (!config9[key])
153
+ continue;
154
+ var sx = config9[key];
155
+ var raw = props[key];
156
+ var scale = get(props.theme, sx.scale, sx.defaults);
157
+ if (typeof raw === "object") {
158
+ cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, "breakpoints", defaults.breakpoints);
159
+ if (Array.isArray(raw)) {
160
+ cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));
161
+ styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props));
162
+ continue;
163
+ }
164
+ if (raw !== null) {
165
+ styles = merge(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props));
166
+ shouldSort = true;
167
+ }
168
+ continue;
169
+ }
170
+ (0, import_object_assign.default)(styles, sx(raw, scale, props));
171
+ }
172
+ if (shouldSort) {
173
+ styles = sort(styles);
174
+ }
175
+ return styles;
176
+ };
177
+ parse.config = config9;
178
+ parse.propNames = Object.keys(config9);
179
+ parse.cache = cache;
180
+ var keys = Object.keys(config9).filter(function(k) {
181
+ return k !== "config";
182
+ });
183
+ if (keys.length > 1) {
184
+ keys.forEach(function(key) {
185
+ var _createParser;
186
+ parse[key] = createParser2((_createParser = {}, _createParser[key] = config9[key], _createParser));
187
+ });
188
+ }
189
+ return parse;
190
+ };
191
+ var parseResponsiveStyle = function parseResponsiveStyle2(mediaQueries, sx, scale, raw, _props) {
192
+ var styles = {};
193
+ raw.slice(0, mediaQueries.length).forEach(function(value, i) {
194
+ var media = mediaQueries[i];
195
+ var style = sx(value, scale, _props);
196
+ if (!media) {
197
+ (0, import_object_assign.default)(styles, style);
198
+ } else {
199
+ var _assign2;
200
+ (0, import_object_assign.default)(styles, (_assign2 = {}, _assign2[media] = (0, import_object_assign.default)({}, styles[media], style), _assign2));
201
+ }
202
+ });
203
+ return styles;
204
+ };
205
+ var parseResponsiveObject = function parseResponsiveObject2(breakpoints, sx, scale, raw, _props) {
206
+ var styles = {};
207
+ for (var key in raw) {
208
+ var breakpoint = breakpoints[key];
209
+ var value = raw[key];
210
+ var style = sx(value, scale, _props);
211
+ if (!breakpoint) {
212
+ (0, import_object_assign.default)(styles, style);
213
+ } else {
214
+ var _assign3;
215
+ var media = createMediaQuery(breakpoint);
216
+ (0, import_object_assign.default)(styles, (_assign3 = {}, _assign3[media] = (0, import_object_assign.default)({}, styles[media], style), _assign3));
217
+ }
218
+ }
219
+ return styles;
220
+ };
221
+ var createStyleFunction = function createStyleFunction2(_ref) {
222
+ var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform = _ref$transform === void 0 ? getValue : _ref$transform, defaultScale = _ref.defaultScale;
223
+ properties = properties || [property];
224
+ var sx = function sx2(value, scale2, _props) {
225
+ var result = {};
226
+ var n = transform(value, scale2, _props);
227
+ if (n === null)
228
+ return;
229
+ properties.forEach(function(prop) {
230
+ result[prop] = n;
231
+ });
232
+ return result;
233
+ };
234
+ sx.scale = scale;
235
+ sx.defaults = defaultScale;
236
+ return sx;
237
+ };
238
+ var system = function system2(args) {
239
+ if (args === void 0) {
240
+ args = {};
241
+ }
242
+ var config9 = {};
243
+ Object.keys(args).forEach(function(key) {
244
+ var conf = args[key];
245
+ if (conf === true) {
246
+ config9[key] = createStyleFunction({
247
+ property: key,
248
+ scale: key
249
+ });
250
+ return;
251
+ }
252
+ if (typeof conf === "function") {
253
+ config9[key] = conf;
254
+ return;
255
+ }
256
+ config9[key] = createStyleFunction(conf);
257
+ });
258
+ var parser = createParser(config9);
259
+ return parser;
260
+ };
261
+ var compose = function compose2() {
262
+ var config9 = {};
263
+ for (var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++) {
264
+ parsers[_key] = arguments[_key];
265
+ }
266
+ parsers.forEach(function(parser2) {
267
+ if (!parser2 || !parser2.config)
268
+ return;
269
+ (0, import_object_assign.default)(config9, parser2.config);
270
+ });
271
+ var parser = createParser(config9);
272
+ return parser;
273
+ };
274
+
275
+ // ../../node_modules/@styled-system/layout/dist/index.esm.js
276
+ var isNumber = function isNumber2(n) {
277
+ return typeof n === "number" && !isNaN(n);
278
+ };
279
+ var getWidth = function getWidth2(n, scale) {
280
+ return get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + "%");
281
+ };
282
+ var config = {
283
+ width: {
284
+ property: "width",
285
+ scale: "sizes",
286
+ transform: getWidth
287
+ },
288
+ height: {
289
+ property: "height",
290
+ scale: "sizes"
291
+ },
292
+ minWidth: {
293
+ property: "minWidth",
294
+ scale: "sizes"
295
+ },
296
+ minHeight: {
297
+ property: "minHeight",
298
+ scale: "sizes"
299
+ },
300
+ maxWidth: {
301
+ property: "maxWidth",
302
+ scale: "sizes"
303
+ },
304
+ maxHeight: {
305
+ property: "maxHeight",
306
+ scale: "sizes"
307
+ },
308
+ size: {
309
+ properties: ["width", "height"],
310
+ scale: "sizes"
311
+ },
312
+ overflow: true,
313
+ overflowX: true,
314
+ overflowY: true,
315
+ display: true,
316
+ verticalAlign: true
317
+ };
318
+ var layout = system(config);
319
+ var index_esm_default = layout;
320
+
321
+ // ../../node_modules/@styled-system/color/dist/index.esm.js
322
+ var config2 = {
323
+ color: {
324
+ property: "color",
325
+ scale: "colors"
326
+ },
327
+ backgroundColor: {
328
+ property: "backgroundColor",
329
+ scale: "colors"
330
+ },
331
+ opacity: true
332
+ };
333
+ config2.bg = config2.backgroundColor;
334
+ var color = system(config2);
335
+ var index_esm_default2 = color;
336
+
337
+ // ../../node_modules/@styled-system/typography/dist/index.esm.js
338
+ var defaults2 = {
339
+ fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
340
+ };
341
+ var config3 = {
342
+ fontFamily: {
343
+ property: "fontFamily",
344
+ scale: "fonts"
345
+ },
346
+ fontSize: {
347
+ property: "fontSize",
348
+ scale: "fontSizes",
349
+ defaultScale: defaults2.fontSizes
350
+ },
351
+ fontWeight: {
352
+ property: "fontWeight",
353
+ scale: "fontWeights"
354
+ },
355
+ lineHeight: {
356
+ property: "lineHeight",
357
+ scale: "lineHeights"
358
+ },
359
+ letterSpacing: {
360
+ property: "letterSpacing",
361
+ scale: "letterSpacings"
362
+ },
363
+ textAlign: true,
364
+ fontStyle: true
365
+ };
366
+ var typography = system(config3);
367
+ var index_esm_default3 = typography;
368
+
369
+ // ../../node_modules/@styled-system/flexbox/dist/index.esm.js
370
+ var config4 = {
371
+ alignItems: true,
372
+ alignContent: true,
373
+ justifyItems: true,
374
+ justifyContent: true,
375
+ flexWrap: true,
376
+ flexDirection: true,
377
+ // item
378
+ flex: true,
379
+ flexGrow: true,
380
+ flexShrink: true,
381
+ flexBasis: true,
382
+ justifySelf: true,
383
+ alignSelf: true,
384
+ order: true
385
+ };
386
+ var flexbox = system(config4);
387
+ var index_esm_default4 = flexbox;
388
+
389
+ // ../../node_modules/@styled-system/grid/dist/index.esm.js
390
+ var defaults3 = {
391
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
392
+ };
393
+ var config5 = {
394
+ gridGap: {
395
+ property: "gridGap",
396
+ scale: "space",
397
+ defaultScale: defaults3.space
398
+ },
399
+ gridColumnGap: {
400
+ property: "gridColumnGap",
401
+ scale: "space",
402
+ defaultScale: defaults3.space
403
+ },
404
+ gridRowGap: {
405
+ property: "gridRowGap",
406
+ scale: "space",
407
+ defaultScale: defaults3.space
408
+ },
409
+ gridColumn: true,
410
+ gridRow: true,
411
+ gridAutoFlow: true,
412
+ gridAutoColumns: true,
413
+ gridAutoRows: true,
414
+ gridTemplateColumns: true,
415
+ gridTemplateRows: true,
416
+ gridTemplateAreas: true,
417
+ gridArea: true
418
+ };
419
+ var grid = system(config5);
420
+ var index_esm_default5 = grid;
421
+
422
+ // ../../node_modules/@styled-system/border/dist/index.esm.js
423
+ var config6 = {
424
+ border: {
425
+ property: "border",
426
+ scale: "borders"
427
+ },
428
+ borderWidth: {
429
+ property: "borderWidth",
430
+ scale: "borderWidths"
431
+ },
432
+ borderStyle: {
433
+ property: "borderStyle",
434
+ scale: "borderStyles"
435
+ },
436
+ borderColor: {
437
+ property: "borderColor",
438
+ scale: "colors"
439
+ },
440
+ borderRadius: {
441
+ property: "borderRadius",
442
+ scale: "radii"
443
+ },
444
+ borderTop: {
445
+ property: "borderTop",
446
+ scale: "borders"
447
+ },
448
+ borderTopLeftRadius: {
449
+ property: "borderTopLeftRadius",
450
+ scale: "radii"
451
+ },
452
+ borderTopRightRadius: {
453
+ property: "borderTopRightRadius",
454
+ scale: "radii"
455
+ },
456
+ borderRight: {
457
+ property: "borderRight",
458
+ scale: "borders"
459
+ },
460
+ borderBottom: {
461
+ property: "borderBottom",
462
+ scale: "borders"
463
+ },
464
+ borderBottomLeftRadius: {
465
+ property: "borderBottomLeftRadius",
466
+ scale: "radii"
467
+ },
468
+ borderBottomRightRadius: {
469
+ property: "borderBottomRightRadius",
470
+ scale: "radii"
471
+ },
472
+ borderLeft: {
473
+ property: "borderLeft",
474
+ scale: "borders"
475
+ },
476
+ borderX: {
477
+ properties: ["borderLeft", "borderRight"],
478
+ scale: "borders"
479
+ },
480
+ borderY: {
481
+ properties: ["borderTop", "borderBottom"],
482
+ scale: "borders"
483
+ }
484
+ };
485
+ config6.borderTopWidth = {
486
+ property: "borderTopWidth",
487
+ scale: "borderWidths"
488
+ };
489
+ config6.borderTopColor = {
490
+ property: "borderTopColor",
491
+ scale: "colors"
492
+ };
493
+ config6.borderTopStyle = {
494
+ property: "borderTopStyle",
495
+ scale: "borderStyles"
496
+ };
497
+ config6.borderTopLeftRadius = {
498
+ property: "borderTopLeftRadius",
499
+ scale: "radii"
500
+ };
501
+ config6.borderTopRightRadius = {
502
+ property: "borderTopRightRadius",
503
+ scale: "radii"
504
+ };
505
+ config6.borderBottomWidth = {
506
+ property: "borderBottomWidth",
507
+ scale: "borderWidths"
508
+ };
509
+ config6.borderBottomColor = {
510
+ property: "borderBottomColor",
511
+ scale: "colors"
512
+ };
513
+ config6.borderBottomStyle = {
514
+ property: "borderBottomStyle",
515
+ scale: "borderStyles"
516
+ };
517
+ config6.borderBottomLeftRadius = {
518
+ property: "borderBottomLeftRadius",
519
+ scale: "radii"
520
+ };
521
+ config6.borderBottomRightRadius = {
522
+ property: "borderBottomRightRadius",
523
+ scale: "radii"
524
+ };
525
+ config6.borderLeftWidth = {
526
+ property: "borderLeftWidth",
527
+ scale: "borderWidths"
528
+ };
529
+ config6.borderLeftColor = {
530
+ property: "borderLeftColor",
531
+ scale: "colors"
532
+ };
533
+ config6.borderLeftStyle = {
534
+ property: "borderLeftStyle",
535
+ scale: "borderStyles"
536
+ };
537
+ config6.borderRightWidth = {
538
+ property: "borderRightWidth",
539
+ scale: "borderWidths"
540
+ };
541
+ config6.borderRightColor = {
542
+ property: "borderRightColor",
543
+ scale: "colors"
544
+ };
545
+ config6.borderRightStyle = {
546
+ property: "borderRightStyle",
547
+ scale: "borderStyles"
548
+ };
549
+ var border = system(config6);
550
+ var index_esm_default6 = border;
551
+
552
+ // ../../node_modules/@styled-system/background/dist/index.esm.js
553
+ var config7 = {
554
+ background: true,
555
+ backgroundImage: true,
556
+ backgroundSize: true,
557
+ backgroundPosition: true,
558
+ backgroundRepeat: true
559
+ };
560
+ config7.bgImage = config7.backgroundImage;
561
+ config7.bgSize = config7.backgroundSize;
562
+ config7.bgPosition = config7.backgroundPosition;
563
+ config7.bgRepeat = config7.backgroundRepeat;
564
+ var background = system(config7);
565
+ var index_esm_default7 = background;
566
+
567
+ // ../../node_modules/@styled-system/position/dist/index.esm.js
568
+ var defaults4 = {
569
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
570
+ };
571
+ var config8 = {
572
+ position: true,
573
+ zIndex: {
574
+ property: "zIndex",
575
+ scale: "zIndices"
576
+ },
577
+ top: {
578
+ property: "top",
579
+ scale: "space",
580
+ defaultScale: defaults4.space
581
+ },
582
+ right: {
583
+ property: "right",
584
+ scale: "space",
585
+ defaultScale: defaults4.space
586
+ },
587
+ bottom: {
588
+ property: "bottom",
589
+ scale: "space",
590
+ defaultScale: defaults4.space
591
+ },
592
+ left: {
593
+ property: "left",
594
+ scale: "space",
595
+ defaultScale: defaults4.space
596
+ }
597
+ };
598
+ var position = system(config8);
599
+ var index_esm_default8 = position;
600
+
601
+ // ../../node_modules/@styled-system/space/dist/index.esm.js
602
+ var defaults5 = {
603
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
604
+ };
605
+ var isNumber3 = function isNumber4(n) {
606
+ return typeof n === "number" && !isNaN(n);
607
+ };
608
+ var getMargin = function getMargin2(n, scale) {
609
+ if (!isNumber3(n)) {
610
+ return get(scale, n, n);
611
+ }
612
+ var isNegative = n < 0;
613
+ var absolute = Math.abs(n);
614
+ var value = get(scale, absolute, absolute);
615
+ if (!isNumber3(value)) {
616
+ return isNegative ? "-" + value : value;
617
+ }
618
+ return value * (isNegative ? -1 : 1);
619
+ };
620
+ var configs = {};
621
+ configs.margin = {
622
+ margin: {
623
+ property: "margin",
624
+ scale: "space",
625
+ transform: getMargin,
626
+ defaultScale: defaults5.space
627
+ },
628
+ marginTop: {
629
+ property: "marginTop",
630
+ scale: "space",
631
+ transform: getMargin,
632
+ defaultScale: defaults5.space
633
+ },
634
+ marginRight: {
635
+ property: "marginRight",
636
+ scale: "space",
637
+ transform: getMargin,
638
+ defaultScale: defaults5.space
639
+ },
640
+ marginBottom: {
641
+ property: "marginBottom",
642
+ scale: "space",
643
+ transform: getMargin,
644
+ defaultScale: defaults5.space
645
+ },
646
+ marginLeft: {
647
+ property: "marginLeft",
648
+ scale: "space",
649
+ transform: getMargin,
650
+ defaultScale: defaults5.space
651
+ },
652
+ marginX: {
653
+ properties: ["marginLeft", "marginRight"],
654
+ scale: "space",
655
+ transform: getMargin,
656
+ defaultScale: defaults5.space
657
+ },
658
+ marginY: {
659
+ properties: ["marginTop", "marginBottom"],
660
+ scale: "space",
661
+ transform: getMargin,
662
+ defaultScale: defaults5.space
663
+ }
664
+ };
665
+ configs.margin.m = configs.margin.margin;
666
+ configs.margin.mt = configs.margin.marginTop;
667
+ configs.margin.mr = configs.margin.marginRight;
668
+ configs.margin.mb = configs.margin.marginBottom;
669
+ configs.margin.ml = configs.margin.marginLeft;
670
+ configs.margin.mx = configs.margin.marginX;
671
+ configs.margin.my = configs.margin.marginY;
672
+ configs.padding = {
673
+ padding: {
674
+ property: "padding",
675
+ scale: "space",
676
+ defaultScale: defaults5.space
677
+ },
678
+ paddingTop: {
679
+ property: "paddingTop",
680
+ scale: "space",
681
+ defaultScale: defaults5.space
682
+ },
683
+ paddingRight: {
684
+ property: "paddingRight",
685
+ scale: "space",
686
+ defaultScale: defaults5.space
687
+ },
688
+ paddingBottom: {
689
+ property: "paddingBottom",
690
+ scale: "space",
691
+ defaultScale: defaults5.space
692
+ },
693
+ paddingLeft: {
694
+ property: "paddingLeft",
695
+ scale: "space",
696
+ defaultScale: defaults5.space
697
+ },
698
+ paddingX: {
699
+ properties: ["paddingLeft", "paddingRight"],
700
+ scale: "space",
701
+ defaultScale: defaults5.space
702
+ },
703
+ paddingY: {
704
+ properties: ["paddingTop", "paddingBottom"],
705
+ scale: "space",
706
+ defaultScale: defaults5.space
707
+ }
708
+ };
709
+ configs.padding.p = configs.padding.padding;
710
+ configs.padding.pt = configs.padding.paddingTop;
711
+ configs.padding.pr = configs.padding.paddingRight;
712
+ configs.padding.pb = configs.padding.paddingBottom;
713
+ configs.padding.pl = configs.padding.paddingLeft;
714
+ configs.padding.px = configs.padding.paddingX;
715
+ configs.padding.py = configs.padding.paddingY;
716
+ var margin = system(configs.margin);
717
+ var padding = system(configs.padding);
718
+ var space = compose(margin, padding);
719
+
720
+ // ../../node_modules/@styled-system/shadow/dist/index.esm.js
721
+ var shadow = system({
722
+ boxShadow: {
723
+ property: "boxShadow",
724
+ scale: "shadows"
725
+ },
726
+ textShadow: {
727
+ property: "textShadow",
728
+ scale: "shadows"
729
+ }
730
+ });
731
+
732
+ // ../../node_modules/@styled-system/css/dist/index.esm.js
733
+ function _extends() {
734
+ _extends = Object.assign || function(target) {
735
+ for (var i = 1; i < arguments.length; i++) {
736
+ var source = arguments[i];
737
+ for (var key in source) {
738
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
739
+ target[key] = source[key];
740
+ }
741
+ }
742
+ }
743
+ return target;
744
+ };
745
+ return _extends.apply(this, arguments);
746
+ }
747
+ var get3 = function get4(obj, key, def, p, undef) {
748
+ key = key && key.split ? key.split(".") : [key];
749
+ for (p = 0; p < key.length; p++) {
750
+ obj = obj ? obj[key[p]] : undef;
751
+ }
752
+ return obj === undef ? def : obj;
753
+ };
754
+ var defaultBreakpoints = [40, 52, 64].map(function(n) {
755
+ return n + "em";
756
+ });
757
+ var defaultTheme = {
758
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
759
+ fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
760
+ };
761
+ var aliases = {
762
+ bg: "backgroundColor",
763
+ m: "margin",
764
+ mt: "marginTop",
765
+ mr: "marginRight",
766
+ mb: "marginBottom",
767
+ ml: "marginLeft",
768
+ mx: "marginX",
769
+ my: "marginY",
770
+ p: "padding",
771
+ pt: "paddingTop",
772
+ pr: "paddingRight",
773
+ pb: "paddingBottom",
774
+ pl: "paddingLeft",
775
+ px: "paddingX",
776
+ py: "paddingY"
777
+ };
778
+ var multiples = {
779
+ marginX: ["marginLeft", "marginRight"],
780
+ marginY: ["marginTop", "marginBottom"],
781
+ paddingX: ["paddingLeft", "paddingRight"],
782
+ paddingY: ["paddingTop", "paddingBottom"],
783
+ size: ["width", "height"]
784
+ };
785
+ var scales = {
786
+ color: "colors",
787
+ backgroundColor: "colors",
788
+ borderColor: "colors",
789
+ margin: "space",
790
+ marginTop: "space",
791
+ marginRight: "space",
792
+ marginBottom: "space",
793
+ marginLeft: "space",
794
+ marginX: "space",
795
+ marginY: "space",
796
+ padding: "space",
797
+ paddingTop: "space",
798
+ paddingRight: "space",
799
+ paddingBottom: "space",
800
+ paddingLeft: "space",
801
+ paddingX: "space",
802
+ paddingY: "space",
803
+ top: "space",
804
+ right: "space",
805
+ bottom: "space",
806
+ left: "space",
807
+ gridGap: "space",
808
+ gridColumnGap: "space",
809
+ gridRowGap: "space",
810
+ gap: "space",
811
+ columnGap: "space",
812
+ rowGap: "space",
813
+ fontFamily: "fonts",
814
+ fontSize: "fontSizes",
815
+ fontWeight: "fontWeights",
816
+ lineHeight: "lineHeights",
817
+ letterSpacing: "letterSpacings",
818
+ border: "borders",
819
+ borderTop: "borders",
820
+ borderRight: "borders",
821
+ borderBottom: "borders",
822
+ borderLeft: "borders",
823
+ borderWidth: "borderWidths",
824
+ borderStyle: "borderStyles",
825
+ borderRadius: "radii",
826
+ borderTopRightRadius: "radii",
827
+ borderTopLeftRadius: "radii",
828
+ borderBottomRightRadius: "radii",
829
+ borderBottomLeftRadius: "radii",
830
+ borderTopWidth: "borderWidths",
831
+ borderTopColor: "colors",
832
+ borderTopStyle: "borderStyles",
833
+ borderBottomWidth: "borderWidths",
834
+ borderBottomColor: "colors",
835
+ borderBottomStyle: "borderStyles",
836
+ borderLeftWidth: "borderWidths",
837
+ borderLeftColor: "colors",
838
+ borderLeftStyle: "borderStyles",
839
+ borderRightWidth: "borderWidths",
840
+ borderRightColor: "colors",
841
+ borderRightStyle: "borderStyles",
842
+ outlineColor: "colors",
843
+ boxShadow: "shadows",
844
+ textShadow: "shadows",
845
+ zIndex: "zIndices",
846
+ width: "sizes",
847
+ minWidth: "sizes",
848
+ maxWidth: "sizes",
849
+ height: "sizes",
850
+ minHeight: "sizes",
851
+ maxHeight: "sizes",
852
+ flexBasis: "sizes",
853
+ size: "sizes",
854
+ // svg
855
+ fill: "colors",
856
+ stroke: "colors"
857
+ };
858
+ var positiveOrNegative = function positiveOrNegative2(scale, value) {
859
+ if (typeof value !== "number" || value >= 0) {
860
+ return get3(scale, value, value);
861
+ }
862
+ var absolute = Math.abs(value);
863
+ var n = get3(scale, absolute, absolute);
864
+ if (typeof n === "string")
865
+ return "-" + n;
866
+ return n * -1;
867
+ };
868
+ var transforms = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(acc, curr) {
869
+ var _extends2;
870
+ return _extends({}, acc, (_extends2 = {}, _extends2[curr] = positiveOrNegative, _extends2));
871
+ }, {});
872
+ var responsive = function responsive2(styles) {
873
+ return function(theme) {
874
+ var next = {};
875
+ var breakpoints = get3(theme, "breakpoints", defaultBreakpoints);
876
+ var mediaQueries = [null].concat(breakpoints.map(function(n) {
877
+ return "@media screen and (min-width: " + n + ")";
878
+ }));
879
+ for (var key in styles) {
880
+ var value = typeof styles[key] === "function" ? styles[key](theme) : styles[key];
881
+ if (value == null)
882
+ continue;
883
+ if (!Array.isArray(value)) {
884
+ next[key] = value;
885
+ continue;
886
+ }
887
+ for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {
888
+ var media = mediaQueries[i];
889
+ if (!media) {
890
+ next[key] = value[i];
891
+ continue;
892
+ }
893
+ next[media] = next[media] || {};
894
+ if (value[i] == null)
895
+ continue;
896
+ next[media][key] = value[i];
897
+ }
898
+ }
899
+ return next;
900
+ };
901
+ };
902
+ var css = function css2(args) {
903
+ return function(props) {
904
+ if (props === void 0) {
905
+ props = {};
906
+ }
907
+ var theme = _extends({}, defaultTheme, {}, props.theme || props);
908
+ var result = {};
909
+ var obj = typeof args === "function" ? args(theme) : args;
910
+ var styles = responsive(obj)(theme);
911
+ for (var key in styles) {
912
+ var x = styles[key];
913
+ var val = typeof x === "function" ? x(theme) : x;
914
+ if (key === "variant") {
915
+ var variant3 = css2(get3(theme, val))(theme);
916
+ result = _extends({}, result, {}, variant3);
917
+ continue;
918
+ }
919
+ if (val && typeof val === "object") {
920
+ result[key] = css2(val)(theme);
921
+ continue;
922
+ }
923
+ var prop = get3(aliases, key, key);
924
+ var scaleName = get3(scales, prop);
925
+ var scale = get3(theme, scaleName, get3(theme, prop, {}));
926
+ var transform = get3(transforms, prop, get3);
927
+ var value = transform(scale, val, val);
928
+ if (multiples[prop]) {
929
+ var dirs = multiples[prop];
930
+ for (var i = 0; i < dirs.length; i++) {
931
+ result[dirs[i]] = value;
932
+ }
933
+ } else {
934
+ result[prop] = value;
935
+ }
936
+ }
937
+ return result;
938
+ };
939
+ };
940
+ var index_esm_default9 = css;
941
+
942
+ // ../../node_modules/@styled-system/variant/dist/index.esm.js
943
+ var variant = function variant2(_ref) {
944
+ var _config;
945
+ var scale = _ref.scale, _ref$prop = _ref.prop, prop = _ref$prop === void 0 ? "variant" : _ref$prop, _ref$variants = _ref.variants, variants = _ref$variants === void 0 ? {} : _ref$variants, key = _ref.key;
946
+ var sx;
947
+ if (Object.keys(variants).length) {
948
+ sx = function sx2(value, scale2, props) {
949
+ return index_esm_default9(get(scale2, value, null))(props.theme);
950
+ };
951
+ } else {
952
+ sx = function sx2(value, scale2) {
953
+ return get(scale2, value, null);
954
+ };
955
+ }
956
+ sx.scale = scale || key;
957
+ sx.defaults = variants;
958
+ var config9 = (_config = {}, _config[prop] = sx, _config);
959
+ var parser = createParser(config9);
960
+ return parser;
961
+ };
962
+ var buttonStyle = variant({
963
+ key: "buttons"
964
+ });
965
+ var textStyle = variant({
966
+ key: "textStyles",
967
+ prop: "textStyle"
968
+ });
969
+ var colorStyle = variant({
970
+ key: "colorStyles",
971
+ prop: "colors"
972
+ });
973
+
974
+ // ../../node_modules/styled-system/dist/index.esm.js
975
+ var width = index_esm_default.width;
976
+ var height = index_esm_default.height;
977
+ var minWidth = index_esm_default.minWidth;
978
+ var minHeight = index_esm_default.minHeight;
979
+ var maxWidth = index_esm_default.maxWidth;
980
+ var maxHeight = index_esm_default.maxHeight;
981
+ var size = index_esm_default.size;
982
+ var verticalAlign = index_esm_default.verticalAlign;
983
+ var display = index_esm_default.display;
984
+ var overflow = index_esm_default.overflow;
985
+ var overflowX = index_esm_default.overflowX;
986
+ var overflowY = index_esm_default.overflowY;
987
+ var opacity = index_esm_default2.opacity;
988
+ var fontSize = index_esm_default3.fontSize;
989
+ var fontFamily = index_esm_default3.fontFamily;
990
+ var fontWeight = index_esm_default3.fontWeight;
991
+ var lineHeight = index_esm_default3.lineHeight;
992
+ var textAlign = index_esm_default3.textAlign;
993
+ var fontStyle = index_esm_default3.fontStyle;
994
+ var letterSpacing = index_esm_default3.letterSpacing;
995
+ var alignItems = index_esm_default4.alignItems;
996
+ var alignContent = index_esm_default4.alignContent;
997
+ var justifyItems = index_esm_default4.justifyItems;
998
+ var justifyContent = index_esm_default4.justifyContent;
999
+ var flexWrap = index_esm_default4.flexWrap;
1000
+ var flexDirection = index_esm_default4.flexDirection;
1001
+ var flex = index_esm_default4.flex;
1002
+ var flexGrow = index_esm_default4.flexGrow;
1003
+ var flexShrink = index_esm_default4.flexShrink;
1004
+ var flexBasis = index_esm_default4.flexBasis;
1005
+ var justifySelf = index_esm_default4.justifySelf;
1006
+ var alignSelf = index_esm_default4.alignSelf;
1007
+ var order = index_esm_default4.order;
1008
+ var gridGap = index_esm_default5.gridGap;
1009
+ var gridColumnGap = index_esm_default5.gridColumnGap;
1010
+ var gridRowGap = index_esm_default5.gridRowGap;
1011
+ var gridColumn = index_esm_default5.gridColumn;
1012
+ var gridRow = index_esm_default5.gridRow;
1013
+ var gridAutoFlow = index_esm_default5.gridAutoFlow;
1014
+ var gridAutoColumns = index_esm_default5.gridAutoColumns;
1015
+ var gridAutoRows = index_esm_default5.gridAutoRows;
1016
+ var gridTemplateColumns = index_esm_default5.gridTemplateColumns;
1017
+ var gridTemplateRows = index_esm_default5.gridTemplateRows;
1018
+ var gridTemplateAreas = index_esm_default5.gridTemplateAreas;
1019
+ var gridArea = index_esm_default5.gridArea;
1020
+ var borderWidth = index_esm_default6.borderWidth;
1021
+ var borderStyle = index_esm_default6.borderStyle;
1022
+ var borderColor = index_esm_default6.borderColor;
1023
+ var borderTop = index_esm_default6.borderTop;
1024
+ var borderRight = index_esm_default6.borderRight;
1025
+ var borderBottom = index_esm_default6.borderBottom;
1026
+ var borderLeft = index_esm_default6.borderLeft;
1027
+ var borderRadius = index_esm_default6.borderRadius;
1028
+ var backgroundImage = index_esm_default7.backgroundImage;
1029
+ var backgroundSize = index_esm_default7.backgroundSize;
1030
+ var backgroundPosition = index_esm_default7.backgroundPosition;
1031
+ var backgroundRepeat = index_esm_default7.backgroundRepeat;
1032
+ var zIndex = index_esm_default8.zIndex;
1033
+ var top = index_esm_default8.top;
1034
+ var right = index_esm_default8.right;
1035
+ var bottom = index_esm_default8.bottom;
1036
+ var left = index_esm_default8.left;
1037
+
1038
+ // src/styles.tsx
1039
+ import { focusRing, disabled } from "@sproutsocial/seeds-react-mixins";
1040
+ import Icon from "@sproutsocial/seeds-react-icon";
1041
+ var StyledCardContent = styled.div`
1042
+ display: flex;
1043
+ flex-direction: column;
1044
+ padding: ${({ theme }) => theme.space[400]};
1045
+ box-sizing: border-box;
1046
+
1047
+ ${border}
1048
+ ${color}
1049
+ ${flexbox}
1050
+ ${grid}
1051
+ ${layout}
1052
+ ${space}
1053
+ `;
1054
+ var StyledCardHeader = styled(StyledCardContent)`
1055
+ flex-direction: row;
1056
+ border-bottom: ${({ theme }) => `${theme.borderWidths[500]} solid
1057
+ ${theme.colors.container.border.base}`};
1058
+ border-top-left-radius: ${({ theme }) => theme.radii.inner};
1059
+ border-top-right-radius: ${({ theme }) => theme.radii.inner};
1060
+
1061
+ ${border}
1062
+ ${color}
1063
+ ${flexbox}
1064
+ ${grid}
1065
+ ${layout}
1066
+ ${space}
1067
+ `;
1068
+ var StyledCardFooter = styled(StyledCardContent)`
1069
+ flex-direction: row;
1070
+ border-top: ${({ theme }) => `${theme.borderWidths[500]} solid
1071
+ ${theme.colors.container.border.base}`};
1072
+ border-bottom-left-radius: ${({ theme }) => theme.radii.inner};
1073
+ border-bottom-right-radius: ${({ theme }) => theme.radii.inner};
1074
+
1075
+ ${border}
1076
+ ${color}
1077
+ ${flexbox}
1078
+ ${grid}
1079
+ ${layout}
1080
+ ${space}
1081
+ `;
1082
+ var SelectedIconWrapper = styled.div`
1083
+ display: flex;
1084
+ align-items: center;
1085
+ justify-content: center;
1086
+ position: absolute;
1087
+ top: -8px;
1088
+ right: -8px;
1089
+ `;
1090
+ var StyledSelectedIcon = styled(Icon)`
1091
+ border-radius: 50%;
1092
+ background: ${({ theme }) => theme.colors.container.background.base};
1093
+ opacity: 0;
1094
+ transition: opacity ${({ theme }) => theme.duration.medium};
1095
+
1096
+ ${({ $selected }) => $selected && `
1097
+ opacity: 1;
1098
+ `}
1099
+ `;
1100
+ var StyledCardLink = styled.a`
1101
+ font-family: ${(p) => p.theme.fontFamily};
1102
+ font-weight: ${(p) => p.theme.fontWeights.bold};
1103
+ color: ${(p) => p.theme.colors.text.headline};
1104
+ ${(p) => p.theme.typography[400]};
1105
+
1106
+ ${color}
1107
+ ${typography}
1108
+ `;
1109
+ var StyledCard = styled.div`
1110
+ position: relative;
1111
+ display: flex;
1112
+ flex-direction: column;
1113
+ box-sizing: border-box;
1114
+ margin: 0;
1115
+ background: ${({ theme }) => theme.colors.container.background.base};
1116
+ border: ${({ theme }) => theme.borderWidths[500]} solid
1117
+ ${({ theme }) => theme.colors.container.border.base};
1118
+ padding: ${({ theme, $compositionalComponents }) => $compositionalComponents ? 0 : theme.space[400]};
1119
+ border-radius: ${({ theme }) => theme.radii.outer};
1120
+ transition: box-shadow ${({ theme }) => theme.duration.medium},
1121
+ border ${({ theme }) => theme.duration.medium};
1122
+
1123
+ &[role="button"],
1124
+ &[role="checkbox"] {
1125
+ cursor: pointer;
1126
+ }
1127
+
1128
+ ${({ $isRoleLink }) => $isRoleLink && `
1129
+ cursor: pointer;
1130
+ `}
1131
+
1132
+ &:hover {
1133
+ box-shadow: ${({ theme, $elevation = "low" }) => theme.shadows[$elevation]};
1134
+ }
1135
+
1136
+ &:focus-within {
1137
+ ${({ $isRoleLink }) => $isRoleLink ? focusRing : null}
1138
+ ${StyledCardLink}:focus {
1139
+ border: none;
1140
+ box-shadow: none;
1141
+ outline: none;
1142
+ }
1143
+ }
1144
+
1145
+ &:focus {
1146
+ ${focusRing}
1147
+ }
1148
+
1149
+ ${({ $disabled }) => $disabled && `
1150
+ ${disabled}
1151
+ `}
1152
+
1153
+ ${({ $selected, theme }) => $selected && `
1154
+ border: ${theme.borderWidths[500]} solid ${theme.colors.container.border.selected};
1155
+ `}
1156
+
1157
+ ${border}
1158
+ ${color}
1159
+ ${flexbox}
1160
+ ${grid}
1161
+ ${layout}
1162
+ ${position}
1163
+ ${space}
1164
+ `;
1165
+ var StyledCardAffordance = styled(Icon)`
1166
+ ${StyledCard}:hover & {
1167
+ transform: translateX(${(p) => p.theme.space[200]});
1168
+ }
1169
+ transition: ${(p) => p.theme.duration.medium};
1170
+ `;
1171
+
1172
+ // src/utils.ts
1173
+ import { createContext, useContext, useEffect } from "react";
1174
+ import { assertIsElement } from "@sproutsocial/seeds-react-utilities";
1175
+ var SubComponentContext = createContext({
1176
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1177
+ setHasSubComponent: () => {
1178
+ },
1179
+ href: "",
1180
+ linkRef: null
1181
+ });
1182
+ function useChildContext() {
1183
+ const { setHasSubComponent } = useContext(SubComponentContext);
1184
+ useEffect(() => {
1185
+ setHasSubComponent && setHasSubComponent(true);
1186
+ }, [setHasSubComponent]);
1187
+ }
1188
+ var navigateTo = ({ e, href, ref }) => {
1189
+ const { target } = e;
1190
+ assertIsElement(target);
1191
+ if (ref.current?.contains(target)) {
1192
+ if (target.getAttribute("onclick") !== null || target.getAttribute("href") !== null) {
1193
+ e.stopPropagation();
1194
+ return;
1195
+ }
1196
+ }
1197
+ window.open(href, "_blank")?.focus();
1198
+ };
1199
+ var onKeyDown = ({ e, href, onClick, ref, role }) => {
1200
+ if (e?.key === "Enter") {
1201
+ if (role === "link") {
1202
+ return navigateTo({ e, href, ref });
1203
+ }
1204
+ if (role === "presentation") {
1205
+ return;
1206
+ }
1207
+ return onClick?.(e);
1208
+ }
1209
+ };
1210
+
1211
+ // src/subComponents.tsx
1212
+ import { useContext as useContext2 } from "react";
1213
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1214
+ var CardContent = ({
1215
+ children,
1216
+ ...rest
1217
+ }) => {
1218
+ useChildContext();
1219
+ return /* @__PURE__ */ jsx(StyledCardContent, { ...rest, children });
1220
+ };
1221
+ var CardHeader = ({
1222
+ children,
1223
+ ...rest
1224
+ }) => {
1225
+ useChildContext();
1226
+ return /* @__PURE__ */ jsx(StyledCardHeader, { ...rest, children });
1227
+ };
1228
+ var CardFooter = ({
1229
+ children,
1230
+ ...rest
1231
+ }) => {
1232
+ useChildContext();
1233
+ return /* @__PURE__ */ jsx(StyledCardFooter, { ...rest, children });
1234
+ };
1235
+ var SelectedIcon = ({ $selected }) => {
1236
+ return /* @__PURE__ */ jsx(SelectedIconWrapper, { children: /* @__PURE__ */ jsx(
1237
+ StyledSelectedIcon,
1238
+ {
1239
+ "aria-hidden": true,
1240
+ color: "icon.base",
1241
+ name: "circle-check-solid",
1242
+ $selected
1243
+ }
1244
+ ) });
1245
+ };
1246
+ var CardAffordance = ({ ...rest }) => {
1247
+ return /* @__PURE__ */ jsx(
1248
+ StyledCardAffordance,
1249
+ {
1250
+ ...rest,
1251
+ size: "mini",
1252
+ name: "arrow-right-solid",
1253
+ "aria-hidden": true
1254
+ }
1255
+ );
1256
+ };
1257
+ var CardLink = ({
1258
+ affordance,
1259
+ children,
1260
+ external = false,
1261
+ color: color2,
1262
+ ...rest
1263
+ }) => {
1264
+ const { href, linkRef } = useContext2(SubComponentContext);
1265
+ const handleClick = (e) => {
1266
+ e.stopPropagation();
1267
+ };
1268
+ return /* @__PURE__ */ jsx(
1269
+ StyledCardLink,
1270
+ {
1271
+ ...rest,
1272
+ target: external ? "_blank" : void 0,
1273
+ rel: external ? "noreferrer" : void 0,
1274
+ href,
1275
+ onClick: handleClick,
1276
+ ref: linkRef,
1277
+ color: color2,
1278
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
1279
+ children,
1280
+ affordance ? /* @__PURE__ */ jsx(CardAffordance, { ml: 300 }) : null
1281
+ ] })
1282
+ }
1283
+ );
1284
+ };
1285
+
1286
+ // src/Card.tsx
1287
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1288
+ var Card = ({
1289
+ children,
1290
+ disabled: disabled2 = false,
1291
+ elevation,
1292
+ href,
1293
+ onClick,
1294
+ role = "presentation",
1295
+ selected,
1296
+ ...rest
1297
+ }) => {
1298
+ const [hasSubComponent, setHasSubComponent] = useState(false);
1299
+ const containerRef = useRef(null);
1300
+ const linkRef = useRef(null);
1301
+ const isRoleLink = role === "link";
1302
+ const checkedConditions = role === "checkbox" ? selected : void 0;
1303
+ const cardContext = {
1304
+ setHasSubComponent,
1305
+ href,
1306
+ linkRef
1307
+ };
1308
+ const handleClickConditions = (e) => isRoleLink ? linkRef.current?.click() : onClick?.(e);
1309
+ const handleKeyDown = (e) => onKeyDown({ e, href, onClick, ref: containerRef, role });
1310
+ return /* @__PURE__ */ jsxs2(
1311
+ StyledCard,
1312
+ {
1313
+ tabIndex: isRoleLink ? -1 : 0,
1314
+ role: isRoleLink ? void 0 : role,
1315
+ onClick: handleClickConditions,
1316
+ onKeyDown: handleKeyDown,
1317
+ $elevation: elevation,
1318
+ ref: containerRef,
1319
+ $selected: selected,
1320
+ "aria-checked": checkedConditions,
1321
+ $disabled: disabled2,
1322
+ "aria-disabled": disabled2 && disabled2,
1323
+ $compositionalComponents: hasSubComponent,
1324
+ $isRoleLink: isRoleLink,
1325
+ ...rest,
1326
+ children: [
1327
+ /* @__PURE__ */ jsx2(SelectedIcon, { $selected: selected }),
1328
+ /* @__PURE__ */ jsx2(SubComponentContext.Provider, { value: cardContext, children })
1329
+ ]
1330
+ }
1331
+ );
1332
+ };
1333
+ var Card_default = Card;
1334
+
1335
+ // src/CardTypes.ts
1336
+ import "react";
1337
+
1338
+ // src/index.ts
1339
+ var src_default = Card_default;
1340
+ export {
1341
+ Card_default as Card,
1342
+ CardContent,
1343
+ CardFooter,
1344
+ CardHeader,
1345
+ CardLink,
1346
+ src_default as default
1347
+ };
1348
+ /*! Bundled license information:
1349
+
1350
+ object-assign/index.js:
1351
+ (*
1352
+ object-assign
1353
+ (c) Sindre Sorhus
1354
+ @license MIT
1355
+ *)
1356
+ */
1357
+ //# sourceMappingURL=index.js.map