@plumeria/core 10.1.3 → 10.2.1

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/lib/types.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import type { CSSType } from './csstype';
1
+ import type { CSSTypes } from './csstypes';
2
2
 
3
3
  type CSSVariableKey = `--${string}`;
4
4
  type CSSVariableValue = `var(${CSSVariableKey})`;
5
5
  type CSSVariableProperty = { [key: CSSVariableKey]: string | number };
6
6
 
7
7
  type CommonProperties = {
8
- [K in keyof CSSType]: CSSType[K] | CSSVariableValue;
8
+ [K in keyof CSSTypes]: CSSTypes[K] | CSSVariableValue;
9
9
  };
10
10
 
11
11
  type ArrayString = `[${string}`;
@@ -34,14 +34,14 @@ type CSSProperties =
34
34
  | QuerySelector
35
35
  | CSSVariableProperty;
36
36
 
37
+ type CreateStyleValue = CSSProperties | ((...args: never) => CSSProperties);
38
+
37
39
  type CreateReturnType<T> = {
38
40
  [K in keyof T]: T[K] extends (...args: infer A) => infer R
39
41
  ? (...args: A) => Readonly<{ [P in keyof R]: R[P] }>
40
42
  : Readonly<{ [P in keyof T[K]]: T[K][P] }>;
41
43
  };
42
44
 
43
- type CreateStyleValue = CSSProperties | ((...args: never) => CSSProperties);
44
-
45
45
  type StyleName = CSSProperties | (false | CSSProperties | null | undefined)[];
46
46
 
47
47
  type CreateStatic = Record<string, string | number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "10.1.3",
3
+ "version": "10.2.1",
4
4
  "description": "A styling system that disappears.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",