@devopness/ui-react 2.182.0 → 2.183.0

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.
@@ -0,0 +1,13 @@
1
+ import { ActionStatus } from '../../../constants';
2
+ /** Props for the Status component. */
3
+ type StatusProps = {
4
+ /** The current action status. Must be one of the `ActionStatus` enum values. */
5
+ status: `${ActionStatus}`;
6
+ /** A human-readable string describing the status. */
7
+ statusHumanReadable: string;
8
+ /** A human-readable string explaining the reason or details of the status. */
9
+ statusReasonHumanReadable: string;
10
+ };
11
+ declare const MemoizedStatus: ({ status, statusHumanReadable, statusReasonHumanReadable, }: StatusProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { MemoizedStatus as Status };
13
+ export type { ActionStatus, StatusProps };
@@ -0,0 +1 @@
1
+ export * from './Status';
@@ -25,3 +25,4 @@ export * from './Popover';
25
25
  export * from './Review';
26
26
  export * from './ToggleContent';
27
27
  export * from './ViewDetails';
28
+ export * from './Status';
@@ -10,4 +10,5 @@
10
10
  * isDefined(null); // false
11
11
  */
12
12
  declare function isDefined<T>(data: T | null | undefined): data is T;
13
- export { isDefined };
13
+ declare const typedMemo: <T>(c: T) => T;
14
+ export { isDefined, typedMemo };
@@ -0,0 +1,28 @@
1
+ declare enum ActionStatus {
2
+ Pending = "pending",
3
+ Waiting = "waiting",
4
+ Skipped = "skipped",
5
+ Queued = "queued",
6
+ InProgress = "in-progress",
7
+ Completed = "completed",
8
+ Failed = "failed"
9
+ }
10
+ declare const actionStatusToIcon: {
11
+ readonly failed: "error";
12
+ readonly queued: "snooze";
13
+ readonly pending: "lens";
14
+ readonly skipped: "skip";
15
+ readonly waiting: "pending";
16
+ readonly completed: "success";
17
+ readonly 'in-progress': "loading";
18
+ };
19
+ declare const actionStatusToColor: {
20
+ readonly failed: "red.500";
21
+ readonly queued: "blue.600";
22
+ readonly pending: "amber.500";
23
+ readonly skipped: "gray.600";
24
+ readonly waiting: "amber.500";
25
+ readonly completed: "green.600";
26
+ readonly 'in-progress': "blue.600";
27
+ };
28
+ export { actionStatusToIcon, actionStatusToColor, ActionStatus };
@@ -0,0 +1 @@
1
+ export * from './action';