@wandelbots/wandelbots-js-react-components 2.34.1-pr.feature-robot-precondition-list.372.a71f99a → 2.34.1-pr.feature-robot-precondition-list.372.90c151f

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.
@@ -22,6 +22,8 @@ export interface CycleTimerProps {
22
22
  compact?: boolean;
23
23
  /** Additional CSS classes */
24
24
  className?: string;
25
+ /** Whether the timer is in an error state (pauses timer and shows error styling) */
26
+ hasError?: boolean;
25
27
  }
26
28
  /**
27
29
  * A circular gauge timer component that shows the remaining time of a cycle or counts up
@@ -35,6 +37,7 @@ export interface CycleTimerProps {
35
37
  * - Automatically counts down/up and triggers callback when reaching zero (count-down only)
36
38
  * - Full timer control: start, pause, resume functionality
37
39
  * - Support for starting with elapsed time (resume mid-cycle)
40
+ * - Error state support: pauses timer and shows error styling (red color)
38
41
  * - Smooth spring-based progress animations for all state transitions
39
42
  * - Fully localized with i18next
40
43
  * - Material-UI theming integration
@@ -46,6 +49,7 @@ export interface CycleTimerProps {
46
49
  * @param variant - Visual variant: "default" (large gauge) or "small" (animated icon with text)
47
50
  * @param compact - For small variant: whether to hide remaining time details
48
51
  * @param className - Additional CSS classes
52
+ * @param hasError - Whether the timer is in an error state (pauses timer and shows error styling)
49
53
  *
50
54
  * Usage:
51
55
  * ```tsx
@@ -71,6 +75,14 @@ export interface CycleTimerProps {
71
75
  * controls.startNewCycle(undefined, 120)
72
76
  * }}
73
77
  * />
78
+ *
79
+ * // Timer with error state
80
+ * <CycleTimer
81
+ * hasError={errorCondition}
82
+ * onCycleComplete={(controls) => {
83
+ * controls.startNewCycle(300)
84
+ * }}
85
+ * />
74
86
  * ```
75
87
  *
76
88
  * Control Functions:
@@ -79,7 +91,7 @@ export interface CycleTimerProps {
79
91
  * - `resume()` - Resume countdown from where it was paused
80
92
  * - `isPaused()` - Check current pause state
81
93
  */
82
- export declare const CycleTimer: (({ onCycleComplete, onCycleEnd, autoStart, variant, compact, className, }: CycleTimerProps) => import("react/jsx-runtime").JSX.Element) & {
94
+ export declare const CycleTimer: (({ onCycleComplete, onCycleEnd, autoStart, variant, compact, className, hasError, }: CycleTimerProps) => import("react/jsx-runtime").JSX.Element) & {
83
95
  displayName: string;
84
96
  };
85
97
  //# sourceMappingURL=CycleTimer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CycleTimer.d.ts","sourceRoot":"","sources":["../../src/components/CycleTimer.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,eAAe,EAAE,CAAC,QAAQ,EAAE;QAC1B,aAAa,EAAE,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;QACzE,KAAK,EAAE,MAAM,IAAI,CAAA;QACjB,MAAM,EAAE,MAAM,IAAI,CAAA;QAClB,QAAQ,EAAE,MAAM,OAAO,CAAA;KACxB,KAAK,IAAI,CAAA;IACV,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kCAAkC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,eAAO,MAAM,UAAU,8EAShB,eAAe;;CAudrB,CAAA"}
1
+ {"version":3,"file":"CycleTimer.d.ts","sourceRoot":"","sources":["../../src/components/CycleTimer.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,eAAe,EAAE,CAAC,QAAQ,EAAE;QAC1B,aAAa,EAAE,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE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