@plumeria/utils 10.2.1 → 10.2.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.
@@ -1,3 +1,3 @@
1
- import { CreateTheme } from 'zss-engine';
1
+ import type { CreateTheme } from './types';
2
2
  declare const createTheme: <const T extends CreateTheme>(rule: T) => Record<string, Record<string, string | number | Record<string, string | number>>>;
3
3
  export { createTheme };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { CSSObject, FileStyles, StaticTable, KeyframesHashTable, ViewTransitionHashTable, CreateHashTable, VariantsHashTable, CreateThemeHashTable, CreateStaticHashTable, } from './types';
1
+ export type { CSSObject, StaticTable, KeyframesHashTable, ViewTransitionHashTable, CreateHashTable, VariantsHashTable, CreateThemeHashTable, CreateStaticHashTable, } from './types';
2
2
  export { objectExpressionToObject, collectLocalConsts, traverse, t, extractOndemandStyles, deepMerge, scanAll, } from './parser';
3
3
  export type { StyleRecord } from './create';
4
4
  export { getStyleRecords } from './create';
package/dist/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- type CSSPrimitive = string | number | boolean | null;
1
+ import { CSSProperties } from 'zss-engine';
2
+ type CSSPrimitive = string | number | boolean;
2
3
  export type CSSValue = CSSPrimitive | CSSObject;
3
4
  export type CSSObject = {
4
5
  [key: string]: CSSValue;
@@ -33,10 +34,11 @@ export interface Tables {
33
34
  variantsHashTable: VariantsHashTable;
34
35
  variantsObjectTable: VariantsObjectTable;
35
36
  }
36
- export interface FileStyles {
37
- baseStyles?: string;
38
- keyframeStyles?: string;
39
- viewTransitionStyles?: string;
40
- themeStyles?: string;
41
- }
37
+ export type CreateTheme = Record<string, Record<string, string | number>>;
38
+ export type ViewTransition = {
39
+ group?: CSSProperties;
40
+ imagePair?: CSSProperties;
41
+ new?: CSSProperties;
42
+ old?: CSSProperties;
43
+ };
42
44
  export {};
@@ -1,4 +1,5 @@
1
- import type { CSSProperties, ViewTransition } from 'zss-engine';
1
+ import type { CSSProperties } from 'zss-engine';
2
+ import type { ViewTransition } from './types';
2
3
  export declare const createViewTransition: (rule: ViewTransition, hash: string) => {
3
4
  [x: string]: CSSProperties;
4
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/utils",
3
- "version": "10.2.1",
3
+ "version": "10.2.3",
4
4
  "description": "Plumeria Utils",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "lightningcss": "^1.30.2",
27
27
  "postcss": "8.5.6",
28
28
  "postcss-combine-media-query": "^2.1.0",
29
- "zss-engine": "2.2.6"
29
+ "zss-engine": "2.2.8"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",