@almadar/ui 5.18.1 → 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.
- package/dist/avl/index.cjs +7427 -7671
- package/dist/avl/index.d.cts +8 -0
- package/dist/avl/index.js +6292 -6536
- package/dist/components/index.cjs +7635 -7873
- package/dist/components/index.js +6686 -6921
- package/dist/components/{organisms → molecules}/ContentRenderer.d.ts +1 -1
- package/dist/components/{organisms → molecules}/FormSection.d.ts +1 -1
- package/dist/components/molecules/avl/ModuleCard.d.ts +8 -0
- package/dist/components/molecules/index.d.ts +17 -1
- package/dist/components/organisms/game/GameAudioProvider.d.ts +6 -0
- package/dist/components/organisms/game/GameAudioToggle.d.ts +4 -2
- package/dist/components/organisms/game/three/index.cjs +180 -172
- package/dist/components/organisms/game/three/index.js +18 -10
- package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +7 -13
- package/dist/components/organisms/index.d.ts +0 -18
- package/dist/providers/index.cjs +7019 -7271
- package/dist/providers/index.js +6254 -6506
- package/dist/runtime/index.cjs +7058 -7310
- package/dist/runtime/index.js +6257 -6509
- package/package.json +1 -1
- package/dist/components/molecules/CodeExample.d.ts +0 -23
- package/dist/components/organisms/Meter.d.ts +0 -59
- package/dist/components/organisms/Table.d.ts +0 -100
- /package/dist/components/{organisms → molecules}/Chart.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/CodeViewer.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/ConfirmDialog.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/DocumentViewer.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/GraphCanvas.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/Header.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/JazariStateMachine.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/Navigation.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/OrbitalVisualization.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/PageHeader.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/Section.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/Sidebar.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/SignaturePad.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/Split.d.ts +0 -0
- /package/dist/components/{organisms → molecules}/WizardContainer.d.ts +0 -0
package/package.json
CHANGED
|
@@ -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
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|