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