style-zx 0.0.5 → 0.0.6

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/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './style-zx/index'
1
2
  export {}
package/dist/plugin.d.ts CHANGED
@@ -1 +1,4 @@
1
1
  export {}
2
+ import _default from './vite-plugin-style-zx/index'
3
+ export default _default
4
+ export {}
@@ -0,0 +1,25 @@
1
+ import { CSSProperties } from 'react';
2
+ export { createTheme, useTheme } from './theme';
3
+ export interface ZxStyle extends CSSProperties {
4
+ [key: string]: any;
5
+ m?: number | string;
6
+ mt?: number | string;
7
+ mr?: number | string;
8
+ mb?: number | string;
9
+ ml?: number | string;
10
+ mx?: number | string;
11
+ my?: number | string;
12
+ p?: number | string;
13
+ pt?: number | string;
14
+ pr?: number | string;
15
+ pb?: number | string;
16
+ pl?: number | string;
17
+ px?: number | string;
18
+ py?: number | string;
19
+ bg?: string;
20
+ }
21
+ declare module 'react' {
22
+ interface HTMLAttributes<T> {
23
+ zx?: ZxStyle;
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ export declare function createTheme<T extends object>(themeConfig: T): T;
2
+ export declare function useTheme<T = any>(): T;
@@ -0,0 +1 @@
1
+ export declare function compileStyle(style: any, className: string): string;
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'vite';
2
+ export default function styleZx(): Plugin;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "style-zx",
3
3
  "private": false,
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {