styled-components 6.0.0-beta.2 → 6.0.0-beta.4

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 (260) hide show
  1. package/dist/base.d.ts +1 -1
  2. package/dist/constructors/constructWithOptions.d.ts +21 -26
  3. package/dist/constructors/createGlobalStyle.d.ts +2 -2
  4. package/dist/constructors/css.d.ts +4 -4
  5. package/dist/constructors/keyframes.d.ts +1 -1
  6. package/dist/constructors/styled.d.ts +176 -180
  7. package/dist/hoc/withTheme.d.ts +2 -2
  8. package/dist/models/GlobalStyle.d.ts +1 -1
  9. package/dist/models/InlineStyle.d.ts +1 -1
  10. package/dist/models/StyledComponent.d.ts +1 -1
  11. package/dist/models/StyledNativeComponent.d.ts +2 -2
  12. package/dist/native/index.d.ts +25 -29
  13. package/dist/styled-components.browser.cjs.js +52 -64
  14. package/dist/styled-components.browser.cjs.js.map +1 -1
  15. package/dist/styled-components.browser.esm.js +52 -64
  16. package/dist/styled-components.browser.esm.js.map +1 -1
  17. package/dist/styled-components.cjs.js +52 -64
  18. package/dist/styled-components.cjs.js.map +1 -1
  19. package/dist/styled-components.esm.js +52 -64
  20. package/dist/styled-components.esm.js.map +1 -1
  21. package/dist/styled-components.js +52 -64
  22. package/dist/styled-components.js.map +1 -1
  23. package/dist/styled-components.min.js +1 -1
  24. package/dist/styled-components.min.js.map +1 -1
  25. package/dist/test/utils.d.ts +176 -180
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/dist/types.d.ts +56 -42
  28. package/dist/utils/determineTheme.d.ts +2 -2
  29. package/dist/utils/empties.d.ts +2 -2
  30. package/dist/utils/flatten.d.ts +3 -3
  31. package/dist/utils/interleave.d.ts +1 -1
  32. package/dist/utils/isStaticRules.d.ts +1 -1
  33. package/dist/utils/isStyledComponent.d.ts +1 -1
  34. package/dist/utils/joinStrings.d.ts +1 -1
  35. package/dist/utils/mixinDeep.d.ts +1 -2
  36. package/native/dist/base.d.ts +1 -1
  37. package/native/dist/constructors/constructWithOptions.d.ts +21 -26
  38. package/native/dist/constructors/createGlobalStyle.d.ts +2 -2
  39. package/native/dist/constructors/css.d.ts +4 -4
  40. package/native/dist/constructors/keyframes.d.ts +1 -1
  41. package/native/dist/constructors/styled.d.ts +176 -180
  42. package/native/dist/hoc/withTheme.d.ts +2 -2
  43. package/native/dist/models/GlobalStyle.d.ts +1 -1
  44. package/native/dist/models/InlineStyle.d.ts +1 -1
  45. package/native/dist/models/StyledComponent.d.ts +1 -1
  46. package/native/dist/models/StyledNativeComponent.d.ts +2 -2
  47. package/native/dist/native/index.d.ts +25 -29
  48. package/native/dist/styled-components.native.cjs.js +24 -37
  49. package/native/dist/styled-components.native.cjs.js.map +1 -1
  50. package/native/dist/styled-components.native.esm.js +24 -37
  51. package/native/dist/styled-components.native.esm.js.map +1 -1
  52. package/native/dist/test/utils.d.ts +176 -180
  53. package/native/dist/types.d.ts +56 -42
  54. package/native/dist/utils/determineTheme.d.ts +2 -2
  55. package/native/dist/utils/empties.d.ts +2 -2
  56. package/native/dist/utils/flatten.d.ts +3 -3
  57. package/native/dist/utils/interleave.d.ts +1 -1
  58. package/native/dist/utils/isStaticRules.d.ts +1 -1
  59. package/native/dist/utils/isStyledComponent.d.ts +1 -1
  60. package/native/dist/utils/joinStrings.d.ts +1 -1
  61. package/native/dist/utils/mixinDeep.d.ts +1 -2
  62. package/package.json +3 -3
  63. package/test-utils/index.ts +10 -6
  64. package/native/dist/base.d.ts.map +0 -1
  65. package/native/dist/constants.d.ts.map +0 -1
  66. package/native/dist/constructors/constructWithOptions.d.ts.map +0 -1
  67. package/native/dist/constructors/createGlobalStyle.d.ts.map +0 -1
  68. package/native/dist/constructors/css.d.ts.map +0 -1
  69. package/native/dist/constructors/keyframes.d.ts.map +0 -1
  70. package/native/dist/constructors/styled.d.ts.map +0 -1
  71. package/native/dist/dist/base.d.ts +0 -18
  72. package/native/dist/dist/base.d.ts.map +0 -1
  73. package/native/dist/dist/constants.d.ts +0 -9
  74. package/native/dist/dist/constants.d.ts.map +0 -1
  75. package/native/dist/dist/constructors/constructWithOptions.d.ts +0 -20
  76. package/native/dist/dist/constructors/constructWithOptions.d.ts.map +0 -1
  77. package/native/dist/dist/constructors/createGlobalStyle.d.ts +0 -4
  78. package/native/dist/dist/constructors/createGlobalStyle.d.ts.map +0 -1
  79. package/native/dist/dist/constructors/css.d.ts +0 -5
  80. package/native/dist/dist/constructors/css.d.ts.map +0 -1
  81. package/native/dist/dist/constructors/keyframes.d.ts +0 -4
  82. package/native/dist/dist/constructors/keyframes.d.ts.map +0 -1
  83. package/native/dist/dist/constructors/styled.d.ts +0 -186
  84. package/native/dist/dist/constructors/styled.d.ts.map +0 -1
  85. package/native/dist/dist/hoc/withTheme.d.ts +0 -4
  86. package/native/dist/dist/hoc/withTheme.d.ts.map +0 -1
  87. package/native/dist/dist/hoc/withTheme.spec.d.ts +0 -2
  88. package/native/dist/dist/hoc/withTheme.spec.d.ts.map +0 -1
  89. package/native/dist/dist/hooks/useTheme.d.ts +0 -4
  90. package/native/dist/dist/hooks/useTheme.d.ts.map +0 -1
  91. package/native/dist/dist/index-standalone.d.ts +0 -3
  92. package/native/dist/dist/index-standalone.d.ts.map +0 -1
  93. package/native/dist/dist/index.d.ts +0 -4
  94. package/native/dist/dist/index.d.ts.map +0 -1
  95. package/native/dist/dist/macro/index.d.ts +0 -3
  96. package/native/dist/dist/macro/index.d.ts.map +0 -1
  97. package/native/dist/dist/macro/test/babel.config.d.ts +0 -1
  98. package/native/dist/dist/macro/test/babel.config.d.ts.map +0 -1
  99. package/native/dist/dist/models/ComponentStyle.d.ts +0 -16
  100. package/native/dist/dist/models/ComponentStyle.d.ts.map +0 -1
  101. package/native/dist/dist/models/GlobalStyle.d.ts +0 -12
  102. package/native/dist/dist/models/GlobalStyle.d.ts.map +0 -1
  103. package/native/dist/dist/models/InlineStyle.d.ts +0 -7
  104. package/native/dist/dist/models/InlineStyle.d.ts.map +0 -1
  105. package/native/dist/dist/models/Keyframes.d.ts +0 -12
  106. package/native/dist/dist/models/Keyframes.d.ts.map +0 -1
  107. package/native/dist/dist/models/ServerStyleSheet.d.ts +0 -16
  108. package/native/dist/dist/models/ServerStyleSheet.d.ts.map +0 -1
  109. package/native/dist/dist/models/StyleSheetManager.d.ts +0 -22
  110. package/native/dist/dist/models/StyleSheetManager.d.ts.map +0 -1
  111. package/native/dist/dist/models/StyledComponent.d.ts +0 -4
  112. package/native/dist/dist/models/StyledComponent.d.ts.map +0 -1
  113. package/native/dist/dist/models/StyledNativeComponent.d.ts +0 -4
  114. package/native/dist/dist/models/StyledNativeComponent.d.ts.map +0 -1
  115. package/native/dist/dist/models/ThemeProvider.d.ts +0 -18
  116. package/native/dist/dist/models/ThemeProvider.d.ts.map +0 -1
  117. package/native/dist/dist/native/index.d.ts +0 -65
  118. package/native/dist/dist/native/index.d.ts.map +0 -1
  119. package/native/dist/dist/primitives/index.d.ts +0 -23
  120. package/native/dist/dist/primitives/index.d.ts.map +0 -1
  121. package/native/dist/dist/secretInternals.d.ts +0 -6
  122. package/native/dist/dist/secretInternals.d.ts.map +0 -1
  123. package/native/dist/dist/sheet/GroupIDAllocator.d.ts +0 -5
  124. package/native/dist/dist/sheet/GroupIDAllocator.d.ts.map +0 -1
  125. package/native/dist/dist/sheet/GroupedTag.d.ts +0 -12
  126. package/native/dist/dist/sheet/GroupedTag.d.ts.map +0 -1
  127. package/native/dist/dist/sheet/Rehydration.d.ts +0 -4
  128. package/native/dist/dist/sheet/Rehydration.d.ts.map +0 -1
  129. package/native/dist/dist/sheet/Sheet.d.ts +0 -41
  130. package/native/dist/dist/sheet/Sheet.d.ts.map +0 -1
  131. package/native/dist/dist/sheet/Tag.d.ts +0 -55
  132. package/native/dist/dist/sheet/Tag.d.ts.map +0 -1
  133. package/native/dist/dist/sheet/dom.d.ts +0 -5
  134. package/native/dist/dist/sheet/dom.d.ts.map +0 -1
  135. package/native/dist/dist/sheet/index.d.ts +0 -2
  136. package/native/dist/dist/sheet/index.d.ts.map +0 -1
  137. package/native/dist/dist/sheet/types.d.ts +0 -35
  138. package/native/dist/dist/sheet/types.d.ts.map +0 -1
  139. package/native/dist/dist/test/globals.d.ts +0 -3
  140. package/native/dist/dist/test/globals.d.ts.map +0 -1
  141. package/native/dist/dist/test/utils.d.ts +0 -192
  142. package/native/dist/dist/test/utils.d.ts.map +0 -1
  143. package/native/dist/dist/types.d.ts +0 -121
  144. package/native/dist/dist/types.d.ts.map +0 -1
  145. package/native/dist/dist/utils/addUnitIfNeeded.d.ts +0 -2
  146. package/native/dist/dist/utils/addUnitIfNeeded.d.ts.map +0 -1
  147. package/native/dist/dist/utils/checkDynamicCreation.d.ts +0 -2
  148. package/native/dist/dist/utils/checkDynamicCreation.d.ts.map +0 -1
  149. package/native/dist/dist/utils/createWarnTooManyClasses.d.ts +0 -4
  150. package/native/dist/dist/utils/createWarnTooManyClasses.d.ts.map +0 -1
  151. package/native/dist/dist/utils/determineTheme.d.ts +0 -3
  152. package/native/dist/dist/utils/determineTheme.d.ts.map +0 -1
  153. package/native/dist/dist/utils/domElements.d.ts +0 -3
  154. package/native/dist/dist/utils/domElements.d.ts.map +0 -1
  155. package/native/dist/dist/utils/empties.d.ts +0 -4
  156. package/native/dist/dist/utils/empties.d.ts.map +0 -1
  157. package/native/dist/dist/utils/error.d.ts +0 -6
  158. package/native/dist/dist/utils/error.d.ts.map +0 -1
  159. package/native/dist/dist/utils/errors.d.ts +0 -21
  160. package/native/dist/dist/utils/errors.d.ts.map +0 -1
  161. package/native/dist/dist/utils/escape.d.ts +0 -6
  162. package/native/dist/dist/utils/escape.d.ts.map +0 -1
  163. package/native/dist/dist/utils/flatten.d.ts +0 -5
  164. package/native/dist/dist/utils/flatten.d.ts.map +0 -1
  165. package/native/dist/dist/utils/generateAlphabeticName.d.ts +0 -2
  166. package/native/dist/dist/utils/generateAlphabeticName.d.ts.map +0 -1
  167. package/native/dist/dist/utils/generateComponentId.d.ts +0 -2
  168. package/native/dist/dist/utils/generateComponentId.d.ts.map +0 -1
  169. package/native/dist/dist/utils/generateDisplayName.d.ts +0 -3
  170. package/native/dist/dist/utils/generateDisplayName.d.ts.map +0 -1
  171. package/native/dist/dist/utils/getComponentName.d.ts +0 -3
  172. package/native/dist/dist/utils/getComponentName.d.ts.map +0 -1
  173. package/native/dist/dist/utils/hash.d.ts +0 -4
  174. package/native/dist/dist/utils/hash.d.ts.map +0 -1
  175. package/native/dist/dist/utils/hoist.d.ts +0 -52
  176. package/native/dist/dist/utils/hoist.d.ts.map +0 -1
  177. package/native/dist/dist/utils/hyphenateStyleName.d.ts +0 -15
  178. package/native/dist/dist/utils/hyphenateStyleName.d.ts.map +0 -1
  179. package/native/dist/dist/utils/interleave.d.ts +0 -3
  180. package/native/dist/dist/utils/interleave.d.ts.map +0 -1
  181. package/native/dist/dist/utils/isFunction.d.ts +0 -2
  182. package/native/dist/dist/utils/isFunction.d.ts.map +0 -1
  183. package/native/dist/dist/utils/isPlainObject.d.ts +0 -2
  184. package/native/dist/dist/utils/isPlainObject.d.ts.map +0 -1
  185. package/native/dist/dist/utils/isStatelessFunction.d.ts +0 -2
  186. package/native/dist/dist/utils/isStatelessFunction.d.ts.map +0 -1
  187. package/native/dist/dist/utils/isStaticRules.d.ts +0 -3
  188. package/native/dist/dist/utils/isStaticRules.d.ts.map +0 -1
  189. package/native/dist/dist/utils/isStyledComponent.d.ts +0 -3
  190. package/native/dist/dist/utils/isStyledComponent.d.ts.map +0 -1
  191. package/native/dist/dist/utils/isTag.d.ts +0 -3
  192. package/native/dist/dist/utils/isTag.d.ts.map +0 -1
  193. package/native/dist/dist/utils/joinStrings.d.ts +0 -5
  194. package/native/dist/dist/utils/joinStrings.d.ts.map +0 -1
  195. package/native/dist/dist/utils/mixinDeep.d.ts +0 -8
  196. package/native/dist/dist/utils/mixinDeep.d.ts.map +0 -1
  197. package/native/dist/dist/utils/nonce.d.ts +0 -2
  198. package/native/dist/dist/utils/nonce.d.ts.map +0 -1
  199. package/native/dist/dist/utils/stylis.d.ts +0 -10
  200. package/native/dist/dist/utils/stylis.d.ts.map +0 -1
  201. package/native/dist/hoc/withTheme.d.ts.map +0 -1
  202. package/native/dist/hoc/withTheme.spec.d.ts.map +0 -1
  203. package/native/dist/hooks/useTheme.d.ts.map +0 -1
  204. package/native/dist/index-standalone.d.ts.map +0 -1
  205. package/native/dist/index.d.ts.map +0 -1
  206. package/native/dist/macro/index.d.ts.map +0 -1
  207. package/native/dist/macro/test/babel.config.d.ts +0 -1
  208. package/native/dist/macro/test/babel.config.d.ts.map +0 -1
  209. package/native/dist/models/ComponentStyle.d.ts.map +0 -1
  210. package/native/dist/models/GlobalStyle.d.ts.map +0 -1
  211. package/native/dist/models/InlineStyle.d.ts.map +0 -1
  212. package/native/dist/models/Keyframes.d.ts.map +0 -1
  213. package/native/dist/models/ServerStyleSheet.d.ts.map +0 -1
  214. package/native/dist/models/StyleSheetManager.d.ts.map +0 -1
  215. package/native/dist/models/StyledComponent.d.ts.map +0 -1
  216. package/native/dist/models/StyledNativeComponent.d.ts.map +0 -1
  217. package/native/dist/models/ThemeProvider.d.ts.map +0 -1
  218. package/native/dist/native/index.d.ts.map +0 -1
  219. package/native/dist/primitives/index.d.ts +0 -23
  220. package/native/dist/primitives/index.d.ts.map +0 -1
  221. package/native/dist/secretInternals.d.ts.map +0 -1
  222. package/native/dist/sheet/GroupIDAllocator.d.ts.map +0 -1
  223. package/native/dist/sheet/GroupedTag.d.ts.map +0 -1
  224. package/native/dist/sheet/Rehydration.d.ts.map +0 -1
  225. package/native/dist/sheet/Sheet.d.ts.map +0 -1
  226. package/native/dist/sheet/Tag.d.ts.map +0 -1
  227. package/native/dist/sheet/dom.d.ts.map +0 -1
  228. package/native/dist/sheet/index.d.ts.map +0 -1
  229. package/native/dist/sheet/types.d.ts.map +0 -1
  230. package/native/dist/test/globals.d.ts.map +0 -1
  231. package/native/dist/test/utils.d.ts.map +0 -1
  232. package/native/dist/types.d.ts.map +0 -1
  233. package/native/dist/utils/addUnitIfNeeded.d.ts.map +0 -1
  234. package/native/dist/utils/checkDynamicCreation.d.ts.map +0 -1
  235. package/native/dist/utils/createWarnTooManyClasses.d.ts.map +0 -1
  236. package/native/dist/utils/determineTheme.d.ts.map +0 -1
  237. package/native/dist/utils/domElements.d.ts.map +0 -1
  238. package/native/dist/utils/empties.d.ts.map +0 -1
  239. package/native/dist/utils/error.d.ts.map +0 -1
  240. package/native/dist/utils/errors.d.ts.map +0 -1
  241. package/native/dist/utils/escape.d.ts.map +0 -1
  242. package/native/dist/utils/flatten.d.ts.map +0 -1
  243. package/native/dist/utils/generateAlphabeticName.d.ts.map +0 -1
  244. package/native/dist/utils/generateComponentId.d.ts.map +0 -1
  245. package/native/dist/utils/generateDisplayName.d.ts.map +0 -1
  246. package/native/dist/utils/getComponentName.d.ts.map +0 -1
  247. package/native/dist/utils/hash.d.ts.map +0 -1
  248. package/native/dist/utils/hoist.d.ts.map +0 -1
  249. package/native/dist/utils/hyphenateStyleName.d.ts.map +0 -1
  250. package/native/dist/utils/interleave.d.ts.map +0 -1
  251. package/native/dist/utils/isFunction.d.ts.map +0 -1
  252. package/native/dist/utils/isPlainObject.d.ts.map +0 -1
  253. package/native/dist/utils/isStatelessFunction.d.ts.map +0 -1
  254. package/native/dist/utils/isStaticRules.d.ts.map +0 -1
  255. package/native/dist/utils/isStyledComponent.d.ts.map +0 -1
  256. package/native/dist/utils/isTag.d.ts.map +0 -1
  257. package/native/dist/utils/joinStrings.d.ts.map +0 -1
  258. package/native/dist/utils/mixinDeep.d.ts.map +0 -1
  259. package/native/dist/utils/nonce.d.ts.map +0 -1
  260. package/native/dist/utils/stylis.d.ts.map +0 -1
@@ -6,35 +6,31 @@ import useTheme from '../hooks/useTheme';
6
6
  import ThemeProvider, { ThemeConsumer, ThemeContext } from '../models/ThemeProvider';
7
7
  import { NativeTarget } from '../types';
8
8
  import isStyledComponent from '../utils/isStyledComponent';
9
- declare const styled: (<Target extends NativeTarget>(tag: Target) => {
10
- <Props = unknown, Statics = unknown>(initialStyles: import("../types").Styles<(Target extends import("../types").KnownTarget ? React.ComponentProps<Target> : unknown) & Props>, ...interpolations: import("../types").Interpolation<import("../types").ExecutionContext & (Target extends import("../types").KnownTarget ? React.ComponentProps<Target> : unknown) & Props>[]): import("../types").IStyledComponent<"native", Target, (Target extends import("../types").KnownTarget ? React.ComponentProps<Target> : unknown) & Props> & Statics;
11
- attrs(attrs: import("../types").Attrs<import("../types").ExtensibleObject & (Target extends import("../types").KnownTarget ? React.ComponentProps<Target> : unknown)>): any;
12
- withConfig(config: import("../types").StyledOptions<"native", Target extends import("../types").KnownTarget ? React.ComponentProps<Target> : unknown>): any;
13
- }) & {
14
- ActivityIndicator: Styled<"native", typeof import("react-native").ActivityIndicator, import("react-native").ActivityIndicatorProps, unknown, unknown>;
15
- Button: Styled<"native", typeof import("react-native").Button, import("react-native").ButtonProps, unknown, unknown>;
16
- DatePickerIOS: Styled<"native", typeof import("react-native").DatePickerIOS, import("react-native").DatePickerIOSProps, unknown, unknown>;
17
- DrawerLayoutAndroid: Styled<"native", typeof import("react-native").DrawerLayoutAndroid, import("react-native").DrawerLayoutAndroidProps, unknown, unknown>;
18
- FlatList: Styled<"native", typeof import("react-native").FlatList, import("react-native").FlatListProps<unknown>, unknown, unknown>;
19
- Image: Styled<"native", typeof import("react-native").Image, import("react-native").ImageProps, unknown, unknown>;
20
- ImageBackground: Styled<"native", typeof import("react-native").ImageBackground, import("react-native").ImageBackgroundProps, unknown, unknown>;
21
- KeyboardAvoidingView: Styled<"native", typeof import("react-native").KeyboardAvoidingView, import("react-native").KeyboardAvoidingViewProps, unknown, unknown>;
22
- Modal: Styled<"native", typeof import("react-native").Modal, import("react-native").ModalProps, unknown, unknown>;
23
- Pressable: Styled<"native", 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, unknown>;
24
- ProgressBarAndroid: Styled<"native", typeof import("react-native").ProgressBarAndroid, import("react-native").ProgressBarAndroidProps, unknown, unknown>;
25
- ProgressViewIOS: Styled<"native", typeof import("react-native").ProgressViewIOS, import("react-native").ProgressViewIOSProps, unknown, unknown>;
26
- RefreshControl: Styled<"native", typeof import("react-native").RefreshControl, import("react-native").RefreshControlProps, unknown, unknown>;
27
- SafeAreaView: Styled<"native", typeof import("react-native").SafeAreaView, import("react-native").ViewProps, unknown, unknown>;
28
- ScrollView: Styled<"native", typeof import("react-native").ScrollView, import("react-native").ScrollViewProps, unknown, unknown>;
29
- SectionList: Styled<"native", typeof import("react-native").SectionList, import("react-native").SectionListProps<unknown, unknown>, unknown, unknown>;
30
- Slider: Styled<"native", typeof import("react-native").Slider, import("react-native").SliderProps, unknown, unknown>;
31
- Switch: Styled<"native", typeof import("react-native").Switch, import("react-native").SwitchProps, unknown, unknown>;
32
- Text: Styled<"native", typeof import("react-native").Text, import("react-native").TextProps, unknown, unknown>;
33
- TextInput: Styled<"native", typeof import("react-native").TextInput, import("react-native").TextInputProps, unknown, unknown>;
34
- TouchableHighlight: Styled<"native", typeof import("react-native").TouchableHighlight, import("react-native").TouchableHighlightProps, unknown, unknown>;
35
- TouchableOpacity: Styled<"native", typeof import("react-native").TouchableOpacity, import("react-native").TouchableOpacityProps, unknown, unknown>;
36
- View: Styled<"native", typeof import("react-native").View, import("react-native").ViewProps, unknown, unknown>;
37
- VirtualizedList: Styled<"native", typeof import("react-native").VirtualizedList, import("react-native").VirtualizedListProps<unknown>, unknown, unknown>;
9
+ declare const styled: (<Target extends NativeTarget>(tag: Target) => Styled<"native", Target, Target extends import("../types").KnownTarget ? React.HTMLAttributes<Target> & React.ComponentPropsWithRef<Target> : object, object>) & {
10
+ ActivityIndicator: Styled<"native", typeof import("react-native").ActivityIndicator, React.HTMLAttributes<typeof import("react-native").ActivityIndicator> & import("react-native").ActivityIndicatorProps & React.RefAttributes<import("react-native").ActivityIndicator>, object>;
11
+ Button: Styled<"native", typeof import("react-native").Button, React.HTMLAttributes<typeof import("react-native").Button> & import("react-native").ButtonProps & React.RefAttributes<import("react-native").Button>, object>;
12
+ DatePickerIOS: Styled<"native", typeof import("react-native").DatePickerIOS, React.HTMLAttributes<typeof import("react-native").DatePickerIOS> & import("react-native").DatePickerIOSProps & React.RefAttributes<import("react-native").DatePickerIOS>, object>;
13
+ DrawerLayoutAndroid: Styled<"native", typeof import("react-native").DrawerLayoutAndroid, React.HTMLAttributes<typeof import("react-native").DrawerLayoutAndroid> & import("react-native").DrawerLayoutAndroidProps & React.RefAttributes<import("react-native").DrawerLayoutAndroid>, object>;
14
+ FlatList: Styled<"native", typeof import("react-native").FlatList, React.HTMLAttributes<typeof import("react-native").FlatList> & import("react-native").FlatListProps<unknown> & React.RefAttributes<import("react-native").FlatList<unknown>>, object>;
15
+ Image: Styled<"native", typeof import("react-native").Image, React.HTMLAttributes<typeof import("react-native").Image> & import("react-native").ImageProps & React.RefAttributes<import("react-native").Image>, object>;
16
+ ImageBackground: Styled<"native", typeof import("react-native").ImageBackground, React.HTMLAttributes<typeof import("react-native").ImageBackground> & import("react-native").ImageBackgroundProps & React.RefAttributes<import("react-native").ImageBackground>, object>;
17
+ KeyboardAvoidingView: Styled<"native", typeof import("react-native").KeyboardAvoidingView, React.HTMLAttributes<typeof import("react-native").KeyboardAvoidingView> & import("react-native").KeyboardAvoidingViewProps & React.RefAttributes<import("react-native").KeyboardAvoidingView>, object>;
18
+ Modal: Styled<"native", typeof import("react-native").Modal, React.HTMLAttributes<typeof import("react-native").Modal> & import("react-native").ModalBaseProps & import("react-native").ModalPropsIOS & import("react-native").ModalPropsAndroid & import("react-native").ViewProps & React.RefAttributes<import("react-native").Modal>, object>;
19
+ Pressable: Styled<"native", import("react").ForwardRefExoticComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>, React.HTMLAttributes<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>, object>;
20
+ ProgressBarAndroid: Styled<"native", typeof import("react-native").ProgressBarAndroid, React.HTMLAttributes<typeof import("react-native").ProgressBarAndroid> & import("react-native").ProgressBarAndroidProps & React.RefAttributes<import("react-native").ProgressBarAndroid>, object>;
21
+ ProgressViewIOS: Styled<"native", typeof import("react-native").ProgressViewIOS, React.HTMLAttributes<typeof import("react-native").ProgressViewIOS> & import("react-native").ProgressViewIOSProps & React.RefAttributes<import("react-native").ProgressViewIOS>, object>;
22
+ RefreshControl: Styled<"native", typeof import("react-native").RefreshControl, React.HTMLAttributes<typeof import("react-native").RefreshControl> & import("react-native").RefreshControlProps & React.RefAttributes<import("react-native").RefreshControl>, object>;
23
+ SafeAreaView: Styled<"native", typeof import("react-native").SafeAreaView, React.HTMLAttributes<typeof import("react-native").SafeAreaView> & import("react-native").ViewProps & React.RefAttributes<import("react-native").SafeAreaView>, object>;
24
+ ScrollView: Styled<"native", typeof import("react-native").ScrollView, React.HTMLAttributes<typeof import("react-native").ScrollView> & import("react-native").ScrollViewProps & React.RefAttributes<import("react-native").ScrollView>, object>;
25
+ SectionList: Styled<"native", typeof import("react-native").SectionList, React.HTMLAttributes<typeof import("react-native").SectionList> & import("react-native").SectionListProps<unknown, unknown> & React.RefAttributes<import("react-native").SectionList<unknown, unknown>>, object>;
26
+ Slider: Styled<"native", typeof import("react-native").Slider, React.HTMLAttributes<typeof import("react-native").Slider> & import("react-native").SliderProps & React.RefAttributes<import("react-native").Slider>, object>;
27
+ Switch: Styled<"native", typeof import("react-native").Switch, React.HTMLAttributes<typeof import("react-native").Switch> & import("react-native").SwitchProps & React.RefAttributes<import("react-native").Switch>, object>;
28
+ Text: Styled<"native", typeof import("react-native").Text, React.HTMLAttributes<typeof import("react-native").Text> & import("react-native").TextProps & React.RefAttributes<import("react-native").Text>, object>;
29
+ TextInput: Styled<"native", typeof import("react-native").TextInput, React.HTMLAttributes<typeof import("react-native").TextInput> & import("react-native").TextInputProps & React.RefAttributes<import("react-native").TextInput>, object>;
30
+ TouchableHighlight: Styled<"native", typeof import("react-native").TouchableHighlight, React.HTMLAttributes<typeof import("react-native").TouchableHighlight> & import("react-native").TouchableHighlightProps & React.RefAttributes<import("react-native").TouchableHighlight>, object>;
31
+ TouchableOpacity: Styled<"native", typeof import("react-native").TouchableOpacity, React.HTMLAttributes<typeof import("react-native").TouchableOpacity> & import("react-native").TouchableOpacityProps & React.RefAttributes<import("react-native").TouchableOpacity>, object>;
32
+ View: Styled<"native", typeof import("react-native").View, React.HTMLAttributes<typeof import("react-native").View> & import("react-native").ViewProps & React.RefAttributes<import("react-native").View>, object>;
33
+ VirtualizedList: Styled<"native", typeof import("react-native").VirtualizedList, React.HTMLAttributes<typeof import("react-native").VirtualizedList> & import("react-native").VirtualizedListProps<unknown> & React.RefAttributes<import("react-native").VirtualizedList<unknown>>, object>;
38
34
  };
39
35
  export { IStyledComponent, IStyledComponentFactory, IStyledStatics, NativeTarget, StyledOptions, } from '../types';
40
36
  export { css, isStyledComponent, ThemeProvider, ThemeConsumer, ThemeContext, withTheme, useTheme };
@@ -79,7 +79,7 @@ var SC_ATTR = (typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR
79
79
  'data-styled';
80
80
  var SC_ATTR_ACTIVE = 'active';
81
81
  var SC_ATTR_VERSION = 'data-styled-version';
82
- var SC_VERSION = "6.0.0-beta.2";
82
+ var SC_VERSION = "6.0.0-beta.4";
83
83
  var SPLITTER = '/*!sc*/\n';
84
84
  var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
85
85
  var DISABLE_SPEEDY = Boolean(typeof SC_DISABLE_SPEEDY === 'boolean'
@@ -668,8 +668,8 @@ function getComponentName(target) {
668
668
  * inlined version of
669
669
  * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js
670
670
  */
671
- var uppercaseCheck = /([A-Z])/;
672
- var uppercasePattern = /([A-Z])/g;
671
+ var uppercaseCheck = /[A-Z]/;
672
+ var uppercasePattern = /[A-Z]/g;
673
673
  var msPattern = /^ms-/;
674
674
  var prefixAndLowerCase = function (char) { return "-".concat(char.toLowerCase()); };
675
675
  /**
@@ -686,7 +686,7 @@ var prefixAndLowerCase = function (char) { return "-".concat(char.toLowerCase())
686
686
  * is converted to `-ms-`.
687
687
  */
688
688
  function hyphenateStyleName(string) {
689
- return uppercaseCheck.test(string)
689
+ return uppercaseCheck.test(string) && !string.startsWith('--')
690
690
  ? string.replace(uppercasePattern, prefixAndLowerCase).replace(msPattern, '-ms-')
691
691
  : string;
692
692
  }
@@ -742,21 +742,18 @@ function flatten(chunk, executionContext, styleSheet, stylisInstance) {
742
742
  var ruleSet = [];
743
743
  for (var i = 0, len = chunk.length, result = void 0; i < len; i += 1) {
744
744
  result = flatten(chunk[i], executionContext, styleSheet, stylisInstance);
745
- if (result === '')
745
+ if (result.length === 0)
746
746
  continue;
747
- else if (Array.isArray(result))
748
- ruleSet.push.apply(ruleSet, result);
749
- else
750
- ruleSet.push(result);
747
+ ruleSet.push.apply(ruleSet, result);
751
748
  }
752
749
  return ruleSet;
753
750
  }
754
751
  if (isFalsish(chunk)) {
755
- return '';
752
+ return [];
756
753
  }
757
754
  /* Handle other components */
758
755
  if (isStyledComponent(chunk)) {
759
- return ".".concat(chunk.styledComponentId);
756
+ return [".".concat(chunk.styledComponentId)];
760
757
  }
761
758
  /* Either execute or defer the function */
762
759
  if (isFunction(chunk)) {
@@ -773,19 +770,21 @@ function flatten(chunk, executionContext, styleSheet, stylisInstance) {
773
770
  }
774
771
  return flatten(result, executionContext, styleSheet, stylisInstance);
775
772
  }
776
- else
777
- return chunk;
773
+ else {
774
+ return [chunk];
775
+ }
778
776
  }
779
777
  if (chunk instanceof Keyframes) {
780
778
  if (styleSheet) {
781
779
  chunk.inject(styleSheet, stylisInstance);
782
- return chunk.getName(stylisInstance);
780
+ return [chunk.getName(stylisInstance)];
781
+ }
782
+ else {
783
+ return [chunk];
783
784
  }
784
- else
785
- return chunk;
786
785
  }
787
786
  /* Handle objects */
788
- return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString();
787
+ return isPlainObject(chunk) ? objToCssArray(chunk) : [chunk.toString()];
789
788
  }
790
789
 
791
790
  function interleave(strings, interpolations) {
@@ -801,11 +800,7 @@ function interleave(strings, interpolations) {
801
800
  * expand an array of styles.
802
801
  */
803
802
  var addTag = function (arg) {
804
- if (Array.isArray(arg)) {
805
- // eslint-disable-next-line no-param-reassign
806
- arg.isCss = true;
807
- }
808
- return arg;
803
+ return Object.assign(arg, { isCss: true });
809
804
  };
810
805
  function css(styles) {
811
806
  var interpolations = [];
@@ -822,7 +817,7 @@ function css(styles) {
822
817
  if (interpolations.length === 0 &&
823
818
  styleStringArray.length === 1 &&
824
819
  typeof styleStringArray[0] === 'string') {
825
- return styleStringArray;
820
+ return flatten(styleStringArray);
826
821
  }
827
822
  return addTag(flatten(interleave(styleStringArray, interpolations)));
828
823
  }
@@ -1109,7 +1104,6 @@ function mixinRecursively(target, source, forceMerge) {
1109
1104
  * Source objects applied left to right. Mutates & returns target. Similar to lodash merge.
1110
1105
  */
1111
1106
  function mixinDeep(target) {
1112
- if (target === void 0) { target = {}; }
1113
1107
  var sources = [];
1114
1108
  for (var _i = 1; _i < arguments.length; _i++) {
1115
1109
  sources[_i - 1] = arguments[_i];
@@ -1129,7 +1123,6 @@ function useResolvedAttrs(theme, props, attrs) {
1129
1123
  var context = tslib.__assign(tslib.__assign({}, props), { theme: theme });
1130
1124
  var resolvedAttrs = {};
1131
1125
  attrs.forEach(function (attrDef) {
1132
- // @ts-expect-error narrowing isn't working properly for some reason
1133
1126
  var resolvedAttrDef = typeof attrDef === 'function' ? attrDef(context) : attrDef;
1134
1127
  var key;
1135
1128
  /* eslint-disable guard-for-in */
@@ -1150,7 +1143,7 @@ function useStyledComponentImpl(forwardedComponent, props, forwardedRef) {
1150
1143
  var _a = useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs), context = _a[0], attrs = _a[1];
1151
1144
  var generatedStyles = inlineStyle.generateStyleObject(context);
1152
1145
  var refToForward = forwardedRef;
1153
- var elementToBeCreated = attrs.$as || props.$as || attrs.as || props.as || target;
1146
+ var elementToBeCreated = attrs.as || props.as || target;
1154
1147
  var computedProps = attrs !== props ? tslib.__assign(tslib.__assign({}, props), attrs) : props;
1155
1148
  var propsForElement = {};
1156
1149
  // eslint-disable-next-line guard-for-in
@@ -1165,17 +1158,11 @@ function useStyledComponentImpl(forwardedComponent, props, forwardedRef) {
1165
1158
  }
1166
1159
  }
1167
1160
  propsForElement.style = React.useMemo(function () {
1168
- if (typeof props.style === 'function') {
1169
- return function (state) {
1170
- return [generatedStyles].concat(props.style(state));
1171
- };
1172
- }
1173
- else if (props.style == null) {
1174
- return generatedStyles;
1175
- }
1176
- else {
1177
- return [generatedStyles].concat(props.style || []);
1178
- }
1161
+ return typeof props.style === 'function'
1162
+ ? function (state) { return [generatedStyles].concat(props.style(state)); }
1163
+ : props.style
1164
+ ? [generatedStyles].concat(props.style)
1165
+ : generatedStyles;
1179
1166
  }, [props.style, generatedStyles]);
1180
1167
  propsForElement.ref = refToForward;
1181
1168
  return React.createElement(elementToBeCreated, propsForElement);