@almadar/ui 5.18.0 → 5.19.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 (39) hide show
  1. package/dist/avl/index.cjs +7432 -7675
  2. package/dist/avl/index.d.cts +8 -0
  3. package/dist/avl/index.js +6297 -6540
  4. package/dist/components/atoms/DayCell.d.ts +3 -2
  5. package/dist/components/index.cjs +7640 -7877
  6. package/dist/components/index.js +6691 -6925
  7. package/dist/components/{organisms → molecules}/ContentRenderer.d.ts +1 -1
  8. package/dist/components/{organisms → molecules}/FormSection.d.ts +1 -1
  9. package/dist/components/molecules/avl/ModuleCard.d.ts +8 -0
  10. package/dist/components/molecules/index.d.ts +17 -1
  11. package/dist/components/organisms/game/GameAudioProvider.d.ts +6 -0
  12. package/dist/components/organisms/game/GameAudioToggle.d.ts +4 -2
  13. package/dist/components/organisms/game/three/index.cjs +180 -172
  14. package/dist/components/organisms/game/three/index.js +18 -10
  15. package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +7 -13
  16. package/dist/components/organisms/index.d.ts +0 -18
  17. package/dist/providers/index.cjs +7024 -7275
  18. package/dist/providers/index.js +6259 -6510
  19. package/dist/runtime/index.cjs +7063 -7314
  20. package/dist/runtime/index.js +6262 -6513
  21. package/package.json +3 -3
  22. package/dist/components/molecules/CodeExample.d.ts +0 -23
  23. package/dist/components/organisms/Meter.d.ts +0 -59
  24. package/dist/components/organisms/Table.d.ts +0 -100
  25. /package/dist/components/{organisms → molecules}/Chart.d.ts +0 -0
  26. /package/dist/components/{organisms → molecules}/CodeViewer.d.ts +0 -0
  27. /package/dist/components/{organisms → molecules}/ConfirmDialog.d.ts +0 -0
  28. /package/dist/components/{organisms → molecules}/DocumentViewer.d.ts +0 -0
  29. /package/dist/components/{organisms → molecules}/GraphCanvas.d.ts +0 -0
  30. /package/dist/components/{organisms → molecules}/Header.d.ts +0 -0
  31. /package/dist/components/{organisms → molecules}/JazariStateMachine.d.ts +0 -0
  32. /package/dist/components/{organisms → molecules}/Navigation.d.ts +0 -0
  33. /package/dist/components/{organisms → molecules}/OrbitalVisualization.d.ts +0 -0
  34. /package/dist/components/{organisms → molecules}/PageHeader.d.ts +0 -0
  35. /package/dist/components/{organisms → molecules}/Section.d.ts +0 -0
  36. /package/dist/components/{organisms → molecules}/Sidebar.d.ts +0 -0
  37. /package/dist/components/{organisms → molecules}/SignaturePad.d.ts +0 -0
  38. /package/dist/components/{organisms → molecules}/Split.d.ts +0 -0
  39. /package/dist/components/{organisms → molecules}/WizardContainer.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "5.18.0",
3
+ "version": "5.19.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -191,7 +191,7 @@
191
191
  "@types/three": "^0.160.0",
192
192
  "@typescript-eslint/parser": "8.56.0",
193
193
  "@vitejs/plugin-react": "^4.2.0",
194
- "@vitest/ui": "^1.4.0",
194
+ "@vitest/ui": "^3.2.6",
195
195
  "autoprefixer": "^10.4.0",
196
196
  "babel-plugin-react-compiler": "19.0.0-beta-af1b7da-20250417",
197
197
  "eslint": "10.0.0",
@@ -211,7 +211,7 @@
211
211
  "tsx": "^4.7.0",
212
212
  "typescript": "^5.4.0",
213
213
  "vite": "^5.2.0",
214
- "vitest": "^1.4.0"
214
+ "vitest": "^3.2.6"
215
215
  },
216
216
  "repository": {
217
217
  "type": "git",
@@ -1,23 +0,0 @@
1
- /**
2
- * CodeExample Molecule Component
3
- *
4
- * Displays a block of code with an optional title bar, copy button,
5
- * and scrollable area. A standalone fallback for code display
6
- * without syntax highlighting.
7
- */
8
- import React from 'react';
9
- export interface CodeExampleProps {
10
- /** The code content to display */
11
- code: string;
12
- /** Programming language label */
13
- language: string;
14
- /** Optional title shown in the header bar */
15
- title?: string;
16
- /** Whether to show a copy button */
17
- copyable?: boolean;
18
- /** Maximum height of the code area (CSS value) */
19
- maxHeight?: string;
20
- /** Additional class names */
21
- className?: string;
22
- }
23
- export declare const CodeExample: React.FC<CodeExampleProps>;
@@ -1,59 +0,0 @@
1
- /**
2
- * Meter Organism Component
3
- *
4
- * A gauge/meter component for displaying a value within a range.
5
- * Supports linear, radial, and segmented display modes.
6
- *
7
- * Orbital Component Interface Compliance:
8
- * - Entity binding with auto-fetch when entity is a string
9
- * - Event emission via useEventBus (UI:* events)
10
- * - isLoading and error state props
11
- * - className for external styling
12
- */
13
- import React from "react";
14
- import type { UiError } from '../atoms/types';
15
- export type MeterVariant = "linear" | "radial" | "segmented";
16
- export interface MeterThreshold {
17
- value: number;
18
- color: string;
19
- label?: string;
20
- }
21
- export interface MeterAction {
22
- label: string;
23
- event?: string;
24
- navigatesTo?: string;
25
- variant?: "primary" | "secondary" | "ghost";
26
- }
27
- export interface MeterProps {
28
- /** Current value */
29
- value: number;
30
- /** Minimum value */
31
- min?: number;
32
- /** Maximum value */
33
- max?: number;
34
- /** Display label */
35
- label?: string;
36
- /** Unit suffix (e.g., '%', 'MB', 'credits') */
37
- unit?: string;
38
- /** Display variant */
39
- variant?: MeterVariant;
40
- /** Color thresholds */
41
- thresholds?: readonly MeterThreshold[];
42
- /** Number of segments (for segmented variant) */
43
- segments?: number;
44
- /** Show value text */
45
- showValue?: boolean;
46
- /** Size (for radial variant) */
47
- size?: "sm" | "md" | "lg";
48
- /** Actions */
49
- actions?: readonly MeterAction[];
50
- /** Entity name for schema-driven auto-fetch */
51
- entity?: string;
52
- /** Loading state */
53
- isLoading?: boolean;
54
- /** Error state */
55
- error?: UiError | null;
56
- /** Additional CSS classes */
57
- className?: string;
58
- }
59
- export declare const Meter: React.FC<MeterProps>;
@@ -1,100 +0,0 @@
1
- /**
2
- * Table Organism Component
3
- *
4
- * A dumb table component with header row, data rows, pagination, sorting, and search.
5
- * Emits events via useEventBus — never manages internal state for search, sort,
6
- * selection, or pagination. All state is owned by the trait state machine.
7
- *
8
- * Uses Pagination, SearchInput, ButtonGroup, Card, Menu molecules and Button, Icon, Checkbox, Typography, Badge, Divider atoms.
9
- */
10
- import React from "react";
11
- import { MenuItem } from "../molecules/Menu";
12
- import type { EntityDisplayProps } from "./types";
13
- import type { EntityRow } from "@almadar/core";
14
- export type SortDirection = "asc" | "desc";
15
- export interface TableColumn<T = any> {
16
- /**
17
- * Column key
18
- */
19
- key: string;
20
- /**
21
- * Column header label
22
- */
23
- label: string;
24
- /**
25
- * Sortable column
26
- * @default false
27
- */
28
- sortable?: boolean;
29
- /**
30
- * Custom cell renderer
31
- */
32
- render?: (value: any, row: T, index: number) => React.ReactNode;
33
- /**
34
- * Column width
35
- */
36
- width?: string;
37
- }
38
- export interface TableProps<T extends EntityRow = EntityRow> extends EntityDisplayProps<T> {
39
- /**
40
- * Table columns
41
- */
42
- columns: TableColumn<T>[];
43
- /**
44
- * Enable row selection
45
- * @default false
46
- */
47
- selectable?: boolean;
48
- /**
49
- * Enable sorting
50
- * @default false
51
- */
52
- sortable?: boolean;
53
- /**
54
- * Current sort column (display hint, mapped from sortBy)
55
- */
56
- sortColumn?: string;
57
- /**
58
- * Current sort direction (display hint)
59
- */
60
- sortDirection?: SortDirection;
61
- /**
62
- * Enable search/filter
63
- * @default false
64
- */
65
- searchable?: boolean;
66
- /**
67
- * Search placeholder
68
- */
69
- searchPlaceholder?: string;
70
- /**
71
- * Enable pagination
72
- * @default false
73
- */
74
- paginated?: boolean;
75
- /**
76
- * Current page (display hint)
77
- */
78
- currentPage?: number;
79
- /**
80
- * Total pages (display hint)
81
- */
82
- totalPages?: number;
83
- /**
84
- * Row actions menu items
85
- */
86
- rowActions?: (row: T) => MenuItem[];
87
- /**
88
- * Empty state message
89
- */
90
- emptyMessage?: string;
91
- /**
92
- * Loading state
93
- * @default false
94
- */
95
- loading?: boolean;
96
- }
97
- export declare const Table: {
98
- <T extends Record<string, any>>({ columns, entity, className, isLoading, error, sortBy, sortDirection: entitySortDirection, searchValue, page, pageSize, totalCount, selectedIds, selectable, sortable, sortColumn: sortColumnProp, sortDirection: sortDirectionProp, searchable, searchPlaceholder, paginated, currentPage: currentPageProp, totalPages: totalPagesProp, rowActions, emptyMessage, loading, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
99
- displayName: string;
100
- };