jornada-ui 0.4.13 → 0.4.15
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/lib/commonjs/components/activities-progress/index.js +10 -10
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +50 -17
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/list-devices/components/list-device-empty/index.js +68 -0
- package/lib/commonjs/components/list-devices/components/list-device-empty/index.js.map +1 -0
- package/lib/commonjs/components/list-devices/components/list-device-render-item/index.js +77 -0
- package/lib/commonjs/components/list-devices/components/list-device-render-item/index.js.map +1 -0
- package/lib/commonjs/components/list-devices/index.js +22 -54
- package/lib/commonjs/components/list-devices/index.js.map +1 -1
- package/lib/commonjs/components/list-devices/interface.js +2 -0
- package/lib/commonjs/components/list-devices/interface.js.map +1 -0
- package/lib/commonjs/components/list-devices/styles.js +14 -3
- package/lib/commonjs/components/list-devices/styles.js.map +1 -1
- package/lib/commonjs/stories/card-work-session/card-work-session.stories.js +62 -9
- package/lib/commonjs/stories/card-work-session/card-work-session.stories.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +10 -10
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +50 -17
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/list-devices/components/list-device-empty/index.js +63 -0
- package/lib/module/components/list-devices/components/list-device-empty/index.js.map +1 -0
- package/lib/module/components/list-devices/components/list-device-render-item/index.js +74 -0
- package/lib/module/components/list-devices/components/list-device-render-item/index.js.map +1 -0
- package/lib/module/components/list-devices/index.js +25 -57
- package/lib/module/components/list-devices/index.js.map +1 -1
- package/lib/module/components/list-devices/interface.js +2 -0
- package/lib/module/components/list-devices/interface.js.map +1 -0
- package/lib/module/components/list-devices/styles.js +14 -3
- package/lib/module/components/list-devices/styles.js.map +1 -1
- package/lib/module/stories/card-work-session/card-work-session.stories.js +62 -9
- package/lib/module/stories/card-work-session/card-work-session.stories.js.map +1 -1
- package/lib/typescript/commonjs/src/components/card-work-session/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/card-work-session/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/list-devices/components/list-device-empty/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/list-devices/components/list-device-empty/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/components/list-device-render-item/index.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/list-devices/components/list-device-render-item/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/list-devices/interface.d.ts +29 -0
- package/lib/typescript/commonjs/src/components/list-devices/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts +5 -5
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-work-session/index.d.ts +2 -1
- package/lib/typescript/module/src/components/card-work-session/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/list-devices/components/list-device-empty/index.d.ts +10 -0
- package/lib/typescript/module/src/components/list-devices/components/list-device-empty/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/components/list-device-render-item/index.d.ts +22 -0
- package/lib/typescript/module/src/components/list-devices/components/list-device-render-item/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/list-devices/interface.d.ts +29 -0
- package/lib/typescript/module/src/components/list-devices/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts +5 -5
- package/lib/typescript/module/src/components/list-devices/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/activities-progress/index.tsx +172 -172
- package/src/components/card-work-session/index.tsx +190 -172
- package/src/components/card-work-session/interface.d.ts +151 -150
- package/src/components/list-devices/components/list-device-empty/index.tsx +60 -0
- package/src/components/list-devices/components/list-device-render-item/index.tsx +86 -0
- package/src/components/list-devices/index.tsx +26 -58
- package/src/components/list-devices/{interface.d.ts → interface.ts} +36 -36
- package/src/components/list-devices/styles.ts +73 -68
- package/src/stories/card-work-session/card-work-session.stories.tsx +106 -53
- package/lib/commonjs/components/list-devices/interface.d.js +0 -2
- package/lib/commonjs/components/list-devices/interface.d.js.map +0 -1
- package/lib/module/components/list-devices/interface.d.js +0 -2
- package/lib/module/components/list-devices/interface.d.js.map +0 -1
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
|
|
6
|
-
// components
|
|
7
|
-
import Box from "../../components/box";
|
|
8
|
-
import Typography from "../../components/typography";
|
|
9
|
-
|
|
10
|
-
//commons/ icons
|
|
11
|
-
import { Icons } from "../../common/icons-svg";
|
|
12
|
-
|
|
13
|
-
// utils
|
|
14
|
-
import { getIconByProperty } from "../../utils/get-icon-by-property";
|
|
15
|
-
|
|
16
|
-
// typings
|
|
17
|
-
import type { IActivitiesProgress } from "./interface";
|
|
18
|
-
import { asBaseComponent } from "../../@types/as-base-component";
|
|
19
|
-
|
|
20
|
-
// styles
|
|
21
|
-
import { theme } from "../../styles/theme/theme";
|
|
22
|
-
|
|
23
|
-
const ActivitiesProgress: React.FC<IActivitiesProgress> = ({
|
|
24
|
-
data_inicio_horario = "
|
|
25
|
-
duracao = "00:
|
|
26
|
-
data_inicio = "
|
|
27
|
-
titleLabel = "
|
|
28
|
-
criado_ofiline = true,
|
|
29
|
-
tipo_atividade = "
|
|
30
|
-
referencia = "
|
|
31
|
-
}) => {
|
|
32
|
-
return (
|
|
33
|
-
<Box
|
|
34
|
-
width={"100%"}
|
|
35
|
-
height={100}
|
|
36
|
-
backgroundColor={theme.colors.neutral[25]}
|
|
37
|
-
borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}
|
|
38
|
-
>
|
|
39
|
-
<Box
|
|
40
|
-
width={"100%"}
|
|
41
|
-
height={30}
|
|
42
|
-
backgroundColor={theme.colors.blue[400]}
|
|
43
|
-
borderStyled={{
|
|
44
|
-
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
45
|
-
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
46
|
-
borderColor: theme.colors.blue[400],
|
|
47
|
-
}}
|
|
48
|
-
flexStyle={{
|
|
49
|
-
justifyContent: "space-between",
|
|
50
|
-
flexDirection: "row",
|
|
51
|
-
}}
|
|
52
|
-
>
|
|
53
|
-
<Box
|
|
54
|
-
flexStyle={{
|
|
55
|
-
flexDirection: "row",
|
|
56
|
-
alignItems: "center",
|
|
57
|
-
}}
|
|
58
|
-
>
|
|
59
|
-
<Typography
|
|
60
|
-
text={"Status: "}
|
|
61
|
-
color={theme.colors.neutral[25]}
|
|
62
|
-
size={theme.fontSizes.sm}
|
|
63
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
64
|
-
fontWeight={"500"}
|
|
65
|
-
lineHeight={theme.fontSizes.lg}
|
|
66
|
-
marginLeft={theme.margins["2xs"]}
|
|
67
|
-
/>
|
|
68
|
-
<Typography
|
|
69
|
-
text={titleLabel}
|
|
70
|
-
color={
|
|
71
|
-
tipo_atividade === "trabalho" ? theme.colors.green[400] : theme.colors.orange[500]
|
|
72
|
-
}
|
|
73
|
-
size={theme.fontSizes.sm}
|
|
74
|
-
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
75
|
-
fontWeight={"600"}
|
|
76
|
-
lineHeight={theme.fontSizes.lg}
|
|
77
|
-
/>
|
|
78
|
-
</Box>
|
|
79
|
-
|
|
80
|
-
<Box
|
|
81
|
-
style={{ marginRight: theme.margins["2xs"], marginTop: theme.margins["1xs"] }}
|
|
82
|
-
height={20}
|
|
83
|
-
width={20}
|
|
84
|
-
>
|
|
85
|
-
<Icons
|
|
86
|
-
icon={"CHECK_OUTLINE"}
|
|
87
|
-
color={criado_ofiline ? theme.colors.green[400] : theme.colors.orange[500]}
|
|
88
|
-
/>
|
|
89
|
-
</Box>
|
|
90
|
-
</Box>
|
|
91
|
-
|
|
92
|
-
<Box
|
|
93
|
-
width={"100%"}
|
|
94
|
-
flexStyle={{
|
|
95
|
-
flexDirection: "row",
|
|
96
|
-
justifyContent: "space-between",
|
|
97
|
-
}}
|
|
98
|
-
paddingStyle={{
|
|
99
|
-
padding: theme.paddings["2xs"],
|
|
100
|
-
}}
|
|
101
|
-
>
|
|
102
|
-
<Box height={20} flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
103
|
-
{getIconByProperty(referencia)}
|
|
104
|
-
<Typography
|
|
105
|
-
text={data_inicio}
|
|
106
|
-
color={theme.colors.black[25]}
|
|
107
|
-
size={theme.fontSizes.xs}
|
|
108
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
109
|
-
fontWeight={"700"}
|
|
110
|
-
lineHeight={theme.fontSizes.lg}
|
|
111
|
-
marginLeft={4}
|
|
112
|
-
/>
|
|
113
|
-
</Box>
|
|
114
|
-
|
|
115
|
-
<Box height={50} flexStyle={{ flexDirection: "row", alignItems: "flex-end" }}>
|
|
116
|
-
<Box
|
|
117
|
-
flexStyle={{ alignItems: "center" }}
|
|
118
|
-
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
119
|
-
>
|
|
120
|
-
<Typography
|
|
121
|
-
text={data_inicio_horario}
|
|
122
|
-
color={theme.colors.blue[500]}
|
|
123
|
-
size={theme.fontSizes.sm}
|
|
124
|
-
fontFamily={theme.fonts.inter_bold}
|
|
125
|
-
fontWeight={"700"}
|
|
126
|
-
lineHeight={theme.fontSizes.md}
|
|
127
|
-
/>
|
|
128
|
-
<Typography
|
|
129
|
-
text={"INICIO"}
|
|
130
|
-
color={theme.colors.gray[600]}
|
|
131
|
-
size={theme.fontSizes["2xs"]}
|
|
132
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
133
|
-
fontWeight={"500"}
|
|
134
|
-
lineHeight={theme.fontSizes.xs}
|
|
135
|
-
marginTop={4}
|
|
136
|
-
/>
|
|
137
|
-
</Box>
|
|
138
|
-
|
|
139
|
-
<Box
|
|
140
|
-
flexStyle={{ alignItems: "center" }}
|
|
141
|
-
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
142
|
-
>
|
|
143
|
-
<Typography
|
|
144
|
-
text={duracao}
|
|
145
|
-
color={theme.colors.blue[500]}
|
|
146
|
-
size={theme.fontSizes.sm}
|
|
147
|
-
fontFamily={theme.fonts.inter_bold}
|
|
148
|
-
fontWeight={"700"}
|
|
149
|
-
lineHeight={theme.fontSizes.md}
|
|
150
|
-
/>
|
|
151
|
-
<Typography
|
|
152
|
-
text={"DURAÇÃO"}
|
|
153
|
-
color={theme.colors.gray[600]}
|
|
154
|
-
size={theme.fontSizes["2xs"]}
|
|
155
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
156
|
-
fontWeight={"500"}
|
|
157
|
-
lineHeight={theme.fontSizes.xs}
|
|
158
|
-
marginTop={4}
|
|
159
|
-
/>
|
|
160
|
-
</Box>
|
|
161
|
-
</Box>
|
|
162
|
-
</Box>
|
|
163
|
-
</Box>
|
|
164
|
-
);
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
ActivitiesProgress.displayName = "ActivitiesProgress";
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Componente Box para a interação da ui.
|
|
171
|
-
*/
|
|
172
|
-
export default asBaseComponent(ActivitiesProgress);
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
|
|
6
|
+
// components
|
|
7
|
+
import Box from "../../components/box";
|
|
8
|
+
import Typography from "../../components/typography";
|
|
9
|
+
|
|
10
|
+
//commons/ icons
|
|
11
|
+
import { Icons } from "../../common/icons-svg";
|
|
12
|
+
|
|
13
|
+
// utils
|
|
14
|
+
import { getIconByProperty } from "../../utils/get-icon-by-property";
|
|
15
|
+
|
|
16
|
+
// typings
|
|
17
|
+
import type { IActivitiesProgress } from "./interface";
|
|
18
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
19
|
+
|
|
20
|
+
// styles
|
|
21
|
+
import { theme } from "../../styles/theme/theme";
|
|
22
|
+
|
|
23
|
+
const ActivitiesProgress: React.FC<IActivitiesProgress> = ({
|
|
24
|
+
data_inicio_horario = "00/00/0000",
|
|
25
|
+
duracao = "00:00",
|
|
26
|
+
data_inicio = "00:00",
|
|
27
|
+
titleLabel = "Sem Atividade",
|
|
28
|
+
criado_ofiline = true,
|
|
29
|
+
tipo_atividade = "descanso",
|
|
30
|
+
referencia = "descanso",
|
|
31
|
+
}) => {
|
|
32
|
+
return (
|
|
33
|
+
<Box
|
|
34
|
+
width={"100%"}
|
|
35
|
+
height={100}
|
|
36
|
+
backgroundColor={theme.colors.neutral[25]}
|
|
37
|
+
borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}
|
|
38
|
+
>
|
|
39
|
+
<Box
|
|
40
|
+
width={"100%"}
|
|
41
|
+
height={30}
|
|
42
|
+
backgroundColor={theme.colors.blue[400]}
|
|
43
|
+
borderStyled={{
|
|
44
|
+
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
45
|
+
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
46
|
+
borderColor: theme.colors.blue[400],
|
|
47
|
+
}}
|
|
48
|
+
flexStyle={{
|
|
49
|
+
justifyContent: "space-between",
|
|
50
|
+
flexDirection: "row",
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
<Box
|
|
54
|
+
flexStyle={{
|
|
55
|
+
flexDirection: "row",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
}}
|
|
58
|
+
>
|
|
59
|
+
<Typography
|
|
60
|
+
text={"Status: "}
|
|
61
|
+
color={theme.colors.neutral[25]}
|
|
62
|
+
size={theme.fontSizes.sm}
|
|
63
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
64
|
+
fontWeight={"500"}
|
|
65
|
+
lineHeight={theme.fontSizes.lg}
|
|
66
|
+
marginLeft={theme.margins["2xs"]}
|
|
67
|
+
/>
|
|
68
|
+
<Typography
|
|
69
|
+
text={titleLabel}
|
|
70
|
+
color={
|
|
71
|
+
tipo_atividade === "trabalho" ? theme.colors.green[400] : theme.colors.orange[500]
|
|
72
|
+
}
|
|
73
|
+
size={theme.fontSizes.sm}
|
|
74
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
75
|
+
fontWeight={"600"}
|
|
76
|
+
lineHeight={theme.fontSizes.lg}
|
|
77
|
+
/>
|
|
78
|
+
</Box>
|
|
79
|
+
|
|
80
|
+
<Box
|
|
81
|
+
style={{ marginRight: theme.margins["2xs"], marginTop: theme.margins["1xs"] }}
|
|
82
|
+
height={20}
|
|
83
|
+
width={20}
|
|
84
|
+
>
|
|
85
|
+
<Icons
|
|
86
|
+
icon={"CHECK_OUTLINE"}
|
|
87
|
+
color={criado_ofiline ? theme.colors.green[400] : theme.colors.orange[500]}
|
|
88
|
+
/>
|
|
89
|
+
</Box>
|
|
90
|
+
</Box>
|
|
91
|
+
|
|
92
|
+
<Box
|
|
93
|
+
width={"100%"}
|
|
94
|
+
flexStyle={{
|
|
95
|
+
flexDirection: "row",
|
|
96
|
+
justifyContent: "space-between",
|
|
97
|
+
}}
|
|
98
|
+
paddingStyle={{
|
|
99
|
+
padding: theme.paddings["2xs"],
|
|
100
|
+
}}
|
|
101
|
+
>
|
|
102
|
+
<Box height={20} flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
103
|
+
{getIconByProperty(referencia)}
|
|
104
|
+
<Typography
|
|
105
|
+
text={data_inicio}
|
|
106
|
+
color={theme.colors.black[25]}
|
|
107
|
+
size={theme.fontSizes.xs}
|
|
108
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
109
|
+
fontWeight={"700"}
|
|
110
|
+
lineHeight={theme.fontSizes.lg}
|
|
111
|
+
marginLeft={4}
|
|
112
|
+
/>
|
|
113
|
+
</Box>
|
|
114
|
+
|
|
115
|
+
<Box height={50} flexStyle={{ flexDirection: "row", alignItems: "flex-end" }}>
|
|
116
|
+
<Box
|
|
117
|
+
flexStyle={{ alignItems: "center" }}
|
|
118
|
+
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
119
|
+
>
|
|
120
|
+
<Typography
|
|
121
|
+
text={data_inicio_horario}
|
|
122
|
+
color={theme.colors.blue[500]}
|
|
123
|
+
size={theme.fontSizes.sm}
|
|
124
|
+
fontFamily={theme.fonts.inter_bold}
|
|
125
|
+
fontWeight={"700"}
|
|
126
|
+
lineHeight={theme.fontSizes.md}
|
|
127
|
+
/>
|
|
128
|
+
<Typography
|
|
129
|
+
text={"INICIO"}
|
|
130
|
+
color={theme.colors.gray[600]}
|
|
131
|
+
size={theme.fontSizes["2xs"]}
|
|
132
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
133
|
+
fontWeight={"500"}
|
|
134
|
+
lineHeight={theme.fontSizes.xs}
|
|
135
|
+
marginTop={4}
|
|
136
|
+
/>
|
|
137
|
+
</Box>
|
|
138
|
+
|
|
139
|
+
<Box
|
|
140
|
+
flexStyle={{ alignItems: "center" }}
|
|
141
|
+
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
142
|
+
>
|
|
143
|
+
<Typography
|
|
144
|
+
text={duracao}
|
|
145
|
+
color={theme.colors.blue[500]}
|
|
146
|
+
size={theme.fontSizes.sm}
|
|
147
|
+
fontFamily={theme.fonts.inter_bold}
|
|
148
|
+
fontWeight={"700"}
|
|
149
|
+
lineHeight={theme.fontSizes.md}
|
|
150
|
+
/>
|
|
151
|
+
<Typography
|
|
152
|
+
text={"DURAÇÃO"}
|
|
153
|
+
color={theme.colors.gray[600]}
|
|
154
|
+
size={theme.fontSizes["2xs"]}
|
|
155
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
156
|
+
fontWeight={"500"}
|
|
157
|
+
lineHeight={theme.fontSizes.xs}
|
|
158
|
+
marginTop={4}
|
|
159
|
+
/>
|
|
160
|
+
</Box>
|
|
161
|
+
</Box>
|
|
162
|
+
</Box>
|
|
163
|
+
</Box>
|
|
164
|
+
);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
ActivitiesProgress.displayName = "ActivitiesProgress";
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Componente Box para a interação da ui.
|
|
171
|
+
*/
|
|
172
|
+
export default asBaseComponent(ActivitiesProgress);
|