@pineui/react 0.1.0
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/LICENSE +168 -0
- package/README.md +144 -0
- package/dist/PineUI.d.ts +10 -0
- package/dist/components/AppBar.d.ts +12 -0
- package/dist/components/Avatar.d.ts +11 -0
- package/dist/components/Badge.d.ts +9 -0
- package/dist/components/BottomNav.d.ts +17 -0
- package/dist/components/Button.d.ts +16 -0
- package/dist/components/Card.d.ts +13 -0
- package/dist/components/Chip.d.ts +12 -0
- package/dist/components/Collection.d.ts +21 -0
- package/dist/components/ConditionalRender.d.ts +14 -0
- package/dist/components/Divider.d.ts +8 -0
- package/dist/components/ErrorBoundary.d.ts +17 -0
- package/dist/components/Grid.d.ts +12 -0
- package/dist/components/Icon.d.ts +12 -0
- package/dist/components/Image.d.ts +15 -0
- package/dist/components/Input.d.ts +17 -0
- package/dist/components/Layout.d.ts +29 -0
- package/dist/components/Modal.d.ts +24 -0
- package/dist/components/Progress.d.ts +10 -0
- package/dist/components/Scaffold.d.ts +13 -0
- package/dist/components/Snackbar.d.ts +17 -0
- package/dist/components/Table.d.ts +17 -0
- package/dist/components/Tabs.d.ts +17 -0
- package/dist/components/Text.d.ts +14 -0
- package/dist/components/View.d.ts +12 -0
- package/dist/index.d.ts +5 -0
- package/dist/loader/imports.d.ts +3 -0
- package/dist/pineui.es.js +1117 -0
- package/dist/pineui.standalone.js +45 -0
- package/dist/pineui.umd.js +14 -0
- package/dist/renderer/Renderer.d.ts +9 -0
- package/dist/renderer/bindings.d.ts +5 -0
- package/dist/style.css +1 -0
- package/dist/types.d.ts +65 -0
- package/package.json +65 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentNode, RenderContext } from '../types';
|
|
3
|
+
|
|
4
|
+
interface TabsProps {
|
|
5
|
+
tabs: Array<{
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
badge?: number;
|
|
10
|
+
content: ComponentNode;
|
|
11
|
+
}>;
|
|
12
|
+
defaultTab?: string;
|
|
13
|
+
context?: RenderContext;
|
|
14
|
+
renderer?: React.ComponentType<any>;
|
|
15
|
+
}
|
|
16
|
+
export declare const Tabs: React.FC<TabsProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RenderContext } from '../types';
|
|
3
|
+
|
|
4
|
+
interface TextProps {
|
|
5
|
+
content: string;
|
|
6
|
+
style?: 'titleLarge' | 'titleMedium' | 'titleSmall' | 'bodyLarge' | 'bodyMedium' | 'bodySmall' | 'labelLarge' | 'labelMedium' | 'labelSmall' | 'headlineSmall';
|
|
7
|
+
color?: string;
|
|
8
|
+
fontWeight?: 'normal' | 'bold';
|
|
9
|
+
maxLines?: number | null;
|
|
10
|
+
linkify?: boolean;
|
|
11
|
+
context?: RenderContext;
|
|
12
|
+
}
|
|
13
|
+
export declare const Text: React.FC<TextProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RenderContext } from '../types';
|
|
3
|
+
|
|
4
|
+
export interface ViewProps {
|
|
5
|
+
name: string;
|
|
6
|
+
context: RenderContext;
|
|
7
|
+
renderer: React.ComponentType<any>;
|
|
8
|
+
flex?: number;
|
|
9
|
+
width?: number | string;
|
|
10
|
+
height?: number | string;
|
|
11
|
+
}
|
|
12
|
+
export declare const View: React.FC<ViewProps>;
|
package/dist/index.d.ts
ADDED