zss-engine 2.1.1 → 2.1.2

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.
@@ -1,8 +1,8 @@
1
1
  export type { CSSProperties } from './types/common/css-properties';
2
2
  export type { CreateStyleType, ReturnType, CreateStyle } from './types/main/create';
3
- export type { CSSHTML, CreateKeyframes } from './types/main/global';
4
- export type { CreateTheme, CreateValues, ReturnVariableType, XVariableSet, ReturnX } from './types/main/variableTypes';
5
- export type { ViewTransitionOptions } from './types/main/viewTransitionOptions';
3
+ export type { CSSHTML, Keyframes } from './types/main/global';
4
+ export type { CreateStatic, CreateTheme, ReturnVariableType, Styles } from './types/main/variableTypes';
5
+ export type { ViewTransition } from './types/main/viewTransition';
6
6
  export { isServer, isDevelopment, isTestingDevelopment } from './utils/helper.js';
7
7
  export { genBase36Hash } from './utils/hash.js';
8
8
  export { transpile } from './utils/transpile.js';
@@ -24,11 +24,11 @@ type PseudoElementSelector = {
24
24
  [K in PseudoElement]: CSSProperties;
25
25
  };
26
26
  type KeyframesInSelector = 'from' | 'to' | `${number}%`;
27
- export type CreateKeyframes = {
27
+ export type Keyframes = {
28
28
  [K in KeyframesInSelector]?: CSSProperties;
29
29
  };
30
30
  type KeyframesSelector = {
31
- [K in `@keyframes ${string}`]: CreateKeyframes;
31
+ [K in `@keyframes ${string}`]: Keyframes;
32
32
  };
33
33
  type QuerySelectorHTML = {
34
34
  [K in Query]: CSSHTML;
@@ -3,18 +3,12 @@ export type CSSVariableValue = `var(${CSSVariableKey})`;
3
3
  export type CSSVariableProperty = {
4
4
  [key: CSSVariableKey]: string | number;
5
5
  };
6
- export type CreateValues = Record<string, string | number>;
6
+ export type CreateStatic = Record<string, string | number>;
7
7
  export type CreateTheme = Record<string, Record<string, string | number>>;
8
8
  export type ReturnVariableType<T> = {
9
9
  [K in keyof T]: CSSVariableValue;
10
10
  };
11
- export type XVariableSet = {
11
+ export type Styles = {
12
12
  [key: CSSVariableKey]: string;
13
13
  };
14
- export type ReturnX = {
15
- className: string;
16
- style: {
17
- [k: string]: string;
18
- };
19
- };
20
14
  export {};
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from '../common/css-properties';
2
- export type ViewTransitionOptions = {
2
+ export type ViewTransition = {
3
3
  group?: CSSProperties;
4
4
  imagePair?: CSSProperties;
5
5
  new?: CSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zss-engine",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Zero-runtime StyleSheet Engine",
5
5
  "funding": "https://github.com/sponsors/refirst11",
6
6
  "author": "Refirst 11",