@hero-design/rn 7.1.3-alpha4 → 7.1.3-alpha7
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/.eslintrc.json +0 -6
- package/.expo/packager-info.json +2 -2
- package/babel.config.js +0 -14
- package/es/index.js +2791 -9053
- package/jest-setup.ts +0 -1
- package/jest.config.js +2 -4
- package/lib/index.js +2813 -9055
- package/package.json +5 -7
- package/playground/components/BottomNavigation.tsx +13 -10
- package/playground/components/Button.tsx +67 -0
- package/playground/components/Card.tsx +141 -107
- package/playground/components/Tabs.tsx +44 -0
- package/playground/index.tsx +13 -7
- package/src/components/Badge/StyledBadge.tsx +19 -21
- package/src/components/Badge/__tests__/Badge.spec.tsx +9 -18
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +76 -96
- package/src/components/Badge/index.tsx +1 -1
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +44 -42
- package/src/components/BottomNavigation/__tests__/__snapshots__/{BottomNavigation.spec.tsx.snap → index.spec.tsx.snap} +130 -95
- package/src/components/BottomNavigation/__tests__/{BottomNavigation.spec.tsx → index.spec.tsx} +2 -2
- package/src/components/BottomNavigation/index.tsx +23 -23
- package/src/components/Button/IconButton.tsx +62 -0
- package/src/components/Button/__tests__/__snapshots__/index.spec.tsx.snap +46 -0
- package/src/components/Button/__tests__/index.spec.tsx +23 -0
- package/src/components/Button/index.tsx +5 -0
- package/src/components/Card/StyledCard.tsx +6 -6
- package/src/components/Card/__tests__/StyledCard.spec.tsx +2 -7
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +8 -11
- package/src/components/Card/__tests__/__snapshots__/{Card.spec.tsx.snap → index.spec.tsx.snap} +2 -8
- package/src/components/Card/__tests__/index.spec.tsx +35 -0
- package/src/components/Divider/StyledDivider.tsx +18 -60
- package/src/components/Divider/__tests__/StyledDivider.spec.tsx +5 -10
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +106 -70
- package/src/components/Divider/index.tsx +1 -1
- package/src/components/FAB/ActionGroup/ActionItem.tsx +2 -4
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +36 -37
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +26 -24
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +271 -245
- package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +29 -33
- package/src/components/FAB/ActionGroup/index.tsx +1 -5
- package/src/components/FAB/AnimatedFABIcon.tsx +1 -1
- package/src/components/FAB/FAB.tsx +5 -9
- package/src/components/FAB/StyledFAB.tsx +22 -0
- package/src/components/FAB/__tests__/AnimatedFABIcon.spec.tsx +3 -6
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +24 -0
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +14 -10
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +72 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +16 -17
- package/src/components/FAB/__tests__/index.spec.tsx +21 -26
- package/src/components/Icon/HeroIcon/index.tsx +5 -7
- package/src/components/Icon/__tests__/__snapshots__/{Icon.spec.tsx.snap → index.spec.tsx.snap} +21 -12
- package/src/components/Icon/__tests__/index.spec.tsx +25 -0
- package/src/components/Icon/index.tsx +1 -1
- package/src/components/Tabs/StyledTabs.tsx +70 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +322 -0
- package/src/components/Tabs/__tests__/index.spec.tsx +79 -0
- package/src/components/Tabs/index.tsx +181 -0
- package/src/components/Typography/Text/StyledText.tsx +19 -64
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +90 -63
- package/src/emotion.d.ts +6 -0
- package/src/index.ts +9 -3
- package/src/testHelpers/renderWithTheme.tsx +2 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +70 -48
- package/src/theme/components/badge.ts +10 -9
- package/src/theme/components/bottomNavigation.ts +7 -3
- package/src/theme/components/card.ts +2 -2
- package/src/theme/components/divider.ts +6 -6
- package/src/theme/components/fab.ts +19 -17
- package/src/theme/components/tabs.ts +20 -0
- package/src/theme/components/typography.ts +4 -4
- package/src/theme/global/typography.ts +3 -3
- package/src/theme/index.ts +3 -0
- package/src/types.ts +7 -0
- package/src/utils/__tests__/scale.spec.ts +3 -3
- package/src/utils/scale.ts +8 -68
- package/testUtils/setup.ts +11 -0
- package/tsconfig.json +1 -5
- package/types/playground/components/BottomNavigation.d.ts +2 -2
- package/types/playground/components/Button.d.ts +2 -0
- package/types/playground/components/Tabs.d.ts +2 -0
- package/types/src/components/Badge/StyledBadge.d.ts +16 -5
- package/types/src/components/Badge/index.d.ts +1 -1
- package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +44 -9
- package/types/src/components/{Typography/Text/__test__ → BottomNavigation/__tests__}/index.spec.d.ts +0 -0
- package/types/src/components/BottomNavigation/index.d.ts +18 -13
- package/types/src/components/Button/IconButton.d.ts +34 -0
- package/types/src/components/{BottomNavigation/__tests__/BottomNavigation.spec.d.ts → Button/__tests__/index.spec.d.ts} +0 -0
- package/types/src/components/Button/index.d.ts +4 -0
- package/types/src/components/Card/StyledCard.d.ts +7 -1
- package/types/src/components/Card/__tests__/{Card.spec.d.ts → index.spec.d.ts} +0 -0
- package/types/src/components/Divider/StyledDivider.d.ts +8 -2
- package/types/src/components/Divider/index.d.ts +1 -1
- package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +25 -7
- package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +11 -2
- package/types/src/components/FAB/ActionGroup/index.d.ts +1 -1
- package/types/src/components/FAB/FAB.d.ts +4 -4
- package/types/src/components/FAB/StyledFAB.d.ts +14 -0
- package/types/src/components/FAB/__tests__/{FABButton.spec.d.ts → StyledFAB.spec.d.ts} +0 -0
- package/types/src/components/Icon/HeroIcon/index.d.ts +8 -2
- package/types/src/components/{FAB/__tests__/StyledFABContainer.spec.d.ts → Icon/__tests__/index.spec.d.ts} +0 -0
- package/types/src/components/Icon/index.d.ts +1 -1
- package/types/src/components/Icon/utils.d.ts +1 -1
- package/types/src/components/Tabs/StyledTabs.d.ts +55 -0
- package/types/src/components/{FAB/__tests__/StyledFABIcon.spec.d.ts → Tabs/__tests__/index.spec.d.ts} +0 -0
- package/types/src/components/Tabs/index.d.ts +45 -0
- package/types/src/components/Typography/Text/StyledText.d.ts +8 -2
- package/types/src/index.d.ts +6 -3
- package/types/src/theme/components/badge.d.ts +8 -7
- package/types/src/theme/components/bottomNavigation.d.ts +8 -2
- package/types/src/theme/components/card.d.ts +2 -2
- package/types/src/theme/components/divider.d.ts +6 -6
- package/types/src/theme/components/fab.d.ts +19 -17
- package/types/src/theme/components/tabs.d.ts +15 -0
- package/types/src/theme/components/typography.d.ts +4 -4
- package/types/src/theme/index.d.ts +2 -0
- package/types/src/types.d.ts +5 -0
- package/types/src/utils/scale.d.ts +2 -1
- package/yarn-error.log +140 -0
- package/.expo/web/cache/development/babel-loader/015cd4023bdd8e0e3e1de310046d3b16.json +0 -1
- package/.expo/web/cache/development/babel-loader/0255192076dea2c7675549fa263a6722.json +0 -1
- package/.expo/web/cache/development/babel-loader/02c646fdcaa4819674f8e44dc29cc0aa.json +0 -1
- package/.expo/web/cache/development/babel-loader/02e944ba6b7532c77b5ecd94f5a52945.json +0 -1
- package/.expo/web/cache/development/babel-loader/06168282f87d39982c04c3b7725abef8.json +0 -1
- package/.expo/web/cache/development/babel-loader/064867cdc71ec7f38308957641ec0e5c.json +0 -1
- package/.expo/web/cache/development/babel-loader/06ca002e730e83bc0dc273752554bb0c.json +0 -1
- package/.expo/web/cache/development/babel-loader/07e86d93ebd8574948f718d80ecb1fad.json +0 -1
- package/.expo/web/cache/development/babel-loader/081a940d3ae9e0d20d13c22cc43c0a46.json +0 -1
- package/.expo/web/cache/development/babel-loader/085466d1c040fb7ef5d00248adeb9f1d.json +0 -1
- package/.expo/web/cache/development/babel-loader/08b94b37dd81e6f1b9909d84cc376c2e.json +0 -1
- package/.expo/web/cache/development/babel-loader/0a25801a974b0000e0a99da16c026d5c.json +0 -1
- package/.expo/web/cache/development/babel-loader/0a97090e9243b34fc136fda2ec55c961.json +0 -1
- package/.expo/web/cache/development/babel-loader/0c15db912477ec22c24f92d59cd33999.json +0 -1
- package/.expo/web/cache/development/babel-loader/0c784bc417f84aadf97818fbd4054b3f.json +0 -1
- package/.expo/web/cache/development/babel-loader/0eb233e1ecf7aa8cefdf1146268e2ef1.json +0 -1
- package/.expo/web/cache/development/babel-loader/0fa0699844293bd83681296074c82f83.json +0 -1
- package/.expo/web/cache/development/babel-loader/121bdee5f5cb95d16d99e4c933ebf864.json +0 -1
- package/.expo/web/cache/development/babel-loader/124896b4a24d61a32b980cbe17dfd86d.json +0 -1
- package/.expo/web/cache/development/babel-loader/15499f3a2f57c5182f92a767b52ccaa7.json +0 -1
- package/.expo/web/cache/development/babel-loader/15b64eb35bbb00e9b7d2e1ba5de504aa.json +0 -1
- package/.expo/web/cache/development/babel-loader/16f046b2bba77cc6b20c53ab67a8845c.json +0 -1
- package/.expo/web/cache/development/babel-loader/18296da1d79a9b7ed67aa73b3674c98d.json +0 -1
- package/.expo/web/cache/development/babel-loader/183bf8d5b8b0a24f311560391b75fb28.json +0 -1
- package/.expo/web/cache/development/babel-loader/18e69c8d4e2278d3ed0a2a9cf9459979.json +0 -1
- package/.expo/web/cache/development/babel-loader/19f6c3fb7aa14dc1a42f5d75d2b0e267.json +0 -1
- package/.expo/web/cache/development/babel-loader/1a87e69c2765213ad342b5f454c0a058.json +0 -1
- package/.expo/web/cache/development/babel-loader/1ae9718a5291beb1a34921e74351868d.json +0 -1
- package/.expo/web/cache/development/babel-loader/1be8f9a2939f282c2218a492c2083516.json +0 -1
- package/.expo/web/cache/development/babel-loader/1c33ab505b1f55675a070b3f19ab5fc6.json +0 -1
- package/.expo/web/cache/development/babel-loader/1c53ddb06e14036617c6be6b6ec02e93.json +0 -1
- package/.expo/web/cache/development/babel-loader/1ce0f519e92a6f10348175e6fa42fd6a.json +0 -1
- package/.expo/web/cache/development/babel-loader/1e150d4ac2c661fd694b6cddce785558.json +0 -1
- package/.expo/web/cache/development/babel-loader/1e64bc6f174a20385a44365e77cb71ff.json +0 -1
- package/.expo/web/cache/development/babel-loader/2168be4a82a7d5b116dd8fd18bd5ab62.json +0 -1
- package/.expo/web/cache/development/babel-loader/21dae0abf6ef0400ef25dfc87d1f4671.json +0 -1
- package/.expo/web/cache/development/babel-loader/2286dc8cd20eaa8051a3400057edd5ae.json +0 -1
- package/.expo/web/cache/development/babel-loader/22b0965d8ed07fcd7d323d92eb56a91d.json +0 -1
- package/.expo/web/cache/development/babel-loader/243541d6511909b66a90d2824fc71f14.json +0 -1
- package/.expo/web/cache/development/babel-loader/24781a54910c0940c738ec301eff4318.json +0 -1
- package/.expo/web/cache/development/babel-loader/24b80d0446b9c88886cd1f951632ab91.json +0 -1
- package/.expo/web/cache/development/babel-loader/24d40521282cac7bb526f9a7a3ab4de2.json +0 -1
- package/.expo/web/cache/development/babel-loader/260bba3675ce84e0a277a65fdb52f235.json +0 -1
- package/.expo/web/cache/development/babel-loader/266b79a5977223dbee00bdc2732e5697.json +0 -1
- package/.expo/web/cache/development/babel-loader/26879ba706c68b0226a1242f3c28c0e2.json +0 -1
- package/.expo/web/cache/development/babel-loader/2746a8c85fca2064b7728ecfc2d7e022.json +0 -1
- package/.expo/web/cache/development/babel-loader/28308843667ee35631612116de8ee705.json +0 -1
- package/.expo/web/cache/development/babel-loader/2af2c923d4fe0c7736be88b0e2fac2c0.json +0 -1
- package/.expo/web/cache/development/babel-loader/2b00b74ce36325af2dd1ecb817f0b69e.json +0 -1
- package/.expo/web/cache/development/babel-loader/2bf696f8a70361680c8d88ae78227b2c.json +0 -1
- package/.expo/web/cache/development/babel-loader/2fbe5d411c533de433abd361bfba9e2f.json +0 -1
- package/.expo/web/cache/development/babel-loader/308a319d3e13964a95b184dd7e7483a7.json +0 -1
- package/.expo/web/cache/development/babel-loader/30a3d4b4e5bc9d62a22ea1c05d50e3d7.json +0 -1
- package/.expo/web/cache/development/babel-loader/3297de3af524b87977cccb0d51c6fdb7.json +0 -1
- package/.expo/web/cache/development/babel-loader/335055e2588a3f703b6681b513053069.json +0 -1
- package/.expo/web/cache/development/babel-loader/33b1a3e46b0a9c62db1005f57d2ae76d.json +0 -1
- package/.expo/web/cache/development/babel-loader/342f4f51d784f91793e41c4c463ba640.json +0 -1
- package/.expo/web/cache/development/babel-loader/34fbec758cf381ee3d274245596e884e.json +0 -1
- package/.expo/web/cache/development/babel-loader/36b241618bf067485a740d2052476b6b.json +0 -1
- package/.expo/web/cache/development/babel-loader/377d170e62cdfc5531aca97043caa939.json +0 -1
- package/.expo/web/cache/development/babel-loader/383c6c820117d99d43918fdc5646ef07.json +0 -1
- package/.expo/web/cache/development/babel-loader/38845b2c5c1d2ac8c34919b0420e217a.json +0 -1
- package/.expo/web/cache/development/babel-loader/3a1b5dd13338d9b8323cc65ac0ee9084.json +0 -1
- package/.expo/web/cache/development/babel-loader/3b6cafaec7bd951cb292d35b7b777e16.json +0 -1
- package/.expo/web/cache/development/babel-loader/3dde711133a24dc39a127890207efc14.json +0 -1
- package/.expo/web/cache/development/babel-loader/3e411553708caef8421aca4ca7a50a79.json +0 -1
- package/.expo/web/cache/development/babel-loader/3e4bf0afe3180d43e6259fdc9e2cf018.json +0 -1
- package/.expo/web/cache/development/babel-loader/3f45c156aeb578585b9367e9f769213a.json +0 -1
- package/.expo/web/cache/development/babel-loader/401d9d9024ed8c80f8875e3a561ebe52.json +0 -1
- package/.expo/web/cache/development/babel-loader/4119e38050883976b0b6604154ff74b1.json +0 -1
- package/.expo/web/cache/development/babel-loader/43053f3b8cae10481352c2e2515e9d3a.json +0 -1
- package/.expo/web/cache/development/babel-loader/43908b6386757cbdce634000cdb05be5.json +0 -1
- package/.expo/web/cache/development/babel-loader/45b0b2f0892e55f6766ea3f6eedfedc8.json +0 -1
- package/.expo/web/cache/development/babel-loader/4641f770b3a3c0e9d65049d69666f14a.json +0 -1
- package/.expo/web/cache/development/babel-loader/464cf321c96f5d3a11c6e7c9ce022d89.json +0 -1
- package/.expo/web/cache/development/babel-loader/4884e4300b99f1c73a01bc4da1e69e2e.json +0 -1
- package/.expo/web/cache/development/babel-loader/49889d761f9b1b6827a7b9a4c2b63949.json +0 -1
- package/.expo/web/cache/development/babel-loader/49e011b42b0e8b3a01cad47999ddd5f4.json +0 -1
- package/.expo/web/cache/development/babel-loader/4a2372960ee87388844ee5eacf8a4e5d.json +0 -1
- package/.expo/web/cache/development/babel-loader/4d27b44a4344eb5d6a82f929b034fcb6.json +0 -1
- package/.expo/web/cache/development/babel-loader/4d6224362744b0eda6e64e9096c88e5e.json +0 -1
- package/.expo/web/cache/development/babel-loader/4d7371ca965d4e8d8e3b9fe29d72cb56.json +0 -1
- package/.expo/web/cache/development/babel-loader/4decc31212afed6aecb648cd482d8f58.json +0 -1
- package/.expo/web/cache/development/babel-loader/4dfa2b3056c60bce932123f61e4bc6d2.json +0 -1
- package/.expo/web/cache/development/babel-loader/4e008a6aedd78b935cba6d0b3d6bc7ae.json +0 -1
- package/.expo/web/cache/development/babel-loader/4e822161a7bda4d88f0867695e1ecfd9.json +0 -1
- package/.expo/web/cache/development/babel-loader/4f1e0269842359fe96d27c5b9bfd1ac4.json +0 -1
- package/.expo/web/cache/development/babel-loader/4fb1f40f3a67457861766892e335a81d.json +0 -1
- package/.expo/web/cache/development/babel-loader/507a1917d95e59163a96e7784d5288a7.json +0 -1
- package/.expo/web/cache/development/babel-loader/50e87c60a46b4cdf0487b5edc043be30.json +0 -1
- package/.expo/web/cache/development/babel-loader/530461df12ae0b0f45c0d457547c372e.json +0 -1
- package/.expo/web/cache/development/babel-loader/5339c25a34fe42823b7a1d2e1cdc6546.json +0 -1
- package/.expo/web/cache/development/babel-loader/536ca6a6eed1bcdac31786e72dedea80.json +0 -1
- package/.expo/web/cache/development/babel-loader/53cd7a6341558d4da20796dc5ebd58bb.json +0 -1
- package/.expo/web/cache/development/babel-loader/540b224b100181005e79f2dadb1edbf8.json +0 -1
- package/.expo/web/cache/development/babel-loader/542c478f2a9a2ca89b6b87961cb48922.json +0 -1
- package/.expo/web/cache/development/babel-loader/54749024a5585009dc5b67e1b0d9dbdc.json +0 -1
- package/.expo/web/cache/development/babel-loader/5566a5cf483f5a29e31e71e44bd4ee31.json +0 -1
- package/.expo/web/cache/development/babel-loader/56014c53cc4a460aedbf6b315b7a83d1.json +0 -1
- package/.expo/web/cache/development/babel-loader/592bfc0572fc2bceb23e0650a747eaa8.json +0 -1
- package/.expo/web/cache/development/babel-loader/5a57cc696da8aefee15249d630caa27a.json +0 -1
- package/.expo/web/cache/development/babel-loader/5b2adce8bdaf8fa5bdaf1455f271e3c8.json +0 -1
- package/.expo/web/cache/development/babel-loader/5b306fddfa1f5d9e99d311532bd0139c.json +0 -1
- package/.expo/web/cache/development/babel-loader/5bbe045789809b2f64e2bd58eb420aa3.json +0 -1
- package/.expo/web/cache/development/babel-loader/5d7aefda6066de8bdbb1bcb007d1b5db.json +0 -1
- package/.expo/web/cache/development/babel-loader/5d82ac4048edb6410bf53e83cbcbb922.json +0 -1
- package/.expo/web/cache/development/babel-loader/5e11b649fa3602e096c920767cb436e3.json +0 -1
- package/.expo/web/cache/development/babel-loader/5e6d5abccf648c1a866e21ad2a09adfd.json +0 -1
- package/.expo/web/cache/development/babel-loader/5f5b8027c4d87d9e0feea8462780e8ad.json +0 -1
- package/.expo/web/cache/development/babel-loader/5fb192b131f2f50d41e33fe34dbbc297.json +0 -1
- package/.expo/web/cache/development/babel-loader/604249a15ce1c8e541864121ac7ac587.json +0 -1
- package/.expo/web/cache/development/babel-loader/61137d04349f30b618be58175ad9d350.json +0 -1
- package/.expo/web/cache/development/babel-loader/61ce8c3d59dde8eac802f308f9acc828.json +0 -1
- package/.expo/web/cache/development/babel-loader/6391d65a84100349eba3acb527e6b030.json +0 -1
- package/.expo/web/cache/development/babel-loader/6500ab6cfd39dbfff785d348bf367be8.json +0 -1
- package/.expo/web/cache/development/babel-loader/655221527a35c47d0109d3c96a8da168.json +0 -1
- package/.expo/web/cache/development/babel-loader/65568c39c8b15c78a96d4caf9941129b.json +0 -1
- package/.expo/web/cache/development/babel-loader/657adfbea82cd6254f7ac85151e6ea52.json +0 -1
- package/.expo/web/cache/development/babel-loader/66c4915ff6ebfde747894fd3f427b9c7.json +0 -1
- package/.expo/web/cache/development/babel-loader/6b558032ef2af0092093a0e2315e3b37.json +0 -1
- package/.expo/web/cache/development/babel-loader/6cc8c7be4e8e8792ad698f10623c9b11.json +0 -1
- package/.expo/web/cache/development/babel-loader/6e14a5e499ef7e25ca0cccb6269e2f5a.json +0 -1
- package/.expo/web/cache/development/babel-loader/70d42954cfcb018f13bad222cfdd26c2.json +0 -1
- package/.expo/web/cache/development/babel-loader/70e5d0fb55302845630dc7022fcab612.json +0 -1
- package/.expo/web/cache/development/babel-loader/7187c947a3186dfc0857f64da0908ecf.json +0 -1
- package/.expo/web/cache/development/babel-loader/71ff258c6f6d9b34829e45fd9452dd3a.json +0 -1
- package/.expo/web/cache/development/babel-loader/72447ee2c89506d47319627069907f4b.json +0 -1
- package/.expo/web/cache/development/babel-loader/72bfb7460b7b81f7f3bbddc81fc8e7dc.json +0 -1
- package/.expo/web/cache/development/babel-loader/731d03a0a67ecaf9a9383d41beae7fd4.json +0 -1
- package/.expo/web/cache/development/babel-loader/741251e4d56c2c8722a5b9a0bc8b36dd.json +0 -1
- package/.expo/web/cache/development/babel-loader/747257270c398282d135060092b5ffc4.json +0 -1
- package/.expo/web/cache/development/babel-loader/74852aa6ce6f71235218eb6f1a120430.json +0 -1
- package/.expo/web/cache/development/babel-loader/74afe49311fab37261730b1ea83897a1.json +0 -1
- package/.expo/web/cache/development/babel-loader/7535495406e9daac2cf50eddcbcf984f.json +0 -1
- package/.expo/web/cache/development/babel-loader/76a96c09b41232a1027eb57667bed4cd.json +0 -1
- package/.expo/web/cache/development/babel-loader/77b71e7070039d3b0809426997ec6355.json +0 -1
- package/.expo/web/cache/development/babel-loader/79febcd0920ccdc7d95510faa84cd785.json +0 -1
- package/.expo/web/cache/development/babel-loader/7a05a01c29184e51101a5896e6771068.json +0 -1
- package/.expo/web/cache/development/babel-loader/7b67bf87b7a24ce1bd0d21be94d39712.json +0 -1
- package/.expo/web/cache/development/babel-loader/7c10bbaa16fc3f92c14dc81ed9a103e2.json +0 -1
- package/.expo/web/cache/development/babel-loader/7e1434686597dbe27bbdf28db628678b.json +0 -1
- package/.expo/web/cache/development/babel-loader/8168bf7926790fd88c46d02691141eb3.json +0 -1
- package/.expo/web/cache/development/babel-loader/8261d9b6445c3ae4f3db3b5a87a32bfd.json +0 -1
- package/.expo/web/cache/development/babel-loader/82711d1d11135fe3c5f761ef84546cca.json +0 -1
- package/.expo/web/cache/development/babel-loader/82a952063dc4a552385e994d051987da.json +0 -1
- package/.expo/web/cache/development/babel-loader/840477709eff8cb91896d04291047917.json +0 -1
- package/.expo/web/cache/development/babel-loader/84f16ae9077a77a1f938db11c92e5cb0.json +0 -1
- package/.expo/web/cache/development/babel-loader/8611b6dbd6285e6aa281a8560c089b32.json +0 -1
- package/.expo/web/cache/development/babel-loader/877250c4b852a8c68a5787f00473bade.json +0 -1
- package/.expo/web/cache/development/babel-loader/878c86d46f1cc1c2e575715bb753a6c2.json +0 -1
- package/.expo/web/cache/development/babel-loader/89b0b1e82520bf4a83fb46a5d5e3051f.json +0 -1
- package/.expo/web/cache/development/babel-loader/8ace816b6b5d313af06a110d8fffdd29.json +0 -1
- package/.expo/web/cache/development/babel-loader/8c4251482b1bb231323018ad7f762c79.json +0 -1
- package/.expo/web/cache/development/babel-loader/8c852e6d1a4869af48b20deea5689c8e.json +0 -1
- package/.expo/web/cache/development/babel-loader/8cc22acf99bb15df0804268c9936a316.json +0 -1
- package/.expo/web/cache/development/babel-loader/8cda840d3c6065c9f5d94109ac5ceac8.json +0 -1
- package/.expo/web/cache/development/babel-loader/8da5a65a25b8617cc4b0f363b54f17a9.json +0 -1
- package/.expo/web/cache/development/babel-loader/8ed28a112dbd10ae72c4404ed767005a.json +0 -1
- package/.expo/web/cache/development/babel-loader/8f496b2cd6790e83bab10d24aae43247.json +0 -1
- package/.expo/web/cache/development/babel-loader/9066a94a8de4a1e5823cfd03c3c65c22.json +0 -1
- package/.expo/web/cache/development/babel-loader/91ebd1694a594c00836231f13fcb5ab8.json +0 -1
- package/.expo/web/cache/development/babel-loader/954de33d98429fe08ac02c788703effd.json +0 -1
- package/.expo/web/cache/development/babel-loader/954fcaa67e62fee1d0e55770c29643a9.json +0 -1
- package/.expo/web/cache/development/babel-loader/95633d8353ddde580626714ebeff4a3e.json +0 -1
- package/.expo/web/cache/development/babel-loader/95b1ef2ed750aa97d708fa5d1da11701.json +0 -1
- package/.expo/web/cache/development/babel-loader/95d8acbfa7ec33bf53408384561f8f59.json +0 -1
- package/.expo/web/cache/development/babel-loader/961bc9fd17fd516ae1093a6bea77b236.json +0 -1
- package/.expo/web/cache/development/babel-loader/96afd45a8ee5c316e8d2cdeab372d2d1.json +0 -1
- package/.expo/web/cache/development/babel-loader/96f2624d06f0d9c15f72fe52998bb3b5.json +0 -1
- package/.expo/web/cache/development/babel-loader/972f4e43ba279ed169c44d25e0badb76.json +0 -1
- package/.expo/web/cache/development/babel-loader/9800ddc64188c0c913c560451b4f20f9.json +0 -1
- package/.expo/web/cache/development/babel-loader/9a44846903f5dd2ed5c6ca62986c4d7b.json +0 -1
- package/.expo/web/cache/development/babel-loader/9afeae36f511af6858fe68f7e94de5fc.json +0 -1
- package/.expo/web/cache/development/babel-loader/9b9e501c7e3b15da22d1b1519d390a93.json +0 -1
- package/.expo/web/cache/development/babel-loader/9ba221ab0e27ecfc06fa08f1bd338d91.json +0 -1
- package/.expo/web/cache/development/babel-loader/9dc84383648386cdd64384268aaba4cd.json +0 -1
- package/.expo/web/cache/development/babel-loader/9ed0c292f501200dbab3287f89b74285.json +0 -1
- package/.expo/web/cache/development/babel-loader/9ff02f1934b1011e9f1702444f6ade8b.json +0 -1
- package/.expo/web/cache/development/babel-loader/a00673b61f03f25ca7d5dda9ec7f1684.json +0 -1
- package/.expo/web/cache/development/babel-loader/a11f1fec9b3c8224ec8a3561e9d39607.json +0 -1
- package/.expo/web/cache/development/babel-loader/a138071c6b457813fa75f80257c00948.json +0 -1
- package/.expo/web/cache/development/babel-loader/a13f4194bebf279521f1219c7f0edfe5.json +0 -1
- package/.expo/web/cache/development/babel-loader/a20bc8b3ff9c6f0a6d0505119c7c8e4b.json +0 -1
- package/.expo/web/cache/development/babel-loader/a2499bb844484b72ab0bd9e19b577a2a.json +0 -1
- package/.expo/web/cache/development/babel-loader/a3690c2af258782c6e54d70965e2d702.json +0 -1
- package/.expo/web/cache/development/babel-loader/a3b408c4e99dbfe5166c61130962d530.json +0 -1
- package/.expo/web/cache/development/babel-loader/a3d400d230600d4606a39b88b1a50ce9.json +0 -1
- package/.expo/web/cache/development/babel-loader/a576aa09c4387662d5041dc16e071e7d.json +0 -1
- package/.expo/web/cache/development/babel-loader/aadddefc328de2a87f9585c8b9cf1ddb.json +0 -1
- package/.expo/web/cache/development/babel-loader/abfcdee9f49c8512a556c8d96aab05b0.json +0 -1
- package/.expo/web/cache/development/babel-loader/af2abfdb26938b4671383c19a474c162.json +0 -1
- package/.expo/web/cache/development/babel-loader/afe4775e080557f919d69bece91f9b2e.json +0 -1
- package/.expo/web/cache/development/babel-loader/b03a4c4f01d00d65481849a79f542339.json +0 -1
- package/.expo/web/cache/development/babel-loader/b161867d1c22ab0db168cb41f31e3821.json +0 -1
- package/.expo/web/cache/development/babel-loader/b1a28b49b320580ad2d46a362b06190e.json +0 -1
- package/.expo/web/cache/development/babel-loader/b21a05f75cdf7d99468ea135e93764b4.json +0 -1
- package/.expo/web/cache/development/babel-loader/b23f758a73c6ba11c5cbddc73adfe6a0.json +0 -1
- package/.expo/web/cache/development/babel-loader/b2cc4b4fb8a4d19be9c69abaa2a93cb6.json +0 -1
- package/.expo/web/cache/development/babel-loader/b300fad9fcb11f4867e14c4aace9b942.json +0 -1
- package/.expo/web/cache/development/babel-loader/b33a1081489cf7b79984ef0a745448a8.json +0 -1
- package/.expo/web/cache/development/babel-loader/b436db3f88511bc5455c31bd368082c4.json +0 -1
- package/.expo/web/cache/development/babel-loader/b4c9da64b6d0ba5eb3caf414ca166637.json +0 -1
- package/.expo/web/cache/development/babel-loader/b56dceadf60beadf0d3374143c0b1603.json +0 -1
- package/.expo/web/cache/development/babel-loader/b76d9d60e417624f1df89b5add1d2db8.json +0 -1
- package/.expo/web/cache/development/babel-loader/b790b246d8bb0a38f5796cf5799b17f2.json +0 -1
- package/.expo/web/cache/development/babel-loader/b89ff8b3e2ec84a11907141f5e517bfe.json +0 -1
- package/.expo/web/cache/development/babel-loader/b955a4568536fcc96a9f4110da577064.json +0 -1
- package/.expo/web/cache/development/babel-loader/bab60f8582caa8ab641521aa39541ff7.json +0 -1
- package/.expo/web/cache/development/babel-loader/baf8ec42b5295bf9b71564fe06dff559.json +0 -1
- package/.expo/web/cache/development/babel-loader/bbad1fdb8bad7c28c7859a0f188d3a7b.json +0 -1
- package/.expo/web/cache/development/babel-loader/be1eb03dbd5cd69bbffa7ae2a6e9d668.json +0 -1
- package/.expo/web/cache/development/babel-loader/be2fcf3973e484a6a56e37129b5eaaf7.json +0 -1
- package/.expo/web/cache/development/babel-loader/bf8cf6088e983893d5b4c8bc034427e4.json +0 -1
- package/.expo/web/cache/development/babel-loader/bfcb86bceac05155e5308c18bdd3fe08.json +0 -1
- package/.expo/web/cache/development/babel-loader/c172563a78f317bdf0e36e24dde3452d.json +0 -1
- package/.expo/web/cache/development/babel-loader/c46ad8673d03b7db6d8a2c93ed6b3802.json +0 -1
- package/.expo/web/cache/development/babel-loader/c59a0c339fabfd6318413aa25031c201.json +0 -1
- package/.expo/web/cache/development/babel-loader/c62e34d8d462d6191e1dc14c5395d52b.json +0 -1
- package/.expo/web/cache/development/babel-loader/c74e4bc2f5768aff42dd3c55d81749c8.json +0 -1
- package/.expo/web/cache/development/babel-loader/c75a76b3e08859524b69d60f8bf1df0f.json +0 -1
- package/.expo/web/cache/development/babel-loader/c88179e7d8d1ca25305bfc867939f5a3.json +0 -1
- package/.expo/web/cache/development/babel-loader/caf356c64a9f318b905731a25c8caf91.json +0 -1
- package/.expo/web/cache/development/babel-loader/ccaedd363abc01c405579524b8bbaf35.json +0 -1
- package/.expo/web/cache/development/babel-loader/cd79d69eeae7dbcdc442f692ce8a9272.json +0 -1
- package/.expo/web/cache/development/babel-loader/cd9063bacb890d6d5a2e981754ccf164.json +0 -1
- package/.expo/web/cache/development/babel-loader/ce2f3ca01216078ce7e5a74516dbfc4c.json +0 -1
- package/.expo/web/cache/development/babel-loader/ce604f4f65dfe84b11bbec60230afff1.json +0 -1
- package/.expo/web/cache/development/babel-loader/cff5797fff55ca8e98d3118c9e7250d6.json +0 -1
- package/.expo/web/cache/development/babel-loader/d00c274746869d9a4c810f940808ca3e.json +0 -1
- package/.expo/web/cache/development/babel-loader/d139c5fbc81478cca93e6b4a926b7fad.json +0 -1
- package/.expo/web/cache/development/babel-loader/d226ab1782131db078fc56761777579a.json +0 -1
- package/.expo/web/cache/development/babel-loader/d3c10e924f2ce49ca4e0a8bc4d800047.json +0 -1
- package/.expo/web/cache/development/babel-loader/d6f1318a1043ef95ef641a9314445194.json +0 -1
- package/.expo/web/cache/development/babel-loader/d96467b93e0c8535e1d5dac15bda0d22.json +0 -1
- package/.expo/web/cache/development/babel-loader/da79a62f9b35ea1114a46be959df1c0c.json +0 -1
- package/.expo/web/cache/development/babel-loader/dbd0371650c94f023fc4464f7a30c068.json +0 -1
- package/.expo/web/cache/development/babel-loader/ded9ef4c8d70487402a7ed05aaa42bef.json +0 -1
- package/.expo/web/cache/development/babel-loader/e267b9a10da82d7c9d27a0a6d2f15d6b.json +0 -1
- package/.expo/web/cache/development/babel-loader/e3203299dd14cd528fb01e684c97f030.json +0 -1
- package/.expo/web/cache/development/babel-loader/e3403556a7bef19920ff892e7ae71a33.json +0 -1
- package/.expo/web/cache/development/babel-loader/e4d3d45445df8599087f3f379416f83e.json +0 -1
- package/.expo/web/cache/development/babel-loader/e50007c2b54696bab5256823bd8b75b9.json +0 -1
- package/.expo/web/cache/development/babel-loader/e505af1d2b9f766ae21c2c653bc1f0eb.json +0 -1
- package/.expo/web/cache/development/babel-loader/e529cbcc9a784bb39cb3f93b5916cdea.json +0 -1
- package/.expo/web/cache/development/babel-loader/e5e73e920ce1cc98aec12c63b7239f4f.json +0 -1
- package/.expo/web/cache/development/babel-loader/e5f18619a8f76be87191ef677841e2a4.json +0 -1
- package/.expo/web/cache/development/babel-loader/e6eb03aca0506d39f23ca4f3c83aa516.json +0 -1
- package/.expo/web/cache/development/babel-loader/e9a8c10622926d4b2e69ab52bd21997d.json +0 -1
- package/.expo/web/cache/development/babel-loader/eada955a7a1f7eccb8daa2d3e2e00359.json +0 -1
- package/.expo/web/cache/development/babel-loader/eb765434dad51366d5e994157844242b.json +0 -1
- package/.expo/web/cache/development/babel-loader/ebb9e1b4c723d0cd4d0ebac704bdbd2e.json +0 -1
- package/.expo/web/cache/development/babel-loader/ed91f60f62296cb2284d70d9f8e8607e.json +0 -1
- package/.expo/web/cache/development/babel-loader/edb4691fac98a028668fb1f0afd0471c.json +0 -1
- package/.expo/web/cache/development/babel-loader/ef239f9c50d12e0a9514accb8a19aa62.json +0 -1
- package/.expo/web/cache/development/babel-loader/efa1697210dffc161da37a2bf66914eb.json +0 -1
- package/.expo/web/cache/development/babel-loader/f0f1a470b5e186d352c84c767337086f.json +0 -1
- package/.expo/web/cache/development/babel-loader/f232ab08dc4147d3925c210ac21902cf.json +0 -1
- package/.expo/web/cache/development/babel-loader/f24954a77b038f86faabed1c01850607.json +0 -1
- package/.expo/web/cache/development/babel-loader/f260775a30a227263e75172591c552dd.json +0 -1
- package/.expo/web/cache/development/babel-loader/f3ec90f50a726109daca5a9d5c2e70d1.json +0 -1
- package/.expo/web/cache/development/babel-loader/f546bb0d85ea302b502ca4c8f7f2375e.json +0 -1
- package/.expo/web/cache/development/babel-loader/f58eea2525ec523b6cfef3cee01b55cd.json +0 -1
- package/.expo/web/cache/development/babel-loader/f6e983c3ec14d5a79e2fa722aaf4bea5.json +0 -1
- package/.expo/web/cache/development/babel-loader/f75a9c98751a201f9b7c208e0cbc1f19.json +0 -1
- package/.expo/web/cache/development/babel-loader/f7a3bc17fcdef31de4f4fc1152872eca.json +0 -1
- package/.expo/web/cache/development/babel-loader/f7b6d4fe4161fc5d6562a61b0b11f7e2.json +0 -1
- package/.expo/web/cache/development/babel-loader/f8c5e9dacf5878f90c86883e982f0227.json +0 -1
- package/.expo/web/cache/development/babel-loader/f8f784315a22e068136d73f99db42e30.json +0 -1
- package/.expo/web/cache/development/babel-loader/f9f931f3f27e2b3dff7fd9fb4fcf4bf3.json +0 -1
- package/.expo/web/cache/development/babel-loader/fa9d8fc1d56b04d006c0c18688a640fe.json +0 -1
- package/.expo/web/cache/development/babel-loader/fc660bf5528c70224ec6c3295a4f1a5e.json +0 -1
- package/.expo/web/cache/development/babel-loader/fd8b9e4327116ec3a3a6444e0ae6837d.json +0 -1
- package/.expo/web/cache/development/babel-loader/fdd2ca3ec9b54d1f53453b6d8632c0f5.json +0 -1
- package/.expo/web/cache/development/babel-loader/ff2eab785490c90e174666553fff7e66.json +0 -1
- package/.expo/web/cache/development/babel-loader/ffe419731db23fbdcca1bddb7cadae71.json +0 -1
- package/.expo/xcodebuild-error.log +0 -4
- package/.expo/xcodebuild.log +0 -20
- package/.tool-versions +0 -2
- package/src/components/Card/__tests__/Card.spec.tsx +0 -36
- package/src/components/FAB/StyledFABContainer.tsx +0 -14
- package/src/components/FAB/StyledFABIcon.tsx +0 -9
- package/src/components/FAB/__tests__/StyledFABContainer.spec.tsx +0 -18
- package/src/components/FAB/__tests__/StyledFABIcon.spec.tsx +0 -16
- package/src/components/FAB/__tests__/__snapshots__/StyledFABContainer.spec.tsx.snap +0 -46
- package/src/components/FAB/__tests__/__snapshots__/StyledFABIcon.spec.tsx.snap +0 -21
- package/src/components/Icon/__tests__/Icon.spec.tsx +0 -36
- package/src/styled-components.ts +0 -14
- package/src/styled.d.ts +0 -7
- package/types/components/Card/StyledView.d.ts +0 -12
- package/types/components/Card/index.d.ts +0 -0
- package/types/index.d.ts +0 -4
- package/types/src/components/FAB/FABButton.d.ts +0 -30
- package/types/src/components/FAB/MenuList/MenuItem.d.ts +0 -15
- package/types/src/components/FAB/MenuList/StyleBackDrop.d.ts +0 -5
- package/types/src/components/FAB/MenuList/StyledHeaderText.d.ts +0 -3
- package/types/src/components/FAB/MenuList/StyledMenuItem.d.ts +0 -4
- package/types/src/components/FAB/MenuList/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/FAB/MenuList/index.d.ts +0 -27
- package/types/src/components/FAB/StyledFABContainer.d.ts +0 -3
- package/types/src/components/FAB/StyledFABIcon.d.ts +0 -3
- package/types/src/components/Icon/__tests__/Icon.spec.d.ts +0 -1
- package/types/src/components/Typography/Text/__test__/StyledText.spec.d.ts +0 -1
- package/types/src/styled-components.d.ts +0 -6
- package/types/styled-components.d.ts +0 -6
- package/types/theme/components/exampleComponent.d.ts +0 -14
- package/types/theme/global/colors.d.ts +0 -24
- package/types/theme/global/index.d.ts +0 -58
- package/types/theme/global/space.d.ts +0 -12
- package/types/theme/global/typography.d.ts +0 -21
- package/types/theme/index.d.ts +0 -11
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"var EventEmitter = require(\"events\");\n\nmodule.exports = new EventEmitter();","map":{"version":3,"names":["EventEmitter","require","module","exports"],"sources":["/Users/kientran/.nvm/versions/node/v14.18.1/lib/node_modules/expo-cli/node_modules/webpack/hot/emitter.js"],"sourcesContent":["var EventEmitter = require(\"events\");\nmodule.exports = new EventEmitter();\n"],"mappings":"AAAA,IAAIA,YAAY,GAAGC,OAAO,CAAC,QAAD,CAA1B;;AACAC,MAAM,CAACC,OAAP,GAAiB,IAAIH,YAAJ,EAAjB"},"metadata":{},"sourceType":"script"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"var logLevel = \"info\";\n\nfunction dummy() {}\n\nfunction shouldLog(level) {\n var shouldLog = logLevel === \"info\" && level === \"info\" || [\"info\", \"warning\"].indexOf(logLevel) >= 0 && level === \"warning\" || [\"info\", \"warning\", \"error\"].indexOf(logLevel) >= 0 && level === \"error\";\n return shouldLog;\n}\n\nfunction logGroup(logFn) {\n return function (level, msg) {\n if (shouldLog(level)) {\n logFn(msg);\n }\n };\n}\n\nmodule.exports = function (level, msg) {\n if (shouldLog(level)) {\n if (level === \"info\") {\n console.log(msg);\n } else if (level === \"warning\") {\n console.warn(msg);\n } else if (level === \"error\") {\n console.error(msg);\n }\n }\n};\n\nvar group = console.group || dummy;\nvar groupCollapsed = console.groupCollapsed || dummy;\nvar groupEnd = console.groupEnd || dummy;\nmodule.exports.group = logGroup(group);\nmodule.exports.groupCollapsed = logGroup(groupCollapsed);\nmodule.exports.groupEnd = logGroup(groupEnd);\n\nmodule.exports.setLogLevel = function (level) {\n logLevel = level;\n};\n\nmodule.exports.formatError = function (err) {\n var message = err.message;\n var stack = err.stack;\n\n if (!stack) {\n return message;\n } else if (stack.indexOf(message) < 0) {\n return message + \"\\n\" + stack;\n } else {\n return stack;\n }\n};","map":{"version":3,"names":["logLevel","dummy","shouldLog","level","indexOf","logGroup","logFn","msg","module","exports","console","log","warn","error","group","groupCollapsed","groupEnd","setLogLevel","formatError","err","message","stack"],"sources":["/Users/kientran/.nvm/versions/node/v14.18.1/lib/node_modules/expo-cli/node_modules/webpack/hot/log.js"],"sourcesContent":["var logLevel = \"info\";\n\nfunction dummy() {}\n\nfunction shouldLog(level) {\n\tvar shouldLog =\n\t\t(logLevel === \"info\" && level === \"info\") ||\n\t\t([\"info\", \"warning\"].indexOf(logLevel) >= 0 && level === \"warning\") ||\n\t\t([\"info\", \"warning\", \"error\"].indexOf(logLevel) >= 0 && level === \"error\");\n\treturn shouldLog;\n}\n\nfunction logGroup(logFn) {\n\treturn function(level, msg) {\n\t\tif (shouldLog(level)) {\n\t\t\tlogFn(msg);\n\t\t}\n\t};\n}\n\nmodule.exports = function(level, msg) {\n\tif (shouldLog(level)) {\n\t\tif (level === \"info\") {\n\t\t\tconsole.log(msg);\n\t\t} else if (level === \"warning\") {\n\t\t\tconsole.warn(msg);\n\t\t} else if (level === \"error\") {\n\t\t\tconsole.error(msg);\n\t\t}\n\t}\n};\n\n/* eslint-disable node/no-unsupported-features/node-builtins */\nvar group = console.group || dummy;\nvar groupCollapsed = console.groupCollapsed || dummy;\nvar groupEnd = console.groupEnd || dummy;\n/* eslint-enable node/no-unsupported-features/node-builtins */\n\nmodule.exports.group = logGroup(group);\n\nmodule.exports.groupCollapsed = logGroup(groupCollapsed);\n\nmodule.exports.groupEnd = logGroup(groupEnd);\n\nmodule.exports.setLogLevel = function(level) {\n\tlogLevel = level;\n};\n\nmodule.exports.formatError = function(err) {\n\tvar message = err.message;\n\tvar stack = err.stack;\n\tif (!stack) {\n\t\treturn message;\n\t} else if (stack.indexOf(message) < 0) {\n\t\treturn message + \"\\n\" + stack;\n\t} else {\n\t\treturn stack;\n\t}\n};\n"],"mappings":"AAAA,IAAIA,QAAQ,GAAG,MAAf;;AAEA,SAASC,KAAT,GAAiB,CAAE;;AAEnB,SAASC,SAAT,CAAmBC,KAAnB,EAA0B;EACzB,IAAID,SAAS,GACXF,QAAQ,KAAK,MAAb,IAAuBG,KAAK,KAAK,MAAlC,IACC,CAAC,MAAD,EAAS,SAAT,EAAoBC,OAApB,CAA4BJ,QAA5B,KAAyC,CAAzC,IAA8CG,KAAK,KAAK,SADzD,IAEC,CAAC,MAAD,EAAS,SAAT,EAAoB,OAApB,EAA6BC,OAA7B,CAAqCJ,QAArC,KAAkD,CAAlD,IAAuDG,KAAK,KAAK,OAHnE;EAIA,OAAOD,SAAP;AACA;;AAED,SAASG,QAAT,CAAkBC,KAAlB,EAAyB;EACxB,OAAO,UAASH,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AP;EACA,CAFD,MAEO,IAAIC,KAAK,CAACjB,OAAN,CAAcgB,OAAd,IAAyB,CAA7B,EAAgC;IACtC,OAAOA,OAAO,GAAG,IAAV,GAAiBC,KAAxB;EACA,CAFM,MAEA;IACN,OAAOA,KAAP;EACA;AACD,CAVD"},"metadata":{},"sourceType":"script"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"var isWebColor = function isWebColor(color) {\n return color === 'currentcolor' || color === 'currentColor' || color === 'inherit' || color.indexOf('var(') === 0;\n};\n\nexport default isWebColor;","map":{"version":3,"names":["isWebColor","color","indexOf"],"sources":["/Volumes/ExternalSSD/Projects/hero-design/packages/rn/node_modules/react-native-web/dist/modules/isWebColor/index.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nvar isWebColor = function isWebColor(color) {\n return color === 'currentcolor' || color === 'currentColor' || color === 'inherit' || color.indexOf('var(') === 0;\n};\n\nexport default isWebColor;"],"mappings":"AAQA,IAAIA,UAAU,GAAG,SAASA,UAAT,CAAoBC,KAApB,EAA2B;EAC1C,OAAOA,KAAK,KAAK,cAAV,IAA4BA,KAAK,KAAK,cAAtC,IAAwDA,KAAK,KAAK,SAAlE,IAA+EA,KAAK,CAACC,OAAN,CAAc,MAAd,MAA0B,CAAhH;AACD,CAFD;;AAIA,eAAeF,UAAf"},"metadata":{},"sourceType":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import createStyleResolver from \"./createStyleResolver\";\nvar styleResolver = createStyleResolver();\nexport default styleResolver;","map":{"version":3,"names":["createStyleResolver","styleResolver"],"sources":["/Volumes/ExternalSSD/Projects/hero-design/packages/rn/node_modules/react-native-web/dist/exports/StyleSheet/styleResolver.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport createStyleResolver from './createStyleResolver';\nvar styleResolver = createStyleResolver();\nexport default styleResolver;"],"mappings":"AAQA,OAAOA,mBAAP;AACA,IAAIC,aAAa,GAAGD,mBAAmB,EAAvC;AACA,eAAeC,aAAf"},"metadata":{},"sourceType":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport invariant from 'invariant';\nimport NativeEventEmitter from \"react-native-web/dist/exports/NativeEventEmitter\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nvar nativeEmitterSubscriptionKey = '@@nativeEmitterSubscription@@';\nexport var EventEmitter = function () {\n function EventEmitter(nativeModule) {\n _classCallCheck(this, EventEmitter);\n\n this._listenerCount = 0;\n this._nativeModule = nativeModule;\n this._eventEmitter = new NativeEventEmitter(nativeModule);\n }\n\n _createClass(EventEmitter, [{\n key: \"addListener\",\n value: function addListener(eventName, listener) {\n var _this = this,\n _subscription;\n\n if (!this._listenerCount && Platform.OS !== 'ios' && this._nativeModule.startObserving) {\n this._nativeModule.startObserving();\n }\n\n this._listenerCount++;\n\n var nativeEmitterSubscription = this._eventEmitter.addListener(eventName, listener);\n\n var subscription = (_subscription = {}, _defineProperty(_subscription, nativeEmitterSubscriptionKey, nativeEmitterSubscription), _defineProperty(_subscription, \"remove\", function remove() {\n _this.removeSubscription(subscription);\n }), _subscription);\n return subscription;\n }\n }, {\n key: \"removeAllListeners\",\n value: function removeAllListeners(eventName) {\n var removedListenerCount = this._eventEmitter.listenerCount ? this._eventEmitter.listenerCount(eventName) : this._eventEmitter.listeners(eventName).length;\n\n this._eventEmitter.removeAllListeners(eventName);\n\n this._listenerCount -= removedListenerCount;\n invariant(this._listenerCount >= 0, \"EventEmitter must have a non-negative number of listeners\");\n\n if (!this._listenerCount && Platform.OS !== 'ios' && this._nativeModule.stopObserving) {\n this._nativeModule.stopObserving();\n }\n }\n }, {\n key: \"removeSubscription\",\n value: function removeSubscription(subscription) {\n var nativeEmitterSubscription = subscription[nativeEmitterSubscriptionKey];\n\n if (!nativeEmitterSubscription) {\n return;\n }\n\n if ('remove' in nativeEmitterSubscription) {\n nativeEmitterSubscription.remove();\n } else if ('removeSubscription' in this._eventEmitter) {\n this._eventEmitter.removeSubscription(nativeEmitterSubscription);\n }\n\n this._listenerCount--;\n delete subscription[nativeEmitterSubscriptionKey];\n\n subscription.remove = function () {};\n\n if (!this._listenerCount && Platform.OS !== 'ios' && this._nativeModule.stopObserving) {\n this._nativeModule.stopObserving();\n }\n }\n }, {\n key: \"emit\",\n value: function emit(eventName) {\n var _this$_eventEmitter;\n\n for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n params[_key - 1] = arguments[_key];\n }\n\n (_this$_eventEmitter = this._eventEmitter).emit.apply(_this$_eventEmitter, [eventName].concat(params));\n }\n }]);\n\n return EventEmitter;\n}();","map":{"version":3,"sources":["../src/EventEmitter.ts"],"names":[],"mappings":";;;AAAA,OAAO,SAAP,MAAsB,WAAtB;;;AAGA,IAAM,4BAA4B,GAAG,+BAArC;AAiBA,WAAa,YAAb;EAKE,sBAAY,YAAZ,EAAsC;IAAA;;IAAA,KAJtC,cAIsC,GAJrB,CAIqB;IACpC,KAAK,aAAL,GAAqB,YAArB;IACA,KAAK,aAAL,GAAqB,IAAI,kBAAJ,CAAuB,YAAvB,CAArB;EACD;;EARH;IAAA;IAAA,4BAUiB,SAVjB,EAUoC,QAVpC,EAUgE;MAAA;MAAA;;MAC5D,IAAI,CAAC,KAAK,cAAN,IAAwB,QAAQ,CAAC,EAAT,KAAgB,KAAxC,IAAiD,KAAK,aAAL,CAAmB,cAAxE,EAAwF;QACtF,KAAK,aAAL,CAAmB,cAAnB;MACD;;MAED,KAAK,cAAL;;MACA,IAAM,yBAAyB,GAAG,KAAK,aAAL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,KAAK,aAAL,CAAmB,aAAnB;MACD;IACF;EArEH;IAAA;IAAA,qBAuEO,SAvEP,EAuE0C;MAAA;;MAAA,kCAAb,MAAa;QAAb,MAAa;MAAA;;MACtC,4BAAK,aAAL,EAAmB,IAAnB,6BAAwB,SAAxB,SAAsC,MAAtC;IACD;EAzEH;;EAAA;AAAA","sourcesContent":["import invariant from 'invariant';\nimport { NativeEventEmitter, Platform } from 'react-native';\n\nconst nativeEmitterSubscriptionKey = '@@nativeEmitterSubscription@@';\n\ntype NativeModule = {\n startObserving?: () => void;\n stopObserving?: () => void;\n addListener: (eventName: string) => void;\n removeListeners: (count: number) => void;\n};\n\n// @needsAudit\nexport type Subscription = {\n /**\n * A method to unsubscribe the listener.\n */\n remove: () => void;\n};\n\nexport class EventEmitter {\n _listenerCount = 0;\n _nativeModule: NativeModule;\n _eventEmitter: NativeEventEmitter;\n\n constructor(nativeModule: NativeModule) {\n this._nativeModule = nativeModule;\n this._eventEmitter = new NativeEventEmitter(nativeModule as any);\n }\n\n addListener<T>(eventName: string, listener: (event: T) => void): Subscription {\n if (!this._listenerCount && Platform.OS !== 'ios' && this._nativeModule.startObserving) {\n this._nativeModule.startObserving();\n }\n\n this._listenerCount++;\n const nativeEmitterSubscription = this._eventEmitter.addListener(eventName, listener);\n const subscription = {\n [nativeEmitterSubscriptionKey]: nativeEmitterSubscription,\n remove: () => {\n this.removeSubscription(subscription);\n },\n };\n return subscription;\n }\n\n removeAllListeners(eventName: string): void {\n // @ts-ignore: the EventEmitter interface has been changed in react-native@0.64.0\n const removedListenerCount = this._eventEmitter.listenerCount\n ? // @ts-ignore: this is available since 0.64\n this._eventEmitter.listenerCount(eventName)\n : // @ts-ignore: this is available in older versions\n this._eventEmitter.listeners(eventName).length;\n this._eventEmitter.removeAllListeners(eventName);\n this._listenerCount -= removedListenerCount;\n invariant(\n this._listenerCount >= 0,\n `EventEmitter must have a non-negative number of listeners`\n );\n\n if (!this._listenerCount && Platform.OS !== 'ios' && this._nativeModule.stopObserving) {\n this._nativeModule.stopObserving();\n }\n }\n\n removeSubscription(subscription: Subscription): void {\n const nativeEmitterSubscription = subscription[nativeEmitterSubscriptionKey];\n if (!nativeEmitterSubscription) {\n return;\n }\n\n if ('remove' in nativeEmitterSubscription) {\n // `react-native-web@0.17.1` doesn't support `removeSubscription`\n nativeEmitterSubscription.remove();\n } else if ('removeSubscription' in this._eventEmitter) {\n this._eventEmitter.removeSubscription(nativeEmitterSubscription!);\n }\n this._listenerCount--;\n\n // Ensure that the emitter's internal state remains correct even if `removeSubscription` is\n // called again with the same subscription\n delete subscription[nativeEmitterSubscriptionKey];\n\n // Release closed-over references to the emitter\n subscription.remove = () => {};\n\n if (!this._listenerCount && Platform.OS !== 'ios' && this._nativeModule.stopObserving) {\n this._nativeModule.stopObserving();\n }\n }\n\n emit(eventName: string, ...params: any[]): void {\n this._eventEmitter.emit(eventName, ...params);\n }\n}\n"],"sourceRoot":""},"metadata":{},"sourceType":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import warning from 'fbjs/lib/warning';\nvar invalidShortforms = {\n background: true,\n borderBottom: true,\n borderLeft: true,\n borderRight: true,\n borderTop: true,\n font: true,\n grid: true,\n outline: true,\n textDecoration: true\n};\n\nfunction error(message) {\n warning(false, message);\n}\n\nexport default function validate(key, styles) {\n var obj = styles[key];\n\n for (var k in obj) {\n var prop = k.trim();\n var value = obj[prop];\n var isInvalid = false;\n\n if (value === null) {\n continue;\n }\n\n if (typeof value === 'string' && value.indexOf('!important') > -1) {\n error(\"Invalid style declaration \\\"\" + prop + \":\" + value + \"\\\". Values cannot include \\\"!important\\\"\");\n isInvalid = true;\n } else {\n var suggestion = '';\n\n if (prop === 'animation' || prop === 'animationName') {\n suggestion = 'Did you mean \"animationKeyframes\"?';\n isInvalid = true;\n } else if (prop === 'direction') {\n suggestion = 'Did you mean \"writingDirection\"?';\n isInvalid = true;\n } else if (prop === 'verticalAlign') {\n suggestion = 'Did you mean \"textAlignVertical\"?';\n isInvalid = true;\n } else if (invalidShortforms[prop]) {\n suggestion = 'Please use long-form properties.';\n isInvalid = true;\n }\n\n if (suggestion !== '') {\n error(\"Invalid style property of \\\"\" + prop + \"\\\". \" + suggestion);\n }\n }\n\n if (isInvalid) {\n delete obj[k];\n }\n }\n}","map":{"version":3,"names":["warning","invalidShortforms","background","borderBottom","borderLeft","borderRight","borderTop","font","grid","outline","textDecoration","error","message","validate","key","styles","obj","k","prop","trim","value","isInvalid","indexOf","suggestion"],"sources":["/Volumes/ExternalSSD/Projects/hero-design/packages/rn/node_modules/react-native-web/dist/exports/StyleSheet/validate.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport warning from 'fbjs/lib/warning';\nvar invalidShortforms = {\n background: true,\n borderBottom: true,\n borderLeft: true,\n borderRight: true,\n borderTop: true,\n font: true,\n grid: true,\n outline: true,\n textDecoration: true\n};\n\nfunction error(message) {\n warning(false, message);\n}\n\nexport default function validate(key, styles) {\n var obj = styles[key];\n\n for (var k in obj) {\n var prop = k.trim();\n var value = obj[prop];\n var isInvalid = false;\n\n if (value === null) {\n continue;\n }\n\n if (typeof value === 'string' && value.indexOf('!important') > -1) {\n error(\"Invalid style declaration \\\"\" + prop + \":\" + value + \"\\\". Values cannot include \\\"!important\\\"\");\n isInvalid = true;\n } else {\n var suggestion = '';\n\n if (prop === 'animation' || prop === 'animationName') {\n suggestion = 'Did you mean \"animationKeyframes\"?'; // } else if (prop === 'boxShadow') {\n // suggestion = 'Did you mean \"shadow{Color,Offset,Opacity,Radius}\"?';\n\n isInvalid = true;\n } else if (prop === 'direction') {\n suggestion = 'Did you mean \"writingDirection\"?';\n isInvalid = true;\n } else if (prop === 'verticalAlign') {\n suggestion = 'Did you mean \"textAlignVertical\"?';\n isInvalid = true;\n } else if (invalidShortforms[prop]) {\n suggestion = 'Please use long-form properties.';\n isInvalid = true;\n }\n\n if (suggestion !== '') {\n error(\"Invalid style property of \\\"\" + prop + \"\\\". \" + suggestion);\n }\n }\n\n if (isInvalid) {\n delete obj[k];\n }\n }\n}"],"mappings":"AAQA,OAAOA,OAAP,MAAoB,kBAApB;AACA,IAAIC,iBAAiB,GAAG;EACtBC,UAAU,EAAE,IADU;EAEtBC,YAAY,EAAE,IAFQ;EAGtBC,UAAU,EAAE,IAHU;EAItBC,WAAW,EAAE,IAJS;EAKtBC,SAAS,EAAE,IALW;EAMtBC,IAAI,EAAE,IANgB;EAOtBC,IAAI,EAAE,IAPgB;EAQtBC,OAAO,EAAE,IARa;EAStBC,cAAc,EAAE;AATM,CAAxB;;AAYA,SAASC,KAAT,CAAeC,OAAf,EAAwB;EACtBZ,OAAO,CAAC,KAAD,EAAQY,OAAR,CAAP;AACD;;AAED,eAAe,SAASC,QAAT,CAAkBC,GAAlB,EAAuBC,MAAvB,EAA+B;EAC5C,IAAIC,GAAG,GAAGD,MAAM,CAACD,GAAD,CAAhB;;EAEA,KAAK,IAAIG,CAAT,IAAcD,GAAd,EAAmB;IACjB,IAAIE,IAAI,GAAGD,CAAC,CAACE,IAAF,EAAX;IACA,IAAIC,KAAK,GAAGJ,GAAG,CAACE,IAAD,CAAf;IACA,IAAIG,SAAS,GAAG,KAAhB;;IAEA,IAAID,KAAK,KAAK,IAAd,EAAoB;MAClB;IACD;;IAED,IAAI,OAAOA,KAAP,KAAiB,QAAjB,IAA6BA,KAAK,CAACE,OAAN,CAAc,YAAd,IAA8B,CAAC,CAAhE,EAAmE;MACjEX,KAAK,CAAC,iCAAiCO,IAAjC,GAAwC,GAAxC,GAA8CE,KAA9C,GAAsD,0CAAvD,CAAL;MACAC,SAAS,GAAG,IAAZ;IACD,CAHD,MAGO;MACL,IAAIE,UAAU,GAAG,EAAjB;;MAEA,IAAIL,IAAI,KAAK,WAAT,IAAwBA,IAAI,KAAK,eAArC,EAAsD;QACpDK,UAAU,GAAG,oCAAb;QAGAF,SAAS,GAAG,IAAZ;MACD,CALD,MAKO,IAAIH,IAAI,KAAK,WAAb,EAA0B;QAC/BK,UAAU,GAAG,kCAAb;QACAF,SAAS,GAAG,IAAZ;MACD,CAHM,MAGA,IAAIH,IAAI,KAAK,eAAb,EAA8B;QACnCK,UAAU,GAAG,mCAAb;QACAF,SAAS,GAAG,IAAZ;MACD,CAHM,MAGA,IAAIpB,iBAAiB,CAACiB,IAAD,CAArB,EAA6B;QAClCK,UAAU,GAAG,kCAAb;QACAF,SAAS,GAAG,IAAZ;MACD;;MAED,IAAIE,UAAU,KAAK,EAAnB,EAAuB;QACrBZ,KAAK,CAAC,iCAAiCO,IAAjC,GAAwC,MAAxC,GAAiDK,UAAlD,CAAL;MACD;IACF;;IAED,IAAIF,SAAJ,EAAe;MACb,OAAOL,GAAG,CAACC,CAAD,CAAV;IACD;EACF;AACF"},"metadata":{},"sourceType":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"'use strict';\n\nvar _EventSubscription = function () {\n function _EventSubscription(subscriber) {\n this.subscriber = subscriber;\n }\n\n var _proto = _EventSubscription.prototype;\n\n _proto.remove = function remove() {\n this.subscriber.removeSubscription(this);\n };\n\n return _EventSubscription;\n}();\n\nexport default _EventSubscription;","map":{"version":3,"names":["_EventSubscription","subscriber","_proto","prototype","remove","removeSubscription"],"sources":["/Volumes/ExternalSSD/Projects/hero-design/packages/rn/node_modules/react-native-web/dist/vendor/react-native/emitter/_EventSubscription.js"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * \n */\n'use strict';\n\n/**\n * EventSubscription represents a subscription to a particular event. It can\n * remove its own subscription.\n */\nvar _EventSubscription = /*#__PURE__*/function () {\n /**\n * @param {EventSubscriptionVendor} subscriber the subscriber that controls\n * this subscription.\n */\n function _EventSubscription(subscriber) {\n this.subscriber = subscriber;\n }\n /**\n * Removes this subscription from the subscriber that controls it.\n */\n\n\n var _proto = _EventSubscription.prototype;\n\n _proto.remove = function remove() {\n this.subscriber.removeSubscription(this);\n };\n\n return _EventSubscription;\n}();\n\nexport default _EventSubscription;"],"mappings":"AASA;;AAMA,IAAIA,kBAAkB,GAAgB,YAAY;EAKhD,SAASA,kBAAT,CAA4BC,UAA5B,EAAwC;IACtC,KAAKA,UAAL,GAAkBA,UAAlB;EACD;;EAMD,IAAIC,MAAM,GAAGF,kBAAkB,CAACG,SAAhC;;EAEAD,MAAM,CAACE,MAAP,GAAgB,SAASA,MAAT,GAAkB;IAChC,KAAKH,UAAL,CAAgBI,kBAAhB,CAAmC,IAAnC;EACD,CAFD;;EAIA,OAAOL,kBAAP;AACD,CApBqC,EAAtC;;AAsBA,eAAeA,kBAAf"},"metadata":{},"sourceType":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import Dimensions from \"../../exports/Dimensions\";\nimport findNodeHandle from \"../../exports/findNodeHandle\";\nimport invariant from 'fbjs/lib/invariant';\nimport Platform from \"../../exports/Platform\";\nimport TextInputState from \"../TextInputState\";\nimport UIManager from \"../../exports/UIManager\";\nimport warning from 'fbjs/lib/warning';\nvar emptyObject = {};\nvar IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16;\nvar ScrollResponderMixin = {\n scrollResponderMixinGetInitialState: function scrollResponderMixinGetInitialState() {\n return {\n isTouching: false,\n lastMomentumScrollBeginTime: 0,\n lastMomentumScrollEndTime: 0,\n observedScrollSinceBecomingResponder: false,\n becameResponderWhileAnimating: false\n };\n },\n scrollResponderHandleScrollShouldSetResponder: function scrollResponderHandleScrollShouldSetResponder() {\n return this.state.isTouching;\n },\n scrollResponderHandleStartShouldSetResponder: function scrollResponderHandleStartShouldSetResponder() {\n return false;\n },\n scrollResponderHandleStartShouldSetResponderCapture: function scrollResponderHandleStartShouldSetResponderCapture(e) {\n return this.scrollResponderIsAnimating();\n },\n scrollResponderHandleResponderReject: function scrollResponderHandleResponderReject() {\n warning(false, \"ScrollView doesn't take rejection well - scrolls anyway\");\n },\n scrollResponderHandleTerminationRequest: function scrollResponderHandleTerminationRequest() {\n return !this.state.observedScrollSinceBecomingResponder;\n },\n scrollResponderHandleTouchEnd: function scrollResponderHandleTouchEnd(e) {\n var nativeEvent = e.nativeEvent;\n this.state.isTouching = nativeEvent.touches.length !== 0;\n this.props.onTouchEnd && this.props.onTouchEnd(e);\n },\n scrollResponderHandleResponderRelease: function scrollResponderHandleResponderRelease(e) {\n this.props.onResponderRelease && this.props.onResponderRelease(e);\n var currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n\n if (!this.props.keyboardShouldPersistTaps && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput && !this.state.observedScrollSinceBecomingResponder && !this.state.becameResponderWhileAnimating) {\n this.props.onScrollResponderKeyboardDismissed && this.props.onScrollResponderKeyboardDismissed(e);\n TextInputState.blurTextInput(currentlyFocusedTextInput);\n }\n },\n scrollResponderHandleScroll: function scrollResponderHandleScroll(e) {\n this.state.observedScrollSinceBecomingResponder = true;\n this.props.onScroll && this.props.onScroll(e);\n },\n scrollResponderHandleResponderGrant: function scrollResponderHandleResponderGrant(e) {\n this.state.observedScrollSinceBecomingResponder = false;\n this.props.onResponderGrant && this.props.onResponderGrant(e);\n this.state.becameResponderWhileAnimating = this.scrollResponderIsAnimating();\n },\n scrollResponderHandleScrollBeginDrag: function scrollResponderHandleScrollBeginDrag(e) {\n this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);\n },\n scrollResponderHandleScrollEndDrag: function scrollResponderHandleScrollEndDrag(e) {\n this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);\n },\n scrollResponderHandleMomentumScrollBegin: function scrollResponderHandleMomentumScrollBegin(e) {\n this.state.lastMomentumScrollBeginTime = Date.now();\n this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);\n },\n scrollResponderHandleMomentumScrollEnd: function scrollResponderHandleMomentumScrollEnd(e) {\n this.state.lastMomentumScrollEndTime = Date.now();\n this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);\n },\n scrollResponderHandleTouchStart: function scrollResponderHandleTouchStart(e) {\n this.state.isTouching = true;\n this.props.onTouchStart && this.props.onTouchStart(e);\n },\n scrollResponderHandleTouchMove: function scrollResponderHandleTouchMove(e) {\n this.props.onTouchMove && this.props.onTouchMove(e);\n },\n scrollResponderIsAnimating: function scrollResponderIsAnimating() {\n var now = Date.now();\n var timeSinceLastMomentumScrollEnd = now - this.state.lastMomentumScrollEndTime;\n var isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || this.state.lastMomentumScrollEndTime < this.state.lastMomentumScrollBeginTime;\n return isAnimating;\n },\n scrollResponderGetScrollableNode: function scrollResponderGetScrollableNode() {\n return this.getScrollableNode ? this.getScrollableNode() : findNodeHandle(this);\n },\n scrollResponderScrollTo: function scrollResponderScrollTo(x, y, animated) {\n if (typeof x === 'number') {\n console.warn('`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.');\n } else {\n var _ref = x || emptyObject;\n\n x = _ref.x;\n y = _ref.y;\n animated = _ref.animated;\n }\n\n var node = this.scrollResponderGetScrollableNode();\n var left = x || 0;\n var top = y || 0;\n\n if (typeof node.scroll === 'function') {\n node.scroll({\n top: top,\n left: left,\n behavior: !animated ? 'auto' : 'smooth'\n });\n } else {\n node.scrollLeft = left;\n node.scrollTop = top;\n }\n },\n scrollResponderZoomTo: function scrollResponderZoomTo(rect, animated) {\n if (Platform.OS !== 'ios') {\n invariant('zoomToRect is not implemented');\n }\n },\n scrollResponderFlashScrollIndicators: function scrollResponderFlashScrollIndicators() {},\n scrollResponderScrollNativeHandleToKeyboard: function scrollResponderScrollNativeHandleToKeyboard(nodeHandle, additionalOffset, preventNegativeScrollOffset) {\n this.additionalScrollOffset = additionalOffset || 0;\n this.preventNegativeScrollOffset = !!preventNegativeScrollOffset;\n UIManager.measureLayout(nodeHandle, findNodeHandle(this.getInnerViewNode()), this.scrollResponderTextInputFocusError, this.scrollResponderInputMeasureAndScrollToKeyboard);\n },\n scrollResponderInputMeasureAndScrollToKeyboard: function scrollResponderInputMeasureAndScrollToKeyboard(left, top, width, height) {\n var keyboardScreenY = Dimensions.get('window').height;\n\n if (this.keyboardWillOpenTo) {\n keyboardScreenY = this.keyboardWillOpenTo.endCoordinates.screenY;\n }\n\n var scrollOffsetY = top - keyboardScreenY + height + this.additionalScrollOffset;\n\n if (this.preventNegativeScrollOffset) {\n scrollOffsetY = Math.max(0, scrollOffsetY);\n }\n\n this.scrollResponderScrollTo({\n x: 0,\n y: scrollOffsetY,\n animated: true\n });\n this.additionalOffset = 0;\n this.preventNegativeScrollOffset = false;\n },\n scrollResponderTextInputFocusError: function scrollResponderTextInputFocusError(e) {\n console.error('Error measuring text field: ', e);\n },\n UNSAFE_componentWillMount: function UNSAFE_componentWillMount() {\n this.keyboardWillOpenTo = null;\n this.additionalScrollOffset = 0;\n },\n scrollResponderKeyboardWillShow: function scrollResponderKeyboardWillShow(e) {\n this.keyboardWillOpenTo = e;\n this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e);\n },\n scrollResponderKeyboardWillHide: function scrollResponderKeyboardWillHide(e) {\n this.keyboardWillOpenTo = null;\n this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e);\n },\n scrollResponderKeyboardDidShow: function scrollResponderKeyboardDidShow(e) {\n if (e) {\n this.keyboardWillOpenTo = e;\n }\n\n this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e);\n },\n scrollResponderKeyboardDidHide: function scrollResponderKeyboardDidHide(e) {\n this.keyboardWillOpenTo = null;\n this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e);\n }\n};\nvar ScrollResponder = {\n Mixin: ScrollResponderMixin\n};\nexport default ScrollResponder;","map":{"version":3,"names":["Dimensions","findNodeHandle","invariant","Platform","TextInputState","UIManager","warning","emptyObject","IS_ANIMATING_TOUCH_START_THRESHOLD_MS","ScrollResponderMixin","scrollResponderMixinGetInitialState","isTouching","lastMomentumScrollBeginTime","lastMomentumScrollEndTime","observedScrollSinceBecomingResponder","becameResponderWhileAnimating","scrollResponderHandleScrollShouldSetResponder","state","scrollResponderHandleStartShouldSetResponder","scrollResponderHandleStartShouldSetResponderCapture","e","scrollResponderIsAnimating","scrollResponderHandleResponderReject","scrollResponderHandleTerminationRequest","scrollResponderHandleTouchEnd","nativeEvent","touches","length","props","onTouchEnd","scrollResponderHandleResponderRelease","onResponderRelease","currentlyFocusedTextInput","currentlyFocusedField","keyboardShouldPersistTaps","target","onScrollResponderKeyboardDismissed","blurTextInput","scrollResponderHandleScroll","onScroll","scrollResponderHandleResponderGrant","onResponderGrant","scrollResponderHandleScrollBeginDrag","onScrollBeginDrag","scrollResponderHandleScrollEndDrag","onScrollEndDrag","scrollResponderHandleMomentumScrollBegin","Date","now","onMomentumScrollBegin","scrollResponderHandleMomentumScrollEnd","onMomentumScrollEnd","scrollResponderHandleTouchStart","onTouchStart","scrollResponderHandleTouchMove","onTouchMove","timeSinceLastMomentumScrollEnd","isAnimating","scrollResponderGetScrollableNode","getScrollableNode","scrollResponderScrollTo","x","y","animated","console","warn","_ref","node","left","top","scroll","behavior","scrollLeft","scrollTop","scrollResponderZoomTo","rect","OS","scrollResponderFlashScrollIndicators","scrollResponderScrollNativeHandleToKeyboard","nodeHandle","additionalOffset","preventNegativeScrollOffset","additionalScrollOffset","measureLayout","getInnerViewNode","scrollResponderTextInputFocusError","scrollResponderInputMeasureAndScrollToKeyboard","width","height","keyboardScreenY","get","keyboardWillOpenTo","endCoordinates","screenY","scrollOffsetY","Math","max","error","UNSAFE_componentWillMount","scrollResponderKeyboardWillShow","onKeyboardWillShow","scrollResponderKeyboardWillHide","onKeyboardWillHide","scrollResponderKeyboardDidShow","onKeyboardDidShow","scrollResponderKeyboardDidHide","onKeyboardDidHide","ScrollResponder","Mixin"],"sources":["/Volumes/ExternalSSD/Projects/hero-design/packages/rn/node_modules/react-native-web/dist/modules/ScrollResponder/index.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport Dimensions from '../../exports/Dimensions';\nimport findNodeHandle from '../../exports/findNodeHandle';\nimport invariant from 'fbjs/lib/invariant';\nimport Platform from '../../exports/Platform';\nimport TextInputState from '../TextInputState';\nimport UIManager from '../../exports/UIManager';\nimport warning from 'fbjs/lib/warning';\n/**\n * Mixin that can be integrated in order to handle scrolling that plays well\n * with `ResponderEventPlugin`. Integrate with your platform specific scroll\n * views, or even your custom built (every-frame animating) scroll views so that\n * all of these systems play well with the `ResponderEventPlugin`.\n *\n * iOS scroll event timing nuances:\n * ===============================\n *\n *\n * Scrolling without bouncing, if you touch down:\n * -------------------------------\n *\n * 1. `onMomentumScrollBegin` (when animation begins after letting up)\n * ... physical touch starts ...\n * 2. `onTouchStartCapture` (when you press down to stop the scroll)\n * 3. `onTouchStart` (same, but bubble phase)\n * 4. `onResponderRelease` (when lifting up - you could pause forever before * lifting)\n * 5. `onMomentumScrollEnd`\n *\n *\n * Scrolling with bouncing, if you touch down:\n * -------------------------------\n *\n * 1. `onMomentumScrollBegin` (when animation begins after letting up)\n * ... bounce begins ...\n * ... some time elapses ...\n * ... physical touch during bounce ...\n * 2. `onMomentumScrollEnd` (Makes no sense why this occurs first during bounce)\n * 3. `onTouchStartCapture` (immediately after `onMomentumScrollEnd`)\n * 4. `onTouchStart` (same, but bubble phase)\n * 5. `onTouchEnd` (You could hold the touch start for a long time)\n * 6. `onMomentumScrollBegin` (When releasing the view starts bouncing back)\n *\n * So when we receive an `onTouchStart`, how can we tell if we are touching\n * *during* an animation (which then causes the animation to stop)? The only way\n * to tell is if the `touchStart` occurred immediately after the\n * `onMomentumScrollEnd`.\n *\n * This is abstracted out for you, so you can just call this.scrollResponderIsAnimating() if\n * necessary\n *\n * `ScrollResponder` also includes logic for blurring a currently focused input\n * if one is focused while scrolling. The `ScrollResponder` is a natural place\n * to put this logic since it can support not dismissing the keyboard while\n * scrolling, unless a recognized \"tap\"-like gesture has occurred.\n *\n * The public lifecycle API includes events for keyboard interaction, responder\n * interaction, and scrolling (among others). The keyboard callbacks\n * `onKeyboardWill/Did/*` are *global* events, but are invoked on scroll\n * responder's props so that you can guarantee that the scroll responder's\n * internal state has been updated accordingly (and deterministically) by\n * the time the props callbacks are invoke. Otherwise, you would always wonder\n * if the scroll responder is currently in a state where it recognizes new\n * keyboard positions etc. If coordinating scrolling with keyboard movement,\n * *always* use these hooks instead of listening to your own global keyboard\n * events.\n *\n * Public keyboard lifecycle API: (props callbacks)\n *\n * Standard Keyboard Appearance Sequence:\n *\n * this.props.onKeyboardWillShow\n * this.props.onKeyboardDidShow\n *\n * `onScrollResponderKeyboardDismissed` will be invoked if an appropriate\n * tap inside the scroll responder's scrollable region was responsible\n * for the dismissal of the keyboard. There are other reasons why the\n * keyboard could be dismissed.\n *\n * this.props.onScrollResponderKeyboardDismissed\n *\n * Standard Keyboard Hide Sequence:\n *\n * this.props.onKeyboardWillHide\n * this.props.onKeyboardDidHide\n */\n\nvar emptyObject = {};\nvar IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16;\nvar ScrollResponderMixin = {\n // mixins: [Subscribable.Mixin],\n scrollResponderMixinGetInitialState: function scrollResponderMixinGetInitialState() {\n return {\n isTouching: false,\n lastMomentumScrollBeginTime: 0,\n lastMomentumScrollEndTime: 0,\n // Reset to false every time becomes responder. This is used to:\n // - Determine if the scroll view has been scrolled and therefore should\n // refuse to give up its responder lock.\n // - Determine if releasing should dismiss the keyboard when we are in\n // tap-to-dismiss mode (!this.props.keyboardShouldPersistTaps).\n observedScrollSinceBecomingResponder: false,\n becameResponderWhileAnimating: false\n };\n },\n\n /**\n * Invoke this from an `onScroll` event.\n */\n scrollResponderHandleScrollShouldSetResponder: function scrollResponderHandleScrollShouldSetResponder() {\n return this.state.isTouching;\n },\n\n /**\n * Merely touch starting is not sufficient for a scroll view to become the\n * responder. Being the \"responder\" means that the very next touch move/end\n * event will result in an action/movement.\n *\n * Invoke this from an `onStartShouldSetResponder` event.\n *\n * `onStartShouldSetResponder` is used when the next move/end will trigger\n * some UI movement/action, but when you want to yield priority to views\n * nested inside of the view.\n *\n * There may be some cases where scroll views actually should return `true`\n * from `onStartShouldSetResponder`: Any time we are detecting a standard tap\n * that gives priority to nested views.\n *\n * - If a single tap on the scroll view triggers an action such as\n * recentering a map style view yet wants to give priority to interaction\n * views inside (such as dropped pins or labels), then we would return true\n * from this method when there is a single touch.\n *\n * - Similar to the previous case, if a two finger \"tap\" should trigger a\n * zoom, we would check the `touches` count, and if `>= 2`, we would return\n * true.\n *\n */\n scrollResponderHandleStartShouldSetResponder: function scrollResponderHandleStartShouldSetResponder() {\n return false;\n },\n\n /**\n * There are times when the scroll view wants to become the responder\n * (meaning respond to the next immediate `touchStart/touchEnd`), in a way\n * that *doesn't* give priority to nested views (hence the capture phase):\n *\n * - Currently animating.\n * - Tapping anywhere that is not the focused input, while the keyboard is\n * up (which should dismiss the keyboard).\n *\n * Invoke this from an `onStartShouldSetResponderCapture` event.\n */\n scrollResponderHandleStartShouldSetResponderCapture: function scrollResponderHandleStartShouldSetResponderCapture(e) {\n // First see if we want to eat taps while the keyboard is up\n // var currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n // if (!this.props.keyboardShouldPersistTaps &&\n // currentlyFocusedTextInput != null &&\n // e.target !== currentlyFocusedTextInput) {\n // return true;\n // }\n return this.scrollResponderIsAnimating();\n },\n\n /**\n * Invoke this from an `onResponderReject` event.\n *\n * Some other element is not yielding its role as responder. Normally, we'd\n * just disable the `UIScrollView`, but a touch has already began on it, the\n * `UIScrollView` will not accept being disabled after that. The easiest\n * solution for now is to accept the limitation of disallowing this\n * altogether. To improve this, find a way to disable the `UIScrollView` after\n * a touch has already started.\n */\n scrollResponderHandleResponderReject: function scrollResponderHandleResponderReject() {\n warning(false, \"ScrollView doesn't take rejection well - scrolls anyway\");\n },\n\n /**\n * We will allow the scroll view to give up its lock iff it acquired the lock\n * during an animation. This is a very useful default that happens to satisfy\n * many common user experiences.\n *\n * - Stop a scroll on the left edge, then turn that into an outer view's\n * backswipe.\n * - Stop a scroll mid-bounce at the top, continue pulling to have the outer\n * view dismiss.\n * - However, without catching the scroll view mid-bounce (while it is\n * motionless), if you drag far enough for the scroll view to become\n * responder (and therefore drag the scroll view a bit), any backswipe\n * navigation of a swipe gesture higher in the view hierarchy, should be\n * rejected.\n */\n scrollResponderHandleTerminationRequest: function scrollResponderHandleTerminationRequest() {\n return !this.state.observedScrollSinceBecomingResponder;\n },\n\n /**\n * Invoke this from an `onTouchEnd` event.\n *\n * @param {SyntheticEvent} e Event.\n */\n scrollResponderHandleTouchEnd: function scrollResponderHandleTouchEnd(e) {\n var nativeEvent = e.nativeEvent;\n this.state.isTouching = nativeEvent.touches.length !== 0;\n this.props.onTouchEnd && this.props.onTouchEnd(e);\n },\n\n /**\n * Invoke this from an `onResponderRelease` event.\n */\n scrollResponderHandleResponderRelease: function scrollResponderHandleResponderRelease(e) {\n this.props.onResponderRelease && this.props.onResponderRelease(e); // By default scroll views will unfocus a textField\n // if another touch occurs outside of it\n\n var currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n\n if (!this.props.keyboardShouldPersistTaps && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput && !this.state.observedScrollSinceBecomingResponder && !this.state.becameResponderWhileAnimating) {\n this.props.onScrollResponderKeyboardDismissed && this.props.onScrollResponderKeyboardDismissed(e);\n TextInputState.blurTextInput(currentlyFocusedTextInput);\n }\n },\n scrollResponderHandleScroll: function scrollResponderHandleScroll(e) {\n this.state.observedScrollSinceBecomingResponder = true;\n this.props.onScroll && this.props.onScroll(e);\n },\n\n /**\n * Invoke this from an `onResponderGrant` event.\n */\n scrollResponderHandleResponderGrant: function scrollResponderHandleResponderGrant(e) {\n this.state.observedScrollSinceBecomingResponder = false;\n this.props.onResponderGrant && this.props.onResponderGrant(e);\n this.state.becameResponderWhileAnimating = this.scrollResponderIsAnimating();\n },\n\n /**\n * Unfortunately, `onScrollBeginDrag` also fires when *stopping* the scroll\n * animation, and there's not an easy way to distinguish a drag vs. stopping\n * momentum.\n *\n * Invoke this from an `onScrollBeginDrag` event.\n */\n scrollResponderHandleScrollBeginDrag: function scrollResponderHandleScrollBeginDrag(e) {\n this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);\n },\n\n /**\n * Invoke this from an `onScrollEndDrag` event.\n */\n scrollResponderHandleScrollEndDrag: function scrollResponderHandleScrollEndDrag(e) {\n this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);\n },\n\n /**\n * Invoke this from an `onMomentumScrollBegin` event.\n */\n scrollResponderHandleMomentumScrollBegin: function scrollResponderHandleMomentumScrollBegin(e) {\n this.state.lastMomentumScrollBeginTime = Date.now();\n this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);\n },\n\n /**\n * Invoke this from an `onMomentumScrollEnd` event.\n */\n scrollResponderHandleMomentumScrollEnd: function scrollResponderHandleMomentumScrollEnd(e) {\n this.state.lastMomentumScrollEndTime = Date.now();\n this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);\n },\n\n /**\n * Invoke this from an `onTouchStart` event.\n *\n * Since we know that the `SimpleEventPlugin` occurs later in the plugin\n * order, after `ResponderEventPlugin`, we can detect that we were *not*\n * permitted to be the responder (presumably because a contained view became\n * responder). The `onResponderReject` won't fire in that case - it only\n * fires when a *current* responder rejects our request.\n *\n * @param {SyntheticEvent} e Touch Start event.\n */\n scrollResponderHandleTouchStart: function scrollResponderHandleTouchStart(e) {\n this.state.isTouching = true;\n this.props.onTouchStart && this.props.onTouchStart(e);\n },\n\n /**\n * Invoke this from an `onTouchMove` event.\n *\n * Since we know that the `SimpleEventPlugin` occurs later in the plugin\n * order, after `ResponderEventPlugin`, we can detect that we were *not*\n * permitted to be the responder (presumably because a contained view became\n * responder). The `onResponderReject` won't fire in that case - it only\n * fires when a *current* responder rejects our request.\n *\n * @param {SyntheticEvent} e Touch Start event.\n */\n scrollResponderHandleTouchMove: function scrollResponderHandleTouchMove(e) {\n this.props.onTouchMove && this.props.onTouchMove(e);\n },\n\n /**\n * A helper function for this class that lets us quickly determine if the\n * view is currently animating. This is particularly useful to know when\n * a touch has just started or ended.\n */\n scrollResponderIsAnimating: function scrollResponderIsAnimating() {\n var now = Date.now();\n var timeSinceLastMomentumScrollEnd = now - this.state.lastMomentumScrollEndTime;\n var isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || this.state.lastMomentumScrollEndTime < this.state.lastMomentumScrollBeginTime;\n return isAnimating;\n },\n\n /**\n * Returns the node that represents native view that can be scrolled.\n * Components can pass what node to use by defining a `getScrollableNode`\n * function otherwise `this` is used.\n */\n scrollResponderGetScrollableNode: function scrollResponderGetScrollableNode() {\n return this.getScrollableNode ? this.getScrollableNode() : findNodeHandle(this);\n },\n\n /**\n * A helper function to scroll to a specific point in the scrollview.\n * This is currently used to help focus on child textviews, but can also\n * be used to quickly scroll to any element we want to focus. Syntax:\n *\n * scrollResponderScrollTo(options: {x: number = 0; y: number = 0; animated: boolean = true})\n *\n * Note: The weird argument signature is due to the fact that, for historical reasons,\n * the function also accepts separate arguments as as alternative to the options object.\n * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.\n */\n scrollResponderScrollTo: function scrollResponderScrollTo(x, y, animated) {\n if (typeof x === 'number') {\n console.warn('`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.');\n } else {\n var _ref = x || emptyObject;\n\n x = _ref.x;\n y = _ref.y;\n animated = _ref.animated;\n }\n\n var node = this.scrollResponderGetScrollableNode();\n var left = x || 0;\n var top = y || 0;\n\n if (typeof node.scroll === 'function') {\n node.scroll({\n top: top,\n left: left,\n behavior: !animated ? 'auto' : 'smooth'\n });\n } else {\n node.scrollLeft = left;\n node.scrollTop = top;\n }\n },\n\n /**\n * A helper function to zoom to a specific rect in the scrollview. The argument has the shape\n * {x: number; y: number; width: number; height: number; animated: boolean = true}\n *\n * @platform ios\n */\n scrollResponderZoomTo: function scrollResponderZoomTo(rect, animated) // deprecated, put this inside the rect argument instead\n {\n if (Platform.OS !== 'ios') {\n invariant('zoomToRect is not implemented');\n }\n },\n\n /**\n * Displays the scroll indicators momentarily.\n */\n scrollResponderFlashScrollIndicators: function scrollResponderFlashScrollIndicators() {},\n\n /**\n * This method should be used as the callback to onFocus in a TextInputs'\n * parent view. Note that any module using this mixin needs to return\n * the parent view's ref in getScrollViewRef() in order to use this method.\n * @param {any} nodeHandle The TextInput node handle\n * @param {number} additionalOffset The scroll view's top \"contentInset\".\n * Default is 0.\n * @param {bool} preventNegativeScrolling Whether to allow pulling the content\n * down to make it meet the keyboard's top. Default is false.\n */\n scrollResponderScrollNativeHandleToKeyboard: function scrollResponderScrollNativeHandleToKeyboard(nodeHandle, additionalOffset, preventNegativeScrollOffset) {\n this.additionalScrollOffset = additionalOffset || 0;\n this.preventNegativeScrollOffset = !!preventNegativeScrollOffset;\n UIManager.measureLayout(nodeHandle, findNodeHandle(this.getInnerViewNode()), this.scrollResponderTextInputFocusError, this.scrollResponderInputMeasureAndScrollToKeyboard);\n },\n\n /**\n * The calculations performed here assume the scroll view takes up the entire\n * screen - even if has some content inset. We then measure the offsets of the\n * keyboard, and compensate both for the scroll view's \"contentInset\".\n *\n * @param {number} left Position of input w.r.t. table view.\n * @param {number} top Position of input w.r.t. table view.\n * @param {number} width Width of the text input.\n * @param {number} height Height of the text input.\n */\n scrollResponderInputMeasureAndScrollToKeyboard: function scrollResponderInputMeasureAndScrollToKeyboard(left, top, width, height) {\n var keyboardScreenY = Dimensions.get('window').height;\n\n if (this.keyboardWillOpenTo) {\n keyboardScreenY = this.keyboardWillOpenTo.endCoordinates.screenY;\n }\n\n var scrollOffsetY = top - keyboardScreenY + height + this.additionalScrollOffset; // By default, this can scroll with negative offset, pulling the content\n // down so that the target component's bottom meets the keyboard's top.\n // If requested otherwise, cap the offset at 0 minimum to avoid content\n // shifting down.\n\n if (this.preventNegativeScrollOffset) {\n scrollOffsetY = Math.max(0, scrollOffsetY);\n }\n\n this.scrollResponderScrollTo({\n x: 0,\n y: scrollOffsetY,\n animated: true\n });\n this.additionalOffset = 0;\n this.preventNegativeScrollOffset = false;\n },\n scrollResponderTextInputFocusError: function scrollResponderTextInputFocusError(e) {\n console.error('Error measuring text field: ', e);\n },\n\n /**\n * `componentWillMount` is the closest thing to a standard \"constructor\" for\n * React components.\n *\n * The `keyboardWillShow` is called before input focus.\n */\n UNSAFE_componentWillMount: function UNSAFE_componentWillMount() {\n this.keyboardWillOpenTo = null;\n this.additionalScrollOffset = 0; // this.addListenerOn(RCTDeviceEventEmitter, 'keyboardWillShow', this.scrollResponderKeyboardWillShow);\n // this.addListenerOn(RCTDeviceEventEmitter, 'keyboardWillHide', this.scrollResponderKeyboardWillHide);\n // this.addListenerOn(RCTDeviceEventEmitter, 'keyboardDidShow', this.scrollResponderKeyboardDidShow);\n // this.addListenerOn(RCTDeviceEventEmitter, 'keyboardDidHide', this.scrollResponderKeyboardDidHide);\n },\n\n /**\n * Warning, this may be called several times for a single keyboard opening.\n * It's best to store the information in this method and then take any action\n * at a later point (either in `keyboardDidShow` or other).\n *\n * Here's the order that events occur in:\n * - focus\n * - willShow {startCoordinates, endCoordinates} several times\n * - didShow several times\n * - blur\n * - willHide {startCoordinates, endCoordinates} several times\n * - didHide several times\n *\n * The `ScrollResponder` providesModule callbacks for each of these events.\n * Even though any user could have easily listened to keyboard events\n * themselves, using these `props` callbacks ensures that ordering of events\n * is consistent - and not dependent on the order that the keyboard events are\n * subscribed to. This matters when telling the scroll view to scroll to where\n * the keyboard is headed - the scroll responder better have been notified of\n * the keyboard destination before being instructed to scroll to where the\n * keyboard will be. Stick to the `ScrollResponder` callbacks, and everything\n * will work.\n *\n * WARNING: These callbacks will fire even if a keyboard is displayed in a\n * different navigation pane. Filter out the events to determine if they are\n * relevant to you. (For example, only if you receive these callbacks after\n * you had explicitly focused a node etc).\n */\n scrollResponderKeyboardWillShow: function scrollResponderKeyboardWillShow(e) {\n this.keyboardWillOpenTo = e;\n this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e);\n },\n scrollResponderKeyboardWillHide: function scrollResponderKeyboardWillHide(e) {\n this.keyboardWillOpenTo = null;\n this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e);\n },\n scrollResponderKeyboardDidShow: function scrollResponderKeyboardDidShow(e) {\n // TODO(7693961): The event for DidShow is not available on iOS yet.\n // Use the one from WillShow and do not assign.\n if (e) {\n this.keyboardWillOpenTo = e;\n }\n\n this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e);\n },\n scrollResponderKeyboardDidHide: function scrollResponderKeyboardDidHide(e) {\n this.keyboardWillOpenTo = null;\n this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e);\n }\n};\nvar ScrollResponder = {\n Mixin: ScrollResponderMixin\n};\nexport default ScrollResponder;"],"mappings":"AASA,OAAOA,UAAP;AACA,OAAOC,cAAP;AACA,OAAOC,SAAP,MAAsB,oBAAtB;AACA,OAAOC,QAAP;AACA,OAAOC,cAAP;AACA,OAAOC,SAAP;AACA,OAAOC,OAAP,MAAoB,kBAApB;AA+EA,IAAIC,WAAW,GAAG,EAAlB;AACA,IAAIC,qCAAqC,GAAG,EAA5C;AACA,IAAIC,oBAAoB,GAAG;EAEzBC,mCAAmC,EAAE,SAASA,mCAAT,GAA+C;IAClF,OAAO;MACLC,UAAU,EAAE,KADP;MAELC,2BAA2B,EAAE,CAFxB;MAGLC,yBAAyB,EAAE,CAHtB;MASLC,oCAAoC,EAAE,KATjC;MAULC,6BAA6B,EAAE;IAV1B,CAAP;EAYD,CAfwB;EAoBzBC,6CAA6C,EAAE,SAASA,6CAAT,GAAyD;IACtG,OAAO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/D,KAAL,CAAW0E,kBAAX,IAAiC,KAAK1E,KAAL,CAAW0E,kBAAX,CAA8BlF,CAA9B,CAAjC;EACD,CAxYwB;EAyYzBmF,8BAA8B,EAAE,SAASA,8BAAT,CAAwCnF,CAAxC,EAA2C;IAGzE,IAAIA,CAAJ,EAAO;MACL,KAAKuE,kBAAL,GAA0BvE,CAA1B;IACD;;IAED,KAAKQ,KAAL,CAAW4E,iBAAX,IAAgC,KAAK5E,KAAL,CAAW4E,iBAAX,CAA6BpF,CAA7B,CAAhC;EACD,CAjZwB;EAkZzBqF,8BAA8B,EAAE,SAASA,8BAAT,CAAwCrF,CAAxC,EAA2C;IACzE,KAAKuE,kBAAL,GAA0B,IAA1B;IACA,KAAK/D,KAAL,CAAW8E,iBAAX,IAAgC,KAAK9E,KAAL,CAAW8E,iBAAX,CAA6BtF,CAA7B,CAAhC;EACD;AArZwB,CAA3B;AAuZA,IAAIuF,eAAe,GAAG;EACpBC,KAAK,EAAEnG;AADa,CAAtB;AAGA,eAAekG,eAAf"},"metadata":{},"sourceType":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { __spreadArray, __read, __assign, __values } from 'tslib';\nimport React, { useContext, useMemo, createElement } from 'react';\nimport 'shallowequal';\nimport { prefixer, stringify, serialize, compile, middleware, RULESET } from 'stylis';\nimport unitless from '@emotion/unitless';\nimport transformDeclPairs from 'css-to-react-native';\nimport { parse } from 'postcss';\nvar EMPTY_ARRAY = Object.freeze([]);\nvar EMPTY_OBJECT = Object.freeze({});\nvar errorMap = {\n '1': 'Cannot create styled-component for component: %s.\\n\\n',\n '2': \"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\\n\\n- Are you trying to reuse it across renders?\\n- Are you accidentally calling collectStyles twice?\\n\\n\",\n '3': 'Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\\n\\n',\n '4': 'The `StyleSheetManager` expects a valid target or sheet prop!\\n\\n- Does this error occur on the client and is your target falsy?\\n- Does this error occur on the server and is the sheet falsy?\\n\\n',\n '5': 'The clone method cannot be used on the client!\\n\\n- Are you running in a client-like environment on the server?\\n- Are you trying to run SSR on the client?\\n\\n',\n '6': \"Trying to insert a new style tag, but the given Node is unmounted!\\n\\n- Are you using a custom target that isn't mounted?\\n- Does your document not have a valid head element?\\n- Have you accidentally removed a style tag manually?\\n\\n\",\n '7': 'ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\\n\\n```js\\ntheme={() => ({})}\\n```\\n\\n',\n '8': 'ThemeProvider: Please make your \"theme\" prop an object.\\n\\n',\n '9': 'Missing document `<head>`\\n\\n',\n '10': 'Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\\n\\n',\n '11': '_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\\n\\n',\n '12': 'It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\\\`\\\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\\n\\n',\n '13': '%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\\n\\n',\n '14': 'ThemeProvider: \"theme\" prop is required.\\n\\n',\n '15': \"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\\n\\n```js\\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\\n```\\n\\n\",\n '16': \"Reached the limit of how many styled components may be created at group %s.\\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\\nas for instance in your render method then you may be running into this limitation.\\n\\n\",\n '17': \"CSSStyleSheet could not be found on HTMLStyleElement.\\nHas styled-components' style tag been unmounted or altered by another script?\\n\"\n};\nvar ERRORS = process.env.NODE_ENV !== 'production' ? errorMap : {};\n\nfunction format() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var a = args[0];\n var b = [];\n\n for (var c = 1, len = args.length; c < len; c += 1) {\n b.push(args[c]);\n }\n\n b.forEach(function (d) {\n a = a.replace(/%[a-z]/, d);\n });\n return a;\n}\n\nfunction throwStyledComponentsError(code) {\n var interpolations = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n interpolations[_i - 1] = arguments[_i];\n }\n\n if (process.env.NODE_ENV === 'production') {\n return new Error(\"An error occurred. See https://git.io/JUIaE#\".concat(code, \" for more information.\").concat(interpolations.length > 0 ? \" Args: \".concat(interpolations.join(', ')) : ''));\n } else {\n return new Error(format.apply(void 0, __spreadArray([ERRORS[code]], __read(interpolations), false)).trim());\n }\n}\n\nvar SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled';\nvar SC_ATTR_ACTIVE = 'active';\nvar SC_ATTR_VERSION = 'data-styled-version';\nvar SC_VERSION = \"6.0.0-alpha.5\";\nvar SPLITTER = '/*!sc*/\\n';\nvar IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;\nvar DISABLE_SPEEDY = Boolean(typeof SC_DISABLE_SPEEDY === 'boolean' ? SC_DISABLE_SPEEDY : typeof process !== 'undefined' && typeof process.env.REACT_APP_SC_DISABLE_SPEEDY !== 'undefined' && process.env.REACT_APP_SC_DISABLE_SPEEDY !== '' ? process.env.REACT_APP_SC_DISABLE_SPEEDY === 'false' ? false : process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process !== 'undefined' && typeof process.env.SC_DISABLE_SPEEDY !== 'undefined' && process.env.SC_DISABLE_SPEEDY !== '' ? process.env.SC_DISABLE_SPEEDY === 'false' ? false : process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== 'production');\n\nvar makeGroupedTag = function makeGroupedTag(tag) {\n return new DefaultGroupedTag(tag);\n};\n\nvar BASE_SIZE = 1 << 9;\n\nvar DefaultGroupedTag = function () {\n function DefaultGroupedTag(tag) {\n this.groupSizes = new Uint32Array(BASE_SIZE);\n this.length = BASE_SIZE;\n this.tag = tag;\n }\n\n DefaultGroupedTag.prototype.indexOfGroup = function (group) {\n var index = 0;\n\n for (var i = 0; i < group; i++) {\n index += this.groupSizes[i];\n }\n\n return index;\n };\n\n DefaultGroupedTag.prototype.insertRules = function (group, rules) {\n if (group >= this.groupSizes.length) {\n var oldBuffer = this.groupSizes;\n var oldSize = oldBuffer.length;\n var newSize = oldSize;\n\n while (group >= newSize) {\n newSize <<= 1;\n\n if (newSize < 0) {\n throw throwStyledComponentsError(16, \"\".concat(group));\n }\n }\n\n this.groupSizes = new Uint32Array(newSize);\n this.groupSizes.set(oldBuffer);\n this.length = newSize;\n\n for (var i = oldSize; i < newSize; i++) {\n this.groupSizes[i] = 0;\n }\n }\n\n var ruleIndex = this.indexOfGroup(group + 1);\n\n if (Array.isArray(rules)) {\n for (var i = 0, l = rules.length; i < l; i++) {\n if (this.tag.insertRule(ruleIndex, rules[i])) {\n this.groupSizes[group]++;\n ruleIndex++;\n }\n }\n } else {\n if (this.tag.insertRule(ruleIndex, rules)) {\n this.groupSizes[group]++;\n }\n }\n };\n\n DefaultGroupedTag.prototype.clearGroup = function (group) {\n if (group < this.length) {\n var length_1 = this.groupSizes[group];\n var startIndex = this.indexOfGroup(group);\n var endIndex = startIndex + length_1;\n this.groupSizes[group] = 0;\n\n for (var i = startIndex; i < endIndex; i++) {\n this.tag.deleteRule(startIndex);\n }\n }\n };\n\n DefaultGroupedTag.prototype.getGroup = function (group) {\n var css = '';\n\n if (group >= this.length || this.groupSizes[group] === 0) {\n return css;\n }\n\n var length = this.groupSizes[group];\n var startIndex = this.indexOfGroup(group);\n var endIndex = startIndex + length;\n\n for (var i = startIndex; i < endIndex; i++) {\n css += \"\".concat(this.tag.getRule(i)).concat(SPLITTER);\n }\n\n return css;\n };\n\n return DefaultGroupedTag;\n}();\n\nvar MAX_SMI = 1 << 31 - 1;\nvar groupIDRegister = new Map();\nvar reverseRegister = new Map();\nvar nextFreeGroup = 1;\n\nvar getGroupForId = function getGroupForId(id) {\n if (groupIDRegister.has(id)) {\n return groupIDRegister.get(id);\n }\n\n while (reverseRegister.has(nextFreeGroup)) {\n nextFreeGroup++;\n }\n\n var group = nextFreeGroup++;\n\n if (process.env.NODE_ENV !== 'production' && ((group | 0) < 0 || group > MAX_SMI)) {\n throw throwStyledComponentsError(16, \"\".concat(group));\n }\n\n groupIDRegister.set(id, group);\n reverseRegister.set(group, id);\n return group;\n};\n\nvar getIdForGroup = function getIdForGroup(group) {\n return reverseRegister.get(group);\n};\n\nvar setGroupForId = function setGroupForId(id, group) {\n groupIDRegister.set(id, group);\n reverseRegister.set(group, id);\n};\n\nvar SELECTOR = \"style[\".concat(SC_ATTR, \"][\").concat(SC_ATTR_VERSION, \"=\\\"\").concat(SC_VERSION, \"\\\"]\");\nvar MARKER_RE = new RegExp(\"^\".concat(SC_ATTR, \"\\\\.g(\\\\d+)\\\\[id=\\\"([\\\\w\\\\d-]+)\\\"\\\\].*?\\\"([^\\\"]*)\"));\n\nvar outputSheet = function outputSheet(sheet) {\n var tag = sheet.getTag();\n var length = tag.length;\n var css = '';\n\n var _loop_1 = function _loop_1(group) {\n var id = getIdForGroup(group);\n if (id === undefined) return \"continue\";\n var names = sheet.names.get(id);\n var rules = tag.getGroup(group);\n if (names === undefined || rules.length === 0) return \"continue\";\n var selector = \"\".concat(SC_ATTR, \".g\").concat(group, \"[id=\\\"\").concat(id, \"\\\"]\");\n var content = '';\n\n if (names !== undefined) {\n names.forEach(function (name) {\n if (name.length > 0) {\n content += \"\".concat(name, \",\");\n }\n });\n }\n\n css += \"\".concat(rules).concat(selector, \"{content:\\\"\").concat(content, \"\\\"}\").concat(SPLITTER);\n };\n\n for (var group = 0; group < length; group++) {\n _loop_1(group);\n }\n\n return css;\n};\n\nvar rehydrateNamesFromContent = function rehydrateNamesFromContent(sheet, id, content) {\n var names = content.split(',');\n var name;\n\n for (var i = 0, l = names.length; i < l; i++) {\n if (name = names[i]) {\n sheet.registerName(id, name);\n }\n }\n};\n\nvar rehydrateSheetFromTag = function rehydrateSheetFromTag(sheet, style) {\n var _a;\n\n var parts = ((_a = style.textContent) !== null && _a !== void 0 ? _a : '').split(SPLITTER);\n var rules = [];\n\n for (var i = 0, l = parts.length; i < l; i++) {\n var part = parts[i].trim();\n if (!part) continue;\n var marker = part.match(MARKER_RE);\n\n if (marker) {\n var group = parseInt(marker[1], 10) | 0;\n var id = marker[2];\n\n if (group !== 0) {\n setGroupForId(id, group);\n rehydrateNamesFromContent(sheet, id, marker[3]);\n sheet.getTag().insertRules(group, rules);\n }\n\n rules.length = 0;\n } else {\n rules.push(part);\n }\n }\n};\n\nvar rehydrateSheet = function rehydrateSheet(sheet) {\n var nodes = document.querySelectorAll(SELECTOR);\n\n for (var i = 0, l = nodes.length; i < l; i++) {\n var node = nodes[i];\n\n if (node && node.getAttribute(SC_ATTR) !== SC_ATTR_ACTIVE) {\n rehydrateSheetFromTag(sheet, node);\n\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n }\n }\n};\n\nfunction getNonce() {\n return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n}\n\nvar ELEMENT_TYPE = 1;\n\nvar findLastStyleTag = function findLastStyleTag(target) {\n var childNodes = target.childNodes;\n\n for (var i = childNodes.length; i >= 0; i--) {\n var child = childNodes[i];\n\n if (child && child.nodeType === ELEMENT_TYPE && child.hasAttribute(SC_ATTR)) {\n return child;\n }\n }\n\n return undefined;\n};\n\nvar makeStyleTag = function makeStyleTag(target) {\n var head = document.head;\n var parent = target || head;\n var style = document.createElement('style');\n var prevStyle = findLastStyleTag(parent);\n var nextSibling = prevStyle !== undefined ? prevStyle.nextSibling : null;\n style.setAttribute(SC_ATTR, SC_ATTR_ACTIVE);\n style.setAttribute(SC_ATTR_VERSION, SC_VERSION);\n var nonce = getNonce();\n if (nonce) style.setAttribute('nonce', nonce);\n parent.insertBefore(style, nextSibling);\n return style;\n};\n\nvar getSheet = function getSheet(tag) {\n if (tag.sheet) {\n return tag.sheet;\n }\n\n var styleSheets = document.styleSheets;\n\n for (var i = 0, l = styleSheets.length; i < l; i++) {\n var sheet = styleSheets[i];\n\n if (sheet.ownerNode === tag) {\n return sheet;\n }\n }\n\n throw throwStyledComponentsError(17);\n};\n\nvar makeTag = function makeTag(_a) {\n var isServer = _a.isServer,\n useCSSOMInjection = _a.useCSSOMInjection,\n target = _a.target;\n\n if (isServer) {\n return new VirtualTag(target);\n } else if (useCSSOMInjection) {\n return new CSSOMTag(target);\n } else {\n return new TextTag(target);\n }\n};\n\nvar CSSOMTag = function () {\n function CSSOMTag(target) {\n var element = this.element = makeStyleTag(target);\n element.appendChild(document.createTextNode(''));\n this.sheet = getSheet(element);\n this.length = 0;\n }\n\n CSSOMTag.prototype.insertRule = function (index, rule) {\n try {\n this.sheet.insertRule(rule, index);\n this.length++;\n return true;\n } catch (_error) {\n return false;\n }\n };\n\n CSSOMTag.prototype.deleteRule = function (index) {\n this.sheet.deleteRule(index);\n this.length--;\n };\n\n CSSOMTag.prototype.getRule = function (index) {\n var rule = this.sheet.cssRules[index];\n\n if (rule !== undefined && typeof rule.cssText === 'string') {\n return rule.cssText;\n } else {\n return '';\n }\n };\n\n return CSSOMTag;\n}();\n\nvar TextTag = function () {\n function TextTag(target) {\n var element = this.element = makeStyleTag(target);\n this.nodes = element.childNodes;\n this.length = 0;\n }\n\n TextTag.prototype.insertRule = function (index, rule) {\n if (index <= this.length && index >= 0) {\n var node = document.createTextNode(rule);\n var refNode = this.nodes[index];\n this.element.insertBefore(node, refNode || null);\n this.length++;\n return true;\n } else {\n return false;\n }\n };\n\n TextTag.prototype.deleteRule = function (index) {\n this.element.removeChild(this.nodes[index]);\n this.length--;\n };\n\n TextTag.prototype.getRule = function (index) {\n if (index < this.length) {\n return this.nodes[index].textContent;\n } else {\n return '';\n }\n };\n\n return TextTag;\n}();\n\nvar VirtualTag = function () {\n function VirtualTag(_target) {\n this.rules = [];\n this.length = 0;\n }\n\n VirtualTag.prototype.insertRule = function (index, rule) {\n if (index <= this.length) {\n this.rules.splice(index, 0, rule);\n this.length++;\n return true;\n } else {\n return false;\n }\n };\n\n VirtualTag.prototype.deleteRule = function (index) {\n this.rules.splice(index, 1);\n this.length--;\n };\n\n VirtualTag.prototype.getRule = function (index) {\n if (index < this.length) {\n return this.rules[index];\n } else {\n return '';\n }\n };\n\n return VirtualTag;\n}();\n\nvar SHOULD_REHYDRATE = IS_BROWSER;\nvar defaultOptions = {\n isServer: !IS_BROWSER,\n useCSSOMInjection: !DISABLE_SPEEDY\n};\n\nvar StyleSheet = function () {\n function StyleSheet(options, globalStyles, names) {\n if (options === void 0) {\n options = EMPTY_OBJECT;\n }\n\n if (globalStyles === void 0) {\n globalStyles = {};\n }\n\n this.options = __assign(__assign({}, defaultOptions), options);\n this.gs = globalStyles;\n this.names = new Map(names);\n this.server = !!options.isServer;\n\n if (!this.server && IS_BROWSER && SHOULD_REHYDRATE) {\n SHOULD_REHYDRATE = false;\n rehydrateSheet(this);\n }\n }\n\n StyleSheet.registerId = function (id) {\n return getGroupForId(id);\n };\n\n StyleSheet.prototype.reconstructWithOptions = function (options, withNames) {\n if (withNames === void 0) {\n withNames = true;\n }\n\n return new StyleSheet(__assign(__assign({}, this.options), options), this.gs, withNames && this.names || undefined);\n };\n\n StyleSheet.prototype.allocateGSInstance = function (id) {\n return this.gs[id] = (this.gs[id] || 0) + 1;\n };\n\n StyleSheet.prototype.getTag = function () {\n return this.tag || (this.tag = makeGroupedTag(makeTag(this.options)));\n };\n\n StyleSheet.prototype.hasNameForId = function (id, name) {\n return this.names.has(id) && this.names.get(id).has(name);\n };\n\n StyleSheet.prototype.registerName = function (id, name) {\n getGroupForId(id);\n\n if (!this.names.has(id)) {\n var groupNames = new Set();\n groupNames.add(name);\n this.names.set(id, groupNames);\n } else {\n this.names.get(id).add(name);\n }\n };\n\n StyleSheet.prototype.insertRules = function (id, name, rules) {\n this.registerName(id, name);\n this.getTag().insertRules(getGroupForId(id), rules);\n };\n\n StyleSheet.prototype.clearNames = function (id) {\n if (this.names.has(id)) {\n this.names.get(id).clear();\n }\n };\n\n StyleSheet.prototype.clearRules = function (id) {\n this.getTag().clearGroup(getGroupForId(id));\n this.clearNames(id);\n };\n\n StyleSheet.prototype.clearTag = function () {\n this.tag = undefined;\n };\n\n StyleSheet.prototype.toString = function () {\n return outputSheet(this);\n };\n\n return StyleSheet;\n}();\n\nvar SEED = 5381;\n\nvar phash = function phash(h, x) {\n var i = x.length;\n\n while (i) {\n h = h * 33 ^ x.charCodeAt(--i);\n }\n\n return h;\n};\n\nvar hash = function hash(x) {\n return phash(SEED, x);\n};\n\nvar COMMENT_REGEX = /^\\s*\\/\\/.*$/gm;\nvar COMPLEX_SELECTOR_PREFIX = [':', '[', '.', '#'];\n\nfunction createStylisInstance(_a) {\n var _b = _a === void 0 ? EMPTY_OBJECT : _a,\n _c = _b.options,\n options = _c === void 0 ? EMPTY_OBJECT : _c,\n _d = _b.plugins,\n plugins = _d === void 0 ? EMPTY_ARRAY : _d;\n\n var _componentId;\n\n var _selector;\n\n var _selectorRegexp;\n\n var _consecutiveSelfRefRegExp;\n\n var selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) {\n if ((offset === 0 ? !COMPLEX_SELECTOR_PREFIX.includes(string[_selector.length]) : true) && !string.match(_consecutiveSelfRefRegExp)) {\n return \".\".concat(_componentId);\n }\n\n return match;\n };\n\n var selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(element) {\n if (element.type === RULESET && element.value.includes('&')) {\n var props = element.props;\n props[0] = props[0].replace(_selectorRegexp, selfReferenceReplacer);\n }\n };\n\n var stringifyRules = function stringifyRules(css, selector, prefix, componentId) {\n if (selector === void 0) {\n selector = '';\n }\n\n if (prefix === void 0) {\n prefix = '';\n }\n\n if (componentId === void 0) {\n componentId = '&';\n }\n\n var flatCSS = css.replace(COMMENT_REGEX, '');\n _componentId = componentId;\n _selector = selector;\n _selectorRegexp = new RegExp(\"\\\\\".concat(_selector, \"\\\\b\"), 'g');\n _consecutiveSelfRefRegExp = new RegExp(\"(\\\\\".concat(_selector, \"\\\\b){2,}\"));\n var middlewares = plugins.slice();\n\n if (options.prefix || options.prefix === undefined) {\n middlewares.unshift(prefixer);\n }\n\n middlewares.push(selfReferenceReplacementPlugin, stringify);\n return serialize(compile(prefix || selector ? \"\".concat(prefix, \" \").concat(selector, \" { \").concat(flatCSS, \" }\") : flatCSS), middleware(middlewares));\n };\n\n stringifyRules.hash = plugins.length ? plugins.reduce(function (acc, plugin) {\n if (!plugin.name) {\n throwStyledComponentsError(15);\n }\n\n return phash(acc, plugin.name);\n }, SEED).toString() : '';\n return stringifyRules;\n}\n\nvar StyleSheetContext = React.createContext(undefined);\nStyleSheetContext.Consumer;\nvar StylisContext = React.createContext(undefined);\nStylisContext.Consumer;\nnew StyleSheet();\nvar mainStylis = createStylisInstance();\n\nvar Keyframes = function () {\n function Keyframes(name, rules) {\n var _this = this;\n\n this.inject = function (styleSheet, stylisInstance) {\n if (stylisInstance === void 0) {\n stylisInstance = mainStylis;\n }\n\n var resolvedName = _this.name + stylisInstance.hash;\n\n if (!styleSheet.hasNameForId(_this.id, resolvedName)) {\n styleSheet.insertRules(_this.id, resolvedName, stylisInstance(_this.rules, resolvedName, '@keyframes'));\n }\n };\n\n this.toString = function () {\n throw throwStyledComponentsError(12, String(_this.name));\n };\n\n this.name = name;\n this.id = \"sc-keyframes-\".concat(name);\n this.rules = rules;\n }\n\n Keyframes.prototype.getName = function (stylisInstance) {\n if (stylisInstance === void 0) {\n stylisInstance = mainStylis;\n }\n\n return this.name + stylisInstance.hash;\n };\n\n return Keyframes;\n}();\n\nfunction addUnitIfNeeded(name, value) {\n if (value == null || typeof value === 'boolean' || value === '') {\n return '';\n }\n\n if (typeof value === 'number' && value !== 0 && !(name in unitless)) {\n return \"\".concat(value, \"px\");\n }\n\n return String(value).trim();\n}\n\nfunction getComponentName(target) {\n return (process.env.NODE_ENV !== 'production' ? typeof target === 'string' && target : false) || target.displayName || target.name || 'Component';\n}\n\nvar uppercaseCheck = /([A-Z])/;\nvar uppercasePattern = /([A-Z])/g;\nvar msPattern = /^ms-/;\n\nvar prefixAndLowerCase = function prefixAndLowerCase(char) {\n return \"-\".concat(char.toLowerCase());\n};\n\nfunction hyphenateStyleName(string) {\n return uppercaseCheck.test(string) ? string.replace(uppercasePattern, prefixAndLowerCase).replace(msPattern, '-ms-') : string;\n}\n\nfunction isFunction(test) {\n return typeof test === 'function';\n}\n\nfunction isPlainObject(x) {\n return x !== null && typeof x === 'object' && (!x.constructor || x.constructor.name === 'Object') && (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' && !('props' in x && (x.$$typeof || x.constructor === undefined));\n}\n\nfunction isStatelessFunction(test) {\n return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent);\n}\n\nfunction isStyledComponent(target) {\n return typeof target === 'object' && 'styledComponentId' in target;\n}\n\nvar isFalsish = function isFalsish(chunk) {\n return chunk === undefined || chunk === null || chunk === false || chunk === '';\n};\n\nvar objToCssArray = function objToCssArray(obj, prevKey) {\n var rules = [];\n\n for (var key in obj) {\n if (!obj.hasOwnProperty(key) || isFalsish(obj[key])) continue;\n\n if (Array.isArray(obj[key]) && obj[key].isCss || isFunction(obj[key])) {\n rules.push(\"\".concat(hyphenateStyleName(key), \":\"), obj[key], ';');\n } else if (isPlainObject(obj[key])) {\n rules.push.apply(rules, __spreadArray([], __read(objToCssArray(obj[key], key)), false));\n } else {\n rules.push(\"\".concat(hyphenateStyleName(key), \": \").concat(addUnitIfNeeded(key, obj[key]), \";\"));\n }\n }\n\n return prevKey ? __spreadArray(__spreadArray([\"\".concat(prevKey, \" {\")], __read(rules), false), ['}'], false) : rules;\n};\n\nfunction flatten(chunk, executionContext, styleSheet, stylisInstance) {\n if (Array.isArray(chunk)) {\n var ruleSet = [];\n\n for (var i = 0, len = chunk.length, result = void 0; i < len; i += 1) {\n result = flatten(chunk[i], executionContext, styleSheet, stylisInstance);\n if (result === '') continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, __spreadArray([], __read(result), false));else ruleSet.push(result);\n }\n\n return ruleSet;\n }\n\n if (isFalsish(chunk)) {\n return '';\n }\n\n if (isStyledComponent(chunk)) {\n return \".\".concat(chunk.styledComponentId);\n }\n\n if (isFunction(chunk)) {\n if (isStatelessFunction(chunk) && executionContext) {\n var chunkFn = chunk;\n var result = chunkFn(executionContext);\n\n if (process.env.NODE_ENV !== 'production' && typeof result === 'object' && !Array.isArray(result) && !(result instanceof Keyframes) && !isPlainObject(result)) {\n console.error(\"\".concat(getComponentName(chunkFn), \" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\"));\n }\n\n return flatten(result, executionContext, styleSheet, stylisInstance);\n } else return chunk;\n }\n\n if (chunk instanceof Keyframes) {\n if (styleSheet) {\n chunk.inject(styleSheet, stylisInstance);\n return chunk.getName(stylisInstance);\n } else return chunk;\n }\n\n return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString();\n}\n\nfunction interleave(strings, interpolations) {\n var result = [strings[0]];\n\n for (var i = 0, len = interpolations.length; i < len; i += 1) {\n result.push(interpolations[i], strings[i + 1]);\n }\n\n return result;\n}\n\nvar addTag = function addTag(arg) {\n if (Array.isArray(arg)) {\n arg.isCss = true;\n }\n\n return arg;\n};\n\nfunction css(styles) {\n var interpolations = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n interpolations[_i - 1] = arguments[_i];\n }\n\n if (isFunction(styles) || isPlainObject(styles)) {\n var styleFunctionOrObject = styles;\n return addTag(flatten(interleave(EMPTY_ARRAY, __spreadArray([styleFunctionOrObject], __read(interpolations), false))));\n }\n\n var styleStringArray = styles;\n\n if (interpolations.length === 0 && styleStringArray.length === 1 && typeof styleStringArray[0] === 'string') {\n return styleStringArray;\n }\n\n return addTag(flatten(interleave(styleStringArray, interpolations)));\n}\n\nfunction constructWithOptions(componentConstructor, tag, options) {\n if (options === void 0) {\n options = EMPTY_OBJECT;\n }\n\n if (!tag) {\n throw throwStyledComponentsError(1, tag);\n }\n\n var templateFunction = function templateFunction(initialStyles) {\n var interpolations = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n interpolations[_i - 1] = arguments[_i];\n }\n\n return componentConstructor(tag, options, css.apply(void 0, __spreadArray([initialStyles], __read(interpolations), false)));\n };\n\n templateFunction.attrs = function (attrs) {\n return constructWithOptions(componentConstructor, tag, __assign(__assign({}, options), {\n attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean)\n }));\n };\n\n templateFunction.withConfig = function (config) {\n return constructWithOptions(componentConstructor, tag, __assign(__assign({}, options), config));\n };\n\n return templateFunction;\n}\n\nvar ThemeContext = React.createContext(undefined);\nvar ThemeConsumer = ThemeContext.Consumer;\n\nfunction mergeTheme(theme, outerTheme) {\n if (!theme) {\n throw throwStyledComponentsError(14);\n }\n\n if (isFunction(theme)) {\n var themeFn = theme;\n var mergedTheme = themeFn(outerTheme);\n\n if (process.env.NODE_ENV !== 'production' && (mergedTheme === null || Array.isArray(mergedTheme) || typeof mergedTheme !== 'object')) {\n throw throwStyledComponentsError(7);\n }\n\n return mergedTheme;\n }\n\n if (Array.isArray(theme) || typeof theme !== 'object') {\n throw throwStyledComponentsError(8);\n }\n\n return outerTheme ? __assign(__assign({}, outerTheme), theme) : theme;\n}\n\nfunction ThemeProvider(props) {\n var outerTheme = useContext(ThemeContext);\n var themeContext = useMemo(function () {\n return mergeTheme(props.theme, outerTheme);\n }, [props.theme, outerTheme]);\n\n if (!props.children) {\n return null;\n }\n\n return React.createElement(ThemeContext.Provider, {\n value: themeContext\n }, props.children);\n}\n\nfunction determineTheme(props, providedTheme, defaultProps) {\n if (defaultProps === void 0) {\n defaultProps = EMPTY_OBJECT;\n }\n\n return props.theme !== defaultProps.theme && props.theme || providedTheme || defaultProps.theme;\n}\n\nvar _a;\n\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n $$typeof: true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n $$typeof: true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = (_a = {}, _a[REACT_FORWARD_REF_TYPE] = FORWARD_REF_STATICS, _a[REACT_MEMO_TYPE] = MEMO_STATICS, _a);\n\nfunction isMemo(object) {\n var $$typeofType = 'type' in object && object.type.$$typeof;\n return $$typeofType === REACT_MEMO_TYPE;\n}\n\nfunction getStatics(component) {\n if (isMemo(component)) {\n return MEMO_STATICS;\n }\n\n return '$$typeof' in component ? TYPE_STATICS[component['$$typeof']] : REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\n\nfunction hoistNonReactStatics(targetComponent, sourceComponent, excludelist) {\n if (typeof sourceComponent !== 'string') {\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, excludelist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!(key in KNOWN_STATICS) && !(excludelist && excludelist[key]) && !(sourceStatics && key in sourceStatics) && !(targetStatics && key in targetStatics)) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nfunction withTheme(Component) {\n var WithTheme = React.forwardRef(function (props, ref) {\n var theme = React.useContext(ThemeContext);\n var themeProp = determineTheme(props, theme, Component.defaultProps);\n\n if (process.env.NODE_ENV !== 'production' && themeProp === undefined) {\n console.warn(\"[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class \\\"\".concat(getComponentName(Component), \"\\\"\"));\n }\n\n return React.createElement(Component, __assign({}, props, {\n theme: themeProp,\n ref: ref\n }));\n });\n WithTheme.displayName = \"WithTheme(\".concat(getComponentName(Component), \")\");\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar useTheme = function useTheme() {\n return useContext(ThemeContext);\n};\n\nvar AD_REPLACER_R = /(a)(d)/gi;\nvar charsLength = 52;\n\nvar getAlphabeticChar = function getAlphabeticChar(code) {\n return String.fromCharCode(code + (code > 25 ? 39 : 97));\n};\n\nfunction generateAlphabeticName(code) {\n var name = '';\n var x;\n\n for (x = Math.abs(code); x > charsLength; x = x / charsLength | 0) {\n name = getAlphabeticChar(x % charsLength) + name;\n }\n\n return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2');\n}\n\nfunction generateComponentId(str) {\n return generateAlphabeticName(hash(str) >>> 0);\n}\n\nvar generated = {};\n\nfunction makeInlineStyleClass(styleSheet) {\n var InlineStyle = function () {\n function InlineStyle(rules) {\n this.rules = rules;\n }\n\n InlineStyle.prototype.generateStyleObject = function (executionContext) {\n var flatCSS = flatten(this.rules, executionContext).join('');\n var hash = generateComponentId(flatCSS);\n\n if (!generated[hash]) {\n var root = parse(flatCSS);\n var declPairs_1 = [];\n root.each(function (node) {\n if (node.type === 'decl') {\n declPairs_1.push([node.prop, node.value]);\n } else if (process.env.NODE_ENV !== 'production' && node.type !== 'comment') {\n console.warn(\"Node of type \".concat(node.type, \" not supported as an inline style\"));\n }\n });\n var styleObject = transformDeclPairs(declPairs_1);\n var styles = styleSheet.create({\n generated: styleObject\n });\n generated[hash] = styles.generated;\n }\n\n return generated[hash];\n };\n\n return InlineStyle;\n }();\n\n return InlineStyle;\n}\n\nfunction isTag(target) {\n return typeof target === 'string' && (process.env.NODE_ENV !== 'production' ? target.charAt(0) === target.charAt(0).toLowerCase() : true);\n}\n\nfunction generateDisplayName(target) {\n return isTag(target) ? \"styled.\".concat(target) : \"Styled(\".concat(getComponentName(target), \")\");\n}\n\nfunction mixinRecursively(target, source, forceMerge) {\n if (forceMerge === void 0) {\n forceMerge = false;\n }\n\n if (!forceMerge && !isPlainObject(target) && !Array.isArray(target)) {\n return source;\n }\n\n if (Array.isArray(source)) {\n for (var key = 0; key < source.length; key++) {\n target[key] = mixinRecursively(target[key], source[key]);\n }\n } else if (isPlainObject(source)) {\n for (var key in source) {\n target[key] = mixinRecursively(target[key], source[key]);\n }\n }\n\n return target;\n}\n\nfunction mixinDeep(target) {\n var e_1, _a;\n\n if (target === void 0) {\n target = {};\n }\n\n var sources = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n sources[_i - 1] = arguments[_i];\n }\n\n try {\n for (var sources_1 = __values(sources), sources_1_1 = sources_1.next(); !sources_1_1.done; sources_1_1 = sources_1.next()) {\n var source = sources_1_1.value;\n mixinRecursively(target, source, true);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (sources_1_1 && !sources_1_1.done && (_a = sources_1.return)) _a.call(sources_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return target;\n}\n\nfunction useResolvedAttrs(theme, props, attrs) {\n if (theme === void 0) {\n theme = EMPTY_OBJECT;\n }\n\n var context = __assign(__assign({}, props), {\n theme: theme\n });\n\n var resolvedAttrs = {};\n attrs.forEach(function (attrDef) {\n var resolvedAttrDef = typeof attrDef === 'function' ? attrDef(context) : attrDef;\n var key;\n\n for (key in resolvedAttrDef) {\n context[key] = resolvedAttrs[key] = resolvedAttrDef[key];\n }\n });\n return [context, resolvedAttrs];\n}\n\nvar validAttr = function validAttr() {\n return true;\n};\n\nfunction useStyledComponentImpl(forwardedComponent, props, forwardedRef) {\n var componentAttrs = forwardedComponent.attrs,\n inlineStyle = forwardedComponent.inlineStyle,\n defaultProps = forwardedComponent.defaultProps,\n shouldForwardProp = forwardedComponent.shouldForwardProp,\n target = forwardedComponent.target;\n var theme = determineTheme(props, useContext(ThemeContext), defaultProps);\n\n var _a = __read(useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs), 2),\n context = _a[0],\n attrs = _a[1];\n\n var generatedStyles = inlineStyle.generateStyleObject(context);\n var refToForward = forwardedRef;\n var elementToBeCreated = attrs.$as || props.$as || attrs.as || props.as || target;\n var computedProps = attrs !== props ? __assign(__assign({}, props), attrs) : props;\n var propsForElement = {};\n\n for (var key in computedProps) {\n if (key[0] === '$' || key === 'as') continue;else if (key === 'forwardedAs') {\n propsForElement.as = computedProps[key];\n } else if (!shouldForwardProp || shouldForwardProp(key, validAttr, elementToBeCreated)) {\n propsForElement[key] = computedProps[key];\n }\n }\n\n propsForElement.style = useMemo(function () {\n if (typeof props.style === 'function') {\n return function (state) {\n return [generatedStyles].concat(props.style(state));\n };\n } else if (props.style == null) {\n return generatedStyles;\n } else {\n return [generatedStyles].concat(props.style || []);\n }\n }, [props.style, generatedStyles]);\n propsForElement.ref = refToForward;\n return createElement(elementToBeCreated, propsForElement);\n}\n\nvar _StyledNativeComponent = function _StyledNativeComponent(InlineStyle) {\n var createStyledNativeComponent = function createStyledNativeComponent(target, options, rules) {\n var isTargetStyledComp = isStyledComponent(target);\n var styledComponentTarget = target;\n var _a = options.displayName,\n displayName = _a === void 0 ? generateDisplayName(target) : _a,\n _b = options.attrs,\n attrs = _b === void 0 ? EMPTY_ARRAY : _b;\n var finalAttrs = isTargetStyledComp && styledComponentTarget.attrs ? styledComponentTarget.attrs.concat(attrs).filter(Boolean) : attrs;\n var shouldForwardProp = options.shouldForwardProp;\n\n if (isTargetStyledComp && styledComponentTarget.shouldForwardProp) {\n var shouldForwardPropFn_1 = styledComponentTarget.shouldForwardProp;\n\n if (options.shouldForwardProp) {\n var passedShouldForwardPropFn_1 = options.shouldForwardProp;\n\n shouldForwardProp = function shouldForwardProp(prop, filterFn, elementToBeCreated) {\n return shouldForwardPropFn_1(prop, filterFn, elementToBeCreated) && passedShouldForwardPropFn_1(prop, filterFn, elementToBeCreated);\n };\n } else {\n shouldForwardProp = shouldForwardPropFn_1;\n }\n }\n\n var forwardRef = function forwardRef(props, ref) {\n return useStyledComponentImpl(WrappedStyledComponent, props, ref);\n };\n\n forwardRef.displayName = displayName;\n var WrappedStyledComponent = React.forwardRef(forwardRef);\n WrappedStyledComponent.attrs = finalAttrs;\n WrappedStyledComponent.inlineStyle = new InlineStyle(isTargetStyledComp ? styledComponentTarget.inlineStyle.rules.concat(rules) : rules);\n WrappedStyledComponent.displayName = displayName;\n WrappedStyledComponent.shouldForwardProp = shouldForwardProp;\n WrappedStyledComponent.styledComponentId = true;\n WrappedStyledComponent.target = isTargetStyledComp ? styledComponentTarget.target : target;\n\n WrappedStyledComponent.withComponent = function withComponent(tag) {\n var newOptions = __assign(__assign({}, options), {\n attrs: finalAttrs\n });\n\n return createStyledNativeComponent(tag, newOptions, rules);\n };\n\n Object.defineProperty(WrappedStyledComponent, 'defaultProps', {\n get: function get() {\n return this._foldedDefaultProps;\n },\n set: function set(obj) {\n this._foldedDefaultProps = isTargetStyledComp ? mixinDeep({}, styledComponentTarget.defaultProps, obj) : obj;\n }\n });\n hoistNonReactStatics(WrappedStyledComponent, target, {\n attrs: true,\n inlineStyle: true,\n displayName: true,\n shouldForwardProp: true,\n target: true,\n withComponent: true\n });\n return WrappedStyledComponent;\n };\n\n return createStyledNativeComponent;\n};\n\nvar reactNative = require(\"react-native-web/dist/index\");\n\nvar InlineStyle = makeInlineStyleClass(reactNative.StyleSheet);\n\nvar StyledNativeComponent = _StyledNativeComponent(InlineStyle);\n\nvar baseStyled = function baseStyled(tag) {\n return constructWithOptions(StyledNativeComponent, tag);\n};\n\nvar aliases = ['ActivityIndicator', 'ActivityIndicatorIOS', 'ART', 'Button', 'DatePickerIOS', 'DrawerLayoutAndroid', 'FlatList', 'Image', 'ImageBackground', 'ImageEditor', 'ImageStore', 'KeyboardAvoidingView', 'ListView', 'MapView', 'Modal', 'NavigatorIOS', 'Picker', 'PickerIOS', 'Pressable', 'ProgressBarAndroid', 'ProgressViewIOS', 'RecyclerViewBackedScrollView', 'RefreshControl', 'SafeAreaView', 'ScrollView', 'SectionList', 'SegmentedControlIOS', 'Slider', 'SliderIOS', 'SnapshotViewIOS', 'StatusBar', 'SwipeableListView', 'Switch', 'SwitchAndroid', 'SwitchIOS', 'TabBarIOS', 'Text', 'TextInput', 'ToastAndroid', 'ToolbarAndroid', 'Touchable', 'TouchableHighlight', 'TouchableNativeFeedback', 'TouchableOpacity', 'TouchableWithoutFeedback', 'View', 'ViewPagerAndroid', 'VirtualizedList', 'WebView'];\nvar styled = baseStyled;\naliases.forEach(function (alias) {\n return Object.defineProperty(styled, alias, {\n enumerable: true,\n configurable: false,\n get: function get() {\n return styled(reactNative[alias]);\n }\n });\n});\nexport { ThemeConsumer, ThemeContext, ThemeProvider, css, styled as default, isStyledComponent, useTheme, withTheme };","map":{"version":3,"sources":["../../src/utils/empties.ts","../../src/utils/errors.ts","../../src/utils/error.ts","../../src/constants.ts","../../src/sheet/GroupedTag.ts","../../src/sheet/GroupIDAllocator.ts","../../src/sheet/Rehydration.ts","../../src/utils/nonce.ts","../../src/sheet/dom.ts","../../src/sheet/Tag.ts","../../src/sheet/Sheet.ts","../../src/utils/hash.ts","../../src/utils/stylis.ts","../../src/models/StyleSheetManager.tsx","../../src/models/Keyframes.ts","../../src/utils/addUnitIfNeeded.ts","../../src/utils/getComponentName.ts","../../src/utils/hyphenateStyleName.ts","../../src/utils/isFunction.ts","../../src/utils/isPlainObject.ts","../../src/utils/isStatelessFunction.ts","../../src/utils/isStyledComponent.ts","../../src/utils/flatten.ts","../../src/utils/interleave.ts","../../src/constructors/css.ts","../../src/constructors/constructWithOptions.ts","../../src/models/ThemeProvider.tsx","../../src/utils/determineTheme.ts","../../src/utils/hoist.ts","../../src/hoc/withTheme.tsx","../../src/hooks/useTheme.ts","../../src/utils/generateAlphabeticName.ts","../../src/utils/generateComponentId.ts","../../src/models/InlineStyle.ts","../../src/utils/isTag.ts","../../src/utils/generateDisplayName.ts","../../src/utils/mixinDeep.ts","../../src/models/StyledNativeComponent.ts","../../src/native/index.ts"],"names":["styledError","throwStyledError","hyphenate","hoist","merge","_InlineStyle"],"mappings":";;;;;;;AAEO,IAAM,WAAW,GAAG,MAAM,CAAC,MAAP,CAAc,EAAd,CAApB;AACA,IAAM,YAAY,GAAG,MAAM,CAAC,MAAP,CAAc,EAAd,CAArB;ACHP,IAAA,QAAA,GAAe;EACb,KAAK,uDADQ;EAEb,KAAK,+PAFQ;EAGb,KAAK,qHAHQ;EAIb,KAAK,qMAJQ;EAKb,KAAK,iKALQ;EAMb,KAAK,2OANQ;EAOb,KAAK,oHAPQ;EAQb,KAAK,6DARQ;EASb,KAAK,+BATQ;EAUb,MAAM,gUAVO;EAWb,MAAM,uNAXO;EAYb,MAAM,oWAZO;EAab,MAAM,wLAbO;EAcb,M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8B,KAA9B,EAAqC;IACnC,UAAU,EAAE,IADuB;IAEnC,YAAY,EAAE,KAFqB;IAGnC,GAAG,EAAA,eAAA;MAED,OAAO,MAAM,CAAC,WAAW,CAAC,KAAD,CAAZ,CAAb;IACD;EANkC,CAArC,CAAA;AAOE,CARJ","sourcesContent":["import { ExtensibleObject } from '../types';\n\nexport const EMPTY_ARRAY = Object.freeze([]) as unknown as Readonly<any[]>;\nexport const EMPTY_OBJECT = Object.freeze({}) as Readonly<ExtensibleObject>;\n","export default {\n '1': 'Cannot create styled-component for component: %s.\\n\\n',\n '2': \"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\\n\\n- Are you trying to reuse it across renders?\\n- Are you accidentally calling collectStyles twice?\\n\\n\",\n '3': 'Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\\n\\n',\n '4': 'The `StyleSheetManager` expects a valid target or sheet prop!\\n\\n- Does this error occur on the client and is your target falsy?\\n- Does this error occur on the server and is the sheet falsy?\\n\\n',\n '5': 'The clone method cannot be used on the client!\\n\\n- Are you running in a client-like environment on the server?\\n- Are you trying to run SSR on the client?\\n\\n',\n '6': \"Trying to insert a new style tag, but the given Node is unmounted!\\n\\n- Are you using a custom target that isn't mounted?\\n- Does your document not have a valid head element?\\n- Have you accidentally removed a style tag manually?\\n\\n\",\n '7': 'ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\\n\\n```js\\ntheme={() => ({})}\\n```\\n\\n',\n '8': 'ThemeProvider: Please make your \"theme\" prop an object.\\n\\n',\n '9': 'Missing document `<head>`\\n\\n',\n '10': 'Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\\n\\n',\n '11': '_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\\n\\n',\n '12': 'It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\\\`\\\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\\n\\n',\n '13': '%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\\n\\n',\n '14': 'ThemeProvider: \"theme\" prop is required.\\n\\n',\n '15': \"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\\n\\n```js\\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\\n```\\n\\n\",\n '16': \"Reached the limit of how many styled components may be created at group %s.\\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\\nas for instance in your render method then you may be running into this limitation.\\n\\n\",\n '17': \"CSSStyleSheet could not be found on HTMLStyleElement.\\nHas styled-components' style tag been unmounted or altered by another script?\\n\",\n};\n","import { ExtensibleObject } from '../types';\nimport errorMap from './errors';\n\nconst ERRORS: ExtensibleObject = process.env.NODE_ENV !== 'production' ? errorMap : {};\n\n/**\n * super basic version of sprintf\n */\nfunction format(...args: [string, ...any]) {\n let a = args[0];\n const b = [];\n\n for (let c = 1, len = args.length; c < len; c += 1) {\n b.push(args[c]);\n }\n\n b.forEach(d => {\n a = a.replace(/%[a-z]/, d);\n });\n\n return a;\n}\n\n/**\n * Create an error file out of errors.md for development and a simple web link to the full errors\n * in production mode.\n */\nexport default function throwStyledComponentsError(\n code: string | number,\n ...interpolations: any[]\n) {\n if (process.env.NODE_ENV === 'production') {\n return new Error(\n `An error occurred. See https://git.io/JUIaE#${code} for more information.${\n interpolations.length > 0 ? ` Args: ${interpolations.join(', ')}` : ''\n }`\n );\n } else {\n return new Error(format(ERRORS[code], ...interpolations).trim());\n }\n}\n","declare let SC_DISABLE_SPEEDY: boolean | null | undefined;\ndeclare let __VERSION__: string;\n\nexport const SC_ATTR: string =\n (typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR)) ||\n 'data-styled';\n\nexport const SC_ATTR_ACTIVE = 'active';\nexport const SC_ATTR_VERSION = 'data-styled-version';\nexport const SC_VERSION = __VERSION__;\nexport const SPLITTER = '/*!sc*/\\n';\n\nexport const IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;\n\nexport const DISABLE_SPEEDY = Boolean(\n typeof SC_DISABLE_SPEEDY === 'boolean'\n ? SC_DISABLE_SPEEDY\n : typeof process !== 'undefined' &&\n typeof process.env.REACT_APP_SC_DISABLE_SPEEDY !== 'undefined' &&\n process.env.REACT_APP_SC_DISABLE_SPEEDY !== ''\n ? process.env.REACT_APP_SC_DISABLE_SPEEDY === 'false'\n ? false\n : process.env.REACT_APP_SC_DISABLE_SPEEDY\n : typeof process !== 'undefined' &&\n typeof process.env.SC_DISABLE_SPEEDY !== 'undefined' &&\n process.env.SC_DISABLE_SPEEDY !== ''\n ? process.env.SC_DISABLE_SPEEDY === 'false'\n ? false\n : process.env.SC_DISABLE_SPEEDY\n : process.env.NODE_ENV !== 'production'\n);\n\n// Shared empty execution context when generating static styles\nexport const STATIC_EXECUTION_CONTEXT = {};\n","import { SPLITTER } from '../constants';\nimport styledError from '../utils/error';\nimport { GroupedTag, Tag } from './types';\n\n/** Create a GroupedTag with an underlying Tag implementation */\nexport const makeGroupedTag = (tag: Tag) => {\n return new DefaultGroupedTag(tag);\n};\n\nconst BASE_SIZE = 1 << 9;\n\nconst DefaultGroupedTag = class DefaultGroupedTag implements GroupedTag {\n groupSizes: Uint32Array;\n length: number;\n tag: Tag;\n\n constructor(tag: Tag) {\n this.groupSizes = new Uint32Array(BASE_SIZE);\n this.length = BASE_SIZE;\n this.tag = tag;\n }\n\n indexOfGroup(group: number) {\n let index = 0;\n for (let i = 0; i < group; i++) {\n index += this.groupSizes[i];\n }\n\n return index;\n }\n\n insertRules(group: number, rules: string | string[]) {\n if (group >= this.groupSizes.length) {\n const oldBuffer = this.groupSizes;\n const oldSize = oldBuffer.length;\n\n let newSize = oldSize;\n while (group >= newSize) {\n newSize <<= 1;\n if (newSize < 0) {\n throw styledError(16, `${group}`);\n }\n }\n\n this.groupSizes = new Uint32Array(newSize);\n this.groupSizes.set(oldBuffer);\n this.length = newSize;\n\n for (let i = oldSize; i < newSize; i++) {\n this.groupSizes[i] = 0;\n }\n }\n\n let ruleIndex = this.indexOfGroup(group + 1);\n\n if (Array.isArray(rules)) {\n for (let i = 0, l = rules.length; i < l; i++) {\n if (this.tag.insertRule(ruleIndex, rules[i])) {\n this.groupSizes[group]++;\n ruleIndex++;\n }\n }\n } else {\n if (this.tag.insertRule(ruleIndex, rules)) {\n this.groupSizes[group]++;\n }\n }\n }\n\n clearGroup(group: number) {\n if (group < this.length) {\n const length = this.groupSizes[group];\n const startIndex = this.indexOfGroup(group);\n const endIndex = startIndex + length;\n\n this.groupSizes[group] = 0;\n\n for (let i = startIndex; i < endIndex; i++) {\n this.tag.deleteRule(startIndex);\n }\n }\n }\n\n getGroup(group: number) {\n let css = '';\n if (group >= this.length || this.groupSizes[group] === 0) {\n return css;\n }\n\n const length = this.groupSizes[group];\n const startIndex = this.indexOfGroup(group);\n const endIndex = startIndex + length;\n\n for (let i = startIndex; i < endIndex; i++) {\n css += `${this.tag.getRule(i)}${SPLITTER}`;\n }\n\n return css;\n }\n};\n","import styledError from '../utils/error';\n\nconst MAX_SMI = 1 << (31 - 1);\n\nlet groupIDRegister: Map<string, number> = new Map();\nlet reverseRegister: Map<number, string> = new Map();\nlet nextFreeGroup = 1;\n\nexport const resetGroupIds = () => {\n groupIDRegister = new Map();\n reverseRegister = new Map();\n nextFreeGroup = 1;\n};\n\nexport const getGroupForId = (id: string): number => {\n if (groupIDRegister.has(id)) {\n return groupIDRegister.get(id) as any;\n }\n\n while (reverseRegister.has(nextFreeGroup)) {\n nextFreeGroup++;\n }\n\n const group = nextFreeGroup++;\n\n if (process.env.NODE_ENV !== 'production' && ((group | 0) < 0 || group > MAX_SMI)) {\n throw styledError(16, `${group}`);\n }\n\n groupIDRegister.set(id, group);\n reverseRegister.set(group, id);\n return group;\n};\n\nexport const getIdForGroup = (group: number): void | string => {\n return reverseRegister.get(group);\n};\n\nexport const setGroupForId = (id: string, group: number) => {\n groupIDRegister.set(id, group);\n reverseRegister.set(group, id);\n};\n","import { SC_ATTR, SC_ATTR_ACTIVE, SC_ATTR_VERSION, SC_VERSION, SPLITTER } from '../constants';\nimport { getIdForGroup, setGroupForId } from './GroupIDAllocator';\nimport { Sheet } from './types';\n\nconst SELECTOR = `style[${SC_ATTR}][${SC_ATTR_VERSION}=\"${SC_VERSION}\"]`;\nconst MARKER_RE = new RegExp(`^${SC_ATTR}\\\\.g(\\\\d+)\\\\[id=\"([\\\\w\\\\d-]+)\"\\\\].*?\"([^\"]*)`);\n\nexport const outputSheet = (sheet: Sheet) => {\n const tag = sheet.getTag();\n const { length } = tag;\n\n let css = '';\n for (let group = 0; group < length; group++) {\n const id = getIdForGroup(group);\n if (id === undefined) continue;\n\n const names = sheet.names.get(id);\n const rules = tag.getGroup(group);\n if (names === undefined || rules.length === 0) continue;\n\n const selector = `${SC_ATTR}.g${group}[id=\"${id}\"]`;\n\n let content = '';\n if (names !== undefined) {\n names.forEach(name => {\n if (name.length > 0) {\n content += `${name},`;\n }\n });\n }\n\n // NOTE: It's easier to collect rules and have the marker\n // after the actual rules to simplify the rehydration\n css += `${rules}${selector}{content:\"${content}\"}${SPLITTER}`;\n }\n\n return css;\n};\n\nconst rehydrateNamesFromContent = (sheet: Sheet, id: string, content: string) => {\n const names = content.split(',');\n let name;\n\n for (let i = 0, l = names.length; i < l; i++) {\n // eslint-disable-next-line\n if ((name = names[i])) {\n sheet.registerName(id, name);\n }\n }\n};\n\nconst rehydrateSheetFromTag = (sheet: Sheet, style: HTMLStyleElement) => {\n const parts = (style.textContent ?? '').split(SPLITTER);\n const rules: string[] = [];\n\n for (let i = 0, l = parts.length; i < l; i++) {\n const part = parts[i].trim();\n if (!part) continue;\n\n const marker = part.match(MARKER_RE);\n\n if (marker) {\n const group = parseInt(marker[1], 10) | 0;\n const id = marker[2];\n\n if (group !== 0) {\n // Rehydrate componentId to group index mapping\n setGroupForId(id, group);\n // Rehydrate names and rules\n // looks like: data-styled.g11[id=\"idA\"]{content:\"nameA,\"}\n rehydrateNamesFromContent(sheet, id, marker[3]);\n sheet.getTag().insertRules(group, rules);\n }\n\n rules.length = 0;\n } else {\n rules.push(part);\n }\n }\n};\n\nexport const rehydrateSheet = (sheet: Sheet) => {\n const nodes = document.querySelectorAll(SELECTOR);\n\n for (let i = 0, l = nodes.length; i < l; i++) {\n const node = nodes[i] as any as HTMLStyleElement;\n if (node && node.getAttribute(SC_ATTR) !== SC_ATTR_ACTIVE) {\n rehydrateSheetFromTag(sheet, node);\n\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n }\n }\n};\n","declare let __webpack_nonce__: string;\n\nexport default function getNonce() {\n return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n}\n","import { SC_ATTR, SC_ATTR_ACTIVE, SC_ATTR_VERSION, SC_VERSION } from '../constants';\nimport styledError from '../utils/error';\nimport getNonce from '../utils/nonce';\n\nconst ELEMENT_TYPE = 1;\n/* Node.ELEMENT_TYPE */\n\n/** Find last style element if any inside target */\nconst findLastStyleTag = (target: HTMLElement): void | HTMLStyleElement => {\n const { childNodes } = target;\n\n for (let i = childNodes.length; i >= 0; i--) {\n const child = childNodes[i] as any as HTMLElement | null | undefined;\n if (child && child.nodeType === ELEMENT_TYPE && child.hasAttribute(SC_ATTR)) {\n return child as any as HTMLStyleElement;\n }\n }\n\n return undefined;\n};\n\n/** Create a style element inside `target` or <head> after the last */\nexport const makeStyleTag = (target?: HTMLElement): HTMLStyleElement => {\n const head = document.head as any as HTMLElement;\n const parent = target || head;\n const style = document.createElement('style');\n const prevStyle = findLastStyleTag(parent);\n const nextSibling = prevStyle !== undefined ? prevStyle.nextSibling : null;\n\n style.setAttribute(SC_ATTR, SC_ATTR_ACTIVE);\n style.setAttribute(SC_ATTR_VERSION, SC_VERSION);\n\n const nonce = getNonce();\n\n if (nonce) style.setAttribute('nonce', nonce);\n\n parent.insertBefore(style, nextSibling);\n\n return style;\n};\n\n/** Get the CSSStyleSheet instance for a given style element */\nexport const getSheet = (tag: HTMLStyleElement): CSSStyleSheet => {\n if (tag.sheet) {\n return tag.sheet as any as CSSStyleSheet;\n }\n\n // Avoid Firefox quirk where the style element might not have a sheet property\n const { styleSheets } = document;\n for (let i = 0, l = styleSheets.length; i < l; i++) {\n const sheet = styleSheets[i];\n if (sheet.ownerNode === tag) {\n return sheet as any as CSSStyleSheet;\n }\n }\n\n throw styledError(17);\n};\n","import { getSheet, makeStyleTag } from './dom';\nimport { SheetOptions, Tag } from './types';\n\n/** Create a CSSStyleSheet-like tag depending on the environment */\nexport const makeTag = ({ isServer, useCSSOMInjection, target }: SheetOptions) => {\n if (isServer) {\n return new VirtualTag(target);\n } else if (useCSSOMInjection) {\n return new CSSOMTag(target);\n } else {\n return new TextTag(target);\n }\n};\n\nexport const CSSOMTag = class CSSOMTag implements Tag {\n element: HTMLStyleElement;\n\n sheet: CSSStyleSheet;\n\n length: number;\n\n constructor(target?: HTMLElement) {\n const element = (this.element = makeStyleTag(target));\n\n // Avoid Edge bug where empty style elements don't create sheets\n element.appendChild(document.createTextNode(''));\n\n this.sheet = getSheet(element);\n this.length = 0;\n }\n\n insertRule(index: number, rule: string): boolean {\n try {\n this.sheet.insertRule(rule, index);\n this.length++;\n return true;\n } catch (_error) {\n return false;\n }\n }\n\n deleteRule(index: number): void {\n this.sheet.deleteRule(index);\n this.length--;\n }\n\n getRule(index: number): string {\n const rule = this.sheet.cssRules[index];\n // Avoid IE11 quirk where cssText is inaccessible on some invalid rules\n if (rule !== undefined && typeof rule.cssText === 'string') {\n return rule.cssText;\n } else {\n return '';\n }\n }\n};\n\n/** A Tag that emulates the CSSStyleSheet API but uses text nodes */\nexport const TextTag = class TextTag implements Tag {\n element: HTMLStyleElement;\n nodes: NodeListOf<Node>;\n length: number;\n\n constructor(target?: HTMLElement) {\n const element = (this.element = makeStyleTag(target));\n this.nodes = element.childNodes;\n this.length = 0;\n }\n\n insertRule(index: number, rule: string) {\n if (index <= this.length && index >= 0) {\n const node = document.createTextNode(rule);\n const refNode = this.nodes[index];\n this.element.insertBefore(node, refNode || null);\n this.length++;\n return true;\n } else {\n return false;\n }\n }\n\n deleteRule(index: number) {\n this.element.removeChild(this.nodes[index]);\n this.length--;\n }\n\n getRule(index: number) {\n if (index < this.length) {\n return this.nodes[index].textContent as string;\n } else {\n return '';\n }\n }\n};\n\n/** A completely virtual (server-side) Tag that doesn't manipulate the DOM */\nexport const VirtualTag = class VirtualTag implements Tag {\n rules: string[];\n\n length: number;\n\n constructor(_target?: HTMLElement) {\n this.rules = [];\n this.length = 0;\n }\n\n insertRule(index: number, rule: string) {\n if (index <= this.length) {\n this.rules.splice(index, 0, rule);\n this.length++;\n return true;\n } else {\n return false;\n }\n }\n\n deleteRule(index: number) {\n this.rules.splice(index, 1);\n this.length--;\n }\n\n getRule(index: number) {\n if (index < this.length) {\n return this.rules[index];\n } else {\n return '';\n }\n }\n};\n","import { DISABLE_SPEEDY, IS_BROWSER } from '../constants';\nimport { EMPTY_OBJECT } from '../utils/empties';\nimport { makeGroupedTag } from './GroupedTag';\nimport { getGroupForId } from './GroupIDAllocator';\nimport { outputSheet, rehydrateSheet } from './Rehydration';\nimport { makeTag } from './Tag';\nimport { GroupedTag, Sheet, SheetOptions } from './types';\n\nlet SHOULD_REHYDRATE = IS_BROWSER;\n\ntype SheetConstructorArgs = {\n isServer?: boolean;\n useCSSOMInjection?: boolean;\n target?: HTMLElement;\n};\n\ntype GlobalStylesAllocationMap = {\n [key: string]: number;\n};\ntype NamesAllocationMap = Map<string, Set<string>>;\n\nconst defaultOptions: SheetOptions = {\n isServer: !IS_BROWSER,\n useCSSOMInjection: !DISABLE_SPEEDY,\n};\n\n/** Contains the main stylesheet logic for stringification and caching */\nexport default class StyleSheet implements Sheet {\n gs: GlobalStylesAllocationMap;\n names: NamesAllocationMap;\n options: SheetOptions;\n server: boolean;\n tag?: GroupedTag;\n\n /** Register a group ID to give it an index */\n static registerId(id: string): number {\n return getGroupForId(id);\n }\n\n constructor(\n options: SheetConstructorArgs = EMPTY_OBJECT as Object,\n globalStyles: GlobalStylesAllocationMap = {},\n names?: NamesAllocationMap\n ) {\n this.options = {\n ...defaultOptions,\n ...options,\n };\n\n this.gs = globalStyles;\n this.names = new Map(names as NamesAllocationMap);\n this.server = !!options.isServer;\n\n // We rehydrate only once and use the sheet that is created first\n if (!this.server && IS_BROWSER && SHOULD_REHYDRATE) {\n SHOULD_REHYDRATE = false;\n rehydrateSheet(this);\n }\n }\n\n reconstructWithOptions(options: SheetConstructorArgs, withNames = true) {\n return new StyleSheet(\n { ...this.options, ...options },\n this.gs,\n (withNames && this.names) || undefined\n );\n }\n\n allocateGSInstance(id: string) {\n return (this.gs[id] = (this.gs[id] || 0) + 1);\n }\n\n /** Lazily initialises a GroupedTag for when it's actually needed */\n getTag() {\n return this.tag || (this.tag = makeGroupedTag(makeTag(this.options)));\n }\n\n /** Check whether a name is known for caching */\n hasNameForId(id: string, name: string): boolean {\n return this.names.has(id) && (this.names.get(id) as any).has(name);\n }\n\n /** Mark a group's name as known for caching */\n registerName(id: string, name: string) {\n getGroupForId(id);\n\n if (!this.names.has(id)) {\n const groupNames = new Set<string>();\n groupNames.add(name);\n this.names.set(id, groupNames);\n } else {\n (this.names.get(id) as any).add(name);\n }\n }\n\n /** Insert new rules which also marks the name as known */\n insertRules(id: string, name: string, rules: string | string[]) {\n this.registerName(id, name);\n this.getTag().insertRules(getGroupForId(id), rules);\n }\n\n /** Clears all cached names for a given group ID */\n clearNames(id: string) {\n if (this.names.has(id)) {\n (this.names.get(id) as any).clear();\n }\n }\n\n /** Clears all rules for a given group ID */\n clearRules(id: string) {\n this.getTag().clearGroup(getGroupForId(id));\n this.clearNames(id);\n }\n\n /** Clears the entire tag which deletes all rules but not its names */\n clearTag() {\n // NOTE: This does not clear the names, since it's only used during SSR\n // so that we can continuously output only new rules\n this.tag = undefined;\n }\n\n /** Outputs the current sheet as a CSS string with markers for SSR */\n toString(): string {\n return outputSheet(this);\n }\n}\n","export const SEED = 5381;\n\n// When we have separate strings it's useful to run a progressive\n// version of djb2 where we pretend that we're still looping over\n// the same string\nexport const phash = (h: number, x: string) => {\n let i = x.length;\n\n while (i) {\n h = (h * 33) ^ x.charCodeAt(--i);\n }\n\n return h;\n};\n\n// This is a djb2 hashing function\nexport const hash = (x: string) => {\n return phash(SEED, x);\n};\n","import { compile, middleware, prefixer, RULESET, serialize, stringify } from 'stylis';\nimport { Stringifier } from '../types';\nimport { EMPTY_ARRAY, EMPTY_OBJECT } from './empties';\nimport throwStyledError from './error';\nimport { phash, SEED } from './hash';\n\nconst COMMENT_REGEX = /^\\s*\\/\\/.*$/gm;\nconst COMPLEX_SELECTOR_PREFIX = [':', '[', '.', '#'];\n\ntype StylisInstanceConstructorArgs = {\n options?: { prefix?: boolean };\n plugins?: stylis.Middleware[];\n};\n\nexport default function createStylisInstance(\n {\n options = EMPTY_OBJECT as Object,\n plugins = EMPTY_ARRAY as unknown as stylis.Middleware[],\n }: StylisInstanceConstructorArgs = EMPTY_OBJECT as Object\n) {\n let _componentId: string;\n let _selector: string;\n let _selectorRegexp: RegExp;\n let _consecutiveSelfRefRegExp: RegExp;\n\n const selfReferenceReplacer: Parameters<String['replace']>[1] = (match, offset, string) => {\n if (\n // do not replace the first occurrence if it is complex (has a modifier)\n (offset === 0 ? !COMPLEX_SELECTOR_PREFIX.includes(string[_selector.length]) : true) && // no consecutive self refs (.b.b); that is a precedence boost and treated differently\n !string.match(_consecutiveSelfRefRegExp)\n ) {\n return `.${_componentId}`;\n }\n\n return match;\n };\n\n /**\n * When writing a style like\n *\n * & + & {\n * color: red;\n * }\n *\n * The second ampersand should be a reference to the static component class. stylis\n * has no knowledge of static class so we have to intelligently replace the base selector.\n *\n * https://github.com/thysultan/stylis.js/tree/v4.0.2#abstract-syntax-structure\n */\n const selfReferenceReplacementPlugin: stylis.Middleware = element => {\n if (element.type === RULESET && element.value.includes('&')) {\n const props = element.props as string[];\n props[0] = props[0].replace(_selectorRegexp, selfReferenceReplacer);\n }\n };\n\n const stringifyRules: Stringifier = (\n css: string,\n selector = '',\n prefix = '',\n componentId = '&'\n ) => {\n let flatCSS = css.replace(COMMENT_REGEX, '');\n\n // stylis has no concept of state to be passed to plugins\n // but since JS is single-threaded, we can rely on that to ensure\n // these properties stay in sync with the current stylis run\n _componentId = componentId;\n _selector = selector;\n _selectorRegexp = new RegExp(`\\\\${_selector}\\\\b`, 'g');\n _consecutiveSelfRefRegExp = new RegExp(`(\\\\${_selector}\\\\b){2,}`);\n\n const middlewares = plugins.slice();\n\n if (options.prefix || options.prefix === undefined) {\n middlewares.unshift(prefixer);\n }\n\n middlewares.push(selfReferenceReplacementPlugin, stringify);\n\n return serialize(\n compile(prefix || selector ? `${prefix} ${selector} { ${flatCSS} }` : flatCSS),\n middleware(middlewares)\n );\n };\n\n stringifyRules.hash = plugins.length\n ? plugins\n .reduce((acc, plugin) => {\n if (!plugin.name) {\n throwStyledError(15);\n }\n\n return phash(acc, plugin.name);\n }, SEED)\n .toString()\n : '';\n\n return stringifyRules;\n}\n","import React, { useContext, useEffect, useMemo, useState } from 'react';\nimport shallowequal from 'shallowequal';\nimport StyleSheet from '../sheet';\nimport { Stringifier } from '../types';\nimport createStylisInstance from '../utils/stylis';\n\ntype Props = {\n children?: React.ReactChild;\n disableCSSOMInjection?: boolean;\n disableVendorPrefixes?: boolean;\n sheet?: StyleSheet;\n stylisPlugins?: stylis.Middleware[];\n target?: HTMLElement;\n};\n\nexport const StyleSheetContext = React.createContext<StyleSheet | void>(undefined);\nexport const StyleSheetConsumer = StyleSheetContext.Consumer;\nexport const StylisContext = React.createContext<Stringifier | void>(undefined);\nexport const StylisConsumer = StylisContext.Consumer;\n\nexport const mainSheet: StyleSheet = new StyleSheet();\nexport const mainStylis: Stringifier = createStylisInstance();\n\nexport function useStyleSheet(): StyleSheet {\n return useContext(StyleSheetContext) || mainSheet;\n}\n\nexport function useStylis(): Stringifier {\n return useContext(StylisContext) || mainStylis;\n}\n\nexport default function StyleSheetManager(props: Props): JSX.Element {\n const [plugins, setPlugins] = useState(props.stylisPlugins);\n const contextStyleSheet = useStyleSheet();\n\n const styleSheet = useMemo(() => {\n let sheet = contextStyleSheet;\n\n if (props.sheet) {\n // eslint-disable-next-line prefer-destructuring\n sheet = props.sheet;\n } else if (props.target) {\n sheet = sheet.reconstructWithOptions({ target: props.target }, false);\n }\n\n if (props.disableCSSOMInjection) {\n sheet = sheet.reconstructWithOptions({ useCSSOMInjection: false });\n }\n\n return sheet;\n }, [props.disableCSSOMInjection, props.sheet, props.target]);\n\n const stylis = useMemo(\n () =>\n createStylisInstance({\n options: { prefix: !props.disableVendorPrefixes },\n plugins,\n }),\n [props.disableVendorPrefixes, plugins]\n );\n\n useEffect(() => {\n if (!shallowequal(plugins, props.stylisPlugins)) setPlugins(props.stylisPlugins);\n }, [props.stylisPlugins]);\n\n return (\n <StyleSheetContext.Provider value={styleSheet}>\n <StylisContext.Provider value={stylis}>\n {process.env.NODE_ENV !== 'production'\n ? React.Children.only(props.children)\n : props.children}\n </StylisContext.Provider>\n </StyleSheetContext.Provider>\n );\n}\n","import StyleSheet from '../sheet';\nimport { Keyframes as KeyframesType, Stringifier } from '../types';\nimport styledError from '../utils/error';\nimport { mainStylis } from './StyleSheetManager';\n\nexport default class Keyframes implements KeyframesType {\n id: string;\n name: string;\n rules: string;\n\n constructor(name: string, rules: string) {\n this.name = name;\n this.id = `sc-keyframes-${name}`;\n this.rules = rules;\n }\n\n inject = (styleSheet: StyleSheet, stylisInstance: Stringifier = mainStylis): void => {\n const resolvedName = this.name + stylisInstance.hash;\n\n if (!styleSheet.hasNameForId(this.id, resolvedName)) {\n styleSheet.insertRules(\n this.id,\n resolvedName,\n stylisInstance(this.rules, resolvedName, '@keyframes')\n );\n }\n };\n\n toString = (): void => {\n throw styledError(12, String(this.name));\n };\n\n getName(stylisInstance: Stringifier = mainStylis): string {\n return this.name + stylisInstance.hash;\n }\n}\n","import unitless from '@emotion/unitless';\n\n// Taken from https://github.com/facebook/react/blob/b87aabdfe1b7461e7331abb3601d9e6bb27544bc/packages/react-dom/src/shared/dangerousStyleValue.js\nexport default function addUnitIfNeeded(name: string, value: any) {\n // https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133\n if (value == null || typeof value === 'boolean' || value === '') {\n return '';\n }\n\n if (typeof value === 'number' && value !== 0 && !(name in unitless)) {\n return `${value}px`; // Presumes implicit 'px' suffix for unitless numbers\n }\n\n return String(value).trim();\n}\n","import { StyledTarget } from '../types';\n\nexport default function getComponentName(target: StyledTarget) {\n return (\n (process.env.NODE_ENV !== 'production' ? typeof target === 'string' && target : false) ||\n (target as Exclude<StyledTarget, string>).displayName ||\n (target as Function).name ||\n 'Component'\n );\n}\n","/**\n * inlined version of\n * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js\n */\nconst uppercaseCheck = /([A-Z])/;\nconst uppercasePattern = /([A-Z])/g;\nconst msPattern = /^ms-/;\nconst prefixAndLowerCase = (char: string): string => `-${char.toLowerCase()}`;\n\n/**\n * Hyphenates a camelcased CSS property name, for example:\n *\n * > hyphenateStyleName('backgroundColor')\n * < \"background-color\"\n * > hyphenateStyleName('MozTransition')\n * < \"-moz-transition\"\n * > hyphenateStyleName('msTransition')\n * < \"-ms-transition\"\n *\n * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix\n * is converted to `-ms-`.\n */\nexport default function hyphenateStyleName(string: string) {\n return uppercaseCheck.test(string)\n ? string.replace(uppercasePattern, prefixAndLowerCase).replace(msPattern, '-ms-')\n : string;\n}\n","export default function isFunction(test: any) {\n return typeof test === 'function';\n}\n","export default function isPlainObject(x: any): boolean {\n return (\n x !== null &&\n typeof x === 'object' &&\n /* a check for empty prototype would be more typical, but that\n doesn't play well with objects created in different vm contexts */\n (!x.constructor || x.constructor.name === 'Object') &&\n (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' &&\n /* check for reasonable markers that the object isn't an element for react & preact/compat */\n !('props' in x && (x.$$typeof || x.constructor === undefined))\n );\n}\n","export default function isStatelessFunction(test: any) {\n return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent);\n}\n","import { IStyledComponent } from '../types';\n\nexport default function isStyledComponent(target: any): target is IStyledComponent<any> {\n return typeof target === 'object' && 'styledComponentId' in target;\n}\n","import Keyframes from '../models/Keyframes';\nimport StyleSheet from '../sheet';\nimport {\n AnyComponent,\n ExecutionContext,\n ExtensibleObject,\n Interpolation,\n IStyledComponent,\n RuleSet,\n Stringifier,\n StyledObject,\n} from '../types';\nimport addUnitIfNeeded from './addUnitIfNeeded';\nimport getComponentName from './getComponentName';\nimport hyphenate from './hyphenateStyleName';\nimport isFunction from './isFunction';\nimport isPlainObject from './isPlainObject';\nimport isStatelessFunction from './isStatelessFunction';\nimport isStyledComponent from './isStyledComponent';\n\n/**\n * It's falsish not falsy because 0 is allowed.\n */\nconst isFalsish = (chunk: any) =>\n chunk === undefined || chunk === null || chunk === false || chunk === '';\n\nexport const objToCssArray = (obj: ExtensibleObject, prevKey?: string): string[] => {\n const rules = [];\n\n for (const key in obj) {\n if (!obj.hasOwnProperty(key) || isFalsish(obj[key])) continue;\n\n if ((Array.isArray(obj[key]) && obj[key].isCss) || isFunction(obj[key])) {\n rules.push(`${hyphenate(key)}:`, obj[key], ';');\n } else if (isPlainObject(obj[key])) {\n rules.push(...objToCssArray(obj[key], key));\n } else {\n rules.push(`${hyphenate(key)}: ${addUnitIfNeeded(key, obj[key])};`);\n }\n }\n\n return prevKey ? [`${prevKey} {`, ...rules, '}'] : rules;\n};\n\nexport default function flatten<Props = unknown>(\n chunk: Interpolation<Props>,\n executionContext?: ExecutionContext & Props,\n styleSheet?: StyleSheet,\n stylisInstance?: Stringifier\n): Interpolation<Props> {\n if (Array.isArray(chunk)) {\n const ruleSet: RuleSet<Props> = [];\n\n for (let i = 0, len = chunk.length, result; i < len; i += 1) {\n result = flatten<Props>(chunk[i], executionContext, styleSheet, stylisInstance);\n\n if (result === '') continue;\n else if (Array.isArray(result)) ruleSet.push(...result);\n else ruleSet.push(result);\n }\n\n return ruleSet;\n }\n\n if (isFalsish(chunk)) {\n return '';\n }\n\n /* Handle other components */\n if (isStyledComponent(chunk)) {\n return `.${(chunk as unknown as IStyledComponent<'div', any>).styledComponentId}`;\n }\n\n /* Either execute or defer the function */\n if (isFunction(chunk)) {\n if (isStatelessFunction(chunk) && executionContext) {\n const chunkFn = chunk as (props: {}) => Interpolation<Props>;\n const result = chunkFn(executionContext);\n\n if (\n process.env.NODE_ENV !== 'production' &&\n typeof result === 'object' &&\n !Array.isArray(result) &&\n !(result instanceof Keyframes) &&\n !isPlainObject(result)\n ) {\n // eslint-disable-next-line no-console\n console.error(\n `${getComponentName(\n // @ts-expect-error handling unexpected input\n chunkFn as AnyComponent\n )} is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.`\n );\n }\n\n return flatten(result, executionContext, styleSheet, stylisInstance);\n } else return chunk as unknown as IStyledComponent<'div', any>;\n }\n\n if (chunk instanceof Keyframes) {\n if (styleSheet) {\n chunk.inject(styleSheet, stylisInstance);\n return chunk.getName(stylisInstance);\n } else return chunk;\n }\n\n /* Handle objects */\n return isPlainObject(chunk) ? objToCssArray(chunk as StyledObject) : chunk.toString();\n}\n","import { Interpolation } from '../types';\n\nexport default function interleave<Props = unknown>(\n strings: TemplateStringsArray,\n interpolations: Interpolation<Props>[]\n): Interpolation<Props>[] {\n const result: Interpolation<Props>[] = [strings[0]];\n\n for (let i = 0, len = interpolations.length; i < len; i += 1) {\n result.push(interpolations[i], strings[i + 1]);\n }\n\n return result;\n}\n","import { Interpolation, StyledObject, StyleFunction, Styles } from '../types';\nimport { EMPTY_ARRAY } from '../utils/empties';\nimport flatten from '../utils/flatten';\nimport interleave from '../utils/interleave';\nimport isFunction from '../utils/isFunction';\nimport isPlainObject from '../utils/isPlainObject';\n\n/**\n * Used when flattening object styles to determine if we should\n * expand an array of styles.\n */\nconst addTag = <T>(arg: T & { isCss?: boolean }) => {\n if (Array.isArray(arg)) {\n // eslint-disable-next-line no-param-reassign\n arg.isCss = true;\n }\n return arg;\n};\n\nexport default function css<Props>(\n styles: Styles<Props>,\n ...interpolations: Interpolation<Props>[]\n) {\n if (isFunction(styles) || isPlainObject(styles)) {\n const styleFunctionOrObject = styles as StyleFunction<Props> | StyledObject;\n\n return addTag(\n flatten<Props>(\n interleave<Props>(EMPTY_ARRAY as TemplateStringsArray, [\n styleFunctionOrObject,\n ...interpolations,\n ])\n )\n );\n }\n\n const styleStringArray = styles as TemplateStringsArray;\n\n if (\n interpolations.length === 0 &&\n styleStringArray.length === 1 &&\n typeof styleStringArray[0] === 'string'\n ) {\n return styleStringArray;\n }\n\n return addTag(flatten<Props>(interleave<Props>(styleStringArray, interpolations)));\n}\n","import {\n Attrs,\n Interpolation,\n IStyledComponent,\n IStyledComponentFactory,\n IStyledNativeComponent,\n IStyledNativeComponentFactory,\n NativeTarget,\n RuleSet,\n StyledNativeOptions,\n StyledOptions,\n StyledTarget,\n Styles,\n WebTarget,\n} from '../types';\nimport { EMPTY_OBJECT } from '../utils/empties';\nimport styledError from '../utils/error';\nimport css from './css';\n\nexport interface NativeStyled<\n Target extends NativeTarget,\n OuterProps = unknown,\n OuterStatics = unknown\n> {\n <Props = unknown, Statics = unknown>(\n initialStyles: Styles<OuterProps & Props>,\n ...interpolations: Exclude<Interpolation<OuterProps & Props>, IStyledComponent<any>>[]\n ): IStyledNativeComponent<Target, OuterProps & Props> & OuterStatics & Statics;\n attrs(attrs: Attrs<OuterProps>): NativeStyled<Target, OuterProps, OuterStatics>;\n withConfig(\n config: StyledNativeOptions<OuterProps>\n ): NativeStyled<Target, OuterProps, OuterStatics>;\n}\n\nexport interface WebStyled<Target extends WebTarget, OuterProps = unknown, OuterStatics = unknown> {\n <Props = unknown, Statics = unknown>(\n initialStyles: Styles<OuterProps & Props>,\n ...interpolations: Interpolation<OuterProps & Props>[]\n ): IStyledComponent<Target, OuterProps & Props> & OuterStatics & Statics;\n attrs(attrs: Attrs<OuterProps>): WebStyled<Target, OuterProps, OuterStatics>;\n withConfig(config: StyledOptions<OuterProps>): WebStyled<Target, OuterProps, OuterStatics>;\n}\n\nexport default function constructWithOptions<\n Environment extends 'web' | 'native',\n Target extends StyledTarget,\n OuterProps = unknown, // used for styled<{}>().attrs() so attrs() gets the generic prop context\n OuterStatics = unknown\n>(\n componentConstructor: Environment extends 'web'\n ? IStyledComponentFactory<any, any, any>\n : IStyledNativeComponentFactory<any, any, any>,\n tag: Target,\n options: Environment extends 'web'\n ? StyledOptions<OuterProps>\n : StyledNativeOptions<OuterProps> = EMPTY_OBJECT as StyledOptions<OuterProps>\n) {\n // We trust that the tag is a valid component as long as it isn't falsish\n // Typically the tag here is a string or function (i.e. class or pure function component)\n // However a component may also be an object if it uses another utility, e.g. React.memo\n // React will output an appropriate warning however if the `tag` isn't valid\n if (!tag) {\n throw styledError(1, tag);\n }\n\n /* This is callable directly as a template function */\n const templateFunction = <Props = unknown, Statics = unknown>(\n initialStyles: Styles<OuterProps & Props>,\n ...interpolations: Interpolation<OuterProps & Props>[]\n ) =>\n componentConstructor(\n tag,\n options as unknown as Environment extends 'web'\n ? StyledOptions<OuterProps & Props>\n : StyledNativeOptions<OuterProps & Props>,\n css<OuterProps & Props>(initialStyles, ...interpolations) as RuleSet<OuterProps & Props>\n ) as ReturnType<\n Environment extends 'web'\n ? IStyledComponentFactory<Target, OuterProps & Props, OuterStatics & Statics>\n : // @ts-expect-error compiler is not narrowing properly\n IStyledNativeComponentFactory<Target, OuterProps & Props, OuterStatics & Statics>\n >;\n\n /* Modify/inject new props at runtime */\n templateFunction.attrs = (attrs: Attrs<OuterProps>) =>\n constructWithOptions<Environment, Target, OuterProps, OuterStatics>(componentConstructor, tag, {\n ...options,\n attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean),\n });\n\n /**\n * If config methods are called, wrap up a new template function and merge options */\n templateFunction.withConfig = (\n config: Environment extends 'web' ? StyledOptions<OuterProps> : StyledNativeOptions<OuterProps>\n ) =>\n constructWithOptions<Environment, Target, OuterProps, OuterStatics>(componentConstructor, tag, {\n ...options,\n ...config,\n });\n\n return templateFunction;\n}\n","import React, { useContext, useMemo } from 'react';\nimport styledError from '../utils/error';\nimport isFunction from '../utils/isFunction';\n\n/**\n * Override DefaultTheme to get accurate typings for your project.\n *\n * ```\n * // create styled-components.d.ts in your project source\n * // if it isn't being picked up, check tsconfig compilerOptions.types\n * import type { CSSProp } from \"styled-components\";\n * import Theme from './theme';\n *\n * type ThemeType = typeof Theme;\n *\n * declare module \"styled-components\" {\n * export interface DefaultTheme extends ThemeType {}\n * }\n *\n * declare module \"react\" {\n * interface DOMAttributes<T> {\n * css?: CSSProp;\n * }\n * }\n * ```\n */\nexport interface DefaultTheme {\n [key: string]: any;\n}\n\ntype ThemeFn = (outerTheme?: DefaultTheme) => DefaultTheme;\ntype ThemeArgument = DefaultTheme | ThemeFn;\n\ntype Props = {\n children?: React.ReactChild;\n theme: ThemeArgument;\n};\n\nexport const ThemeContext = React.createContext<DefaultTheme | undefined>(undefined);\n\nexport const ThemeConsumer = ThemeContext.Consumer;\n\nfunction mergeTheme(theme: ThemeArgument, outerTheme?: DefaultTheme): DefaultTheme {\n if (!theme) {\n throw styledError(14);\n }\n\n if (isFunction(theme)) {\n const themeFn = theme as ThemeFn;\n const mergedTheme = themeFn(outerTheme);\n\n if (\n process.env.NODE_ENV !== 'production' &&\n (mergedTheme === null || Array.isArray(mergedTheme) || typeof mergedTheme !== 'object')\n ) {\n throw styledError(7);\n }\n\n return mergedTheme;\n }\n\n if (Array.isArray(theme) || typeof theme !== 'object') {\n throw styledError(8);\n }\n\n return outerTheme ? { ...outerTheme, ...theme } : theme;\n}\n\n/**\n * Provide a theme to an entire react component tree via context\n */\nexport default function ThemeProvider(props: Props): JSX.Element | null {\n const outerTheme = useContext(ThemeContext);\n const themeContext = useMemo(\n () => mergeTheme(props.theme, outerTheme),\n [props.theme, outerTheme]\n );\n\n if (!props.children) {\n return null;\n }\n\n return <ThemeContext.Provider value={themeContext}>{props.children}</ThemeContext.Provider>;\n}\n","import { ExtensibleObject } from '../types';\nimport { EMPTY_OBJECT } from './empties';\n\nexport default function determineTheme(\n props: ExtensibleObject,\n providedTheme: any,\n defaultProps: any = EMPTY_OBJECT\n) {\n return (props.theme !== defaultProps.theme && props.theme) || providedTheme || defaultProps.theme;\n}\n","import React from 'react';\nimport { AnyComponent } from '../types';\n\nconst hasSymbol = typeof Symbol === 'function' && Symbol.for;\n\n// copied from react-is\nconst REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nconst REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\n\n/**\n * Adapted from hoist-non-react-statics to avoid the react-is dependency.\n */\nconst REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true,\n};\n\nconst KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true,\n};\n\nconst FORWARD_REF_STATICS = {\n $$typeof: true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n};\n\nconst MEMO_STATICS = {\n $$typeof: true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true,\n};\n\nconst TYPE_STATICS = {\n [REACT_FORWARD_REF_TYPE]: FORWARD_REF_STATICS,\n [REACT_MEMO_TYPE]: MEMO_STATICS,\n};\n\ntype OmniComponent = AnyComponent;\n\n// adapted from react-is\nfunction isMemo(\n object: OmniComponent | React.MemoExoticComponent<any>\n): object is React.MemoExoticComponent<any> {\n const $$typeofType = 'type' in object && object.type.$$typeof;\n\n return $$typeofType === REACT_MEMO_TYPE;\n}\n\nfunction getStatics(component: OmniComponent) {\n // React v16.11 and below\n if (isMemo(component)) {\n return MEMO_STATICS;\n }\n\n // React v16.12 and above\n return '$$typeof' in component\n ? TYPE_STATICS[component['$$typeof'] as unknown as string]\n : REACT_STATICS;\n}\n\nconst defineProperty = Object.defineProperty;\nconst getOwnPropertyNames = Object.getOwnPropertyNames;\nconst getOwnPropertySymbols = Object.getOwnPropertySymbols;\nconst getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nconst getPrototypeOf = Object.getPrototypeOf;\nconst objectPrototype = Object.prototype;\n\ntype ExcludeList = {\n [key: string]: true;\n};\n\ntype NonReactStatics<S extends OmniComponent, C extends ExcludeList = {}> = {\n [key in Exclude<\n keyof S,\n S extends React.MemoExoticComponent<any>\n ? keyof typeof MEMO_STATICS | keyof C\n : S extends React.ForwardRefExoticComponent<any>\n ? keyof typeof FORWARD_REF_STATICS | keyof C\n : keyof typeof REACT_STATICS | keyof typeof KNOWN_STATICS | keyof C\n >]: S[key];\n};\n\nexport default function hoistNonReactStatics<\n T extends OmniComponent,\n S extends OmniComponent,\n C extends ExcludeList = {}\n>(targetComponent: T, sourceComponent: S, excludelist?: C) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n\n if (objectPrototype) {\n const inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, excludelist);\n }\n }\n\n let keys: (String | Symbol)[] = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n const targetStatics = getStatics(targetComponent);\n const sourceStatics = getStatics(sourceComponent);\n\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i] as unknown as string;\n if (\n !(key in KNOWN_STATICS) &&\n !(excludelist && excludelist[key]) &&\n !(sourceStatics && key in sourceStatics) &&\n !(targetStatics && key in targetStatics)\n ) {\n const descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor!);\n } catch (e) {\n /* ignore */\n }\n }\n }\n }\n\n return targetComponent as T & NonReactStatics<S, C>;\n}\n","import React from 'react';\nimport { ThemeContext } from '../models/ThemeProvider';\nimport { AnyComponent, ExecutionContext } from '../types';\nimport determineTheme from '../utils/determineTheme';\nimport getComponentName from '../utils/getComponentName';\nimport hoist from '../utils/hoist';\n\nexport default function withTheme<T extends AnyComponent>(Component: T) {\n const WithTheme = React.forwardRef<T, JSX.LibraryManagedAttributes<T, ExecutionContext>>(\n (props, ref) => {\n const theme = React.useContext(ThemeContext);\n const themeProp = determineTheme(props, theme, Component.defaultProps);\n\n if (process.env.NODE_ENV !== 'production' && themeProp === undefined) {\n // eslint-disable-next-line no-console\n console.warn(\n `[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class \"${getComponentName(\n Component\n )}\"`\n );\n }\n\n return <Component {...props} theme={themeProp} ref={ref} />;\n }\n );\n\n WithTheme.displayName = `WithTheme(${getComponentName(Component)})`;\n\n return hoist(WithTheme, Component);\n}\n","import { useContext } from 'react';\nimport { DefaultTheme, ThemeContext } from '../models/ThemeProvider';\n\nconst useTheme = (): DefaultTheme | undefined => useContext(ThemeContext);\n\nexport default useTheme;\n","const AD_REPLACER_R = /(a)(d)/gi;\n\n/* This is the \"capacity\" of our alphabet i.e. 2x26 for all letters plus their capitalised\n * counterparts */\nconst charsLength = 52;\n\n/* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */\nconst getAlphabeticChar = (code: number) => String.fromCharCode(code + (code > 25 ? 39 : 97));\n\n/* input a number, usually a hash and convert it to base-52 */\nexport default function generateAlphabeticName(code: number) {\n let name = '';\n let x;\n\n /* get a char and divide by alphabet-length */\n for (x = Math.abs(code); x > charsLength; x = (x / charsLength) | 0) {\n name = getAlphabeticChar(x % charsLength) + name;\n }\n\n return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2');\n}\n","import generateAlphabeticName from './generateAlphabeticName';\nimport { hash } from './hash';\n\nexport default function generateComponentId(str: string) {\n return generateAlphabeticName(hash(str) >>> 0);\n}\n","import transformDeclPairs from 'css-to-react-native';\nimport { parse } from 'postcss';\nimport {\n ExecutionContext,\n ExtensibleObject,\n IInlineStyle,\n IInlineStyleConstructor,\n RuleSet,\n StyleSheet,\n} from '../types';\nimport flatten from '../utils/flatten';\nimport generateComponentId from '../utils/generateComponentId';\n\nlet generated: ExtensibleObject = {};\n\nexport const resetStyleCache = (): void => {\n generated = {};\n};\n\n/**\n * InlineStyle takes arbitrary CSS and generates a flat object\n */\nexport default function makeInlineStyleClass<Props = unknown>(styleSheet: StyleSheet) {\n const InlineStyle: IInlineStyleConstructor<Props> = class InlineStyle\n implements IInlineStyle<Props>\n {\n rules: RuleSet<Props>;\n\n constructor(rules: RuleSet<Props>) {\n this.rules = rules;\n }\n\n generateStyleObject(executionContext: ExecutionContext & Props) {\n // keyframes, functions, and component selectors are not allowed for React Native\n const flatCSS = (flatten(this.rules, executionContext) as string[]).join('');\n const hash = generateComponentId(flatCSS);\n\n if (!generated[hash]) {\n const root = parse(flatCSS);\n const declPairs: [string, string][] = [];\n\n root.each(node => {\n if (node.type === 'decl') {\n declPairs.push([node.prop, node.value]);\n } else if (process.env.NODE_ENV !== 'production' && node.type !== 'comment') {\n /* eslint-disable no-console */\n console.warn(`Node of type ${node.type} not supported as an inline style`);\n }\n });\n\n const styleObject = transformDeclPairs(declPairs);\n const styles = styleSheet.create({\n generated: styleObject,\n });\n\n generated[hash] = styles.generated;\n }\n return generated[hash];\n }\n };\n\n return InlineStyle;\n}\n","import { StyledTarget } from '../types';\n\nexport default function isTag(target: StyledTarget) {\n return (\n typeof target === 'string' &&\n (process.env.NODE_ENV !== 'production'\n ? target.charAt(0) === target.charAt(0).toLowerCase()\n : true)\n );\n}\n","import { StyledTarget } from '../types';\nimport getComponentName from './getComponentName';\nimport isTag from './isTag';\n\nexport default function generateDisplayName(target: StyledTarget) {\n return isTag(target) ? `styled.${target}` : `Styled(${getComponentName(target)})`;\n}\n","import { ExtensibleObject } from '../types';\nimport isPlainObject from './isPlainObject'\n\nfunction mixinRecursively(target: any, source: any, forceMerge = false) {\n /* only merge into POJOs, Arrays, but for top level objects only\n * allow to merge into anything by passing forceMerge = true */\n if (!forceMerge && !isPlainObject(target) && !Array.isArray(target)) {\n return source;\n }\n\n if (Array.isArray(source)) {\n for (let key = 0; key < source.length; key++) {\n target[key] = mixinRecursively(target[key], source[key]);\n }\n } else if (isPlainObject(source)) {\n for (const key in source) {\n target[key] = mixinRecursively(target[key], source[key]);\n }\n }\n\n return target;\n}\n\n/**\n * Arrays & POJOs merged recursively, other objects and value types are overridden\n * If target is not a POJO or an Array, it will get source properties injected via shallow merge\n * Source objects applied left to right. Mutates & returns target. Similar to lodash merge.\n */\nexport default function mixinDeep(target: ExtensibleObject = {}, ...sources: any[]) {\n for (const source of sources) {\n mixinRecursively(target, source, true);\n }\n\n return target;\n}\n","import React, { createElement, Ref, useContext, useMemo } from 'react';\nimport type {\n Attrs,\n BaseExtensibleObject,\n ExecutionContext,\n ExtensibleObject,\n IInlineStyleConstructor,\n IStyledNativeComponent,\n IStyledNativeComponentFactory,\n IStyledNativeStatics,\n NativeTarget,\n RuleSet,\n StyledNativeOptions,\n} from '../types';\nimport determineTheme from '../utils/determineTheme';\nimport { EMPTY_ARRAY, EMPTY_OBJECT } from '../utils/empties';\nimport generateDisplayName from '../utils/generateDisplayName';\nimport hoist from '../utils/hoist';\nimport isStyledComponent from '../utils/isStyledComponent';\nimport merge from '../utils/mixinDeep';\nimport { DefaultTheme, ThemeContext } from './ThemeProvider';\n\nfunction useResolvedAttrs<Props = unknown>(\n theme: DefaultTheme = EMPTY_OBJECT,\n props: Props,\n attrs: Attrs<Props>[]\n) {\n // NOTE: can't memoize this\n // returns [context, resolvedAttrs]\n // where resolvedAttrs is only the things injected by the attrs themselves\n const context: ExecutionContext & Props = { ...props, theme };\n const resolvedAttrs: BaseExtensibleObject = {};\n\n attrs.forEach(attrDef => {\n let resolvedAttrDef = typeof attrDef === 'function' ? attrDef(context) : attrDef;\n let key;\n\n /* eslint-disable guard-for-in */\n for (key in resolvedAttrDef) {\n // @ts-expect-error bad types\n context[key] = resolvedAttrs[key] = resolvedAttrDef[key];\n }\n /* eslint-enable guard-for-in */\n });\n\n return [context, resolvedAttrs];\n}\n\n// Validator defaults to true if not in HTML/DOM env\nconst validAttr = () => true;\n\nfunction useStyledComponentImpl<Target extends NativeTarget, Props extends ExtensibleObject>(\n forwardedComponent: IStyledNativeComponent<Target, Props>,\n props: Props,\n forwardedRef: Ref<any>\n) {\n const {\n attrs: componentAttrs,\n inlineStyle,\n defaultProps,\n shouldForwardProp,\n target,\n } = forwardedComponent;\n\n // NOTE: the non-hooks version only subscribes to this when !componentStyle.isStatic,\n // but that'd be against the rules-of-hooks. We could be naughty and do it anyway as it\n // should be an immutable value, but behave for now.\n const theme = determineTheme(props, useContext(ThemeContext), defaultProps);\n\n const [context, attrs] = useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs);\n\n const generatedStyles = inlineStyle.generateStyleObject(context);\n\n const refToForward = forwardedRef;\n\n const elementToBeCreated: NativeTarget = attrs.$as || props.$as || attrs.as || props.as || target;\n\n const computedProps: ExtensibleObject = attrs !== props ? { ...props, ...attrs } : props;\n const propsForElement: ExtensibleObject = {};\n\n // eslint-disable-next-line guard-for-in\n for (const key in computedProps) {\n if (key[0] === '$' || key === 'as') continue;\n else if (key === 'forwardedAs') {\n propsForElement.as = computedProps[key];\n } else if (!shouldForwardProp || shouldForwardProp(key, validAttr, elementToBeCreated)) {\n propsForElement[key] = computedProps[key];\n }\n }\n\n propsForElement.style = useMemo(() => {\n if (typeof props.style === 'function') {\n return (state: any) => {\n return [generatedStyles].concat(props.style(state));\n };\n } else if (props.style == null) {\n return generatedStyles;\n } else {\n return [generatedStyles].concat(props.style || []);\n }\n }, [props.style, generatedStyles]);\n\n propsForElement.ref = refToForward;\n\n return createElement(elementToBeCreated, propsForElement);\n}\n\nexport default (InlineStyle: IInlineStyleConstructor<any>) => {\n const createStyledNativeComponent = <\n Target extends NativeTarget,\n OuterProps extends ExtensibleObject,\n Statics = unknown\n >(\n target: Target,\n options: StyledNativeOptions<OuterProps>,\n rules: RuleSet<OuterProps>\n ): ReturnType<IStyledNativeComponentFactory<Target, OuterProps, Statics>> => {\n const isTargetStyledComp = isStyledComponent(target);\n const styledComponentTarget = target as IStyledNativeComponent<Target, OuterProps>;\n\n const { displayName = generateDisplayName(target), attrs = EMPTY_ARRAY } = options;\n\n // fold the underlying StyledComponent attrs up (implicit extend)\n const finalAttrs =\n isTargetStyledComp && styledComponentTarget.attrs\n ? styledComponentTarget.attrs.concat(attrs).filter(Boolean)\n : (attrs as Attrs<OuterProps>[]);\n\n // eslint-disable-next-line prefer-destructuring\n let shouldForwardProp = options.shouldForwardProp;\n\n if (isTargetStyledComp && styledComponentTarget.shouldForwardProp) {\n const shouldForwardPropFn = styledComponentTarget.shouldForwardProp;\n\n if (options.shouldForwardProp) {\n const passedShouldForwardPropFn = options.shouldForwardProp;\n\n // compose nested shouldForwardProp calls\n shouldForwardProp = (prop, filterFn, elementToBeCreated) =>\n shouldForwardPropFn(prop, filterFn, elementToBeCreated) &&\n passedShouldForwardPropFn(prop, filterFn, elementToBeCreated);\n } else {\n // eslint-disable-next-line prefer-destructuring\n shouldForwardProp = shouldForwardPropFn;\n }\n }\n\n const forwardRef = (props: ExtensibleObject & OuterProps, ref: React.Ref<any>) =>\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useStyledComponentImpl<Target, OuterProps>(WrappedStyledComponent, props, ref);\n\n forwardRef.displayName = displayName;\n\n /**\n * forwardRef creates a new interim component, which we'll take advantage of\n * instead of extending ParentComponent to create _another_ interim class\n */\n let WrappedStyledComponent = React.forwardRef(forwardRef) as unknown as IStyledNativeComponent<\n Target,\n OuterProps\n > &\n Statics;\n\n WrappedStyledComponent.attrs = finalAttrs;\n WrappedStyledComponent.inlineStyle = new InlineStyle(\n isTargetStyledComp ? styledComponentTarget.inlineStyle.rules.concat(rules) : rules\n ) as InstanceType<IInlineStyleConstructor<OuterProps>>;\n WrappedStyledComponent.displayName = displayName;\n WrappedStyledComponent.shouldForwardProp = shouldForwardProp;\n\n // @ts-expect-error we don't actually need this for anything other than detection of a styled-component\n WrappedStyledComponent.styledComponentId = true;\n\n // fold the underlying StyledComponent target up since we folded the styles\n WrappedStyledComponent.target = isTargetStyledComp ? styledComponentTarget.target : target;\n\n WrappedStyledComponent.withComponent = function withComponent<\n Target extends NativeTarget,\n Props = unknown\n >(tag: Target) {\n const newOptions = {\n ...options,\n attrs: finalAttrs,\n } as StyledNativeOptions<OuterProps & Props>;\n\n return createStyledNativeComponent<Target, OuterProps & Props, Statics>(\n tag,\n newOptions,\n rules as RuleSet<OuterProps & Props>\n );\n };\n\n Object.defineProperty(WrappedStyledComponent, 'defaultProps', {\n get() {\n return this._foldedDefaultProps;\n },\n\n set(obj) {\n this._foldedDefaultProps = isTargetStyledComp\n ? merge({}, styledComponentTarget.defaultProps, obj)\n : obj;\n },\n });\n\n hoist<typeof WrappedStyledComponent, typeof target>(WrappedStyledComponent, target, {\n // all SC-specific things should not be hoisted\n attrs: true,\n inlineStyle: true,\n displayName: true,\n shouldForwardProp: true,\n target: true,\n withComponent: true,\n } as { [key in keyof IStyledNativeStatics<Target>]: true });\n\n return WrappedStyledComponent;\n };\n\n return createStyledNativeComponent;\n};\n","import React from 'react';\nimport constructWithOptions, { NativeStyled } from '../constructors/constructWithOptions';\nimport css from '../constructors/css';\nimport withTheme from '../hoc/withTheme';\nimport useTheme from '../hooks/useTheme';\nimport _InlineStyle from '../models/InlineStyle';\nimport _StyledNativeComponent from '../models/StyledNativeComponent';\nimport ThemeProvider, { ThemeConsumer, ThemeContext } from '../models/ThemeProvider';\nimport { NativeTarget } from '../types';\nimport isStyledComponent from '../utils/isStyledComponent';\n\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst reactNative = require('react-native') as Awaited<typeof import('react-native')>;\n\nconst InlineStyle = _InlineStyle(reactNative.StyleSheet);\nconst StyledNativeComponent = _StyledNativeComponent(InlineStyle);\n\nconst baseStyled = <Target extends NativeTarget>(tag: Target) =>\n constructWithOptions<'native', Target>(StyledNativeComponent, tag);\n\n/* React native lazy-requires each of these modules for some reason, so let's\n * assume it's for a good reason and not eagerly load them all */\nconst aliases = [\n 'ActivityIndicator',\n 'ActivityIndicatorIOS',\n 'ART',\n 'Button',\n 'DatePickerIOS',\n 'DrawerLayoutAndroid',\n 'FlatList',\n 'Image',\n 'ImageBackground',\n 'ImageEditor',\n 'ImageStore',\n 'KeyboardAvoidingView',\n 'ListView',\n 'MapView',\n 'Modal',\n 'NavigatorIOS',\n 'Picker',\n 'PickerIOS',\n 'Pressable',\n 'ProgressBarAndroid',\n 'ProgressViewIOS',\n 'RecyclerViewBackedScrollView',\n 'RefreshControl',\n 'SafeAreaView',\n 'ScrollView',\n 'SectionList',\n 'SegmentedControlIOS',\n 'Slider',\n 'SliderIOS',\n 'SnapshotViewIOS',\n 'StatusBar',\n 'SwipeableListView',\n 'Switch',\n 'SwitchAndroid',\n 'SwitchIOS',\n 'TabBarIOS',\n 'Text',\n 'TextInput',\n 'ToastAndroid',\n 'ToolbarAndroid',\n 'Touchable',\n 'TouchableHighlight',\n 'TouchableNativeFeedback',\n 'TouchableOpacity',\n 'TouchableWithoutFeedback',\n 'View',\n 'ViewPagerAndroid',\n 'VirtualizedList',\n 'WebView',\n] as const;\n\ntype KnownComponents = typeof aliases[number];\n\n/** Isolates RN-provided components since they don't expose a helper type for this. */\ntype RNComponents = {\n [K in keyof typeof reactNative]: typeof reactNative[K] extends React.JSXElementConstructor<any>\n ? typeof reactNative[K]\n : never;\n};\n\nconst styled = baseStyled as typeof baseStyled & {\n // @ts-expect-error it's fine\n [E in KnownComponents]: NativeStyled<RNComponents[E], React.ComponentProps<RNComponents[E]>>;\n};\n\n/* Define a getter for each alias which simply gets the reactNative component\n * and passes it to styled */\naliases.forEach(alias =>\n Object.defineProperty(styled, alias, {\n enumerable: true,\n configurable: false,\n get() {\n // @ts-expect-error supporting old imports in some cases\n return styled(reactNative[alias]);\n },\n })\n);\n\nexport { IStyledNativeComponent, IStyledNativeComponentFactory, IStyledNativeStatics, NativeTarget, StyledNativeOptions } from '../types';\nexport { css, isStyledComponent, ThemeProvider, ThemeConsumer, ThemeContext, withTheme, useTheme };\n\nexport default styled;\n"]},"metadata":{},"sourceType":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { unmountComponentAtNode } from 'react-dom';\nexport default unmountComponentAtNode;","map":{"version":3,"names":["unmountComponentAtNode"],"sources":["/Volumes/ExternalSSD/Projects/hero-design/packages/rn/node_modules/react-native-web/dist/exports/unmountComponentAtNode/index.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport { unmountComponentAtNode } from 'react-dom';\nexport default unmountComponentAtNode;"],"mappings":"AAQA,SAASA,sBAAT,QAAuC,WAAvC;AACA,eAAeA,sBAAf"},"metadata":{},"sourceType":"module"}
|