@elaraai/east-ui 0.0.1-beta.0 → 0.0.1-beta.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.
Files changed (74) hide show
  1. package/README.md +106 -0
  2. package/dist/src/collections/gantt/index.d.ts +17950 -0
  3. package/dist/src/collections/gantt/index.d.ts.map +1 -0
  4. package/dist/src/collections/gantt/index.js +295 -0
  5. package/dist/src/collections/gantt/index.js.map +1 -0
  6. package/dist/src/collections/gantt/types.d.ts +195 -0
  7. package/dist/src/collections/gantt/types.d.ts.map +1 -0
  8. package/dist/src/collections/gantt/types.js +90 -0
  9. package/dist/src/collections/gantt/types.js.map +1 -0
  10. package/dist/src/collections/index.d.ts +1 -0
  11. package/dist/src/collections/index.d.ts.map +1 -1
  12. package/dist/src/collections/index.js +1 -0
  13. package/dist/src/collections/index.js.map +1 -1
  14. package/dist/src/collections/table/index.d.ts +7476 -207
  15. package/dist/src/collections/table/index.d.ts.map +1 -1
  16. package/dist/src/collections/table/index.js +54 -20
  17. package/dist/src/collections/table/index.js.map +1 -1
  18. package/dist/src/collections/table/types.d.ts +33 -1
  19. package/dist/src/collections/table/types.d.ts.map +1 -1
  20. package/dist/src/collections/table/types.js +23 -1
  21. package/dist/src/collections/table/types.js.map +1 -1
  22. package/dist/src/component.d.ts +123 -1
  23. package/dist/src/component.d.ts.map +1 -1
  24. package/dist/src/component.js +18 -3
  25. package/dist/src/component.js.map +1 -1
  26. package/dist/src/container/card/index.d.ts +246 -2
  27. package/dist/src/container/card/index.d.ts.map +1 -1
  28. package/dist/src/disclosure/accordion/index.d.ts +492 -4
  29. package/dist/src/disclosure/accordion/index.d.ts.map +1 -1
  30. package/dist/src/disclosure/carousel/index.d.ts +246 -2
  31. package/dist/src/disclosure/carousel/index.d.ts.map +1 -1
  32. package/dist/src/disclosure/tabs/index.d.ts +492 -4
  33. package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
  34. package/dist/src/forms/field/index.d.ts +246 -2
  35. package/dist/src/forms/field/index.d.ts.map +1 -1
  36. package/dist/src/index.d.ts +1 -1
  37. package/dist/src/index.d.ts.map +1 -1
  38. package/dist/src/index.js +1 -1
  39. package/dist/src/index.js.map +1 -1
  40. package/dist/src/layout/box/index.d.ts +246 -2
  41. package/dist/src/layout/box/index.d.ts.map +1 -1
  42. package/dist/src/layout/grid/index.d.ts +492 -4
  43. package/dist/src/layout/grid/index.d.ts.map +1 -1
  44. package/dist/src/layout/splitter/index.d.ts +492 -4
  45. package/dist/src/layout/splitter/index.d.ts.map +1 -1
  46. package/dist/src/layout/stack/index.d.ts +246 -2
  47. package/dist/src/layout/stack/index.d.ts.map +1 -1
  48. package/dist/src/overlays/dialog/index.d.ts +492 -4
  49. package/dist/src/overlays/dialog/index.d.ts.map +1 -1
  50. package/dist/src/overlays/drawer/index.d.ts +492 -4
  51. package/dist/src/overlays/drawer/index.d.ts.map +1 -1
  52. package/dist/src/overlays/hover-card/index.d.ts +492 -4
  53. package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
  54. package/dist/src/overlays/menu/index.d.ts +246 -2
  55. package/dist/src/overlays/menu/index.d.ts.map +1 -1
  56. package/dist/src/overlays/popover/index.d.ts +492 -4
  57. package/dist/src/overlays/popover/index.d.ts.map +1 -1
  58. package/dist/src/overlays/toggle-tip/index.d.ts +246 -2
  59. package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
  60. package/dist/src/overlays/tooltip/index.d.ts +246 -2
  61. package/dist/src/overlays/tooltip/index.d.ts.map +1 -1
  62. package/dist/src/style.d.ts +118 -0
  63. package/dist/src/style.d.ts.map +1 -1
  64. package/dist/src/style.js +109 -0
  65. package/dist/src/style.js.map +1 -1
  66. package/dist/src/typography/index.d.ts +17 -0
  67. package/dist/src/typography/index.d.ts.map +1 -1
  68. package/dist/src/typography/index.js +19 -1
  69. package/dist/src/typography/index.js.map +1 -1
  70. package/dist/src/typography/types.d.ts +26 -3
  71. package/dist/src/typography/types.d.ts.map +1 -1
  72. package/dist/src/typography/types.js +4 -1
  73. package/dist/src/typography/types.js.map +1 -1
  74. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,106 @@
1
+ # East UI
2
+
3
+ > UI component definitions for the East language
4
+
5
+ [![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](LICENSE.md)
6
+ [![Node Version](https://img.shields.io/badge/node-%3E%3D22.0.0-brightgreen.svg)](https://nodejs.org)
7
+
8
+ **East UI** provides typed UI component definitions for the [East language](https://github.com/elaraai/East). Components return data structures describing UI layouts rather than rendering directly, enabling portability across different rendering environments.
9
+
10
+ ## Features
11
+
12
+ - **📦 Layout Components** - Box, Stack, Grid, Splitter, Separator
13
+ - **📝 Typography** - Text with comprehensive styling options
14
+ - **🔘 Buttons** - Button, IconButton with variants and states
15
+ - **📋 Forms** - Input, Select, Checkbox, Switch, Slider, Textarea, TagsInput, FileUpload
16
+ - **📊 Collections** - Table, DataList, TreeView
17
+ - **📈 Charts** - Area, Bar, Line, Pie, Radar, Scatter, Sparkline, BarList, BarSegment
18
+ - **💬 Feedback** - Alert, Progress
19
+ - **🏷️ Display** - Badge, Tag, Avatar, Stat, Icon
20
+ - **📂 Disclosure** - Accordion, Tabs, Carousel
21
+ - **🪟 Overlays** - Dialog, Drawer, Popover, Tooltip, Menu, HoverCard, ToggleTip, ActionBar
22
+ - **🎨 Styling** - Type-safe style variants (FontWeight, TextAlign, ColorScheme, Size, etc.)
23
+ - **🔄 State Management** - Platform functions for state read/write
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ npm install @elaraai/east-ui @elaraai/east
29
+ ```
30
+
31
+ ## Quick Start
32
+
33
+ ```typescript
34
+ import { East, ArrayType } from "@elaraai/east";
35
+ import { Stack, Text, Button, UIComponentType } from "@elaraai/east-ui";
36
+
37
+ // Define a UI component
38
+ const MyComponent = East.function(
39
+ [],
40
+ UIComponentType,
41
+ $ => {
42
+ return Stack.Root([
43
+ Text.Root("Hello, World!", { fontSize: "xl", fontWeight: "bold" }),
44
+ Button.Root("Click Me", { variant: "solid", colorPalette: "blue" }),
45
+ ], { gap: "4", direction: "column" });
46
+ }
47
+ );
48
+
49
+ // Convert to IR for serialization or rendering
50
+ const ir = MyComponent.toIR();
51
+ ```
52
+
53
+ ## Component Categories
54
+
55
+ | Category | Components | Description |
56
+ |----------|------------|-------------|
57
+ | **Layout** | `Box`, `Stack`, `HStack`, `VStack`, `Grid`, `Splitter`, `Separator` | Container and layout components |
58
+ | **Typography** | `Text` | Text display with styling |
59
+ | **Buttons** | `Button`, `IconButton` | Interactive button components |
60
+ | **Forms** | `Input`, `Select`, `Checkbox`, `Switch`, `Slider`, `Textarea`, `TagsInput`, `FileUpload`, `Field`, `Fieldset` | Form input components |
61
+ | **Collections** | `Table`, `DataList`, `TreeView` | Data display components |
62
+ | **Charts** | `Chart.Area`, `Chart.Bar`, `Chart.Line`, `Chart.Pie`, `Chart.Radar`, `Chart.Scatter`, `Chart.Sparkline`, `Chart.BarList`, `Chart.BarSegment` | Data visualization |
63
+ | **Display** | `Badge`, `Tag`, `Avatar`, `Stat`, `Icon` | Visual display components |
64
+ | **Feedback** | `Alert`, `Progress` | User feedback components |
65
+ | **Disclosure** | `Accordion`, `Tabs`, `Carousel` | Content organization |
66
+ | **Overlays** | `Dialog`, `Drawer`, `Popover`, `Tooltip`, `Menu`, `HoverCard`, `ToggleTip`, `ActionBar` | Overlay components |
67
+ | **Container** | `Card` | Content container |
68
+
69
+ ## Documentation
70
+
71
+ - **[USAGE.md](USAGE.md)** - Comprehensive guide with examples for all components
72
+ - **[East Documentation](https://github.com/elaraai/East)** - Core East language documentation
73
+
74
+ ## Design Philosophy
75
+
76
+ East UI components are **declarative data structures**, not rendered elements:
77
+
78
+ 1. **Portability** - UI definitions can be serialized and rendered in any environment
79
+ 2. **Type Safety** - Full compile-time checking of component structure and styling
80
+ 3. **Composability** - Components are East functions that return typed values
81
+ 4. **Separation of Concerns** - UI logic (East UI) is separate from rendering (@elaraai/east-ui-components)
82
+
83
+ ## Development
84
+
85
+ ```bash
86
+ npm run build # Compile TypeScript
87
+ npm run test # Run test suite (requires build)
88
+ npm run lint # Check code quality
89
+ ```
90
+
91
+ ## License
92
+
93
+ Dual-licensed:
94
+ - **Open Source**: [AGPL-3.0](LICENSE.md) - Free for open source use
95
+ - **Commercial**: Available for proprietary use - contact support@elara.ai
96
+
97
+ ## Links
98
+
99
+ - **Website**: [https://elaraai.com/](https://elaraai.com/)
100
+ - **East Repository**: [https://github.com/elaraai/East](https://github.com/elaraai/East)
101
+ - **Issues**: [https://github.com/elaraai/east-ui/issues](https://github.com/elaraai/east-ui/issues)
102
+ - **Email**: support@elara.ai
103
+
104
+ ---
105
+
106
+ *Developed by [Elara AI Pty Ltd](https://elaraai.com/) - Powering the computational layer of AI-driven business optimization.*