@pineui/react 0.1.0 → 0.1.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.
@@ -4,7 +4,7 @@ import { RenderContext, ActionNode } from '../types';
4
4
  interface AvatarProps {
5
5
  src: string;
6
6
  size?: number;
7
- onTap?: ActionNode;
7
+ onPress?: ActionNode;
8
8
  context?: RenderContext;
9
9
  }
10
10
  export declare const Avatar: React.FC<AvatarProps>;
@@ -2,10 +2,12 @@ import { default as React } from 'react';
2
2
  import { ComponentNode, RenderContext, ActionNode } from '../types';
3
3
 
4
4
  interface CardProps {
5
- child: ComponentNode;
5
+ child?: ComponentNode;
6
+ children?: ComponentNode[];
6
7
  elevation?: number;
7
8
  padding?: number;
8
- onTap?: ActionNode;
9
+ variant?: 'elevated' | 'filled' | 'outlined';
10
+ onPress?: ActionNode;
9
11
  context?: RenderContext;
10
12
  renderer?: React.ComponentType<any>;
11
13
  }
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ import { ComponentNode, RenderContext } from '../types';
3
+
4
+ interface CollectionMapProps {
5
+ data: any[] | string;
6
+ template?: ComponentNode;
7
+ itemTemplate?: ComponentNode;
8
+ layout?: 'list' | 'grid';
9
+ columns?: number;
10
+ spacing?: number;
11
+ context?: RenderContext;
12
+ renderer?: React.ComponentType<any>;
13
+ }
14
+ export declare const CollectionMap: React.FC<CollectionMapProps>;
15
+ export {};
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { ComponentNode, RenderContext } from '../types';
3
+
4
+ interface ConditionalMapProps {
5
+ condition: string | boolean;
6
+ children?: ComponentNode[];
7
+ child?: ComponentNode;
8
+ context?: RenderContext;
9
+ renderer?: React.ComponentType<any>;
10
+ }
11
+ /**
12
+ * conditional.render — simple condition + children API
13
+ * Shows children when `condition` is truthy.
14
+ */
15
+ export declare const ConditionalMap: React.FC<ConditionalMapProps>;
16
+ export {};
@@ -8,7 +8,7 @@ interface ImageProps {
8
8
  aspectRatio?: number | string;
9
9
  borderRadius?: number;
10
10
  loading?: 'eager' | 'lazy';
11
- onTap?: ActionNode;
11
+ onPress?: ActionNode;
12
12
  context?: RenderContext;
13
13
  }
14
14
  export declare const Image: React.FC<ImageProps>;
@@ -2,15 +2,18 @@ import { default as React } from 'react';
2
2
  import { RenderContext, ActionNode } from '../types';
3
3
 
4
4
  interface InputProps {
5
- type: 'input.text';
5
+ type: 'input.text' | 'input.email' | 'input.password' | 'input.number' | 'input.search';
6
6
  id?: string;
7
+ label?: string;
7
8
  placeholder?: string;
8
9
  value?: string;
10
+ error?: string;
9
11
  multiline?: boolean;
10
12
  maxLines?: number;
11
13
  maxLength?: number;
12
14
  autofocus?: boolean;
13
15
  onChanged?: ActionNode;
16
+ onChange?: ActionNode;
14
17
  context?: RenderContext;
15
18
  }
16
19
  export declare const Input: React.FC<InputProps>;