@granto-umbrella/umbrella-components 3.0.56 → 3.0.57
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/dist/umbrella-components.es.js +23668 -23512
- package/dist/umbrella-components.umd.js +592 -569
- package/package.json +141 -141
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.styles.ts +50 -0
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.tsx +136 -0
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.types.ts +18 -0
- package/src/components/atoms/EditableDurationSelect/index.tsx +1 -0
- package/src/components/molecules/TimeLine/TimeLine.mapper.ts +86 -86
- package/src/components/molecules/TimeLine/TimeLine.registry.ts +66 -41
- package/src/components/molecules/TimeLine/TimeLine.styles.ts +184 -184
- package/src/components/molecules/TimeLine/TimeLine.tsx +100 -100
- package/src/components/molecules/TimeLine/TimeLine.types.ts +65 -65
- package/src/index.ts +3 -1
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
export type TimelineVariant =
|
|
2
|
-
| 'continued'
|
|
3
|
-
| 'accepted'
|
|
4
|
-
| 'rejected'
|
|
5
|
-
| 'issue'
|
|
6
|
-
| 'order'
|
|
7
|
-
| 'created'
|
|
8
|
-
| 'updated'
|
|
9
|
-
| 'download'
|
|
10
|
-
| 'deleted'
|
|
11
|
-
| 'info';
|
|
12
|
-
|
|
13
|
-
export type ActorType = 'user' | 'app';
|
|
14
|
-
|
|
15
|
-
export interface TimelineActor {
|
|
16
|
-
id: string;
|
|
17
|
-
displayName: string;
|
|
18
|
-
type: ActorType;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface TimelineItem {
|
|
22
|
-
id: string;
|
|
23
|
-
timestamp: string;
|
|
24
|
-
type: TimelineVariant;
|
|
25
|
-
title: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
actor: TimelineActor;
|
|
28
|
-
origin: string;
|
|
29
|
-
correlationId?: string;
|
|
30
|
-
metadata?: Record<string, unknown>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type EventIdKey = `${number}`;
|
|
34
|
-
|
|
35
|
-
export interface RemoteUser {
|
|
36
|
-
id: number;
|
|
37
|
-
username: string;
|
|
38
|
-
name: string;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface RemoteEvent {
|
|
42
|
-
id: string;
|
|
43
|
-
eventType: string;
|
|
44
|
-
eventId: number | string;
|
|
45
|
-
isPublic: boolean;
|
|
46
|
-
|
|
47
|
-
startDate: string;
|
|
48
|
-
endDate?: string;
|
|
49
|
-
duration?: number;
|
|
50
|
-
|
|
51
|
-
user?: RemoteUser;
|
|
52
|
-
|
|
53
|
-
data?: Record<string, unknown>;
|
|
54
|
-
|
|
55
|
-
parentId?: string | null;
|
|
56
|
-
parentType?: string | null;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type TimelineProps = {
|
|
60
|
-
items: TimelineItem[];
|
|
61
|
-
loading?: boolean;
|
|
62
|
-
onRetry?: () => void;
|
|
63
|
-
emptyLabel?: string;
|
|
64
|
-
skeletonItems?: number;
|
|
65
|
-
};
|
|
1
|
+
export type TimelineVariant =
|
|
2
|
+
| 'continued'
|
|
3
|
+
| 'accepted'
|
|
4
|
+
| 'rejected'
|
|
5
|
+
| 'issue'
|
|
6
|
+
| 'order'
|
|
7
|
+
| 'created'
|
|
8
|
+
| 'updated'
|
|
9
|
+
| 'download'
|
|
10
|
+
| 'deleted'
|
|
11
|
+
| 'info';
|
|
12
|
+
|
|
13
|
+
export type ActorType = 'user' | 'app';
|
|
14
|
+
|
|
15
|
+
export interface TimelineActor {
|
|
16
|
+
id: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
type: ActorType;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface TimelineItem {
|
|
22
|
+
id: string;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
type: TimelineVariant;
|
|
25
|
+
title: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
actor: TimelineActor;
|
|
28
|
+
origin: string;
|
|
29
|
+
correlationId?: string;
|
|
30
|
+
metadata?: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type EventIdKey = `${number}`;
|
|
34
|
+
|
|
35
|
+
export interface RemoteUser {
|
|
36
|
+
id: number;
|
|
37
|
+
username: string;
|
|
38
|
+
name: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface RemoteEvent {
|
|
42
|
+
id: string;
|
|
43
|
+
eventType: string;
|
|
44
|
+
eventId: number | string;
|
|
45
|
+
isPublic: boolean;
|
|
46
|
+
|
|
47
|
+
startDate: string;
|
|
48
|
+
endDate?: string;
|
|
49
|
+
duration?: number;
|
|
50
|
+
|
|
51
|
+
user?: RemoteUser;
|
|
52
|
+
|
|
53
|
+
data?: Record<string, unknown>;
|
|
54
|
+
|
|
55
|
+
parentId?: string | null;
|
|
56
|
+
parentType?: string | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type TimelineProps = {
|
|
60
|
+
items: TimelineItem[];
|
|
61
|
+
loading?: boolean;
|
|
62
|
+
onRetry?: () => void;
|
|
63
|
+
emptyLabel?: string;
|
|
64
|
+
skeletonItems?: number;
|
|
65
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { Checkbox } from './components/atoms/Checkbox/Checkbox';
|
|
|
16
16
|
import CodeInput from './components/atoms/CodeInput/CodeInput';
|
|
17
17
|
import { DatePickerInput } from './components/atoms/DatePickerInput/DatePickerInput';
|
|
18
18
|
import { DropdownMenu } from './components/atoms/DropDownMenu/DropdownMenu';
|
|
19
|
+
import EditableDurationSelect from './components/atoms/EditableDurationSelect';
|
|
19
20
|
import ErrorMessage from './components/atoms/ErrorMessage';
|
|
20
21
|
import Footer from './components/atoms/Footer/Footer';
|
|
21
22
|
import { GenericContainer } from './components/atoms/GenericContainer';
|
|
@@ -36,6 +37,7 @@ import { TabBar } from './components/atoms/TabBar';
|
|
|
36
37
|
import Text from './components/atoms/Text';
|
|
37
38
|
import Textarea from './components/atoms/Textarea/Textarea';
|
|
38
39
|
import { Title } from './components/atoms/Title';
|
|
40
|
+
import Tooltip from './components/atoms/Tooltip/Tooltip';
|
|
39
41
|
import { BannerAjuda } from './components/molecules/BannerAjuda';
|
|
40
42
|
import ButtonGroup from './components/molecules/ButtonGroup/ButtonGroup';
|
|
41
43
|
import { Calendar } from './components/molecules/Calendar/Calendar';
|
|
@@ -76,7 +78,6 @@ import {
|
|
|
76
78
|
import { ListagemUltimasEmissoes } from './components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes';
|
|
77
79
|
import NavbarContainer from './components/organisms/Navbar/Navbar';
|
|
78
80
|
import { TimelineModal } from './components/organisms/TimelineModal/TimelineModal';
|
|
79
|
-
import Tooltip from './components/atoms/Tooltip/Tooltip';
|
|
80
81
|
|
|
81
82
|
export {
|
|
82
83
|
InsuranceCard,
|
|
@@ -93,6 +94,7 @@ export {
|
|
|
93
94
|
ButtonGroup,
|
|
94
95
|
Calendar,
|
|
95
96
|
CodeInput,
|
|
97
|
+
EditableDurationSelect,
|
|
96
98
|
CodeInputContainer,
|
|
97
99
|
Checkbox,
|
|
98
100
|
DatePickerInput,
|