@podto/zi-core 0.1.0-rc.1 → 0.1.0-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podto/zi-core",
3
- "version": "0.1.0-rc.1",
3
+ "version": "0.1.0-rc.2",
4
4
  "description": "zi UI framework core (UI components, headless primitives, window chrome, data, service, i18n, and TypeScript types)",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -19,7 +19,7 @@
19
19
  "ziRuntimeAbi": 2,
20
20
  "exports": {
21
21
  ".": {
22
- "types": "./types/zi.d.ts",
22
+ "types": "./types/tools/types/zi-barrel.d.ts",
23
23
  "default": "./core/index.js"
24
24
  },
25
25
  "./ui": {
@@ -0,0 +1,40 @@
1
+ export declare const Checkmark: (props?: import("../tools/types/zi").CheckmarkProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
2
+ export declare const Control: (props?: import("../tools/types/zi").ControlProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
3
+ export declare const Divider: (props?: import("../tools/types/zi").DividerProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
4
+ export declare const Dynamic: (props?: {
5
+ component?: () => any;
6
+ style?: import("../tools/types/zi").ZiStyle;
7
+ [prop: string]: any;
8
+ }, children?: any) => import("../tools/types/zi").ZiJsxNode;
9
+ export declare const For: (props?: {
10
+ each?: () => any[];
11
+ keyFn?: (item: any, i: number) => any;
12
+ children?: any;
13
+ transition?: import("../tools/types/zi").TransitionSpec;
14
+ style?: import("../tools/types/zi").ZiStyle;
15
+ }, children?: any) => import("../tools/types/zi").ZiJsxNode;
16
+ export declare const Image: (props?: import("../tools/types/zi").ImageProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
17
+ export declare const Input: (props?: import("../tools/types/zi").InputProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
18
+ export declare const Match: (props?: {
19
+ when?: () => any;
20
+ children?: any;
21
+ }, children?: any) => import("../tools/types/zi").ZiJsxNode;
22
+ export declare const Modal: (props?: import("../tools/types/zi").ModalProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
23
+ export declare const Scrollable: (props?: import("../tools/types/zi").ScrollableProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
24
+ export declare const ListView: (props: import("../tools/types/zi").ListViewProps) => import("../tools/types/zi").ZiJsxNode;
25
+ export declare const Show: (props?: {
26
+ when?: () => any;
27
+ children?: any;
28
+ fallback?: any;
29
+ transition?: import("../tools/types/zi").TransitionSpec;
30
+ style?: import("../tools/types/zi").ZiStyle;
31
+ }, children?: any) => import("../tools/types/zi").ZiJsxNode;
32
+ export declare const Stack: (props?: import("../tools/types/zi").StackProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
33
+ export declare const Switch: (props?: {
34
+ fallback?: any;
35
+ children?: any;
36
+ style?: import("../tools/types/zi").ZiStyle;
37
+ }, children?: any) => import("../tools/types/zi").ZiJsxNode;
38
+ export declare const Text: (props?: import("../tools/types/zi").TextProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
39
+ export declare const Textarea: (props?: import("../tools/types/zi").TextareaProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
40
+ export declare const Transition: (props?: import("../tools/types/zi").TransitionProps, children?: any) => import("../tools/types/zi").ZiJsxNode;
@@ -0,0 +1,75 @@
1
+ export declare const h: <P = any>(tag: (props: P, children?: any) => any, props?: P, ...children: any[]) => import("./zi").ZiWidget;
2
+ export declare const signal: <T>(init: T) => import("./zi").Signal<T>;
3
+ export declare const createEffect: (fn: () => void) => void;
4
+ export declare const createRoot: <T>(fn: () => T, owner?: number) => {
5
+ value: T;
6
+ scope?: number;
7
+ dispose: () => void;
8
+ };
9
+ export declare const mount: (root: any) => void;
10
+ export declare const setText: (handle: any, text: string | (() => any)) => void;
11
+ export declare const batchOps: <T>(fn: () => T) => T;
12
+ export declare const compileStyle: (style: Style | string | number) => number;
13
+ export declare const composeStyles: (...ids: number[]) => number;
14
+ export declare const setChildren: (container: import("./zi").ZiWidget, children: (import("./zi").ZiWidget | false | null | undefined)[], retain?: import("./zi").ZiWidget[]) => void;
15
+ export declare const isWidget: (v: any) => boolean;
16
+ export declare const exit: (code?: number) => void;
17
+ export declare const Flex: (props?: import("./zi").BoxProps, children?: any) => import("./zi").ZiJsxNode;
18
+ export declare const Column: (props?: import("./zi").ColumnProps, children?: any) => import("./zi").ZiJsxNode;
19
+ export declare const Row: (props?: import("./zi").RowProps, children?: any) => import("./zi").ZiJsxNode;
20
+ export declare const Box: (props?: import("./zi").BoxProps, children?: any) => import("./zi").ZiJsxNode;
21
+ export declare const Text: (props?: import("./zi").TextProps, children?: any) => import("./zi").ZiJsxNode;
22
+ export declare const Stack: (props?: import("./zi").StackProps, children?: any) => import("./zi").ZiJsxNode;
23
+ export declare const Scrollable: (props?: import("./zi").ScrollableProps, children?: any) => import("./zi").ZiJsxNode;
24
+ export declare const ListView: (props: import("./zi").ListViewProps) => import("./zi").ZiJsxNode;
25
+ export declare const Control: (props?: import("./zi").ControlProps, children?: any) => import("./zi").ZiJsxNode;
26
+ export declare const Image: (props?: import("./zi").ImageProps, children?: any) => import("./zi").ZiJsxNode;
27
+ export declare const Checkmark: (props?: import("./zi").CheckmarkProps, children?: any) => import("./zi").ZiJsxNode;
28
+ export declare const Divider: (props?: import("./zi").DividerProps, children?: any) => import("./zi").ZiJsxNode;
29
+ export declare const LineChart: (props?: import("./zi").ChartPrimitiveProps, children?: any) => import("./zi").ZiJsxNode;
30
+ export declare const BarChart: (props?: import("./zi").ChartPrimitiveProps, children?: any) => import("./zi").ZiJsxNode;
31
+ export declare const PieChart: (props?: import("./zi").ChartPrimitiveProps, children?: any) => import("./zi").ZiJsxNode;
32
+ export declare const Ring: (props?: import("./zi").ChartPrimitiveProps, children?: any) => import("./zi").ZiJsxNode;
33
+ export declare const Input: (props?: import("./zi").InputProps, children?: any) => import("./zi").ZiJsxNode;
34
+ export declare const Textarea: (props?: import("./zi").TextareaProps, children?: any) => import("./zi").ZiJsxNode;
35
+ export declare const Modal: (props?: import("./zi").ModalProps, children?: any) => import("./zi").ZiJsxNode;
36
+ export declare const Show: (props?: {
37
+ when?: () => any;
38
+ children?: any;
39
+ fallback?: any;
40
+ transition?: import("./zi").TransitionSpec;
41
+ style?: import("./zi").ZiStyle;
42
+ }, children?: any) => import("./zi").ZiJsxNode;
43
+ export declare const Switch: (props?: {
44
+ fallback?: any;
45
+ children?: any;
46
+ style?: import("./zi").ZiStyle;
47
+ }, children?: any) => import("./zi").ZiJsxNode;
48
+ export declare const Match: (props?: {
49
+ when?: () => any;
50
+ children?: any;
51
+ }, children?: any) => import("./zi").ZiJsxNode;
52
+ export declare const Dynamic: (props?: {
53
+ component?: () => any;
54
+ style?: import("./zi").ZiStyle;
55
+ [prop: string]: any;
56
+ }, children?: any) => import("./zi").ZiJsxNode;
57
+ export declare const ErrorBoundary: (props?: {
58
+ fallback?: (err: any, reset: () => void) => any;
59
+ children?: any;
60
+ style?: import("./zi").ZiStyle;
61
+ }, children?: any) => import("./zi").ZiJsxNode;
62
+ export declare const For: (props?: {
63
+ each?: () => any[];
64
+ keyFn?: (item: any, i: number) => any;
65
+ children?: any;
66
+ transition?: import("./zi").TransitionSpec;
67
+ style?: import("./zi").ZiStyle;
68
+ }, children?: any) => import("./zi").ZiJsxNode;
69
+ export declare const Transition: (props?: import("./zi").TransitionProps, children?: any) => import("./zi").ZiJsxNode;
70
+ export declare const headless: Record<string, any>;
71
+ export declare const ffi: import("./zi").FfiAPI;
72
+ export declare const platform: import("./zi").PlatformAPI;
73
+ export declare const http: import("./zi").HttpAPI;
74
+ export declare const db: import("./zi").DbAPI;
75
+ export default zi;