node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1 @@
export default function addUnitIfNeeded(name: string, value: any): string;

View File

@@ -0,0 +1 @@
export declare const checkDynamicCreation: (displayName: string, componentId?: string | undefined) => void;

View File

@@ -0,0 +1,3 @@
export declare const LIMIT = 200;
declare const _default: (displayName: string, componentId: string) => (className: string) => void;
export default _default;

View File

@@ -0,0 +1,4 @@
import { DefaultTheme, ExecutionProps } from '../types';
export default function determineTheme(props: ExecutionProps, providedTheme?: DefaultTheme | undefined, defaultProps?: {
theme?: DefaultTheme | undefined;
}): DefaultTheme | undefined;

View File

@@ -0,0 +1,4 @@
declare const elements: readonly ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"];
declare const _default: Set<"object" | "g" | "map" | "big" | "link" | "small" | "sub" | "sup" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "summary" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "svg" | "circle" | "clipPath" | "defs" | "ellipse" | "foreignObject" | "image" | "line" | "linearGradient" | "marker" | "mask" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "text" | "tspan" | "use">;
export default _default;
export type SupportedHTMLElements = (typeof elements)[number];

View File

@@ -0,0 +1,3 @@
import { Dict } from '../types';
export declare const EMPTY_ARRAY: readonly any[];
export declare const EMPTY_OBJECT: Readonly<Dict<any>>;

View File

@@ -0,0 +1,5 @@
/**
* Create an error file out of errors.md for development and a simple web link to the full errors
* in production mode.
*/
export default function throwStyledComponentsError(code: string | number, ...interpolations: any[]): Error;

View File

@@ -0,0 +1,21 @@
declare const _default: {
'1': string;
'2': string;
'3': string;
'4': string;
'5': string;
'6': string;
'7': string;
'8': string;
'9': string;
'10': string;
'11': string;
'12': string;
'13': string;
'14': string;
'15': string;
'16': string;
'17': string;
'18': string;
};
export default _default;

View File

@@ -0,0 +1,5 @@
/**
* TODO: Explore using CSS.escape when it becomes more available
* in evergreen browsers.
*/
export default function escape(str: string): string;

View File

@@ -0,0 +1,4 @@
import StyleSheet from '../sheet';
import { Dict, ExecutionContext, Interpolation, RuleSet, Stringifier } from '../types';
export declare const objToCssArray: (obj: Dict<any>) => string[];
export default function flatten<Props extends object>(chunk: Interpolation<object>, executionContext?: (ExecutionContext & Props) | undefined, styleSheet?: StyleSheet | undefined, stylisInstance?: Stringifier | undefined): RuleSet<Props>;

View File

@@ -0,0 +1 @@
export default function generateAlphabeticName(code: number): string;

View File

@@ -0,0 +1 @@
export default function generateComponentId(str: string): string;

View File

@@ -0,0 +1,2 @@
import { StyledTarget } from '../types';
export default function generateDisplayName(target: StyledTarget<any>): string;

View File

@@ -0,0 +1,2 @@
import { StyledTarget } from '../types';
export default function getComponentName(target: StyledTarget<any>): string;

View File

@@ -0,0 +1,3 @@
export declare const SEED = 5381;
export declare const phash: (h: number, x: string) => number;
export declare const hash: (x: string) => number;

View File

@@ -0,0 +1,51 @@
import React from 'react';
import { AnyComponent } from '../types';
/**
* Adapted from hoist-non-react-statics to avoid the react-is dependency.
*/
declare const REACT_STATICS: {
childContextTypes: boolean;
contextType: boolean;
contextTypes: boolean;
defaultProps: boolean;
displayName: boolean;
getDefaultProps: boolean;
getDerivedStateFromError: boolean;
getDerivedStateFromProps: boolean;
mixins: boolean;
propTypes: boolean;
type: boolean;
};
declare const KNOWN_STATICS: {
name: boolean;
length: boolean;
prototype: boolean;
caller: boolean;
callee: boolean;
arguments: boolean;
arity: boolean;
};
declare const FORWARD_REF_STATICS: {
$$typeof: boolean;
render: boolean;
defaultProps: boolean;
displayName: boolean;
propTypes: boolean;
};
declare const MEMO_STATICS: {
$$typeof: boolean;
compare: boolean;
defaultProps: boolean;
displayName: boolean;
propTypes: boolean;
type: boolean;
};
type OmniComponent = AnyComponent;
type ExcludeList = {
[key: string]: true;
};
export type NonReactStatics<S extends OmniComponent, C extends ExcludeList = {}> = {
[key in Exclude<keyof S, S extends React.MemoExoticComponent<any> ? keyof typeof MEMO_STATICS | keyof C : S extends React.ForwardRefExoticComponent<any> ? keyof typeof FORWARD_REF_STATICS | keyof C : keyof typeof REACT_STATICS | keyof typeof KNOWN_STATICS | keyof C>]: S[key];
};
export default function hoistNonReactStatics<T extends OmniComponent, S extends OmniComponent, C extends ExcludeList = {}>(targetComponent: T, sourceComponent: S, excludelist?: C | undefined): T & NonReactStatics<S, C>;
export {};

View File

@@ -0,0 +1,14 @@
/**
* Hyphenates a camelcased CSS property name, for example:
*
* > hyphenateStyleName('backgroundColor')
* < "background-color"
* > hyphenateStyleName('MozTransition')
* < "-moz-transition"
* > hyphenateStyleName('msTransition')
* < "-ms-transition"
*
* As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
* is converted to `-ms-`.
*/
export default function hyphenateStyleName(string: string): string;

View File

@@ -0,0 +1,2 @@
import { Interpolation } from '../types';
export default function interleave<Props extends object>(strings: readonly string[], interpolations: Interpolation<Props>[]): Interpolation<Props>[];

View File

@@ -0,0 +1 @@
export default function isFunction(test: any): test is Function;

View File

@@ -0,0 +1 @@
export default function isPlainObject(x: any): x is Record<any, any>;

View File

@@ -0,0 +1 @@
export default function isStatelessFunction(test: any): test is Function;

View File

@@ -0,0 +1,2 @@
import { RuleSet } from '../types';
export default function isStaticRules<Props extends object>(rules: RuleSet<Props>): boolean;

View File

@@ -0,0 +1,2 @@
import { StyledComponentBrand } from '../types';
export default function isStyledComponent(target: any): target is StyledComponentBrand;

View File

@@ -0,0 +1,2 @@
import { StyledTarget } from '../types';
export default function isTag(target: StyledTarget<'web'>): target is string;

View File

@@ -0,0 +1,5 @@
/**
* Convenience function for joining strings to form className chains
*/
export declare function joinStrings(a?: string | undefined, b?: string | undefined): string;
export declare function joinStringArray(arr: string[], sep?: string | undefined): string;

View File

@@ -0,0 +1,6 @@
/**
* Arrays & POJOs merged recursively, other objects and value types are overridden
* If target is not a POJO or an Array, it will get source properties injected via shallow merge
* Source objects applied left to right. Mutates & returns target. Similar to lodash merge.
*/
export default function mixinDeep(target: any, ...sources: any[]): any;

View File

@@ -0,0 +1 @@
export default function getNonce(): string | null;

View File

@@ -0,0 +1,17 @@
/**
* If the Object prototype is frozen, the "toString" property is non-writable. This means that any objects which inherit this property
* cannot have the property changed using a "=" assignment operator. If using strict mode, attempting that will cause an error. If not using
* strict mode, attempting that will be silently ignored.
*
* If the Object prototype is frozen, inherited non-writable properties can still be shadowed using one of two mechanisms:
*
* 1. ES6 class methods: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#methods
* 2. Using the `Object.defineProperty()` static method:
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty
*
* However, this project uses Babel to transpile ES6 classes, and transforms ES6 class methods to use the assignment operator instead:
* https://babeljs.io/docs/babel-plugin-transform-class-properties#options
*
* Therefore, the most compatible way to shadow the prototype's "toString" property is to define a new "toString" property on this object.
*/
export declare function setToString(object: object, toStringFn: () => string): void;

View File

@@ -0,0 +1,10 @@
import * as stylis from 'stylis';
import { Stringifier } from '../types';
export type ICreateStylisInstance = {
options?: {
namespace?: string | undefined;
prefix?: boolean | undefined;
} | undefined;
plugins?: stylis.Middleware[] | undefined;
};
export default function createStylisInstance({ options, plugins, }?: ICreateStylisInstance): Stringifier;