styled-components 5.3.2 → 6.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (615) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +187 -0
  3. package/dist/base.d.ts +17 -0
  4. package/dist/constants.d.ts +8 -0
  5. package/dist/constructors/constructWithOptions.d.ts +19 -0
  6. package/dist/constructors/createGlobalStyle.d.ts +3 -0
  7. package/dist/constructors/css.d.ts +4 -0
  8. package/dist/constructors/keyframes.d.ts +3 -0
  9. package/dist/constructors/styled.d.ts +185 -0
  10. package/dist/hoc/withTheme.d.ts +3 -0
  11. package/dist/hoc/withTheme.spec.d.ts +1 -0
  12. package/dist/hooks/useTheme.d.ts +3 -0
  13. package/dist/index-standalone.d.ts +2 -0
  14. package/dist/index.d.ts +3 -0
  15. package/dist/macro/index.d.ts +2 -0
  16. package/dist/models/ComponentStyle.d.ts +15 -0
  17. package/dist/models/GlobalStyle.d.ts +11 -0
  18. package/dist/models/InlineStyle.d.ts +6 -0
  19. package/dist/models/Keyframes.d.ts +11 -0
  20. package/dist/models/ServerStyleSheet.d.ts +15 -0
  21. package/dist/models/StyleSheetManager.d.ts +21 -0
  22. package/dist/models/StyledComponent.d.ts +3 -0
  23. package/dist/models/StyledNativeComponent.d.ts +3 -0
  24. package/dist/models/ThemeProvider.d.ts +17 -0
  25. package/dist/native/index.d.ts +64 -0
  26. package/dist/primitives/index.d.ts +22 -0
  27. package/dist/secretInternals.d.ts +5 -0
  28. package/dist/sheet/GroupIDAllocator.d.ts +4 -0
  29. package/dist/sheet/GroupedTag.d.ts +11 -0
  30. package/dist/sheet/Rehydration.d.ts +3 -0
  31. package/dist/sheet/Sheet.d.ts +40 -0
  32. package/dist/sheet/Tag.d.ts +54 -0
  33. package/dist/sheet/dom.d.ts +4 -0
  34. package/dist/sheet/index.d.ts +1 -0
  35. package/dist/sheet/types.d.ts +34 -0
  36. package/dist/styled-components-macro.cjs.js +1 -1
  37. package/dist/styled-components-macro.cjs.js.map +1 -1
  38. package/dist/styled-components-macro.esm.js +1 -1
  39. package/dist/styled-components-macro.esm.js.map +1 -1
  40. package/dist/styled-components.browser.cjs.js +1 -1
  41. package/dist/styled-components.browser.cjs.js.map +1 -1
  42. package/dist/styled-components.browser.esm.js +1 -1
  43. package/dist/styled-components.browser.esm.js.map +1 -1
  44. package/dist/styled-components.cjs.js +1 -1
  45. package/dist/styled-components.cjs.js.map +1 -1
  46. package/dist/styled-components.esm.js +1 -1
  47. package/dist/styled-components.esm.js.map +1 -1
  48. package/dist/styled-components.js +1 -1
  49. package/dist/styled-components.js.map +1 -1
  50. package/dist/styled-components.min.js +1 -1
  51. package/dist/styled-components.min.js.map +1 -1
  52. package/dist/test/globals.d.ts +2 -0
  53. package/dist/test/utils.d.ts +191 -0
  54. package/dist/tsconfig.tsbuildinfo +1 -0
  55. package/dist/types.d.ts +120 -0
  56. package/dist/utils/addUnitIfNeeded.d.ts +1 -0
  57. package/dist/utils/checkDynamicCreation.d.ts +1 -0
  58. package/dist/utils/createWarnTooManyClasses.d.ts +3 -0
  59. package/dist/utils/determineTheme.d.ts +2 -0
  60. package/dist/utils/domElements.d.ts +2 -0
  61. package/dist/utils/empties.d.ts +3 -0
  62. package/dist/utils/error.d.ts +5 -0
  63. package/dist/utils/errors.d.ts +20 -0
  64. package/dist/utils/escape.d.ts +5 -0
  65. package/dist/utils/flatten.d.ts +4 -0
  66. package/dist/utils/generateAlphabeticName.d.ts +1 -0
  67. package/dist/utils/generateComponentId.d.ts +1 -0
  68. package/dist/utils/generateDisplayName.d.ts +2 -0
  69. package/dist/utils/getComponentName.d.ts +2 -0
  70. package/dist/utils/hash.d.ts +3 -0
  71. package/dist/utils/hoist.d.ts +51 -0
  72. package/dist/utils/hyphenateStyleName.d.ts +14 -0
  73. package/dist/utils/interleave.d.ts +2 -0
  74. package/dist/utils/isFunction.d.ts +1 -0
  75. package/dist/utils/isPlainObject.d.ts +1 -0
  76. package/dist/utils/isStatelessFunction.d.ts +1 -0
  77. package/dist/utils/isStaticRules.d.ts +2 -0
  78. package/dist/utils/isStyledComponent.d.ts +2 -0
  79. package/dist/utils/isTag.d.ts +2 -0
  80. package/dist/utils/joinStrings.d.ts +4 -0
  81. package/dist/utils/mixinDeep.d.ts +7 -0
  82. package/dist/utils/nonce.d.ts +1 -0
  83. package/dist/utils/stylis.d.ts +9 -0
  84. package/native/dist/base.d.ts +17 -0
  85. package/native/dist/base.d.ts.map +1 -0
  86. package/native/dist/constants.d.ts +8 -0
  87. package/native/dist/constants.d.ts.map +1 -0
  88. package/native/dist/constructors/constructWithOptions.d.ts +19 -0
  89. package/native/dist/constructors/constructWithOptions.d.ts.map +1 -0
  90. package/native/dist/constructors/createGlobalStyle.d.ts +3 -0
  91. package/native/dist/constructors/createGlobalStyle.d.ts.map +1 -0
  92. package/native/dist/constructors/css.d.ts +4 -0
  93. package/native/dist/constructors/css.d.ts.map +1 -0
  94. package/native/dist/constructors/keyframes.d.ts +3 -0
  95. package/native/dist/constructors/keyframes.d.ts.map +1 -0
  96. package/native/dist/constructors/styled.d.ts +185 -0
  97. package/native/dist/constructors/styled.d.ts.map +1 -0
  98. package/native/dist/dist/base.d.ts +18 -0
  99. package/native/dist/dist/base.d.ts.map +1 -0
  100. package/native/dist/dist/constants.d.ts +9 -0
  101. package/native/dist/dist/constants.d.ts.map +1 -0
  102. package/native/dist/dist/constructors/constructWithOptions.d.ts +20 -0
  103. package/native/dist/dist/constructors/constructWithOptions.d.ts.map +1 -0
  104. package/native/dist/dist/constructors/createGlobalStyle.d.ts +4 -0
  105. package/native/dist/dist/constructors/createGlobalStyle.d.ts.map +1 -0
  106. package/native/dist/dist/constructors/css.d.ts +5 -0
  107. package/native/dist/dist/constructors/css.d.ts.map +1 -0
  108. package/native/dist/dist/constructors/keyframes.d.ts +4 -0
  109. package/native/dist/dist/constructors/keyframes.d.ts.map +1 -0
  110. package/native/dist/dist/constructors/styled.d.ts +186 -0
  111. package/native/dist/dist/constructors/styled.d.ts.map +1 -0
  112. package/native/dist/dist/hoc/withTheme.d.ts +4 -0
  113. package/native/dist/dist/hoc/withTheme.d.ts.map +1 -0
  114. package/native/dist/dist/hoc/withTheme.spec.d.ts +2 -0
  115. package/native/dist/dist/hoc/withTheme.spec.d.ts.map +1 -0
  116. package/native/dist/dist/hooks/useTheme.d.ts +4 -0
  117. package/native/dist/dist/hooks/useTheme.d.ts.map +1 -0
  118. package/native/dist/dist/index-standalone.d.ts +3 -0
  119. package/native/dist/dist/index-standalone.d.ts.map +1 -0
  120. package/native/dist/dist/index.d.ts +4 -0
  121. package/native/dist/dist/index.d.ts.map +1 -0
  122. package/native/dist/dist/macro/index.d.ts +3 -0
  123. package/native/dist/dist/macro/index.d.ts.map +1 -0
  124. package/native/dist/dist/macro/test/babel.config.d.ts +1 -0
  125. package/native/dist/dist/macro/test/babel.config.d.ts.map +1 -0
  126. package/native/dist/dist/models/ComponentStyle.d.ts +16 -0
  127. package/native/dist/dist/models/ComponentStyle.d.ts.map +1 -0
  128. package/native/dist/dist/models/GlobalStyle.d.ts +12 -0
  129. package/native/dist/dist/models/GlobalStyle.d.ts.map +1 -0
  130. package/native/dist/dist/models/InlineStyle.d.ts +7 -0
  131. package/native/dist/dist/models/InlineStyle.d.ts.map +1 -0
  132. package/native/dist/dist/models/Keyframes.d.ts +12 -0
  133. package/native/dist/dist/models/Keyframes.d.ts.map +1 -0
  134. package/native/dist/dist/models/ServerStyleSheet.d.ts +16 -0
  135. package/native/dist/dist/models/ServerStyleSheet.d.ts.map +1 -0
  136. package/native/dist/dist/models/StyleSheetManager.d.ts +22 -0
  137. package/native/dist/dist/models/StyleSheetManager.d.ts.map +1 -0
  138. package/native/dist/dist/models/StyledComponent.d.ts +4 -0
  139. package/native/dist/dist/models/StyledComponent.d.ts.map +1 -0
  140. package/native/dist/dist/models/StyledNativeComponent.d.ts +4 -0
  141. package/native/dist/dist/models/StyledNativeComponent.d.ts.map +1 -0
  142. package/native/dist/dist/models/ThemeProvider.d.ts +18 -0
  143. package/native/dist/dist/models/ThemeProvider.d.ts.map +1 -0
  144. package/native/dist/dist/native/index.d.ts +65 -0
  145. package/native/dist/dist/native/index.d.ts.map +1 -0
  146. package/native/dist/dist/primitives/index.d.ts +23 -0
  147. package/native/dist/dist/primitives/index.d.ts.map +1 -0
  148. package/native/dist/dist/secretInternals.d.ts +6 -0
  149. package/native/dist/dist/secretInternals.d.ts.map +1 -0
  150. package/native/dist/dist/sheet/GroupIDAllocator.d.ts +5 -0
  151. package/native/dist/dist/sheet/GroupIDAllocator.d.ts.map +1 -0
  152. package/native/dist/dist/sheet/GroupedTag.d.ts +12 -0
  153. package/native/dist/dist/sheet/GroupedTag.d.ts.map +1 -0
  154. package/native/dist/dist/sheet/Rehydration.d.ts +4 -0
  155. package/native/dist/dist/sheet/Rehydration.d.ts.map +1 -0
  156. package/native/dist/dist/sheet/Sheet.d.ts +41 -0
  157. package/native/dist/dist/sheet/Sheet.d.ts.map +1 -0
  158. package/native/dist/dist/sheet/Tag.d.ts +55 -0
  159. package/native/dist/dist/sheet/Tag.d.ts.map +1 -0
  160. package/native/dist/dist/sheet/dom.d.ts +5 -0
  161. package/native/dist/dist/sheet/dom.d.ts.map +1 -0
  162. package/native/dist/dist/sheet/index.d.ts +2 -0
  163. package/native/dist/dist/sheet/index.d.ts.map +1 -0
  164. package/native/dist/dist/sheet/types.d.ts +35 -0
  165. package/native/dist/dist/sheet/types.d.ts.map +1 -0
  166. package/native/dist/dist/test/globals.d.ts +3 -0
  167. package/native/dist/dist/test/globals.d.ts.map +1 -0
  168. package/native/dist/dist/test/utils.d.ts +192 -0
  169. package/native/dist/dist/test/utils.d.ts.map +1 -0
  170. package/native/dist/dist/types.d.ts +121 -0
  171. package/native/dist/dist/types.d.ts.map +1 -0
  172. package/native/dist/dist/utils/addUnitIfNeeded.d.ts +2 -0
  173. package/native/dist/dist/utils/addUnitIfNeeded.d.ts.map +1 -0
  174. package/native/dist/dist/utils/checkDynamicCreation.d.ts +2 -0
  175. package/native/dist/dist/utils/checkDynamicCreation.d.ts.map +1 -0
  176. package/native/dist/dist/utils/createWarnTooManyClasses.d.ts +4 -0
  177. package/native/dist/dist/utils/createWarnTooManyClasses.d.ts.map +1 -0
  178. package/native/dist/dist/utils/determineTheme.d.ts +3 -0
  179. package/native/dist/dist/utils/determineTheme.d.ts.map +1 -0
  180. package/native/dist/dist/utils/domElements.d.ts +3 -0
  181. package/native/dist/dist/utils/domElements.d.ts.map +1 -0
  182. package/native/dist/dist/utils/empties.d.ts +4 -0
  183. package/native/dist/dist/utils/empties.d.ts.map +1 -0
  184. package/native/dist/dist/utils/error.d.ts +6 -0
  185. package/native/dist/dist/utils/error.d.ts.map +1 -0
  186. package/native/dist/dist/utils/errors.d.ts +21 -0
  187. package/native/dist/dist/utils/errors.d.ts.map +1 -0
  188. package/native/dist/dist/utils/escape.d.ts +6 -0
  189. package/native/dist/dist/utils/escape.d.ts.map +1 -0
  190. package/native/dist/dist/utils/flatten.d.ts +5 -0
  191. package/native/dist/dist/utils/flatten.d.ts.map +1 -0
  192. package/native/dist/dist/utils/generateAlphabeticName.d.ts +2 -0
  193. package/native/dist/dist/utils/generateAlphabeticName.d.ts.map +1 -0
  194. package/native/dist/dist/utils/generateComponentId.d.ts +2 -0
  195. package/native/dist/dist/utils/generateComponentId.d.ts.map +1 -0
  196. package/native/dist/dist/utils/generateDisplayName.d.ts +3 -0
  197. package/native/dist/dist/utils/generateDisplayName.d.ts.map +1 -0
  198. package/native/dist/dist/utils/getComponentName.d.ts +3 -0
  199. package/native/dist/dist/utils/getComponentName.d.ts.map +1 -0
  200. package/native/dist/dist/utils/hash.d.ts +4 -0
  201. package/native/dist/dist/utils/hash.d.ts.map +1 -0
  202. package/native/dist/dist/utils/hoist.d.ts +52 -0
  203. package/native/dist/dist/utils/hoist.d.ts.map +1 -0
  204. package/native/dist/dist/utils/hyphenateStyleName.d.ts +15 -0
  205. package/native/dist/dist/utils/hyphenateStyleName.d.ts.map +1 -0
  206. package/native/dist/dist/utils/interleave.d.ts +3 -0
  207. package/native/dist/dist/utils/interleave.d.ts.map +1 -0
  208. package/native/dist/dist/utils/isFunction.d.ts +2 -0
  209. package/native/dist/dist/utils/isFunction.d.ts.map +1 -0
  210. package/native/dist/dist/utils/isPlainObject.d.ts +2 -0
  211. package/native/dist/dist/utils/isPlainObject.d.ts.map +1 -0
  212. package/native/dist/dist/utils/isStatelessFunction.d.ts +2 -0
  213. package/native/dist/dist/utils/isStatelessFunction.d.ts.map +1 -0
  214. package/native/dist/dist/utils/isStaticRules.d.ts +3 -0
  215. package/native/dist/dist/utils/isStaticRules.d.ts.map +1 -0
  216. package/native/dist/dist/utils/isStyledComponent.d.ts +3 -0
  217. package/native/dist/dist/utils/isStyledComponent.d.ts.map +1 -0
  218. package/native/dist/dist/utils/isTag.d.ts +3 -0
  219. package/native/dist/dist/utils/isTag.d.ts.map +1 -0
  220. package/native/dist/dist/utils/joinStrings.d.ts +5 -0
  221. package/native/dist/dist/utils/joinStrings.d.ts.map +1 -0
  222. package/native/dist/dist/utils/mixinDeep.d.ts +8 -0
  223. package/native/dist/dist/utils/mixinDeep.d.ts.map +1 -0
  224. package/native/dist/dist/utils/nonce.d.ts +2 -0
  225. package/native/dist/dist/utils/nonce.d.ts.map +1 -0
  226. package/native/dist/dist/utils/stylis.d.ts +10 -0
  227. package/native/dist/dist/utils/stylis.d.ts.map +1 -0
  228. package/native/dist/hoc/withTheme.d.ts +3 -0
  229. package/native/dist/hoc/withTheme.d.ts.map +1 -0
  230. package/native/dist/hoc/withTheme.spec.d.ts +1 -0
  231. package/native/dist/hoc/withTheme.spec.d.ts.map +1 -0
  232. package/native/dist/hooks/useTheme.d.ts +3 -0
  233. package/native/dist/hooks/useTheme.d.ts.map +1 -0
  234. package/native/dist/index-standalone.d.ts +2 -0
  235. package/native/dist/index-standalone.d.ts.map +1 -0
  236. package/native/dist/index.d.ts +3 -0
  237. package/native/dist/index.d.ts.map +1 -0
  238. package/native/dist/macro/index.d.ts +2 -0
  239. package/native/dist/macro/index.d.ts.map +1 -0
  240. package/native/dist/macro/test/babel.config.d.ts +1 -0
  241. package/native/dist/macro/test/babel.config.d.ts.map +1 -0
  242. package/native/dist/models/ComponentStyle.d.ts +15 -0
  243. package/native/dist/models/ComponentStyle.d.ts.map +1 -0
  244. package/native/dist/models/GlobalStyle.d.ts +11 -0
  245. package/native/dist/models/GlobalStyle.d.ts.map +1 -0
  246. package/native/dist/models/InlineStyle.d.ts +6 -0
  247. package/native/dist/models/InlineStyle.d.ts.map +1 -0
  248. package/native/dist/models/Keyframes.d.ts +11 -0
  249. package/native/dist/models/Keyframes.d.ts.map +1 -0
  250. package/native/dist/models/ServerStyleSheet.d.ts +15 -0
  251. package/native/dist/models/ServerStyleSheet.d.ts.map +1 -0
  252. package/native/dist/models/StyleSheetManager.d.ts +21 -0
  253. package/native/dist/models/StyleSheetManager.d.ts.map +1 -0
  254. package/native/dist/models/StyledComponent.d.ts +3 -0
  255. package/native/dist/models/StyledComponent.d.ts.map +1 -0
  256. package/native/dist/models/StyledNativeComponent.d.ts +3 -0
  257. package/native/dist/models/StyledNativeComponent.d.ts.map +1 -0
  258. package/native/dist/models/ThemeProvider.d.ts +17 -0
  259. package/native/dist/models/ThemeProvider.d.ts.map +1 -0
  260. package/native/dist/native/index.d.ts +64 -0
  261. package/native/dist/native/index.d.ts.map +1 -0
  262. package/native/dist/primitives/index.d.ts +22 -0
  263. package/native/dist/primitives/index.d.ts.map +1 -0
  264. package/native/dist/secretInternals.d.ts +5 -0
  265. package/native/dist/secretInternals.d.ts.map +1 -0
  266. package/native/dist/sheet/GroupIDAllocator.d.ts +4 -0
  267. package/native/dist/sheet/GroupIDAllocator.d.ts.map +1 -0
  268. package/native/dist/sheet/GroupedTag.d.ts +11 -0
  269. package/native/dist/sheet/GroupedTag.d.ts.map +1 -0
  270. package/native/dist/sheet/Rehydration.d.ts +3 -0
  271. package/native/dist/sheet/Rehydration.d.ts.map +1 -0
  272. package/native/dist/sheet/Sheet.d.ts +40 -0
  273. package/native/dist/sheet/Sheet.d.ts.map +1 -0
  274. package/native/dist/sheet/Tag.d.ts +54 -0
  275. package/native/dist/sheet/Tag.d.ts.map +1 -0
  276. package/native/dist/sheet/dom.d.ts +4 -0
  277. package/native/dist/sheet/dom.d.ts.map +1 -0
  278. package/native/dist/sheet/index.d.ts +1 -0
  279. package/native/dist/sheet/index.d.ts.map +1 -0
  280. package/native/dist/sheet/types.d.ts +34 -0
  281. package/native/dist/sheet/types.d.ts.map +1 -0
  282. package/native/dist/styled-components.native.cjs.js +1157 -6115
  283. package/native/dist/styled-components.native.cjs.js.map +1 -1
  284. package/native/dist/styled-components.native.esm.js +1153 -6115
  285. package/native/dist/styled-components.native.esm.js.map +1 -1
  286. package/native/dist/test/globals.d.ts +2 -0
  287. package/native/dist/test/globals.d.ts.map +1 -0
  288. package/native/dist/test/utils.d.ts +191 -0
  289. package/native/dist/test/utils.d.ts.map +1 -0
  290. package/native/dist/types.d.ts +120 -0
  291. package/native/dist/types.d.ts.map +1 -0
  292. package/native/dist/utils/addUnitIfNeeded.d.ts +1 -0
  293. package/native/dist/utils/addUnitIfNeeded.d.ts.map +1 -0
  294. package/native/dist/utils/checkDynamicCreation.d.ts +1 -0
  295. package/native/dist/utils/checkDynamicCreation.d.ts.map +1 -0
  296. package/native/dist/utils/createWarnTooManyClasses.d.ts +3 -0
  297. package/native/dist/utils/createWarnTooManyClasses.d.ts.map +1 -0
  298. package/native/dist/utils/determineTheme.d.ts +2 -0
  299. package/native/dist/utils/determineTheme.d.ts.map +1 -0
  300. package/native/dist/utils/domElements.d.ts +2 -0
  301. package/native/dist/utils/domElements.d.ts.map +1 -0
  302. package/native/dist/utils/empties.d.ts +3 -0
  303. package/native/dist/utils/empties.d.ts.map +1 -0
  304. package/native/dist/utils/error.d.ts +5 -0
  305. package/native/dist/utils/error.d.ts.map +1 -0
  306. package/native/dist/utils/errors.d.ts +20 -0
  307. package/native/dist/utils/errors.d.ts.map +1 -0
  308. package/native/dist/utils/escape.d.ts +5 -0
  309. package/native/dist/utils/escape.d.ts.map +1 -0
  310. package/native/dist/utils/flatten.d.ts +4 -0
  311. package/native/dist/utils/flatten.d.ts.map +1 -0
  312. package/native/dist/utils/generateAlphabeticName.d.ts +1 -0
  313. package/native/dist/utils/generateAlphabeticName.d.ts.map +1 -0
  314. package/native/dist/utils/generateComponentId.d.ts +1 -0
  315. package/native/dist/utils/generateComponentId.d.ts.map +1 -0
  316. package/native/dist/utils/generateDisplayName.d.ts +2 -0
  317. package/native/dist/utils/generateDisplayName.d.ts.map +1 -0
  318. package/native/dist/utils/getComponentName.d.ts +2 -0
  319. package/native/dist/utils/getComponentName.d.ts.map +1 -0
  320. package/native/dist/utils/hash.d.ts +3 -0
  321. package/native/dist/utils/hash.d.ts.map +1 -0
  322. package/native/dist/utils/hoist.d.ts +51 -0
  323. package/native/dist/utils/hoist.d.ts.map +1 -0
  324. package/native/dist/utils/hyphenateStyleName.d.ts +14 -0
  325. package/native/dist/utils/hyphenateStyleName.d.ts.map +1 -0
  326. package/native/dist/utils/interleave.d.ts +2 -0
  327. package/native/dist/utils/interleave.d.ts.map +1 -0
  328. package/native/dist/utils/isFunction.d.ts +1 -0
  329. package/native/dist/utils/isFunction.d.ts.map +1 -0
  330. package/native/dist/utils/isPlainObject.d.ts +1 -0
  331. package/native/dist/utils/isPlainObject.d.ts.map +1 -0
  332. package/native/dist/utils/isStatelessFunction.d.ts +1 -0
  333. package/native/dist/utils/isStatelessFunction.d.ts.map +1 -0
  334. package/native/dist/utils/isStaticRules.d.ts +2 -0
  335. package/native/dist/utils/isStaticRules.d.ts.map +1 -0
  336. package/native/dist/utils/isStyledComponent.d.ts +2 -0
  337. package/native/dist/utils/isStyledComponent.d.ts.map +1 -0
  338. package/native/dist/utils/isTag.d.ts +2 -0
  339. package/native/dist/utils/isTag.d.ts.map +1 -0
  340. package/native/dist/utils/joinStrings.d.ts +4 -0
  341. package/native/dist/utils/joinStrings.d.ts.map +1 -0
  342. package/native/dist/utils/mixinDeep.d.ts +7 -0
  343. package/native/dist/utils/mixinDeep.d.ts.map +1 -0
  344. package/native/dist/utils/nonce.d.ts +1 -0
  345. package/native/dist/utils/nonce.d.ts.map +1 -0
  346. package/native/dist/utils/stylis.d.ts +9 -0
  347. package/native/dist/utils/stylis.d.ts.map +1 -0
  348. package/package.json +72 -44
  349. package/primitives/dist/base.d.ts +17 -0
  350. package/primitives/dist/base.d.ts.map +1 -0
  351. package/primitives/dist/constants.d.ts +8 -0
  352. package/primitives/dist/constants.d.ts.map +1 -0
  353. package/primitives/dist/constructors/constructWithOptions.d.ts +19 -0
  354. package/primitives/dist/constructors/constructWithOptions.d.ts.map +1 -0
  355. package/primitives/dist/constructors/createGlobalStyle.d.ts +3 -0
  356. package/primitives/dist/constructors/createGlobalStyle.d.ts.map +1 -0
  357. package/primitives/dist/constructors/css.d.ts +4 -0
  358. package/primitives/dist/constructors/css.d.ts.map +1 -0
  359. package/primitives/dist/constructors/keyframes.d.ts +3 -0
  360. package/primitives/dist/constructors/keyframes.d.ts.map +1 -0
  361. package/primitives/dist/constructors/styled.d.ts +185 -0
  362. package/primitives/dist/constructors/styled.d.ts.map +1 -0
  363. package/primitives/dist/dist/base.d.ts +18 -0
  364. package/primitives/dist/dist/base.d.ts.map +1 -0
  365. package/primitives/dist/dist/constants.d.ts +9 -0
  366. package/primitives/dist/dist/constants.d.ts.map +1 -0
  367. package/primitives/dist/dist/constructors/constructWithOptions.d.ts +20 -0
  368. package/primitives/dist/dist/constructors/constructWithOptions.d.ts.map +1 -0
  369. package/primitives/dist/dist/constructors/createGlobalStyle.d.ts +4 -0
  370. package/primitives/dist/dist/constructors/createGlobalStyle.d.ts.map +1 -0
  371. package/primitives/dist/dist/constructors/css.d.ts +5 -0
  372. package/primitives/dist/dist/constructors/css.d.ts.map +1 -0
  373. package/primitives/dist/dist/constructors/keyframes.d.ts +4 -0
  374. package/primitives/dist/dist/constructors/keyframes.d.ts.map +1 -0
  375. package/primitives/dist/dist/constructors/styled.d.ts +186 -0
  376. package/primitives/dist/dist/constructors/styled.d.ts.map +1 -0
  377. package/primitives/dist/dist/hoc/withTheme.d.ts +4 -0
  378. package/primitives/dist/dist/hoc/withTheme.d.ts.map +1 -0
  379. package/primitives/dist/dist/hoc/withTheme.spec.d.ts +2 -0
  380. package/primitives/dist/dist/hoc/withTheme.spec.d.ts.map +1 -0
  381. package/primitives/dist/dist/hooks/useTheme.d.ts +4 -0
  382. package/primitives/dist/dist/hooks/useTheme.d.ts.map +1 -0
  383. package/primitives/dist/dist/index-standalone.d.ts +3 -0
  384. package/primitives/dist/dist/index-standalone.d.ts.map +1 -0
  385. package/primitives/dist/dist/index.d.ts +4 -0
  386. package/primitives/dist/dist/index.d.ts.map +1 -0
  387. package/primitives/dist/dist/macro/index.d.ts +3 -0
  388. package/primitives/dist/dist/macro/index.d.ts.map +1 -0
  389. package/primitives/dist/dist/macro/test/babel.config.d.ts +1 -0
  390. package/primitives/dist/dist/macro/test/babel.config.d.ts.map +1 -0
  391. package/primitives/dist/dist/models/ComponentStyle.d.ts +16 -0
  392. package/primitives/dist/dist/models/ComponentStyle.d.ts.map +1 -0
  393. package/primitives/dist/dist/models/GlobalStyle.d.ts +12 -0
  394. package/primitives/dist/dist/models/GlobalStyle.d.ts.map +1 -0
  395. package/primitives/dist/dist/models/InlineStyle.d.ts +7 -0
  396. package/primitives/dist/dist/models/InlineStyle.d.ts.map +1 -0
  397. package/primitives/dist/dist/models/Keyframes.d.ts +12 -0
  398. package/primitives/dist/dist/models/Keyframes.d.ts.map +1 -0
  399. package/primitives/dist/dist/models/ServerStyleSheet.d.ts +16 -0
  400. package/primitives/dist/dist/models/ServerStyleSheet.d.ts.map +1 -0
  401. package/primitives/dist/dist/models/StyleSheetManager.d.ts +22 -0
  402. package/primitives/dist/dist/models/StyleSheetManager.d.ts.map +1 -0
  403. package/primitives/dist/dist/models/StyledComponent.d.ts +4 -0
  404. package/primitives/dist/dist/models/StyledComponent.d.ts.map +1 -0
  405. package/primitives/dist/dist/models/StyledNativeComponent.d.ts +4 -0
  406. package/primitives/dist/dist/models/StyledNativeComponent.d.ts.map +1 -0
  407. package/primitives/dist/dist/models/ThemeProvider.d.ts +18 -0
  408. package/primitives/dist/dist/models/ThemeProvider.d.ts.map +1 -0
  409. package/primitives/dist/dist/native/index.d.ts +65 -0
  410. package/primitives/dist/dist/native/index.d.ts.map +1 -0
  411. package/primitives/dist/dist/primitives/index.d.ts +23 -0
  412. package/primitives/dist/dist/primitives/index.d.ts.map +1 -0
  413. package/primitives/dist/dist/secretInternals.d.ts +6 -0
  414. package/primitives/dist/dist/secretInternals.d.ts.map +1 -0
  415. package/primitives/dist/dist/sheet/GroupIDAllocator.d.ts +5 -0
  416. package/primitives/dist/dist/sheet/GroupIDAllocator.d.ts.map +1 -0
  417. package/primitives/dist/dist/sheet/GroupedTag.d.ts +12 -0
  418. package/primitives/dist/dist/sheet/GroupedTag.d.ts.map +1 -0
  419. package/primitives/dist/dist/sheet/Rehydration.d.ts +4 -0
  420. package/primitives/dist/dist/sheet/Rehydration.d.ts.map +1 -0
  421. package/primitives/dist/dist/sheet/Sheet.d.ts +41 -0
  422. package/primitives/dist/dist/sheet/Sheet.d.ts.map +1 -0
  423. package/primitives/dist/dist/sheet/Tag.d.ts +55 -0
  424. package/primitives/dist/dist/sheet/Tag.d.ts.map +1 -0
  425. package/primitives/dist/dist/sheet/dom.d.ts +5 -0
  426. package/primitives/dist/dist/sheet/dom.d.ts.map +1 -0
  427. package/primitives/dist/dist/sheet/index.d.ts +2 -0
  428. package/primitives/dist/dist/sheet/index.d.ts.map +1 -0
  429. package/primitives/dist/dist/sheet/types.d.ts +35 -0
  430. package/primitives/dist/dist/sheet/types.d.ts.map +1 -0
  431. package/primitives/dist/dist/test/globals.d.ts +3 -0
  432. package/primitives/dist/dist/test/globals.d.ts.map +1 -0
  433. package/primitives/dist/dist/test/utils.d.ts +192 -0
  434. package/primitives/dist/dist/test/utils.d.ts.map +1 -0
  435. package/primitives/dist/dist/types.d.ts +121 -0
  436. package/primitives/dist/dist/types.d.ts.map +1 -0
  437. package/primitives/dist/dist/utils/addUnitIfNeeded.d.ts +2 -0
  438. package/primitives/dist/dist/utils/addUnitIfNeeded.d.ts.map +1 -0
  439. package/primitives/dist/dist/utils/checkDynamicCreation.d.ts +2 -0
  440. package/primitives/dist/dist/utils/checkDynamicCreation.d.ts.map +1 -0
  441. package/primitives/dist/dist/utils/createWarnTooManyClasses.d.ts +4 -0
  442. package/primitives/dist/dist/utils/createWarnTooManyClasses.d.ts.map +1 -0
  443. package/primitives/dist/dist/utils/determineTheme.d.ts +3 -0
  444. package/primitives/dist/dist/utils/determineTheme.d.ts.map +1 -0
  445. package/primitives/dist/dist/utils/domElements.d.ts +3 -0
  446. package/primitives/dist/dist/utils/domElements.d.ts.map +1 -0
  447. package/primitives/dist/dist/utils/empties.d.ts +4 -0
  448. package/primitives/dist/dist/utils/empties.d.ts.map +1 -0
  449. package/primitives/dist/dist/utils/error.d.ts +6 -0
  450. package/primitives/dist/dist/utils/error.d.ts.map +1 -0
  451. package/primitives/dist/dist/utils/errors.d.ts +21 -0
  452. package/primitives/dist/dist/utils/errors.d.ts.map +1 -0
  453. package/primitives/dist/dist/utils/escape.d.ts +6 -0
  454. package/primitives/dist/dist/utils/escape.d.ts.map +1 -0
  455. package/primitives/dist/dist/utils/flatten.d.ts +5 -0
  456. package/primitives/dist/dist/utils/flatten.d.ts.map +1 -0
  457. package/primitives/dist/dist/utils/generateAlphabeticName.d.ts +2 -0
  458. package/primitives/dist/dist/utils/generateAlphabeticName.d.ts.map +1 -0
  459. package/primitives/dist/dist/utils/generateComponentId.d.ts +2 -0
  460. package/primitives/dist/dist/utils/generateComponentId.d.ts.map +1 -0
  461. package/primitives/dist/dist/utils/generateDisplayName.d.ts +3 -0
  462. package/primitives/dist/dist/utils/generateDisplayName.d.ts.map +1 -0
  463. package/primitives/dist/dist/utils/getComponentName.d.ts +3 -0
  464. package/primitives/dist/dist/utils/getComponentName.d.ts.map +1 -0
  465. package/primitives/dist/dist/utils/hash.d.ts +4 -0
  466. package/primitives/dist/dist/utils/hash.d.ts.map +1 -0
  467. package/primitives/dist/dist/utils/hoist.d.ts +52 -0
  468. package/primitives/dist/dist/utils/hoist.d.ts.map +1 -0
  469. package/primitives/dist/dist/utils/hyphenateStyleName.d.ts +15 -0
  470. package/primitives/dist/dist/utils/hyphenateStyleName.d.ts.map +1 -0
  471. package/primitives/dist/dist/utils/interleave.d.ts +3 -0
  472. package/primitives/dist/dist/utils/interleave.d.ts.map +1 -0
  473. package/primitives/dist/dist/utils/isFunction.d.ts +2 -0
  474. package/primitives/dist/dist/utils/isFunction.d.ts.map +1 -0
  475. package/primitives/dist/dist/utils/isPlainObject.d.ts +2 -0
  476. package/primitives/dist/dist/utils/isPlainObject.d.ts.map +1 -0
  477. package/primitives/dist/dist/utils/isStatelessFunction.d.ts +2 -0
  478. package/primitives/dist/dist/utils/isStatelessFunction.d.ts.map +1 -0
  479. package/primitives/dist/dist/utils/isStaticRules.d.ts +3 -0
  480. package/primitives/dist/dist/utils/isStaticRules.d.ts.map +1 -0
  481. package/primitives/dist/dist/utils/isStyledComponent.d.ts +3 -0
  482. package/primitives/dist/dist/utils/isStyledComponent.d.ts.map +1 -0
  483. package/primitives/dist/dist/utils/isTag.d.ts +3 -0
  484. package/primitives/dist/dist/utils/isTag.d.ts.map +1 -0
  485. package/primitives/dist/dist/utils/joinStrings.d.ts +5 -0
  486. package/primitives/dist/dist/utils/joinStrings.d.ts.map +1 -0
  487. package/primitives/dist/dist/utils/mixinDeep.d.ts +8 -0
  488. package/primitives/dist/dist/utils/mixinDeep.d.ts.map +1 -0
  489. package/primitives/dist/dist/utils/nonce.d.ts +2 -0
  490. package/primitives/dist/dist/utils/nonce.d.ts.map +1 -0
  491. package/primitives/dist/dist/utils/stylis.d.ts +10 -0
  492. package/primitives/dist/dist/utils/stylis.d.ts.map +1 -0
  493. package/primitives/dist/hoc/withTheme.d.ts +3 -0
  494. package/primitives/dist/hoc/withTheme.d.ts.map +1 -0
  495. package/primitives/dist/hoc/withTheme.spec.d.ts +1 -0
  496. package/primitives/dist/hoc/withTheme.spec.d.ts.map +1 -0
  497. package/primitives/dist/hooks/useTheme.d.ts +3 -0
  498. package/primitives/dist/hooks/useTheme.d.ts.map +1 -0
  499. package/primitives/dist/index-standalone.d.ts +2 -0
  500. package/primitives/dist/index-standalone.d.ts.map +1 -0
  501. package/primitives/dist/index.d.ts +3 -0
  502. package/primitives/dist/index.d.ts.map +1 -0
  503. package/primitives/dist/macro/index.d.ts +2 -0
  504. package/primitives/dist/macro/index.d.ts.map +1 -0
  505. package/primitives/dist/macro/test/babel.config.d.ts +1 -0
  506. package/primitives/dist/macro/test/babel.config.d.ts.map +1 -0
  507. package/primitives/dist/models/ComponentStyle.d.ts +15 -0
  508. package/primitives/dist/models/ComponentStyle.d.ts.map +1 -0
  509. package/primitives/dist/models/GlobalStyle.d.ts +11 -0
  510. package/primitives/dist/models/GlobalStyle.d.ts.map +1 -0
  511. package/primitives/dist/models/InlineStyle.d.ts +6 -0
  512. package/primitives/dist/models/InlineStyle.d.ts.map +1 -0
  513. package/primitives/dist/models/Keyframes.d.ts +11 -0
  514. package/primitives/dist/models/Keyframes.d.ts.map +1 -0
  515. package/primitives/dist/models/ServerStyleSheet.d.ts +15 -0
  516. package/primitives/dist/models/ServerStyleSheet.d.ts.map +1 -0
  517. package/primitives/dist/models/StyleSheetManager.d.ts +21 -0
  518. package/primitives/dist/models/StyleSheetManager.d.ts.map +1 -0
  519. package/primitives/dist/models/StyledComponent.d.ts +3 -0
  520. package/primitives/dist/models/StyledComponent.d.ts.map +1 -0
  521. package/primitives/dist/models/StyledNativeComponent.d.ts +3 -0
  522. package/primitives/dist/models/StyledNativeComponent.d.ts.map +1 -0
  523. package/primitives/dist/models/ThemeProvider.d.ts +17 -0
  524. package/primitives/dist/models/ThemeProvider.d.ts.map +1 -0
  525. package/primitives/dist/native/index.d.ts +64 -0
  526. package/primitives/dist/native/index.d.ts.map +1 -0
  527. package/primitives/dist/primitives/index.d.ts +22 -0
  528. package/primitives/dist/primitives/index.d.ts.map +1 -0
  529. package/primitives/dist/secretInternals.d.ts +5 -0
  530. package/primitives/dist/secretInternals.d.ts.map +1 -0
  531. package/primitives/dist/sheet/GroupIDAllocator.d.ts +4 -0
  532. package/primitives/dist/sheet/GroupIDAllocator.d.ts.map +1 -0
  533. package/primitives/dist/sheet/GroupedTag.d.ts +11 -0
  534. package/primitives/dist/sheet/GroupedTag.d.ts.map +1 -0
  535. package/primitives/dist/sheet/Rehydration.d.ts +3 -0
  536. package/primitives/dist/sheet/Rehydration.d.ts.map +1 -0
  537. package/primitives/dist/sheet/Sheet.d.ts +40 -0
  538. package/primitives/dist/sheet/Sheet.d.ts.map +1 -0
  539. package/primitives/dist/sheet/Tag.d.ts +54 -0
  540. package/primitives/dist/sheet/Tag.d.ts.map +1 -0
  541. package/primitives/dist/sheet/dom.d.ts +4 -0
  542. package/primitives/dist/sheet/dom.d.ts.map +1 -0
  543. package/primitives/dist/sheet/index.d.ts +1 -0
  544. package/primitives/dist/sheet/index.d.ts.map +1 -0
  545. package/primitives/dist/sheet/types.d.ts +34 -0
  546. package/primitives/dist/sheet/types.d.ts.map +1 -0
  547. package/primitives/dist/styled-components-primitives.cjs.js +1107 -6115
  548. package/primitives/dist/styled-components-primitives.cjs.js.map +1 -1
  549. package/primitives/dist/styled-components-primitives.esm.js +1101 -6114
  550. package/primitives/dist/styled-components-primitives.esm.js.map +1 -1
  551. package/primitives/dist/test/globals.d.ts +2 -0
  552. package/primitives/dist/test/globals.d.ts.map +1 -0
  553. package/primitives/dist/test/utils.d.ts +191 -0
  554. package/primitives/dist/test/utils.d.ts.map +1 -0
  555. package/primitives/dist/types.d.ts +120 -0
  556. package/primitives/dist/types.d.ts.map +1 -0
  557. package/primitives/dist/utils/addUnitIfNeeded.d.ts +1 -0
  558. package/primitives/dist/utils/addUnitIfNeeded.d.ts.map +1 -0
  559. package/primitives/dist/utils/checkDynamicCreation.d.ts +1 -0
  560. package/primitives/dist/utils/checkDynamicCreation.d.ts.map +1 -0
  561. package/primitives/dist/utils/createWarnTooManyClasses.d.ts +3 -0
  562. package/primitives/dist/utils/createWarnTooManyClasses.d.ts.map +1 -0
  563. package/primitives/dist/utils/determineTheme.d.ts +2 -0
  564. package/primitives/dist/utils/determineTheme.d.ts.map +1 -0
  565. package/primitives/dist/utils/domElements.d.ts +2 -0
  566. package/primitives/dist/utils/domElements.d.ts.map +1 -0
  567. package/primitives/dist/utils/empties.d.ts +3 -0
  568. package/primitives/dist/utils/empties.d.ts.map +1 -0
  569. package/primitives/dist/utils/error.d.ts +5 -0
  570. package/primitives/dist/utils/error.d.ts.map +1 -0
  571. package/primitives/dist/utils/errors.d.ts +20 -0
  572. package/primitives/dist/utils/errors.d.ts.map +1 -0
  573. package/primitives/dist/utils/escape.d.ts +5 -0
  574. package/primitives/dist/utils/escape.d.ts.map +1 -0
  575. package/primitives/dist/utils/flatten.d.ts +4 -0
  576. package/primitives/dist/utils/flatten.d.ts.map +1 -0
  577. package/primitives/dist/utils/generateAlphabeticName.d.ts +1 -0
  578. package/primitives/dist/utils/generateAlphabeticName.d.ts.map +1 -0
  579. package/primitives/dist/utils/generateComponentId.d.ts +1 -0
  580. package/primitives/dist/utils/generateComponentId.d.ts.map +1 -0
  581. package/primitives/dist/utils/generateDisplayName.d.ts +2 -0
  582. package/primitives/dist/utils/generateDisplayName.d.ts.map +1 -0
  583. package/primitives/dist/utils/getComponentName.d.ts +2 -0
  584. package/primitives/dist/utils/getComponentName.d.ts.map +1 -0
  585. package/primitives/dist/utils/hash.d.ts +3 -0
  586. package/primitives/dist/utils/hash.d.ts.map +1 -0
  587. package/primitives/dist/utils/hoist.d.ts +51 -0
  588. package/primitives/dist/utils/hoist.d.ts.map +1 -0
  589. package/primitives/dist/utils/hyphenateStyleName.d.ts +14 -0
  590. package/primitives/dist/utils/hyphenateStyleName.d.ts.map +1 -0
  591. package/primitives/dist/utils/interleave.d.ts +2 -0
  592. package/primitives/dist/utils/interleave.d.ts.map +1 -0
  593. package/primitives/dist/utils/isFunction.d.ts +1 -0
  594. package/primitives/dist/utils/isFunction.d.ts.map +1 -0
  595. package/primitives/dist/utils/isPlainObject.d.ts +1 -0
  596. package/primitives/dist/utils/isPlainObject.d.ts.map +1 -0
  597. package/primitives/dist/utils/isStatelessFunction.d.ts +1 -0
  598. package/primitives/dist/utils/isStatelessFunction.d.ts.map +1 -0
  599. package/primitives/dist/utils/isStaticRules.d.ts +2 -0
  600. package/primitives/dist/utils/isStaticRules.d.ts.map +1 -0
  601. package/primitives/dist/utils/isStyledComponent.d.ts +2 -0
  602. package/primitives/dist/utils/isStyledComponent.d.ts.map +1 -0
  603. package/primitives/dist/utils/isTag.d.ts +2 -0
  604. package/primitives/dist/utils/isTag.d.ts.map +1 -0
  605. package/primitives/dist/utils/joinStrings.d.ts +4 -0
  606. package/primitives/dist/utils/joinStrings.d.ts.map +1 -0
  607. package/primitives/dist/utils/mixinDeep.d.ts +7 -0
  608. package/primitives/dist/utils/mixinDeep.d.ts.map +1 -0
  609. package/primitives/dist/utils/nonce.d.ts +1 -0
  610. package/primitives/dist/utils/nonce.d.ts.map +1 -0
  611. package/primitives/dist/utils/stylis.d.ts +9 -0
  612. package/primitives/dist/utils/stylis.d.ts.map +1 -0
  613. package/test-utils/{index.js → index.ts} +10 -13
  614. package/test-utils/{setupTestFramework.js → setupTestFramework.ts} +2 -5
  615. package/scripts/generateErrorMap.js +0 -22
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface DefaultTheme {
3
+ [key: string]: any;
4
+ }
5
+ declare type ThemeFn = (outerTheme?: DefaultTheme) => DefaultTheme;
6
+ declare type ThemeArgument = DefaultTheme | ThemeFn;
7
+ declare type Props = {
8
+ children?: React.ReactChild;
9
+ theme: ThemeArgument;
10
+ };
11
+ export declare const ThemeContext: React.Context<DefaultTheme | undefined>;
12
+ export declare const ThemeConsumer: React.Consumer<DefaultTheme | undefined>;
13
+ /**
14
+ * Provide a theme to an entire react component tree via context
15
+ */
16
+ export default function ThemeProvider(props: Props): JSX.Element | null;
17
+ export {};
@@ -0,0 +1,64 @@
1
+ import { NativeStyled } from '../constructors/constructWithOptions';
2
+ import css from '../constructors/css';
3
+ import withTheme from '../hoc/withTheme';
4
+ import useTheme from '../hooks/useTheme';
5
+ import ThemeProvider, { ThemeConsumer, ThemeContext } from '../models/ThemeProvider';
6
+ import { NativeTarget } from '../types';
7
+ import isStyledComponent from '../utils/isStyledComponent';
8
+ declare const styled: (<Target extends NativeTarget>(tag: Target) => {
9
+ <Props = unknown, Statics = unknown>(initialStyles: import("../types").Styles<Props>, ...interpolations: import("../types").Interpolation<Props>[]): import("../types").IStyledNativeComponent<Target, Props> & Statics;
10
+ attrs(attrs: import("../types").Attrs<unknown>): any;
11
+ withConfig(config: import("../types").StyledNativeOptions<unknown>): any;
12
+ }) & {
13
+ ActivityIndicator: NativeStyled<typeof import("react-native").ActivityIndicator, import("react-native").ActivityIndicatorProps, unknown>;
14
+ ActivityIndicatorIOS: NativeStyled<unknown, {}, unknown>;
15
+ ART: NativeStyled<unknown, {}, unknown>;
16
+ Button: NativeStyled<typeof import("react-native").Button, import("react-native").ButtonProps, unknown>;
17
+ DatePickerIOS: NativeStyled<typeof import("react-native").DatePickerIOS, import("react-native").DatePickerIOSProps, unknown>;
18
+ DrawerLayoutAndroid: NativeStyled<typeof import("react-native").DrawerLayoutAndroid, import("react-native").DrawerLayoutAndroidProps, unknown>;
19
+ FlatList: NativeStyled<typeof import("react-native").FlatList, import("react-native").FlatListProps<unknown>, unknown>;
20
+ Image: NativeStyled<typeof import("react-native").Image, import("react-native").ImageProps, unknown>;
21
+ ImageBackground: NativeStyled<typeof import("react-native").ImageBackground, import("react-native").ImageBackgroundProps, unknown>;
22
+ ImageEditor: NativeStyled<never, never, unknown>;
23
+ ImageStore: NativeStyled<never, never, unknown>;
24
+ KeyboardAvoidingView: NativeStyled<typeof import("react-native").KeyboardAvoidingView, import("react-native").KeyboardAvoidingViewProps, unknown>;
25
+ ListView: NativeStyled<typeof import("react-native").ListView, import("react-native").ListViewProps, unknown>;
26
+ MapView: NativeStyled<unknown, {}, unknown>;
27
+ Modal: NativeStyled<typeof import("react-native").Modal, import("react-native").ModalProps, unknown>;
28
+ NavigatorIOS: NativeStyled<typeof import("react-native").NavigatorIOS, import("react-native").NavigatorIOSProps, unknown>;
29
+ Picker: NativeStyled<typeof import("react-native").Picker, import("react-native").PickerProps, unknown>;
30
+ PickerIOS: NativeStyled<typeof import("react-native").PickerIOS, import("react-native").PickerIOSProps, unknown>;
31
+ Pressable: NativeStyled<import("react").ForwardRefExoticComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>, import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>, unknown>;
32
+ ProgressBarAndroid: NativeStyled<typeof import("react-native").ProgressBarAndroid, import("react-native").ProgressBarAndroidProps, unknown>;
33
+ ProgressViewIOS: NativeStyled<typeof import("react-native").ProgressViewIOS, import("react-native").ProgressViewIOSProps, unknown>;
34
+ RecyclerViewBackedScrollView: NativeStyled<typeof import("react-native").RecyclerViewBackedScrollView, import("react-native").RecyclerViewBackedScrollViewProps, unknown>;
35
+ RefreshControl: NativeStyled<typeof import("react-native").RefreshControl, import("react-native").RefreshControlProps, unknown>;
36
+ SafeAreaView: NativeStyled<typeof import("react-native").SafeAreaView, import("react-native").ViewProps, unknown>;
37
+ ScrollView: NativeStyled<typeof import("react-native").ScrollView, import("react-native").ScrollViewProps, unknown>;
38
+ SectionList: NativeStyled<typeof import("react-native").SectionList, import("react-native").SectionListProps<unknown, unknown>, unknown>;
39
+ SegmentedControlIOS: NativeStyled<typeof import("react-native").SegmentedControlIOS, import("react-native").SegmentedControlIOSProps, unknown>;
40
+ Slider: NativeStyled<typeof import("react-native").Slider, import("react-native").SliderProps, unknown>;
41
+ SliderIOS: NativeStyled<unknown, {}, unknown>;
42
+ SnapshotViewIOS: NativeStyled<typeof import("react-native").SnapshotViewIOS, import("react-native").SnapshotViewIOSProps, unknown>;
43
+ StatusBar: NativeStyled<typeof import("react-native").StatusBar, import("react-native").StatusBarProps, unknown>;
44
+ SwipeableListView: NativeStyled<typeof import("react-native").SwipeableListView, import("react-native").SwipeableListViewProps, unknown>;
45
+ Switch: NativeStyled<typeof import("react-native").Switch, import("react-native").SwitchProps, unknown>;
46
+ SwitchAndroid: NativeStyled<unknown, {}, unknown>;
47
+ SwitchIOS: NativeStyled<typeof import("react-native").SwitchIOS, import("react-native").SwitchIOSProps, unknown>;
48
+ TabBarIOS: NativeStyled<typeof import("react-native").TabBarIOS, import("react-native").TabBarIOSProps, unknown>;
49
+ Text: NativeStyled<typeof import("react-native").Text, import("react-native").TextProps, unknown>;
50
+ TextInput: NativeStyled<typeof import("react-native").TextInput, import("react-native").TextInputProps, unknown>;
51
+ ToastAndroid: NativeStyled<never, never, unknown>;
52
+ ToolbarAndroid: NativeStyled<typeof import("react-native").ToolbarAndroid, import("react-native").ToolbarAndroidProps, unknown>;
53
+ Touchable: NativeStyled<never, never, unknown>;
54
+ TouchableHighlight: NativeStyled<typeof import("react-native").TouchableHighlight, import("react-native").TouchableHighlightProps, unknown>;
55
+ TouchableNativeFeedback: NativeStyled<typeof import("react-native").TouchableNativeFeedback, import("react-native").TouchableNativeFeedbackProps, unknown>;
56
+ TouchableOpacity: NativeStyled<typeof import("react-native").TouchableOpacity, import("react-native").TouchableOpacityProps, unknown>;
57
+ TouchableWithoutFeedback: NativeStyled<typeof import("react-native").TouchableWithoutFeedback, import("react-native").TouchableWithoutFeedbackProps, unknown>;
58
+ View: NativeStyled<typeof import("react-native").View, import("react-native").ViewProps, unknown>;
59
+ ViewPagerAndroid: NativeStyled<typeof import("react-native").ViewPagerAndroid, import("react-native").ViewPagerAndroidProps, unknown>;
60
+ VirtualizedList: NativeStyled<typeof import("react-native").VirtualizedList, import("react-native").VirtualizedListProps<unknown>, unknown>;
61
+ WebView: NativeStyled<unknown, {}, unknown>;
62
+ };
63
+ export { css, isStyledComponent, ThemeProvider, ThemeConsumer, ThemeContext, withTheme, useTheme };
64
+ export default styled;
@@ -0,0 +1,22 @@
1
+ import reactPrimitives from 'react-primitives';
2
+ import { NativeStyled } from '../constructors/constructWithOptions';
3
+ import css from '../constructors/css';
4
+ import withTheme from '../hoc/withTheme';
5
+ import useTheme from '../hooks/useTheme';
6
+ import ThemeProvider, { ThemeConsumer, ThemeContext } from '../models/ThemeProvider';
7
+ import { NativeTarget } from '../types';
8
+ import isStyledComponent from '../utils/isStyledComponent';
9
+ declare const styled: (<Target extends NativeTarget>(tag: Target) => {
10
+ <Props = unknown, Statics = unknown>(initialStyles: import("../types").Styles<Props>, ...interpolations: import("../types").Interpolation<Props>[]): import("../types").IStyledNativeComponent<Target, Props> & Statics;
11
+ attrs(attrs: import("../types").Attrs<unknown>): any;
12
+ withConfig(config: import("../types").StyledNativeOptions<unknown>): any;
13
+ }) & {
14
+ Image: NativeStyled<typeof reactPrimitives.Image, import("react-native").ImageProps, unknown>;
15
+ Text: NativeStyled<typeof reactPrimitives.Text, import("react-native").TextProps, unknown>;
16
+ Touchable: NativeStyled<import("react").ComponentType<import("react-native").TouchableOpacityProps>, import("react-native").TouchableOpacityProps | (import("react-native").TouchableOpacityProps & {
17
+ children?: import("react").ReactNode;
18
+ }), unknown>;
19
+ View: NativeStyled<typeof reactPrimitives.View, import("react-native").ViewProps, unknown>;
20
+ };
21
+ export { css, isStyledComponent, ThemeProvider, ThemeConsumer, ThemeContext, withTheme, useTheme };
22
+ export default styled;
@@ -0,0 +1,5 @@
1
+ import StyleSheet from './sheet';
2
+ export declare const __PRIVATE__: {
3
+ StyleSheet: typeof StyleSheet;
4
+ mainSheet: StyleSheet;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare const resetGroupIds: () => void;
2
+ export declare const getGroupForId: (id: string) => number;
3
+ export declare const getIdForGroup: (group: number) => void | string;
4
+ export declare const setGroupForId: (id: string, group: number) => void;
@@ -0,0 +1,11 @@
1
+ import { Tag } from './types';
2
+ /** Create a GroupedTag with an underlying Tag implementation */
3
+ export declare const makeGroupedTag: (tag: Tag) => {
4
+ groupSizes: Uint32Array;
5
+ length: number;
6
+ tag: Tag;
7
+ indexOfGroup(group: number): number;
8
+ insertRules(group: number, rules: string | string[]): void;
9
+ clearGroup(group: number): void;
10
+ getGroup(group: number): string;
11
+ };
@@ -0,0 +1,3 @@
1
+ import { Sheet } from './types';
2
+ export declare const outputSheet: (sheet: Sheet) => string;
3
+ export declare const rehydrateSheet: (sheet: Sheet) => void;
@@ -0,0 +1,40 @@
1
+ import { GroupedTag, Sheet, SheetOptions } from './types';
2
+ declare type SheetConstructorArgs = {
3
+ isServer?: boolean;
4
+ useCSSOMInjection?: boolean;
5
+ target?: HTMLElement;
6
+ };
7
+ declare type GlobalStylesAllocationMap = {
8
+ [key: string]: number;
9
+ };
10
+ declare type NamesAllocationMap = Map<string, Set<string>>;
11
+ /** Contains the main stylesheet logic for stringification and caching */
12
+ export default class StyleSheet implements Sheet {
13
+ gs: GlobalStylesAllocationMap;
14
+ names: NamesAllocationMap;
15
+ options: SheetOptions;
16
+ server: boolean;
17
+ tag?: GroupedTag;
18
+ /** Register a group ID to give it an index */
19
+ static registerId(id: string): number;
20
+ constructor(options?: SheetConstructorArgs, globalStyles?: GlobalStylesAllocationMap, names?: NamesAllocationMap);
21
+ reconstructWithOptions(options: SheetConstructorArgs, withNames?: boolean): StyleSheet;
22
+ allocateGSInstance(id: string): number;
23
+ /** Lazily initialises a GroupedTag for when it's actually needed */
24
+ getTag(): GroupedTag;
25
+ /** Check whether a name is known for caching */
26
+ hasNameForId(id: string, name: string): boolean;
27
+ /** Mark a group's name as known for caching */
28
+ registerName(id: string, name: string): void;
29
+ /** Insert new rules which also marks the name as known */
30
+ insertRules(id: string, name: string, rules: string | string[]): void;
31
+ /** Clears all cached names for a given group ID */
32
+ clearNames(id: string): void;
33
+ /** Clears all rules for a given group ID */
34
+ clearRules(id: string): void;
35
+ /** Clears the entire tag which deletes all rules but not its names */
36
+ clearTag(): void;
37
+ /** Outputs the current sheet as a CSS string with markers for SSR */
38
+ toString(): string;
39
+ }
40
+ export {};
@@ -0,0 +1,54 @@
1
+ import { SheetOptions } from './types';
2
+ /** Create a CSSStyleSheet-like tag depending on the environment */
3
+ export declare const makeTag: ({ isServer, useCSSOMInjection, target }: SheetOptions) => {
4
+ element: HTMLStyleElement;
5
+ sheet: CSSStyleSheet;
6
+ length: number;
7
+ insertRule(index: number, rule: string): boolean;
8
+ deleteRule(index: number): void;
9
+ getRule(index: number): string;
10
+ } | {
11
+ element: HTMLStyleElement;
12
+ nodes: NodeListOf<Node>;
13
+ length: number;
14
+ insertRule(index: number, rule: string): boolean;
15
+ deleteRule(index: number): void;
16
+ getRule(index: number): string;
17
+ } | {
18
+ rules: string[];
19
+ length: number;
20
+ insertRule(index: number, rule: string): boolean;
21
+ deleteRule(index: number): void;
22
+ getRule(index: number): string;
23
+ };
24
+ export declare const CSSOMTag: {
25
+ new (target?: HTMLElement | undefined): {
26
+ element: HTMLStyleElement;
27
+ sheet: CSSStyleSheet;
28
+ length: number;
29
+ insertRule(index: number, rule: string): boolean;
30
+ deleteRule(index: number): void;
31
+ getRule(index: number): string;
32
+ };
33
+ };
34
+ /** A Tag that emulates the CSSStyleSheet API but uses text nodes */
35
+ export declare const TextTag: {
36
+ new (target?: HTMLElement | undefined): {
37
+ element: HTMLStyleElement;
38
+ nodes: NodeListOf<Node>;
39
+ length: number;
40
+ insertRule(index: number, rule: string): boolean;
41
+ deleteRule(index: number): void;
42
+ getRule(index: number): string;
43
+ };
44
+ };
45
+ /** A completely virtual (server-side) Tag that doesn't manipulate the DOM */
46
+ export declare const VirtualTag: {
47
+ new (_target?: HTMLElement | undefined): {
48
+ rules: string[];
49
+ length: number;
50
+ insertRule(index: number, rule: string): boolean;
51
+ deleteRule(index: number): void;
52
+ getRule(index: number): string;
53
+ };
54
+ };
@@ -0,0 +1,4 @@
1
+ /** Create a style element inside `target` or <head> after the last */
2
+ export declare const makeStyleTag: (target?: HTMLElement | undefined) => HTMLStyleElement;
3
+ /** Get the CSSStyleSheet instance for a given style element */
4
+ export declare const getSheet: (tag: HTMLStyleElement) => CSSStyleSheet;
@@ -0,0 +1 @@
1
+ export { default } from './Sheet';
@@ -0,0 +1,34 @@
1
+ /** CSSStyleSheet-like Tag abstraction for CSS rules */
2
+ export interface Tag {
3
+ insertRule(index: number, rule: string): boolean;
4
+ deleteRule(index: number): void;
5
+ getRule(index: number): string;
6
+ length: number;
7
+ }
8
+ /** Group-aware Tag that sorts rules by indices */
9
+ export interface GroupedTag {
10
+ clearGroup(group: number): void;
11
+ getGroup(group: number): string;
12
+ groupSizes: Uint32Array;
13
+ insertRules(group: number, rules: string | string[]): void;
14
+ length: number;
15
+ tag: Tag;
16
+ }
17
+ export declare type SheetOptions = {
18
+ isServer: boolean;
19
+ target?: HTMLElement;
20
+ useCSSOMInjection: boolean;
21
+ };
22
+ export interface Sheet {
23
+ allocateGSInstance(id: string): number;
24
+ clearNames(id: string): void;
25
+ clearRules(id: string): void;
26
+ clearTag(): void;
27
+ getTag(): GroupedTag;
28
+ hasNameForId(id: string, name: string): boolean;
29
+ insertRules(id: string, name: string, rules: string | string[]): void;
30
+ options: SheetOptions;
31
+ names: Map<string, Set<string>>;
32
+ registerName(id: string, name: string): void;
33
+ toString(): string;
34
+ }
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@babel/helper-module-imports"),r=e(require("@babel/traverse")),o=require("babel-plugin-macros"),n=e(require("babel-plugin-styled-components"));function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}var i=o.createMacro((function(e){var o,i=e.references,l=e.state,u=e.babel.types,s=e.config,c=(s=void 0===s?{}:s).importModuleName,p=void 0===c?"styled-components":c,f=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(s,["importModuleName"]),d=l.file.path;Object.keys(i).forEach((function(e){var r;"default"===e?(r=t.addDefault(d,p,{nameHint:"styled"}),o=r):r=t.addNamed(d,e,p,{nameHint:e}),i[e].forEach((function(e){e.node.name=r.name}))}));var m=a({},l,{opts:a({},f,{topLevelImportPaths:(f.topLevelImportPaths||[]).concat(p)}),customImportName:o});r(d.parent,n({types:u}).visitor,void 0,m)}),{configName:"styledComponents"});exports.default=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@babel/helper-module-imports"),a=require("@babel/traverse"),o=require("babel-plugin-macros"),r=require("babel-plugin-styled-components");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=n(a),i=n(r),l=o.createMacro((function(a){var o,r=a.references,n=a.state,l=a.babel.types,u=a.config,d=void 0===u?{}:u,p=d.importModuleName,c=void 0===p?"styled-components":p,m=e.__rest(d,["importModuleName"]),f=n.file.path;Object.keys(r).forEach((function(e){var a;"default"===e?(a=t.addDefault(f,c,{nameHint:"styled"}),o=a):a=t.addNamed(f,e,c,{nameHint:e}),r[e].forEach((function(e){e.node.name=a.name}))}));var b=e.__assign(e.__assign({},n),{opts:e.__assign(e.__assign({},m),{topLevelImportPaths:(m.topLevelImportPaths||[]).concat(c)}),customImportName:o});s.default(f.parent,i.default({types:l}).visitor,void 0,b)}),{configName:"styledComponents"});exports.default=l;
2
2
  //# sourceMappingURL=styled-components-macro.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled-components-macro.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"styled-components-macro.cjs.js","sources":["../src/macro/index.ts"],"sourcesContent":["import { types } from '@babel/core';\nimport { addDefault, addNamed } from '@babel/helper-module-imports';\nimport traverse from '@babel/traverse';\nimport { createMacro, MacroParams } from 'babel-plugin-macros';\nimport babelPlugin from 'babel-plugin-styled-components';\n\nfunction styledComponentsMacro({\n references,\n state,\n babel: { types: t },\n config: { importModuleName = 'styled-components', ...config } = {},\n}: MacroParams) {\n const program = state.file.path;\n\n // FIRST STEP : replace `styled-components/macro` by `styled-components\n // references looks like this\n // { default: [path, path], css: [path], ... }\n let customImportName;\n Object.keys(references).forEach(refName => {\n // generate new identifier\n let id: types.Identifier;\n if (refName === 'default') {\n id = addDefault(program, importModuleName, { nameHint: 'styled' });\n customImportName = id;\n } else {\n id = addNamed(program, refName, importModuleName, { nameHint: refName });\n }\n\n // update references with the new identifiers\n references[refName].forEach(referencePath => {\n // eslint-disable-next-line no-param-reassign\n (referencePath.node as types.Identifier).name = id.name;\n });\n });\n\n // SECOND STEP : apply babel-plugin-styled-components to the file\n const stateWithOpts = {\n ...state,\n opts: {\n ...config,\n topLevelImportPaths: (config.topLevelImportPaths || []).concat(importModuleName),\n },\n customImportName,\n };\n traverse(program.parent, babelPlugin({ types: t }).visitor, undefined, stateWithOpts);\n}\n\nexport default createMacro(styledComponentsMacro, {\n configName: 'styledComponents',\n});\n"],"names":["createMacro","_a","customImportName","references","state","t","_b","_c","_d","importModuleName","config","program","file","path","Object","keys","forEach","refName","id","addDefault","nameHint","addNamed","referencePath","node","name","stateWithOpts","opts","topLevelImportPaths","concat","traverse","parent","babelPlugin","types","visitor","undefined","configName"],"mappings":"2UA+CeA,eAzCf,SAA+BC,GAC7B,IAUIC,EAVJC,eACAC,UACgBC,gBAChBC,WAAAC,aAAgE,KAAtDC,qBAAAC,aAAmB,sBAAwBC,aAA7C,sBAEFC,EAAUP,EAAMQ,KAAKC,KAM3BC,OAAOC,KAAKZ,GAAYa,SAAQ,SAAAC,GAE9B,IAAIC,EACY,YAAZD,GACFC,EAAKC,aAAWR,EAASF,EAAkB,CAAEW,SAAU,WACvDlB,EAAmBgB,GAEnBA,EAAKG,WAASV,EAASM,EAASR,EAAkB,CAAEW,SAAUH,IAIhEd,EAAWc,GAASD,SAAQ,SAAAM,GAEzBA,EAAcC,KAA0BC,KAAON,EAAGM,WAKvD,IAAMC,2BACDrB,IACHsB,8BACKhB,IACHiB,qBAAsBjB,EAAOiB,qBAAuB,IAAIC,OAAOnB,KAEjEP,qBAEF2B,UAASlB,EAAQmB,OAAQC,UAAY,CAAEC,MAAO3B,IAAK4B,aAASC,EAAWT,KAGvB,CAChDU,WAAY"}
@@ -1,2 +1,2 @@
1
- import{addDefault as e,addNamed as t}from"@babel/helper-module-imports";import o from"@babel/traverse";import{createMacro as r}from"babel-plugin-macros";import n from"babel-plugin-styled-components";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var i=r((function(r){var i,p=r.references,m=r.state,l=r.babel.types,s=r.config,f=(s=void 0===s?{}:s).importModuleName,c=void 0===f?"styled-components":f,u=function(e,t){if(null==e)return{};var o,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)o=a[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(s,["importModuleName"]),v=m.file.path;Object.keys(p).forEach((function(o){var r;"default"===o?(r=e(v,c,{nameHint:"styled"}),i=r):r=t(v,o,c,{nameHint:o}),p[o].forEach((function(e){e.node.name=r.name}))}));var b=a({},m,{opts:a({},u,{topLevelImportPaths:(u.topLevelImportPaths||[]).concat(c)}),customImportName:i});o(v.parent,n({types:l}).visitor,void 0,b)}),{configName:"styledComponents"});export default i;
1
+ import{__rest as e,__assign as o}from"tslib";import{addDefault as t,addNamed as r}from"@babel/helper-module-imports";import a from"@babel/traverse";import{createMacro as m}from"babel-plugin-macros";import n from"babel-plugin-styled-components";var p=m((function(m){var p,i=m.references,s=m.state,l=m.babel.types,f=m.config,c=void 0===f?{}:f,d=c.importModuleName,b=void 0===d?"styled-components":d,u=e(c,["importModuleName"]),v=s.file.path;Object.keys(i).forEach((function(e){var o;"default"===e?(o=t(v,b,{nameHint:"styled"}),p=o):o=r(v,e,b,{nameHint:e}),i[e].forEach((function(e){e.node.name=o.name}))}));var y=o(o({},s),{opts:o(o({},u),{topLevelImportPaths:(u.topLevelImportPaths||[]).concat(b)}),customImportName:p});a(v.parent,n({types:l}).visitor,void 0,y)}),{configName:"styledComponents"});export{p as default};
2
2
  //# sourceMappingURL=styled-components-macro.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled-components-macro.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"styled-components-macro.esm.js","sources":["../src/macro/index.ts"],"sourcesContent":["import { types } from '@babel/core';\nimport { addDefault, addNamed } from '@babel/helper-module-imports';\nimport traverse from '@babel/traverse';\nimport { createMacro, MacroParams } from 'babel-plugin-macros';\nimport babelPlugin from 'babel-plugin-styled-components';\n\nfunction styledComponentsMacro({\n references,\n state,\n babel: { types: t },\n config: { importModuleName = 'styled-components', ...config } = {},\n}: MacroParams) {\n const program = state.file.path;\n\n // FIRST STEP : replace `styled-components/macro` by `styled-components\n // references looks like this\n // { default: [path, path], css: [path], ... }\n let customImportName;\n Object.keys(references).forEach(refName => {\n // generate new identifier\n let id: types.Identifier;\n if (refName === 'default') {\n id = addDefault(program, importModuleName, { nameHint: 'styled' });\n customImportName = id;\n } else {\n id = addNamed(program, refName, importModuleName, { nameHint: refName });\n }\n\n // update references with the new identifiers\n references[refName].forEach(referencePath => {\n // eslint-disable-next-line no-param-reassign\n (referencePath.node as types.Identifier).name = id.name;\n });\n });\n\n // SECOND STEP : apply babel-plugin-styled-components to the file\n const stateWithOpts = {\n ...state,\n opts: {\n ...config,\n topLevelImportPaths: (config.topLevelImportPaths || []).concat(importModuleName),\n },\n customImportName,\n };\n traverse(program.parent, babelPlugin({ types: t }).visitor, undefined, stateWithOpts);\n}\n\nexport default createMacro(styledComponentsMacro, {\n configName: 'styledComponents',\n});\n"],"names":["createMacro","_a","customImportName","references","state","t","_b","_c","_d","importModuleName","config","program","file","path","Object","keys","forEach","refName","id","addDefault","nameHint","addNamed","referencePath","node","name","stateWithOpts","opts","topLevelImportPaths","concat","traverse","parent","babelPlugin","types","visitor","undefined","configName"],"mappings":"oPA+CA,MAAeA,GAzCf,SAA+BC,GAC7B,IAUIC,EAVJC,eACAC,UACgBC,gBAChBC,WAAAC,aAAgE,KAAtDC,qBAAAC,aAAmB,sBAAwBC,MAA7C,sBAEFC,EAAUP,EAAMQ,KAAKC,KAM3BC,OAAOC,KAAKZ,GAAYa,SAAQ,SAAAC,GAE9B,IAAIC,EACY,YAAZD,GACFC,EAAKC,EAAWR,EAASF,EAAkB,CAAEW,SAAU,WACvDlB,EAAmBgB,GAEnBA,EAAKG,EAASV,EAASM,EAASR,EAAkB,CAAEW,SAAUH,IAIhEd,EAAWc,GAASD,SAAQ,SAAAM,GAEzBA,EAAcC,KAA0BC,KAAON,EAAGM,WAKvD,IAAMC,SACDrB,IACHsB,YACKhB,IACHiB,qBAAsBjB,EAAOiB,qBAAuB,IAAIC,OAAOnB,KAEjEP,qBAEF2B,EAASlB,EAAQmB,OAAQC,EAAY,CAAEC,MAAO3B,IAAK4B,aAASC,EAAWT,KAGvB,CAChDU,WAAY"}
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react-is"),n=require("react"),r=e(n),o=e(require("shallowequal")),s=e(require("@emotion/stylis")),i=e(require("@emotion/unitless")),a=e(require("@emotion/is-prop-valid")),u=e(require("hoist-non-react-statics"));function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},d=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!t.typeOf(e)},h=Object.freeze([]),p=Object.freeze({});function f(e){return"function"==typeof e}function m(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function y(e){return e&&"string"==typeof e.styledComponentId}var v="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),w={},E="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\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",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\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",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",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",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\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",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",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",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",14:'ThemeProvider: "theme" prop is required.\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",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",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function b(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(b.apply(void 0,[E[e]].concat(n)).trim())}var N=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&_(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=0,u=t.length;a<u;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),C=new Map,A=new Map,I=1,P=function(e){if(C.has(e))return C.get(e);for(;A.has(I);)I++;var t=I++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&_(16,""+t),C.set(e,t),A.set(t,e),t},O=function(e){return A.get(e)},x=function(e,t){t>=I&&(I=t+1),C.set(e,t),A.set(t,e)},R="style["+v+'][data-styled-version="5.3.2"]',D=new RegExp("^"+v+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},j=function(e,t){for(var n=(t.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(D);if(a){var u=0|parseInt(a[1],10),c=a[2];0!==u&&(x(c,u),T(e,c,a[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(i)}}},k=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},V=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(v))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(v,"active"),r.setAttribute("data-styled-version","5.3.2");var i=k();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},M=function(){function e(e){var t=this.element=V(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}_(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=V(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),L=g,q={isServer:!g,useCSSOMInjection:!S},G=function(){function e(e,t,n){void 0===e&&(e=p),void 0===t&&(t={}),this.options=c({},q,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&g&&L&&(L=!1,function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(v)&&(j(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return P(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(c({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new z(o):r?new M(o):new B(o),new N(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(P(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(P(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=O(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var u=v+".g"+o+'[id="'+s+'"]',c="";void 0!==i&&i.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+a+u+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),F=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function H(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Y(t%52)+n;return(Y(t%52)+n).replace(F,"$1-$2")}var $=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=function(e){return $(5381,e)};function U(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(f(n)&&!y(n))return!1}return!0}var J=W("5.3.2"),X=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&U(e),this.componentId=t,this.baseHash=$(J,t),this.baseStyle=n,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var s=me(this.rules,e,t,n).join(""),i=H($(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a)}o.push(i),this.staticRulesId=i}else{for(var u=this.rules.length,c=$(this.baseHash,n.hash),l="",d=0;d<u;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(c=$(c,h+d));else if(h){var p=me(h,e,t,n),f=Array.isArray(p)?p.join(""):p;c=$(c,f+d),l+=f}}if(l){var m=H(c>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,K=[":","[",".","#"];function Q(e){var t,n,r,o,i=void 0===e?p:e,a=i.options,u=void 0===a?p:a,c=i.plugins,l=void 0===c?h:c,d=new s(u),f=[],m=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,s,i,a,u,c,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),y=function(e,r,s){return 0===r&&-1!==K.indexOf(s[n.length])||s.match(o)?e:"."+t};function v(e,s,i,a){void 0===a&&(a="&");var u=e.replace(Z,""),c=s&&i?i+" "+s+" { "+u+" }":u;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(i||!s?"":s,c)}return d.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,y))},m,function(e){if(-2===e){var t=f;return f=[],t}}])),v.hash=l.length?l.reduce((function(e,t){return t.name||_(15),$(e,t.name)}),5381).toString():"",v}var ee=r.createContext(),te=ee.Consumer,ne=r.createContext(),re=(ne.Consumer,new G),oe=Q();function se(){return n.useContext(ee)||re}function ie(){return n.useContext(ne)||oe}function ae(e){var t=n.useState(e.stylisPlugins),s=t[0],i=t[1],a=se(),u=n.useMemo((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=n.useMemo((function(){return Q({options:{prefix:!e.disableVendorPrefixes},plugins:s})}),[e.disableVendorPrefixes,s]);return n.useEffect((function(){o(s,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),r.createElement(ee.Provider,{value:u},r.createElement(ne.Provider,{value:c},"production"!==process.env.NODE_ENV?r.Children.only(e.children):e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return _(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ce=/([A-Z])/,le=/([A-Z])/g,de=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function pe(e){return ce.test(e)?e.replace(le,he).replace(de,"-ms-"):e}var fe=function(e){return null==e||!1===e||""===e};function me(e,n,r,o){if(Array.isArray(e)){for(var s,a=[],u=0,c=e.length;u<c;u+=1)""!==(s=me(e[u],n,r,o))&&(Array.isArray(s)?a.push.apply(a,s):a.push(s));return a}if(fe(e))return"";if(y(e))return"."+e.styledComponentId;if(f(e)){if("function"!=typeof(h=e)||h.prototype&&h.prototype.isReactComponent||!n)return e;var l=e(n);return"production"!==process.env.NODE_ENV&&t.isElement(l)&&console.warn(m(e)+" 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."),me(l,n,r,o)}var h;return e instanceof ue?r?(e.inject(r,o),e.getName(o)):e:d(e)?function e(t,n){var r,o,s=[];for(var a in t)t.hasOwnProperty(a)&&!fe(t[a])&&(Array.isArray(t[a])&&t[a].isCss||f(t[a])?s.push(pe(a)+":",t[a],";"):d(t[a])?s.push.apply(s,e(t[a],a)):s.push(pe(a)+": "+(r=a,null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in i?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ve(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return f(e)||d(e)?ye(me(l(h,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(me(l(e,n)))}var ge=/invalid hook call/i,Se=new Set,we=function(e,t){if("production"!==process.env.NODE_ENV){var r="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",o=console.error;try{var s=!0;console.error=function(e){if(ge.test(e))s=!1,Se.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o.apply(void 0,[e].concat(n))}},n.useRef(),s&&!Se.has(r)&&(console.warn(r),Se.add(r))}catch(e){ge.test(e.message)&&Se.delete(r)}finally{console.error=o}}},Ee=function(e,t,n){return void 0===n&&(n=p),e.theme!==n.theme&&e.theme||t||n.theme},be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_e=/(^-|-$)/g;function Ne(e){return e.replace(be,"-").replace(_e,"")}var Ce=function(e){return H(W(e)>>>0)};function Ae(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ie=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Oe(e,t,n){var r=e[n];Ie(t)&&Ie(r)?xe(r,t):e[n]=t}function xe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(Ie(i))for(var a in i)Pe(a)&&Oe(e,i[a],a)}return e}var Re=r.createContext(),De=Re.Consumer,Te={};function je(e,t,o){var s=y(e),i=!Ae(e),l=t.attrs,d=void 0===l?h:l,v=t.componentId,g=void 0===v?function(e,t){var n="string"!=typeof e?"sc":Ne(e);Te[n]=(Te[n]||0)+1;var r=n+"-"+Ce("5.3.2"+n+Te[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):v,S=t.displayName,w=void 0===S?function(e){return Ae(e)?"styled."+e:"Styled("+m(e)+")"}(e):S,E=t.displayName&&t.componentId?Ne(t.displayName)+"-"+t.componentId:t.componentId||g,b=s&&e.attrs?Array.prototype.concat(e.attrs,d).filter(Boolean):d,_=t.shouldForwardProp;s&&e.shouldForwardProp&&(_=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var N,C=new X(o,E,s?e.componentStyle:void 0),A=C.isStatic&&0===d.length,I=function(e,t){return function(e,t,r,o){var s=e.attrs,i=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,m=e.target;"production"!==process.env.NODE_ENV&&n.useDebugValue(h);var y=function(e,t,n){void 0===e&&(e=p);var r=c({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in f(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t]})),[r,o]}(Ee(t,n.useContext(Re),u)||p,t,s),v=y[0],g=y[1],S=function(e,t,r,o){var s=se(),i=ie(),a=t?e.generateAndInjectStyles(p,s,i):e.generateAndInjectStyles(r,s,i);return"production"!==process.env.NODE_ENV&&n.useDebugValue(a),"production"!==process.env.NODE_ENV&&!t&&o&&o(a),a}(i,o,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),w=r,E=g.$as||t.$as||g.as||t.as||m,b=Ae(E),_=g!==t?c({},t,{},g):t,N={};for(var C in _)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?N.as=_[C]:(d?d(C,a,E):!b||a(C))&&(N[C]=_[C]));return t.style&&g.style!==t.style&&(N.style=c({},t.style,{},g.style)),N.className=Array.prototype.concat(l,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),N.ref=w,n.createElement(E,N)}(N,e,t,A)};return I.displayName=w,(N=r.forwardRef(I)).attrs=b,N.componentStyle=C,N.displayName=w,N.shouldForwardProp=_,N.foldedComponentIds=s?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,N.styledComponentId=E,N.target=s?e.target:e,N.withComponent=function(e){var n=t.componentId,r=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=n&&n+"-"+(Ae(e)?e:Ne(m(e)));return je(e,c({},r,{attrs:b,componentId:s}),o)},Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=s?xe({},e.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(we(w,E),N.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(w,E)),N.toString=function(){return"."+N.styledComponentId},i&&u(N,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),N}var ke=function(e){return function e(n,r,o){if(void 0===o&&(o=p),!t.isValidElementType(r))return _(1,String(r));var s=function(){return n(r,o,ve.apply(void 0,arguments))};return s.withConfig=function(t){return e(n,r,c({},o,{},t))},s.attrs=function(t){return e(n,r,c({},o,{attrs:Array.prototype.concat(o.attrs,t).filter(Boolean)}))},s}(je,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){ke[e]=ke(e)}));var Ve=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=U(e),G.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(me(this.rules,t,n,r).join(""),""),s=this.componentId+e;n.insertRules(s,s,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),Me=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=k();return"<style "+[n&&'nonce="'+n+'"',v+'="true"','data-styled-version="5.3.2"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?_(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return _(2);var n=((t={})[v]="",t["data-styled-version"]="5.3.2",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=k();return o&&(n.nonce=o),[r.createElement("style",c({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?_(2):r.createElement(ae,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return _(3)},e}(),Be={StyleSheet:G,masterSheet:re};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1),exports.ServerStyleSheet=Me,exports.StyleSheetConsumer=te,exports.StyleSheetContext=ee,exports.StyleSheetManager=ae,exports.ThemeConsumer=De,exports.ThemeContext=Re,exports.ThemeProvider=function(e){var t=n.useContext(Re),o=n.useMemo((function(){return function(e,t){if(!e)return _(14);if(f(e)){var n=e(t);return"production"===process.env.NODE_ENV||null!==n&&!Array.isArray(n)&&"object"==typeof n?n:_(7)}return Array.isArray(e)||"object"!=typeof e?_(8):t?c({},t,{},e):e}(e.theme,t)}),[e.theme,t]);return e.children?r.createElement(Re.Provider,{value:o},e.children):null},exports.__PRIVATE__=Be,exports.createGlobalStyle=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];var i=ve.apply(void 0,[e].concat(o)),a="sc-global-"+Ce(JSON.stringify(i)),u=new Ve(i,a);function l(e){var t=se(),o=ie(),s=n.useContext(Re),c=n.useRef(t.allocateGSInstance(a)).current;return"production"!==process.env.NODE_ENV&&r.Children.count(e.children)&&console.warn("The global style component "+a+" was given child JSX. createGlobalStyle does not render children."),"production"!==process.env.NODE_ENV&&i.some((function(e){return"string"==typeof e&&-1!==e.indexOf("@import")}))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.server&&d(c,e,t,s,o),n.useLayoutEffect((function(){if(!t.server)return d(c,e,t,s,o),function(){return u.removeStyles(c,t)}}),[c,e,t,s,o]),null}function d(e,t,n,r,o){if(u.isStatic)u.renderStyles(e,w,n,o);else{var s=c({},t,{theme:Ee(t,r,l.defaultProps)});u.renderStyles(e,s,n,o)}}return"production"!==process.env.NODE_ENV&&we(a),r.memo(l)},exports.css=ve,exports.default=ke,exports.isStyledComponent=y,exports.keyframes=function(e){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ve.apply(void 0,[e].concat(n)).join(""),s=Ce(o);return new ue(s,o)},exports.useTheme=function(){return n.useContext(Re)},exports.version="5.3.2",exports.withTheme=function(e){var t=r.forwardRef((function(t,o){var s=n.useContext(Re),i=e.defaultProps,a=Ee(t,s,i);return"production"!==process.env.NODE_ENV&&void 0===a&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'+m(e)+'"'),r.createElement(e,c({},t,{theme:a,ref:o}))}));return u(t,e),t.displayName="WithTheme("+m(e)+")",t};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@emotion/is-prop-valid"),n=require("react"),r=require("shallowequal"),o=require("stylis"),s=require("@emotion/unitless");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t),c=i(n),u=i(r),l=i(s),d="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",p="6.0.0-alpha.1",h="undefined"!=typeof window&&"HTMLElement"in window,f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),y={},m=/invalid hook call/i,v=new Set,g=function(t,r){if("production"!==process.env.NODE_ENV){var o=r?' with the id of "'.concat(r,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];m.test(t)?(a=!1,v.delete(s)):i.apply(void 0,e.__spreadArray([t],e.__read(n),!1))},n.useRef(),a&&!v.has(s)&&(console.warn(s),v.add(s))}catch(e){m.test(e.message)&&v.delete(s)}finally{console.error=i}}},_=Object.freeze([]),S=Object.freeze({});function w(e,t,n){return void 0===n&&(n=S),e.theme!==n.theme&&e.theme||t||n.theme}var b=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],E=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,N=/(^-|-$)/g;function C(e){return e.replace(E,"-").replace(N,"")}var A=/(a)(d)/gi,P=function(e){return String.fromCharCode(e+(e>25?39:97))};function I(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=P(t%52)+n;return(P(t%52)+n).replace(A,"$1-$2")}var x,O=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},R=function(e){return O(5381,e)};function D(e){return I(R(e)>>>0)}function T(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var k="function"==typeof Symbol&&Symbol.for,V=k?Symbol.for("react.memo"):60115,M=k?Symbol.for("react.forward_ref"):60112,$={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L=((x={})[M]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},x[V]=B,x);function G(e){return("type"in(t=e)&&t.type.$$typeof)===V?B:"$$typeof"in e?L[e.$$typeof]:$;var t}var F=Object.defineProperty,q=Object.getOwnPropertyNames,Y=Object.getOwnPropertySymbols,H=Object.getOwnPropertyDescriptor,W=Object.getPrototypeOf,U=Object.prototype;function J(e,t,n){if("string"!=typeof t){if(U){var r=W(t);r&&r!==U&&J(e,r,n)}var o=q(t);Y&&(o=o.concat(Y(t)));for(var s=G(e),i=G(t),a=0;a<o.length;++a){var c=o[a];if(!(c in z||n&&n[c]||i&&c in i||s&&c in s)){var u=H(t,c);try{F(e,c,u)}catch(e){}}}}return e}function X(e){return"object"==typeof e&&"styledComponentId"in e}function Z(e){return!(null===e||"object"!=typeof e||e.constructor&&"Object"!==e.constructor.name||"[object Object]"!==(e.toString?e.toString():Object.prototype.toString.call(e))||"props"in e&&(e.$$typeof||void 0===e.constructor))}function K(e,t,n){if(void 0===n&&(n=!1),!n&&!Z(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=K(e[r],t[r]);else if(Z(t))for(var r in t)e[r]=K(e[r],t[r]);return e}var Q="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\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",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\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",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",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",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\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",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",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",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",14:'ThemeProvider: "theme" prop is required.\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",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",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}function te(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ee.apply(void 0,e.__spreadArray([Q[t]],e.__read(n),!1)).trim())}var ne=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw te(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}var i=this.indexOfGroup(e+1);if(Array.isArray(t)){s=0;for(var a=t.length;s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)}else this.tag.insertRule(i,t)&&this.groupSizes[e]++},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),re=new Map,oe=new Map,se=1,ie=function(e){if(re.has(e))return re.get(e);for(;oe.has(se);)se++;var t=se++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw te(16,"".concat(t));return re.set(e,t),oe.set(t,e),t},ae=function(e,t){re.set(e,t),oe.set(t,e)},ce="style[".concat(d,"][").concat("data-styled-version",'="').concat(p,'"]'),ue=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),le=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},de=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(ue);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ae(l,u),le(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}};function pe(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var he=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(d))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(d,"active"),r.setAttribute("data-styled-version",p);var i=pe();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},fe=function(){function e(e){var t=this.element=he(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw te(17)}(t),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),ye=function(){function e(e){var t=this.element=he(e);this.nodes=t.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),me=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ve=h,ge={isServer:!h,useCSSOMInjection:!f},_e=function(){function t(t,n,r){void 0===t&&(t=S),void 0===n&&(n={}),this.options=e.__assign(e.__assign({},ge),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&h&&ve&&(ve=!1,function(e){for(var t=document.querySelectorAll(ce),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(d)&&(de(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}return t.registerId=function(e){return ie(e)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.isServer,n=e.useCSSOMInjection,r=e.target;return t?new me(r):n?new fe(r):new ye(r)}(this.options),new ne(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(ie(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ie(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(ie(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return oe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)o(s);return r}(this)},t}(),Se=/^\s*\/\/.*$/gm,we=[":","[",".","#"];function be(e){var t,n,r,s,i=void 0===e?S:e,a=i.options,c=void 0===a?S:a,u=i.plugins,l=void 0===u?_:u,d=function(e,r,o){return 0===r&&we.includes(o[n.length])||o.match(s)?e:".".concat(t)},p=function(e){if(e.type===o.RULESET&&e.value.includes("&")){var t=e.props;t[0]=t[0].replace(r,d)}},h=function(e,i,a,u){void 0===i&&(i=""),void 0===a&&(a=""),void 0===u&&(u="&");var d=e.replace(Se,"");t=u,n=i,r=new RegExp("\\".concat(n,"\\b"),"g"),s=new RegExp("(\\".concat(n,"\\b){2,}"));var h=l.slice();return(c.prefix||void 0===c.prefix)&&h.unshift(o.prefixer),h.push(p,o.stringify),o.serialize(o.compile(a||i?"".concat(a," ").concat(i," { ").concat(d," }"):d),o.middleware(h))};return h.hash=l.length?l.reduce((function(e,t){return t.name||te(15),O(e,t.name)}),5381).toString():"",h}var Ee=c.default.createContext(void 0),Ne=Ee.Consumer,Ce=c.default.createContext(void 0);Ce.Consumer;var Ae=new _e,Pe=be();function Ie(){return n.useContext(Ee)||Ae}function xe(){return n.useContext(Ce)||Pe}function Oe(t){var r=e.__read(n.useState(t.stylisPlugins),2),o=r[0],s=r[1],i=Ie(),a=n.useMemo((function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),l=n.useMemo((function(){return be({options:{prefix:!t.disableVendorPrefixes},plugins:o})}),[t.disableVendorPrefixes,o]);return n.useEffect((function(){u.default(o,t.stylisPlugins)||s(t.stylisPlugins)}),[t.stylisPlugins]),c.default.createElement(Ee.Provider,{value:a},c.default.createElement(Ce.Provider,{value:l},"production"!==process.env.NODE_ENV?c.default.Children.only(t.children):t.children))}var Re=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Pe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw te(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Pe),this.name+e.hash},e}(),De=/([A-Z])/,Te=/([A-Z])/g,je=/^ms-/,ke=function(e){return"-".concat(e.toLowerCase())};function Ve(e){return De.test(e)?e.replace(Te,ke).replace(je,"-ms-"):e}function Me(e){return"function"==typeof e}var $e=function(e){return null==e||!1===e||""===e},ze=function(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!$e(t[i])&&(Array.isArray(t[i])&&t[i].isCss||Me(t[i])?s.push("".concat(Ve(i),":"),t[i],";"):Z(t[i])?s.push.apply(s,e.__spreadArray([],e.__read(ze(t[i],i)),!1)):s.push("".concat(Ve(i),": ").concat((r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in l.default?String(o).trim():"".concat(o,"px")),";")));return n?e.__spreadArray(e.__spreadArray(["".concat(n," {")],e.__read(s),!1),["}"],!1):s};function Be(t,n,r,o){if(Array.isArray(t)){for(var s=[],i=0,a=t.length,c=void 0;i<a;i+=1)""!==(c=Be(t[i],n,r,o))&&(Array.isArray(c)?s.push.apply(s,e.__spreadArray([],e.__read(c),!1)):s.push(c));return s}if($e(t))return"";if(X(t))return".".concat(t.styledComponentId);if(Me(t)){if("function"!=typeof(l=t)||l.prototype&&l.prototype.isReactComponent||!n)return t;var u=t;return c=u(n),"production"===process.env.NODE_ENV||"object"!=typeof c||Array.isArray(c)||c instanceof Re||Z(c)||console.error("".concat(T(u)," 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.")),Be(c,n,r,o)}var l;return t instanceof Re?r?(t.inject(r,o),t.getName(o)):t:Z(t)?ze(t):t.toString()}function Le(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Me(n)&&!X(n))return!1}return!0}var Ge=R(p),Fe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Le(e),this.componentId=t,this.baseHash=O(Ge,t),this.baseStyle=n,_e.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var s=Be(this.rules,e,t,n).join(""),i=I(O(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,".".concat(i),void 0,r);t.insertRules(r,i,a)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=O(this.baseHash,n.hash),l="",d=0;d<c;d++){var p=this.rules[d];if("string"==typeof p)l+=p,"production"!==process.env.NODE_ENV&&(u=O(u,p+d));else if(p){var h=Be(p,e,t,n),f=Array.isArray(h)?h.join(""):h;u=O(u,f+d),l+=f}}if(l){var y=I(u>>>0);if(!t.hasNameForId(r,y)){var m=n(l,".".concat(y),void 0,r);t.insertRules(r,y,m)}o.push(y)}}return o.join(" ")},e}(),qe=c.default.createContext(void 0),Ye=qe.Consumer,He={};function We(t,r,o){var s=X(t),i=t,u=!j(t),l=r.attrs,d=void 0===l?_:l,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":C(e);He[n]=(He[n]||0)+1;var r="".concat(n,"-").concat(D(p+n+He[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):h,y=r.displayName,m=void 0===y?function(e){return j(e)?"styled.".concat(e):"Styled(".concat(T(e),")")}(t):y,v=r.displayName&&r.componentId?"".concat(C(r.displayName),"-").concat(r.componentId):r.componentId||f,E=s&&i.attrs?i.attrs.concat(d).filter(Boolean):d,N=r.shouldForwardProp;if(s&&i.shouldForwardProp){var A=i.shouldForwardProp;if(r.shouldForwardProp){var P=r.shouldForwardProp;N=function(e,t,n){return A(e,t,n)&&P(e,t,n)}}else N=A}var I=new Fe(o,v,s?i.componentStyle:void 0),x=I.isStatic&&0===d.length;function O(t,r){return function(t,r,o,s){var i=t.attrs,c=t.componentStyle,u=t.defaultProps,l=t.foldedComponentIds,d=t.shouldForwardProp,p=t.styledComponentId,h=t.target;"production"!==process.env.NODE_ENV&&n.useDebugValue(p);var f=w(r,n.useContext(qe),u),y=e.__read(function(t,n,r){void 0===t&&(t=S);var o=e.__assign(e.__assign({},n),{theme:t}),s={};return r.forEach((function(e){var t,n,r,i="function"==typeof e?e(o):e;for(t in i)o[t]=s[t]="className"===t?(n=s[t],r=i[t],n&&r?"".concat(n," ").concat(r):n||r):i[t]})),[o,s]}(f||S,r,i),2),m=y[0],v=y[1],g=function(e,t,r,o){var s=Ie(),i=xe(),a=t?e.generateAndInjectStyles(S,s,i):e.generateAndInjectStyles(r,s,i);return"production"!==process.env.NODE_ENV&&n.useDebugValue(a),"production"!==process.env.NODE_ENV&&!t&&o&&o(a),a}(c,s,m,"production"!==process.env.NODE_ENV?t.warnTooManyClasses:void 0),_=o,E=v.$as||r.$as||v.as||r.as||h,N=j(E),C=v!==r?e.__assign(e.__assign({},r),v):r,A={};for(var P in C)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?A.as=C[P]:(d?d(P,a.default,E):!N||a.default(P))&&(A[P]=C[P]));return r.style&&v.style!==r.style&&(A.style=e.__assign(e.__assign({},r.style),v.style)),A[N&&-1===b.indexOf(E)?"class":"className"]=l.concat(p,g!==p?g:null,r.className,v.className).filter(Boolean).join(" "),A.ref=_,n.createElement(E,A)}(R,t,r,x)}O.displayName=m;var R=c.default.forwardRef(O);return R.attrs=E,R.componentStyle=I,R.displayName=m,R.shouldForwardProp=N,R.foldedComponentIds=s?i.foldedComponentIds.concat(i.styledComponentId):_,R.styledComponentId=v,R.target=s?i.target:t,R.withComponent=function(t){var n=r.componentId,s=e.__rest(r,["componentId"]),i=n&&"".concat(n,"-").concat(j(t)?t:C(T(t)));return We(t,e.__assign(e.__assign({},s),{attrs:E,componentId:i}),o)},Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=s?function(t){var n,r;void 0===t&&(t={});for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];try{for(var i=e.__values(o),a=i.next();!a.done;a=i.next())K(t,a.value,!0)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t}({},i.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(g(m,v),R.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(m,v)),R.toString=function(){return".".concat(R.styledComponentId)},u&&J(R,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),R}function Ue(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Je=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Xe(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(Me(t)||Z(t)){var o=t;return Je(Be(Ue(_,e.__spreadArray([o],e.__read(n),!1))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?s:Je(Be(Ue(s,n)))}function Ze(t,n,r){if(void 0===r&&(r=S),!n)throw te(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,Xe.apply(void 0,e.__spreadArray([o],e.__read(s),!1)))};return o.attrs=function(o){return Ze(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return Ze(t,n,e.__assign(e.__assign({},r),o))},o}var Ke=function(e){return Ze(We,e)},Qe=Ke;b.forEach((function(e){Qe[e]=Ke(e)}));var et=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Le(e),_e.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Be(this.rules,t,n,r).join(""),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&_e.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),tt=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=pe(),r=[n&&'nonce="'.concat(n,'"'),"".concat(d,'="true"'),"".concat("data-styled-version",'="').concat(p,'"')].filter(Boolean).join(" ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw te(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw te(2);var r=((n={})[d]="",n["data-styled-version"]=p,n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=pe();return o&&(r.nonce=o),[c.default.createElement("style",e.__assign({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new _e({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw te(2);return c.default.createElement(Oe,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){throw te(3)},t}(),nt={StyleSheet:_e,mainSheet:Ae};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]||(window["__styled-components-init__"]=0),1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1),exports.ServerStyleSheet=tt,exports.StyleSheetConsumer=Ne,exports.StyleSheetContext=Ee,exports.StyleSheetManager=Oe,exports.ThemeConsumer=Ye,exports.ThemeContext=qe,exports.ThemeProvider=function(t){var r=n.useContext(qe),o=n.useMemo((function(){return function(t,n){if(!t)throw te(14);if(Me(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw te(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw te(8);return n?e.__assign(e.__assign({},n),t):t}(t.theme,r)}),[t.theme,r]);return t.children?c.default.createElement(qe.Provider,{value:o},t.children):null},exports.__PRIVATE__=nt,exports.createGlobalStyle=function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var s=Xe.apply(void 0,e.__spreadArray([t],e.__read(r),!1)),i="sc-global-".concat(D(JSON.stringify(s))),a=new et(s,i);"production"!==process.env.NODE_ENV&&g(i);var u=function(e){var t=Ie(),r=xe(),o=n.useContext(qe),u=n.useRef(t.allocateGSInstance(i)).current;return"production"!==process.env.NODE_ENV&&c.default.Children.count(e.children)&&console.warn("The global style component ".concat(i," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&s.some((function(e){return"string"==typeof e&&-1!==e.indexOf("@import")}))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.server&&l(u,e,t,o,r),n.useLayoutEffect((function(){if(!t.server)return l(u,e,t,o,r),function(){return a.removeStyles(u,t)}}),[u,e,t,o,r]),null};function l(t,n,r,o,s){if(a.isStatic)a.renderStyles(t,y,r,s);else{var i=e.__assign(e.__assign({},n),{theme:w(n,o,u.defaultProps)});a.renderStyles(t,i,r,s)}}return c.default.memo(u)},exports.css=Xe,exports.default=Qe,exports.isStyledComponent=X,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=Xe.apply(void 0,e.__spreadArray([t],e.__read(n),!1)).join(""),s=D(o);return new Re(s,o)},exports.useTheme=function(){return n.useContext(qe)},exports.version=p,exports.withTheme=function(t){var n=c.default.forwardRef((function(n,r){var o=w(n,c.default.useContext(qe),t.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(T(t),'"')),c.default.createElement(t,e.__assign({},n,{theme:o,ref:r}))}));return n.displayName="WithTheme(".concat(T(t),")"),J(n,t)};
2
2
  //# sourceMappingURL=styled-components.browser.cjs.js.map