3
3
Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
4
4
5
5
function _typeof ( obj ) {
6
+ "@babel/helpers - typeof" ;
7
+
6
8
if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) {
7
9
_typeof = function ( obj ) {
8
10
return typeof obj ;
@@ -31,43 +33,71 @@ function _defineProperty(obj, key, value) {
31
33
return obj ;
32
34
}
33
35
34
- function _objectSpread ( target ) {
36
+ function ownKeys ( object , enumerableOnly ) {
37
+ var keys = Object . keys ( object ) ;
38
+
39
+ if ( Object . getOwnPropertySymbols ) {
40
+ var symbols = Object . getOwnPropertySymbols ( object ) ;
41
+ if ( enumerableOnly ) symbols = symbols . filter ( function ( sym ) {
42
+ return Object . getOwnPropertyDescriptor ( object , sym ) . enumerable ;
43
+ } ) ;
44
+ keys . push . apply ( keys , symbols ) ;
45
+ }
46
+
47
+ return keys ;
48
+ }
49
+
50
+ function _objectSpread2 ( target ) {
35
51
for ( var i = 1 ; i < arguments . length ; i ++ ) {
36
52
var source = arguments [ i ] != null ? arguments [ i ] : { } ;
37
- var ownKeys = Object . keys ( source ) ;
38
53
39
- if ( typeof Object . getOwnPropertySymbols === 'function' ) {
40
- ownKeys = ownKeys . concat ( Object . getOwnPropertySymbols ( source ) . filter ( function ( sym ) {
41
- return Object . getOwnPropertyDescriptor ( source , sym ) . enumerable ;
42
- } ) ) ;
54
+ if ( i % 2 ) {
55
+ ownKeys ( Object ( source ) , true ) . forEach ( function ( key ) {
56
+ _defineProperty ( target , key , source [ key ] ) ;
57
+ } ) ;
58
+ } else if ( Object . getOwnPropertyDescriptors ) {
59
+ Object . defineProperties ( target , Object . getOwnPropertyDescriptors ( source ) ) ;
60
+ } else {
61
+ ownKeys ( Object ( source ) ) . forEach ( function ( key ) {
62
+ Object . defineProperty ( target , key , Object . getOwnPropertyDescriptor ( source , key ) ) ;
63
+ } ) ;
43
64
}
44
-
45
- ownKeys . forEach ( function ( key ) {
46
- _defineProperty ( target , key , source [ key ] ) ;
47
- } ) ;
48
65
}
49
66
50
67
return target ;
51
68
}
52
69
53
70
function _toConsumableArray ( arr ) {
54
- return _arrayWithoutHoles ( arr ) || _iterableToArray ( arr ) || _nonIterableSpread ( ) ;
71
+ return _arrayWithoutHoles ( arr ) || _iterableToArray ( arr ) || _unsupportedIterableToArray ( arr ) || _nonIterableSpread ( ) ;
55
72
}
56
73
57
74
function _arrayWithoutHoles ( arr ) {
58
- if ( Array . isArray ( arr ) ) {
59
- for ( var i = 0 , arr2 = new Array ( arr . length ) ; i < arr . length ; i ++ ) arr2 [ i ] = arr [ i ] ;
60
-
61
- return arr2 ;
62
- }
75
+ if ( Array . isArray ( arr ) ) return _arrayLikeToArray ( arr ) ;
63
76
}
64
77
65
78
function _iterableToArray ( iter ) {
66
- if ( Symbol . iterator in Object ( iter ) || Object . prototype . toString . call ( iter ) === "[object Arguments]" ) return Array . from ( iter ) ;
79
+ if ( typeof Symbol !== "undefined" && Symbol . iterator in Object ( iter ) ) return Array . from ( iter ) ;
80
+ }
81
+
82
+ function _unsupportedIterableToArray ( o , minLen ) {
83
+ if ( ! o ) return ;
84
+ if ( typeof o === "string" ) return _arrayLikeToArray ( o , minLen ) ;
85
+ var n = Object . prototype . toString . call ( o ) . slice ( 8 , - 1 ) ;
86
+ if ( n === "Object" && o . constructor ) n = o . constructor . name ;
87
+ if ( n === "Map" || n === "Set" ) return Array . from ( o ) ;
88
+ if ( n === "Arguments" || / ^ (?: U i | I ) n t (?: 8 | 1 6 | 3 2 ) (?: C l a m p e d ) ? A r r a y $ / . test ( n ) ) return _arrayLikeToArray ( o , minLen ) ;
89
+ }
90
+
91
+ function _arrayLikeToArray ( arr , len ) {
92
+ if ( len == null || len > arr . length ) len = arr . length ;
93
+
94
+ for ( var i = 0 , arr2 = new Array ( len ) ; i < len ; i ++ ) arr2 [ i ] = arr [ i ] ;
95
+
96
+ return arr2 ;
67
97
}
68
98
69
99
function _nonIterableSpread ( ) {
70
- throw new TypeError ( "Invalid attempt to spread non-iterable instance" ) ;
100
+ throw new TypeError ( "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method. " ) ;
71
101
}
72
102
73
103
function hash ( str ) {
@@ -256,18 +286,18 @@ var importantify = function importantify(string
256
286
) ;
257
287
} ;
258
288
259
- var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : { } ;
289
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : { } ;
260
290
261
291
function unwrapExports ( x ) {
262
- return x && x . __esModule && Object . prototype . hasOwnProperty . call ( x , 'default' ) ? x . default : x ;
292
+ return x && x . __esModule && Object . prototype . hasOwnProperty . call ( x , 'default' ) ? x [ ' default' ] : x ;
263
293
}
264
294
265
295
function createCommonjsModule ( fn , module ) {
266
296
return module = { exports : { } } , fn ( module , module . exports ) , module . exports ;
267
297
}
268
298
269
299
function getCjsExportFromNamespace ( n ) {
270
- return n && n . default || n ;
300
+ return n && n [ ' default' ] || n ;
271
301
}
272
302
273
303
// Use the fastest means possible to execute a task in its own turn, with
@@ -548,9 +578,7 @@ RawTask.prototype.call = function () {
548
578
/* @flow */
549
579
var MAP_EXISTS = typeof Map !== 'undefined' ;
550
580
551
- var OrderedElements =
552
- /*#__PURE__*/
553
- function ( ) {
581
+ var OrderedElements = /*#__PURE__*/ function ( ) {
554
582
/* ::
555
583
elements: {[string]: any};
556
584
keyOrder: string[];
@@ -1156,6 +1184,10 @@ function isSimplePositionValue(value) {
1156
1184
return typeof value === 'number' && ! isNaN ( value ) ;
1157
1185
}
1158
1186
1187
+ function isComplexSpanValue ( value ) {
1188
+ return typeof value === 'string' && value . includes ( '/' ) ;
1189
+ }
1190
+
1159
1191
var alignmentValues = [ 'center' , 'end' , 'start' , 'stretch' ] ;
1160
1192
1161
1193
var displayValues = {
@@ -1173,16 +1205,26 @@ var propertyConverters = {
1173
1205
gridColumn : function gridColumn ( value , style ) {
1174
1206
if ( isSimplePositionValue ( value ) ) {
1175
1207
style . msGridColumn = value ;
1208
+ } else if ( isComplexSpanValue ( value ) ) {
1209
+ var _value$split = value . split ( '/' ) ,
1210
+ _value$split2 = _slicedToArray ( _value$split , 2 ) ,
1211
+ start = _value$split2 [ 0 ] ,
1212
+ end = _value$split2 [ 1 ] ;
1213
+
1214
+ propertyConverters . gridColumnStart ( + start , style ) ;
1215
+
1216
+ var _end$split = end . split ( / ? s p a n / ) ,
1217
+ _end$split2 = _slicedToArray ( _end$split , 2 ) ,
1218
+ maybeSpan = _end$split2 [ 0 ] ,
1219
+ maybeNumber = _end$split2 [ 1 ] ;
1220
+
1221
+ if ( maybeSpan === '' ) {
1222
+ propertyConverters . gridColumnEnd ( + start + + maybeNumber , style ) ;
1223
+ } else {
1224
+ propertyConverters . gridColumnEnd ( + end , style ) ;
1225
+ }
1176
1226
} else {
1177
- var _value$split$map = value . split ( '/' ) . map ( function ( position ) {
1178
- return + position ;
1179
- } ) ,
1180
- _value$split$map2 = _slicedToArray ( _value$split$map , 2 ) ,
1181
- start = _value$split$map2 [ 0 ] ,
1182
- end = _value$split$map2 [ 1 ] ;
1183
-
1184
- propertyConverters . gridColumnStart ( start , style ) ;
1185
- propertyConverters . gridColumnEnd ( end , style ) ;
1227
+ propertyConverters . gridColumnStart ( value , style ) ;
1186
1228
}
1187
1229
} ,
1188
1230
@@ -1203,16 +1245,26 @@ var propertyConverters = {
1203
1245
gridRow : function gridRow ( value , style ) {
1204
1246
if ( isSimplePositionValue ( value ) ) {
1205
1247
style . msGridRow = value ;
1248
+ } else if ( isComplexSpanValue ( value ) ) {
1249
+ var _value$split3 = value . split ( '/' ) ,
1250
+ _value$split4 = _slicedToArray ( _value$split3 , 2 ) ,
1251
+ start = _value$split4 [ 0 ] ,
1252
+ end = _value$split4 [ 1 ] ;
1253
+
1254
+ propertyConverters . gridRowStart ( + start , style ) ;
1255
+
1256
+ var _end$split3 = end . split ( / ? s p a n / ) ,
1257
+ _end$split4 = _slicedToArray ( _end$split3 , 2 ) ,
1258
+ maybeSpan = _end$split4 [ 0 ] ,
1259
+ maybeNumber = _end$split4 [ 1 ] ;
1260
+
1261
+ if ( maybeSpan === '' ) {
1262
+ propertyConverters . gridRowEnd ( + start + + maybeNumber , style ) ;
1263
+ } else {
1264
+ propertyConverters . gridRowEnd ( + end , style ) ;
1265
+ }
1206
1266
} else {
1207
- var _value$split$map3 = value . split ( '/' ) . map ( function ( position ) {
1208
- return + position ;
1209
- } ) ,
1210
- _value$split$map4 = _slicedToArray ( _value$split$map3 , 2 ) ,
1211
- start = _value$split$map4 [ 0 ] ,
1212
- end = _value$split$map4 [ 1 ] ;
1213
-
1214
- propertyConverters . gridRowStart ( start , style ) ;
1215
- propertyConverters . gridRowEnd ( end , style ) ;
1267
+ propertyConverters . gridRowStart ( value , style ) ;
1216
1268
}
1217
1269
} ,
1218
1270
@@ -1400,7 +1452,8 @@ function hyphenateStyleName(name) {
1400
1452
}
1401
1453
1402
1454
var hyphenateStyleName$1 = /*#__PURE__*/ Object . freeze ( {
1403
- default : hyphenateStyleName
1455
+ __proto__ : null ,
1456
+ 'default' : hyphenateStyleName
1404
1457
} ) ;
1405
1458
1406
1459
var _hyphenateStyleName = getCjsExportFromNamespace ( hyphenateStyleName$1 ) ;
@@ -1549,32 +1602,32 @@ var staticData = {
1549
1602
"animationName" : w ,
1550
1603
"animationPlayState" : w ,
1551
1604
"animationTimingFunction" : w ,
1552
- "appearance" : wm ,
1605
+ "appearance" : wmms ,
1553
1606
"userSelect" : wmms ,
1554
1607
"fontKerning" : w ,
1555
- "textEmphasisPosition" : w ,
1556
- "textEmphasis" : w ,
1557
- "textEmphasisStyle" : w ,
1558
- "textEmphasisColor" : w ,
1559
- "boxDecorationBreak" : w ,
1608
+ "textEmphasisPosition" : wms ,
1609
+ "textEmphasis" : wms ,
1610
+ "textEmphasisStyle" : wms ,
1611
+ "textEmphasisColor" : wms ,
1612
+ "boxDecorationBreak" : wms ,
1560
1613
"clipPath" : w ,
1561
- "maskImage" : w ,
1562
- "maskMode" : w ,
1563
- "maskRepeat" : w ,
1564
- "maskPosition" : w ,
1565
- "maskClip" : w ,
1566
- "maskOrigin" : w ,
1567
- "maskSize" : w ,
1568
- "maskComposite" : w ,
1569
- "mask" : w ,
1570
- "maskBorderSource" : w ,
1571
- "maskBorderMode" : w ,
1572
- "maskBorderSlice" : w ,
1573
- "maskBorderWidth" : w ,
1574
- "maskBorderOutset" : w ,
1575
- "maskBorderRepeat" : w ,
1576
- "maskBorder" : w ,
1577
- "maskType" : w ,
1614
+ "maskImage" : wms ,
1615
+ "maskMode" : wms ,
1616
+ "maskRepeat" : wms ,
1617
+ "maskPosition" : wms ,
1618
+ "maskClip" : wms ,
1619
+ "maskOrigin" : wms ,
1620
+ "maskSize" : wms ,
1621
+ "maskComposite" : wms ,
1622
+ "mask" : wms ,
1623
+ "maskBorderSource" : wms ,
1624
+ "maskBorderMode" : wms ,
1625
+ "maskBorderSlice" : wms ,
1626
+ "maskBorderWidth" : wms ,
1627
+ "maskBorderOutset" : wms ,
1628
+ "maskBorderRepeat" : wms ,
1629
+ "maskBorder" : wms ,
1630
+ "maskType" : wms ,
1578
1631
"textDecorationStyle" : wm ,
1579
1632
"textDecorationSkip" : wm ,
1580
1633
"textDecorationLine" : wm ,
@@ -1594,7 +1647,7 @@ var staticData = {
1594
1647
"columns" : wm ,
1595
1648
"columnSpan" : wm ,
1596
1649
"columnWidth" : wm ,
1597
- "writingMode" : wms ,
1650
+ "writingMode" : w ,
1598
1651
"flex" : wms ,
1599
1652
"flexBasis" : w ,
1600
1653
"flexDirection" : wms ,
@@ -1632,7 +1685,7 @@ var staticData = {
1632
1685
"wrapThrough" : ms ,
1633
1686
"wrapMargin" : ms ,
1634
1687
"touchAction" : ms ,
1635
- "textSizeAdjust" : wms ,
1688
+ "textSizeAdjust" : [ "ms" , "Webkit" ] ,
1636
1689
"borderImage" : w ,
1637
1690
"borderImageOutset" : w ,
1638
1691
"borderImageRepeat" : w ,
@@ -2349,7 +2402,7 @@ var unminifiedHashFn = function unminifiedHashFn(str
2349
2402
2350
2403
2351
2404
var initialHashFn = function initialHashFn ( ) {
2352
- return hashString ;
2405
+ return hashString ;
2353
2406
} ;
2354
2407
var hashFn = initialHashFn ( ) ;
2355
2408
var StyleSheet = {
@@ -2415,7 +2468,7 @@ var StyleSheetServer = typeof window !== 'undefined' ? null : {
2415
2468
* Not meant to be used in production.
2416
2469
*/
2417
2470
2418
- var StyleSheetTestUtils = null ;
2471
+ var StyleSheetTestUtils = null ;
2419
2472
/**
2420
2473
* Generate the Aphrodite API exports, with given `selectorHandlers` and
2421
2474
* `useImportant` state.
@@ -2428,7 +2481,7 @@ function makeExports(useImportant
2428
2481
/* : SelectorHandler[] */
2429
2482
= arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : defaultSelectorHandlers ;
2430
2483
return {
2431
- StyleSheet : _objectSpread ( { } , StyleSheet , {
2484
+ StyleSheet : _objectSpread2 ( _objectSpread2 ( { } , StyleSheet ) , { } , {
2432
2485
/**
2433
2486
* Returns a version of the exports of Aphrodite (i.e. an object
2434
2487
* with `css` and `StyleSheet` properties) which have some
@@ -2500,9 +2553,9 @@ exports.StyleSheet = StyleSheet$1;
2500
2553
exports . StyleSheetServer = StyleSheetServer$1 ;
2501
2554
exports . StyleSheetTestUtils = StyleSheetTestUtils$1 ;
2502
2555
exports . css = css ;
2503
- exports . minify = minify ;
2556
+ exports . defaultSelectorHandlers = defaultSelectorHandlers$1 ;
2504
2557
exports . flushToStyleTag = flushToStyleTag$1 ;
2505
2558
exports . injectAndGetClassName = injectAndGetClassName$1 ;
2506
- exports . defaultSelectorHandlers = defaultSelectorHandlers$1 ;
2559
+ exports . minify = minify ;
2507
2560
exports . reset = reset$1 ;
2508
2561
exports . resetInjectedStyle = resetInjectedStyle$1 ;
0 commit comments