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.
- package/LICENSE +21 -0
- package/README.md +187 -0
- package/dist/base.d.ts +17 -0
- package/dist/constants.d.ts +8 -0
- package/dist/constructors/constructWithOptions.d.ts +19 -0
- package/dist/constructors/createGlobalStyle.d.ts +3 -0
- package/dist/constructors/css.d.ts +4 -0
- package/dist/constructors/keyframes.d.ts +3 -0
- package/dist/constructors/styled.d.ts +185 -0
- package/dist/hoc/withTheme.d.ts +3 -0
- package/dist/hoc/withTheme.spec.d.ts +1 -0
- package/dist/hooks/useTheme.d.ts +3 -0
- package/dist/index-standalone.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/macro/index.d.ts +2 -0
- package/dist/models/ComponentStyle.d.ts +15 -0
- package/dist/models/GlobalStyle.d.ts +11 -0
- package/dist/models/InlineStyle.d.ts +6 -0
- package/dist/models/Keyframes.d.ts +11 -0
- package/dist/models/ServerStyleSheet.d.ts +15 -0
- package/dist/models/StyleSheetManager.d.ts +21 -0
- package/dist/models/StyledComponent.d.ts +3 -0
- package/dist/models/StyledNativeComponent.d.ts +3 -0
- package/dist/models/ThemeProvider.d.ts +17 -0
- package/dist/native/index.d.ts +64 -0
- package/dist/primitives/index.d.ts +22 -0
- package/dist/secretInternals.d.ts +5 -0
- package/dist/sheet/GroupIDAllocator.d.ts +4 -0
- package/dist/sheet/GroupedTag.d.ts +11 -0
- package/dist/sheet/Rehydration.d.ts +3 -0
- package/dist/sheet/Sheet.d.ts +40 -0
- package/dist/sheet/Tag.d.ts +54 -0
- package/dist/sheet/dom.d.ts +4 -0
- package/dist/sheet/index.d.ts +1 -0
- package/dist/sheet/types.d.ts +34 -0
- package/dist/styled-components-macro.cjs.js +1 -1
- package/dist/styled-components-macro.cjs.js.map +1 -1
- package/dist/styled-components-macro.esm.js +1 -1
- package/dist/styled-components-macro.esm.js.map +1 -1
- package/dist/styled-components.browser.cjs.js +1 -1
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +1 -1
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +1 -1
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +1 -1
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +1 -1
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +1 -1
- package/dist/styled-components.min.js.map +1 -1
- package/dist/test/globals.d.ts +2 -0
- package/dist/test/utils.d.ts +191 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +120 -0
- package/dist/utils/addUnitIfNeeded.d.ts +1 -0
- package/dist/utils/checkDynamicCreation.d.ts +1 -0
- package/dist/utils/createWarnTooManyClasses.d.ts +3 -0
- package/dist/utils/determineTheme.d.ts +2 -0
- package/dist/utils/domElements.d.ts +2 -0
- package/dist/utils/empties.d.ts +3 -0
- package/dist/utils/error.d.ts +5 -0
- package/dist/utils/errors.d.ts +20 -0
- package/dist/utils/escape.d.ts +5 -0
- package/dist/utils/flatten.d.ts +4 -0
- package/dist/utils/generateAlphabeticName.d.ts +1 -0
- package/dist/utils/generateComponentId.d.ts +1 -0
- package/dist/utils/generateDisplayName.d.ts +2 -0
- package/dist/utils/getComponentName.d.ts +2 -0
- package/dist/utils/hash.d.ts +3 -0
- package/dist/utils/hoist.d.ts +51 -0
- package/dist/utils/hyphenateStyleName.d.ts +14 -0
- package/dist/utils/interleave.d.ts +2 -0
- package/dist/utils/isFunction.d.ts +1 -0
- package/dist/utils/isPlainObject.d.ts +1 -0
- package/dist/utils/isStatelessFunction.d.ts +1 -0
- package/dist/utils/isStaticRules.d.ts +2 -0
- package/dist/utils/isStyledComponent.d.ts +2 -0
- package/dist/utils/isTag.d.ts +2 -0
- package/dist/utils/joinStrings.d.ts +4 -0
- package/dist/utils/mixinDeep.d.ts +7 -0
- package/dist/utils/nonce.d.ts +1 -0
- package/dist/utils/stylis.d.ts +9 -0
- package/native/dist/base.d.ts +17 -0
- package/native/dist/base.d.ts.map +1 -0
- package/native/dist/constants.d.ts +8 -0
- package/native/dist/constants.d.ts.map +1 -0
- package/native/dist/constructors/constructWithOptions.d.ts +19 -0
- package/native/dist/constructors/constructWithOptions.d.ts.map +1 -0
- package/native/dist/constructors/createGlobalStyle.d.ts +3 -0
- package/native/dist/constructors/createGlobalStyle.d.ts.map +1 -0
- package/native/dist/constructors/css.d.ts +4 -0
- package/native/dist/constructors/css.d.ts.map +1 -0
- package/native/dist/constructors/keyframes.d.ts +3 -0
- package/native/dist/constructors/keyframes.d.ts.map +1 -0
- package/native/dist/constructors/styled.d.ts +185 -0
- package/native/dist/constructors/styled.d.ts.map +1 -0
- package/native/dist/dist/base.d.ts +18 -0
- package/native/dist/dist/base.d.ts.map +1 -0
- package/native/dist/dist/constants.d.ts +9 -0
- package/native/dist/dist/constants.d.ts.map +1 -0
- package/native/dist/dist/constructors/constructWithOptions.d.ts +20 -0
- package/native/dist/dist/constructors/constructWithOptions.d.ts.map +1 -0
- package/native/dist/dist/constructors/createGlobalStyle.d.ts +4 -0
- package/native/dist/dist/constructors/createGlobalStyle.d.ts.map +1 -0
- package/native/dist/dist/constructors/css.d.ts +5 -0
- package/native/dist/dist/constructors/css.d.ts.map +1 -0
- package/native/dist/dist/constructors/keyframes.d.ts +4 -0
- package/native/dist/dist/constructors/keyframes.d.ts.map +1 -0
- package/native/dist/dist/constructors/styled.d.ts +186 -0
- package/native/dist/dist/constructors/styled.d.ts.map +1 -0
- package/native/dist/dist/hoc/withTheme.d.ts +4 -0
- package/native/dist/dist/hoc/withTheme.d.ts.map +1 -0
- package/native/dist/dist/hoc/withTheme.spec.d.ts +2 -0
- package/native/dist/dist/hoc/withTheme.spec.d.ts.map +1 -0
- package/native/dist/dist/hooks/useTheme.d.ts +4 -0
- package/native/dist/dist/hooks/useTheme.d.ts.map +1 -0
- package/native/dist/dist/index-standalone.d.ts +3 -0
- package/native/dist/dist/index-standalone.d.ts.map +1 -0
- package/native/dist/dist/index.d.ts +4 -0
- package/native/dist/dist/index.d.ts.map +1 -0
- package/native/dist/dist/macro/index.d.ts +3 -0
- package/native/dist/dist/macro/index.d.ts.map +1 -0
- package/native/dist/dist/macro/test/babel.config.d.ts +1 -0
- package/native/dist/dist/macro/test/babel.config.d.ts.map +1 -0
- package/native/dist/dist/models/ComponentStyle.d.ts +16 -0
- package/native/dist/dist/models/ComponentStyle.d.ts.map +1 -0
- package/native/dist/dist/models/GlobalStyle.d.ts +12 -0
- package/native/dist/dist/models/GlobalStyle.d.ts.map +1 -0
- package/native/dist/dist/models/InlineStyle.d.ts +7 -0
- package/native/dist/dist/models/InlineStyle.d.ts.map +1 -0
- package/native/dist/dist/models/Keyframes.d.ts +12 -0
- package/native/dist/dist/models/Keyframes.d.ts.map +1 -0
- package/native/dist/dist/models/ServerStyleSheet.d.ts +16 -0
- package/native/dist/dist/models/ServerStyleSheet.d.ts.map +1 -0
- package/native/dist/dist/models/StyleSheetManager.d.ts +22 -0
- package/native/dist/dist/models/StyleSheetManager.d.ts.map +1 -0
- package/native/dist/dist/models/StyledComponent.d.ts +4 -0
- package/native/dist/dist/models/StyledComponent.d.ts.map +1 -0
- package/native/dist/dist/models/StyledNativeComponent.d.ts +4 -0
- package/native/dist/dist/models/StyledNativeComponent.d.ts.map +1 -0
- package/native/dist/dist/models/ThemeProvider.d.ts +18 -0
- package/native/dist/dist/models/ThemeProvider.d.ts.map +1 -0
- package/native/dist/dist/native/index.d.ts +65 -0
- package/native/dist/dist/native/index.d.ts.map +1 -0
- package/native/dist/dist/primitives/index.d.ts +23 -0
- package/native/dist/dist/primitives/index.d.ts.map +1 -0
- package/native/dist/dist/secretInternals.d.ts +6 -0
- package/native/dist/dist/secretInternals.d.ts.map +1 -0
- package/native/dist/dist/sheet/GroupIDAllocator.d.ts +5 -0
- package/native/dist/dist/sheet/GroupIDAllocator.d.ts.map +1 -0
- package/native/dist/dist/sheet/GroupedTag.d.ts +12 -0
- package/native/dist/dist/sheet/GroupedTag.d.ts.map +1 -0
- package/native/dist/dist/sheet/Rehydration.d.ts +4 -0
- package/native/dist/dist/sheet/Rehydration.d.ts.map +1 -0
- package/native/dist/dist/sheet/Sheet.d.ts +41 -0
- package/native/dist/dist/sheet/Sheet.d.ts.map +1 -0
- package/native/dist/dist/sheet/Tag.d.ts +55 -0
- package/native/dist/dist/sheet/Tag.d.ts.map +1 -0
- package/native/dist/dist/sheet/dom.d.ts +5 -0
- package/native/dist/dist/sheet/dom.d.ts.map +1 -0
- package/native/dist/dist/sheet/index.d.ts +2 -0
- package/native/dist/dist/sheet/index.d.ts.map +1 -0
- package/native/dist/dist/sheet/types.d.ts +35 -0
- package/native/dist/dist/sheet/types.d.ts.map +1 -0
- package/native/dist/dist/test/globals.d.ts +3 -0
- package/native/dist/dist/test/globals.d.ts.map +1 -0
- package/native/dist/dist/test/utils.d.ts +192 -0
- package/native/dist/dist/test/utils.d.ts.map +1 -0
- package/native/dist/dist/types.d.ts +121 -0
- package/native/dist/dist/types.d.ts.map +1 -0
- package/native/dist/dist/utils/addUnitIfNeeded.d.ts +2 -0
- package/native/dist/dist/utils/addUnitIfNeeded.d.ts.map +1 -0
- package/native/dist/dist/utils/checkDynamicCreation.d.ts +2 -0
- package/native/dist/dist/utils/checkDynamicCreation.d.ts.map +1 -0
- package/native/dist/dist/utils/createWarnTooManyClasses.d.ts +4 -0
- package/native/dist/dist/utils/createWarnTooManyClasses.d.ts.map +1 -0
- package/native/dist/dist/utils/determineTheme.d.ts +3 -0
- package/native/dist/dist/utils/determineTheme.d.ts.map +1 -0
- package/native/dist/dist/utils/domElements.d.ts +3 -0
- package/native/dist/dist/utils/domElements.d.ts.map +1 -0
- package/native/dist/dist/utils/empties.d.ts +4 -0
- package/native/dist/dist/utils/empties.d.ts.map +1 -0
- package/native/dist/dist/utils/error.d.ts +6 -0
- package/native/dist/dist/utils/error.d.ts.map +1 -0
- package/native/dist/dist/utils/errors.d.ts +21 -0
- package/native/dist/dist/utils/errors.d.ts.map +1 -0
- package/native/dist/dist/utils/escape.d.ts +6 -0
- package/native/dist/dist/utils/escape.d.ts.map +1 -0
- package/native/dist/dist/utils/flatten.d.ts +5 -0
- package/native/dist/dist/utils/flatten.d.ts.map +1 -0
- package/native/dist/dist/utils/generateAlphabeticName.d.ts +2 -0
- package/native/dist/dist/utils/generateAlphabeticName.d.ts.map +1 -0
- package/native/dist/dist/utils/generateComponentId.d.ts +2 -0
- package/native/dist/dist/utils/generateComponentId.d.ts.map +1 -0
- package/native/dist/dist/utils/generateDisplayName.d.ts +3 -0
- package/native/dist/dist/utils/generateDisplayName.d.ts.map +1 -0
- package/native/dist/dist/utils/getComponentName.d.ts +3 -0
- package/native/dist/dist/utils/getComponentName.d.ts.map +1 -0
- package/native/dist/dist/utils/hash.d.ts +4 -0
- package/native/dist/dist/utils/hash.d.ts.map +1 -0
- package/native/dist/dist/utils/hoist.d.ts +52 -0
- package/native/dist/dist/utils/hoist.d.ts.map +1 -0
- package/native/dist/dist/utils/hyphenateStyleName.d.ts +15 -0
- package/native/dist/dist/utils/hyphenateStyleName.d.ts.map +1 -0
- package/native/dist/dist/utils/interleave.d.ts +3 -0
- package/native/dist/dist/utils/interleave.d.ts.map +1 -0
- package/native/dist/dist/utils/isFunction.d.ts +2 -0
- package/native/dist/dist/utils/isFunction.d.ts.map +1 -0
- package/native/dist/dist/utils/isPlainObject.d.ts +2 -0
- package/native/dist/dist/utils/isPlainObject.d.ts.map +1 -0
- package/native/dist/dist/utils/isStatelessFunction.d.ts +2 -0
- package/native/dist/dist/utils/isStatelessFunction.d.ts.map +1 -0
- package/native/dist/dist/utils/isStaticRules.d.ts +3 -0
- package/native/dist/dist/utils/isStaticRules.d.ts.map +1 -0
- package/native/dist/dist/utils/isStyledComponent.d.ts +3 -0
- package/native/dist/dist/utils/isStyledComponent.d.ts.map +1 -0
- package/native/dist/dist/utils/isTag.d.ts +3 -0
- package/native/dist/dist/utils/isTag.d.ts.map +1 -0
- package/native/dist/dist/utils/joinStrings.d.ts +5 -0
- package/native/dist/dist/utils/joinStrings.d.ts.map +1 -0
- package/native/dist/dist/utils/mixinDeep.d.ts +8 -0
- package/native/dist/dist/utils/mixinDeep.d.ts.map +1 -0
- package/native/dist/dist/utils/nonce.d.ts +2 -0
- package/native/dist/dist/utils/nonce.d.ts.map +1 -0
- package/native/dist/dist/utils/stylis.d.ts +10 -0
- package/native/dist/dist/utils/stylis.d.ts.map +1 -0
- package/native/dist/hoc/withTheme.d.ts +3 -0
- package/native/dist/hoc/withTheme.d.ts.map +1 -0
- package/native/dist/hoc/withTheme.spec.d.ts +1 -0
- package/native/dist/hoc/withTheme.spec.d.ts.map +1 -0
- package/native/dist/hooks/useTheme.d.ts +3 -0
- package/native/dist/hooks/useTheme.d.ts.map +1 -0
- package/native/dist/index-standalone.d.ts +2 -0
- package/native/dist/index-standalone.d.ts.map +1 -0
- package/native/dist/index.d.ts +3 -0
- package/native/dist/index.d.ts.map +1 -0
- package/native/dist/macro/index.d.ts +2 -0
- package/native/dist/macro/index.d.ts.map +1 -0
- package/native/dist/macro/test/babel.config.d.ts +1 -0
- package/native/dist/macro/test/babel.config.d.ts.map +1 -0
- package/native/dist/models/ComponentStyle.d.ts +15 -0
- package/native/dist/models/ComponentStyle.d.ts.map +1 -0
- package/native/dist/models/GlobalStyle.d.ts +11 -0
- package/native/dist/models/GlobalStyle.d.ts.map +1 -0
- package/native/dist/models/InlineStyle.d.ts +6 -0
- package/native/dist/models/InlineStyle.d.ts.map +1 -0
- package/native/dist/models/Keyframes.d.ts +11 -0
- package/native/dist/models/Keyframes.d.ts.map +1 -0
- package/native/dist/models/ServerStyleSheet.d.ts +15 -0
- package/native/dist/models/ServerStyleSheet.d.ts.map +1 -0
- package/native/dist/models/StyleSheetManager.d.ts +21 -0
- package/native/dist/models/StyleSheetManager.d.ts.map +1 -0
- package/native/dist/models/StyledComponent.d.ts +3 -0
- package/native/dist/models/StyledComponent.d.ts.map +1 -0
- package/native/dist/models/StyledNativeComponent.d.ts +3 -0
- package/native/dist/models/StyledNativeComponent.d.ts.map +1 -0
- package/native/dist/models/ThemeProvider.d.ts +17 -0
- package/native/dist/models/ThemeProvider.d.ts.map +1 -0
- package/native/dist/native/index.d.ts +64 -0
- package/native/dist/native/index.d.ts.map +1 -0
- package/native/dist/primitives/index.d.ts +22 -0
- package/native/dist/primitives/index.d.ts.map +1 -0
- package/native/dist/secretInternals.d.ts +5 -0
- package/native/dist/secretInternals.d.ts.map +1 -0
- package/native/dist/sheet/GroupIDAllocator.d.ts +4 -0
- package/native/dist/sheet/GroupIDAllocator.d.ts.map +1 -0
- package/native/dist/sheet/GroupedTag.d.ts +11 -0
- package/native/dist/sheet/GroupedTag.d.ts.map +1 -0
- package/native/dist/sheet/Rehydration.d.ts +3 -0
- package/native/dist/sheet/Rehydration.d.ts.map +1 -0
- package/native/dist/sheet/Sheet.d.ts +40 -0
- package/native/dist/sheet/Sheet.d.ts.map +1 -0
- package/native/dist/sheet/Tag.d.ts +54 -0
- package/native/dist/sheet/Tag.d.ts.map +1 -0
- package/native/dist/sheet/dom.d.ts +4 -0
- package/native/dist/sheet/dom.d.ts.map +1 -0
- package/native/dist/sheet/index.d.ts +1 -0
- package/native/dist/sheet/index.d.ts.map +1 -0
- package/native/dist/sheet/types.d.ts +34 -0
- package/native/dist/sheet/types.d.ts.map +1 -0
- package/native/dist/styled-components.native.cjs.js +1157 -6115
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +1153 -6115
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/native/dist/test/globals.d.ts +2 -0
- package/native/dist/test/globals.d.ts.map +1 -0
- package/native/dist/test/utils.d.ts +191 -0
- package/native/dist/test/utils.d.ts.map +1 -0
- package/native/dist/types.d.ts +120 -0
- package/native/dist/types.d.ts.map +1 -0
- package/native/dist/utils/addUnitIfNeeded.d.ts +1 -0
- package/native/dist/utils/addUnitIfNeeded.d.ts.map +1 -0
- package/native/dist/utils/checkDynamicCreation.d.ts +1 -0
- package/native/dist/utils/checkDynamicCreation.d.ts.map +1 -0
- package/native/dist/utils/createWarnTooManyClasses.d.ts +3 -0
- package/native/dist/utils/createWarnTooManyClasses.d.ts.map +1 -0
- package/native/dist/utils/determineTheme.d.ts +2 -0
- package/native/dist/utils/determineTheme.d.ts.map +1 -0
- package/native/dist/utils/domElements.d.ts +2 -0
- package/native/dist/utils/domElements.d.ts.map +1 -0
- package/native/dist/utils/empties.d.ts +3 -0
- package/native/dist/utils/empties.d.ts.map +1 -0
- package/native/dist/utils/error.d.ts +5 -0
- package/native/dist/utils/error.d.ts.map +1 -0
- package/native/dist/utils/errors.d.ts +20 -0
- package/native/dist/utils/errors.d.ts.map +1 -0
- package/native/dist/utils/escape.d.ts +5 -0
- package/native/dist/utils/escape.d.ts.map +1 -0
- package/native/dist/utils/flatten.d.ts +4 -0
- package/native/dist/utils/flatten.d.ts.map +1 -0
- package/native/dist/utils/generateAlphabeticName.d.ts +1 -0
- package/native/dist/utils/generateAlphabeticName.d.ts.map +1 -0
- package/native/dist/utils/generateComponentId.d.ts +1 -0
- package/native/dist/utils/generateComponentId.d.ts.map +1 -0
- package/native/dist/utils/generateDisplayName.d.ts +2 -0
- package/native/dist/utils/generateDisplayName.d.ts.map +1 -0
- package/native/dist/utils/getComponentName.d.ts +2 -0
- package/native/dist/utils/getComponentName.d.ts.map +1 -0
- package/native/dist/utils/hash.d.ts +3 -0
- package/native/dist/utils/hash.d.ts.map +1 -0
- package/native/dist/utils/hoist.d.ts +51 -0
- package/native/dist/utils/hoist.d.ts.map +1 -0
- package/native/dist/utils/hyphenateStyleName.d.ts +14 -0
- package/native/dist/utils/hyphenateStyleName.d.ts.map +1 -0
- package/native/dist/utils/interleave.d.ts +2 -0
- package/native/dist/utils/interleave.d.ts.map +1 -0
- package/native/dist/utils/isFunction.d.ts +1 -0
- package/native/dist/utils/isFunction.d.ts.map +1 -0
- package/native/dist/utils/isPlainObject.d.ts +1 -0
- package/native/dist/utils/isPlainObject.d.ts.map +1 -0
- package/native/dist/utils/isStatelessFunction.d.ts +1 -0
- package/native/dist/utils/isStatelessFunction.d.ts.map +1 -0
- package/native/dist/utils/isStaticRules.d.ts +2 -0
- package/native/dist/utils/isStaticRules.d.ts.map +1 -0
- package/native/dist/utils/isStyledComponent.d.ts +2 -0
- package/native/dist/utils/isStyledComponent.d.ts.map +1 -0
- package/native/dist/utils/isTag.d.ts +2 -0
- package/native/dist/utils/isTag.d.ts.map +1 -0
- package/native/dist/utils/joinStrings.d.ts +4 -0
- package/native/dist/utils/joinStrings.d.ts.map +1 -0
- package/native/dist/utils/mixinDeep.d.ts +7 -0
- package/native/dist/utils/mixinDeep.d.ts.map +1 -0
- package/native/dist/utils/nonce.d.ts +1 -0
- package/native/dist/utils/nonce.d.ts.map +1 -0
- package/native/dist/utils/stylis.d.ts +9 -0
- package/native/dist/utils/stylis.d.ts.map +1 -0
- package/package.json +72 -44
- package/primitives/dist/base.d.ts +17 -0
- package/primitives/dist/base.d.ts.map +1 -0
- package/primitives/dist/constants.d.ts +8 -0
- package/primitives/dist/constants.d.ts.map +1 -0
- package/primitives/dist/constructors/constructWithOptions.d.ts +19 -0
- package/primitives/dist/constructors/constructWithOptions.d.ts.map +1 -0
- package/primitives/dist/constructors/createGlobalStyle.d.ts +3 -0
- package/primitives/dist/constructors/createGlobalStyle.d.ts.map +1 -0
- package/primitives/dist/constructors/css.d.ts +4 -0
- package/primitives/dist/constructors/css.d.ts.map +1 -0
- package/primitives/dist/constructors/keyframes.d.ts +3 -0
- package/primitives/dist/constructors/keyframes.d.ts.map +1 -0
- package/primitives/dist/constructors/styled.d.ts +185 -0
- package/primitives/dist/constructors/styled.d.ts.map +1 -0
- package/primitives/dist/dist/base.d.ts +18 -0
- package/primitives/dist/dist/base.d.ts.map +1 -0
- package/primitives/dist/dist/constants.d.ts +9 -0
- package/primitives/dist/dist/constants.d.ts.map +1 -0
- package/primitives/dist/dist/constructors/constructWithOptions.d.ts +20 -0
- package/primitives/dist/dist/constructors/constructWithOptions.d.ts.map +1 -0
- package/primitives/dist/dist/constructors/createGlobalStyle.d.ts +4 -0
- package/primitives/dist/dist/constructors/createGlobalStyle.d.ts.map +1 -0
- package/primitives/dist/dist/constructors/css.d.ts +5 -0
- package/primitives/dist/dist/constructors/css.d.ts.map +1 -0
- package/primitives/dist/dist/constructors/keyframes.d.ts +4 -0
- package/primitives/dist/dist/constructors/keyframes.d.ts.map +1 -0
- package/primitives/dist/dist/constructors/styled.d.ts +186 -0
- package/primitives/dist/dist/constructors/styled.d.ts.map +1 -0
- package/primitives/dist/dist/hoc/withTheme.d.ts +4 -0
- package/primitives/dist/dist/hoc/withTheme.d.ts.map +1 -0
- package/primitives/dist/dist/hoc/withTheme.spec.d.ts +2 -0
- package/primitives/dist/dist/hoc/withTheme.spec.d.ts.map +1 -0
- package/primitives/dist/dist/hooks/useTheme.d.ts +4 -0
- package/primitives/dist/dist/hooks/useTheme.d.ts.map +1 -0
- package/primitives/dist/dist/index-standalone.d.ts +3 -0
- package/primitives/dist/dist/index-standalone.d.ts.map +1 -0
- package/primitives/dist/dist/index.d.ts +4 -0
- package/primitives/dist/dist/index.d.ts.map +1 -0
- package/primitives/dist/dist/macro/index.d.ts +3 -0
- package/primitives/dist/dist/macro/index.d.ts.map +1 -0
- package/primitives/dist/dist/macro/test/babel.config.d.ts +1 -0
- package/primitives/dist/dist/macro/test/babel.config.d.ts.map +1 -0
- package/primitives/dist/dist/models/ComponentStyle.d.ts +16 -0
- package/primitives/dist/dist/models/ComponentStyle.d.ts.map +1 -0
- package/primitives/dist/dist/models/GlobalStyle.d.ts +12 -0
- package/primitives/dist/dist/models/GlobalStyle.d.ts.map +1 -0
- package/primitives/dist/dist/models/InlineStyle.d.ts +7 -0
- package/primitives/dist/dist/models/InlineStyle.d.ts.map +1 -0
- package/primitives/dist/dist/models/Keyframes.d.ts +12 -0
- package/primitives/dist/dist/models/Keyframes.d.ts.map +1 -0
- package/primitives/dist/dist/models/ServerStyleSheet.d.ts +16 -0
- package/primitives/dist/dist/models/ServerStyleSheet.d.ts.map +1 -0
- package/primitives/dist/dist/models/StyleSheetManager.d.ts +22 -0
- package/primitives/dist/dist/models/StyleSheetManager.d.ts.map +1 -0
- package/primitives/dist/dist/models/StyledComponent.d.ts +4 -0
- package/primitives/dist/dist/models/StyledComponent.d.ts.map +1 -0
- package/primitives/dist/dist/models/StyledNativeComponent.d.ts +4 -0
- package/primitives/dist/dist/models/StyledNativeComponent.d.ts.map +1 -0
- package/primitives/dist/dist/models/ThemeProvider.d.ts +18 -0
- package/primitives/dist/dist/models/ThemeProvider.d.ts.map +1 -0
- package/primitives/dist/dist/native/index.d.ts +65 -0
- package/primitives/dist/dist/native/index.d.ts.map +1 -0
- package/primitives/dist/dist/primitives/index.d.ts +23 -0
- package/primitives/dist/dist/primitives/index.d.ts.map +1 -0
- package/primitives/dist/dist/secretInternals.d.ts +6 -0
- package/primitives/dist/dist/secretInternals.d.ts.map +1 -0
- package/primitives/dist/dist/sheet/GroupIDAllocator.d.ts +5 -0
- package/primitives/dist/dist/sheet/GroupIDAllocator.d.ts.map +1 -0
- package/primitives/dist/dist/sheet/GroupedTag.d.ts +12 -0
- package/primitives/dist/dist/sheet/GroupedTag.d.ts.map +1 -0
- package/primitives/dist/dist/sheet/Rehydration.d.ts +4 -0
- package/primitives/dist/dist/sheet/Rehydration.d.ts.map +1 -0
- package/primitives/dist/dist/sheet/Sheet.d.ts +41 -0
- package/primitives/dist/dist/sheet/Sheet.d.ts.map +1 -0
- package/primitives/dist/dist/sheet/Tag.d.ts +55 -0
- package/primitives/dist/dist/sheet/Tag.d.ts.map +1 -0
- package/primitives/dist/dist/sheet/dom.d.ts +5 -0
- package/primitives/dist/dist/sheet/dom.d.ts.map +1 -0
- package/primitives/dist/dist/sheet/index.d.ts +2 -0
- package/primitives/dist/dist/sheet/index.d.ts.map +1 -0
- package/primitives/dist/dist/sheet/types.d.ts +35 -0
- package/primitives/dist/dist/sheet/types.d.ts.map +1 -0
- package/primitives/dist/dist/test/globals.d.ts +3 -0
- package/primitives/dist/dist/test/globals.d.ts.map +1 -0
- package/primitives/dist/dist/test/utils.d.ts +192 -0
- package/primitives/dist/dist/test/utils.d.ts.map +1 -0
- package/primitives/dist/dist/types.d.ts +121 -0
- package/primitives/dist/dist/types.d.ts.map +1 -0
- package/primitives/dist/dist/utils/addUnitIfNeeded.d.ts +2 -0
- package/primitives/dist/dist/utils/addUnitIfNeeded.d.ts.map +1 -0
- package/primitives/dist/dist/utils/checkDynamicCreation.d.ts +2 -0
- package/primitives/dist/dist/utils/checkDynamicCreation.d.ts.map +1 -0
- package/primitives/dist/dist/utils/createWarnTooManyClasses.d.ts +4 -0
- package/primitives/dist/dist/utils/createWarnTooManyClasses.d.ts.map +1 -0
- package/primitives/dist/dist/utils/determineTheme.d.ts +3 -0
- package/primitives/dist/dist/utils/determineTheme.d.ts.map +1 -0
- package/primitives/dist/dist/utils/domElements.d.ts +3 -0
- package/primitives/dist/dist/utils/domElements.d.ts.map +1 -0
- package/primitives/dist/dist/utils/empties.d.ts +4 -0
- package/primitives/dist/dist/utils/empties.d.ts.map +1 -0
- package/primitives/dist/dist/utils/error.d.ts +6 -0
- package/primitives/dist/dist/utils/error.d.ts.map +1 -0
- package/primitives/dist/dist/utils/errors.d.ts +21 -0
- package/primitives/dist/dist/utils/errors.d.ts.map +1 -0
- package/primitives/dist/dist/utils/escape.d.ts +6 -0
- package/primitives/dist/dist/utils/escape.d.ts.map +1 -0
- package/primitives/dist/dist/utils/flatten.d.ts +5 -0
- package/primitives/dist/dist/utils/flatten.d.ts.map +1 -0
- package/primitives/dist/dist/utils/generateAlphabeticName.d.ts +2 -0
- package/primitives/dist/dist/utils/generateAlphabeticName.d.ts.map +1 -0
- package/primitives/dist/dist/utils/generateComponentId.d.ts +2 -0
- package/primitives/dist/dist/utils/generateComponentId.d.ts.map +1 -0
- package/primitives/dist/dist/utils/generateDisplayName.d.ts +3 -0
- package/primitives/dist/dist/utils/generateDisplayName.d.ts.map +1 -0
- package/primitives/dist/dist/utils/getComponentName.d.ts +3 -0
- package/primitives/dist/dist/utils/getComponentName.d.ts.map +1 -0
- package/primitives/dist/dist/utils/hash.d.ts +4 -0
- package/primitives/dist/dist/utils/hash.d.ts.map +1 -0
- package/primitives/dist/dist/utils/hoist.d.ts +52 -0
- package/primitives/dist/dist/utils/hoist.d.ts.map +1 -0
- package/primitives/dist/dist/utils/hyphenateStyleName.d.ts +15 -0
- package/primitives/dist/dist/utils/hyphenateStyleName.d.ts.map +1 -0
- package/primitives/dist/dist/utils/interleave.d.ts +3 -0
- package/primitives/dist/dist/utils/interleave.d.ts.map +1 -0
- package/primitives/dist/dist/utils/isFunction.d.ts +2 -0
- package/primitives/dist/dist/utils/isFunction.d.ts.map +1 -0
- package/primitives/dist/dist/utils/isPlainObject.d.ts +2 -0
- package/primitives/dist/dist/utils/isPlainObject.d.ts.map +1 -0
- package/primitives/dist/dist/utils/isStatelessFunction.d.ts +2 -0
- package/primitives/dist/dist/utils/isStatelessFunction.d.ts.map +1 -0
- package/primitives/dist/dist/utils/isStaticRules.d.ts +3 -0
- package/primitives/dist/dist/utils/isStaticRules.d.ts.map +1 -0
- package/primitives/dist/dist/utils/isStyledComponent.d.ts +3 -0
- package/primitives/dist/dist/utils/isStyledComponent.d.ts.map +1 -0
- package/primitives/dist/dist/utils/isTag.d.ts +3 -0
- package/primitives/dist/dist/utils/isTag.d.ts.map +1 -0
- package/primitives/dist/dist/utils/joinStrings.d.ts +5 -0
- package/primitives/dist/dist/utils/joinStrings.d.ts.map +1 -0
- package/primitives/dist/dist/utils/mixinDeep.d.ts +8 -0
- package/primitives/dist/dist/utils/mixinDeep.d.ts.map +1 -0
- package/primitives/dist/dist/utils/nonce.d.ts +2 -0
- package/primitives/dist/dist/utils/nonce.d.ts.map +1 -0
- package/primitives/dist/dist/utils/stylis.d.ts +10 -0
- package/primitives/dist/dist/utils/stylis.d.ts.map +1 -0
- package/primitives/dist/hoc/withTheme.d.ts +3 -0
- package/primitives/dist/hoc/withTheme.d.ts.map +1 -0
- package/primitives/dist/hoc/withTheme.spec.d.ts +1 -0
- package/primitives/dist/hoc/withTheme.spec.d.ts.map +1 -0
- package/primitives/dist/hooks/useTheme.d.ts +3 -0
- package/primitives/dist/hooks/useTheme.d.ts.map +1 -0
- package/primitives/dist/index-standalone.d.ts +2 -0
- package/primitives/dist/index-standalone.d.ts.map +1 -0
- package/primitives/dist/index.d.ts +3 -0
- package/primitives/dist/index.d.ts.map +1 -0
- package/primitives/dist/macro/index.d.ts +2 -0
- package/primitives/dist/macro/index.d.ts.map +1 -0
- package/primitives/dist/macro/test/babel.config.d.ts +1 -0
- package/primitives/dist/macro/test/babel.config.d.ts.map +1 -0
- package/primitives/dist/models/ComponentStyle.d.ts +15 -0
- package/primitives/dist/models/ComponentStyle.d.ts.map +1 -0
- package/primitives/dist/models/GlobalStyle.d.ts +11 -0
- package/primitives/dist/models/GlobalStyle.d.ts.map +1 -0
- package/primitives/dist/models/InlineStyle.d.ts +6 -0
- package/primitives/dist/models/InlineStyle.d.ts.map +1 -0
- package/primitives/dist/models/Keyframes.d.ts +11 -0
- package/primitives/dist/models/Keyframes.d.ts.map +1 -0
- package/primitives/dist/models/ServerStyleSheet.d.ts +15 -0
- package/primitives/dist/models/ServerStyleSheet.d.ts.map +1 -0
- package/primitives/dist/models/StyleSheetManager.d.ts +21 -0
- package/primitives/dist/models/StyleSheetManager.d.ts.map +1 -0
- package/primitives/dist/models/StyledComponent.d.ts +3 -0
- package/primitives/dist/models/StyledComponent.d.ts.map +1 -0
- package/primitives/dist/models/StyledNativeComponent.d.ts +3 -0
- package/primitives/dist/models/StyledNativeComponent.d.ts.map +1 -0
- package/primitives/dist/models/ThemeProvider.d.ts +17 -0
- package/primitives/dist/models/ThemeProvider.d.ts.map +1 -0
- package/primitives/dist/native/index.d.ts +64 -0
- package/primitives/dist/native/index.d.ts.map +1 -0
- package/primitives/dist/primitives/index.d.ts +22 -0
- package/primitives/dist/primitives/index.d.ts.map +1 -0
- package/primitives/dist/secretInternals.d.ts +5 -0
- package/primitives/dist/secretInternals.d.ts.map +1 -0
- package/primitives/dist/sheet/GroupIDAllocator.d.ts +4 -0
- package/primitives/dist/sheet/GroupIDAllocator.d.ts.map +1 -0
- package/primitives/dist/sheet/GroupedTag.d.ts +11 -0
- package/primitives/dist/sheet/GroupedTag.d.ts.map +1 -0
- package/primitives/dist/sheet/Rehydration.d.ts +3 -0
- package/primitives/dist/sheet/Rehydration.d.ts.map +1 -0
- package/primitives/dist/sheet/Sheet.d.ts +40 -0
- package/primitives/dist/sheet/Sheet.d.ts.map +1 -0
- package/primitives/dist/sheet/Tag.d.ts +54 -0
- package/primitives/dist/sheet/Tag.d.ts.map +1 -0
- package/primitives/dist/sheet/dom.d.ts +4 -0
- package/primitives/dist/sheet/dom.d.ts.map +1 -0
- package/primitives/dist/sheet/index.d.ts +1 -0
- package/primitives/dist/sheet/index.d.ts.map +1 -0
- package/primitives/dist/sheet/types.d.ts +34 -0
- package/primitives/dist/sheet/types.d.ts.map +1 -0
- package/primitives/dist/styled-components-primitives.cjs.js +1107 -6115
- package/primitives/dist/styled-components-primitives.cjs.js.map +1 -1
- package/primitives/dist/styled-components-primitives.esm.js +1101 -6114
- package/primitives/dist/styled-components-primitives.esm.js.map +1 -1
- package/primitives/dist/test/globals.d.ts +2 -0
- package/primitives/dist/test/globals.d.ts.map +1 -0
- package/primitives/dist/test/utils.d.ts +191 -0
- package/primitives/dist/test/utils.d.ts.map +1 -0
- package/primitives/dist/types.d.ts +120 -0
- package/primitives/dist/types.d.ts.map +1 -0
- package/primitives/dist/utils/addUnitIfNeeded.d.ts +1 -0
- package/primitives/dist/utils/addUnitIfNeeded.d.ts.map +1 -0
- package/primitives/dist/utils/checkDynamicCreation.d.ts +1 -0
- package/primitives/dist/utils/checkDynamicCreation.d.ts.map +1 -0
- package/primitives/dist/utils/createWarnTooManyClasses.d.ts +3 -0
- package/primitives/dist/utils/createWarnTooManyClasses.d.ts.map +1 -0
- package/primitives/dist/utils/determineTheme.d.ts +2 -0
- package/primitives/dist/utils/determineTheme.d.ts.map +1 -0
- package/primitives/dist/utils/domElements.d.ts +2 -0
- package/primitives/dist/utils/domElements.d.ts.map +1 -0
- package/primitives/dist/utils/empties.d.ts +3 -0
- package/primitives/dist/utils/empties.d.ts.map +1 -0
- package/primitives/dist/utils/error.d.ts +5 -0
- package/primitives/dist/utils/error.d.ts.map +1 -0
- package/primitives/dist/utils/errors.d.ts +20 -0
- package/primitives/dist/utils/errors.d.ts.map +1 -0
- package/primitives/dist/utils/escape.d.ts +5 -0
- package/primitives/dist/utils/escape.d.ts.map +1 -0
- package/primitives/dist/utils/flatten.d.ts +4 -0
- package/primitives/dist/utils/flatten.d.ts.map +1 -0
- package/primitives/dist/utils/generateAlphabeticName.d.ts +1 -0
- package/primitives/dist/utils/generateAlphabeticName.d.ts.map +1 -0
- package/primitives/dist/utils/generateComponentId.d.ts +1 -0
- package/primitives/dist/utils/generateComponentId.d.ts.map +1 -0
- package/primitives/dist/utils/generateDisplayName.d.ts +2 -0
- package/primitives/dist/utils/generateDisplayName.d.ts.map +1 -0
- package/primitives/dist/utils/getComponentName.d.ts +2 -0
- package/primitives/dist/utils/getComponentName.d.ts.map +1 -0
- package/primitives/dist/utils/hash.d.ts +3 -0
- package/primitives/dist/utils/hash.d.ts.map +1 -0
- package/primitives/dist/utils/hoist.d.ts +51 -0
- package/primitives/dist/utils/hoist.d.ts.map +1 -0
- package/primitives/dist/utils/hyphenateStyleName.d.ts +14 -0
- package/primitives/dist/utils/hyphenateStyleName.d.ts.map +1 -0
- package/primitives/dist/utils/interleave.d.ts +2 -0
- package/primitives/dist/utils/interleave.d.ts.map +1 -0
- package/primitives/dist/utils/isFunction.d.ts +1 -0
- package/primitives/dist/utils/isFunction.d.ts.map +1 -0
- package/primitives/dist/utils/isPlainObject.d.ts +1 -0
- package/primitives/dist/utils/isPlainObject.d.ts.map +1 -0
- package/primitives/dist/utils/isStatelessFunction.d.ts +1 -0
- package/primitives/dist/utils/isStatelessFunction.d.ts.map +1 -0
- package/primitives/dist/utils/isStaticRules.d.ts +2 -0
- package/primitives/dist/utils/isStaticRules.d.ts.map +1 -0
- package/primitives/dist/utils/isStyledComponent.d.ts +2 -0
- package/primitives/dist/utils/isStyledComponent.d.ts.map +1 -0
- package/primitives/dist/utils/isTag.d.ts +2 -0
- package/primitives/dist/utils/isTag.d.ts.map +1 -0
- package/primitives/dist/utils/joinStrings.d.ts +4 -0
- package/primitives/dist/utils/joinStrings.d.ts.map +1 -0
- package/primitives/dist/utils/mixinDeep.d.ts +7 -0
- package/primitives/dist/utils/mixinDeep.d.ts.map +1 -0
- package/primitives/dist/utils/nonce.d.ts +1 -0
- package/primitives/dist/utils/nonce.d.ts.map +1 -0
- package/primitives/dist/utils/stylis.d.ts +9 -0
- package/primitives/dist/utils/stylis.d.ts.map +1 -0
- package/test-utils/{index.js → index.ts} +10 -13
- package/test-utils/{setupTestFramework.js → setupTestFramework.ts} +2 -5
- package/scripts/generateErrorMap.js +0 -22
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styled-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-alpha.1",
|
|
4
4
|
"description": "Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress",
|
|
5
5
|
"main": "dist/styled-components.cjs.js",
|
|
6
|
-
"jsnext:main": "dist/styled-components.esm.js",
|
|
7
6
|
"module": "dist/styled-components.esm.js",
|
|
8
7
|
"react-native": "native/dist/styled-components.native.cjs.js",
|
|
9
8
|
"browser": {
|
|
@@ -15,35 +14,33 @@
|
|
|
15
14
|
],
|
|
16
15
|
"scripts": {
|
|
17
16
|
"generateErrors": "node scripts/generateErrorMap.js",
|
|
18
|
-
"prebuild": "rimraf dist &&
|
|
17
|
+
"prebuild": "rimraf dist && yarn generateErrors",
|
|
19
18
|
"build": "rollup -c",
|
|
20
|
-
"postbuild": "
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"test": "
|
|
25
|
-
"test:
|
|
26
|
-
"test:
|
|
27
|
-
"test:primitives": "jest -c ../../scripts/jest/config.primitives.js",
|
|
28
|
-
"test:integration": "jest -c ../../scripts/jest/config.integration.js --runInBand --forceExit",
|
|
19
|
+
"postbuild": "yarn lint:size",
|
|
20
|
+
"pretest": "yarn generateErrors",
|
|
21
|
+
"test": "yarn test:web && yarn test:native && yarn test:primitives",
|
|
22
|
+
"test:web": "jest -c jest.config.main.js",
|
|
23
|
+
"test:native": "jest -c jest.config.native.js",
|
|
24
|
+
"test:primitives": "jest -c jest.config.primitives.js",
|
|
25
|
+
"test:integration": "jest -c jest.config.integration.js --runInBand --forceExit",
|
|
29
26
|
"format": "eslint ./**/*.js --fix",
|
|
30
27
|
"lint": "eslint src",
|
|
31
28
|
"lint:size": "bundlewatch",
|
|
32
|
-
"prettier": "prettier
|
|
33
|
-
"prepublishOnly": "
|
|
34
|
-
"dev": "cross-env BABEL_ENV=cjs babel-node example/startServer.js"
|
|
29
|
+
"prettier": "prettier src/** --write",
|
|
30
|
+
"prepublishOnly": "cp ../../README.md . && yarn build"
|
|
35
31
|
},
|
|
36
32
|
"repository": {
|
|
37
33
|
"type": "git",
|
|
38
34
|
"url": "git+https://github.com/styled-components/styled-components.git"
|
|
39
35
|
},
|
|
40
36
|
"files": [
|
|
37
|
+
"CHANGELOG.md",
|
|
41
38
|
"CODE_OF_CONDUCT.md",
|
|
42
39
|
"CONTRIBUTING.md",
|
|
40
|
+
"LICENSE",
|
|
43
41
|
"dist",
|
|
44
42
|
"native",
|
|
45
43
|
"primitives",
|
|
46
|
-
"scripts",
|
|
47
44
|
"test-utils",
|
|
48
45
|
"macro"
|
|
49
46
|
],
|
|
@@ -63,48 +60,79 @@
|
|
|
63
60
|
},
|
|
64
61
|
"homepage": "https://styled-components.com",
|
|
65
62
|
"dependencies": {
|
|
66
|
-
"@babel/
|
|
67
|
-
"@babel/
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
63
|
+
"@babel/cli": "^7.15.7",
|
|
64
|
+
"@babel/core": "^7.15.5",
|
|
65
|
+
"@babel/helper-module-imports": "^7.16.7",
|
|
66
|
+
"@babel/plugin-external-helpers": "^7.0.0",
|
|
67
|
+
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
|
68
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.15.6",
|
|
69
|
+
"@babel/preset-env": "^7.15.6",
|
|
70
|
+
"@babel/preset-react": "^7.0.0",
|
|
71
|
+
"@babel/preset-typescript": "^7.15.0",
|
|
72
|
+
"@babel/traverse": "^7.17.3",
|
|
73
|
+
"@emotion/is-prop-valid": "^1.1.0",
|
|
70
74
|
"@emotion/unitless": "^0.7.4",
|
|
71
|
-
"babel-plugin-styled-components": ">= 1.12.0",
|
|
72
75
|
"css-to-react-native": "^3.0.0",
|
|
73
|
-
"hoist-non-react-statics": "^3.0.0",
|
|
74
76
|
"shallowequal": "^1.1.0",
|
|
75
|
-
"
|
|
77
|
+
"stylis": "^4.0.13"
|
|
76
78
|
},
|
|
77
79
|
"peerDependencies": {
|
|
78
80
|
"react": ">= 16.8.0",
|
|
79
|
-
"react-dom": ">= 16.8.0"
|
|
80
|
-
"react-is": ">= 16.8.0"
|
|
81
|
+
"react-dom": ">= 16.8.0"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
|
-
"@
|
|
84
|
-
"@babel
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
84
|
+
"@rollup/plugin-typescript": "^8.2.5",
|
|
85
|
+
"@types/babel-plugin-macros": "^2.8.4",
|
|
86
|
+
"@types/enzyme": "^3.10.9",
|
|
87
|
+
"@types/jest": "^27.0.2",
|
|
88
|
+
"@types/js-beautify": "^1.13.1",
|
|
89
|
+
"@types/node": "^14.0.0",
|
|
90
|
+
"@types/react": "^17.0.22",
|
|
91
|
+
"@types/react-dom": "^17.0.9",
|
|
92
|
+
"@types/react-frame-component": "^4.1.1",
|
|
93
|
+
"@types/react-native": "^0.65.1",
|
|
94
|
+
"@types/react-primitives": "^0.6.2",
|
|
95
|
+
"@types/react-test-renderer": "^17.0.1",
|
|
96
|
+
"@types/shallowequal": "^1.1.1",
|
|
97
|
+
"@types/stylis": "^4.0.2",
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^4.20.0",
|
|
99
|
+
"@typescript-eslint/parser": "^4.20.0",
|
|
89
100
|
"babel-eslint": "^10.0.1",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
101
|
+
"babel-jest": "^27.0.6",
|
|
102
|
+
"babel-plugin-add-module-exports": "^1.0.4",
|
|
103
|
+
"babel-plugin-macros": "^3.1.0",
|
|
104
|
+
"babel-plugin-styled-components": "^2.0.5",
|
|
105
|
+
"babel-plugin-tester": "^10.0.0",
|
|
106
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
107
|
+
"bundlewatch": "^0.3.1",
|
|
108
|
+
"eslint": "^7.23.0",
|
|
109
|
+
"eslint-config-prettier": "^8.3.0",
|
|
110
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
92
111
|
"eslint-plugin-react": "^7.20.6",
|
|
93
|
-
"
|
|
112
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
113
|
+
"jest": "^27.0.6",
|
|
114
|
+
"jest-image-snapshot": "^4.2.0",
|
|
94
115
|
"jest-serializer-html": "^7.0.0",
|
|
95
116
|
"js-beautify": "^1.13.0",
|
|
117
|
+
"prettier": "^2.2.0",
|
|
96
118
|
"prop-types": "^15.7.2",
|
|
97
|
-
"react": "^
|
|
98
|
-
"react-dom": "^
|
|
119
|
+
"react": "^17.0.2",
|
|
120
|
+
"react-dom": "^17.0.2",
|
|
99
121
|
"react-frame-component": "^4.0.2",
|
|
100
|
-
"react-
|
|
101
|
-
"react-native": "^0.63.4",
|
|
122
|
+
"react-native": "^0.65.1",
|
|
102
123
|
"react-primitives": "^0.8.0",
|
|
103
|
-
"react-test-renderer": "^
|
|
104
|
-
"rollup": "^
|
|
105
|
-
"rollup-plugin-
|
|
106
|
-
"rollup-plugin-
|
|
107
|
-
"
|
|
124
|
+
"react-test-renderer": "^17.0.2",
|
|
125
|
+
"rollup": "^2.47.0",
|
|
126
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
127
|
+
"rollup-plugin-json": "^4.0.0",
|
|
128
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
129
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
130
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
131
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
132
|
+
"stylis-plugin-rtl": "^2.1.1",
|
|
133
|
+
"tslib": "^2.3.1",
|
|
134
|
+
"typescript": "^4.5.5",
|
|
135
|
+
"utility-types": "^3.10.0"
|
|
108
136
|
},
|
|
109
137
|
"bundlewatch": {
|
|
110
138
|
"files": [
|
|
@@ -123,6 +151,6 @@
|
|
|
123
151
|
"url": "https://opencollective.com/styled-components"
|
|
124
152
|
},
|
|
125
153
|
"engines": {
|
|
126
|
-
"node": ">=
|
|
154
|
+
"node": ">= 14"
|
|
127
155
|
}
|
|
128
156
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SC_VERSION } from './constants';
|
|
2
|
+
import createGlobalStyle from './constructors/createGlobalStyle';
|
|
3
|
+
import css from './constructors/css';
|
|
4
|
+
import keyframes from './constructors/keyframes';
|
|
5
|
+
import withTheme from './hoc/withTheme';
|
|
6
|
+
import useTheme from './hooks/useTheme';
|
|
7
|
+
import ServerStyleSheet from './models/ServerStyleSheet';
|
|
8
|
+
import StyleSheetManager, { StyleSheetConsumer, StyleSheetContext } from './models/StyleSheetManager';
|
|
9
|
+
import ThemeProvider, { ThemeConsumer, ThemeContext } from './models/ThemeProvider';
|
|
10
|
+
import isStyledComponent from './utils/isStyledComponent';
|
|
11
|
+
declare global {
|
|
12
|
+
interface Window {
|
|
13
|
+
'__styled-components-init__'?: number;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export * from './secretInternals';
|
|
17
|
+
export { createGlobalStyle, css, isStyledComponent, keyframes, ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, useTheme, SC_VERSION as version, withTheme, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["src/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AACzD,OAAO,iBAAiB,EAAE,EACxB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,aAAa,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAI1D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,4BAA4B,CAAC,EAAE,MAAM,CAAC;KACvC;CACF;AAsCD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,GAAG,EACH,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,UAAU,IAAI,OAAO,EACrB,SAAS,GACV,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const SC_ATTR: string;
|
|
2
|
+
export declare const SC_ATTR_ACTIVE = "active";
|
|
3
|
+
export declare const SC_ATTR_VERSION = "data-styled-version";
|
|
4
|
+
export declare const SC_VERSION: string;
|
|
5
|
+
export declare const SPLITTER = "/*!sc*/\n";
|
|
6
|
+
export declare const IS_BROWSER: boolean;
|
|
7
|
+
export declare const DISABLE_SPEEDY: boolean;
|
|
8
|
+
export declare const STATIC_EXECUTION_CONTEXT: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,EAAE,MAEP,CAAC;AAEhB,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,UAAU,QAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,cAAc,CAAC;AAEpC,eAAO,MAAM,UAAU,SAA2D,CAAC;AAEnF,eAAO,MAAM,cAAc,SAgB1B,CAAC;AAGF,eAAO,MAAM,wBAAwB,IAAK,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Attrs, Interpolation, IStyledComponent, IStyledComponentFactory, IStyledNativeComponent, IStyledNativeComponentFactory, NativeTarget, StyledNativeOptions, StyledOptions, StyledTarget, Styles, WebTarget } from '../types';
|
|
2
|
+
export interface NativeStyled<Target extends NativeTarget, OuterProps = unknown, OuterStatics = unknown> {
|
|
3
|
+
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Exclude<Interpolation<OuterProps & Props>, IStyledComponent<any>>[]): IStyledNativeComponent<Target, OuterProps & Props> & OuterStatics & Statics;
|
|
4
|
+
attrs(attrs: Attrs<OuterProps>): NativeStyled<Target, OuterProps, OuterStatics>;
|
|
5
|
+
withConfig(config: StyledNativeOptions<OuterProps>): NativeStyled<Target, OuterProps, OuterStatics>;
|
|
6
|
+
}
|
|
7
|
+
export interface WebStyled<Target extends WebTarget, OuterProps = unknown, OuterStatics = unknown> {
|
|
8
|
+
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Interpolation<OuterProps & Props>[]): IStyledComponent<Target, OuterProps & Props> & OuterStatics & Statics;
|
|
9
|
+
attrs(attrs: Attrs<OuterProps>): WebStyled<Target, OuterProps, OuterStatics>;
|
|
10
|
+
withConfig(config: StyledOptions<OuterProps>): WebStyled<Target, OuterProps, OuterStatics>;
|
|
11
|
+
}
|
|
12
|
+
export default function constructWithOptions<Environment extends 'web' | 'native', Target extends StyledTarget, OuterProps = unknown, // used for styled<{}>().attrs() so attrs() gets the generic prop context
|
|
13
|
+
OuterStatics = unknown>(componentConstructor: Environment extends 'web' ? IStyledComponentFactory<any, any, any> : IStyledNativeComponentFactory<any, any, any>, tag: Target, options?: Environment extends 'web' ? StyledOptions<OuterProps> : StyledNativeOptions<OuterProps>): {
|
|
14
|
+
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Interpolation<OuterProps & Props>[]): ReturnType<Environment extends "web" ? IStyledComponentFactory<Target, OuterProps & Props, OuterStatics & Statics> : IStyledNativeComponentFactory<Target, OuterProps & Props, OuterStatics & Statics>>;
|
|
15
|
+
attrs(attrs: Attrs<OuterProps>): any;
|
|
16
|
+
/**
|
|
17
|
+
* If config methods are called, wrap up a new template function and merge options */
|
|
18
|
+
withConfig(config: Environment extends 'web' ? StyledOptions<OuterProps> : StyledNativeOptions<OuterProps>): any;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constructWithOptions.d.ts","sourceRoot":"","sources":["../src/constructors/constructWithOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,YAAY,EAEZ,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,MAAM,EACN,SAAS,EACV,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,YAAY,CAC3B,MAAM,SAAS,YAAY,EAC3B,UAAU,GAAG,OAAO,EACpB,YAAY,GAAG,OAAO;IAEtB,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjC,aAAa,EAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,EACzC,GAAG,cAAc,EAAE,OAAO,CAAC,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,EAAE,GACrF,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;IAC/E,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAChF,UAAU,CACR,MAAM,EAAE,mBAAmB,CAAC,UAAU,CAAC,GACtC,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,SAAS,CAAC,MAAM,SAAS,SAAS,EAAE,UAAU,GAAG,OAAO,EAAE,YAAY,GAAG,OAAO;IAC/F,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjC,aAAa,EAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,EACzC,GAAG,cAAc,EAAE,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,GACrD,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;IACzE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAC7E,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;CAC5F;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,WAAW,SAAS,KAAK,GAAG,QAAQ,EACpC,MAAM,SAAS,YAAY,EAC3B,UAAU,GAAG,OAAO,EAAE,yEAAyE;AAC/F,YAAY,GAAG,OAAO,EAEtB,oBAAoB,EAAE,WAAW,SAAS,KAAK,GAC3C,uBAAuB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GACtC,6BAA6B,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAChD,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAW,SAAS,KAAK,GAC9B,aAAa,CAAC,UAAU,CAAC,GACzB,mBAAmB,CAAC,UAAU,CAA6C;;iBA6B9C,MAAM,UAAU,CAAC;IAMlD;yFACqF;uBAE3E,WAAW,SAAS,KAAK,GAAG,cAAc,UAAU,CAAC,GAAG,oBAAoB,UAAU,CAAC;EAQlG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtensibleObject, Interpolation, Styles } from '../types';
|
|
3
|
+
export default function createGlobalStyle<Props = unknown>(strings: Styles<Props>, ...interpolations: Array<Interpolation<Props>>): React.NamedExoticComponent<ExtensibleObject>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGlobalStyle.d.ts","sourceRoot":"","sources":["../src/constructors/createGlobalStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAMnE,OAAO,EAEL,gBAAgB,EAChB,aAAa,EAGb,MAAM,EACP,MAAM,UAAU,CAAC;AAMlB,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,GAAG,OAAO,EACvD,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EACtB,GAAG,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,gDA6E/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../src/constructors/css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA+B,MAAM,EAAE,MAAM,UAAU,CAAC;AAmB9E,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,KAAK,EAC/B,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,EACrB,GAAG,cAAc,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE;;GA0B1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyframes.d.ts","sourceRoot":"","sources":["../src/constructors/keyframes.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIjD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,GAAG,OAAO,EAC/C,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EACtB,GAAG,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC7C,SAAS,CAgBX"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WebTarget } from '../types';
|
|
3
|
+
import { WebStyled } from './constructWithOptions';
|
|
4
|
+
declare const styled: (<Target extends WebTarget>(tag: Target) => {
|
|
5
|
+
<Props = unknown, Statics = unknown>(initialStyles: import("../types").Styles<Props>, ...interpolations: import("../types").Interpolation<Props>[]): import("../types").IStyledComponent<Target, Props> & Statics;
|
|
6
|
+
attrs(attrs: import("../types").Attrs<unknown>): any;
|
|
7
|
+
withConfig(config: import("../types").StyledOptions<unknown>): any;
|
|
8
|
+
}) & {
|
|
9
|
+
a: WebStyled<"a", import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, unknown>;
|
|
10
|
+
abbr: WebStyled<"abbr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
11
|
+
address: WebStyled<"address", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
12
|
+
area: WebStyled<"area", import("react").DetailedHTMLProps<import("react").AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>, unknown>;
|
|
13
|
+
article: WebStyled<"article", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
14
|
+
aside: WebStyled<"aside", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
15
|
+
audio: WebStyled<"audio", import("react").DetailedHTMLProps<import("react").AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, unknown>;
|
|
16
|
+
b: WebStyled<"b", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
17
|
+
base: WebStyled<"base", import("react").DetailedHTMLProps<import("react").BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>, unknown>;
|
|
18
|
+
bdi: WebStyled<"bdi", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
19
|
+
bdo: WebStyled<"bdo", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
20
|
+
big: WebStyled<"big", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
21
|
+
blockquote: WebStyled<"blockquote", import("react").DetailedHTMLProps<import("react").BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
22
|
+
body: WebStyled<"body", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>, unknown>;
|
|
23
|
+
br: WebStyled<"br", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBRElement>, HTMLBRElement>, unknown>;
|
|
24
|
+
button: WebStyled<"button", import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, unknown>;
|
|
25
|
+
canvas: WebStyled<"canvas", import("react").DetailedHTMLProps<import("react").CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>, unknown>;
|
|
26
|
+
caption: WebStyled<"caption", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
27
|
+
cite: WebStyled<"cite", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
28
|
+
code: WebStyled<"code", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
29
|
+
col: WebStyled<"col", import("react").DetailedHTMLProps<import("react").ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, unknown>;
|
|
30
|
+
colgroup: WebStyled<"colgroup", import("react").DetailedHTMLProps<import("react").ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, unknown>;
|
|
31
|
+
data: WebStyled<"data", import("react").DetailedHTMLProps<import("react").DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>, unknown>;
|
|
32
|
+
datalist: WebStyled<"datalist", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>, unknown>;
|
|
33
|
+
dd: WebStyled<"dd", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
34
|
+
del: WebStyled<"del", import("react").DetailedHTMLProps<import("react").DelHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
35
|
+
details: WebStyled<"details", import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
36
|
+
dfn: WebStyled<"dfn", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
37
|
+
dialog: WebStyled<"dialog", import("react").DetailedHTMLProps<import("react").DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, unknown>;
|
|
38
|
+
div: WebStyled<"div", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, unknown>;
|
|
39
|
+
dl: WebStyled<"dl", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDListElement>, HTMLDListElement>, unknown>;
|
|
40
|
+
dt: WebStyled<"dt", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
41
|
+
em: WebStyled<"em", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
42
|
+
embed: WebStyled<"embed", import("react").DetailedHTMLProps<import("react").EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>, unknown>;
|
|
43
|
+
fieldset: WebStyled<"fieldset", import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, unknown>;
|
|
44
|
+
figcaption: WebStyled<"figcaption", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
45
|
+
figure: WebStyled<"figure", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
46
|
+
footer: WebStyled<"footer", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
47
|
+
form: WebStyled<"form", import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, unknown>;
|
|
48
|
+
h1: WebStyled<"h1", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
49
|
+
h2: WebStyled<"h2", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
50
|
+
h3: WebStyled<"h3", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
51
|
+
h4: WebStyled<"h4", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
52
|
+
h5: WebStyled<"h5", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
53
|
+
h6: WebStyled<"h6", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
54
|
+
head: WebStyled<"head", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadElement>, HTMLHeadElement>, unknown>;
|
|
55
|
+
header: WebStyled<"header", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
56
|
+
hgroup: WebStyled<"hgroup", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
57
|
+
hr: WebStyled<"hr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, unknown>;
|
|
58
|
+
html: WebStyled<"html", import("react").DetailedHTMLProps<import("react").HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>, unknown>;
|
|
59
|
+
i: WebStyled<"i", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
60
|
+
iframe: WebStyled<"iframe", import("react").DetailedHTMLProps<import("react").IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, unknown>;
|
|
61
|
+
img: WebStyled<"img", import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, unknown>;
|
|
62
|
+
input: WebStyled<"input", import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, unknown>;
|
|
63
|
+
ins: WebStyled<"ins", import("react").DetailedHTMLProps<import("react").InsHTMLAttributes<HTMLModElement>, HTMLModElement>, unknown>;
|
|
64
|
+
kbd: WebStyled<"kbd", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
65
|
+
keygen: WebStyled<"keygen", import("react").DetailedHTMLProps<import("react").KeygenHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
66
|
+
label: WebStyled<"label", import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, unknown>;
|
|
67
|
+
legend: WebStyled<"legend", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, unknown>;
|
|
68
|
+
li: WebStyled<"li", import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, unknown>;
|
|
69
|
+
link: WebStyled<"link", import("react").DetailedHTMLProps<import("react").LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>, unknown>;
|
|
70
|
+
main: WebStyled<"main", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
71
|
+
map: WebStyled<"map", import("react").DetailedHTMLProps<import("react").MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>, unknown>;
|
|
72
|
+
mark: WebStyled<"mark", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
73
|
+
menu: WebStyled<"menu", import("react").DetailedHTMLProps<import("react").MenuHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
74
|
+
menuitem: WebStyled<"menuitem", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
75
|
+
meta: WebStyled<"meta", import("react").DetailedHTMLProps<import("react").MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>, unknown>;
|
|
76
|
+
meter: WebStyled<"meter", import("react").DetailedHTMLProps<import("react").MeterHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
77
|
+
nav: WebStyled<"nav", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
78
|
+
noindex: WebStyled<"noindex", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
79
|
+
noscript: WebStyled<"noscript", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
80
|
+
object: WebStyled<"object", import("react").DetailedHTMLProps<import("react").ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>, unknown>;
|
|
81
|
+
ol: WebStyled<"ol", import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, unknown>;
|
|
82
|
+
optgroup: WebStyled<"optgroup", import("react").DetailedHTMLProps<import("react").OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>, unknown>;
|
|
83
|
+
option: WebStyled<"option", import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, unknown>;
|
|
84
|
+
output: WebStyled<"output", import("react").DetailedHTMLProps<import("react").OutputHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
85
|
+
p: WebStyled<"p", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, unknown>;
|
|
86
|
+
param: WebStyled<"param", import("react").DetailedHTMLProps<import("react").ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>, unknown>;
|
|
87
|
+
picture: WebStyled<"picture", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
88
|
+
pre: WebStyled<"pre", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLPreElement>, HTMLPreElement>, unknown>;
|
|
89
|
+
progress: WebStyled<"progress", import("react").DetailedHTMLProps<import("react").ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>, unknown>;
|
|
90
|
+
q: WebStyled<"q", import("react").DetailedHTMLProps<import("react").QuoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>, unknown>;
|
|
91
|
+
rp: WebStyled<"rp", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
92
|
+
rt: WebStyled<"rt", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
93
|
+
ruby: WebStyled<"ruby", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
94
|
+
s: WebStyled<"s", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
95
|
+
samp: WebStyled<"samp", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
96
|
+
slot: WebStyled<"slot", import("react").DetailedHTMLProps<import("react").SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>, unknown>;
|
|
97
|
+
script: WebStyled<"script", import("react").DetailedHTMLProps<import("react").ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>, unknown>;
|
|
98
|
+
section: WebStyled<"section", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
99
|
+
select: WebStyled<"select", import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, unknown>;
|
|
100
|
+
small: WebStyled<"small", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
101
|
+
source: WebStyled<"source", import("react").DetailedHTMLProps<import("react").SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>, unknown>;
|
|
102
|
+
span: WebStyled<"span", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, unknown>;
|
|
103
|
+
strong: WebStyled<"strong", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
104
|
+
style: WebStyled<"style", import("react").DetailedHTMLProps<import("react").StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>, unknown>;
|
|
105
|
+
sub: WebStyled<"sub", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
106
|
+
summary: WebStyled<"summary", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
107
|
+
sup: WebStyled<"sup", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
108
|
+
table: WebStyled<"table", import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, unknown>;
|
|
109
|
+
template: WebStyled<"template", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTemplateElement>, HTMLTemplateElement>, unknown>;
|
|
110
|
+
tbody: WebStyled<"tbody", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, unknown>;
|
|
111
|
+
td: WebStyled<"td", import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, unknown>;
|
|
112
|
+
textarea: WebStyled<"textarea", import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, unknown>;
|
|
113
|
+
tfoot: WebStyled<"tfoot", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, unknown>;
|
|
114
|
+
th: WebStyled<"th", import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, unknown>;
|
|
115
|
+
thead: WebStyled<"thead", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, unknown>;
|
|
116
|
+
time: WebStyled<"time", import("react").DetailedHTMLProps<import("react").TimeHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
117
|
+
title: WebStyled<"title", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, unknown>;
|
|
118
|
+
tr: WebStyled<"tr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, unknown>;
|
|
119
|
+
track: WebStyled<"track", import("react").DetailedHTMLProps<import("react").TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>, unknown>;
|
|
120
|
+
u: WebStyled<"u", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
121
|
+
ul: WebStyled<"ul", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, unknown>;
|
|
122
|
+
var: WebStyled<"var", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
123
|
+
video: WebStyled<"video", import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, unknown>;
|
|
124
|
+
wbr: WebStyled<"wbr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
125
|
+
webview: WebStyled<"webview", import("react").DetailedHTMLProps<import("react").WebViewHTMLAttributes<HTMLWebViewElement>, HTMLWebViewElement>, unknown>;
|
|
126
|
+
svg: WebStyled<"svg", import("react").SVGProps<SVGSVGElement>, unknown>;
|
|
127
|
+
animate: WebStyled<"animate", import("react").SVGProps<SVGElement>, unknown>;
|
|
128
|
+
animateMotion: WebStyled<"animateMotion", import("react").SVGProps<SVGElement>, unknown>;
|
|
129
|
+
animateTransform: WebStyled<"animateTransform", import("react").SVGProps<SVGElement>, unknown>;
|
|
130
|
+
circle: WebStyled<"circle", import("react").SVGProps<SVGCircleElement>, unknown>;
|
|
131
|
+
clipPath: WebStyled<"clipPath", import("react").SVGProps<SVGClipPathElement>, unknown>;
|
|
132
|
+
defs: WebStyled<"defs", import("react").SVGProps<SVGDefsElement>, unknown>;
|
|
133
|
+
desc: WebStyled<"desc", import("react").SVGProps<SVGDescElement>, unknown>;
|
|
134
|
+
ellipse: WebStyled<"ellipse", import("react").SVGProps<SVGEllipseElement>, unknown>;
|
|
135
|
+
feBlend: WebStyled<"feBlend", import("react").SVGProps<SVGFEBlendElement>, unknown>;
|
|
136
|
+
feColorMatrix: WebStyled<"feColorMatrix", import("react").SVGProps<SVGFEColorMatrixElement>, unknown>;
|
|
137
|
+
feComponentTransfer: WebStyled<"feComponentTransfer", import("react").SVGProps<SVGFEComponentTransferElement>, unknown>;
|
|
138
|
+
feComposite: WebStyled<"feComposite", import("react").SVGProps<SVGFECompositeElement>, unknown>;
|
|
139
|
+
feConvolveMatrix: WebStyled<"feConvolveMatrix", import("react").SVGProps<SVGFEConvolveMatrixElement>, unknown>;
|
|
140
|
+
feDiffuseLighting: WebStyled<"feDiffuseLighting", import("react").SVGProps<SVGFEDiffuseLightingElement>, unknown>;
|
|
141
|
+
feDisplacementMap: WebStyled<"feDisplacementMap", import("react").SVGProps<SVGFEDisplacementMapElement>, unknown>;
|
|
142
|
+
feDistantLight: WebStyled<"feDistantLight", import("react").SVGProps<SVGFEDistantLightElement>, unknown>;
|
|
143
|
+
feDropShadow: WebStyled<"feDropShadow", import("react").SVGProps<SVGFEDropShadowElement>, unknown>;
|
|
144
|
+
feFlood: WebStyled<"feFlood", import("react").SVGProps<SVGFEFloodElement>, unknown>;
|
|
145
|
+
feFuncA: WebStyled<"feFuncA", import("react").SVGProps<SVGFEFuncAElement>, unknown>;
|
|
146
|
+
feFuncB: WebStyled<"feFuncB", import("react").SVGProps<SVGFEFuncBElement>, unknown>;
|
|
147
|
+
feFuncG: WebStyled<"feFuncG", import("react").SVGProps<SVGFEFuncGElement>, unknown>;
|
|
148
|
+
feFuncR: WebStyled<"feFuncR", import("react").SVGProps<SVGFEFuncRElement>, unknown>;
|
|
149
|
+
feGaussianBlur: WebStyled<"feGaussianBlur", import("react").SVGProps<SVGFEGaussianBlurElement>, unknown>;
|
|
150
|
+
feImage: WebStyled<"feImage", import("react").SVGProps<SVGFEImageElement>, unknown>;
|
|
151
|
+
feMerge: WebStyled<"feMerge", import("react").SVGProps<SVGFEMergeElement>, unknown>;
|
|
152
|
+
feMergeNode: WebStyled<"feMergeNode", import("react").SVGProps<SVGFEMergeNodeElement>, unknown>;
|
|
153
|
+
feMorphology: WebStyled<"feMorphology", import("react").SVGProps<SVGFEMorphologyElement>, unknown>;
|
|
154
|
+
feOffset: WebStyled<"feOffset", import("react").SVGProps<SVGFEOffsetElement>, unknown>;
|
|
155
|
+
fePointLight: WebStyled<"fePointLight", import("react").SVGProps<SVGFEPointLightElement>, unknown>;
|
|
156
|
+
feSpecularLighting: WebStyled<"feSpecularLighting", import("react").SVGProps<SVGFESpecularLightingElement>, unknown>;
|
|
157
|
+
feSpotLight: WebStyled<"feSpotLight", import("react").SVGProps<SVGFESpotLightElement>, unknown>;
|
|
158
|
+
feTile: WebStyled<"feTile", import("react").SVGProps<SVGFETileElement>, unknown>;
|
|
159
|
+
feTurbulence: WebStyled<"feTurbulence", import("react").SVGProps<SVGFETurbulenceElement>, unknown>;
|
|
160
|
+
filter: WebStyled<"filter", import("react").SVGProps<SVGFilterElement>, unknown>;
|
|
161
|
+
foreignObject: WebStyled<"foreignObject", import("react").SVGProps<SVGForeignObjectElement>, unknown>;
|
|
162
|
+
g: WebStyled<"g", import("react").SVGProps<SVGGElement>, unknown>;
|
|
163
|
+
image: WebStyled<"image", import("react").SVGProps<SVGImageElement>, unknown>;
|
|
164
|
+
line: WebStyled<"line", import("react").SVGProps<SVGLineElement>, unknown>;
|
|
165
|
+
linearGradient: WebStyled<"linearGradient", import("react").SVGProps<SVGLinearGradientElement>, unknown>;
|
|
166
|
+
marker: WebStyled<"marker", import("react").SVGProps<SVGMarkerElement>, unknown>;
|
|
167
|
+
mask: WebStyled<"mask", import("react").SVGProps<SVGMaskElement>, unknown>;
|
|
168
|
+
metadata: WebStyled<"metadata", import("react").SVGProps<SVGMetadataElement>, unknown>;
|
|
169
|
+
mpath: WebStyled<"mpath", import("react").SVGProps<SVGElement>, unknown>;
|
|
170
|
+
path: WebStyled<"path", import("react").SVGProps<SVGPathElement>, unknown>;
|
|
171
|
+
pattern: WebStyled<"pattern", import("react").SVGProps<SVGPatternElement>, unknown>;
|
|
172
|
+
polygon: WebStyled<"polygon", import("react").SVGProps<SVGPolygonElement>, unknown>;
|
|
173
|
+
polyline: WebStyled<"polyline", import("react").SVGProps<SVGPolylineElement>, unknown>;
|
|
174
|
+
radialGradient: WebStyled<"radialGradient", import("react").SVGProps<SVGRadialGradientElement>, unknown>;
|
|
175
|
+
rect: WebStyled<"rect", import("react").SVGProps<SVGRectElement>, unknown>;
|
|
176
|
+
stop: WebStyled<"stop", import("react").SVGProps<SVGStopElement>, unknown>;
|
|
177
|
+
switch: WebStyled<"switch", import("react").SVGProps<SVGSwitchElement>, unknown>;
|
|
178
|
+
symbol: WebStyled<"symbol", import("react").SVGProps<SVGSymbolElement>, unknown>;
|
|
179
|
+
text: WebStyled<"text", import("react").SVGProps<SVGTextElement>, unknown>;
|
|
180
|
+
textPath: WebStyled<"textPath", import("react").SVGProps<SVGTextPathElement>, unknown>;
|
|
181
|
+
tspan: WebStyled<"tspan", import("react").SVGProps<SVGTSpanElement>, unknown>;
|
|
182
|
+
use: WebStyled<"use", import("react").SVGProps<SVGUseElement>, unknown>;
|
|
183
|
+
view: WebStyled<"view", import("react").SVGProps<SVGViewElement>, unknown>;
|
|
184
|
+
};
|
|
185
|
+
export default styled;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../src/constructors/styled.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,OAA6B,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAKzE,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEX,CAAC;AAQF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SC_VERSION } from './constants';
|
|
2
|
+
import createGlobalStyle from './constructors/createGlobalStyle';
|
|
3
|
+
import css from './constructors/css';
|
|
4
|
+
import keyframes from './constructors/keyframes';
|
|
5
|
+
import withTheme from './hoc/withTheme';
|
|
6
|
+
import useTheme from './hooks/useTheme';
|
|
7
|
+
import ServerStyleSheet from './models/ServerStyleSheet';
|
|
8
|
+
import StyleSheetManager, { StyleSheetConsumer, StyleSheetContext } from './models/StyleSheetManager';
|
|
9
|
+
import ThemeProvider, { ThemeConsumer, ThemeContext } from './models/ThemeProvider';
|
|
10
|
+
import isStyledComponent from './utils/isStyledComponent';
|
|
11
|
+
declare global {
|
|
12
|
+
interface Window {
|
|
13
|
+
'__styled-components-init__'?: number;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export * from './secretInternals';
|
|
17
|
+
export { createGlobalStyle, css, isStyledComponent, keyframes, ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, useTheme, SC_VERSION as version, withTheme, };
|
|
18
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AACzD,OAAO,iBAAiB,EAAE,EACxB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,aAAa,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAI1D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,4BAA4B,CAAC,EAAE,MAAM,CAAC;KACvC;CACF;AAsCD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,GAAG,EACH,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,UAAU,IAAI,OAAO,EACrB,SAAS,GACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SC_ATTR: string;
|
|
2
|
+
export declare const SC_ATTR_ACTIVE = "active";
|
|
3
|
+
export declare const SC_ATTR_VERSION = "data-styled-version";
|
|
4
|
+
export declare const SC_VERSION: string;
|
|
5
|
+
export declare const SPLITTER = "/*!sc*/\n";
|
|
6
|
+
export declare const IS_BROWSER: boolean;
|
|
7
|
+
export declare const DISABLE_SPEEDY: boolean;
|
|
8
|
+
export declare const STATIC_EXECUTION_CONTEXT: {};
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,EAAE,MAEP,CAAC;AAEhB,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,UAAU,QAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,cAAc,CAAC;AAEpC,eAAO,MAAM,UAAU,SAA2D,CAAC;AAEnF,eAAO,MAAM,cAAc,SAgB1B,CAAC;AAGF,eAAO,MAAM,wBAAwB,IAAK,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Attrs, Interpolation, IStyledComponent, IStyledComponentFactory, IStyledNativeComponent, IStyledNativeComponentFactory, NativeTarget, StyledNativeOptions, StyledOptions, StyledTarget, Styles, WebTarget } from '../types';
|
|
2
|
+
export interface NativeStyled<Target extends NativeTarget, OuterProps = unknown, OuterStatics = unknown> {
|
|
3
|
+
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Exclude<Interpolation<OuterProps & Props>, IStyledComponent<any>>[]): IStyledNativeComponent<Target, OuterProps & Props> & OuterStatics & Statics;
|
|
4
|
+
attrs(attrs: Attrs<OuterProps>): NativeStyled<Target, OuterProps, OuterStatics>;
|
|
5
|
+
withConfig(config: StyledNativeOptions<OuterProps>): NativeStyled<Target, OuterProps, OuterStatics>;
|
|
6
|
+
}
|
|
7
|
+
export interface WebStyled<Target extends WebTarget, OuterProps = unknown, OuterStatics = unknown> {
|
|
8
|
+
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Interpolation<OuterProps & Props>[]): IStyledComponent<Target, OuterProps & Props> & OuterStatics & Statics;
|
|
9
|
+
attrs(attrs: Attrs<OuterProps>): WebStyled<Target, OuterProps, OuterStatics>;
|
|
10
|
+
withConfig(config: StyledOptions<OuterProps>): WebStyled<Target, OuterProps, OuterStatics>;
|
|
11
|
+
}
|
|
12
|
+
export default function constructWithOptions<Environment extends 'web' | 'native', Target extends StyledTarget, OuterProps = unknown, // used for styled<{}>().attrs() so attrs() gets the generic prop context
|
|
13
|
+
OuterStatics = unknown>(componentConstructor: Environment extends 'web' ? IStyledComponentFactory<any, any, any> : IStyledNativeComponentFactory<any, any, any>, tag: Target, options?: Environment extends 'web' ? StyledOptions<OuterProps> : StyledNativeOptions<OuterProps>): {
|
|
14
|
+
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Interpolation<OuterProps & Props>[]): ReturnType<Environment extends "web" ? IStyledComponentFactory<Target, OuterProps & Props, OuterStatics & Statics> : IStyledNativeComponentFactory<Target, OuterProps & Props, OuterStatics & Statics>>;
|
|
15
|
+
attrs(attrs: Attrs<OuterProps>): any;
|
|
16
|
+
/**
|
|
17
|
+
* If config methods are called, wrap up a new template function and merge options */
|
|
18
|
+
withConfig(config: Environment extends 'web' ? StyledOptions<OuterProps> : StyledNativeOptions<OuterProps>): any;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=constructWithOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constructWithOptions.d.ts","sourceRoot":"","sources":["../../src/constructors/constructWithOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,YAAY,EAEZ,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,MAAM,EACN,SAAS,EACV,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,YAAY,CAC3B,MAAM,SAAS,YAAY,EAC3B,UAAU,GAAG,OAAO,EACpB,YAAY,GAAG,OAAO;IAEtB,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjC,aAAa,EAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,EACzC,GAAG,cAAc,EAAE,OAAO,CAAC,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,EAAE,GACrF,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;IAC/E,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAChF,UAAU,CACR,MAAM,EAAE,mBAAmB,CAAC,UAAU,CAAC,GACtC,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,SAAS,CAAC,MAAM,SAAS,SAAS,EAAE,UAAU,GAAG,OAAO,EAAE,YAAY,GAAG,OAAO;IAC/F,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjC,aAAa,EAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,EACzC,GAAG,cAAc,EAAE,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,GACrD,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;IACzE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAC7E,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;CAC5F;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,WAAW,SAAS,KAAK,GAAG,QAAQ,EACpC,MAAM,SAAS,YAAY,EAC3B,UAAU,GAAG,OAAO,EAAE,yEAAyE;AAC/F,YAAY,GAAG,OAAO,EAEtB,oBAAoB,EAAE,WAAW,SAAS,KAAK,GAC3C,uBAAuB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GACtC,6BAA6B,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAChD,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAW,SAAS,KAAK,GAC9B,aAAa,CAAC,UAAU,CAAC,GACzB,mBAAmB,CAAC,UAAU,CAA6C;;iBA6B9C,MAAM,UAAU,CAAC;IAMlD;yFACqF;uBAE3E,WAAW,SAAS,KAAK,GAAG,cAAc,UAAU,CAAC,GAAG,oBAAoB,UAAU,CAAC;EAQlG"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtensibleObject, Interpolation, Styles } from '../types';
|
|
3
|
+
export default function createGlobalStyle<Props = unknown>(strings: Styles<Props>, ...interpolations: Array<Interpolation<Props>>): React.NamedExoticComponent<ExtensibleObject>;
|
|
4
|
+
//# sourceMappingURL=createGlobalStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGlobalStyle.d.ts","sourceRoot":"","sources":["../../src/constructors/createGlobalStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAMnE,OAAO,EAEL,gBAAgB,EAChB,aAAa,EAGb,MAAM,EACP,MAAM,UAAU,CAAC;AAMlB,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,GAAG,OAAO,EACvD,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EACtB,GAAG,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,gDA6E/C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Interpolation, Styles } from '../types';
|
|
2
|
+
export default function css<Props>(styles: Styles<Props>, ...interpolations: Interpolation<Props>[]): TemplateStringsArray | (Interpolation<Props> & {
|
|
3
|
+
isCss?: boolean | undefined;
|
|
4
|
+
});
|
|
5
|
+
//# sourceMappingURL=css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/constructors/css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA+B,MAAM,EAAE,MAAM,UAAU,CAAC;AAmB9E,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,KAAK,EAC/B,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,EACrB,GAAG,cAAc,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE;;GA0B1C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Keyframes from '../models/Keyframes';
|
|
2
|
+
import { Interpolation, Styles } from '../types';
|
|
3
|
+
export default function keyframes<Props = unknown>(strings: Styles<Props>, ...interpolations: Array<Interpolation<Props>>): Keyframes;
|
|
4
|
+
//# sourceMappingURL=keyframes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyframes.d.ts","sourceRoot":"","sources":["../../src/constructors/keyframes.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIjD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,GAAG,OAAO,EAC/C,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EACtB,GAAG,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC7C,SAAS,CAgBX"}
|