@almadar/ui 2.0.1 → 2.0.3
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/components/index.css +9 -11
- package/dist/components/index.js +3 -3
- package/dist/providers/index.css +9 -11
- package/dist/providers/index.js +2 -2
- package/package.json +2 -2
- package/dist/components/atoms/Avatar.d.ts +0 -58
- package/dist/components/atoms/Badge.d.ts +0 -8
- package/dist/components/atoms/Box.d.ts +0 -57
- package/dist/components/atoms/Button.d.ts +0 -24
- package/dist/components/atoms/Card.d.ts +0 -18
- package/dist/components/atoms/Center.d.ts +0 -33
- package/dist/components/atoms/Checkbox.d.ts +0 -5
- package/dist/components/atoms/ConditionalWrapper.d.ts +0 -68
- package/dist/components/atoms/Divider.d.ts +0 -29
- package/dist/components/atoms/Icon.d.ts +0 -38
- package/dist/components/atoms/Input.d.ts +0 -26
- package/dist/components/atoms/Label.d.ts +0 -5
- package/dist/components/atoms/LawReferenceTooltip.d.ts +0 -48
- package/dist/components/atoms/Overlay.d.ts +0 -16
- package/dist/components/atoms/ProgressBar.d.ts +0 -63
- package/dist/components/atoms/Radio.d.ts +0 -26
- package/dist/components/atoms/Select.d.ts +0 -12
- package/dist/components/atoms/Spacer.d.ts +0 -25
- package/dist/components/atoms/Spinner.d.ts +0 -6
- package/dist/components/atoms/Stack.d.ts +0 -64
- package/dist/components/atoms/Switch.d.ts +0 -12
- package/dist/components/atoms/TextHighlight.d.ts +0 -53
- package/dist/components/atoms/Textarea.d.ts +0 -5
- package/dist/components/atoms/ThemeSelector.d.ts +0 -21
- package/dist/components/atoms/ThemeToggle.d.ts +0 -33
- package/dist/components/atoms/Typography.d.ts +0 -57
- package/dist/components/atoms/game/ControlButton.d.ts +0 -31
- package/dist/components/atoms/game/HealthBar.d.ts +0 -18
- package/dist/components/atoms/game/ScoreDisplay.d.ts +0 -21
- package/dist/components/atoms/game/Sprite.d.ts +0 -63
- package/dist/components/atoms/game/StateIndicator.d.ts +0 -31
- package/dist/components/atoms/game/index.d.ts +0 -12
- package/dist/components/atoms/index.d.ts +0 -27
- package/dist/components/index.d.ts +0 -6
- package/dist/components/molecules/Accordion.d.ts +0 -67
- package/dist/components/molecules/Alert.d.ts +0 -24
- package/dist/components/molecules/Breadcrumb.d.ts +0 -55
- package/dist/components/molecules/ButtonGroup.d.ts +0 -67
- package/dist/components/molecules/Card.d.ts +0 -44
- package/dist/components/molecules/Container.d.ts +0 -30
- package/dist/components/molecules/Drawer.d.ts +0 -46
- package/dist/components/molecules/EmptyState.d.ts +0 -25
- package/dist/components/molecules/ErrorBoundary.d.ts +0 -55
- package/dist/components/molecules/ErrorState.d.ts +0 -13
- package/dist/components/molecules/FilterGroup.d.ts +0 -54
- package/dist/components/molecules/Flex.d.ts +0 -43
- package/dist/components/molecules/FloatingActionButton.d.ts +0 -69
- package/dist/components/molecules/FormField.d.ts +0 -16
- package/dist/components/molecules/FormSectionHeader.d.ts +0 -30
- package/dist/components/molecules/Grid.d.ts +0 -54
- package/dist/components/molecules/InputGroup.d.ts +0 -24
- package/dist/components/molecules/LoadingState.d.ts +0 -7
- package/dist/components/molecules/Menu.d.ts +0 -40
- package/dist/components/molecules/Modal.d.ts +0 -26
- package/dist/components/molecules/Pagination.d.ts +0 -66
- package/dist/components/molecules/Popover.d.ts +0 -39
- package/dist/components/molecules/QuizBlock.d.ts +0 -20
- package/dist/components/molecules/RelationSelect.d.ts +0 -48
- package/dist/components/molecules/RepeatableFormSection.d.ts +0 -58
- package/dist/components/molecules/ScaledDiagram.d.ts +0 -20
- package/dist/components/molecules/SearchInput.d.ts +0 -60
- package/dist/components/molecules/SidePanel.d.ts +0 -47
- package/dist/components/molecules/SimpleGrid.d.ts +0 -27
- package/dist/components/molecules/Skeleton.d.ts +0 -35
- package/dist/components/molecules/Tabs.d.ts +0 -45
- package/dist/components/molecules/Toast.d.ts +0 -35
- package/dist/components/molecules/Tooltip.d.ts +0 -25
- package/dist/components/molecules/ViolationAlert.d.ts +0 -49
- package/dist/components/molecules/WizardNavigation.d.ts +0 -51
- package/dist/components/molecules/WizardProgress.d.ts +0 -42
- package/dist/components/molecules/game/StatBadge.d.ts +0 -27
- package/dist/components/molecules/index.d.ts +0 -38
- package/dist/components/molecules/markdown/CodeBlock.d.ts +0 -25
- package/dist/components/molecules/markdown/MarkdownContent.d.ts +0 -26
- package/dist/components/organisms/CardGrid.d.ts +0 -72
- package/dist/components/organisms/Chart.d.ts +0 -59
- package/dist/components/organisms/CodeViewer.d.ts +0 -67
- package/dist/components/organisms/ComponentPatterns.d.ts +0 -441
- package/dist/components/organisms/ConfirmDialog.d.ts +0 -50
- package/dist/components/organisms/ContentRenderer.d.ts +0 -23
- package/dist/components/organisms/CustomPattern.d.ts +0 -104
- package/dist/components/organisms/DataTable.d.ts +0 -63
- package/dist/components/organisms/DetailPanel.d.ts +0 -71
- package/dist/components/organisms/DocumentViewer.d.ts +0 -60
- package/dist/components/organisms/DrawerSlot.d.ts +0 -39
- package/dist/components/organisms/Form.d.ts +0 -203
- package/dist/components/organisms/FormSection.d.ts +0 -59
- package/dist/components/organisms/GraphCanvas.d.ts +0 -69
- package/dist/components/organisms/Header.d.ts +0 -110
- package/dist/components/organisms/JazariStateMachine.d.ts +0 -60
- package/dist/components/organisms/LayoutPatterns.d.ts +0 -181
- package/dist/components/organisms/List.d.ts +0 -76
- package/dist/components/organisms/MasterDetail.d.ts +0 -43
- package/dist/components/organisms/MediaGallery.d.ts +0 -66
- package/dist/components/organisms/Meter.d.ts +0 -58
- package/dist/components/organisms/ModalSlot.d.ts +0 -35
- package/dist/components/organisms/Navigation.d.ts +0 -68
- package/dist/components/organisms/OrbitalVisualization.d.ts +0 -48
- package/dist/components/organisms/PageHeader.d.ts +0 -59
- package/dist/components/organisms/Section.d.ts +0 -44
- package/dist/components/organisms/Sidebar.d.ts +0 -65
- package/dist/components/organisms/SignaturePad.d.ts +0 -44
- package/dist/components/organisms/Split.d.ts +0 -42
- package/dist/components/organisms/StatCard.d.ts +0 -66
- package/dist/components/organisms/StateMachineView.d.ts +0 -36
- package/dist/components/organisms/Table.d.ts +0 -99
- package/dist/components/organisms/Timeline.d.ts +0 -58
- package/dist/components/organisms/ToastSlot.d.ts +0 -38
- package/dist/components/organisms/UISlotRenderer.d.ts +0 -112
- package/dist/components/organisms/WizardContainer.d.ts +0 -160
- package/dist/components/organisms/book/BookChapterView.d.ts +0 -17
- package/dist/components/organisms/book/BookCoverPage.d.ts +0 -19
- package/dist/components/organisms/book/BookNavBar.d.ts +0 -18
- package/dist/components/organisms/book/BookTableOfContents.d.ts +0 -18
- package/dist/components/organisms/book/BookViewer.d.ts +0 -28
- package/dist/components/organisms/book/index.d.ts +0 -7
- package/dist/components/organisms/book/types.d.ts +0 -77
- package/dist/components/organisms/game/BattleBoard.d.ts +0 -167
- package/dist/components/organisms/game/CanvasEffect.d.ts +0 -68
- package/dist/components/organisms/game/CastleBoard.d.ts +0 -85
- package/dist/components/organisms/game/DialogueBox.d.ts +0 -73
- package/dist/components/organisms/game/GameAudioProvider.d.ts +0 -47
- package/dist/components/organisms/game/GameAudioToggle.d.ts +0 -28
- package/dist/components/organisms/game/GameHud.d.ts +0 -40
- package/dist/components/organisms/game/GameMenu.d.ts +0 -43
- package/dist/components/organisms/game/GameOverScreen.d.ts +0 -56
- package/dist/components/organisms/game/InventoryPanel.d.ts +0 -67
- package/dist/components/organisms/game/IsometricCanvas.d.ts +0 -123
- package/dist/components/organisms/game/TraitSlot.d.ts +0 -86
- package/dist/components/organisms/game/TraitStateViewer.d.ts +0 -53
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +0 -26
- package/dist/components/organisms/game/WorldMapBoard.d.ts +0 -147
- package/dist/components/organisms/game/editor/editorUtils.d.ts +0 -109
- package/dist/components/organisms/game/editor/index.d.ts +0 -9
- package/dist/components/organisms/game/hooks/useBattleState.d.ts +0 -35
- package/dist/components/organisms/game/hooks/useCamera.d.ts +0 -41
- package/dist/components/organisms/game/hooks/useGameAudio.d.ts +0 -47
- package/dist/components/organisms/game/hooks/useImageCache.d.ts +0 -16
- package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +0 -45
- package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +0 -43
- package/dist/components/organisms/game/index.d.ts +0 -36
- package/dist/components/organisms/game/managers/PhysicsManager.d.ts +0 -103
- package/dist/components/organisms/game/types/effects.d.ts +0 -253
- package/dist/components/organisms/game/types/isometric.d.ts +0 -109
- package/dist/components/organisms/game/types/spriteAnimation.d.ts +0 -73
- package/dist/components/organisms/game/utils/canvasEffects.d.ts +0 -50
- package/dist/components/organisms/game/utils/combatPresets.d.ts +0 -15
- package/dist/components/organisms/game/utils/isometric.d.ts +0 -61
- package/dist/components/organisms/game/utils/spriteAnimation.d.ts +0 -57
- package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +0 -16
- package/dist/components/organisms/index.d.ts +0 -37
- package/dist/components/organisms/layout/DashboardGrid.d.ts +0 -34
- package/dist/components/organisms/layout/MasterDetail.d.ts +0 -32
- package/dist/components/organisms/layout/SplitPane.d.ts +0 -34
- package/dist/components/organisms/layout/TabbedContainer.d.ts +0 -42
- package/dist/components/organisms/layout/index.d.ts +0 -9
- package/dist/components/organisms/types.d.ts +0 -65
- package/dist/components/templates/AuthLayout.d.ts +0 -14
- package/dist/components/templates/BattleTemplate.d.ts +0 -25
- package/dist/components/templates/CastleTemplate.d.ts +0 -23
- package/dist/components/templates/CounterTemplate.d.ts +0 -44
- package/dist/components/templates/DashboardLayout.d.ts +0 -32
- package/dist/components/templates/GameShell.d.ts +0 -33
- package/dist/components/templates/GameTemplate.d.ts +0 -36
- package/dist/components/templates/GenericAppTemplate.d.ts +0 -30
- package/dist/components/templates/WorldMapTemplate.d.ts +0 -29
- package/dist/components/templates/index.d.ts +0 -10
- package/dist/components/templates/types.d.ts +0 -17
- package/dist/context/DesignThemeContext.d.ts +0 -21
- package/dist/context/ThemeContext.d.ts +0 -104
- package/dist/context/UISlotContext.d.ts +0 -75
- package/dist/context/UserContext.d.ts +0 -111
- package/dist/context/index.d.ts +0 -8
- package/dist/hooks/event-bus-types.d.ts +0 -71
- package/dist/hooks/index.d.ts +0 -25
- package/dist/hooks/useAgentChat.d.ts +0 -104
- package/dist/hooks/useAuthContext.d.ts +0 -25
- package/dist/hooks/useCompile.d.ts +0 -22
- package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
- package/dist/hooks/useEntities.d.ts +0 -52
- package/dist/hooks/useEntityData.d.ts +0 -155
- package/dist/hooks/useEntityMutations.d.ts +0 -80
- package/dist/hooks/useEventBus.d.ts +0 -96
- package/dist/hooks/useExtensions.d.ts +0 -32
- package/dist/hooks/useFileEditor.d.ts +0 -32
- package/dist/hooks/useFileSystem.d.ts +0 -40
- package/dist/hooks/useGitHub.d.ts +0 -58
- package/dist/hooks/useOrbitalHistory.d.ts +0 -39
- package/dist/hooks/useOrbitalMutations.d.ts +0 -95
- package/dist/hooks/usePreview.d.ts +0 -57
- package/dist/hooks/useQuerySingleton.d.ts +0 -78
- package/dist/hooks/useResolvedEntity.d.ts +0 -32
- package/dist/hooks/useTranslate.d.ts +0 -35
- package/dist/hooks/useUIEvents.d.ts +0 -35
- package/dist/hooks/useUISlots.d.ts +0 -84
- package/dist/hooks/useValidation.d.ts +0 -46
- package/dist/lib/api-client.d.ts +0 -42
- package/dist/lib/cn.d.ts +0 -6
- package/dist/lib/debug.d.ts +0 -43
- package/dist/lib/debugRegistry.d.ts +0 -29
- package/dist/lib/debugUtils.d.ts +0 -27
- package/dist/lib/entityDebug.d.ts +0 -38
- package/dist/lib/getNestedValue.d.ts +0 -33
- package/dist/lib/guardRegistry.d.ts +0 -32
- package/dist/lib/index.d.ts +0 -18
- package/dist/lib/jazari/svg-paths.d.ts +0 -61
- package/dist/lib/parseContentSegments.d.ts +0 -41
- package/dist/lib/tickRegistry.d.ts +0 -40
- package/dist/lib/traitRegistry.d.ts +0 -34
- package/dist/lib/verificationRegistry.d.ts +0 -107
- package/dist/lib/visualizer/index.d.ts +0 -143
- package/dist/locales/index.d.ts +0 -20
- package/dist/providers/EventBusProvider.d.ts +0 -60
- package/dist/providers/FetchedDataProvider.d.ts +0 -105
- package/dist/providers/OfflineModeProvider.d.ts +0 -79
- package/dist/providers/OrbitalProvider.d.ts +0 -101
- package/dist/providers/SelectionProvider.d.ts +0 -81
- package/dist/providers/VerificationProvider.d.ts +0 -63
- package/dist/providers/index.d.ts +0 -17
- package/dist/renderer/client-effect-executor.d.ts +0 -68
- package/dist/renderer/data-resolver.d.ts +0 -68
- package/dist/renderer/index.d.ts +0 -28
- package/dist/renderer/init.d.ts +0 -14
- package/dist/renderer/navigation.d.ts +0 -142
- package/dist/renderer/offline-executor.d.ts +0 -238
- package/dist/renderer/pattern-resolver.d.ts +0 -91
- package/dist/renderer/slot-definitions.d.ts +0 -45
- package/dist/renderer/types.d.ts +0 -160
- package/dist/renderer/useClientEffects.d.ts +0 -88
- package/dist/stores/entityStore.d.ts +0 -99
- package/dist/stores/filtering.d.ts +0 -51
- package/dist/stores/index.d.ts +0 -7
- package/dist/{chunk-RIZ76XRF.js → chunk-X3IKFHFT.js} +1 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Menu Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A dropdown menu component with items, icons, dividers, and sub-menus.
|
|
5
|
-
* Uses theme-aware CSS variables for styling.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
import type { LucideIcon } from "lucide-react";
|
|
9
|
-
export interface MenuItem {
|
|
10
|
-
/** Item ID (auto-generated from label if not provided) */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** Item label */
|
|
13
|
-
label: string;
|
|
14
|
-
/** Item icon (LucideIcon or string name) */
|
|
15
|
-
icon?: LucideIcon | string;
|
|
16
|
-
/** Item badge */
|
|
17
|
-
badge?: string | number;
|
|
18
|
-
/** Disable item */
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/** Item click handler */
|
|
21
|
-
onClick?: () => void;
|
|
22
|
-
/** Event name for pattern compatibility */
|
|
23
|
-
event?: string;
|
|
24
|
-
/** Variant for styling (pattern compatibility) */
|
|
25
|
-
variant?: "default" | "danger";
|
|
26
|
-
/** Sub-menu items */
|
|
27
|
-
subMenu?: MenuItem[];
|
|
28
|
-
}
|
|
29
|
-
export type MenuPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
30
|
-
export interface MenuProps {
|
|
31
|
-
/** Menu trigger element */
|
|
32
|
-
trigger: React.ReactNode;
|
|
33
|
-
/** Menu items */
|
|
34
|
-
items: MenuItem[];
|
|
35
|
-
/** Menu position */
|
|
36
|
-
position?: MenuPosition;
|
|
37
|
-
/** Additional CSS classes */
|
|
38
|
-
className?: string;
|
|
39
|
-
}
|
|
40
|
-
export declare const Menu: React.FC<MenuProps>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Modal Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A modal dialog component with overlay, header, content, and footer.
|
|
5
|
-
* Uses theme-aware CSS variables for styling.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
9
|
-
export interface ModalProps {
|
|
10
|
-
/** Whether the modal is open (defaults to true when rendered by slot wrapper) */
|
|
11
|
-
isOpen?: boolean;
|
|
12
|
-
/** Callback when modal should close (injected by slot wrapper) */
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
title?: string;
|
|
15
|
-
/** Modal content (can be empty if using slot content) */
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
footer?: React.ReactNode;
|
|
18
|
-
size?: ModalSize;
|
|
19
|
-
showCloseButton?: boolean;
|
|
20
|
-
closeOnOverlayClick?: boolean;
|
|
21
|
-
closeOnEscape?: boolean;
|
|
22
|
-
className?: string;
|
|
23
|
-
/** Declarative close event — emits UI:{closeEvent} via eventBus when modal should close */
|
|
24
|
-
closeEvent?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pagination Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A pagination component with page numbers, previous/next buttons, and ellipsis.
|
|
5
|
-
* Uses Button, Icon, Typography, and Input atoms.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export interface PaginationProps {
|
|
9
|
-
/**
|
|
10
|
-
* Current page (1-indexed)
|
|
11
|
-
*/
|
|
12
|
-
currentPage: number;
|
|
13
|
-
/**
|
|
14
|
-
* Total number of pages
|
|
15
|
-
*/
|
|
16
|
-
totalPages: number;
|
|
17
|
-
/**
|
|
18
|
-
* Callback when page changes (optional - can be a no-op if not interactive)
|
|
19
|
-
*/
|
|
20
|
-
onPageChange?: (page: number) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Show page size selector
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
showPageSize?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Page size options
|
|
28
|
-
*/
|
|
29
|
-
pageSizeOptions?: number[];
|
|
30
|
-
/**
|
|
31
|
-
* Current page size
|
|
32
|
-
*/
|
|
33
|
-
pageSize?: number;
|
|
34
|
-
/**
|
|
35
|
-
* Callback when page size changes
|
|
36
|
-
*/
|
|
37
|
-
onPageSizeChange?: (size: number) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Show jump to page input
|
|
40
|
-
* @default false
|
|
41
|
-
*/
|
|
42
|
-
showJumpToPage?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Show total count
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
showTotal?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Total items count
|
|
50
|
-
*/
|
|
51
|
-
totalItems?: number;
|
|
52
|
-
/**
|
|
53
|
-
* Maximum number of page buttons to show
|
|
54
|
-
* @default 7
|
|
55
|
-
*/
|
|
56
|
-
maxVisiblePages?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Additional CSS classes
|
|
59
|
-
*/
|
|
60
|
-
className?: string;
|
|
61
|
-
/** Declarative page change event — emits UI:{pageChangeEvent} with { page } */
|
|
62
|
-
pageChangeEvent?: string;
|
|
63
|
-
/** Declarative page size change event — emits UI:{pageSizeChangeEvent} with { pageSize } */
|
|
64
|
-
pageSizeChangeEvent?: string;
|
|
65
|
-
}
|
|
66
|
-
export declare const Pagination: React.FC<PaginationProps>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Popover Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A popover component with position variants and click/hover triggers.
|
|
5
|
-
* Uses Button, Typography, and Icon atoms.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export type PopoverPosition = "top" | "bottom" | "left" | "right";
|
|
9
|
-
export type PopoverTrigger = "click" | "hover";
|
|
10
|
-
export interface PopoverProps {
|
|
11
|
-
/**
|
|
12
|
-
* Popover content
|
|
13
|
-
*/
|
|
14
|
-
content: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Popover trigger element (ReactElement or ReactNode that will be wrapped in span)
|
|
17
|
-
*/
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Popover position
|
|
21
|
-
* @default 'bottom'
|
|
22
|
-
*/
|
|
23
|
-
position?: PopoverPosition;
|
|
24
|
-
/**
|
|
25
|
-
* Trigger type
|
|
26
|
-
* @default 'click'
|
|
27
|
-
*/
|
|
28
|
-
trigger?: PopoverTrigger;
|
|
29
|
-
/**
|
|
30
|
-
* Show arrow
|
|
31
|
-
* @default true
|
|
32
|
-
*/
|
|
33
|
-
showArrow?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Additional CSS classes
|
|
36
|
-
*/
|
|
37
|
-
className?: string;
|
|
38
|
-
}
|
|
39
|
-
export declare const Popover: React.FC<PopoverProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QuizBlock Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A collapsible Q&A block for embedded quiz questions in content.
|
|
5
|
-
* Shows the question with a reveal button for the answer.
|
|
6
|
-
*
|
|
7
|
-
* Event Contract:
|
|
8
|
-
* - No events emitted (self-contained interaction)
|
|
9
|
-
* - entityAware: false
|
|
10
|
-
*/
|
|
11
|
-
import React from 'react';
|
|
12
|
-
export interface QuizBlockProps {
|
|
13
|
-
/** The quiz question */
|
|
14
|
-
question: string;
|
|
15
|
-
/** The quiz answer (revealed on toggle) */
|
|
16
|
-
answer: string;
|
|
17
|
-
/** Additional CSS classes */
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const QuizBlock: React.FC<QuizBlockProps>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RelationSelect Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A searchable select component for relation fields.
|
|
5
|
-
* Allows users to search and select from related entities.
|
|
6
|
-
*
|
|
7
|
-
* Composed from: Box, HStack, VStack, Input, Button, Spinner, Typography atoms
|
|
8
|
-
*/
|
|
9
|
-
import React from "react";
|
|
10
|
-
export interface RelationOption {
|
|
11
|
-
/** The value to store (typically the ID) */
|
|
12
|
-
value: string;
|
|
13
|
-
/** The display label */
|
|
14
|
-
label: string;
|
|
15
|
-
/** Optional description */
|
|
16
|
-
description?: string;
|
|
17
|
-
/** Whether this option is disabled */
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface RelationSelectProps {
|
|
21
|
-
/** Current value (ID) */
|
|
22
|
-
value?: string;
|
|
23
|
-
/** Callback when value changes */
|
|
24
|
-
onChange?: (value: string | undefined) => void;
|
|
25
|
-
/** Available options - accepts readonly for compatibility with generated const arrays */
|
|
26
|
-
options: readonly RelationOption[];
|
|
27
|
-
/** Placeholder text */
|
|
28
|
-
placeholder?: string;
|
|
29
|
-
/** Whether the field is required */
|
|
30
|
-
required?: boolean;
|
|
31
|
-
/** Whether the field is disabled */
|
|
32
|
-
disabled?: boolean;
|
|
33
|
-
/** Whether data is loading */
|
|
34
|
-
isLoading?: boolean;
|
|
35
|
-
/** Error message */
|
|
36
|
-
error?: string;
|
|
37
|
-
/** Allow clearing the selection */
|
|
38
|
-
clearable?: boolean;
|
|
39
|
-
/** Name attribute for forms */
|
|
40
|
-
name?: string;
|
|
41
|
-
/** Additional CSS classes */
|
|
42
|
-
className?: string;
|
|
43
|
-
/** Search placeholder */
|
|
44
|
-
searchPlaceholder?: string;
|
|
45
|
-
/** Empty state message */
|
|
46
|
-
emptyMessage?: string;
|
|
47
|
-
}
|
|
48
|
-
export declare const RelationSelect: React.FC<RelationSelectProps>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RepeatableFormSection
|
|
3
|
-
*
|
|
4
|
-
* A form section that can be repeated multiple times.
|
|
5
|
-
* Used for collecting multiple entries (participants, findings, etc.)
|
|
6
|
-
*
|
|
7
|
-
* Enhanced with trackAddedInState for inspection audit trails.
|
|
8
|
-
*
|
|
9
|
-
* Event Contract:
|
|
10
|
-
* - Emits: UI:SECTION_ADDED { sectionType, index, addedInState? }
|
|
11
|
-
* - Emits: UI:SECTION_REMOVED { sectionType, index, itemId }
|
|
12
|
-
*/
|
|
13
|
-
import React from "react";
|
|
14
|
-
export interface RepeatableItem {
|
|
15
|
-
id: string;
|
|
16
|
-
/** State in which this item was added (for audit trails) */
|
|
17
|
-
addedInState?: string;
|
|
18
|
-
/** Timestamp when item was added */
|
|
19
|
-
addedAt?: string;
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
}
|
|
22
|
-
export interface RepeatableFormSectionProps {
|
|
23
|
-
/** Section type identifier */
|
|
24
|
-
sectionType: string;
|
|
25
|
-
/** Section title */
|
|
26
|
-
title: string;
|
|
27
|
-
/** Items in the section */
|
|
28
|
-
items: RepeatableItem[];
|
|
29
|
-
/** Render function for each item */
|
|
30
|
-
renderItem: (item: RepeatableItem, index: number) => React.ReactNode;
|
|
31
|
-
/** Minimum items required */
|
|
32
|
-
minItems?: number;
|
|
33
|
-
/** Maximum items allowed */
|
|
34
|
-
maxItems?: number;
|
|
35
|
-
/** Allow reordering */
|
|
36
|
-
allowReorder?: boolean;
|
|
37
|
-
/** Add button label */
|
|
38
|
-
addLabel?: string;
|
|
39
|
-
/** Empty state message */
|
|
40
|
-
emptyMessage?: string;
|
|
41
|
-
/** Read-only mode */
|
|
42
|
-
readOnly?: boolean;
|
|
43
|
-
/** Additional CSS classes */
|
|
44
|
-
className?: string;
|
|
45
|
-
/** Add handler */
|
|
46
|
-
onAdd?: () => void;
|
|
47
|
-
/** Remove handler */
|
|
48
|
-
onRemove?: (itemId: string, index: number) => void;
|
|
49
|
-
/** Reorder handler */
|
|
50
|
-
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
51
|
-
/** Track the state in which items are added (for inspection audit) */
|
|
52
|
-
trackAddedInState?: boolean;
|
|
53
|
-
/** Current inspection state (used when trackAddedInState is true) */
|
|
54
|
-
currentState?: string;
|
|
55
|
-
/** Show audit metadata (addedInState, addedAt) */
|
|
56
|
-
showAuditInfo?: boolean;
|
|
57
|
-
}
|
|
58
|
-
export declare const RepeatableFormSection: React.FC<RepeatableFormSectionProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ScaledDiagram Molecule
|
|
3
|
-
*
|
|
4
|
-
* Wraps a fixed-size diagram (like JazariStateMachine / StateMachineView)
|
|
5
|
-
* and CSS-scales it to fit the parent container width.
|
|
6
|
-
*
|
|
7
|
-
* The diagram renders at its natural (large) size. We observe the content
|
|
8
|
-
* element and once the diagram is measured we apply transform:scale() with
|
|
9
|
-
* a corrected container height so surrounding layout flows correctly.
|
|
10
|
-
*
|
|
11
|
-
* Event Contract:
|
|
12
|
-
* - No events emitted (layout-only wrapper)
|
|
13
|
-
* - entityAware: false
|
|
14
|
-
*/
|
|
15
|
-
import React from 'react';
|
|
16
|
-
export interface ScaledDiagramProps {
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const ScaledDiagram: React.FC<ScaledDiagramProps>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SearchInput Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A search input component with icon, clear button, and loading state.
|
|
5
|
-
* Uses Input, Icon, Button, and Spinner atoms.
|
|
6
|
-
*
|
|
7
|
-
* Supports Query Singleton pattern via `query` prop for std/Search behavior.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
export interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
11
|
-
/**
|
|
12
|
-
* Search value (controlled mode)
|
|
13
|
-
*/
|
|
14
|
-
value?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Callback when search value changes
|
|
17
|
-
*/
|
|
18
|
-
onSearch?: (value: string) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Debounce delay in milliseconds
|
|
21
|
-
* @default 300
|
|
22
|
-
*/
|
|
23
|
-
debounceMs?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Show loading state
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
isLoading?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Placeholder text
|
|
31
|
-
* @default 'Search...'
|
|
32
|
-
*/
|
|
33
|
-
placeholder?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Show clear button
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
clearable?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Additional CSS classes
|
|
41
|
-
*/
|
|
42
|
-
className?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Event name to dispatch on search (schema metadata, wired by trait)
|
|
45
|
-
* This is metadata used by the trait generator, not by the component.
|
|
46
|
-
*/
|
|
47
|
-
event?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Entity type for context-aware search.
|
|
50
|
-
* When provided, search events include entity context.
|
|
51
|
-
*/
|
|
52
|
-
entity?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Query singleton binding for state management.
|
|
55
|
-
* When provided, syncs search state with the query singleton.
|
|
56
|
-
* Example: "@TaskQuery"
|
|
57
|
-
*/
|
|
58
|
-
query?: string;
|
|
59
|
-
}
|
|
60
|
-
export declare const SearchInput: React.FC<SearchInputProps>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SidePanel Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A side panel that slides in from the right (or left) with header and content.
|
|
5
|
-
* Uses Button, Typography atoms.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export interface SidePanelProps {
|
|
9
|
-
/**
|
|
10
|
-
* Panel title
|
|
11
|
-
*/
|
|
12
|
-
title: string;
|
|
13
|
-
/**
|
|
14
|
-
* Panel content
|
|
15
|
-
*/
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Is panel open
|
|
19
|
-
*/
|
|
20
|
-
isOpen: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* On close handler
|
|
23
|
-
*/
|
|
24
|
-
onClose: () => void;
|
|
25
|
-
/**
|
|
26
|
-
* Panel width
|
|
27
|
-
* @default 'w-96'
|
|
28
|
-
*/
|
|
29
|
-
width?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Panel position
|
|
32
|
-
* @default 'right'
|
|
33
|
-
*/
|
|
34
|
-
position?: "left" | "right";
|
|
35
|
-
/**
|
|
36
|
-
* Show overlay on mobile
|
|
37
|
-
* @default true
|
|
38
|
-
*/
|
|
39
|
-
showOverlay?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Additional CSS classes
|
|
42
|
-
*/
|
|
43
|
-
className?: string;
|
|
44
|
-
/** Declarative close event — emits UI:{closeEvent} via eventBus when panel should close */
|
|
45
|
-
closeEvent?: string;
|
|
46
|
-
}
|
|
47
|
-
export declare const SidePanel: React.FC<SidePanelProps>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SimpleGrid Component
|
|
3
|
-
*
|
|
4
|
-
* A simplified grid that automatically adjusts columns based on available space.
|
|
5
|
-
* Perfect for card layouts and item collections.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export type SimpleGridGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
-
export interface SimpleGridProps {
|
|
10
|
-
/** Minimum width of each child (e.g., 200, "200px", "15rem") */
|
|
11
|
-
minChildWidth?: number | string;
|
|
12
|
-
/** Maximum number of columns */
|
|
13
|
-
maxCols?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
14
|
-
/** Exact number of columns (disables auto-fit) */
|
|
15
|
-
cols?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
16
|
-
/** Gap between items */
|
|
17
|
-
gap?: SimpleGridGap;
|
|
18
|
-
/** Custom class name */
|
|
19
|
-
className?: string;
|
|
20
|
-
/** Children elements */
|
|
21
|
-
children: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* SimpleGrid - Auto-responsive grid layout
|
|
25
|
-
*/
|
|
26
|
-
export declare const SimpleGrid: React.FC<SimpleGridProps>;
|
|
27
|
-
export default SimpleGrid;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type SkeletonVariant = 'header' | 'table' | 'form' | 'card' | 'text';
|
|
3
|
-
export interface SkeletonProps {
|
|
4
|
-
/** The skeleton variant to render */
|
|
5
|
-
variant?: SkeletonVariant;
|
|
6
|
-
/** Number of rows for table/text variants */
|
|
7
|
-
rows?: number;
|
|
8
|
-
/** Number of columns for table variant */
|
|
9
|
-
columns?: number;
|
|
10
|
-
/** Number of fields for form variant */
|
|
11
|
-
fields?: number;
|
|
12
|
-
/** Additional CSS classes */
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Skeleton — loading placeholder with 5 variants for Suspense fallbacks.
|
|
17
|
-
*
|
|
18
|
-
* Variants: `header`, `table`, `form`, `card`, `text`.
|
|
19
|
-
* Used as fallback content inside `<Suspense>` boundaries.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <Suspense fallback={<Skeleton variant="table" rows={8} columns={5} />}>
|
|
24
|
-
* <DataTable entity="Task" />
|
|
25
|
-
* </Suspense>
|
|
26
|
-
*
|
|
27
|
-
* <Suspense fallback={<Skeleton variant="form" fields={6} />}>
|
|
28
|
-
* <Form entity="Task" />
|
|
29
|
-
* </Suspense>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare function Skeleton({ variant, rows, columns, fields, className, }: SkeletonProps): React.ReactElement;
|
|
33
|
-
export declare namespace Skeleton {
|
|
34
|
-
var displayName: string;
|
|
35
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tabs Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A tabbed interface component with keyboard navigation and badge support.
|
|
5
|
-
* Uses theme-aware CSS variables for styling.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import type { LucideIcon } from 'lucide-react';
|
|
9
|
-
export interface TabItem {
|
|
10
|
-
/** Tab ID */
|
|
11
|
-
id: string;
|
|
12
|
-
/** Tab label */
|
|
13
|
-
label: string;
|
|
14
|
-
/** Tab content - optional for event-driven tabs */
|
|
15
|
-
content?: React.ReactNode;
|
|
16
|
-
/** Tab icon */
|
|
17
|
-
icon?: LucideIcon;
|
|
18
|
-
/** Tab badge */
|
|
19
|
-
badge?: string | number;
|
|
20
|
-
/** Disable tab */
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
/** Event to emit when tab is clicked (for trait state machine integration) */
|
|
23
|
-
event?: string;
|
|
24
|
-
/** Whether this tab is currently active (for controlled tabs) */
|
|
25
|
-
active?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface TabsProps {
|
|
28
|
-
/** Tab items */
|
|
29
|
-
items?: TabItem[];
|
|
30
|
-
/** Tab items (alias for items - used by generated code) */
|
|
31
|
-
tabs?: TabItem[];
|
|
32
|
-
/** Default active tab ID */
|
|
33
|
-
defaultActiveTab?: string;
|
|
34
|
-
/** Controlled active tab ID */
|
|
35
|
-
activeTab?: string;
|
|
36
|
-
/** Callback when tab changes */
|
|
37
|
-
onTabChange?: (tabId: string) => void;
|
|
38
|
-
/** Tab variant */
|
|
39
|
-
variant?: 'default' | 'pills' | 'underline';
|
|
40
|
-
/** Tab orientation */
|
|
41
|
-
orientation?: 'horizontal' | 'vertical';
|
|
42
|
-
/** Additional CSS classes */
|
|
43
|
-
className?: string;
|
|
44
|
-
}
|
|
45
|
-
export declare const Tabs: React.FC<TabsProps>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Toast Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A toast notification component with auto-dismiss and action buttons.
|
|
5
|
-
* Uses theme-aware CSS variables for styling.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export type ToastVariant = "success" | "error" | "info" | "warning";
|
|
9
|
-
export interface ToastProps {
|
|
10
|
-
/** Toast variant */
|
|
11
|
-
variant?: ToastVariant;
|
|
12
|
-
/** Toast message */
|
|
13
|
-
message: string;
|
|
14
|
-
/** Toast title (optional) */
|
|
15
|
-
title?: string;
|
|
16
|
-
/** Auto-dismiss duration in milliseconds (0 = no auto-dismiss) */
|
|
17
|
-
duration?: number;
|
|
18
|
-
/** Show dismiss button */
|
|
19
|
-
dismissible?: boolean;
|
|
20
|
-
/** Callback when toast is dismissed */
|
|
21
|
-
onDismiss?: () => void;
|
|
22
|
-
/** Action button label */
|
|
23
|
-
actionLabel?: string;
|
|
24
|
-
/** Action button click handler */
|
|
25
|
-
onAction?: () => void;
|
|
26
|
-
/** Badge count (optional) */
|
|
27
|
-
badge?: string | number;
|
|
28
|
-
/** Additional CSS classes */
|
|
29
|
-
className?: string;
|
|
30
|
-
/** Declarative dismiss event — emits UI:{dismissEvent} via eventBus when toast is dismissed */
|
|
31
|
-
dismissEvent?: string;
|
|
32
|
-
/** Declarative action event — emits UI:{actionEvent} via eventBus when action button is clicked */
|
|
33
|
-
actionEvent?: string;
|
|
34
|
-
}
|
|
35
|
-
export declare const Toast: React.FC<ToastProps>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tooltip Molecule Component
|
|
3
|
-
*
|
|
4
|
-
* A tooltip component with position variants and delay options.
|
|
5
|
-
* Uses theme-aware CSS variables for styling.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
9
|
-
export interface TooltipProps {
|
|
10
|
-
/** Tooltip content */
|
|
11
|
-
content: React.ReactNode;
|
|
12
|
-
/** Tooltip trigger element (ReactElement or ReactNode that will be wrapped in span) */
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
/** Tooltip position */
|
|
15
|
-
position?: TooltipPosition;
|
|
16
|
-
/** Show delay in milliseconds */
|
|
17
|
-
delay?: number;
|
|
18
|
-
/** Hide delay in milliseconds */
|
|
19
|
-
hideDelay?: number;
|
|
20
|
-
/** Show arrow */
|
|
21
|
-
showArrow?: boolean;
|
|
22
|
-
/** Additional CSS classes */
|
|
23
|
-
className?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare const Tooltip: React.FC<TooltipProps>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ViolationAlert
|
|
3
|
-
*
|
|
4
|
-
* Displays inspection violations with law references and action types.
|
|
5
|
-
* Used in inspection forms to show detected compliance violations.
|
|
6
|
-
*
|
|
7
|
-
* Action Types:
|
|
8
|
-
* - measure: Corrective measure required (warning)
|
|
9
|
-
* - admin: Administrative action (error)
|
|
10
|
-
* - penalty: Penalty proceedings (error, severe)
|
|
11
|
-
*/
|
|
12
|
-
import React from "react";
|
|
13
|
-
export interface ViolationRecord {
|
|
14
|
-
/** Unique violation identifier */
|
|
15
|
-
id: string;
|
|
16
|
-
/** Law reference (e.g., "ZVPOT-1") */
|
|
17
|
-
law: string;
|
|
18
|
-
/** Article reference (e.g., "14/1") */
|
|
19
|
-
article: string;
|
|
20
|
-
/** Violation message */
|
|
21
|
-
message: string;
|
|
22
|
-
/** Action type determines severity */
|
|
23
|
-
actionType: "measure" | "admin" | "penalty";
|
|
24
|
-
/** Administrative action reference (e.g., "ZVPOT-1 234/1-4") */
|
|
25
|
-
adminAction?: string;
|
|
26
|
-
/** Penalty action reference (e.g., "ZVPOT-1 240/1-9") */
|
|
27
|
-
penaltyAction?: string;
|
|
28
|
-
/** Field that triggered this violation */
|
|
29
|
-
fieldId?: string;
|
|
30
|
-
/** Tab/form where violation occurred */
|
|
31
|
-
tabId?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ViolationAlertProps {
|
|
34
|
-
/** Violation data */
|
|
35
|
-
violation: ViolationRecord;
|
|
36
|
-
/** Visual severity (derived from actionType if not specified) */
|
|
37
|
-
severity?: "warning" | "error";
|
|
38
|
-
/** Dismissible alert */
|
|
39
|
-
dismissible?: boolean;
|
|
40
|
-
/** Dismiss handler */
|
|
41
|
-
onDismiss?: () => void;
|
|
42
|
-
/** Navigate to the field that caused violation */
|
|
43
|
-
onNavigateToField?: (fieldId: string) => void;
|
|
44
|
-
/** Compact display mode */
|
|
45
|
-
compact?: boolean;
|
|
46
|
-
/** Additional CSS classes */
|
|
47
|
-
className?: string;
|
|
48
|
-
}
|
|
49
|
-
export declare const ViolationAlert: React.FC<ViolationAlertProps>;
|