@class101/cdn-ui-system 0.0.3 → 0.0.7

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.
Files changed (66) hide show
  1. package/@types/theme.d.js +1 -9
  2. package/contexts/UiSystemProvider.js +1 -1796
  3. package/core/props/action.js +1 -1045
  4. package/core/props/animator.js +1 -1045
  5. package/core/props/background.js +1 -1043
  6. package/core/props/border.js +3 -1047
  7. package/core/props/color.js +1 -1043
  8. package/core/props/flexbox.js +1 -1043
  9. package/core/props/icon.js +1 -1045
  10. package/core/props/image.js +1 -1045
  11. package/core/props/index.js +21 -2063
  12. package/core/props/layout.js +3 -1047
  13. package/core/props/position.js +1 -1043
  14. package/core/props/shadow.js +1 -1043
  15. package/core/props/space.js +1 -1043
  16. package/core/props/transform.js +1 -1045
  17. package/core/props/transition.js +1 -1045
  18. package/core/props/typography.js +3 -1047
  19. package/core/props/utils/getResponsiveValue.js +4 -5454
  20. package/core/props/utils/skipForwardProps.js +2 -12
  21. package/core/props/video.js +1 -1045
  22. package/core/variants/styleVariant/styleVariant.js +6 -214
  23. package/core/variants/system/system.js +6 -2080
  24. package/hooks/useResponsiveValue/useResponsiveValue.js +1 -1746
  25. package/lib/Animation/Animator/Animator.stories.js +1 -1761
  26. package/lib/Animation/FadeAnimation/FadeAnimation.js +1 -1761
  27. package/lib/Animation/RotateAnimation/RotateAnimation.js +1 -1761
  28. package/lib/Animation/SlideAnimation/SlideAnimation.js +5 -1765
  29. package/lib/Animation/Transition/Transition.stories.js +2 -2074
  30. package/lib/Avatar/Avatar.js +8 -3092
  31. package/lib/BreadCrumb/BreadCrumb.js +3 -2076
  32. package/lib/Button/ButtonIcon/ButtonIcon.js +6 -2287
  33. package/lib/Button/TextButton/TextButton.js +7 -3091
  34. package/lib/Elevation/Elevation.js +3 -3087
  35. package/lib/Form/CheckBox/CheckBox.js +4 -2076
  36. package/lib/Form/CheckBoxField/CheckBoxField.js +2 -206
  37. package/lib/Form/Description/Description.js +3 -3087
  38. package/lib/Form/HiddenInput/HiddenInput.js +2 -2074
  39. package/lib/Form/InlineTextLabel/InlineTextLabel.stories.js +2 -206
  40. package/lib/Form/Input/Input.js +4 -3088
  41. package/lib/Form/Label/Label.stories.js +4 -2250
  42. package/lib/Form/Select/Select.js +5 -3089
  43. package/lib/GlobalStyle/GlobalStyle.js +1 -1749
  44. package/lib/GridList/GridList.js +6 -7178
  45. package/lib/HtmlContentStyle/HtmlContentStyle.js +2 -2074
  46. package/lib/Layout/Center/Center.js +2 -2081
  47. package/lib/Media/Image/useActualSizes.js +14 -1727
  48. package/lib/Menu/MenuText/MenuText.js +3 -3087
  49. package/lib/Pagination/Pagination.js +5 -2440
  50. package/lib/Portal/Portal.js +1 -1740
  51. package/lib/ProfileLabel/ProfileLabel.js +11 -3096
  52. package/lib/Progress/ProgressStep/ProgressStep.js +3 -3087
  53. package/lib/Ratio/Ratio.js +4 -3088
  54. package/lib/Section/Section.js +2 -2074
  55. package/lib/SlideList/SlideList.js +2 -5452
  56. package/lib/Slider/Slider.js +7 -2537
  57. package/lib/SliderSection/SliderSection.js +2 -2074
  58. package/lib/Tag/Chip/Chip.js +3 -3087
  59. package/lib/Underline/Underline.js +3 -2179
  60. package/lib/deprecated/Swiper/Swiper.js +2 -2074
  61. package/lib/deprecated/Swiper/Swiper.stories.js +3 -2075
  62. package/lib/deprecated/Swiper/hooks/useSwiper.js +2 -455
  63. package/package.json +1 -1
  64. package/private/Box/Box.js +2 -2074
  65. package/private/ForwardStyle/ForwardStyle.js +7 -3141
  66. package/private/Stack/Stack.js +3 -1748
@@ -1,2087 +1,45 @@
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 __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[Object.keys(cb)[0]])((mod = {exports: {}}).exports, mod), mod.exports;
13
- };
14
- var __reExport = (target, module, desc) => {
15
- if (module && typeof module === "object" || typeof module === "function") {
16
- for (let key of __getOwnPropNames(module))
17
- if (!__hasOwnProp.call(target, key) && key !== "default")
18
- __defProp(target, key, {get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable});
19
- }
20
- return target;
21
- };
22
- var __toModule = (module) => {
23
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? {get: () => module.default, enumerable: true} : {value: module, enumerable: true})), module);
24
- };
25
-
26
1
  // tools/builders/framer-esm/build/react-shim.js
27
2
  import * as React from "react";
28
- var init_react_shim = __esm({
29
- "tools/builders/framer-esm/build/react-shim.js"() {
30
- }
31
- });
32
-
33
- // node_modules/object-assign/index.js
34
- var require_object_assign = __commonJS({
35
- "node_modules/object-assign/index.js"(exports, module) {
36
- init_react_shim();
37
- "use strict";
38
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
39
- var hasOwnProperty = Object.prototype.hasOwnProperty;
40
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
41
- function toObject(val) {
42
- if (val === null || val === void 0) {
43
- throw new TypeError("Object.assign cannot be called with null or undefined");
44
- }
45
- return Object(val);
46
- }
47
- function shouldUseNative() {
48
- try {
49
- if (!Object.assign) {
50
- return false;
51
- }
52
- var test1 = new String("abc");
53
- test1[5] = "de";
54
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
55
- return false;
56
- }
57
- var test2 = {};
58
- for (var i = 0; i < 10; i++) {
59
- test2["_" + String.fromCharCode(i)] = i;
60
- }
61
- var order22 = Object.getOwnPropertyNames(test2).map(function(n) {
62
- return test2[n];
63
- });
64
- if (order22.join("") !== "0123456789") {
65
- return false;
66
- }
67
- var test3 = {};
68
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
69
- test3[letter] = letter;
70
- });
71
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
72
- return false;
73
- }
74
- return true;
75
- } catch (err) {
76
- return false;
77
- }
78
- }
79
- module.exports = shouldUseNative() ? Object.assign : function(target, source) {
80
- var from;
81
- var to = toObject(target);
82
- var symbols;
83
- for (var s = 1; s < arguments.length; s++) {
84
- from = Object(arguments[s]);
85
- for (var key in from) {
86
- if (hasOwnProperty.call(from, key)) {
87
- to[key] = from[key];
88
- }
89
- }
90
- if (getOwnPropertySymbols) {
91
- symbols = getOwnPropertySymbols(from);
92
- for (var i = 0; i < symbols.length; i++) {
93
- if (propIsEnumerable.call(from, symbols[i])) {
94
- to[symbols[i]] = from[symbols[i]];
95
- }
96
- }
97
- }
98
- }
99
- return to;
100
- };
101
- }
102
- });
103
-
104
- // libs/shared/ui-system/src/core/props/index.ts
105
- init_react_shim();
106
-
107
- // node_modules/@class101/styled-system/dist/index.esm.js
108
- init_react_shim();
109
-
110
- // node_modules/@class101/styled-system__core/dist/index.esm.js
111
- init_react_shim();
112
- var import_object_assign = __toModule(require_object_assign());
113
- var merge = function merge2(a, b) {
114
- var result = (0, import_object_assign.default)({}, a, b);
115
- for (var key in a) {
116
- var _assign;
117
- if (!a[key] || typeof b[key] !== "object")
118
- continue;
119
- (0, import_object_assign.default)(result, (_assign = {}, _assign[key] = (0, import_object_assign.default)(a[key], b[key]), _assign));
120
- }
121
- return result;
122
- };
123
- var sort = function sort2(obj) {
124
- var next = {};
125
- Object.keys(obj).sort(function(a, b) {
126
- return a.localeCompare(b, void 0, {
127
- numeric: true,
128
- sensitivity: "base"
129
- });
130
- }).forEach(function(key) {
131
- next[key] = obj[key];
132
- });
133
- return next;
134
- };
135
- var defaults = {
136
- breakpoints: [40, 52, 64].map(function(n) {
137
- return n + "em";
138
- })
139
- };
140
- var createMediaQuery = function createMediaQuery2(n) {
141
- return "@media screen and (min-width: " + n + ")";
142
- };
143
- var getValue = function getValue2(n, scale) {
144
- return get(scale, n, n);
145
- };
146
- var get = function get2(obj, key, def, p, undef) {
147
- key = key && key.split ? key.split(".") : [key];
148
- for (p = 0; p < key.length; p++) {
149
- obj = obj ? obj[key[p]] : undef;
150
- }
151
- return obj === undef ? def : obj;
152
- };
153
- var createParser = function createParser2(config17) {
154
- var cache = {};
155
- var parse = function parse2(props2) {
156
- var styles = {};
157
- var shouldSort = false;
158
- var isCacheDisabled = props2.theme && props2.theme.disableStyledSystemCache;
159
- for (var _key in props2) {
160
- if (!config17[_key])
161
- continue;
162
- var sx = config17[_key];
163
- var raw = props2[_key];
164
- var scale = get(props2.theme, sx.scale, sx.defaults);
165
- if (typeof raw === "object" && Array.isArray(raw)) {
166
- cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props2.theme, "breakpoints", defaults.breakpoints);
167
- cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));
168
- styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props2));
169
- continue;
170
- }
171
- (0, import_object_assign.default)(styles, sx(raw, scale, props2));
172
- }
173
- if (shouldSort) {
174
- styles = sort(styles);
175
- }
176
- var sortedStyles = {};
177
- var mediaQueryStyles = {};
178
- for (var key in styles) {
179
- if (key.startsWith("@media")) {
180
- mediaQueryStyles[key] = styles[key];
181
- continue;
182
- }
183
- sortedStyles[key] = styles[key];
184
- }
185
- return merge(sortedStyles, mediaQueryStyles);
186
- };
187
- parse.config = config17;
188
- parse.propNames = Object.keys(config17);
189
- parse.cache = cache;
190
- var keys = Object.keys(config17).filter(function(k) {
191
- return k !== "config";
192
- });
193
- if (keys.length > 1) {
194
- keys.forEach(function(key) {
195
- var _createParser;
196
- parse[key] = createParser2((_createParser = {}, _createParser[key] = config17[key], _createParser));
197
- });
198
- }
199
- return parse;
200
- };
201
- var parseResponsiveStyle = function parseResponsiveStyle2(mediaQueries, sx, scale, raw, _props) {
202
- var styles = {};
203
- raw.slice(0, mediaQueries.length).forEach(function(value, i) {
204
- var media = mediaQueries[i];
205
- var style = sx(value, scale, _props);
206
- if (!media) {
207
- (0, import_object_assign.default)(styles, style);
208
- } else {
209
- var _assign2;
210
- (0, import_object_assign.default)(styles, (_assign2 = {}, _assign2[media] = (0, import_object_assign.default)({}, styles[media], style), _assign2));
211
- }
212
- });
213
- return styles;
214
- };
215
- var createStyleFunction = function createStyleFunction2(_ref) {
216
- var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform2 = _ref$transform === void 0 ? getValue : _ref$transform, defaultScale = _ref.defaultScale;
217
- properties = properties || [property];
218
- var sx = function sx2(value, scale2, _props) {
219
- var result = {};
220
- var n = transform2(value, scale2, _props);
221
- if (n === null)
222
- return;
223
- properties.forEach(function(prop) {
224
- result[prop] = n;
225
- });
226
- return result;
227
- };
228
- sx.scale = scale;
229
- sx.defaults = defaultScale;
230
- return sx;
231
- };
232
- var system = function system2(args) {
233
- if (args === void 0) {
234
- args = {};
235
- }
236
- var config17 = {};
237
- Object.keys(args).forEach(function(key) {
238
- var conf = args[key];
239
- if (conf === true) {
240
- config17[key] = createStyleFunction({
241
- property: key,
242
- scale: key
243
- });
244
- return;
245
- }
246
- if (typeof conf === "function") {
247
- config17[key] = conf;
248
- return;
249
- }
250
- config17[key] = createStyleFunction(conf);
251
- });
252
- var parser = createParser(config17);
253
- return parser;
254
- };
255
- var compose = function compose2() {
256
- var config17 = {};
257
- for (var _len = arguments.length, parsers = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
258
- parsers[_key2] = arguments[_key2];
259
- }
260
- parsers.forEach(function(parser2) {
261
- if (!parser2 || !parser2.config)
262
- return;
263
- (0, import_object_assign.default)(config17, parser2.config);
264
- });
265
- var parser = createParser(config17);
266
- return parser;
267
- };
268
-
269
- // node_modules/@class101/styled-system__layout/dist/index.esm.js
270
- init_react_shim();
271
- var isNumber = function isNumber2(n) {
272
- return typeof n === "number" && !isNaN(n);
273
- };
274
- var getWidth = function getWidth2(n, scale) {
275
- return get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + "%");
276
- };
277
- var config = {
278
- width: {
279
- property: "width",
280
- scale: "sizes",
281
- transform: getWidth
282
- },
283
- height: {
284
- property: "height",
285
- scale: "sizes"
286
- },
287
- minWidth: {
288
- property: "minWidth",
289
- scale: "sizes"
290
- },
291
- minHeight: {
292
- property: "minHeight",
293
- scale: "sizes"
294
- },
295
- maxWidth: {
296
- property: "maxWidth",
297
- scale: "sizes"
298
- },
299
- maxHeight: {
300
- property: "maxHeight",
301
- scale: "sizes"
302
- },
303
- size: {
304
- properties: ["width", "height"],
305
- scale: "sizes"
306
- },
307
- overflow: true,
308
- overflowX: true,
309
- overflowY: true,
310
- display: true,
311
- verticalAlign: true
312
- };
313
- var layout = system(config);
314
- var index_esm_default = layout;
315
-
316
- // node_modules/@class101/styled-system__color/dist/index.esm.js
317
- init_react_shim();
318
- var config2 = {
319
- color: {
320
- property: "color",
321
- scale: "colors"
322
- },
323
- backgroundColor: {
324
- property: "backgroundColor",
325
- scale: "colors"
326
- },
327
- opacity: true
328
- };
329
- config2.bg = config2.backgroundColor;
330
- var color = system(config2);
331
- var index_esm_default2 = color;
332
-
333
- // node_modules/@class101/styled-system__typography/dist/index.esm.js
334
- init_react_shim();
335
- var defaults2 = {
336
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
337
- };
338
- var config3 = {
339
- fontFamily: {
340
- property: "fontFamily",
341
- scale: "fonts"
342
- },
343
- fontSize: {
344
- property: "fontSize",
345
- scale: "fontSizes",
346
- defaultScale: defaults2.fontSizes
347
- },
348
- fontWeight: {
349
- property: "fontWeight",
350
- scale: "fontWeights"
351
- },
352
- lineHeight: {
353
- property: "lineHeight",
354
- scale: "lineHeights"
355
- },
356
- letterSpacing: {
357
- property: "letterSpacing",
358
- scale: "letterSpacings"
359
- },
360
- textAlign: true,
361
- fontStyle: true
362
- };
363
- var typography = system(config3);
364
- var index_esm_default3 = typography;
365
-
366
- // node_modules/@class101/styled-system__flexbox/dist/index.esm.js
367
- init_react_shim();
368
- var config4 = {
369
- alignItems: true,
370
- alignContent: true,
371
- justifyItems: true,
372
- justifyContent: true,
373
- flexWrap: true,
374
- flexDirection: true,
375
- flex: true,
376
- flexGrow: true,
377
- flexShrink: true,
378
- flexBasis: true,
379
- justifySelf: true,
380
- alignSelf: true,
381
- order: true
382
- };
383
- var flexbox = system(config4);
384
- var index_esm_default4 = flexbox;
385
-
386
- // node_modules/@class101/styled-system__grid/dist/index.esm.js
387
- init_react_shim();
388
- var defaults3 = {
389
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
390
- };
391
- var config5 = {
392
- gridGap: {
393
- property: "gridGap",
394
- scale: "space",
395
- defaultScale: defaults3.space
396
- },
397
- gridColumnGap: {
398
- property: "gridColumnGap",
399
- scale: "space",
400
- defaultScale: defaults3.space
401
- },
402
- gridRowGap: {
403
- property: "gridRowGap",
404
- scale: "space",
405
- defaultScale: defaults3.space
406
- },
407
- gridColumn: true,
408
- gridRow: true,
409
- gridAutoFlow: true,
410
- gridAutoColumns: true,
411
- gridAutoRows: true,
412
- gridTemplateColumns: true,
413
- gridTemplateRows: true,
414
- gridTemplateAreas: true,
415
- gridArea: true
416
- };
417
- var grid = system(config5);
418
- var index_esm_default5 = grid;
419
-
420
- // node_modules/@class101/styled-system__border/dist/index.esm.js
421
- init_react_shim();
422
- var config6 = {
423
- border: {
424
- property: "border",
425
- scale: "borders"
426
- },
427
- borderWidth: {
428
- property: "borderWidth",
429
- scale: "borderWidths"
430
- },
431
- borderStyle: {
432
- property: "borderStyle",
433
- scale: "borderStyles"
434
- },
435
- borderColor: {
436
- property: "borderColor",
437
- scale: "colors"
438
- },
439
- borderRadius: {
440
- property: "borderRadius",
441
- scale: "radii"
442
- },
443
- borderTop: {
444
- property: "borderTop",
445
- scale: "borders"
446
- },
447
- borderTopLeftRadius: {
448
- property: "borderTopLeftRadius",
449
- scale: "radii"
450
- },
451
- borderTopRightRadius: {
452
- property: "borderTopRightRadius",
453
- scale: "radii"
454
- },
455
- borderRight: {
456
- property: "borderRight",
457
- scale: "borders"
458
- },
459
- borderBottom: {
460
- property: "borderBottom",
461
- scale: "borders"
462
- },
463
- borderBottomLeftRadius: {
464
- property: "borderBottomLeftRadius",
465
- scale: "radii"
466
- },
467
- borderBottomRightRadius: {
468
- property: "borderBottomRightRadius",
469
- scale: "radii"
470
- },
471
- borderLeft: {
472
- property: "borderLeft",
473
- scale: "borders"
474
- },
475
- borderX: {
476
- properties: ["borderLeft", "borderRight"],
477
- scale: "borders"
478
- },
479
- borderY: {
480
- properties: ["borderTop", "borderBottom"],
481
- scale: "borders"
482
- }
483
- };
484
- config6.borderTopWidth = {
485
- property: "borderTopWidth",
486
- scale: "borderWidths"
487
- };
488
- config6.borderTopColor = {
489
- property: "borderTopColor",
490
- scale: "colors"
491
- };
492
- config6.borderTopStyle = {
493
- property: "borderTopStyle",
494
- scale: "borderStyles"
495
- };
496
- config6.borderTopLeftRadius = {
497
- property: "borderTopLeftRadius",
498
- scale: "radii"
499
- };
500
- config6.borderTopRightRadius = {
501
- property: "borderTopRightRadius",
502
- scale: "radii"
503
- };
504
- config6.borderBottomWidth = {
505
- property: "borderBottomWidth",
506
- scale: "borderWidths"
507
- };
508
- config6.borderBottomColor = {
509
- property: "borderBottomColor",
510
- scale: "colors"
511
- };
512
- config6.borderBottomStyle = {
513
- property: "borderBottomStyle",
514
- scale: "borderStyles"
515
- };
516
- config6.borderBottomLeftRadius = {
517
- property: "borderBottomLeftRadius",
518
- scale: "radii"
519
- };
520
- config6.borderBottomRightRadius = {
521
- property: "borderBottomRightRadius",
522
- scale: "radii"
523
- };
524
- config6.borderLeftWidth = {
525
- property: "borderLeftWidth",
526
- scale: "borderWidths"
527
- };
528
- config6.borderLeftColor = {
529
- property: "borderLeftColor",
530
- scale: "colors"
531
- };
532
- config6.borderLeftStyle = {
533
- property: "borderLeftStyle",
534
- scale: "borderStyles"
535
- };
536
- config6.borderRightWidth = {
537
- property: "borderRightWidth",
538
- scale: "borderWidths"
539
- };
540
- config6.borderRightColor = {
541
- property: "borderRightColor",
542
- scale: "colors"
543
- };
544
- config6.borderRightStyle = {
545
- property: "borderRightStyle",
546
- scale: "borderStyles"
547
- };
548
- var border = system(config6);
549
- var index_esm_default6 = border;
550
-
551
- // node_modules/@class101/styled-system__background/dist/index.esm.js
552
- init_react_shim();
553
- var config7 = {
554
- background: true,
555
- backgroundImage: true,
556
- backgroundSize: true,
557
- backgroundPosition: true,
558
- backgroundRepeat: true
559
- };
560
- config7.bgImage = config7.backgroundImage;
561
- config7.bgSize = config7.backgroundSize;
562
- config7.bgPosition = config7.backgroundPosition;
563
- config7.bgRepeat = config7.backgroundRepeat;
564
- var background = system(config7);
565
- var index_esm_default7 = background;
566
-
567
- // node_modules/@class101/styled-system__position/dist/index.esm.js
568
- init_react_shim();
569
- var defaults4 = {
570
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
571
- };
572
- var config8 = {
573
- position: true,
574
- zIndex: {
575
- property: "zIndex",
576
- scale: "zIndices"
577
- },
578
- top: {
579
- property: "top",
580
- scale: "space",
581
- defaultScale: defaults4.space
582
- },
583
- right: {
584
- property: "right",
585
- scale: "space",
586
- defaultScale: defaults4.space
587
- },
588
- bottom: {
589
- property: "bottom",
590
- scale: "space",
591
- defaultScale: defaults4.space
592
- },
593
- left: {
594
- property: "left",
595
- scale: "space",
596
- defaultScale: defaults4.space
597
- }
598
- };
599
- var position = system(config8);
600
- var index_esm_default8 = position;
601
-
602
- // node_modules/@class101/styled-system__space/dist/index.esm.js
603
- init_react_shim();
604
- var defaults5 = {
605
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
606
- };
607
- var isNumber3 = function isNumber4(n) {
608
- return typeof n === "number" && !isNaN(n);
609
- };
610
- var getMargin = function getMargin2(n, scale) {
611
- if (!isNumber3(n)) {
612
- return get(scale, n, n);
613
- }
614
- var isNegative = n < 0;
615
- var absolute = Math.abs(n);
616
- var value = get(scale, absolute, absolute);
617
- if (!isNumber3(value)) {
618
- return isNegative ? "-" + value : value;
619
- }
620
- return value * (isNegative ? -1 : 1);
621
- };
622
- var configs = {};
623
- configs.margin = {
624
- margin: {
625
- property: "margin",
626
- scale: "space",
627
- transform: getMargin,
628
- defaultScale: defaults5.space
629
- },
630
- marginTop: {
631
- property: "marginTop",
632
- scale: "space",
633
- transform: getMargin,
634
- defaultScale: defaults5.space
635
- },
636
- marginRight: {
637
- property: "marginRight",
638
- scale: "space",
639
- transform: getMargin,
640
- defaultScale: defaults5.space
641
- },
642
- marginBottom: {
643
- property: "marginBottom",
644
- scale: "space",
645
- transform: getMargin,
646
- defaultScale: defaults5.space
647
- },
648
- marginLeft: {
649
- property: "marginLeft",
650
- scale: "space",
651
- transform: getMargin,
652
- defaultScale: defaults5.space
653
- },
654
- marginX: {
655
- properties: ["marginLeft", "marginRight"],
656
- scale: "space",
657
- transform: getMargin,
658
- defaultScale: defaults5.space
659
- },
660
- marginY: {
661
- properties: ["marginTop", "marginBottom"],
662
- scale: "space",
663
- transform: getMargin,
664
- defaultScale: defaults5.space
665
- }
666
- };
667
- configs.margin.m = configs.margin.margin;
668
- configs.margin.mt = configs.margin.marginTop;
669
- configs.margin.mr = configs.margin.marginRight;
670
- configs.margin.mb = configs.margin.marginBottom;
671
- configs.margin.ml = configs.margin.marginLeft;
672
- configs.margin.mx = configs.margin.marginX;
673
- configs.margin.my = configs.margin.marginY;
674
- configs.padding = {
675
- padding: {
676
- property: "padding",
677
- scale: "space",
678
- defaultScale: defaults5.space
679
- },
680
- paddingTop: {
681
- property: "paddingTop",
682
- scale: "space",
683
- defaultScale: defaults5.space
684
- },
685
- paddingRight: {
686
- property: "paddingRight",
687
- scale: "space",
688
- defaultScale: defaults5.space
689
- },
690
- paddingBottom: {
691
- property: "paddingBottom",
692
- scale: "space",
693
- defaultScale: defaults5.space
694
- },
695
- paddingLeft: {
696
- property: "paddingLeft",
697
- scale: "space",
698
- defaultScale: defaults5.space
699
- },
700
- paddingX: {
701
- properties: ["paddingLeft", "paddingRight"],
702
- scale: "space",
703
- defaultScale: defaults5.space
704
- },
705
- paddingY: {
706
- properties: ["paddingTop", "paddingBottom"],
707
- scale: "space",
708
- defaultScale: defaults5.space
709
- }
710
- };
711
- configs.padding.p = configs.padding.padding;
712
- configs.padding.pt = configs.padding.paddingTop;
713
- configs.padding.pr = configs.padding.paddingRight;
714
- configs.padding.pb = configs.padding.paddingBottom;
715
- configs.padding.pl = configs.padding.paddingLeft;
716
- configs.padding.px = configs.padding.paddingX;
717
- configs.padding.py = configs.padding.paddingY;
718
- var margin = system(configs.margin);
719
- var padding = system(configs.padding);
720
- var space = compose(margin, padding);
721
-
722
- // node_modules/@class101/styled-system__shadow/dist/index.esm.js
723
- init_react_shim();
724
- var shadow = system({
725
- boxShadow: {
726
- property: "boxShadow",
727
- scale: "shadows"
728
- },
729
- textShadow: {
730
- property: "textShadow",
731
- scale: "shadows"
732
- }
733
- });
734
-
735
- // node_modules/@class101/styled-system__variant/dist/index.esm.js
736
- init_react_shim();
737
-
738
- // node_modules/@class101/styled-system__css/dist/index.esm.js
739
- init_react_shim();
740
- function _extends() {
741
- _extends = Object.assign || function(target) {
742
- for (var i = 1; i < arguments.length; i++) {
743
- var source = arguments[i];
744
- for (var key in source) {
745
- if (Object.prototype.hasOwnProperty.call(source, key)) {
746
- target[key] = source[key];
747
- }
748
- }
749
- }
750
- return target;
751
- };
752
- return _extends.apply(this, arguments);
753
- }
754
- var get3 = function get4(obj, key, def, p, undef) {
755
- key = key && key.split ? key.split(".") : [key];
756
- for (p = 0; p < key.length; p++) {
757
- obj = obj ? obj[key[p]] : undef;
758
- }
759
- return obj === undef ? def : obj;
760
- };
761
- var defaultBreakpoints = [40, 52, 64].map(function(n) {
762
- return n + "em";
763
- });
764
- var defaultTheme = {
765
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
766
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
767
- };
768
- var aliases = {
769
- bg: "backgroundColor",
770
- m: "margin",
771
- mt: "marginTop",
772
- mr: "marginRight",
773
- mb: "marginBottom",
774
- ml: "marginLeft",
775
- mx: "marginX",
776
- my: "marginY",
777
- p: "padding",
778
- pt: "paddingTop",
779
- pr: "paddingRight",
780
- pb: "paddingBottom",
781
- pl: "paddingLeft",
782
- px: "paddingX",
783
- py: "paddingY"
784
- };
785
- var multiples = {
786
- marginX: ["marginLeft", "marginRight"],
787
- marginY: ["marginTop", "marginBottom"],
788
- paddingX: ["paddingLeft", "paddingRight"],
789
- paddingY: ["paddingTop", "paddingBottom"],
790
- size: ["width", "height"]
791
- };
792
- var scales = {
793
- color: "colors",
794
- backgroundColor: "colors",
795
- borderColor: "colors",
796
- margin: "space",
797
- marginTop: "space",
798
- marginRight: "space",
799
- marginBottom: "space",
800
- marginLeft: "space",
801
- marginX: "space",
802
- marginY: "space",
803
- padding: "space",
804
- paddingTop: "space",
805
- paddingRight: "space",
806
- paddingBottom: "space",
807
- paddingLeft: "space",
808
- paddingX: "space",
809
- paddingY: "space",
810
- top: "space",
811
- right: "space",
812
- bottom: "space",
813
- left: "space",
814
- gridGap: "space",
815
- gridColumnGap: "space",
816
- gridRowGap: "space",
817
- gap: "space",
818
- columnGap: "space",
819
- rowGap: "space",
820
- fontFamily: "fonts",
821
- fontSize: "fontSizes",
822
- fontWeight: "fontWeights",
823
- lineHeight: "lineHeights",
824
- letterSpacing: "letterSpacings",
825
- border: "borders",
826
- borderTop: "borders",
827
- borderRight: "borders",
828
- borderBottom: "borders",
829
- borderLeft: "borders",
830
- borderWidth: "borderWidths",
831
- borderStyle: "borderStyles",
832
- borderRadius: "radii",
833
- borderTopRightRadius: "radii",
834
- borderTopLeftRadius: "radii",
835
- borderBottomRightRadius: "radii",
836
- borderBottomLeftRadius: "radii",
837
- borderTopWidth: "borderWidths",
838
- borderTopColor: "colors",
839
- borderTopStyle: "borderStyles",
840
- borderBottomWidth: "borderWidths",
841
- borderBottomColor: "colors",
842
- borderBottomStyle: "borderStyles",
843
- borderLeftWidth: "borderWidths",
844
- borderLeftColor: "colors",
845
- borderLeftStyle: "borderStyles",
846
- borderRightWidth: "borderWidths",
847
- borderRightColor: "colors",
848
- borderRightStyle: "borderStyles",
849
- outlineColor: "colors",
850
- boxShadow: "shadows",
851
- textShadow: "shadows",
852
- zIndex: "zIndices",
853
- width: "sizes",
854
- minWidth: "sizes",
855
- maxWidth: "sizes",
856
- height: "sizes",
857
- minHeight: "sizes",
858
- maxHeight: "sizes",
859
- flexBasis: "sizes",
860
- size: "sizes",
861
- fill: "colors",
862
- stroke: "colors"
863
- };
864
- var positiveOrNegative = function positiveOrNegative2(scale, value) {
865
- if (typeof value !== "number" || value >= 0) {
866
- return get3(scale, value, value);
867
- }
868
- var absolute = Math.abs(value);
869
- var n = get3(scale, absolute, absolute);
870
- if (typeof n === "string")
871
- return "-" + n;
872
- return n * -1;
873
- };
874
- var transforms = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(acc, curr) {
875
- var _extends22;
876
- return _extends({}, acc, (_extends22 = {}, _extends22[curr] = positiveOrNegative, _extends22));
877
- }, {});
878
- var responsive = function responsive2(styles) {
879
- return function(theme) {
880
- var next = {};
881
- var breakpoints = get3(theme, "breakpoints", defaultBreakpoints);
882
- var mediaQueries = [null].concat(breakpoints.map(function(n) {
883
- return "@media screen and (min-width: " + n + ")";
884
- }));
885
- for (var key in styles) {
886
- var value = typeof styles[key] === "function" ? styles[key](theme) : styles[key];
887
- if (value == null)
888
- continue;
889
- if (!Array.isArray(value)) {
890
- next[key] = value;
891
- continue;
892
- }
893
- for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {
894
- var media = mediaQueries[i];
895
- if (!media) {
896
- next[key] = value[i];
897
- continue;
898
- }
899
- next[media] = next[media] || {};
900
- if (value[i] == null)
901
- continue;
902
- next[media][key] = value[i];
903
- }
904
- }
905
- return next;
906
- };
907
- };
908
- var css = function css2(args) {
909
- return function(props2) {
910
- if (props2 === void 0) {
911
- props2 = {};
912
- }
913
- var theme = _extends({}, defaultTheme, props2.theme || props2);
914
- var result = {};
915
- var obj = typeof args === "function" ? args(theme) : args;
916
- var styles = responsive(obj)(theme);
917
- for (var key in styles) {
918
- var x = styles[key];
919
- var val = typeof x === "function" ? x(theme) : x;
920
- if (key === "variant") {
921
- var variant5 = css2(get3(theme, val))(theme);
922
- result = _extends({}, result, variant5);
923
- continue;
924
- }
925
- if (val && typeof val === "object") {
926
- result[key] = css2(val)(theme);
927
- continue;
928
- }
929
- var prop = get3(aliases, key, key);
930
- var scaleName = get3(scales, prop);
931
- var scale = get3(theme, scaleName, get3(theme, prop, {}));
932
- var transform2 = get3(transforms, prop, get3);
933
- var value = transform2(scale, val, val);
934
- if (multiples[prop]) {
935
- var dirs = multiples[prop];
936
- for (var i = 0; i < dirs.length; i++) {
937
- result[dirs[i]] = value;
938
- }
939
- } else {
940
- result[prop] = value;
941
- }
942
- }
943
- return result;
944
- };
945
- };
946
- var index_esm_default9 = css;
947
-
948
- // node_modules/@class101/styled-system__variant/dist/index.esm.js
949
- var variant = function variant2(_ref) {
950
- var _config;
951
- 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;
952
- var sx;
953
- if (Object.keys(variants).length) {
954
- sx = function sx2(value, scale2, props2) {
955
- return index_esm_default9(get(scale2, value, null))(props2.theme);
956
- };
957
- } else {
958
- sx = function sx2(value, scale2) {
959
- return get(scale2, value, null);
960
- };
961
- }
962
- sx.scale = scale || key;
963
- sx.defaults = variants;
964
- var config17 = (_config = {}, _config[prop] = sx, _config);
965
- var parser = createParser(config17);
966
- return parser;
967
- };
968
- var buttonStyle = variant({
969
- key: "buttons"
970
- });
971
- var textStyle = variant({
972
- key: "textStyles",
973
- prop: "textStyle"
974
- });
975
- var colorStyle = variant({
976
- key: "colorStyles",
977
- prop: "colors"
978
- });
979
-
980
- // node_modules/@class101/styled-system/dist/index.esm.js
981
- var width = index_esm_default.width;
982
- var height = index_esm_default.height;
983
- var minWidth = index_esm_default.minWidth;
984
- var minHeight = index_esm_default.minHeight;
985
- var maxWidth = index_esm_default.maxWidth;
986
- var maxHeight = index_esm_default.maxHeight;
987
- var size = index_esm_default.size;
988
- var verticalAlign = index_esm_default.verticalAlign;
989
- var display = index_esm_default.display;
990
- var overflow = index_esm_default.overflow;
991
- var overflowX = index_esm_default.overflowX;
992
- var overflowY = index_esm_default.overflowY;
993
- var opacity = index_esm_default2.opacity;
994
- var fontSize = index_esm_default3.fontSize;
995
- var fontFamily = index_esm_default3.fontFamily;
996
- var fontWeight = index_esm_default3.fontWeight;
997
- var lineHeight = index_esm_default3.lineHeight;
998
- var textAlign = index_esm_default3.textAlign;
999
- var fontStyle = index_esm_default3.fontStyle;
1000
- var letterSpacing = index_esm_default3.letterSpacing;
1001
- var alignItems = index_esm_default4.alignItems;
1002
- var alignContent = index_esm_default4.alignContent;
1003
- var justifyItems = index_esm_default4.justifyItems;
1004
- var justifyContent = index_esm_default4.justifyContent;
1005
- var flexWrap = index_esm_default4.flexWrap;
1006
- var flexDirection = index_esm_default4.flexDirection;
1007
- var flex = index_esm_default4.flex;
1008
- var flexGrow = index_esm_default4.flexGrow;
1009
- var flexShrink = index_esm_default4.flexShrink;
1010
- var flexBasis = index_esm_default4.flexBasis;
1011
- var justifySelf = index_esm_default4.justifySelf;
1012
- var alignSelf = index_esm_default4.alignSelf;
1013
- var order = index_esm_default4.order;
1014
- var gridGap = index_esm_default5.gridGap;
1015
- var gridColumnGap = index_esm_default5.gridColumnGap;
1016
- var gridRowGap = index_esm_default5.gridRowGap;
1017
- var gridColumn = index_esm_default5.gridColumn;
1018
- var gridRow = index_esm_default5.gridRow;
1019
- var gridAutoFlow = index_esm_default5.gridAutoFlow;
1020
- var gridAutoColumns = index_esm_default5.gridAutoColumns;
1021
- var gridAutoRows = index_esm_default5.gridAutoRows;
1022
- var gridTemplateColumns = index_esm_default5.gridTemplateColumns;
1023
- var gridTemplateRows = index_esm_default5.gridTemplateRows;
1024
- var gridTemplateAreas = index_esm_default5.gridTemplateAreas;
1025
- var gridArea = index_esm_default5.gridArea;
1026
- var borderWidth = index_esm_default6.borderWidth;
1027
- var borderStyle = index_esm_default6.borderStyle;
1028
- var borderColor = index_esm_default6.borderColor;
1029
- var borderTop = index_esm_default6.borderTop;
1030
- var borderRight = index_esm_default6.borderRight;
1031
- var borderBottom = index_esm_default6.borderBottom;
1032
- var borderLeft = index_esm_default6.borderLeft;
1033
- var borderRadius = index_esm_default6.borderRadius;
1034
- var backgroundImage = index_esm_default7.backgroundImage;
1035
- var backgroundSize = index_esm_default7.backgroundSize;
1036
- var backgroundPosition = index_esm_default7.backgroundPosition;
1037
- var backgroundRepeat = index_esm_default7.backgroundRepeat;
1038
- var zIndex = index_esm_default8.zIndex;
1039
- var top = index_esm_default8.top;
1040
- var right = index_esm_default8.right;
1041
- var bottom = index_esm_default8.bottom;
1042
- var left = index_esm_default8.left;
1043
-
1044
- // node_modules/@styled-system/should-forward-prop/dist/index.esm.js
1045
- init_react_shim();
1046
-
1047
- // node_modules/@emotion/memoize/dist/emotion-memoize.browser.esm.js
1048
- init_react_shim();
1049
- function memoize(fn) {
1050
- var cache = Object.create(null);
1051
- return function(arg) {
1052
- if (cache[arg] === void 0)
1053
- cache[arg] = fn(arg);
1054
- return cache[arg];
1055
- };
1056
- }
1057
- var emotion_memoize_browser_esm_default = memoize;
1058
-
1059
- // node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js
1060
- init_react_shim();
1061
-
1062
- // node_modules/@emotion/is-prop-valid/node_modules/@emotion/memoize/dist/memoize.browser.esm.js
1063
- init_react_shim();
1064
- function memoize2(fn) {
1065
- var cache = {};
1066
- return function(arg) {
1067
- if (cache[arg] === void 0)
1068
- cache[arg] = fn(arg);
1069
- return cache[arg];
1070
- };
1071
- }
1072
- var memoize_browser_esm_default = memoize2;
1073
-
1074
- // node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js
1075
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
1076
- var index = memoize_browser_esm_default(function(prop) {
1077
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
1078
- });
1079
- var is_prop_valid_browser_esm_default = index;
1080
-
1081
- // node_modules/styled-system/dist/index.esm.js
1082
- init_react_shim();
1083
-
1084
- // node_modules/@styled-system/core/dist/index.esm.js
1085
- init_react_shim();
1086
- var import_object_assign2 = __toModule(require_object_assign());
1087
- var merge3 = function merge4(a, b) {
1088
- var result = (0, import_object_assign2.default)({}, a, b);
1089
- for (var key in a) {
1090
- var _assign;
1091
- if (!a[key] || typeof b[key] !== "object")
1092
- continue;
1093
- (0, import_object_assign2.default)(result, (_assign = {}, _assign[key] = (0, import_object_assign2.default)(a[key], b[key]), _assign));
1094
- }
1095
- return result;
1096
- };
1097
- var sort3 = function sort4(obj) {
1098
- var next = {};
1099
- Object.keys(obj).sort(function(a, b) {
1100
- return a.localeCompare(b, void 0, {
1101
- numeric: true,
1102
- sensitivity: "base"
1103
- });
1104
- }).forEach(function(key) {
1105
- next[key] = obj[key];
1106
- });
1107
- return next;
1108
- };
1109
- var defaults6 = {
1110
- breakpoints: [40, 52, 64].map(function(n) {
1111
- return n + "em";
1112
- })
1113
- };
1114
- var createMediaQuery3 = function createMediaQuery4(n) {
1115
- return "@media screen and (min-width: " + n + ")";
1116
- };
1117
- var getValue3 = function getValue4(n, scale) {
1118
- return get5(scale, n, n);
1119
- };
1120
- var get5 = function get6(obj, key, def, p, undef) {
1121
- key = key && key.split ? key.split(".") : [key];
1122
- for (p = 0; p < key.length; p++) {
1123
- obj = obj ? obj[key[p]] : undef;
1124
- }
1125
- return obj === undef ? def : obj;
1126
- };
1127
- var createParser3 = function createParser4(config17) {
1128
- var cache = {};
1129
- var parse = function parse2(props2) {
1130
- var styles = {};
1131
- var shouldSort = false;
1132
- var isCacheDisabled = props2.theme && props2.theme.disableStyledSystemCache;
1133
- for (var key in props2) {
1134
- if (!config17[key])
1135
- continue;
1136
- var sx = config17[key];
1137
- var raw = props2[key];
1138
- var scale = get5(props2.theme, sx.scale, sx.defaults);
1139
- if (typeof raw === "object") {
1140
- cache.breakpoints = !isCacheDisabled && cache.breakpoints || get5(props2.theme, "breakpoints", defaults6.breakpoints);
1141
- if (Array.isArray(raw)) {
1142
- cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery3));
1143
- styles = merge3(styles, parseResponsiveStyle3(cache.media, sx, scale, raw, props2));
1144
- continue;
1145
- }
1146
- if (raw !== null) {
1147
- styles = merge3(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props2));
1148
- shouldSort = true;
1149
- }
1150
- continue;
1151
- }
1152
- (0, import_object_assign2.default)(styles, sx(raw, scale, props2));
1153
- }
1154
- if (shouldSort) {
1155
- styles = sort3(styles);
1156
- }
1157
- return styles;
1158
- };
1159
- parse.config = config17;
1160
- parse.propNames = Object.keys(config17);
1161
- parse.cache = cache;
1162
- var keys = Object.keys(config17).filter(function(k) {
1163
- return k !== "config";
1164
- });
1165
- if (keys.length > 1) {
1166
- keys.forEach(function(key) {
1167
- var _createParser;
1168
- parse[key] = createParser4((_createParser = {}, _createParser[key] = config17[key], _createParser));
1169
- });
1170
- }
1171
- return parse;
1172
- };
1173
- var parseResponsiveStyle3 = function parseResponsiveStyle4(mediaQueries, sx, scale, raw, _props) {
1174
- var styles = {};
1175
- raw.slice(0, mediaQueries.length).forEach(function(value, i) {
1176
- var media = mediaQueries[i];
1177
- var style = sx(value, scale, _props);
1178
- if (!media) {
1179
- (0, import_object_assign2.default)(styles, style);
1180
- } else {
1181
- var _assign2;
1182
- (0, import_object_assign2.default)(styles, (_assign2 = {}, _assign2[media] = (0, import_object_assign2.default)({}, styles[media], style), _assign2));
1183
- }
1184
- });
1185
- return styles;
1186
- };
1187
- var parseResponsiveObject = function parseResponsiveObject2(breakpoints, sx, scale, raw, _props) {
1188
- var styles = {};
1189
- for (var key in raw) {
1190
- var breakpoint = breakpoints[key];
1191
- var value = raw[key];
1192
- var style = sx(value, scale, _props);
1193
- if (!breakpoint) {
1194
- (0, import_object_assign2.default)(styles, style);
1195
- } else {
1196
- var _assign3;
1197
- var media = createMediaQuery3(breakpoint);
1198
- (0, import_object_assign2.default)(styles, (_assign3 = {}, _assign3[media] = (0, import_object_assign2.default)({}, styles[media], style), _assign3));
1199
- }
1200
- }
1201
- return styles;
1202
- };
1203
- var createStyleFunction3 = function createStyleFunction4(_ref) {
1204
- var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform2 = _ref$transform === void 0 ? getValue3 : _ref$transform, defaultScale = _ref.defaultScale;
1205
- properties = properties || [property];
1206
- var sx = function sx2(value, scale2, _props) {
1207
- var result = {};
1208
- var n = transform2(value, scale2, _props);
1209
- if (n === null)
1210
- return;
1211
- properties.forEach(function(prop) {
1212
- result[prop] = n;
1213
- });
1214
- return result;
1215
- };
1216
- sx.scale = scale;
1217
- sx.defaults = defaultScale;
1218
- return sx;
1219
- };
1220
- var system3 = function system4(args) {
1221
- if (args === void 0) {
1222
- args = {};
1223
- }
1224
- var config17 = {};
1225
- Object.keys(args).forEach(function(key) {
1226
- var conf = args[key];
1227
- if (conf === true) {
1228
- config17[key] = createStyleFunction3({
1229
- property: key,
1230
- scale: key
1231
- });
1232
- return;
1233
- }
1234
- if (typeof conf === "function") {
1235
- config17[key] = conf;
1236
- return;
1237
- }
1238
- config17[key] = createStyleFunction3(conf);
1239
- });
1240
- var parser = createParser3(config17);
1241
- return parser;
1242
- };
1243
- var compose3 = function compose4() {
1244
- var config17 = {};
1245
- for (var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++) {
1246
- parsers[_key] = arguments[_key];
1247
- }
1248
- parsers.forEach(function(parser2) {
1249
- if (!parser2 || !parser2.config)
1250
- return;
1251
- (0, import_object_assign2.default)(config17, parser2.config);
1252
- });
1253
- var parser = createParser3(config17);
1254
- return parser;
1255
- };
1256
-
1257
- // node_modules/@styled-system/layout/dist/index.esm.js
1258
- init_react_shim();
1259
- var isNumber5 = function isNumber6(n) {
1260
- return typeof n === "number" && !isNaN(n);
1261
- };
1262
- var getWidth3 = function getWidth4(n, scale) {
1263
- return get5(scale, n, !isNumber5(n) || n > 1 ? n : n * 100 + "%");
1264
- };
1265
- var config9 = {
1266
- width: {
1267
- property: "width",
1268
- scale: "sizes",
1269
- transform: getWidth3
1270
- },
1271
- height: {
1272
- property: "height",
1273
- scale: "sizes"
1274
- },
1275
- minWidth: {
1276
- property: "minWidth",
1277
- scale: "sizes"
1278
- },
1279
- minHeight: {
1280
- property: "minHeight",
1281
- scale: "sizes"
1282
- },
1283
- maxWidth: {
1284
- property: "maxWidth",
1285
- scale: "sizes"
1286
- },
1287
- maxHeight: {
1288
- property: "maxHeight",
1289
- scale: "sizes"
1290
- },
1291
- size: {
1292
- properties: ["width", "height"],
1293
- scale: "sizes"
1294
- },
1295
- overflow: true,
1296
- overflowX: true,
1297
- overflowY: true,
1298
- display: true,
1299
- verticalAlign: true
1300
- };
1301
- var layout2 = system3(config9);
1302
- var index_esm_default11 = layout2;
1303
-
1304
- // node_modules/@styled-system/color/dist/index.esm.js
1305
- init_react_shim();
1306
- var config10 = {
1307
- color: {
1308
- property: "color",
1309
- scale: "colors"
1310
- },
1311
- backgroundColor: {
1312
- property: "backgroundColor",
1313
- scale: "colors"
1314
- },
1315
- opacity: true
1316
- };
1317
- config10.bg = config10.backgroundColor;
1318
- var color2 = system3(config10);
1319
- var index_esm_default12 = color2;
1320
-
1321
- // node_modules/@styled-system/typography/dist/index.esm.js
1322
- init_react_shim();
1323
- var defaults7 = {
1324
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
1325
- };
1326
- var config11 = {
1327
- fontFamily: {
1328
- property: "fontFamily",
1329
- scale: "fonts"
1330
- },
1331
- fontSize: {
1332
- property: "fontSize",
1333
- scale: "fontSizes",
1334
- defaultScale: defaults7.fontSizes
1335
- },
1336
- fontWeight: {
1337
- property: "fontWeight",
1338
- scale: "fontWeights"
1339
- },
1340
- lineHeight: {
1341
- property: "lineHeight",
1342
- scale: "lineHeights"
1343
- },
1344
- letterSpacing: {
1345
- property: "letterSpacing",
1346
- scale: "letterSpacings"
1347
- },
1348
- textAlign: true,
1349
- fontStyle: true
1350
- };
1351
- var typography2 = system3(config11);
1352
- var index_esm_default13 = typography2;
1353
-
1354
- // node_modules/@styled-system/flexbox/dist/index.esm.js
1355
- init_react_shim();
1356
- var config12 = {
1357
- alignItems: true,
1358
- alignContent: true,
1359
- justifyItems: true,
1360
- justifyContent: true,
1361
- flexWrap: true,
1362
- flexDirection: true,
1363
- flex: true,
1364
- flexGrow: true,
1365
- flexShrink: true,
1366
- flexBasis: true,
1367
- justifySelf: true,
1368
- alignSelf: true,
1369
- order: true
1370
- };
1371
- var flexbox2 = system3(config12);
1372
- var index_esm_default14 = flexbox2;
1373
-
1374
- // node_modules/@styled-system/grid/dist/index.esm.js
1375
- init_react_shim();
1376
- var defaults8 = {
1377
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
1378
- };
1379
- var config13 = {
1380
- gridGap: {
1381
- property: "gridGap",
1382
- scale: "space",
1383
- defaultScale: defaults8.space
1384
- },
1385
- gridColumnGap: {
1386
- property: "gridColumnGap",
1387
- scale: "space",
1388
- defaultScale: defaults8.space
1389
- },
1390
- gridRowGap: {
1391
- property: "gridRowGap",
1392
- scale: "space",
1393
- defaultScale: defaults8.space
1394
- },
1395
- gridColumn: true,
1396
- gridRow: true,
1397
- gridAutoFlow: true,
1398
- gridAutoColumns: true,
1399
- gridAutoRows: true,
1400
- gridTemplateColumns: true,
1401
- gridTemplateRows: true,
1402
- gridTemplateAreas: true,
1403
- gridArea: true
1404
- };
1405
- var grid2 = system3(config13);
1406
- var index_esm_default15 = grid2;
1407
-
1408
- // node_modules/@styled-system/border/dist/index.esm.js
1409
- init_react_shim();
1410
- var config14 = {
1411
- border: {
1412
- property: "border",
1413
- scale: "borders"
1414
- },
1415
- borderWidth: {
1416
- property: "borderWidth",
1417
- scale: "borderWidths"
1418
- },
1419
- borderStyle: {
1420
- property: "borderStyle",
1421
- scale: "borderStyles"
1422
- },
1423
- borderColor: {
1424
- property: "borderColor",
1425
- scale: "colors"
1426
- },
1427
- borderRadius: {
1428
- property: "borderRadius",
1429
- scale: "radii"
1430
- },
1431
- borderTop: {
1432
- property: "borderTop",
1433
- scale: "borders"
1434
- },
1435
- borderTopLeftRadius: {
1436
- property: "borderTopLeftRadius",
1437
- scale: "radii"
1438
- },
1439
- borderTopRightRadius: {
1440
- property: "borderTopRightRadius",
1441
- scale: "radii"
1442
- },
1443
- borderRight: {
1444
- property: "borderRight",
1445
- scale: "borders"
1446
- },
1447
- borderBottom: {
1448
- property: "borderBottom",
1449
- scale: "borders"
1450
- },
1451
- borderBottomLeftRadius: {
1452
- property: "borderBottomLeftRadius",
1453
- scale: "radii"
1454
- },
1455
- borderBottomRightRadius: {
1456
- property: "borderBottomRightRadius",
1457
- scale: "radii"
1458
- },
1459
- borderLeft: {
1460
- property: "borderLeft",
1461
- scale: "borders"
1462
- },
1463
- borderX: {
1464
- properties: ["borderLeft", "borderRight"],
1465
- scale: "borders"
1466
- },
1467
- borderY: {
1468
- properties: ["borderTop", "borderBottom"],
1469
- scale: "borders"
1470
- }
1471
- };
1472
- config14.borderTopWidth = {
1473
- property: "borderTopWidth",
1474
- scale: "borderWidths"
1475
- };
1476
- config14.borderTopColor = {
1477
- property: "borderTopColor",
1478
- scale: "colors"
1479
- };
1480
- config14.borderTopStyle = {
1481
- property: "borderTopStyle",
1482
- scale: "borderStyles"
1483
- };
1484
- config14.borderTopLeftRadius = {
1485
- property: "borderTopLeftRadius",
1486
- scale: "radii"
1487
- };
1488
- config14.borderTopRightRadius = {
1489
- property: "borderTopRightRadius",
1490
- scale: "radii"
1491
- };
1492
- config14.borderBottomWidth = {
1493
- property: "borderBottomWidth",
1494
- scale: "borderWidths"
1495
- };
1496
- config14.borderBottomColor = {
1497
- property: "borderBottomColor",
1498
- scale: "colors"
1499
- };
1500
- config14.borderBottomStyle = {
1501
- property: "borderBottomStyle",
1502
- scale: "borderStyles"
1503
- };
1504
- config14.borderBottomLeftRadius = {
1505
- property: "borderBottomLeftRadius",
1506
- scale: "radii"
1507
- };
1508
- config14.borderBottomRightRadius = {
1509
- property: "borderBottomRightRadius",
1510
- scale: "radii"
1511
- };
1512
- config14.borderLeftWidth = {
1513
- property: "borderLeftWidth",
1514
- scale: "borderWidths"
1515
- };
1516
- config14.borderLeftColor = {
1517
- property: "borderLeftColor",
1518
- scale: "colors"
1519
- };
1520
- config14.borderLeftStyle = {
1521
- property: "borderLeftStyle",
1522
- scale: "borderStyles"
1523
- };
1524
- config14.borderRightWidth = {
1525
- property: "borderRightWidth",
1526
- scale: "borderWidths"
1527
- };
1528
- config14.borderRightColor = {
1529
- property: "borderRightColor",
1530
- scale: "colors"
1531
- };
1532
- config14.borderRightStyle = {
1533
- property: "borderRightStyle",
1534
- scale: "borderStyles"
1535
- };
1536
- var border2 = system3(config14);
1537
- var index_esm_default16 = border2;
1538
-
1539
- // node_modules/@styled-system/background/dist/index.esm.js
1540
- init_react_shim();
1541
- var config15 = {
1542
- background: true,
1543
- backgroundImage: true,
1544
- backgroundSize: true,
1545
- backgroundPosition: true,
1546
- backgroundRepeat: true
1547
- };
1548
- config15.bgImage = config15.backgroundImage;
1549
- config15.bgSize = config15.backgroundSize;
1550
- config15.bgPosition = config15.backgroundPosition;
1551
- config15.bgRepeat = config15.backgroundRepeat;
1552
- var background2 = system3(config15);
1553
- var index_esm_default17 = background2;
1554
-
1555
- // node_modules/@styled-system/position/dist/index.esm.js
1556
- init_react_shim();
1557
- var defaults9 = {
1558
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
1559
- };
1560
- var config16 = {
1561
- position: true,
1562
- zIndex: {
1563
- property: "zIndex",
1564
- scale: "zIndices"
1565
- },
1566
- top: {
1567
- property: "top",
1568
- scale: "space",
1569
- defaultScale: defaults9.space
1570
- },
1571
- right: {
1572
- property: "right",
1573
- scale: "space",
1574
- defaultScale: defaults9.space
1575
- },
1576
- bottom: {
1577
- property: "bottom",
1578
- scale: "space",
1579
- defaultScale: defaults9.space
1580
- },
1581
- left: {
1582
- property: "left",
1583
- scale: "space",
1584
- defaultScale: defaults9.space
1585
- }
1586
- };
1587
- var position2 = system3(config16);
1588
- var index_esm_default18 = position2;
1589
-
1590
- // node_modules/@styled-system/space/dist/index.esm.js
1591
- init_react_shim();
1592
- var defaults10 = {
1593
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
1594
- };
1595
- var isNumber7 = function isNumber8(n) {
1596
- return typeof n === "number" && !isNaN(n);
1597
- };
1598
- var getMargin3 = function getMargin4(n, scale) {
1599
- if (!isNumber7(n)) {
1600
- return get5(scale, n, n);
1601
- }
1602
- var isNegative = n < 0;
1603
- var absolute = Math.abs(n);
1604
- var value = get5(scale, absolute, absolute);
1605
- if (!isNumber7(value)) {
1606
- return isNegative ? "-" + value : value;
1607
- }
1608
- return value * (isNegative ? -1 : 1);
1609
- };
1610
- var configs2 = {};
1611
- configs2.margin = {
1612
- margin: {
1613
- property: "margin",
1614
- scale: "space",
1615
- transform: getMargin3,
1616
- defaultScale: defaults10.space
1617
- },
1618
- marginTop: {
1619
- property: "marginTop",
1620
- scale: "space",
1621
- transform: getMargin3,
1622
- defaultScale: defaults10.space
1623
- },
1624
- marginRight: {
1625
- property: "marginRight",
1626
- scale: "space",
1627
- transform: getMargin3,
1628
- defaultScale: defaults10.space
1629
- },
1630
- marginBottom: {
1631
- property: "marginBottom",
1632
- scale: "space",
1633
- transform: getMargin3,
1634
- defaultScale: defaults10.space
1635
- },
1636
- marginLeft: {
1637
- property: "marginLeft",
1638
- scale: "space",
1639
- transform: getMargin3,
1640
- defaultScale: defaults10.space
1641
- },
1642
- marginX: {
1643
- properties: ["marginLeft", "marginRight"],
1644
- scale: "space",
1645
- transform: getMargin3,
1646
- defaultScale: defaults10.space
1647
- },
1648
- marginY: {
1649
- properties: ["marginTop", "marginBottom"],
1650
- scale: "space",
1651
- transform: getMargin3,
1652
- defaultScale: defaults10.space
1653
- }
1654
- };
1655
- configs2.margin.m = configs2.margin.margin;
1656
- configs2.margin.mt = configs2.margin.marginTop;
1657
- configs2.margin.mr = configs2.margin.marginRight;
1658
- configs2.margin.mb = configs2.margin.marginBottom;
1659
- configs2.margin.ml = configs2.margin.marginLeft;
1660
- configs2.margin.mx = configs2.margin.marginX;
1661
- configs2.margin.my = configs2.margin.marginY;
1662
- configs2.padding = {
1663
- padding: {
1664
- property: "padding",
1665
- scale: "space",
1666
- defaultScale: defaults10.space
1667
- },
1668
- paddingTop: {
1669
- property: "paddingTop",
1670
- scale: "space",
1671
- defaultScale: defaults10.space
1672
- },
1673
- paddingRight: {
1674
- property: "paddingRight",
1675
- scale: "space",
1676
- defaultScale: defaults10.space
1677
- },
1678
- paddingBottom: {
1679
- property: "paddingBottom",
1680
- scale: "space",
1681
- defaultScale: defaults10.space
1682
- },
1683
- paddingLeft: {
1684
- property: "paddingLeft",
1685
- scale: "space",
1686
- defaultScale: defaults10.space
1687
- },
1688
- paddingX: {
1689
- properties: ["paddingLeft", "paddingRight"],
1690
- scale: "space",
1691
- defaultScale: defaults10.space
1692
- },
1693
- paddingY: {
1694
- properties: ["paddingTop", "paddingBottom"],
1695
- scale: "space",
1696
- defaultScale: defaults10.space
1697
- }
1698
- };
1699
- configs2.padding.p = configs2.padding.padding;
1700
- configs2.padding.pt = configs2.padding.paddingTop;
1701
- configs2.padding.pr = configs2.padding.paddingRight;
1702
- configs2.padding.pb = configs2.padding.paddingBottom;
1703
- configs2.padding.pl = configs2.padding.paddingLeft;
1704
- configs2.padding.px = configs2.padding.paddingX;
1705
- configs2.padding.py = configs2.padding.paddingY;
1706
- var margin2 = system3(configs2.margin);
1707
- var padding2 = system3(configs2.padding);
1708
- var space2 = compose3(margin2, padding2);
1709
-
1710
- // node_modules/@styled-system/shadow/dist/index.esm.js
1711
- init_react_shim();
1712
- var shadow2 = system3({
1713
- boxShadow: {
1714
- property: "boxShadow",
1715
- scale: "shadows"
1716
- },
1717
- textShadow: {
1718
- property: "textShadow",
1719
- scale: "shadows"
1720
- }
1721
- });
1722
-
1723
- // node_modules/@styled-system/variant/dist/index.esm.js
1724
- init_react_shim();
1725
-
1726
- // node_modules/@styled-system/css/dist/index.esm.js
1727
- init_react_shim();
1728
- function _extends2() {
1729
- _extends2 = Object.assign || function(target) {
1730
- for (var i = 1; i < arguments.length; i++) {
1731
- var source = arguments[i];
1732
- for (var key in source) {
1733
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1734
- target[key] = source[key];
1735
- }
1736
- }
1737
- }
1738
- return target;
1739
- };
1740
- return _extends2.apply(this, arguments);
1741
- }
1742
- var get7 = function get8(obj, key, def, p, undef) {
1743
- key = key && key.split ? key.split(".") : [key];
1744
- for (p = 0; p < key.length; p++) {
1745
- obj = obj ? obj[key[p]] : undef;
1746
- }
1747
- return obj === undef ? def : obj;
1748
- };
1749
- var defaultBreakpoints2 = [40, 52, 64].map(function(n) {
1750
- return n + "em";
1751
- });
1752
- var defaultTheme2 = {
1753
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
1754
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
1755
- };
1756
- var aliases2 = {
1757
- bg: "backgroundColor",
1758
- m: "margin",
1759
- mt: "marginTop",
1760
- mr: "marginRight",
1761
- mb: "marginBottom",
1762
- ml: "marginLeft",
1763
- mx: "marginX",
1764
- my: "marginY",
1765
- p: "padding",
1766
- pt: "paddingTop",
1767
- pr: "paddingRight",
1768
- pb: "paddingBottom",
1769
- pl: "paddingLeft",
1770
- px: "paddingX",
1771
- py: "paddingY"
1772
- };
1773
- var multiples2 = {
1774
- marginX: ["marginLeft", "marginRight"],
1775
- marginY: ["marginTop", "marginBottom"],
1776
- paddingX: ["paddingLeft", "paddingRight"],
1777
- paddingY: ["paddingTop", "paddingBottom"],
1778
- size: ["width", "height"]
1779
- };
1780
- var scales2 = {
1781
- color: "colors",
1782
- backgroundColor: "colors",
1783
- borderColor: "colors",
1784
- margin: "space",
1785
- marginTop: "space",
1786
- marginRight: "space",
1787
- marginBottom: "space",
1788
- marginLeft: "space",
1789
- marginX: "space",
1790
- marginY: "space",
1791
- padding: "space",
1792
- paddingTop: "space",
1793
- paddingRight: "space",
1794
- paddingBottom: "space",
1795
- paddingLeft: "space",
1796
- paddingX: "space",
1797
- paddingY: "space",
1798
- top: "space",
1799
- right: "space",
1800
- bottom: "space",
1801
- left: "space",
1802
- gridGap: "space",
1803
- gridColumnGap: "space",
1804
- gridRowGap: "space",
1805
- gap: "space",
1806
- columnGap: "space",
1807
- rowGap: "space",
1808
- fontFamily: "fonts",
1809
- fontSize: "fontSizes",
1810
- fontWeight: "fontWeights",
1811
- lineHeight: "lineHeights",
1812
- letterSpacing: "letterSpacings",
1813
- border: "borders",
1814
- borderTop: "borders",
1815
- borderRight: "borders",
1816
- borderBottom: "borders",
1817
- borderLeft: "borders",
1818
- borderWidth: "borderWidths",
1819
- borderStyle: "borderStyles",
1820
- borderRadius: "radii",
1821
- borderTopRightRadius: "radii",
1822
- borderTopLeftRadius: "radii",
1823
- borderBottomRightRadius: "radii",
1824
- borderBottomLeftRadius: "radii",
1825
- borderTopWidth: "borderWidths",
1826
- borderTopColor: "colors",
1827
- borderTopStyle: "borderStyles",
1828
- borderBottomWidth: "borderWidths",
1829
- borderBottomColor: "colors",
1830
- borderBottomStyle: "borderStyles",
1831
- borderLeftWidth: "borderWidths",
1832
- borderLeftColor: "colors",
1833
- borderLeftStyle: "borderStyles",
1834
- borderRightWidth: "borderWidths",
1835
- borderRightColor: "colors",
1836
- borderRightStyle: "borderStyles",
1837
- outlineColor: "colors",
1838
- boxShadow: "shadows",
1839
- textShadow: "shadows",
1840
- zIndex: "zIndices",
1841
- width: "sizes",
1842
- minWidth: "sizes",
1843
- maxWidth: "sizes",
1844
- height: "sizes",
1845
- minHeight: "sizes",
1846
- maxHeight: "sizes",
1847
- flexBasis: "sizes",
1848
- size: "sizes",
1849
- fill: "colors",
1850
- stroke: "colors"
1851
- };
1852
- var positiveOrNegative3 = function positiveOrNegative4(scale, value) {
1853
- if (typeof value !== "number" || value >= 0) {
1854
- return get7(scale, value, value);
1855
- }
1856
- var absolute = Math.abs(value);
1857
- var n = get7(scale, absolute, absolute);
1858
- if (typeof n === "string")
1859
- return "-" + n;
1860
- return n * -1;
1861
- };
1862
- var transforms2 = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(acc, curr) {
1863
- var _extends22;
1864
- return _extends2({}, acc, (_extends22 = {}, _extends22[curr] = positiveOrNegative3, _extends22));
1865
- }, {});
1866
- var responsive3 = function responsive4(styles) {
1867
- return function(theme) {
1868
- var next = {};
1869
- var breakpoints = get7(theme, "breakpoints", defaultBreakpoints2);
1870
- var mediaQueries = [null].concat(breakpoints.map(function(n) {
1871
- return "@media screen and (min-width: " + n + ")";
1872
- }));
1873
- for (var key in styles) {
1874
- var value = typeof styles[key] === "function" ? styles[key](theme) : styles[key];
1875
- if (value == null)
1876
- continue;
1877
- if (!Array.isArray(value)) {
1878
- next[key] = value;
1879
- continue;
1880
- }
1881
- for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {
1882
- var media = mediaQueries[i];
1883
- if (!media) {
1884
- next[key] = value[i];
1885
- continue;
1886
- }
1887
- next[media] = next[media] || {};
1888
- if (value[i] == null)
1889
- continue;
1890
- next[media][key] = value[i];
1891
- }
1892
- }
1893
- return next;
1894
- };
1895
- };
1896
- var css3 = function css4(args) {
1897
- return function(props2) {
1898
- if (props2 === void 0) {
1899
- props2 = {};
1900
- }
1901
- var theme = _extends2({}, defaultTheme2, {}, props2.theme || props2);
1902
- var result = {};
1903
- var obj = typeof args === "function" ? args(theme) : args;
1904
- var styles = responsive3(obj)(theme);
1905
- for (var key in styles) {
1906
- var x = styles[key];
1907
- var val = typeof x === "function" ? x(theme) : x;
1908
- if (key === "variant") {
1909
- var variant5 = css4(get7(theme, val))(theme);
1910
- result = _extends2({}, result, {}, variant5);
1911
- continue;
1912
- }
1913
- if (val && typeof val === "object") {
1914
- result[key] = css4(val)(theme);
1915
- continue;
1916
- }
1917
- var prop = get7(aliases2, key, key);
1918
- var scaleName = get7(scales2, prop);
1919
- var scale = get7(theme, scaleName, get7(theme, prop, {}));
1920
- var transform2 = get7(transforms2, prop, get7);
1921
- var value = transform2(scale, val, val);
1922
- if (multiples2[prop]) {
1923
- var dirs = multiples2[prop];
1924
- for (var i = 0; i < dirs.length; i++) {
1925
- result[dirs[i]] = value;
1926
- }
1927
- } else {
1928
- result[prop] = value;
1929
- }
1930
- }
1931
- return result;
1932
- };
1933
- };
1934
- var index_esm_default19 = css3;
1935
-
1936
- // node_modules/@styled-system/variant/dist/index.esm.js
1937
- var variant3 = function variant4(_ref) {
1938
- var _config;
1939
- 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;
1940
- var sx;
1941
- if (Object.keys(variants).length) {
1942
- sx = function sx2(value, scale2, props2) {
1943
- return index_esm_default19(get5(scale2, value, null))(props2.theme);
1944
- };
1945
- } else {
1946
- sx = function sx2(value, scale2) {
1947
- return get5(scale2, value, null);
1948
- };
1949
- }
1950
- sx.scale = scale || key;
1951
- sx.defaults = variants;
1952
- var config17 = (_config = {}, _config[prop] = sx, _config);
1953
- var parser = createParser3(config17);
1954
- return parser;
1955
- };
1956
- var buttonStyle2 = variant3({
1957
- key: "buttons"
1958
- });
1959
- var textStyle2 = variant3({
1960
- key: "textStyles",
1961
- prop: "textStyle"
1962
- });
1963
- var colorStyle2 = variant3({
1964
- key: "colorStyles",
1965
- prop: "colors"
1966
- });
1967
-
1968
- // node_modules/styled-system/dist/index.esm.js
1969
- var width2 = index_esm_default11.width;
1970
- var height2 = index_esm_default11.height;
1971
- var minWidth2 = index_esm_default11.minWidth;
1972
- var minHeight2 = index_esm_default11.minHeight;
1973
- var maxWidth2 = index_esm_default11.maxWidth;
1974
- var maxHeight2 = index_esm_default11.maxHeight;
1975
- var size2 = index_esm_default11.size;
1976
- var verticalAlign2 = index_esm_default11.verticalAlign;
1977
- var display2 = index_esm_default11.display;
1978
- var overflow2 = index_esm_default11.overflow;
1979
- var overflowX2 = index_esm_default11.overflowX;
1980
- var overflowY2 = index_esm_default11.overflowY;
1981
- var opacity2 = index_esm_default12.opacity;
1982
- var fontSize2 = index_esm_default13.fontSize;
1983
- var fontFamily2 = index_esm_default13.fontFamily;
1984
- var fontWeight2 = index_esm_default13.fontWeight;
1985
- var lineHeight2 = index_esm_default13.lineHeight;
1986
- var textAlign2 = index_esm_default13.textAlign;
1987
- var fontStyle2 = index_esm_default13.fontStyle;
1988
- var letterSpacing2 = index_esm_default13.letterSpacing;
1989
- var alignItems2 = index_esm_default14.alignItems;
1990
- var alignContent2 = index_esm_default14.alignContent;
1991
- var justifyItems2 = index_esm_default14.justifyItems;
1992
- var justifyContent2 = index_esm_default14.justifyContent;
1993
- var flexWrap2 = index_esm_default14.flexWrap;
1994
- var flexDirection2 = index_esm_default14.flexDirection;
1995
- var flex2 = index_esm_default14.flex;
1996
- var flexGrow2 = index_esm_default14.flexGrow;
1997
- var flexShrink2 = index_esm_default14.flexShrink;
1998
- var flexBasis2 = index_esm_default14.flexBasis;
1999
- var justifySelf2 = index_esm_default14.justifySelf;
2000
- var alignSelf2 = index_esm_default14.alignSelf;
2001
- var order2 = index_esm_default14.order;
2002
- var gridGap2 = index_esm_default15.gridGap;
2003
- var gridColumnGap2 = index_esm_default15.gridColumnGap;
2004
- var gridRowGap2 = index_esm_default15.gridRowGap;
2005
- var gridColumn2 = index_esm_default15.gridColumn;
2006
- var gridRow2 = index_esm_default15.gridRow;
2007
- var gridAutoFlow2 = index_esm_default15.gridAutoFlow;
2008
- var gridAutoColumns2 = index_esm_default15.gridAutoColumns;
2009
- var gridAutoRows2 = index_esm_default15.gridAutoRows;
2010
- var gridTemplateColumns2 = index_esm_default15.gridTemplateColumns;
2011
- var gridTemplateRows2 = index_esm_default15.gridTemplateRows;
2012
- var gridTemplateAreas2 = index_esm_default15.gridTemplateAreas;
2013
- var gridArea2 = index_esm_default15.gridArea;
2014
- var borderWidth2 = index_esm_default16.borderWidth;
2015
- var borderStyle2 = index_esm_default16.borderStyle;
2016
- var borderColor2 = index_esm_default16.borderColor;
2017
- var borderTop2 = index_esm_default16.borderTop;
2018
- var borderRight2 = index_esm_default16.borderRight;
2019
- var borderBottom2 = index_esm_default16.borderBottom;
2020
- var borderLeft2 = index_esm_default16.borderLeft;
2021
- var borderRadius2 = index_esm_default16.borderRadius;
2022
- var backgroundImage2 = index_esm_default17.backgroundImage;
2023
- var backgroundSize2 = index_esm_default17.backgroundSize;
2024
- var backgroundPosition2 = index_esm_default17.backgroundPosition;
2025
- var backgroundRepeat2 = index_esm_default17.backgroundRepeat;
2026
- var zIndex2 = index_esm_default18.zIndex;
2027
- var top2 = index_esm_default18.top;
2028
- var right2 = index_esm_default18.right;
2029
- var bottom2 = index_esm_default18.bottom;
2030
- var left2 = index_esm_default18.left;
2031
-
2032
- // node_modules/@styled-system/should-forward-prop/dist/index.esm.js
2033
- var all = compose3(space2, typography2, color2, layout2, flexbox2, border2, background2, position2, grid2, shadow2, buttonStyle2, textStyle2, colorStyle2);
2034
- var props = all.propNames;
2035
- var createShouldForwardProp = function createShouldForwardProp2(props2) {
2036
- var regex = new RegExp("^(" + props2.join("|") + ")$");
2037
- return emotion_memoize_browser_esm_default(function(prop) {
2038
- return is_prop_valid_browser_esm_default(prop) && !regex.test(prop);
2039
- });
2040
- };
2041
- var index_esm_default21 = createShouldForwardProp(props);
2042
3
 
2043
4
  // libs/shared/ui-system/src/core/props/index.ts
5
+ import {compose} from "https://jspm.dev/@class101/styled-system@5.3.1";
6
+ import {createShouldForwardProp} from "https://jspm.dev/@styled-system/should-forward-prop@5.1.5";
2044
7
  import {action} from "./action.js";
2045
8
  import {animator} from "./animator.js";
2046
- import {background as background3} from "./background.js";
2047
- import {border as border3} from "./border.js";
2048
- import {color as color3} from "./color.js";
2049
- import {flexbox as flexbox3} from "./flexbox.js";
9
+ import {background} from "./background.js";
10
+ import {border} from "./border.js";
11
+ import {color} from "./color.js";
12
+ import {flexbox} from "./flexbox.js";
2050
13
  import {image} from "./image.js";
2051
14
  import {video} from "./video.js";
2052
- import {layout as layout3} from "./layout.js";
2053
- import {position as position3} from "./position.js";
2054
- import {shadow as shadow3} from "./shadow.js";
2055
- import {space as space3} from "./space.js";
2056
- import {typography as typography3} from "./typography.js";
15
+ import {layout} from "./layout.js";
16
+ import {position} from "./position.js";
17
+ import {shadow} from "./shadow.js";
18
+ import {space} from "./space.js";
19
+ import {typography} from "./typography.js";
2057
20
  import {transition} from "./transition.js";
2058
21
  import {transform} from "./transform.js";
2059
22
  import {icon} from "./icon.js";
2060
23
  import {skipForwardProps} from "./utils/skipForwardProps.js";
2061
- var styledSystem = compose(action, animator, background3, border3, color3, flexbox3, icon, image, layout3, position3, space3, shadow3, typography3, transform, transition, transform, video);
24
+ var styledSystem = compose(action, animator, background, border, color, flexbox, icon, image, layout, position, space, shadow, typography, transform, transition, transform, video);
2062
25
  var shouldForwardProp = createShouldForwardProp(styledSystem.propNames);
2063
26
  export {
2064
27
  action,
2065
28
  animator,
2066
- background3 as background,
2067
- border3 as border,
2068
- color3 as color,
2069
- flexbox3 as flexbox,
29
+ background,
30
+ border,
31
+ color,
32
+ flexbox,
2070
33
  icon,
2071
34
  image,
2072
- layout3 as layout,
2073
- position3 as position,
2074
- shadow3 as shadow,
35
+ layout,
36
+ position,
37
+ shadow,
2075
38
  shouldForwardProp,
2076
39
  skipForwardProps,
2077
- space3 as space,
40
+ space,
2078
41
  styledSystem,
2079
42
  transform,
2080
- typography3 as typography,
43
+ typography,
2081
44
  video
2082
45
  };
2083
- /*
2084
- object-assign
2085
- (c) Sindre Sorhus
2086
- @license MIT
2087
- */