styled-components 6.1.13 → 6.1.15
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/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 +7 -2
- 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/native/dist/styled-components.native.cjs.js +1 -1
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +1 -1
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/package.json +5 -2
- package/native/dist/base.d.ts +0 -12
- package/native/dist/constants.d.ts +0 -8
- package/native/dist/constructors/constructWithOptions.d.ts +0 -18
- package/native/dist/constructors/createGlobalStyle.d.ts +0 -3
- package/native/dist/constructors/css.d.ts +0 -4
- package/native/dist/constructors/keyframes.d.ts +0 -3
- package/native/dist/constructors/styled.d.ts +0 -138
- package/native/dist/hoc/withTheme.d.ts +0 -3
- package/native/dist/hoc/withTheme.spec.d.ts +0 -1
- package/native/dist/index-standalone.d.ts +0 -2
- package/native/dist/index.d.ts +0 -4
- package/native/dist/macro/index.d.ts +0 -2
- package/native/dist/models/ComponentStyle.d.ts +0 -15
- package/native/dist/models/GlobalStyle.d.ts +0 -11
- package/native/dist/models/InlineStyle.d.ts +0 -6
- package/native/dist/models/Keyframes.d.ts +0 -10
- package/native/dist/models/ServerStyleSheet.d.ts +0 -16
- package/native/dist/models/StyleSheetManager.d.ts +0 -65
- package/native/dist/models/StyledComponent.d.ts +0 -3
- package/native/dist/models/StyledNativeComponent.d.ts +0 -3
- package/native/dist/models/ThemeProvider.d.ts +0 -47
- package/native/dist/native/index.d.ts +0 -36
- package/native/dist/secretInternals.d.ts +0 -5
- package/native/dist/sheet/GroupIDAllocator.d.ts +0 -4
- package/native/dist/sheet/GroupedTag.d.ts +0 -11
- package/native/dist/sheet/Rehydration.d.ts +0 -3
- package/native/dist/sheet/Sheet.d.ts +0 -38
- package/native/dist/sheet/Tag.d.ts +0 -54
- package/native/dist/sheet/dom.d.ts +0 -4
- package/native/dist/sheet/index.d.ts +0 -1
- package/native/dist/sheet/types.d.ts +0 -34
- package/native/dist/test/globals.d.ts +0 -2
- package/native/dist/test/utils.d.ts +0 -144
- package/native/dist/test/veryLargeUnionType.d.ts +0 -1
- package/native/dist/types.d.ts +0 -183
- package/native/dist/utils/addUnitIfNeeded.d.ts +0 -1
- package/native/dist/utils/checkDynamicCreation.d.ts +0 -1
- package/native/dist/utils/createWarnTooManyClasses.d.ts +0 -3
- package/native/dist/utils/determineTheme.d.ts +0 -4
- package/native/dist/utils/domElements.d.ts +0 -4
- package/native/dist/utils/empties.d.ts +0 -3
- package/native/dist/utils/error.d.ts +0 -5
- package/native/dist/utils/errors.d.ts +0 -21
- package/native/dist/utils/escape.d.ts +0 -5
- package/native/dist/utils/flatten.d.ts +0 -4
- package/native/dist/utils/generateAlphabeticName.d.ts +0 -1
- package/native/dist/utils/generateComponentId.d.ts +0 -1
- package/native/dist/utils/generateDisplayName.d.ts +0 -2
- package/native/dist/utils/getComponentName.d.ts +0 -2
- package/native/dist/utils/hash.d.ts +0 -3
- package/native/dist/utils/hoist.d.ts +0 -51
- package/native/dist/utils/hyphenateStyleName.d.ts +0 -14
- package/native/dist/utils/interleave.d.ts +0 -2
- package/native/dist/utils/isFunction.d.ts +0 -1
- package/native/dist/utils/isPlainObject.d.ts +0 -1
- package/native/dist/utils/isStatelessFunction.d.ts +0 -1
- package/native/dist/utils/isStaticRules.d.ts +0 -2
- package/native/dist/utils/isStyledComponent.d.ts +0 -2
- package/native/dist/utils/isTag.d.ts +0 -2
- package/native/dist/utils/joinStrings.d.ts +0 -5
- package/native/dist/utils/mixinDeep.d.ts +0 -6
- package/native/dist/utils/nonce.d.ts +0 -1
- package/native/dist/utils/setToString.d.ts +0 -17
- package/native/dist/utils/stylis.d.ts +0 -10
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Arrays & POJOs merged recursively, other objects and value types are overridden
|
|
3
|
-
* If target is not a POJO or an Array, it will get source properties injected via shallow merge
|
|
4
|
-
* Source objects applied left to right. Mutates & returns target. Similar to lodash merge.
|
|
5
|
-
*/
|
|
6
|
-
export default function mixinDeep(target: any, ...sources: any[]): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function getNonce(): string | null;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* If the Object prototype is frozen, the "toString" property is non-writable. This means that any objects which inherit this property
|
|
3
|
-
* cannot have the property changed using a "=" assignment operator. If using strict mode, attempting that will cause an error. If not using
|
|
4
|
-
* strict mode, attempting that will be silently ignored.
|
|
5
|
-
*
|
|
6
|
-
* If the Object prototype is frozen, inherited non-writable properties can still be shadowed using one of two mechanisms:
|
|
7
|
-
*
|
|
8
|
-
* 1. ES6 class methods: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#methods
|
|
9
|
-
* 2. Using the `Object.defineProperty()` static method:
|
|
10
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty
|
|
11
|
-
*
|
|
12
|
-
* However, this project uses Babel to transpile ES6 classes, and transforms ES6 class methods to use the assignment operator instead:
|
|
13
|
-
* https://babeljs.io/docs/babel-plugin-transform-class-properties#options
|
|
14
|
-
*
|
|
15
|
-
* Therefore, the most compatible way to shadow the prototype's "toString" property is to define a new "toString" property on this object.
|
|
16
|
-
*/
|
|
17
|
-
export declare function setToString(object: object, toStringFn: () => string): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as stylis from 'stylis';
|
|
2
|
-
import { Stringifier } from '../types';
|
|
3
|
-
export type ICreateStylisInstance = {
|
|
4
|
-
options?: {
|
|
5
|
-
namespace?: string | undefined;
|
|
6
|
-
prefix?: boolean | undefined;
|
|
7
|
-
} | undefined;
|
|
8
|
-
plugins?: stylis.Middleware[] | undefined;
|
|
9
|
-
};
|
|
10
|
-
export default function createStylisInstance({ options, plugins, }?: ICreateStylisInstance): Stringifier;
|