@sproutsocial/seeds-react-accordion 0.2.2 → 0.2.6

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/dist/esm/index.js CHANGED
@@ -1,99 +1,3 @@
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
1
  // src/Accordion.tsx
98
2
  import React2, { createContext } from "react";
99
3
  import * as RadixAccordion from "@radix-ui/react-accordion";
@@ -166,938 +70,9 @@ var Accordion = ({
166
70
  import "@radix-ui/react-accordion";
167
71
 
168
72
  // src/styles.ts
169
- import styled, { css as css4 } from "styled-components";
73
+ import styled, { css as css2 } from "styled-components";
170
74
  import * as RadixAccordion2 from "@radix-ui/react-accordion";
171
-
172
- // ../../node_modules/@styled-system/core/dist/index.esm.js
173
- var import_object_assign = __toESM(require_object_assign());
174
- var merge = function merge2(a, b) {
175
- var result = (0, import_object_assign.default)({}, a, b);
176
- for (var key in a) {
177
- var _assign;
178
- if (!a[key] || typeof b[key] !== "object") continue;
179
- (0, import_object_assign.default)(result, (_assign = {}, _assign[key] = (0, import_object_assign.default)(a[key], b[key]), _assign));
180
- }
181
- return result;
182
- };
183
- var sort = function sort2(obj) {
184
- var next = {};
185
- Object.keys(obj).sort(function(a, b) {
186
- return a.localeCompare(b, void 0, {
187
- numeric: true,
188
- sensitivity: "base"
189
- });
190
- }).forEach(function(key) {
191
- next[key] = obj[key];
192
- });
193
- return next;
194
- };
195
- var defaults = {
196
- breakpoints: [40, 52, 64].map(function(n) {
197
- return n + "em";
198
- })
199
- };
200
- var createMediaQuery = function createMediaQuery2(n) {
201
- return "@media screen and (min-width: " + n + ")";
202
- };
203
- var getValue = function getValue2(n, scale) {
204
- return get(scale, n, n);
205
- };
206
- var get = function get2(obj, key, def, p, undef) {
207
- key = key && key.split ? key.split(".") : [key];
208
- for (p = 0; p < key.length; p++) {
209
- obj = obj ? obj[key[p]] : undef;
210
- }
211
- return obj === undef ? def : obj;
212
- };
213
- var createParser = function createParser2(config9) {
214
- var cache = {};
215
- var parse = function parse2(props) {
216
- var styles = {};
217
- var shouldSort = false;
218
- var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;
219
- for (var key in props) {
220
- if (!config9[key]) continue;
221
- var sx = config9[key];
222
- var raw = props[key];
223
- var scale = get(props.theme, sx.scale, sx.defaults);
224
- if (typeof raw === "object") {
225
- cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, "breakpoints", defaults.breakpoints);
226
- if (Array.isArray(raw)) {
227
- cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));
228
- styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props));
229
- continue;
230
- }
231
- if (raw !== null) {
232
- styles = merge(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props));
233
- shouldSort = true;
234
- }
235
- continue;
236
- }
237
- (0, import_object_assign.default)(styles, sx(raw, scale, props));
238
- }
239
- if (shouldSort) {
240
- styles = sort(styles);
241
- }
242
- return styles;
243
- };
244
- parse.config = config9;
245
- parse.propNames = Object.keys(config9);
246
- parse.cache = cache;
247
- var keys = Object.keys(config9).filter(function(k) {
248
- return k !== "config";
249
- });
250
- if (keys.length > 1) {
251
- keys.forEach(function(key) {
252
- var _createParser;
253
- parse[key] = createParser2((_createParser = {}, _createParser[key] = config9[key], _createParser));
254
- });
255
- }
256
- return parse;
257
- };
258
- var parseResponsiveStyle = function parseResponsiveStyle2(mediaQueries, sx, scale, raw, _props) {
259
- var styles = {};
260
- raw.slice(0, mediaQueries.length).forEach(function(value, i) {
261
- var media = mediaQueries[i];
262
- var style = sx(value, scale, _props);
263
- if (!media) {
264
- (0, import_object_assign.default)(styles, style);
265
- } else {
266
- var _assign2;
267
- (0, import_object_assign.default)(styles, (_assign2 = {}, _assign2[media] = (0, import_object_assign.default)({}, styles[media], style), _assign2));
268
- }
269
- });
270
- return styles;
271
- };
272
- var parseResponsiveObject = function parseResponsiveObject2(breakpoints, sx, scale, raw, _props) {
273
- var styles = {};
274
- for (var key in raw) {
275
- var breakpoint = breakpoints[key];
276
- var value = raw[key];
277
- var style = sx(value, scale, _props);
278
- if (!breakpoint) {
279
- (0, import_object_assign.default)(styles, style);
280
- } else {
281
- var _assign3;
282
- var media = createMediaQuery(breakpoint);
283
- (0, import_object_assign.default)(styles, (_assign3 = {}, _assign3[media] = (0, import_object_assign.default)({}, styles[media], style), _assign3));
284
- }
285
- }
286
- return styles;
287
- };
288
- var createStyleFunction = function createStyleFunction2(_ref) {
289
- 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;
290
- properties = properties || [property];
291
- var sx = function sx2(value, scale2, _props) {
292
- var result = {};
293
- var n = transform(value, scale2, _props);
294
- if (n === null) return;
295
- properties.forEach(function(prop) {
296
- result[prop] = n;
297
- });
298
- return result;
299
- };
300
- sx.scale = scale;
301
- sx.defaults = defaultScale;
302
- return sx;
303
- };
304
- var system = function system2(args) {
305
- if (args === void 0) {
306
- args = {};
307
- }
308
- var config9 = {};
309
- Object.keys(args).forEach(function(key) {
310
- var conf = args[key];
311
- if (conf === true) {
312
- config9[key] = createStyleFunction({
313
- property: key,
314
- scale: key
315
- });
316
- return;
317
- }
318
- if (typeof conf === "function") {
319
- config9[key] = conf;
320
- return;
321
- }
322
- config9[key] = createStyleFunction(conf);
323
- });
324
- var parser = createParser(config9);
325
- return parser;
326
- };
327
- var compose = function compose2() {
328
- var config9 = {};
329
- for (var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++) {
330
- parsers[_key] = arguments[_key];
331
- }
332
- parsers.forEach(function(parser2) {
333
- if (!parser2 || !parser2.config) return;
334
- (0, import_object_assign.default)(config9, parser2.config);
335
- });
336
- var parser = createParser(config9);
337
- return parser;
338
- };
339
-
340
- // ../../node_modules/@styled-system/layout/dist/index.esm.js
341
- var isNumber = function isNumber2(n) {
342
- return typeof n === "number" && !isNaN(n);
343
- };
344
- var getWidth = function getWidth2(n, scale) {
345
- return get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + "%");
346
- };
347
- var config = {
348
- width: {
349
- property: "width",
350
- scale: "sizes",
351
- transform: getWidth
352
- },
353
- height: {
354
- property: "height",
355
- scale: "sizes"
356
- },
357
- minWidth: {
358
- property: "minWidth",
359
- scale: "sizes"
360
- },
361
- minHeight: {
362
- property: "minHeight",
363
- scale: "sizes"
364
- },
365
- maxWidth: {
366
- property: "maxWidth",
367
- scale: "sizes"
368
- },
369
- maxHeight: {
370
- property: "maxHeight",
371
- scale: "sizes"
372
- },
373
- size: {
374
- properties: ["width", "height"],
375
- scale: "sizes"
376
- },
377
- overflow: true,
378
- overflowX: true,
379
- overflowY: true,
380
- display: true,
381
- verticalAlign: true
382
- };
383
- var layout = system(config);
384
- var index_esm_default = layout;
385
-
386
- // ../../node_modules/@styled-system/color/dist/index.esm.js
387
- var config2 = {
388
- color: {
389
- property: "color",
390
- scale: "colors"
391
- },
392
- backgroundColor: {
393
- property: "backgroundColor",
394
- scale: "colors"
395
- },
396
- opacity: true
397
- };
398
- config2.bg = config2.backgroundColor;
399
- var color = system(config2);
400
- var index_esm_default2 = color;
401
-
402
- // ../../node_modules/@styled-system/typography/dist/index.esm.js
403
- var defaults2 = {
404
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
405
- };
406
- var config3 = {
407
- fontFamily: {
408
- property: "fontFamily",
409
- scale: "fonts"
410
- },
411
- fontSize: {
412
- property: "fontSize",
413
- scale: "fontSizes",
414
- defaultScale: defaults2.fontSizes
415
- },
416
- fontWeight: {
417
- property: "fontWeight",
418
- scale: "fontWeights"
419
- },
420
- lineHeight: {
421
- property: "lineHeight",
422
- scale: "lineHeights"
423
- },
424
- letterSpacing: {
425
- property: "letterSpacing",
426
- scale: "letterSpacings"
427
- },
428
- textAlign: true,
429
- fontStyle: true
430
- };
431
- var typography = system(config3);
432
- var index_esm_default3 = typography;
433
-
434
- // ../../node_modules/@styled-system/flexbox/dist/index.esm.js
435
- var config4 = {
436
- alignItems: true,
437
- alignContent: true,
438
- justifyItems: true,
439
- justifyContent: true,
440
- flexWrap: true,
441
- flexDirection: true,
442
- // item
443
- flex: true,
444
- flexGrow: true,
445
- flexShrink: true,
446
- flexBasis: true,
447
- justifySelf: true,
448
- alignSelf: true,
449
- order: true
450
- };
451
- var flexbox = system(config4);
452
- var index_esm_default4 = flexbox;
453
-
454
- // ../../node_modules/@styled-system/grid/dist/index.esm.js
455
- var defaults3 = {
456
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
457
- };
458
- var config5 = {
459
- gridGap: {
460
- property: "gridGap",
461
- scale: "space",
462
- defaultScale: defaults3.space
463
- },
464
- gridColumnGap: {
465
- property: "gridColumnGap",
466
- scale: "space",
467
- defaultScale: defaults3.space
468
- },
469
- gridRowGap: {
470
- property: "gridRowGap",
471
- scale: "space",
472
- defaultScale: defaults3.space
473
- },
474
- gridColumn: true,
475
- gridRow: true,
476
- gridAutoFlow: true,
477
- gridAutoColumns: true,
478
- gridAutoRows: true,
479
- gridTemplateColumns: true,
480
- gridTemplateRows: true,
481
- gridTemplateAreas: true,
482
- gridArea: true
483
- };
484
- var grid = system(config5);
485
- var index_esm_default5 = grid;
486
-
487
- // ../../node_modules/@styled-system/border/dist/index.esm.js
488
- var config6 = {
489
- border: {
490
- property: "border",
491
- scale: "borders"
492
- },
493
- borderWidth: {
494
- property: "borderWidth",
495
- scale: "borderWidths"
496
- },
497
- borderStyle: {
498
- property: "borderStyle",
499
- scale: "borderStyles"
500
- },
501
- borderColor: {
502
- property: "borderColor",
503
- scale: "colors"
504
- },
505
- borderRadius: {
506
- property: "borderRadius",
507
- scale: "radii"
508
- },
509
- borderTop: {
510
- property: "borderTop",
511
- scale: "borders"
512
- },
513
- borderTopLeftRadius: {
514
- property: "borderTopLeftRadius",
515
- scale: "radii"
516
- },
517
- borderTopRightRadius: {
518
- property: "borderTopRightRadius",
519
- scale: "radii"
520
- },
521
- borderRight: {
522
- property: "borderRight",
523
- scale: "borders"
524
- },
525
- borderBottom: {
526
- property: "borderBottom",
527
- scale: "borders"
528
- },
529
- borderBottomLeftRadius: {
530
- property: "borderBottomLeftRadius",
531
- scale: "radii"
532
- },
533
- borderBottomRightRadius: {
534
- property: "borderBottomRightRadius",
535
- scale: "radii"
536
- },
537
- borderLeft: {
538
- property: "borderLeft",
539
- scale: "borders"
540
- },
541
- borderX: {
542
- properties: ["borderLeft", "borderRight"],
543
- scale: "borders"
544
- },
545
- borderY: {
546
- properties: ["borderTop", "borderBottom"],
547
- scale: "borders"
548
- }
549
- };
550
- config6.borderTopWidth = {
551
- property: "borderTopWidth",
552
- scale: "borderWidths"
553
- };
554
- config6.borderTopColor = {
555
- property: "borderTopColor",
556
- scale: "colors"
557
- };
558
- config6.borderTopStyle = {
559
- property: "borderTopStyle",
560
- scale: "borderStyles"
561
- };
562
- config6.borderTopLeftRadius = {
563
- property: "borderTopLeftRadius",
564
- scale: "radii"
565
- };
566
- config6.borderTopRightRadius = {
567
- property: "borderTopRightRadius",
568
- scale: "radii"
569
- };
570
- config6.borderBottomWidth = {
571
- property: "borderBottomWidth",
572
- scale: "borderWidths"
573
- };
574
- config6.borderBottomColor = {
575
- property: "borderBottomColor",
576
- scale: "colors"
577
- };
578
- config6.borderBottomStyle = {
579
- property: "borderBottomStyle",
580
- scale: "borderStyles"
581
- };
582
- config6.borderBottomLeftRadius = {
583
- property: "borderBottomLeftRadius",
584
- scale: "radii"
585
- };
586
- config6.borderBottomRightRadius = {
587
- property: "borderBottomRightRadius",
588
- scale: "radii"
589
- };
590
- config6.borderLeftWidth = {
591
- property: "borderLeftWidth",
592
- scale: "borderWidths"
593
- };
594
- config6.borderLeftColor = {
595
- property: "borderLeftColor",
596
- scale: "colors"
597
- };
598
- config6.borderLeftStyle = {
599
- property: "borderLeftStyle",
600
- scale: "borderStyles"
601
- };
602
- config6.borderRightWidth = {
603
- property: "borderRightWidth",
604
- scale: "borderWidths"
605
- };
606
- config6.borderRightColor = {
607
- property: "borderRightColor",
608
- scale: "colors"
609
- };
610
- config6.borderRightStyle = {
611
- property: "borderRightStyle",
612
- scale: "borderStyles"
613
- };
614
- var border = system(config6);
615
- var index_esm_default6 = border;
616
-
617
- // ../../node_modules/@styled-system/background/dist/index.esm.js
618
- var config7 = {
619
- background: true,
620
- backgroundImage: true,
621
- backgroundSize: true,
622
- backgroundPosition: true,
623
- backgroundRepeat: true
624
- };
625
- config7.bgImage = config7.backgroundImage;
626
- config7.bgSize = config7.backgroundSize;
627
- config7.bgPosition = config7.backgroundPosition;
628
- config7.bgRepeat = config7.backgroundRepeat;
629
- var background = system(config7);
630
- var index_esm_default7 = background;
631
-
632
- // ../../node_modules/@styled-system/position/dist/index.esm.js
633
- var defaults4 = {
634
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
635
- };
636
- var config8 = {
637
- position: true,
638
- zIndex: {
639
- property: "zIndex",
640
- scale: "zIndices"
641
- },
642
- top: {
643
- property: "top",
644
- scale: "space",
645
- defaultScale: defaults4.space
646
- },
647
- right: {
648
- property: "right",
649
- scale: "space",
650
- defaultScale: defaults4.space
651
- },
652
- bottom: {
653
- property: "bottom",
654
- scale: "space",
655
- defaultScale: defaults4.space
656
- },
657
- left: {
658
- property: "left",
659
- scale: "space",
660
- defaultScale: defaults4.space
661
- }
662
- };
663
- var position = system(config8);
664
- var index_esm_default8 = position;
665
-
666
- // ../../node_modules/@styled-system/space/dist/index.esm.js
667
- var defaults5 = {
668
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
669
- };
670
- var isNumber3 = function isNumber4(n) {
671
- return typeof n === "number" && !isNaN(n);
672
- };
673
- var getMargin = function getMargin2(n, scale) {
674
- if (!isNumber3(n)) {
675
- return get(scale, n, n);
676
- }
677
- var isNegative = n < 0;
678
- var absolute = Math.abs(n);
679
- var value = get(scale, absolute, absolute);
680
- if (!isNumber3(value)) {
681
- return isNegative ? "-" + value : value;
682
- }
683
- return value * (isNegative ? -1 : 1);
684
- };
685
- var configs = {};
686
- configs.margin = {
687
- margin: {
688
- property: "margin",
689
- scale: "space",
690
- transform: getMargin,
691
- defaultScale: defaults5.space
692
- },
693
- marginTop: {
694
- property: "marginTop",
695
- scale: "space",
696
- transform: getMargin,
697
- defaultScale: defaults5.space
698
- },
699
- marginRight: {
700
- property: "marginRight",
701
- scale: "space",
702
- transform: getMargin,
703
- defaultScale: defaults5.space
704
- },
705
- marginBottom: {
706
- property: "marginBottom",
707
- scale: "space",
708
- transform: getMargin,
709
- defaultScale: defaults5.space
710
- },
711
- marginLeft: {
712
- property: "marginLeft",
713
- scale: "space",
714
- transform: getMargin,
715
- defaultScale: defaults5.space
716
- },
717
- marginX: {
718
- properties: ["marginLeft", "marginRight"],
719
- scale: "space",
720
- transform: getMargin,
721
- defaultScale: defaults5.space
722
- },
723
- marginY: {
724
- properties: ["marginTop", "marginBottom"],
725
- scale: "space",
726
- transform: getMargin,
727
- defaultScale: defaults5.space
728
- }
729
- };
730
- configs.margin.m = configs.margin.margin;
731
- configs.margin.mt = configs.margin.marginTop;
732
- configs.margin.mr = configs.margin.marginRight;
733
- configs.margin.mb = configs.margin.marginBottom;
734
- configs.margin.ml = configs.margin.marginLeft;
735
- configs.margin.mx = configs.margin.marginX;
736
- configs.margin.my = configs.margin.marginY;
737
- configs.padding = {
738
- padding: {
739
- property: "padding",
740
- scale: "space",
741
- defaultScale: defaults5.space
742
- },
743
- paddingTop: {
744
- property: "paddingTop",
745
- scale: "space",
746
- defaultScale: defaults5.space
747
- },
748
- paddingRight: {
749
- property: "paddingRight",
750
- scale: "space",
751
- defaultScale: defaults5.space
752
- },
753
- paddingBottom: {
754
- property: "paddingBottom",
755
- scale: "space",
756
- defaultScale: defaults5.space
757
- },
758
- paddingLeft: {
759
- property: "paddingLeft",
760
- scale: "space",
761
- defaultScale: defaults5.space
762
- },
763
- paddingX: {
764
- properties: ["paddingLeft", "paddingRight"],
765
- scale: "space",
766
- defaultScale: defaults5.space
767
- },
768
- paddingY: {
769
- properties: ["paddingTop", "paddingBottom"],
770
- scale: "space",
771
- defaultScale: defaults5.space
772
- }
773
- };
774
- configs.padding.p = configs.padding.padding;
775
- configs.padding.pt = configs.padding.paddingTop;
776
- configs.padding.pr = configs.padding.paddingRight;
777
- configs.padding.pb = configs.padding.paddingBottom;
778
- configs.padding.pl = configs.padding.paddingLeft;
779
- configs.padding.px = configs.padding.paddingX;
780
- configs.padding.py = configs.padding.paddingY;
781
- var margin = system(configs.margin);
782
- var padding = system(configs.padding);
783
- var space = compose(margin, padding);
784
-
785
- // ../../node_modules/@styled-system/shadow/dist/index.esm.js
786
- var shadow = system({
787
- boxShadow: {
788
- property: "boxShadow",
789
- scale: "shadows"
790
- },
791
- textShadow: {
792
- property: "textShadow",
793
- scale: "shadows"
794
- }
795
- });
796
-
797
- // ../../node_modules/@styled-system/css/dist/index.esm.js
798
- function _extends() {
799
- _extends = Object.assign || function(target) {
800
- for (var i = 1; i < arguments.length; i++) {
801
- var source = arguments[i];
802
- for (var key in source) {
803
- if (Object.prototype.hasOwnProperty.call(source, key)) {
804
- target[key] = source[key];
805
- }
806
- }
807
- }
808
- return target;
809
- };
810
- return _extends.apply(this, arguments);
811
- }
812
- var get3 = function get4(obj, key, def, p, undef) {
813
- key = key && key.split ? key.split(".") : [key];
814
- for (p = 0; p < key.length; p++) {
815
- obj = obj ? obj[key[p]] : undef;
816
- }
817
- return obj === undef ? def : obj;
818
- };
819
- var defaultBreakpoints = [40, 52, 64].map(function(n) {
820
- return n + "em";
821
- });
822
- var defaultTheme = {
823
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
824
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
825
- };
826
- var aliases = {
827
- bg: "backgroundColor",
828
- m: "margin",
829
- mt: "marginTop",
830
- mr: "marginRight",
831
- mb: "marginBottom",
832
- ml: "marginLeft",
833
- mx: "marginX",
834
- my: "marginY",
835
- p: "padding",
836
- pt: "paddingTop",
837
- pr: "paddingRight",
838
- pb: "paddingBottom",
839
- pl: "paddingLeft",
840
- px: "paddingX",
841
- py: "paddingY"
842
- };
843
- var multiples = {
844
- marginX: ["marginLeft", "marginRight"],
845
- marginY: ["marginTop", "marginBottom"],
846
- paddingX: ["paddingLeft", "paddingRight"],
847
- paddingY: ["paddingTop", "paddingBottom"],
848
- size: ["width", "height"]
849
- };
850
- var scales = {
851
- color: "colors",
852
- backgroundColor: "colors",
853
- borderColor: "colors",
854
- margin: "space",
855
- marginTop: "space",
856
- marginRight: "space",
857
- marginBottom: "space",
858
- marginLeft: "space",
859
- marginX: "space",
860
- marginY: "space",
861
- padding: "space",
862
- paddingTop: "space",
863
- paddingRight: "space",
864
- paddingBottom: "space",
865
- paddingLeft: "space",
866
- paddingX: "space",
867
- paddingY: "space",
868
- top: "space",
869
- right: "space",
870
- bottom: "space",
871
- left: "space",
872
- gridGap: "space",
873
- gridColumnGap: "space",
874
- gridRowGap: "space",
875
- gap: "space",
876
- columnGap: "space",
877
- rowGap: "space",
878
- fontFamily: "fonts",
879
- fontSize: "fontSizes",
880
- fontWeight: "fontWeights",
881
- lineHeight: "lineHeights",
882
- letterSpacing: "letterSpacings",
883
- border: "borders",
884
- borderTop: "borders",
885
- borderRight: "borders",
886
- borderBottom: "borders",
887
- borderLeft: "borders",
888
- borderWidth: "borderWidths",
889
- borderStyle: "borderStyles",
890
- borderRadius: "radii",
891
- borderTopRightRadius: "radii",
892
- borderTopLeftRadius: "radii",
893
- borderBottomRightRadius: "radii",
894
- borderBottomLeftRadius: "radii",
895
- borderTopWidth: "borderWidths",
896
- borderTopColor: "colors",
897
- borderTopStyle: "borderStyles",
898
- borderBottomWidth: "borderWidths",
899
- borderBottomColor: "colors",
900
- borderBottomStyle: "borderStyles",
901
- borderLeftWidth: "borderWidths",
902
- borderLeftColor: "colors",
903
- borderLeftStyle: "borderStyles",
904
- borderRightWidth: "borderWidths",
905
- borderRightColor: "colors",
906
- borderRightStyle: "borderStyles",
907
- outlineColor: "colors",
908
- boxShadow: "shadows",
909
- textShadow: "shadows",
910
- zIndex: "zIndices",
911
- width: "sizes",
912
- minWidth: "sizes",
913
- maxWidth: "sizes",
914
- height: "sizes",
915
- minHeight: "sizes",
916
- maxHeight: "sizes",
917
- flexBasis: "sizes",
918
- size: "sizes",
919
- // svg
920
- fill: "colors",
921
- stroke: "colors"
922
- };
923
- var positiveOrNegative = function positiveOrNegative2(scale, value) {
924
- if (typeof value !== "number" || value >= 0) {
925
- return get3(scale, value, value);
926
- }
927
- var absolute = Math.abs(value);
928
- var n = get3(scale, absolute, absolute);
929
- if (typeof n === "string") return "-" + n;
930
- return n * -1;
931
- };
932
- var transforms = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(acc, curr) {
933
- var _extends22;
934
- return _extends({}, acc, (_extends22 = {}, _extends22[curr] = positiveOrNegative, _extends22));
935
- }, {});
936
- var responsive = function responsive2(styles) {
937
- return function(theme2) {
938
- var next = {};
939
- var breakpoints = get3(theme2, "breakpoints", defaultBreakpoints);
940
- var mediaQueries = [null].concat(breakpoints.map(function(n) {
941
- return "@media screen and (min-width: " + n + ")";
942
- }));
943
- for (var key in styles) {
944
- var value = typeof styles[key] === "function" ? styles[key](theme2) : styles[key];
945
- if (value == null) continue;
946
- if (!Array.isArray(value)) {
947
- next[key] = value;
948
- continue;
949
- }
950
- for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {
951
- var media = mediaQueries[i];
952
- if (!media) {
953
- next[key] = value[i];
954
- continue;
955
- }
956
- next[media] = next[media] || {};
957
- if (value[i] == null) continue;
958
- next[media][key] = value[i];
959
- }
960
- }
961
- return next;
962
- };
963
- };
964
- var css = function css2(args) {
965
- return function(props) {
966
- if (props === void 0) {
967
- props = {};
968
- }
969
- var theme2 = _extends({}, defaultTheme, {}, props.theme || props);
970
- var result = {};
971
- var obj = typeof args === "function" ? args(theme2) : args;
972
- var styles = responsive(obj)(theme2);
973
- for (var key in styles) {
974
- var x = styles[key];
975
- var val = typeof x === "function" ? x(theme2) : x;
976
- if (key === "variant") {
977
- var variant3 = css2(get3(theme2, val))(theme2);
978
- result = _extends({}, result, {}, variant3);
979
- continue;
980
- }
981
- if (val && typeof val === "object") {
982
- result[key] = css2(val)(theme2);
983
- continue;
984
- }
985
- var prop = get3(aliases, key, key);
986
- var scaleName = get3(scales, prop);
987
- var scale = get3(theme2, scaleName, get3(theme2, prop, {}));
988
- var transform = get3(transforms, prop, get3);
989
- var value = transform(scale, val, val);
990
- if (multiples[prop]) {
991
- var dirs = multiples[prop];
992
- for (var i = 0; i < dirs.length; i++) {
993
- result[dirs[i]] = value;
994
- }
995
- } else {
996
- result[prop] = value;
997
- }
998
- }
999
- return result;
1000
- };
1001
- };
1002
- var index_esm_default9 = css;
1003
-
1004
- // ../../node_modules/@styled-system/variant/dist/index.esm.js
1005
- var variant = function variant2(_ref) {
1006
- var _config;
1007
- 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;
1008
- var sx;
1009
- if (Object.keys(variants).length) {
1010
- sx = function sx2(value, scale2, props) {
1011
- return index_esm_default9(get(scale2, value, null))(props.theme);
1012
- };
1013
- } else {
1014
- sx = function sx2(value, scale2) {
1015
- return get(scale2, value, null);
1016
- };
1017
- }
1018
- sx.scale = scale || key;
1019
- sx.defaults = variants;
1020
- var config9 = (_config = {}, _config[prop] = sx, _config);
1021
- var parser = createParser(config9);
1022
- return parser;
1023
- };
1024
- var buttonStyle = variant({
1025
- key: "buttons"
1026
- });
1027
- var textStyle = variant({
1028
- key: "textStyles",
1029
- prop: "textStyle"
1030
- });
1031
- var colorStyle = variant({
1032
- key: "colorStyles",
1033
- prop: "colors"
1034
- });
1035
-
1036
- // ../../node_modules/styled-system/dist/index.esm.js
1037
- var width = index_esm_default.width;
1038
- var height = index_esm_default.height;
1039
- var minWidth = index_esm_default.minWidth;
1040
- var minHeight = index_esm_default.minHeight;
1041
- var maxWidth = index_esm_default.maxWidth;
1042
- var maxHeight = index_esm_default.maxHeight;
1043
- var size = index_esm_default.size;
1044
- var verticalAlign = index_esm_default.verticalAlign;
1045
- var display = index_esm_default.display;
1046
- var overflow = index_esm_default.overflow;
1047
- var overflowX = index_esm_default.overflowX;
1048
- var overflowY = index_esm_default.overflowY;
1049
- var opacity = index_esm_default2.opacity;
1050
- var fontSize = index_esm_default3.fontSize;
1051
- var fontFamily = index_esm_default3.fontFamily;
1052
- var fontWeight = index_esm_default3.fontWeight;
1053
- var lineHeight = index_esm_default3.lineHeight;
1054
- var textAlign = index_esm_default3.textAlign;
1055
- var fontStyle = index_esm_default3.fontStyle;
1056
- var letterSpacing = index_esm_default3.letterSpacing;
1057
- var alignItems = index_esm_default4.alignItems;
1058
- var alignContent = index_esm_default4.alignContent;
1059
- var justifyItems = index_esm_default4.justifyItems;
1060
- var justifyContent = index_esm_default4.justifyContent;
1061
- var flexWrap = index_esm_default4.flexWrap;
1062
- var flexDirection = index_esm_default4.flexDirection;
1063
- var flex = index_esm_default4.flex;
1064
- var flexGrow = index_esm_default4.flexGrow;
1065
- var flexShrink = index_esm_default4.flexShrink;
1066
- var flexBasis = index_esm_default4.flexBasis;
1067
- var justifySelf = index_esm_default4.justifySelf;
1068
- var alignSelf = index_esm_default4.alignSelf;
1069
- var order = index_esm_default4.order;
1070
- var gridGap = index_esm_default5.gridGap;
1071
- var gridColumnGap = index_esm_default5.gridColumnGap;
1072
- var gridRowGap = index_esm_default5.gridRowGap;
1073
- var gridColumn = index_esm_default5.gridColumn;
1074
- var gridRow = index_esm_default5.gridRow;
1075
- var gridAutoFlow = index_esm_default5.gridAutoFlow;
1076
- var gridAutoColumns = index_esm_default5.gridAutoColumns;
1077
- var gridAutoRows = index_esm_default5.gridAutoRows;
1078
- var gridTemplateColumns = index_esm_default5.gridTemplateColumns;
1079
- var gridTemplateRows = index_esm_default5.gridTemplateRows;
1080
- var gridTemplateAreas = index_esm_default5.gridTemplateAreas;
1081
- var gridArea = index_esm_default5.gridArea;
1082
- var borderWidth = index_esm_default6.borderWidth;
1083
- var borderStyle = index_esm_default6.borderStyle;
1084
- var borderColor = index_esm_default6.borderColor;
1085
- var borderTop = index_esm_default6.borderTop;
1086
- var borderRight = index_esm_default6.borderRight;
1087
- var borderBottom = index_esm_default6.borderBottom;
1088
- var borderLeft = index_esm_default6.borderLeft;
1089
- var borderRadius = index_esm_default6.borderRadius;
1090
- var backgroundImage = index_esm_default7.backgroundImage;
1091
- var backgroundSize = index_esm_default7.backgroundSize;
1092
- var backgroundPosition = index_esm_default7.backgroundPosition;
1093
- var backgroundRepeat = index_esm_default7.backgroundRepeat;
1094
- var zIndex = index_esm_default8.zIndex;
1095
- var top = index_esm_default8.top;
1096
- var right = index_esm_default8.right;
1097
- var bottom = index_esm_default8.bottom;
1098
- var left = index_esm_default8.left;
1099
-
1100
- // src/styles.ts
75
+ import { fontSize } from "styled-system";
1101
76
  import {
1102
77
  BORDER,
1103
78
  COMMON,
@@ -1106,557 +81,10 @@ import {
1106
81
  TYPOGRAPHY
1107
82
  } from "@sproutsocial/seeds-react-system-props";
1108
83
 
1109
- // ../../node_modules/@babel/runtime/helpers/esm/extends.js
1110
- function _extends2() {
1111
- return _extends2 = Object.assign ? Object.assign.bind() : function(n) {
1112
- for (var e = 1; e < arguments.length; e++) {
1113
- var t = arguments[e];
1114
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1115
- }
1116
- return n;
1117
- }, _extends2.apply(null, arguments);
1118
- }
1119
-
1120
- // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1121
- function _assertThisInitialized(e) {
1122
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1123
- return e;
1124
- }
1125
-
1126
- // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1127
- function _setPrototypeOf(t, e) {
1128
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
1129
- return t2.__proto__ = e2, t2;
1130
- }, _setPrototypeOf(t, e);
1131
- }
1132
-
1133
- // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1134
- function _inheritsLoose(t, o) {
1135
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
1136
- }
1137
-
1138
- // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
1139
- function _getPrototypeOf(t) {
1140
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
1141
- return t2.__proto__ || Object.getPrototypeOf(t2);
1142
- }, _getPrototypeOf(t);
1143
- }
1144
-
1145
- // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
1146
- function _isNativeFunction(t) {
1147
- try {
1148
- return -1 !== Function.toString.call(t).indexOf("[native code]");
1149
- } catch (n) {
1150
- return "function" == typeof t;
1151
- }
1152
- }
1153
-
1154
- // ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1155
- function _isNativeReflectConstruct() {
1156
- try {
1157
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1158
- }));
1159
- } catch (t2) {
1160
- }
1161
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
1162
- return !!t;
1163
- })();
1164
- }
1165
-
1166
- // ../../node_modules/@babel/runtime/helpers/esm/construct.js
1167
- function _construct(t, e, r) {
1168
- if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
1169
- var o = [null];
1170
- o.push.apply(o, e);
1171
- var p = new (t.bind.apply(t, o))();
1172
- return r && _setPrototypeOf(p, r.prototype), p;
1173
- }
1174
-
1175
- // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1176
- function _wrapNativeSuper(t) {
1177
- var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
1178
- return _wrapNativeSuper = function _wrapNativeSuper2(t2) {
1179
- if (null === t2 || !_isNativeFunction(t2)) return t2;
1180
- if ("function" != typeof t2) throw new TypeError("Super expression must either be null or a function");
1181
- if (void 0 !== r) {
1182
- if (r.has(t2)) return r.get(t2);
1183
- r.set(t2, Wrapper);
1184
- }
1185
- function Wrapper() {
1186
- return _construct(t2, arguments, _getPrototypeOf(this).constructor);
1187
- }
1188
- return Wrapper.prototype = Object.create(t2.prototype, {
1189
- constructor: {
1190
- value: Wrapper,
1191
- enumerable: false,
1192
- writable: true,
1193
- configurable: true
1194
- }
1195
- }), _setPrototypeOf(Wrapper, t2);
1196
- }, _wrapNativeSuper(t);
1197
- }
1198
-
1199
- // ../../node_modules/polished/dist/polished.esm.js
1200
- var ERRORS = {
1201
- "1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
1202
- "2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
1203
- "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
1204
- "4": "Couldn't generate valid rgb string from %s, it returned %s.\n\n",
1205
- "5": "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",
1206
- "6": "Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",
1207
- "7": "Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",
1208
- "8": "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",
1209
- "9": "Please provide a number of steps to the modularScale helper.\n\n",
1210
- "10": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
1211
- "11": 'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',
1212
- "12": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',
1213
- "13": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',
1214
- "14": 'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
1215
- "15": 'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
1216
- "16": "You must provide a template to this method.\n\n",
1217
- "17": "You passed an unsupported selector state to this method.\n\n",
1218
- "18": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
1219
- "19": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
1220
- "20": "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
1221
- "21": "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
1222
- "22": "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
1223
- "23": "fontFace expects a name of a font-family.\n\n",
1224
- "24": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
1225
- "25": "fontFace expects localFonts to be an array.\n\n",
1226
- "26": "fontFace expects fileFormats to be an array.\n\n",
1227
- "27": "radialGradient requries at least 2 color-stops to properly render.\n\n",
1228
- "28": "Please supply a filename to retinaImage() as the first argument.\n\n",
1229
- "29": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
1230
- "30": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
1231
- "31": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",
1232
- "32": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",
1233
- "33": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",
1234
- "34": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
1235
- "35": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
1236
- "36": "Property must be a string value.\n\n",
1237
- "37": "Syntax Error at %s.\n\n",
1238
- "38": "Formula contains a function that needs parentheses at %s.\n\n",
1239
- "39": "Formula is missing closing parenthesis at %s.\n\n",
1240
- "40": "Formula has too many closing parentheses at %s.\n\n",
1241
- "41": "All values in a formula must have the same unit or be unitless.\n\n",
1242
- "42": "Please provide a number of steps to the modularScale helper.\n\n",
1243
- "43": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
1244
- "44": "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",
1245
- "45": "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",
1246
- "46": "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",
1247
- "47": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
1248
- "48": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
1249
- "49": "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
1250
- "50": "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",
1251
- "51": "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",
1252
- "52": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
1253
- "53": "fontFace expects localFonts to be an array.\n\n",
1254
- "54": "fontFace expects fileFormats to be an array.\n\n",
1255
- "55": "fontFace expects a name of a font-family.\n\n",
1256
- "56": "linearGradient requries at least 2 color-stops to properly render.\n\n",
1257
- "57": "radialGradient requries at least 2 color-stops to properly render.\n\n",
1258
- "58": "Please supply a filename to retinaImage() as the first argument.\n\n",
1259
- "59": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
1260
- "60": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
1261
- "61": "Property must be a string value.\n\n",
1262
- "62": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
1263
- "63": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
1264
- "64": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",
1265
- "65": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",
1266
- "66": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",
1267
- "67": "You must provide a template to this method.\n\n",
1268
- "68": "You passed an unsupported selector state to this method.\n\n",
1269
- "69": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',
1270
- "70": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',
1271
- "71": 'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',
1272
- "72": 'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',
1273
- "73": "Please provide a valid CSS variable.\n\n",
1274
- "74": "CSS variable not found.\n\n",
1275
- "75": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
1276
- };
1277
- function format() {
1278
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1279
- args[_key] = arguments[_key];
1280
- }
1281
- var a = args[0];
1282
- var b = [];
1283
- var c;
1284
- for (c = 1; c < args.length; c += 1) {
1285
- b.push(args[c]);
1286
- }
1287
- b.forEach(function(d) {
1288
- a = a.replace(/%[a-z]/, d);
1289
- });
1290
- return a;
1291
- }
1292
- var PolishedError = /* @__PURE__ */ function(_Error) {
1293
- _inheritsLoose(PolishedError2, _Error);
1294
- function PolishedError2(code) {
1295
- var _this;
1296
- if (process.env.NODE_ENV === "production") {
1297
- _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
1298
- } else {
1299
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1300
- args[_key2 - 1] = arguments[_key2];
1301
- }
1302
- _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
1303
- }
1304
- return _assertThisInitialized(_this);
1305
- }
1306
- return PolishedError2;
1307
- }(/* @__PURE__ */ _wrapNativeSuper(Error));
1308
- function colorToInt(color2) {
1309
- return Math.round(color2 * 255);
1310
- }
1311
- function convertToInt(red, green, blue) {
1312
- return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
1313
- }
1314
- function hslToRgb(hue, saturation, lightness, convert) {
1315
- if (convert === void 0) {
1316
- convert = convertToInt;
1317
- }
1318
- if (saturation === 0) {
1319
- return convert(lightness, lightness, lightness);
1320
- }
1321
- var huePrime = (hue % 360 + 360) % 360 / 60;
1322
- var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
1323
- var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
1324
- var red = 0;
1325
- var green = 0;
1326
- var blue = 0;
1327
- if (huePrime >= 0 && huePrime < 1) {
1328
- red = chroma;
1329
- green = secondComponent;
1330
- } else if (huePrime >= 1 && huePrime < 2) {
1331
- red = secondComponent;
1332
- green = chroma;
1333
- } else if (huePrime >= 2 && huePrime < 3) {
1334
- green = chroma;
1335
- blue = secondComponent;
1336
- } else if (huePrime >= 3 && huePrime < 4) {
1337
- green = secondComponent;
1338
- blue = chroma;
1339
- } else if (huePrime >= 4 && huePrime < 5) {
1340
- red = secondComponent;
1341
- blue = chroma;
1342
- } else if (huePrime >= 5 && huePrime < 6) {
1343
- red = chroma;
1344
- blue = secondComponent;
1345
- }
1346
- var lightnessModification = lightness - chroma / 2;
1347
- var finalRed = red + lightnessModification;
1348
- var finalGreen = green + lightnessModification;
1349
- var finalBlue = blue + lightnessModification;
1350
- return convert(finalRed, finalGreen, finalBlue);
1351
- }
1352
- var namedColorMap = {
1353
- aliceblue: "f0f8ff",
1354
- antiquewhite: "faebd7",
1355
- aqua: "00ffff",
1356
- aquamarine: "7fffd4",
1357
- azure: "f0ffff",
1358
- beige: "f5f5dc",
1359
- bisque: "ffe4c4",
1360
- black: "000",
1361
- blanchedalmond: "ffebcd",
1362
- blue: "0000ff",
1363
- blueviolet: "8a2be2",
1364
- brown: "a52a2a",
1365
- burlywood: "deb887",
1366
- cadetblue: "5f9ea0",
1367
- chartreuse: "7fff00",
1368
- chocolate: "d2691e",
1369
- coral: "ff7f50",
1370
- cornflowerblue: "6495ed",
1371
- cornsilk: "fff8dc",
1372
- crimson: "dc143c",
1373
- cyan: "00ffff",
1374
- darkblue: "00008b",
1375
- darkcyan: "008b8b",
1376
- darkgoldenrod: "b8860b",
1377
- darkgray: "a9a9a9",
1378
- darkgreen: "006400",
1379
- darkgrey: "a9a9a9",
1380
- darkkhaki: "bdb76b",
1381
- darkmagenta: "8b008b",
1382
- darkolivegreen: "556b2f",
1383
- darkorange: "ff8c00",
1384
- darkorchid: "9932cc",
1385
- darkred: "8b0000",
1386
- darksalmon: "e9967a",
1387
- darkseagreen: "8fbc8f",
1388
- darkslateblue: "483d8b",
1389
- darkslategray: "2f4f4f",
1390
- darkslategrey: "2f4f4f",
1391
- darkturquoise: "00ced1",
1392
- darkviolet: "9400d3",
1393
- deeppink: "ff1493",
1394
- deepskyblue: "00bfff",
1395
- dimgray: "696969",
1396
- dimgrey: "696969",
1397
- dodgerblue: "1e90ff",
1398
- firebrick: "b22222",
1399
- floralwhite: "fffaf0",
1400
- forestgreen: "228b22",
1401
- fuchsia: "ff00ff",
1402
- gainsboro: "dcdcdc",
1403
- ghostwhite: "f8f8ff",
1404
- gold: "ffd700",
1405
- goldenrod: "daa520",
1406
- gray: "808080",
1407
- green: "008000",
1408
- greenyellow: "adff2f",
1409
- grey: "808080",
1410
- honeydew: "f0fff0",
1411
- hotpink: "ff69b4",
1412
- indianred: "cd5c5c",
1413
- indigo: "4b0082",
1414
- ivory: "fffff0",
1415
- khaki: "f0e68c",
1416
- lavender: "e6e6fa",
1417
- lavenderblush: "fff0f5",
1418
- lawngreen: "7cfc00",
1419
- lemonchiffon: "fffacd",
1420
- lightblue: "add8e6",
1421
- lightcoral: "f08080",
1422
- lightcyan: "e0ffff",
1423
- lightgoldenrodyellow: "fafad2",
1424
- lightgray: "d3d3d3",
1425
- lightgreen: "90ee90",
1426
- lightgrey: "d3d3d3",
1427
- lightpink: "ffb6c1",
1428
- lightsalmon: "ffa07a",
1429
- lightseagreen: "20b2aa",
1430
- lightskyblue: "87cefa",
1431
- lightslategray: "789",
1432
- lightslategrey: "789",
1433
- lightsteelblue: "b0c4de",
1434
- lightyellow: "ffffe0",
1435
- lime: "0f0",
1436
- limegreen: "32cd32",
1437
- linen: "faf0e6",
1438
- magenta: "f0f",
1439
- maroon: "800000",
1440
- mediumaquamarine: "66cdaa",
1441
- mediumblue: "0000cd",
1442
- mediumorchid: "ba55d3",
1443
- mediumpurple: "9370db",
1444
- mediumseagreen: "3cb371",
1445
- mediumslateblue: "7b68ee",
1446
- mediumspringgreen: "00fa9a",
1447
- mediumturquoise: "48d1cc",
1448
- mediumvioletred: "c71585",
1449
- midnightblue: "191970",
1450
- mintcream: "f5fffa",
1451
- mistyrose: "ffe4e1",
1452
- moccasin: "ffe4b5",
1453
- navajowhite: "ffdead",
1454
- navy: "000080",
1455
- oldlace: "fdf5e6",
1456
- olive: "808000",
1457
- olivedrab: "6b8e23",
1458
- orange: "ffa500",
1459
- orangered: "ff4500",
1460
- orchid: "da70d6",
1461
- palegoldenrod: "eee8aa",
1462
- palegreen: "98fb98",
1463
- paleturquoise: "afeeee",
1464
- palevioletred: "db7093",
1465
- papayawhip: "ffefd5",
1466
- peachpuff: "ffdab9",
1467
- peru: "cd853f",
1468
- pink: "ffc0cb",
1469
- plum: "dda0dd",
1470
- powderblue: "b0e0e6",
1471
- purple: "800080",
1472
- rebeccapurple: "639",
1473
- red: "f00",
1474
- rosybrown: "bc8f8f",
1475
- royalblue: "4169e1",
1476
- saddlebrown: "8b4513",
1477
- salmon: "fa8072",
1478
- sandybrown: "f4a460",
1479
- seagreen: "2e8b57",
1480
- seashell: "fff5ee",
1481
- sienna: "a0522d",
1482
- silver: "c0c0c0",
1483
- skyblue: "87ceeb",
1484
- slateblue: "6a5acd",
1485
- slategray: "708090",
1486
- slategrey: "708090",
1487
- snow: "fffafa",
1488
- springgreen: "00ff7f",
1489
- steelblue: "4682b4",
1490
- tan: "d2b48c",
1491
- teal: "008080",
1492
- thistle: "d8bfd8",
1493
- tomato: "ff6347",
1494
- turquoise: "40e0d0",
1495
- violet: "ee82ee",
1496
- wheat: "f5deb3",
1497
- white: "fff",
1498
- whitesmoke: "f5f5f5",
1499
- yellow: "ff0",
1500
- yellowgreen: "9acd32"
1501
- };
1502
- function nameToHex(color2) {
1503
- if (typeof color2 !== "string") return color2;
1504
- var normalizedColorName = color2.toLowerCase();
1505
- return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2;
1506
- }
1507
- var hexRegex = /^#[a-fA-F0-9]{6}$/;
1508
- var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
1509
- var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
1510
- var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
1511
- var rgbRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
1512
- var rgbaRegex = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
1513
- var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
1514
- var hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
1515
- function parseToRgb(color2) {
1516
- if (typeof color2 !== "string") {
1517
- throw new PolishedError(3);
1518
- }
1519
- var normalizedColor = nameToHex(color2);
1520
- if (normalizedColor.match(hexRegex)) {
1521
- return {
1522
- red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
1523
- green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
1524
- blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
1525
- };
1526
- }
1527
- if (normalizedColor.match(hexRgbaRegex)) {
1528
- var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
1529
- return {
1530
- red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
1531
- green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
1532
- blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
1533
- alpha
1534
- };
1535
- }
1536
- if (normalizedColor.match(reducedHexRegex)) {
1537
- return {
1538
- red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
1539
- green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
1540
- blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
1541
- };
1542
- }
1543
- if (normalizedColor.match(reducedRgbaHexRegex)) {
1544
- var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
1545
- return {
1546
- red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
1547
- green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
1548
- blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
1549
- alpha: _alpha
1550
- };
1551
- }
1552
- var rgbMatched = rgbRegex.exec(normalizedColor);
1553
- if (rgbMatched) {
1554
- return {
1555
- red: parseInt("" + rgbMatched[1], 10),
1556
- green: parseInt("" + rgbMatched[2], 10),
1557
- blue: parseInt("" + rgbMatched[3], 10)
1558
- };
1559
- }
1560
- var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
1561
- if (rgbaMatched) {
1562
- return {
1563
- red: parseInt("" + rgbaMatched[1], 10),
1564
- green: parseInt("" + rgbaMatched[2], 10),
1565
- blue: parseInt("" + rgbaMatched[3], 10),
1566
- alpha: parseFloat("" + rgbaMatched[4])
1567
- };
1568
- }
1569
- var hslMatched = hslRegex.exec(normalizedColor);
1570
- if (hslMatched) {
1571
- var hue = parseInt("" + hslMatched[1], 10);
1572
- var saturation = parseInt("" + hslMatched[2], 10) / 100;
1573
- var lightness = parseInt("" + hslMatched[3], 10) / 100;
1574
- var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
1575
- var hslRgbMatched = rgbRegex.exec(rgbColorString);
1576
- if (!hslRgbMatched) {
1577
- throw new PolishedError(4, normalizedColor, rgbColorString);
1578
- }
1579
- return {
1580
- red: parseInt("" + hslRgbMatched[1], 10),
1581
- green: parseInt("" + hslRgbMatched[2], 10),
1582
- blue: parseInt("" + hslRgbMatched[3], 10)
1583
- };
1584
- }
1585
- var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
1586
- if (hslaMatched) {
1587
- var _hue = parseInt("" + hslaMatched[1], 10);
1588
- var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
1589
- var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
1590
- var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
1591
- var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
1592
- if (!_hslRgbMatched) {
1593
- throw new PolishedError(4, normalizedColor, _rgbColorString);
1594
- }
1595
- return {
1596
- red: parseInt("" + _hslRgbMatched[1], 10),
1597
- green: parseInt("" + _hslRgbMatched[2], 10),
1598
- blue: parseInt("" + _hslRgbMatched[3], 10),
1599
- alpha: parseFloat("" + hslaMatched[4])
1600
- };
1601
- }
1602
- throw new PolishedError(5);
1603
- }
1604
- var reduceHexValue = function reduceHexValue2(value) {
1605
- if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
1606
- return "#" + value[1] + value[3] + value[5];
1607
- }
1608
- return value;
1609
- };
1610
- function numberToHex(value) {
1611
- var hex = value.toString(16);
1612
- return hex.length === 1 ? "0" + hex : hex;
1613
- }
1614
- function rgb(value, green, blue) {
1615
- if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
1616
- return reduceHexValue("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
1617
- } else if (typeof value === "object" && green === void 0 && blue === void 0) {
1618
- return reduceHexValue("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
1619
- }
1620
- throw new PolishedError(6);
1621
- }
1622
- function rgba(firstValue, secondValue, thirdValue, fourthValue) {
1623
- if (typeof firstValue === "string" && typeof secondValue === "number") {
1624
- var rgbValue = parseToRgb(firstValue);
1625
- return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
1626
- } else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
1627
- return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
1628
- } else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
1629
- return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
1630
- }
1631
- throw new PolishedError(7);
1632
- }
1633
- function curried(f, length, acc) {
1634
- return function fn() {
1635
- var combined = acc.concat(Array.prototype.slice.call(arguments));
1636
- return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
1637
- };
1638
- }
1639
- function curry(f) {
1640
- return curried(f, f.length, []);
1641
- }
1642
- function guard(lowerBoundary, upperBoundary, value) {
1643
- return Math.max(lowerBoundary, Math.min(upperBoundary, value));
1644
- }
1645
- function transparentize(amount, color2) {
1646
- if (color2 === "transparent") return color2;
1647
- var parsedColor = parseToRgb(color2);
1648
- var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
1649
- var colorWithAlpha = _extends2({}, parsedColor, {
1650
- alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
1651
- });
1652
- return rgba(colorWithAlpha);
1653
- }
1654
- var curriedTransparentize = /* @__PURE__ */ curry(transparentize);
1655
-
1656
84
  // ../seeds-react-mixins/dist/esm/index.js
1657
- import { css as css3 } from "styled-components";
85
+ import { css } from "styled-components";
1658
86
  import { theme } from "@sproutsocial/seeds-react-theme";
1659
- var visuallyHidden = css3`
87
+ var visuallyHidden = css`
1660
88
  position: absolute;
1661
89
  width: 1px;
1662
90
  height: 1px;
@@ -1666,30 +94,34 @@ var visuallyHidden = css3`
1666
94
  clip: rect(0 0 0 0);
1667
95
  border: 0;
1668
96
  `;
1669
- var focusRing = css3`
97
+ var focusRing = css`
1670
98
  box-shadow: 0 0 0 1px ${theme.colors.button.primary.background.base},
1671
99
  0 0px 0px 4px
1672
- ${curriedTransparentize(0.7, theme.colors.button.primary.background.base)};
100
+ color-mix(
101
+ in srgb,
102
+ ${theme.colors.button.primary.background.base},
103
+ transparent 70%
104
+ );
1673
105
  outline: none;
1674
106
 
1675
107
  &::-moz-focus-inner {
1676
108
  border: 0;
1677
109
  }
1678
110
  `;
1679
- var pill = css3`
111
+ var pill = css`
1680
112
  min-width: ${theme.space[600]};
1681
113
  min-height: ${theme.space[600]};
1682
114
  padding: ${theme.space[300]};
1683
115
  border-radius: ${theme.radii.pill};
1684
116
  `;
1685
- var disabled = css3`
117
+ var disabled = css`
1686
118
  opacity: 0.4;
1687
119
  pointer-events: none;
1688
120
  `;
1689
121
 
1690
122
  // src/styles.ts
1691
123
  var StyledAccordionItem = styled(RadixAccordion2.Item)``;
1692
- var animations = css4`
124
+ var animations = css2`
1693
125
  @keyframes slideDown {
1694
126
  from {
1695
127
  height: 0;
@@ -1900,8 +332,8 @@ var AccordionTrigger = ({
1900
332
  const { triggerIcon, triggerPosition, styled: styled2 } = useContext2(AccordionContext);
1901
333
  const validatedActions = relatedActions?.slice(0, MAX_RELATED_ACTIONS);
1902
334
  const {
1903
- color: color2,
1904
- padding: padding2,
335
+ color,
336
+ padding,
1905
337
  paddingBottom,
1906
338
  paddingTop,
1907
339
  paddingX,
@@ -1915,16 +347,16 @@ var AccordionTrigger = ({
1915
347
  pl,
1916
348
  px,
1917
349
  py,
1918
- fontFamily: fontFamily2,
350
+ fontFamily,
1919
351
  fontSize: fontSize2,
1920
- fontStyle: fontStyle2,
1921
- fontWeight: fontWeight2,
1922
- lineHeight: lineHeight2,
1923
- textAlign: textAlign2,
352
+ fontStyle,
353
+ fontWeight,
354
+ lineHeight,
355
+ textAlign,
1924
356
  ...triggerProps
1925
357
  } = rest;
1926
358
  const spacingProps = {
1927
- padding: padding2,
359
+ padding,
1928
360
  paddingBottom,
1929
361
  paddingTop,
1930
362
  paddingX,
@@ -1941,13 +373,13 @@ var AccordionTrigger = ({
1941
373
  };
1942
374
  const typographyProps = Object.fromEntries(
1943
375
  Object.entries({
1944
- color: color2,
1945
- fontFamily: fontFamily2,
376
+ color,
377
+ fontFamily,
1946
378
  fontSize: fontSize2,
1947
- fontStyle: fontStyle2,
1948
- fontWeight: fontWeight2,
1949
- lineHeight: lineHeight2,
1950
- textAlign: textAlign2
379
+ fontStyle,
380
+ fontWeight,
381
+ lineHeight,
382
+ textAlign
1951
383
  }).filter(([_, value]) => value != null)
1952
384
  );
1953
385
  const shouldRenderActionsBlock = Boolean(overflowMenu || validatedActions);
@@ -1964,7 +396,7 @@ var AccordionTrigger = ({
1964
396
  {
1965
397
  name: "ellipsis-horizontal-outline",
1966
398
  "aria-hidden": "true",
1967
- color: color2
399
+ color
1968
400
  }
1969
401
  )
1970
402
  }
@@ -1983,9 +415,9 @@ var AccordionTrigger = ({
1983
415
  display: "flex",
1984
416
  alignItems: "center",
1985
417
  gap: "300",
1986
- color: color2,
418
+ color,
1987
419
  children: [
1988
- /* @__PURE__ */ jsx4(Icon2, { name: iconName, color: color2 }),
420
+ /* @__PURE__ */ jsx4(Icon2, { name: iconName, color }),
1989
421
  children2
1990
422
  ]
1991
423
  }
@@ -2001,7 +433,7 @@ var AccordionTrigger = ({
2001
433
  {
2002
434
  onClick: action.onClick,
2003
435
  "aria-label": action["aria-label"],
2004
- children: /* @__PURE__ */ jsx4(Icon2, { name: action.iconName, color: color2, "aria-hidden": "true" })
436
+ children: /* @__PURE__ */ jsx4(Icon2, { name: action.iconName, color, "aria-hidden": "true" })
2005
437
  },
2006
438
  `${action.iconName}-${index}`
2007
439
  )) });
@@ -2033,13 +465,4 @@ export {
2033
465
  AccordionItem,
2034
466
  AccordionTrigger
2035
467
  };
2036
- /*! Bundled license information:
2037
-
2038
- object-assign/index.js:
2039
- (*
2040
- object-assign
2041
- (c) Sindre Sorhus
2042
- @license MIT
2043
- *)
2044
- */
2045
468
  //# sourceMappingURL=index.js.map