@wandelbots/wandelbots-js-react-components 6.3.0 → 6.4.0-pr.chore-playground-tool-steps.664.4537d63
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/README.md +323 -120
- package/dist/3d.cjs +1 -1
- package/dist/3d.d.ts +5 -3
- package/dist/3d.js +24 -23
- package/dist/CurrentPoseBar/index.cjs +1 -0
- package/dist/CurrentPoseBar/index.d.ts +2 -0
- package/dist/CurrentPoseBar/index.js +5 -0
- package/dist/JoggingButtons/index.cjs +1 -0
- package/dist/JoggingButtons/index.d.ts +3 -0
- package/dist/JoggingButtons/index.js +5 -0
- package/dist/JoggingGizmo/index.cjs +1 -0
- package/dist/JoggingGizmo/index.d.ts +4 -0
- package/dist/JoggingGizmo/index.js +7 -0
- package/dist/JoggingJointSlider/index.cjs +1 -0
- package/dist/JoggingJointSlider/index.d.ts +2 -0
- package/dist/JoggingJointSlider/index.js +5 -0
- package/dist/RobotControlPanel/index.cjs +1 -0
- package/dist/RobotControlPanel/index.d.ts +2 -0
- package/dist/RobotControlPanel/index.js +5 -0
- package/dist/RobotHeader/index.cjs +1 -0
- package/dist/RobotHeader/index.d.ts +4 -0
- package/dist/RobotHeader/index.js +5 -0
- package/dist/SafetyBar/index.cjs +1 -1
- package/dist/SafetyBar/index.js +1 -1
- package/dist/chunks/CurrentPoseBar-CyHUWmjM.cjs +1 -0
- package/dist/chunks/CurrentPoseBar-zTZi68tY.js +505 -0
- package/dist/chunks/JoggingButtons-CXaozFVz.js +108 -0
- package/dist/chunks/JoggingButtons-CbL-5LMK.cjs +1 -0
- package/dist/chunks/JoggingGizmo-DGbFLWgT.cjs +1 -0
- package/dist/chunks/JoggingGizmo-SuS9MmL7.js +810 -0
- package/dist/chunks/JoggingGizmoOrientation-dzned4f4.cjs +1 -0
- package/dist/chunks/JoggingGizmoOrientation-x_crT_64.js +14 -0
- package/dist/chunks/JoggingJointSlider-CZ-k6XCa.js +406 -0
- package/dist/chunks/JoggingJointSlider-R3_A9Ppj.cjs +1 -0
- package/dist/chunks/Robot-D0ZqUCn3.cjs +1 -0
- package/dist/chunks/Robot-UoykZeYH.js +1272 -0
- package/dist/chunks/RobotControlPanel-BnMfmO41.js +822 -0
- package/dist/chunks/RobotControlPanel-BuDGcxPR.cjs +1 -0
- package/dist/chunks/RobotHeader-BZci9ahT.js +244 -0
- package/dist/chunks/RobotHeader-CqK0700U.cjs +1 -0
- package/dist/chunks/SafetyBar-Bbg-o8h9.cjs +1 -0
- package/dist/chunks/{SafetyBar-Cy9DiXp9.js → SafetyBar-Cuak4ffd.js} +11 -10
- package/dist/chunks/SmallSelect-BdD9uLKK.js +52 -0
- package/dist/chunks/SmallSelect-Dcsd7_6_.cjs +1 -0
- package/dist/chunks/TrajectoryExecutionStore-DPqfDcfn.js +3398 -0
- package/dist/chunks/TrajectoryExecutionStore-DV6mLEx9.cjs +3 -0
- package/dist/chunks/converters-C8I_A_tA.cjs +1 -0
- package/dist/chunks/converters-DpNB_WNQ.js +39 -0
- package/dist/chunks/externalizeComponent-BdxGBLIv.cjs +2 -0
- package/dist/chunks/externalizeComponent-_w2d1_pz.js +283 -0
- package/dist/chunks/holdSafety-BtoZ5We3.cjs +1 -0
- package/dist/chunks/holdSafety-Di1GZAWg.js +37 -0
- package/dist/chunks/joggingColors-CuT5u0H8.js +135 -0
- package/dist/chunks/joggingColors-ZDc_2UCp.cjs +1 -0
- package/dist/chunks/useEveryFrame-G_-ma1nC.js +142 -0
- package/dist/chunks/useEveryFrame-dmPPTKtT.cjs +1 -0
- package/dist/chunks/useSmoothedMotionState-COMJRcOt.js +214 -0
- package/dist/chunks/useSmoothedMotionState-Con0E5Bx.cjs +1 -0
- package/dist/components/AppHeader.d.ts +1 -1
- package/dist/components/currentPoseBar/CurrentPoseBar.d.ts +48 -0
- package/dist/components/currentPoseBar/OrientationFormatPopover.d.ts +19 -0
- package/dist/components/currentPoseBar/StreamStatus.d.ts +10 -0
- package/dist/components/currentPoseBar/orientation.d.ts +34 -0
- package/dist/components/currentPoseBar/poseValues.d.ts +15 -0
- package/dist/components/jogging/JoggingButtons.d.ts +16 -0
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +1 -1
- package/dist/components/jogging/JoggingJointTab.d.ts +1 -1
- package/dist/components/jogging/JoggingPanel.d.ts +6 -3
- package/dist/components/jogging/JoggingStore.d.ts +96 -19
- package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +43 -0
- package/dist/components/jogging/gizmo/JoggingGizmoOrientation.d.ts +26 -0
- package/dist/components/jogging/gizmo/RotationHandles.d.ts +7 -0
- package/dist/components/jogging/gizmo/RotationScene.d.ts +6 -0
- package/dist/components/jogging/gizmo/TranslationHandles.d.ts +6 -0
- package/dist/components/jogging/gizmo/TranslationScene.d.ts +6 -0
- package/dist/components/jogging/gizmo/arcGrabAreas.d.ts +58 -0
- package/dist/components/jogging/gizmo/arcs.d.ts +54 -0
- package/dist/components/jogging/gizmo/arrows.d.ts +63 -0
- package/dist/components/jogging/gizmo/gizmoShared.d.ts +125 -0
- package/dist/components/jogging/gizmo/gizmoView.d.ts +42 -0
- package/dist/components/jogging/gizmo/useGizmoTurn.d.ts +11 -0
- package/dist/components/jogging/holdSafety.d.ts +44 -0
- package/dist/components/jogging/jogError.d.ts +9 -0
- package/dist/components/jogging/jogHandle.d.ts +23 -0
- package/dist/components/jogging/joggingColors.d.ts +24 -0
- package/dist/components/jogging/joggingVelocity.d.ts +21 -0
- package/dist/components/jogging/joint/JoggingJointSlider.d.ts +52 -0
- package/dist/components/jogging/joint/JointSliderTrack.d.ts +27 -0
- package/dist/components/jogging/joint/jointJog.d.ts +55 -0
- package/dist/components/jogging/joint/useJointJogHold.d.ts +48 -0
- package/dist/components/jogging/useHold.d.ts +38 -0
- package/dist/components/jogging/useJogControls.d.ts +45 -0
- package/dist/components/robotControl/CartesianJogTab.d.ts +21 -0
- package/dist/components/robotControl/HoldToMoveButton.d.ts +25 -0
- package/dist/components/robotControl/JogArea.d.ts +22 -0
- package/dist/components/robotControl/JogModeToggle.d.ts +8 -0
- package/dist/components/robotControl/JointJogTab.d.ts +11 -0
- package/dist/components/robotControl/MoveToTab.d.ts +18 -0
- package/dist/components/robotControl/PanelSelect.d.ts +13 -0
- package/dist/components/robotControl/PoseField.d.ts +21 -0
- package/dist/components/robotControl/RobotControlPanel.d.ts +212 -0
- package/dist/components/robotControl/Section.d.ts +5 -0
- package/dist/components/robotControl/SmallSelect.d.ts +15 -0
- package/dist/components/robotControl/VelocityRow.d.ts +14 -0
- package/dist/components/robotControl/atPose.d.ts +8 -0
- package/dist/components/robotControl/poseText.d.ts +15 -0
- package/dist/components/robotControl/units.d.ts +16 -0
- package/dist/components/robotControl/useCopyText.d.ts +12 -0
- package/dist/components/robotControl/useEveryFrame.d.ts +6 -0
- package/dist/components/robotHeader/ActivationSwitch.d.ts +7 -0
- package/dist/components/robotHeader/AppNavigation.d.ts +15 -0
- package/dist/components/robotHeader/RobotHeader.d.ts +42 -0
- package/dist/components/robots/GenericRobot.d.ts +2 -1
- package/dist/components/robots/LinearAxis.d.ts +1 -1
- package/dist/components/robots/LinearAxisAnimator.d.ts +11 -2
- package/dist/components/robots/Robot.d.ts +1 -1
- package/dist/components/robots/robotModelLogic.d.ts +11 -9
- package/dist/components/utils/hooks.d.ts +1 -6
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +13 -18
- package/dist/core.js +37 -51
- package/dist/index.cjs +1 -1
- package/dist/index.js +58 -71
- package/dist/lib/ConnectedMotionGroup.d.ts +5 -7
- package/dist/lib/JoggerConnection.d.ts +137 -27
- package/dist/lib/MotionStreamConnection.d.ts +15 -6
- package/dist/lib/Pose3.d.ts +22 -0
- package/dist/lib/PoseTransformer.d.ts +25 -0
- package/dist/lib/TrajectoryExecutionStore.d.ts +129 -0
- package/dist/lib/connectionLogger.d.ts +9 -0
- package/dist/lib/incrementalCartesianMotion.d.ts +40 -0
- package/dist/lib/motionStateUpdate.d.ts +27 -0
- package/dist/lib/novaConnection.d.ts +23 -0
- package/dist/lib/planErrorTranslation.d.ts +8 -0
- package/dist/lib/rotation.d.ts +12 -0
- package/package.json +31 -66
- package/dist/Setup.d.ts +0 -11
- package/dist/chunks/MotionGroupVisualizer-DshWR1wY.js +0 -1653
- package/dist/chunks/MotionGroupVisualizer-eD7yFEcF.cjs +0 -1
- package/dist/chunks/SafetyBar-DPrv_OQA.cjs +0 -1
- package/dist/chunks/externalizeComponent-EDymnaGR.js +0 -268
- package/dist/chunks/externalizeComponent-OO4jcrz5.cjs +0 -2
- package/dist/chunks/theming-DfSy4-Ic.cjs +0 -4
- package/dist/chunks/theming-mF9Rt8SS.js +0 -5542
- package/dist/chunks/useSmoothedMotionState-DyDgSVYX.js +0 -478
- package/dist/chunks/useSmoothedMotionState-VYxEIyfr.cjs +0 -1
- package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +0 -11
- package/dist/components/AdornedTextField.d.ts +0 -7
- package/dist/components/CopyableText.d.ts +0 -6
- package/dist/components/CycleTimer/CycleTimer.d.ts +0 -3
- package/dist/components/CycleTimer/DefaultVariant.d.ts +0 -9
- package/dist/components/CycleTimer/SmallVariant.d.ts +0 -10
- package/dist/components/CycleTimer/index.d.ts +0 -27
- package/dist/components/CycleTimer/types.d.ts +0 -49
- package/dist/components/CycleTimer/useAnimations.d.ts +0 -14
- package/dist/components/CycleTimer/useTimerLogic.d.ts +0 -24
- package/dist/components/CycleTimer/utils.d.ts +0 -21
- package/dist/components/CycleTimer.d.ts +0 -3
- package/dist/components/DataGrid.d.ts +0 -66
- package/dist/components/LogPanel.d.ts +0 -38
- package/dist/components/LogStore.d.ts +0 -12
- package/dist/components/LogViewer.d.ts +0 -46
- package/dist/components/ProgramControl.d.ts +0 -55
- package/dist/components/ProgramStateIndicator.d.ts +0 -26
- package/dist/components/RobotCard.d.ts +0 -98
- package/dist/components/RobotListItem.d.ts +0 -34
- package/dist/components/RobotSetupReadinessIndicator.d.ts +0 -37
- package/dist/components/SelectableFab.d.ts +0 -7
- package/dist/components/TabBar.d.ts +0 -45
- package/dist/components/ThemeSelect.d.ts +0 -6
- package/dist/components/Timer/Timer.d.ts +0 -3
- package/dist/components/Timer/TimerDefaultVariant.d.ts +0 -9
- package/dist/components/Timer/TimerSmallVariant.d.ts +0 -10
- package/dist/components/Timer/index.d.ts +0 -19
- package/dist/components/Timer/types.d.ts +0 -35
- package/dist/components/Timer/useTimerAnimations.d.ts +0 -10
- package/dist/components/Timer/useTimerLogic.d.ts +0 -19
- package/dist/components/Timer/utils.d.ts +0 -17
- package/dist/components/Timer.d.ts +0 -3
- package/dist/components/TransparentOverlay.d.ts +0 -4
- package/dist/components/jogging/JoggingFreedriveTab.d.ts +0 -1
- package/dist/components/jogging/PoseCartesianValues.d.ts +0 -9
- package/dist/components/jogging/PoseJointValues.d.ts +0 -8
- package/dist/components/robots/AxisConfig.d.ts +0 -2
- package/dist/components/robots/manufacturerHomePositions.d.ts +0 -20
- package/dist/icons/DropdownArrowIcon.d.ts +0 -2
- package/dist/icons/index.d.ts +0 -12
- package/dist/lib/novaCompat.d.ts +0 -16
- package/dist/themes/createDarkTheme.d.ts +0 -7
- package/dist/themes/themeTypes.d.ts +0 -40
- 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,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,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 +0,0 @@
|
|
|
1
|
-
export declare const JoggingFreedriveTab: () => import("react/jsx-runtime").JSX.Element;
|