styled-components 6.1.1 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +31 -31
  2. package/dist/constructors/constructWithOptions.d.ts +1 -1
  3. package/dist/hoc/withTheme.d.ts +1 -1
  4. package/dist/native/index.d.ts +1 -0
  5. package/dist/sheet/Tag.d.ts +4 -4
  6. package/dist/styled-components.browser.cjs.js +1 -1
  7. package/dist/styled-components.browser.cjs.js.map +1 -1
  8. package/dist/styled-components.browser.esm.js +1 -1
  9. package/dist/styled-components.browser.esm.js.map +1 -1
  10. package/dist/styled-components.cjs.js +1 -1
  11. package/dist/styled-components.cjs.js.map +1 -1
  12. package/dist/styled-components.esm.js +1 -1
  13. package/dist/styled-components.esm.js.map +1 -1
  14. package/dist/styled-components.js +1 -1
  15. package/dist/styled-components.js.map +1 -1
  16. package/dist/styled-components.min.js +1 -1
  17. package/dist/styled-components.min.js.map +1 -1
  18. package/dist/types.d.ts +3 -3
  19. package/dist/utils/domElements.d.ts +1 -1
  20. package/native/dist/constructors/styled.d.ts +9 -8
  21. package/native/dist/dist/base.d.ts +12 -0
  22. package/native/dist/dist/constants.d.ts +8 -0
  23. package/native/dist/dist/constructors/constructWithOptions.d.ts +18 -0
  24. package/native/dist/dist/constructors/createGlobalStyle.d.ts +3 -0
  25. package/native/dist/dist/constructors/css.d.ts +4 -0
  26. package/native/dist/dist/constructors/keyframes.d.ts +3 -0
  27. package/native/dist/dist/constructors/styled.d.ts +138 -0
  28. package/native/dist/dist/hoc/withTheme.d.ts +3 -0
  29. package/native/dist/dist/hoc/withTheme.spec.d.ts +1 -0
  30. package/native/dist/dist/index-standalone.d.ts +2 -0
  31. package/native/dist/dist/index.d.ts +4 -0
  32. package/native/dist/dist/models/ComponentStyle.d.ts +15 -0
  33. package/native/dist/dist/models/GlobalStyle.d.ts +11 -0
  34. package/native/dist/dist/models/InlineStyle.d.ts +6 -0
  35. package/native/dist/dist/models/Keyframes.d.ts +10 -0
  36. package/native/dist/dist/models/ServerStyleSheet.d.ts +16 -0
  37. package/native/dist/dist/models/StyleSheetManager.d.ts +65 -0
  38. package/native/dist/dist/models/StyledComponent.d.ts +3 -0
  39. package/native/dist/dist/models/StyledNativeComponent.d.ts +3 -0
  40. package/native/dist/dist/models/ThemeProvider.d.ts +47 -0
  41. package/native/dist/dist/native/index.d.ts +37 -0
  42. package/native/dist/dist/secretInternals.d.ts +5 -0
  43. package/native/dist/dist/sheet/GroupIDAllocator.d.ts +4 -0
  44. package/native/dist/dist/sheet/GroupedTag.d.ts +11 -0
  45. package/native/dist/dist/sheet/Rehydration.d.ts +3 -0
  46. package/native/dist/dist/sheet/Sheet.d.ts +38 -0
  47. package/native/dist/dist/sheet/Tag.d.ts +54 -0
  48. package/native/dist/dist/sheet/dom.d.ts +4 -0
  49. package/native/dist/dist/sheet/index.d.ts +1 -0
  50. package/native/dist/dist/sheet/types.d.ts +34 -0
  51. package/native/dist/dist/test/globals.d.ts +2 -0
  52. package/native/dist/dist/test/utils.d.ts +144 -0
  53. package/native/dist/dist/test/veryLargeUnionType.d.ts +1 -0
  54. package/native/dist/dist/types.d.ts +183 -0
  55. package/native/dist/dist/utils/addUnitIfNeeded.d.ts +1 -0
  56. package/native/dist/dist/utils/checkDynamicCreation.d.ts +1 -0
  57. package/native/dist/dist/utils/createWarnTooManyClasses.d.ts +3 -0
  58. package/native/dist/dist/utils/determineTheme.d.ts +4 -0
  59. package/native/dist/dist/utils/domElements.d.ts +4 -0
  60. package/native/dist/dist/utils/empties.d.ts +3 -0
  61. package/native/dist/dist/utils/error.d.ts +5 -0
  62. package/native/dist/dist/utils/errors.d.ts +21 -0
  63. package/native/dist/dist/utils/escape.d.ts +5 -0
  64. package/native/dist/dist/utils/flatten.d.ts +4 -0
  65. package/native/dist/dist/utils/generateAlphabeticName.d.ts +1 -0
  66. package/native/dist/dist/utils/generateComponentId.d.ts +1 -0
  67. package/native/dist/dist/utils/generateDisplayName.d.ts +2 -0
  68. package/native/dist/dist/utils/getComponentName.d.ts +2 -0
  69. package/native/dist/dist/utils/hash.d.ts +3 -0
  70. package/native/dist/dist/utils/hoist.d.ts +51 -0
  71. package/native/dist/dist/utils/hyphenateStyleName.d.ts +14 -0
  72. package/native/dist/dist/utils/interleave.d.ts +2 -0
  73. package/native/dist/dist/utils/isFunction.d.ts +1 -0
  74. package/native/dist/dist/utils/isPlainObject.d.ts +1 -0
  75. package/native/dist/dist/utils/isStatelessFunction.d.ts +1 -0
  76. package/native/dist/dist/utils/isStaticRules.d.ts +2 -0
  77. package/native/dist/dist/utils/isStyledComponent.d.ts +2 -0
  78. package/native/dist/dist/utils/isTag.d.ts +2 -0
  79. package/native/dist/dist/utils/joinStrings.d.ts +5 -0
  80. package/native/dist/dist/utils/mixinDeep.d.ts +6 -0
  81. package/native/dist/dist/utils/nonce.d.ts +1 -0
  82. package/native/dist/dist/utils/setToString.d.ts +17 -0
  83. package/native/dist/dist/utils/stylis.d.ts +10 -0
  84. package/native/dist/hoc/withTheme.d.ts +1 -1
  85. package/native/dist/sheet/Tag.d.ts +4 -4
  86. package/native/dist/styled-components.native.cjs.js +1 -1
  87. package/native/dist/styled-components.native.cjs.js.map +1 -1
  88. package/native/dist/styled-components.native.esm.js +1 -1
  89. package/native/dist/styled-components.native.esm.js.map +1 -1
  90. package/native/dist/test/types.d.ts +9 -0
  91. package/native/dist/test/utils.d.ts +9 -8
  92. package/native/dist/types.d.ts +3 -3
  93. package/native/dist/utils/domElements.d.ts +1 -1
  94. package/package.json +62 -62
@@ -1,6 +1,13 @@
1
+ /// <reference types="react" />
1
2
  export declare const seedNextClassnames: (names: string[]) => string[];
2
3
  export declare const resetStyled: (isServer?: boolean) => (<Target extends import("..").WebTarget>(tag: Target) => import("../constructors/constructWithOptions").Styled<"web", Target, Target extends import("../types").KnownTarget ? import("react").ComponentPropsWithRef<Target> : import("../types").BaseObject, import("../types").BaseObject>) & {
3
4
  object: import("../constructors/constructWithOptions").Styled<"web", "object", import("react").DetailedHTMLProps<import("react").ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>, import("../types").BaseObject>;
5
+ g: import("../constructors/constructWithOptions").Styled<"web", "g", import("react").SVGProps<SVGGElement>, import("../types").BaseObject>;
6
+ big: import("../constructors/constructWithOptions").Styled<"web", "big", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
7
+ link: import("../constructors/constructWithOptions").Styled<"web", "link", import("react").DetailedHTMLProps<import("react").LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>, import("../types").BaseObject>;
8
+ small: import("../constructors/constructWithOptions").Styled<"web", "small", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
9
+ sub: import("../constructors/constructWithOptions").Styled<"web", "sub", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
10
+ sup: import("../constructors/constructWithOptions").Styled<"web", "sup", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
4
11
  a: import("../constructors/constructWithOptions").Styled<"web", "a", import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, import("../types").BaseObject>;
5
12
  abbr: import("../constructors/constructWithOptions").Styled<"web", "abbr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
6
13
  address: import("../constructors/constructWithOptions").Styled<"web", "address", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
@@ -12,7 +19,6 @@ export declare const resetStyled: (isServer?: boolean) => (<Target extends impor
12
19
  base: import("../constructors/constructWithOptions").Styled<"web", "base", import("react").DetailedHTMLProps<import("react").BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>, import("../types").BaseObject>;
13
20
  bdi: import("../constructors/constructWithOptions").Styled<"web", "bdi", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
14
21
  bdo: import("../constructors/constructWithOptions").Styled<"web", "bdo", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
15
- big: import("../constructors/constructWithOptions").Styled<"web", "big", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
16
22
  blockquote: import("../constructors/constructWithOptions").Styled<"web", "blockquote", import("react").DetailedHTMLProps<import("react").BlockquoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>, import("../types").BaseObject>;
17
23
  body: import("../constructors/constructWithOptions").Styled<"web", "body", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>, import("../types").BaseObject>;
18
24
  br: import("../constructors/constructWithOptions").Styled<"web", "br", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBRElement>, HTMLBRElement>, import("../types").BaseObject>;
@@ -60,7 +66,6 @@ export declare const resetStyled: (isServer?: boolean) => (<Target extends impor
60
66
  label: import("../constructors/constructWithOptions").Styled<"web", "label", import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, import("../types").BaseObject>;
61
67
  legend: import("../constructors/constructWithOptions").Styled<"web", "legend", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, import("../types").BaseObject>;
62
68
  li: import("../constructors/constructWithOptions").Styled<"web", "li", import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, import("../types").BaseObject>;
63
- link: import("../constructors/constructWithOptions").Styled<"web", "link", import("react").DetailedHTMLProps<import("react").LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>, import("../types").BaseObject>;
64
69
  main: import("../constructors/constructWithOptions").Styled<"web", "main", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
65
70
  map: import("../constructors/constructWithOptions").Styled<"web", "map", import("react").DetailedHTMLProps<import("react").MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>, import("../types").BaseObject>;
66
71
  mark: import("../constructors/constructWithOptions").Styled<"web", "mark", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
@@ -88,14 +93,11 @@ export declare const resetStyled: (isServer?: boolean) => (<Target extends impor
88
93
  script: import("../constructors/constructWithOptions").Styled<"web", "script", import("react").DetailedHTMLProps<import("react").ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>, import("../types").BaseObject>;
89
94
  section: import("../constructors/constructWithOptions").Styled<"web", "section", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
90
95
  select: import("../constructors/constructWithOptions").Styled<"web", "select", import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, import("../types").BaseObject>;
91
- small: import("../constructors/constructWithOptions").Styled<"web", "small", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
92
96
  source: import("../constructors/constructWithOptions").Styled<"web", "source", import("react").DetailedHTMLProps<import("react").SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>, import("../types").BaseObject>;
93
97
  span: import("../constructors/constructWithOptions").Styled<"web", "span", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../types").BaseObject>;
94
98
  strong: import("../constructors/constructWithOptions").Styled<"web", "strong", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
95
99
  style: import("../constructors/constructWithOptions").Styled<"web", "style", import("react").DetailedHTMLProps<import("react").StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>, import("../types").BaseObject>;
96
- sub: import("../constructors/constructWithOptions").Styled<"web", "sub", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
97
100
  summary: import("../constructors/constructWithOptions").Styled<"web", "summary", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
98
- sup: import("../constructors/constructWithOptions").Styled<"web", "sup", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
99
101
  table: import("../constructors/constructWithOptions").Styled<"web", "table", import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, import("../types").BaseObject>;
100
102
  tbody: import("../constructors/constructWithOptions").Styled<"web", "tbody", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, import("../types").BaseObject>;
101
103
  td: import("../constructors/constructWithOptions").Styled<"web", "td", import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, import("../types").BaseObject>;
@@ -108,16 +110,15 @@ export declare const resetStyled: (isServer?: boolean) => (<Target extends impor
108
110
  track: import("../constructors/constructWithOptions").Styled<"web", "track", import("react").DetailedHTMLProps<import("react").TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>, import("../types").BaseObject>;
109
111
  u: import("../constructors/constructWithOptions").Styled<"web", "u", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
110
112
  ul: import("../constructors/constructWithOptions").Styled<"web", "ul", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, import("../types").BaseObject>;
111
- use: import("../constructors/constructWithOptions").Styled<"web", "use", import("react").SVGProps<SVGUseElement>, import("../types").BaseObject>;
112
113
  var: import("../constructors/constructWithOptions").Styled<"web", "var", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
113
114
  video: import("../constructors/constructWithOptions").Styled<"web", "video", import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, import("../types").BaseObject>;
114
115
  wbr: import("../constructors/constructWithOptions").Styled<"web", "wbr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../types").BaseObject>;
116
+ svg: import("../constructors/constructWithOptions").Styled<"web", "svg", import("react").SVGProps<SVGSVGElement>, import("../types").BaseObject>;
115
117
  circle: import("../constructors/constructWithOptions").Styled<"web", "circle", import("react").SVGProps<SVGCircleElement>, import("../types").BaseObject>;
116
118
  clipPath: import("../constructors/constructWithOptions").Styled<"web", "clipPath", import("react").SVGProps<SVGClipPathElement>, import("../types").BaseObject>;
117
119
  defs: import("../constructors/constructWithOptions").Styled<"web", "defs", import("react").SVGProps<SVGDefsElement>, import("../types").BaseObject>;
118
120
  ellipse: import("../constructors/constructWithOptions").Styled<"web", "ellipse", import("react").SVGProps<SVGEllipseElement>, import("../types").BaseObject>;
119
121
  foreignObject: import("../constructors/constructWithOptions").Styled<"web", "foreignObject", import("react").SVGProps<SVGForeignObjectElement>, import("../types").BaseObject>;
120
- g: import("../constructors/constructWithOptions").Styled<"web", "g", import("react").SVGProps<SVGGElement>, import("../types").BaseObject>;
121
122
  image: import("../constructors/constructWithOptions").Styled<"web", "image", import("react").SVGProps<SVGImageElement>, import("../types").BaseObject>;
122
123
  line: import("../constructors/constructWithOptions").Styled<"web", "line", import("react").SVGLineElementAttributes<SVGLineElement>, import("../types").BaseObject>;
123
124
  linearGradient: import("../constructors/constructWithOptions").Styled<"web", "linearGradient", import("react").SVGProps<SVGLinearGradientElement>, import("../types").BaseObject>;
@@ -130,9 +131,9 @@ export declare const resetStyled: (isServer?: boolean) => (<Target extends impor
130
131
  radialGradient: import("../constructors/constructWithOptions").Styled<"web", "radialGradient", import("react").SVGProps<SVGRadialGradientElement>, import("../types").BaseObject>;
131
132
  rect: import("../constructors/constructWithOptions").Styled<"web", "rect", import("react").SVGProps<SVGRectElement>, import("../types").BaseObject>;
132
133
  stop: import("../constructors/constructWithOptions").Styled<"web", "stop", import("react").SVGProps<SVGStopElement>, import("../types").BaseObject>;
133
- svg: import("../constructors/constructWithOptions").Styled<"web", "svg", import("react").SVGProps<SVGSVGElement>, import("../types").BaseObject>;
134
134
  text: import("../constructors/constructWithOptions").Styled<"web", "text", import("react").SVGTextElementAttributes<SVGTextElement>, import("../types").BaseObject>;
135
135
  tspan: import("../constructors/constructWithOptions").Styled<"web", "tspan", import("react").SVGProps<SVGTSpanElement>, import("../types").BaseObject>;
136
+ use: import("../constructors/constructWithOptions").Styled<"web", "use", import("react").SVGProps<SVGUseElement>, import("../types").BaseObject>;
136
137
  };
137
138
  export declare const rehydrateTestStyles: () => void;
138
139
  export declare const stripComments: (str: string) => string;
@@ -20,7 +20,7 @@ export type BaseObject = {};
20
20
  export type OmitNever<T> = {
21
21
  [K in keyof T as T[K] extends never ? never : K]: T[K];
22
22
  };
23
- type FastOmit<T extends object, U extends string | number | symbol> = {
23
+ export type FastOmit<T extends object, U extends string | number | symbol> = {
24
24
  [K in keyof T as K extends U ? never : K]: T[K];
25
25
  };
26
26
  export type Runtime = 'web' | 'native';
@@ -154,9 +154,9 @@ export type CSSKeyframes = object & {
154
154
  [key: string]: CSSObject;
155
155
  };
156
156
  export type CSSObject<Props extends object = BaseObject> = StyledObject<Props>;
157
- export type StyledObject<Props extends object = BaseObject> = CSSProperties & CSSPseudos & {
157
+ export interface StyledObject<Props extends object = BaseObject> extends CSSProperties, CSSPseudos {
158
158
  [key: string]: StyledObject<Props> | string | number | StyleFunction<Props> | RuleSet<any> | undefined;
159
- };
159
+ }
160
160
  /**
161
161
  * The `css` prop is not declared by default in the types as it would cause `css` to be present
162
162
  * on the types of anything that uses styled-components indirectly, even if they do not use the
@@ -1,4 +1,4 @@
1
1
  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"];
2
- declare const _default: Set<"object" | "circle" | "code" | "form" | "header" | "label" | "link" | "map" | "menu" | "path" | "select" | "stop" | "style" | "th" | "time" | "video" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "legend" | "li" | "main" | "mark" | "menuitem" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "thead" | "tr" | "track" | "u" | "ul" | "use" | "var" | "wbr" | "clipPath" | "defs" | "ellipse" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "svg" | "text" | "tspan">;
2
+ declare const _default: Set<"object" | "g" | "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" | "map" | "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">;
3
3
  export default _default;
4
4
  export type SupportedHTMLElements = (typeof elements)[number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "styled-components",
3
- "version": "6.1.1",
3
+ "version": "6.1.3",
4
4
  "description": "CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/styled-components.cjs.js",
@@ -13,18 +13,18 @@
13
13
  "sideEffects": false,
14
14
  "scripts": {
15
15
  "generateErrors": "node scripts/generateErrorMap.js",
16
- "prebuild": "rimraf dist && yarn generateErrors",
16
+ "prebuild": "rimraf dist && bun run generateErrors",
17
17
  "build": "rollup -c",
18
- "postbuild": "yarn size",
19
- "pretest": "yarn generateErrors",
20
- "test": "yarn test:web && yarn test:native",
18
+ "postbuild": "bun run size",
19
+ "pretest": "bun run generateErrors",
20
+ "test": "bun run test:web && bun run test:native",
21
21
  "test:web": "jest -c jest.config.main.js",
22
22
  "test:native": "jest -c jest.config.native.js --forceExit",
23
23
  "test:integration": "jest -c jest.config.integration.js --runInBand --forceExit",
24
24
  "size": "bundlewatch",
25
25
  "prettier": "prettier src/** --write",
26
26
  "prettier:check": "prettier src/** --check",
27
- "prepublishOnly": "cp ../../README.md . && yarn build"
27
+ "prepublishOnly": "cp ../../README.md . && bun run build"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -55,68 +55,68 @@
55
55
  "@types/react-dom": "^17.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@emotion/is-prop-valid": "^1.2.1",
59
- "@emotion/unitless": "^0.8.0",
60
- "@types/stylis": "^4.0.2",
61
- "css-to-react-native": "^3.2.0",
62
- "csstype": "^3.1.2",
63
- "postcss": "^8.4.31",
64
- "shallowequal": "^1.1.0",
65
- "stylis": "^4.3.0",
66
- "tslib": "^2.5.0"
58
+ "@emotion/is-prop-valid": "1.2.1",
59
+ "@emotion/unitless": "0.8.0",
60
+ "@types/stylis": "4.2.0",
61
+ "css-to-react-native": "3.2.0",
62
+ "csstype": "3.1.2",
63
+ "postcss": "8.4.31",
64
+ "shallowequal": "1.1.0",
65
+ "stylis": "4.3.0",
66
+ "tslib": "2.5.0"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "react": ">= 16.8.0",
70
70
  "react-dom": ">= 16.8.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@babel/core": "^7.21.0",
74
- "@babel/helper-module-imports": "^7.18.6",
75
- "@babel/plugin-external-helpers": "^7.18.6",
76
- "@babel/plugin-proposal-class-properties": "^7.18.6",
77
- "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
78
- "@babel/plugin-transform-flow-strip-types": "^7.21.0",
79
- "@babel/preset-env": "^7.20.2",
80
- "@babel/preset-react": "^7.18.6",
81
- "@babel/preset-typescript": "^7.21.0",
82
- "@rollup/plugin-typescript": "^11.0.0",
83
- "@types/enzyme": "^3.10.12",
84
- "@types/jest": "^29.4.0",
85
- "@types/js-beautify": "^1.13.1",
86
- "@types/node": "^18.14.2",
87
- "@types/react": "^17.0.22",
88
- "@types/react-dom": "^17.0.9",
89
- "@types/react-frame-component": "^4.1.3",
90
- "@types/react-native": "^0.69.1",
91
- "@types/react-test-renderer": "^17.0.1",
92
- "@types/shallowequal": "^1.1.1",
93
- "babel-jest": "^29.4.3",
94
- "babel-plugin-add-module-exports": "^1.0.4",
95
- "babel-plugin-styled-components": "^2.0.7",
96
- "babel-plugin-tester": "^10.0.0",
97
- "bundlewatch": "^0.3.3",
98
- "jest": "^29.4.3",
99
- "jest-environment-jsdom": "^29.4.3",
100
- "jest-serializer-html": "^7.0.0",
101
- "jest-watch-typeahead": "^2.2.2",
102
- "js-beautify": "^1.14.7",
103
- "prettier": "^3.0.1",
104
- "prop-types": "^15.8.1",
105
- "react": "^17.0.2",
106
- "react-dom": "^17.0.2",
107
- "react-frame-component": "^4.0.2",
108
- "react-native": "^0.70.6",
109
- "react-test-renderer": "^17.0.2",
110
- "rollup": "^3.18.0",
111
- "rollup-plugin-commonjs": "^10.1.0",
112
- "rollup-plugin-json": "^4.0.0",
113
- "rollup-plugin-node-resolve": "^5.2.0",
114
- "rollup-plugin-replace": "^2.2.0",
115
- "rollup-plugin-sourcemaps": "^0.6.3",
116
- "rollup-plugin-terser": "^7.0.2",
117
- "stylis-plugin-rtl": "^2.1.1",
118
- "ts-toolbelt": "^9.6.0",
119
- "typescript": "^4.9.5"
73
+ "@babel/core": "7.21.0",
74
+ "@babel/helper-module-imports": "7.18.6",
75
+ "@babel/plugin-external-helpers": "7.18.6",
76
+ "@babel/plugin-proposal-class-properties": "7.18.6",
77
+ "@babel/plugin-proposal-object-rest-spread": "7.20.7",
78
+ "@babel/plugin-transform-flow-strip-types": "7.21.0",
79
+ "@babel/preset-env": "7.20.2",
80
+ "@babel/preset-react": "7.18.6",
81
+ "@babel/preset-typescript": "7.21.0",
82
+ "@rollup/plugin-typescript": "11.1.1",
83
+ "@types/enzyme": "3.10.13",
84
+ "@types/jest": "29.5.2",
85
+ "@types/js-beautify": "1.13.3",
86
+ "@types/node": "18.16.18",
87
+ "@types/react": "17.0.62",
88
+ "@types/react-dom": "17.0.20",
89
+ "@types/react-frame-component": "4.1.3",
90
+ "@types/react-native": "0.69.21",
91
+ "@types/react-test-renderer": "17.0.2",
92
+ "@types/shallowequal": "1.1.1",
93
+ "babel-jest": "29.4.3",
94
+ "babel-plugin-add-module-exports": "1.0.4",
95
+ "babel-plugin-styled-components": "2.0.7",
96
+ "babel-plugin-tester": "10.1.0",
97
+ "bundlewatch": "0.3.3",
98
+ "jest": "29.4.3",
99
+ "jest-environment-jsdom": "29.4.3",
100
+ "jest-serializer-html": "7.1.0",
101
+ "jest-watch-typeahead": "2.2.2",
102
+ "js-beautify": "1.14.7",
103
+ "prettier": "3.0.1",
104
+ "prop-types": "15.8.1",
105
+ "react": "17.0.2",
106
+ "react-dom": "17.0.2",
107
+ "react-frame-component": "4.1.3",
108
+ "react-native": "0.70.6",
109
+ "react-test-renderer": "17.0.2",
110
+ "rollup": "3.18.0",
111
+ "rollup-plugin-commonjs": "10.1.0",
112
+ "rollup-plugin-json": "4.0.0",
113
+ "rollup-plugin-node-resolve": "5.2.0",
114
+ "rollup-plugin-replace": "2.2.0",
115
+ "rollup-plugin-sourcemaps": "0.6.3",
116
+ "rollup-plugin-terser": "7.0.2",
117
+ "stylis-plugin-rtl": "2.1.1",
118
+ "ts-toolbelt": "9.6.0",
119
+ "typescript": "4.9.5"
120
120
  },
121
121
  "bundlewatch": {
122
122
  "files": [