@pantheon-systems/pds-toolkit-react 1.0.0-dev.249 → 1.0.0-dev.250

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.
@@ -20,10 +20,6 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
20
20
  * Custom width in rems for the component. This will override the default.
21
21
  */
22
22
  componentWidth?: number;
23
- /**
24
- * Initial state of the component.
25
- */
26
- initialState?: `${RefreshCheckerState}`;
27
23
  /**
28
24
  * Internationalization props for labels.
29
25
  */
@@ -37,11 +33,15 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
37
33
  /**
38
34
  * Last checked timestamp
39
35
  */
40
- lastChecked?: Date;
36
+ lastChecked?: null | Date;
41
37
  /**
42
38
  * Callback function when check is triggered
43
39
  */
44
- onCheck?: () => Promise<void>;
40
+ onCheck?: () => void;
41
+ /**
42
+ * State of the component
43
+ */
44
+ state?: `${RefreshCheckerState}`;
45
45
  /**
46
46
  * Additional class names
47
47
  */
@@ -50,5 +50,5 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
50
50
  /**
51
51
  * RefreshChecker UI component
52
52
  */
53
- export declare const RefreshChecker: ({ alignment, componentWidth, initialState, labelStrings, lastChecked, onCheck, className, ...props }: RefreshCheckerProps) => React.JSX.Element;
53
+ export declare const RefreshChecker: ({ alignment, componentWidth, labelStrings, lastChecked, onCheck, state, className, ...props }: RefreshCheckerProps) => React.JSX.Element;
54
54
  export {};