@octanejs/styled-components 0.1.50 → 0.1.52
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 +3 -3
- package/src/index.ts +0 -1
- package/src/types.ts +1 -1
- package/src/utils/stylis.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/styled-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"stylis": "^4.4.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"octane": "^0.
|
|
45
|
+
"octane": "^0.9.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@tsrx/react": "^0.3.7",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"react-dom": "19.2.7",
|
|
53
53
|
"styled-components": "6.4.3",
|
|
54
54
|
"vitest": "^4.1.10",
|
|
55
|
-
"octane": "0.
|
|
55
|
+
"octane": "0.9.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run"
|
package/src/index.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -203,7 +203,7 @@ export type PolymorphicCallProps<BaseProps extends BaseObject> = FastOmit<
|
|
|
203
203
|
ref?: any;
|
|
204
204
|
} & { [key: string]: any };
|
|
205
205
|
|
|
206
|
-
export interface PolymorphicComponent<
|
|
206
|
+
export interface PolymorphicComponent<_R extends Runtime, BaseProps extends BaseObject> {
|
|
207
207
|
(props: PolymorphicCallProps<WidenUntypedProps<BaseProps>>, scope?: any): unknown;
|
|
208
208
|
displayName?: string | undefined;
|
|
209
209
|
}
|
package/src/utils/stylis.ts
CHANGED
|
@@ -265,7 +265,7 @@ export default function createStylisInstance(
|
|
|
265
265
|
let _selector: string;
|
|
266
266
|
let _selectorRegexp: RegExp | undefined;
|
|
267
267
|
|
|
268
|
-
const selfReferenceReplacer = (match: string,
|
|
268
|
+
const selfReferenceReplacer = (match: string, _offset: number, string: string) => {
|
|
269
269
|
if (
|
|
270
270
|
/**
|
|
271
271
|
* We only want to refer to the static class directly if the selector is part of a
|