@wandelbots/wandelbots-js-react-components 6.3.0 → 6.4.0-pr.ci-release-guard.668.ec1f74f

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 (91) hide show
  1. package/README.md +185 -124
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +0 -3
  4. package/dist/3d.js +16 -21
  5. package/dist/SafetyBar/index.cjs +1 -1
  6. package/dist/SafetyBar/index.js +1 -1
  7. package/dist/chunks/ConnectedMotionGroup-BewSDQvD.cjs +4 -0
  8. package/dist/chunks/ConnectedMotionGroup-D6-4wBkk.js +2654 -0
  9. package/dist/chunks/Robot-C0uICTOn.js +1271 -0
  10. package/dist/chunks/Robot-D6RUDXEz.cjs +1 -0
  11. package/dist/chunks/{SafetyBar-Cy9DiXp9.js → SafetyBar-C2-H1ifP.js} +1 -1
  12. package/dist/chunks/{SafetyBar-DPrv_OQA.cjs → SafetyBar-Cq_WsuK2.cjs} +1 -1
  13. package/dist/chunks/externalizeComponent-Bue3-Wra.cjs +2 -0
  14. package/dist/chunks/{externalizeComponent-EDymnaGR.js → externalizeComponent-C0cVcPE2.js} +29 -107
  15. package/dist/chunks/useSmoothedMotionState-COMJRcOt.js +214 -0
  16. package/dist/chunks/useSmoothedMotionState-Con0E5Bx.cjs +1 -0
  17. package/dist/components/AppHeader.d.ts +1 -1
  18. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +1 -1
  19. package/dist/components/jogging/JoggingJointTab.d.ts +1 -1
  20. package/dist/components/jogging/JoggingPanel.d.ts +6 -3
  21. package/dist/components/jogging/JoggingStore.d.ts +5 -1
  22. package/dist/components/jogging/joggingColors.d.ts +18 -0
  23. package/dist/components/robots/GenericRobot.d.ts +2 -1
  24. package/dist/components/robots/LinearAxis.d.ts +1 -1
  25. package/dist/components/robots/LinearAxisAnimator.d.ts +11 -2
  26. package/dist/components/robots/Robot.d.ts +1 -1
  27. package/dist/components/robots/robotModelLogic.d.ts +11 -9
  28. package/dist/components/utils/hooks.d.ts +1 -6
  29. package/dist/core.cjs +1 -1
  30. package/dist/core.d.ts +3 -18
  31. package/dist/core.js +27 -54
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.js +39 -71
  34. package/dist/lib/ConnectedMotionGroup.d.ts +5 -7
  35. package/dist/lib/JoggerConnection.d.ts +29 -5
  36. package/dist/lib/MotionStreamConnection.d.ts +4 -6
  37. package/dist/lib/novaConnection.d.ts +23 -0
  38. package/package.json +32 -66
  39. package/dist/Setup.d.ts +0 -11
  40. package/dist/chunks/MotionGroupVisualizer-DshWR1wY.js +0 -1653
  41. package/dist/chunks/MotionGroupVisualizer-eD7yFEcF.cjs +0 -1
  42. package/dist/chunks/externalizeComponent-OO4jcrz5.cjs +0 -2
  43. package/dist/chunks/theming-DfSy4-Ic.cjs +0 -4
  44. package/dist/chunks/theming-mF9Rt8SS.js +0 -5542
  45. package/dist/chunks/useSmoothedMotionState-DyDgSVYX.js +0 -478
  46. package/dist/chunks/useSmoothedMotionState-VYxEIyfr.cjs +0 -1
  47. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +0 -11
  48. package/dist/components/AdornedTextField.d.ts +0 -7
  49. package/dist/components/CopyableText.d.ts +0 -6
  50. package/dist/components/CycleTimer/CycleTimer.d.ts +0 -3
  51. package/dist/components/CycleTimer/DefaultVariant.d.ts +0 -9
  52. package/dist/components/CycleTimer/SmallVariant.d.ts +0 -10
  53. package/dist/components/CycleTimer/index.d.ts +0 -27
  54. package/dist/components/CycleTimer/types.d.ts +0 -49
  55. package/dist/components/CycleTimer/useAnimations.d.ts +0 -14
  56. package/dist/components/CycleTimer/useTimerLogic.d.ts +0 -24
  57. package/dist/components/CycleTimer/utils.d.ts +0 -21
  58. package/dist/components/CycleTimer.d.ts +0 -3
  59. package/dist/components/DataGrid.d.ts +0 -66
  60. package/dist/components/LogPanel.d.ts +0 -38
  61. package/dist/components/LogStore.d.ts +0 -12
  62. package/dist/components/LogViewer.d.ts +0 -46
  63. package/dist/components/ProgramControl.d.ts +0 -55
  64. package/dist/components/ProgramStateIndicator.d.ts +0 -26
  65. package/dist/components/RobotCard.d.ts +0 -98
  66. package/dist/components/RobotListItem.d.ts +0 -34
  67. package/dist/components/RobotSetupReadinessIndicator.d.ts +0 -37
  68. package/dist/components/SelectableFab.d.ts +0 -7
  69. package/dist/components/TabBar.d.ts +0 -45
  70. package/dist/components/ThemeSelect.d.ts +0 -6
  71. package/dist/components/Timer/Timer.d.ts +0 -3
  72. package/dist/components/Timer/TimerDefaultVariant.d.ts +0 -9
  73. package/dist/components/Timer/TimerSmallVariant.d.ts +0 -10
  74. package/dist/components/Timer/index.d.ts +0 -19
  75. package/dist/components/Timer/types.d.ts +0 -35
  76. package/dist/components/Timer/useTimerAnimations.d.ts +0 -10
  77. package/dist/components/Timer/useTimerLogic.d.ts +0 -19
  78. package/dist/components/Timer/utils.d.ts +0 -17
  79. package/dist/components/Timer.d.ts +0 -3
  80. package/dist/components/TransparentOverlay.d.ts +0 -4
  81. package/dist/components/jogging/JoggingFreedriveTab.d.ts +0 -1
  82. package/dist/components/jogging/PoseCartesianValues.d.ts +0 -9
  83. package/dist/components/jogging/PoseJointValues.d.ts +0 -8
  84. package/dist/components/robots/AxisConfig.d.ts +0 -2
  85. package/dist/components/robots/manufacturerHomePositions.d.ts +0 -20
  86. package/dist/icons/DropdownArrowIcon.d.ts +0 -2
  87. package/dist/icons/index.d.ts +0 -12
  88. package/dist/lib/novaCompat.d.ts +0 -16
  89. package/dist/themes/createDarkTheme.d.ts +0 -7
  90. package/dist/themes/themeTypes.d.ts +0 -40
  91. package/dist/themes/theming.d.ts +0 -24
@@ -1,21 +0,0 @@
1
- /**
2
- * Formats time in seconds to D:HH:MM:SS, H:MM:SS or MM:SS format
3
- * Used for the default (large) timer variant
4
- * Automatically includes days and hours as needed for clarity
5
- */
6
- export declare const formatTime: (seconds: number) => string;
7
- /**
8
- * Formats time in seconds to a localized human-readable format
9
- * Used for the small timer variant
10
- * Examples: "2h 30m 15s", "45m 30s", "30s"
11
- * Falls back to English units if Intl.DurationFormat is not available
12
- */
13
- export declare const formatTimeLocalized: (seconds: number, locale?: string) => string;
14
- /**
15
- * Calculates progress percentage for different timer states
16
- */
17
- export declare const calculateProgress: (currentState: string, remainingTime: number, maxTime: number | null) => number;
18
- /**
19
- * Calculates exact progress position based on elapsed time
20
- */
21
- export declare const calculateExactProgress: (currentState: string, totalElapsed: number, maxTime: number | null) => number;
@@ -1,3 +0,0 @@
1
- export { CycleTimer } from "./CycleTimer/index";
2
- export type { CycleTimerControls, CycleTimerProps, CycleTimerState, } from "./CycleTimer/types";
3
- export { CycleTimer as default } from "./CycleTimer/index";
@@ -1,66 +0,0 @@
1
- import Box from "@mui/material/Box";
2
- import { type DataGridProps, type GridColDef, type GridRowParams } from "@mui/x-data-grid";
3
- export interface WandelbotsDataGridProps<T = Record<string, unknown>> {
4
- /**
5
- * Array of data items to display in the grid
6
- */
7
- data: T[];
8
- /**
9
- * Column definitions for the DataGrid
10
- */
11
- columns: GridColDef[];
12
- /**
13
- * Function to transform data items into DataGrid rows
14
- * Should return an object with an 'id' field and other fields matching column definitions
15
- */
16
- getRowData: (item: T) => Record<string, unknown> & {
17
- id: string | number;
18
- };
19
- /**
20
- * Callback when a row is clicked
21
- */
22
- onRowClick?: (item: T, params: GridRowParams) => void;
23
- /**
24
- * Currently selected item (for highlighting)
25
- */
26
- selectedItem?: T | null;
27
- /**
28
- * Function to get the ID of an item (used for selection highlighting)
29
- */
30
- getItemId?: (item: T) => string | number;
31
- /**
32
- * Title displayed in the toolbar
33
- */
34
- title?: string;
35
- /**
36
- * Show item count in title
37
- * @default true
38
- */
39
- showCount?: boolean;
40
- /**
41
- * Placeholder text for the search input
42
- * @default "Search programs"
43
- */
44
- searchPlaceholder?: string;
45
- /**
46
- * Additional DataGrid props to pass through
47
- */
48
- dataGridProps?: Partial<DataGridProps>;
49
- /**
50
- * Custom toolbar component to replace the default one
51
- */
52
- CustomToolbar?: React.ComponentType;
53
- /**
54
- * Select the first item by default
55
- * @default false
56
- */
57
- selectFirstByDefault?: boolean;
58
- /**
59
- * Custom sx styles for the root container
60
- */
61
- sx?: React.ComponentProps<typeof Box>["sx"];
62
- }
63
- export declare const WandelbotsDataGrid: (<T>({ data, columns, getRowData, onRowClick, selectedItem, getItemId, title, showCount, searchPlaceholder, dataGridProps, CustomToolbar, selectFirstByDefault, sx, }: WandelbotsDataGridProps<T>) => import("react/jsx-runtime").JSX.Element) & {
64
- displayName: string;
65
- };
66
- export default WandelbotsDataGrid;
@@ -1,38 +0,0 @@
1
- import type { SxProps } from "@mui/material/styles";
2
- import { LogStore } from "./LogStore";
3
- export type LogPanelProps = {
4
- /** Log store instance to use, or create one automatically if not provided */
5
- store?: LogStore;
6
- /** Height of the component */
7
- height?: string | number;
8
- /** Additional styles */
9
- sx?: SxProps;
10
- /** Ref to the log store for external access */
11
- onStoreReady?: (store: LogStore) => void;
12
- };
13
- /**
14
- * A complete log panel component with built-in state management.
15
- *
16
- * @example
17
- * ```tsx
18
- * function MyComponent() {
19
- * const [logStore, setLogStore] = useState<LogStore>()
20
- *
21
- * return (
22
- * <LogPanel
23
- * height={400}
24
- * onStoreReady={setLogStore}
25
- * />
26
- * )
27
- * }
28
- *
29
- * // Then use the store to add messages
30
- * logStore?.addInfo("Operation completed successfully")
31
- * logStore?.addError("Something went wrong")
32
- * logStore?.addWarning("Warning message")
33
- * ```
34
- */
35
- export declare const LogPanel: ((props: LogPanelProps) => import("react/jsx-runtime").JSX.Element) & {
36
- displayName: string;
37
- };
38
- export default LogPanel;
@@ -1,12 +0,0 @@
1
- import type { LogLevel, LogMessage } from "./LogViewer";
2
- export declare class LogStore {
3
- messages: LogMessage[];
4
- constructor();
5
- addMessage: (message: string, level?: LogLevel) => void;
6
- clearMessages: () => void;
7
- addInfo: (message: string) => void;
8
- addWarning: (message: string) => void;
9
- addError: (message: string) => void;
10
- addDebug: (message: string) => void;
11
- }
12
- export default LogStore;
@@ -1,46 +0,0 @@
1
- import type { SxProps } from "@mui/material/styles";
2
- export type LogLevel = "info" | "error" | "warning" | "debug";
3
- export type LogMessage = {
4
- id: string;
5
- timestamp: Date;
6
- message: string;
7
- level: LogLevel;
8
- };
9
- export type LogViewerProps = {
10
- /** Log messages to display */
11
- messages: LogMessage[];
12
- /** Callback when clear button is clicked */
13
- onClear?: () => void;
14
- /** Height of the component */
15
- height?: string | number;
16
- /** Additional styles */
17
- sx?: SxProps;
18
- };
19
- /**
20
- * Utility function to create a log message
21
- */
22
- export declare const createLogMessage: (message: string, level: LogLevel, id?: string) => LogMessage;
23
- /**
24
- * Utility function to create a debug log message
25
- */
26
- export declare const createDebugMessage: (message: string, id?: string) => LogMessage;
27
- /**
28
- * Utility function to create an info log message
29
- */
30
- export declare const createInfoMessage: (message: string, id?: string) => LogMessage;
31
- /**
32
- * Utility function to create a warning log message
33
- */
34
- export declare const createWarningMessage: (message: string, id?: string) => LogMessage;
35
- /**
36
- * Utility function to create an error log message
37
- */
38
- export declare const createErrorMessage: (message: string, id?: string) => LogMessage;
39
- /**
40
- * A log viewer component that displays timestamped log messages with different levels.
41
- * Features a header with document icon and clear button, and scrollable message area.
42
- */
43
- export declare const LogViewer: ((props: LogViewerProps) => import("react/jsx-runtime").JSX.Element) & {
44
- displayName: string;
45
- };
46
- export default LogViewer;
@@ -1,55 +0,0 @@
1
- export declare enum ProgramState {
2
- IDLE = "idle",
3
- PREPARING = "preparing",
4
- STARTING = "starting",
5
- RUNNING = "running",
6
- PAUSING = "pausing",
7
- PAUSED = "paused",
8
- STOPPING = "stopping",
9
- COMPLETED = "completed",
10
- FAILED = "failed",
11
- STOPPED = "stopped",
12
- ERROR = "error"
13
- }
14
- export interface ProgramControlProps {
15
- /** The current state of the program control */
16
- state: ProgramState;
17
- /** Callback fired when the run/resume button is clicked */
18
- onRun: () => void;
19
- /** Callback fired when the pause button is clicked (only available in 'with_pause' variant) */
20
- onPause?: () => void;
21
- /** Callback fired when the stop button is clicked */
22
- onStop: () => void;
23
- /**
24
- * Function to reset the component from 'stopping' state back to 'idle'.
25
- * This must be called manually by the user when requiresManualReset is true.
26
- */
27
- onReset?: () => void;
28
- /**
29
- * When true, the component will stay in 'stopping' state until onReset is called manually.
30
- * When false (default), auto-resets to 'idle' after 2 seconds.
31
- */
32
- requiresManualReset?: boolean;
33
- /**
34
- * Variant of the component:
35
- * - 'with_pause': Shows run/pause/stop buttons (default)
36
- * - 'without_pause': Shows only run/stop buttons
37
- */
38
- variant?: "with_pause" | "without_pause";
39
- /** Additional CSS class name */
40
- className?: string;
41
- }
42
- /**
43
- * A control component for program execution with run, pause, and stop functionality.
44
- *
45
- * Features:
46
- * - State machine with idle, preparing, starting, running, pausing, paused, stopping, completed, failed, stopped, and error states
47
- * - Two variants: with_pause (3 buttons) and without_pause (2 buttons)
48
- * - Optional manual reset functionality
49
- * - Responsive design with 110px circular buttons
50
- * - Material-UI theming integration
51
- */
52
- export declare const ProgramControl: (({ state, onRun, onPause, onStop, onReset, requiresManualReset, variant, className, }: ProgramControlProps) => import("react/jsx-runtime").JSX.Element) & {
53
- displayName: string;
54
- };
55
- export default ProgramControl;
@@ -1,26 +0,0 @@
1
- import type { OperationMode, SafetyStateType } from "@wandelbots/nova-js/v2";
2
- import { ProgramState } from "./ProgramControl";
3
- export interface ProgramStateIndicatorProps {
4
- /** The current state of the program */
5
- programState: ProgramState;
6
- /** The current safety state of the robot controller */
7
- safetyState: SafetyStateType;
8
- /** The current operation mode of the robot controller */
9
- operationMode: OperationMode;
10
- /** Additional CSS class name */
11
- className?: string;
12
- }
13
- /**
14
- * A state indicator component that displays the current program execution state
15
- * combined with robot controller safety and operation mode states.
16
- *
17
- * Features:
18
- * - Combines program state with safety and operation mode states
19
- * - Color-coded based on state severity (success, warning, error)
20
- * - Rendered as Material-UI filled chip
21
- * - Localization support via react-i18next
22
- */
23
- export declare const ProgramStateIndicator: (({ programState, safetyState, operationMode, className, }: ProgramStateIndicatorProps) => import("react/jsx-runtime").JSX.Element) & {
24
- displayName: string;
25
- };
26
- export default ProgramStateIndicator;
@@ -1,98 +0,0 @@
1
- import type { OperationMode, SafetyStateType } from "@wandelbots/nova-js/v2";
2
- import type { Group } from "three";
3
- import type { ConnectedMotionGroup } from "../lib/ConnectedMotionGroup";
4
- import type { ProgramState } from "./ProgramControl";
5
- export interface RobotCardProps {
6
- /** Name of the robot displayed at the top */
7
- robotName: string;
8
- /** Current program state */
9
- programState: ProgramState;
10
- /** Current safety state of the robot controller */
11
- safetyState: SafetyStateType;
12
- /** Current operation mode of the robot controller */
13
- operationMode: OperationMode;
14
- /** Whether the "Drive to Home" button should be enabled */
15
- driveToHomeEnabled?: boolean;
16
- /** Callback fired when "Drive to Home" button is pressed */
17
- onDriveToHomePress?: () => void;
18
- /** Callback fired when "Drive to Home" button is released */
19
- onDriveToHomeRelease?: () => void;
20
- /**
21
- * Callback fired when "Drive to Home" button is pressed, with the default home position.
22
- * If provided, this will be called instead of onDriveToHomePress, providing the recommended
23
- * home position joint configuration based on the robot manufacturer.
24
- */
25
- onDriveToHomePressWithConfig?: (homePosition: number[]) => void;
26
- /**
27
- * Callback fired when "Drive to Home" button is released after using onDriveToHomePressWithConfig.
28
- * If provided, this will be called instead of onDriveToHomeRelease.
29
- */
30
- onDriveToHomeReleaseWithConfig?: () => void;
31
- /**
32
- * Custom default joint configuration to use if manufacturer-based defaults are not available.
33
- * Joint values should be in radians.
34
- */
35
- defaultJointConfig?: number[];
36
- /** Connected motion group for the robot */
37
- connectedMotionGroup: ConnectedMotionGroup;
38
- /** Custom robot component to render (optional, defaults to Robot) */
39
- robotComponent?: React.ComponentType<{
40
- connectedMotionGroup: ConnectedMotionGroup;
41
- flangeRef?: React.Ref<Group>;
42
- postModelRender?: () => void;
43
- transparentColor?: string;
44
- getModel?: (modelFromController: string) => Promise<string>;
45
- }>;
46
- /** Custom component to render in the content area (optional) */
47
- customContentComponent?: React.ComponentType<Record<string, unknown>>;
48
- /** Additional CSS class name */
49
- className?: string;
50
- }
51
- /**
52
- * A responsive card component that displays a 3D robot with states and controls.
53
- * The card automatically adapts to its container's size and aspect ratio.
54
- *
55
- * Features:
56
- * - Fully responsive Material-UI Card that adapts to container dimensions
57
- * - Automatic layout switching based on aspect ratio:
58
- * - Portrait mode: Vertical layout with robot in center
59
- * - Landscape mode: Horizontal layout with robot on left, content on right (left-aligned)
60
- * - Responsive 3D robot rendering:
61
- * - Scales dynamically with container size
62
- * - Hides at very small sizes to preserve usability
63
- * - Adaptive margin based on available space
64
- * - Smart spacing and padding that reduces at smaller sizes
65
- * - Minimum size constraints for usability while maximizing content density
66
- * - Robot name displayed in Typography h6 at top-left
67
- * - Program state indicator below the name
68
- * - Auto-fitting 3D robot model that scales with container size
69
- * - Customizable content area for displaying custom React components
70
- * - Transparent gray divider line
71
- * - "Drive to Home" button with press-and-hold functionality
72
- * - Localization support via react-i18next
73
- * - Material-UI theming integration
74
- *
75
- * Usage with custom content:
76
- * ```tsx
77
- * // Example custom timer component
78
- * const CustomTimer = () => (
79
- * <Box>
80
- * <Typography variant="body1" sx={{ color: "text.secondary" }}>
81
- * Runtime
82
- * </Typography>
83
- * <Typography variant="h6">05:23</Typography>
84
- * </Box>
85
- * )
86
- *
87
- * <RobotCard
88
- * robotName="UR5e Robot"
89
- * programState={ProgramState.RUNNING}
90
- * customContentComponent={CustomTimer}
91
- * // ... other props
92
- * />
93
- * ```
94
- */
95
- export declare const RobotCard: (({ robotName, programState, safetyState, operationMode, driveToHomeEnabled, onDriveToHomePress, onDriveToHomeRelease, connectedMotionGroup, robotComponent: RobotComponent, customContentComponent: CustomContentComponent, className, }: RobotCardProps) => import("react/jsx-runtime").JSX.Element) & {
96
- displayName: string;
97
- };
98
- export default RobotCard;
@@ -1,34 +0,0 @@
1
- import type { ComponentType } from "react";
2
- import { RobotSetupReadinessState } from "./RobotSetupReadinessIndicator";
3
- export interface RobotListItemProps {
4
- /** The name of the robot */
5
- robotName: string;
6
- /** The type/model of the robot (will try to derive from nova if not provided) */
7
- robotType?: string;
8
- /** The current setup readiness state of the robot */
9
- setupState: RobotSetupReadinessState;
10
- /**
11
- * Component to render for the precondition indicator.
12
- * Defaults to RobotSetupReadinessIndicator.
13
- * Pass null or undefined to hide the indicator.
14
- */
15
- PreconditionComponent?: ComponentType<{
16
- setupState: RobotSetupReadinessState;
17
- }> | null;
18
- /** Additional CSS class name */
19
- className?: string;
20
- }
21
- /**
22
- * A list item component that displays robot information and setup readiness state.
23
- *
24
- * Features:
25
- * - Shows robot name, type, and customizable precondition component
26
- * - Color-coded icon based on readiness state (robot icon for ready, warning for issues)
27
- * - Styled with consistent border, background, and spacing
28
- * - Responsive layout with proper spacing and alignment
29
- * - Flexible precondition component that can be customized or hidden
30
- */
31
- export declare const RobotListItem: (({ robotName, robotType, setupState, PreconditionComponent, className, }: RobotListItemProps) => import("react/jsx-runtime").JSX.Element) & {
32
- displayName: string;
33
- };
34
- export default RobotListItem;
@@ -1,37 +0,0 @@
1
- /**
2
- * Enum representing the robot setup readiness state
3
- */
4
- export declare enum RobotSetupReadinessState {
5
- /** Preconditions are not fulfilled for robot operation */
6
- PRECONDITION_NOT_FULFILLED = "PRECONDITION_NOT_FULFILLED",
7
- /** Robot is disconnected from the system */
8
- ROBOT_DISCONNECTED = "ROBOT_DISCONNECTED",
9
- /** Safety cell is open and robot cannot operate */
10
- CELL_OPEN = "CELL_OPEN",
11
- /** Emergency stop is active and robot cannot operate */
12
- E_STOP = "E_STOP",
13
- /** Robot is in manual mode and requires manual intervention */
14
- MANUAL_MODE = "MANUAL_MODE",
15
- /** Robot is ready for operation */
16
- READY = "READY"
17
- }
18
- export interface RobotSetupReadinessIndicatorProps {
19
- /** The current setup readiness state of the robot */
20
- setupState: RobotSetupReadinessState;
21
- /** Additional CSS class name */
22
- className?: string;
23
- }
24
- /**
25
- * A state indicator component that displays the current robot setup readiness state.
26
- *
27
- * Features:
28
- * - Shows six states: Precondition not fulfilled, Robot disconnected, Cell open, E-Stop, Manual mode, Ready
29
- * - Color-coded based on state (ready: tertiary/main, others: error/main)
30
- * - Rendered as Material-UI filled chip with paper-elevation-11 background
31
- * - Includes colored circle indicator (8px width)
32
- * - Localization support via react-i18next
33
- */
34
- export declare const RobotSetupReadinessIndicator: (({ setupState, className }: RobotSetupReadinessIndicatorProps) => import("react/jsx-runtime").JSX.Element) & {
35
- displayName: string;
36
- };
37
- export default RobotSetupReadinessIndicator;
@@ -1,7 +0,0 @@
1
- import { type FabProps } from "@mui/material/Fab";
2
- type CodeFabProps = {
3
- selected?: boolean;
4
- ref?: React.Ref<HTMLButtonElement>;
5
- } & Omit<FabProps, "variant" | "color">;
6
- export declare const SelectableFab: (props: CodeFabProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SelectableFab;
@@ -1,45 +0,0 @@
1
- import type { SxProps } from "@mui/material/styles";
2
- export interface TabItem {
3
- /** Unique identifier for the tab */
4
- id: string;
5
- /** Label text for the tab */
6
- label: string;
7
- /** Content to display when tab is active */
8
- content: React.ReactNode;
9
- /** Optional icon component to display with the tab */
10
- icon?: React.ReactElement;
11
- /** Optional badge configuration */
12
- badge?: {
13
- /** Badge content (number or string) */
14
- content: React.ReactNode;
15
- /** Badge color variant */
16
- color?: "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
17
- /** Maximum number to display (e.g., 99+) */
18
- max?: number;
19
- /** Show badge even when content is zero */
20
- showZero?: boolean;
21
- };
22
- }
23
- export interface TabBarProps {
24
- /** Array of tab items to display */
25
- items: TabItem[];
26
- /** Controlled active tab index */
27
- activeTab?: number;
28
- /** Default active tab index */
29
- defaultActiveTab?: number;
30
- /** Callback when tab changes */
31
- onTabChange?: (index: number) => void;
32
- /** Additional styling */
33
- sx?: SxProps;
34
- /** Ref to the root container element */
35
- ref?: React.Ref<HTMLDivElement>;
36
- }
37
- /**
38
- * A styled tab bar component with configurable tabs and content.
39
- * Features the same styling as the Wandelbots design system with rounded tabs
40
- * and smooth transitions.
41
- */
42
- export declare const TabBar: ((props: TabBarProps) => import("react/jsx-runtime").JSX.Element) & {
43
- displayName: string;
44
- };
45
- export default TabBar;
@@ -1,6 +0,0 @@
1
- import Select from "@mui/material/Select";
2
- type ThemeSelectProps = {
3
- kind: "filled" | "outlined" | "text";
4
- } & React.ComponentProps<typeof Select>;
5
- export declare const ThemeSelect: ({ kind, sx, ...rest }: ThemeSelectProps) => import("react/jsx-runtime").JSX.Element;
6
- export default ThemeSelect;
@@ -1,3 +0,0 @@
1
- export { Timer } from "./index";
2
- export type { TimerControls, TimerProps } from "./types";
3
- export { Timer as default } from "./index";
@@ -1,9 +0,0 @@
1
- import type { TimerState, TimerAnimationState } from "./types";
2
- interface TimerDefaultVariantProps {
3
- timerState: TimerState;
4
- animationState: TimerAnimationState;
5
- hasError: boolean;
6
- className?: string;
7
- }
8
- export declare const TimerDefaultVariant: ({ timerState, animationState, hasError, className, }: TimerDefaultVariantProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,10 +0,0 @@
1
- import type { TimerAnimationState, TimerState } from "./types";
2
- interface TimerSmallVariantProps {
3
- timerState: TimerState;
4
- animationState: TimerAnimationState;
5
- hasError: boolean;
6
- compact: boolean;
7
- className?: string;
8
- }
9
- export declare const TimerSmallVariant: ({ timerState, animationState, hasError, compact, className, }: TimerSmallVariantProps) => import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,19 +0,0 @@
1
- import type { TimerProps } from "./types";
2
- /**
3
- * A simple count-up timer component with visual progress indication
4
- *
5
- * Features:
6
- * - Count-up timer that tracks elapsed time
7
- * - Visual progress gauge that cycles every minute
8
- * - Two display variants: large circular gauge (default) or small icon with text
9
- * - Full timer control: start, pause, resume, reset functionality
10
- * - Support for starting with elapsed time (resume mid-session)
11
- * - Error state support: pauses timer and shows error styling
12
- * - Smooth progress animations with spring physics
13
- * - Fully localized with i18next
14
- * - Material-UI theming integration
15
- */
16
- export declare const Timer: (({ onTimerReady, autoStart, variant, compact, className, hasError, }: TimerProps) => import("react/jsx-runtime").JSX.Element) & {
17
- displayName: string;
18
- };
19
- export default Timer;
@@ -1,35 +0,0 @@
1
- export interface TimerControls {
2
- start: (elapsedSeconds?: number) => void;
3
- pause: () => void;
4
- resume: () => void;
5
- reset: () => void;
6
- isPaused: () => boolean;
7
- }
8
- export interface TimerProps {
9
- /**
10
- * Callback that receives the timer control functions
11
- */
12
- onTimerReady: (controls: TimerControls) => void;
13
- /** Whether the timer should start automatically when initialized */
14
- autoStart?: boolean;
15
- /** Visual variant of the timer */
16
- variant?: "default" | "small";
17
- /** For small variant: whether to show compact display */
18
- compact?: boolean;
19
- /** Additional CSS classes */
20
- className?: string;
21
- /** Whether the timer is in an error state (pauses timer and shows error styling) */
22
- hasError?: boolean;
23
- }
24
- export interface TimerState {
25
- elapsedTime: number;
26
- isRunning: boolean;
27
- isPausedState: boolean;
28
- currentProgress: number;
29
- wasRunningBeforeError: boolean;
30
- }
31
- export interface TimerAnimationState {
32
- showPauseAnimation: boolean;
33
- showErrorAnimation: boolean;
34
- showMainText: boolean;
35
- }
@@ -1,10 +0,0 @@
1
- import type { TimerAnimationState } from "./types";
2
- export declare const useTimerAnimations: () => {
3
- animationState: TimerAnimationState;
4
- triggerPauseAnimation: () => void;
5
- triggerErrorAnimation: () => void;
6
- clearErrorAnimation: () => void;
7
- triggerFadeTransition: () => void;
8
- setInitialAnimationState: () => void;
9
- cleanup: () => void;
10
- };
@@ -1,19 +0,0 @@
1
- import type { TimerState } from "./types";
2
- interface UseTimerLogicProps {
3
- autoStart: boolean;
4
- hasError: boolean;
5
- onPauseAnimation: () => void;
6
- onErrorAnimation: () => void;
7
- onClearErrorAnimation: () => void;
8
- }
9
- export declare const useTimerLogic: ({ autoStart, hasError, onPauseAnimation, onErrorAnimation, onClearErrorAnimation, }: UseTimerLogicProps) => {
10
- timerState: TimerState;
11
- controls: {
12
- start: (elapsedSeconds?: number) => void;
13
- pause: () => void;
14
- resume: () => void;
15
- reset: () => void;
16
- isPaused: () => boolean;
17
- };
18
- };
19
- export {};
@@ -1,17 +0,0 @@
1
- /**
2
- * Formats time in seconds to D:HH:MM:SS, H:MM:SS or MM:SS format
3
- * Used for the default (large) timer variant
4
- * Automatically includes days and hours as needed for clarity
5
- */
6
- export declare const formatTime: (seconds: number) => string;
7
- /**
8
- * Formats time in seconds to a localized human-readable format
9
- * Used for the small timer variant
10
- * Examples: "2h 30m 15s", "45m 30s", "30s"
11
- * Falls back to English units if Intl.DurationFormat is not available
12
- */
13
- export declare const formatTimeLocalized: (seconds: number, locale?: string) => string;
14
- /**
15
- * Calculates progress percentage for timer (minute-based cycles)
16
- */
17
- export declare const calculateTimerProgress: (elapsedTime: number) => number;
@@ -1,3 +0,0 @@
1
- export { Timer } from "./Timer/index";
2
- export type { TimerControls, TimerProps } from "./Timer/types";
3
- export { Timer as default } from "./Timer/index";
@@ -1,4 +0,0 @@
1
- import Stack from "@mui/material/Stack";
2
- import type React from "react";
3
- export declare const TransparentOverlay: (props: React.ComponentProps<typeof Stack>) => import("react/jsx-runtime").JSX.Element;
4
- export default TransparentOverlay;
@@ -1 +0,0 @@
1
- export declare const JoggingFreedriveTab: () => import("react/jsx-runtime").JSX.Element;