@octanejs/styled-components 0.1.4 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/styled-components",
3
- "version": "0.1.4",
3
+ "version": "0.1.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -39,20 +39,20 @@
39
39
  "dependencies": {
40
40
  "@emotion/is-prop-valid": "1.4.0",
41
41
  "csstype": "3.2.3",
42
- "stylis": "^4.3.2"
42
+ "stylis": "^4.4.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "octane": "0.1.12"
45
+ "octane": "0.1.16"
46
46
  },
47
47
  "devDependencies": {
48
- "@tsrx/react": "^0.2.44",
49
- "@types/stylis": "^4.2.5",
48
+ "@tsrx/react": "^0.2.50",
49
+ "@types/stylis": "^4.2.7",
50
50
  "esbuild": "^0.28.1",
51
- "react": "^19.2.0",
52
- "react-dom": "^19.2.0",
51
+ "react": "^19.2.7",
52
+ "react-dom": "^19.2.7",
53
53
  "styled-components": "6.4.3",
54
- "vitest": "^4.1.9",
55
- "octane": "0.1.12"
54
+ "vitest": "^4.1.10",
55
+ "octane": "0.1.16"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run"
package/src/types.ts CHANGED
@@ -127,15 +127,12 @@ export type AttrsResultShape<Props extends BaseObject = BaseObject> = ExecutionP
127
127
  Partial<Props> & { [key: string]: any };
128
128
 
129
129
  export type Attrs<Props extends BaseObject = BaseObject> =
130
- | AttrsResultShape<Props>
131
- | ((props: ExecutionContext & Props) => AttrsResultShape<Props>);
130
+ AttrsResultShape<Props> | ((props: ExecutionContext & Props) => AttrsResultShape<Props>);
132
131
 
133
132
  export type RuleSet<Props extends BaseObject = BaseObject> = Interpolation<Props>[];
134
133
 
135
134
  export type Styles<Props extends BaseObject> =
136
- | TemplateStringsArray
137
- | StyledObject<Props>
138
- | StyleFunction<Props>;
135
+ TemplateStringsArray | StyledObject<Props> | StyleFunction<Props>;
139
136
 
140
137
  export type NameGenerator = (hash: number) => string;
141
138
 
@@ -263,12 +260,7 @@ export type CSSObject<Props extends BaseObject = BaseObject> = StyledObject<Prop
263
260
  export interface StyledObject<Props extends BaseObject = BaseObject>
264
261
  extends CSSProperties, CSSPseudos {
265
262
  [key: string]:
266
- | StyledObject<Props>
267
- | string
268
- | number
269
- | StyleFunction<Props>
270
- | RuleSet<any>
271
- | undefined;
263
+ StyledObject<Props> | string | number | StyleFunction<Props> | RuleSet<any> | undefined;
272
264
  }
273
265
 
274
266
  /**
@@ -33,10 +33,9 @@ type ExcludeList = {
33
33
  };
34
34
 
35
35
  export type NonOctaneStatics<S extends AnyComponent, C extends ExcludeList = {}> = {
36
- [key in Exclude<
37
- keyof S,
38
- keyof typeof COMPONENT_STATICS | keyof typeof KNOWN_STATICS | keyof C
39
- >]: S[key];
36
+ [
37
+ key in Exclude<keyof S, keyof typeof COMPONENT_STATICS | keyof typeof KNOWN_STATICS | keyof C>
38
+ ]: S[key];
40
39
  };
41
40
 
42
41
  export default function hoistNonOctaneStatics<