@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.
Files changed (37) hide show
  1. package/LICENSE +168 -0
  2. package/README.md +144 -0
  3. package/dist/PineUI.d.ts +10 -0
  4. package/dist/components/AppBar.d.ts +12 -0
  5. package/dist/components/Avatar.d.ts +11 -0
  6. package/dist/components/Badge.d.ts +9 -0
  7. package/dist/components/BottomNav.d.ts +17 -0
  8. package/dist/components/Button.d.ts +16 -0
  9. package/dist/components/Card.d.ts +13 -0
  10. package/dist/components/Chip.d.ts +12 -0
  11. package/dist/components/Collection.d.ts +21 -0
  12. package/dist/components/ConditionalRender.d.ts +14 -0
  13. package/dist/components/Divider.d.ts +8 -0
  14. package/dist/components/ErrorBoundary.d.ts +17 -0
  15. package/dist/components/Grid.d.ts +12 -0
  16. package/dist/components/Icon.d.ts +12 -0
  17. package/dist/components/Image.d.ts +15 -0
  18. package/dist/components/Input.d.ts +17 -0
  19. package/dist/components/Layout.d.ts +29 -0
  20. package/dist/components/Modal.d.ts +24 -0
  21. package/dist/components/Progress.d.ts +10 -0
  22. package/dist/components/Scaffold.d.ts +13 -0
  23. package/dist/components/Snackbar.d.ts +17 -0
  24. package/dist/components/Table.d.ts +17 -0
  25. package/dist/components/Tabs.d.ts +17 -0
  26. package/dist/components/Text.d.ts +14 -0
  27. package/dist/components/View.d.ts +12 -0
  28. package/dist/index.d.ts +5 -0
  29. package/dist/loader/imports.d.ts +3 -0
  30. package/dist/pineui.es.js +1117 -0
  31. package/dist/pineui.standalone.js +45 -0
  32. package/dist/pineui.umd.js +14 -0
  33. package/dist/renderer/Renderer.d.ts +9 -0
  34. package/dist/renderer/bindings.d.ts +5 -0
  35. package/dist/style.css +1 -0
  36. package/dist/types.d.ts +65 -0
  37. 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>;
@@ -0,0 +1,5 @@
1
+ import { PineUIConfig } from './types';
2
+
3
+ export { PineUI } from './PineUI';
4
+ export * from './types';
5
+ export declare function render(config: PineUIConfig): void;
@@ -0,0 +1,3 @@
1
+ import { PineUISchema } from '../types';
2
+
3
+ export declare function loadImports(schema: PineUISchema, baseUrl: string): Promise<PineUISchema>;