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,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
3
6
|
import { StyleSheet } from "react-native";
|
|
4
7
|
import { theme } from "../../styles/theme/theme.js";
|
|
8
|
+
|
|
9
|
+
// typings
|
|
10
|
+
|
|
5
11
|
const styles = (props = {}) => StyleSheet.create({
|
|
6
12
|
containerIndicator: {
|
|
7
13
|
width: "100%",
|
|
@@ -25,9 +31,10 @@ const styles = (props = {}) => StyleSheet.create({
|
|
|
25
31
|
color: props.titleColor ?? theme.colors.black[10],
|
|
26
32
|
textAlign: "center",
|
|
27
33
|
lineHeight: 20,
|
|
28
|
-
fontSize: theme.fontSizes.
|
|
34
|
+
fontSize: theme.fontSizes.lg,
|
|
29
35
|
fontWeight: "500",
|
|
30
|
-
marginLeft: theme.margins.xs
|
|
36
|
+
marginLeft: theme.margins.xs,
|
|
37
|
+
marginBottom: 8
|
|
31
38
|
},
|
|
32
39
|
titleSelected: {
|
|
33
40
|
color: theme.colors.neutral[25],
|
|
@@ -37,7 +44,7 @@ const styles = (props = {}) => StyleSheet.create({
|
|
|
37
44
|
color: props.textColorDescription ?? theme.colors.gray[600],
|
|
38
45
|
textAlign: "center",
|
|
39
46
|
lineHeight: 16,
|
|
40
|
-
fontSize:
|
|
47
|
+
fontSize: theme.fontSizes.md,
|
|
41
48
|
fontFamily: theme.fonts.inter_light_300,
|
|
42
49
|
marginLeft: theme.margins.xs
|
|
43
50
|
},
|
|
@@ -52,5 +59,9 @@ const styles = (props = {}) => StyleSheet.create({
|
|
|
52
59
|
justifyContent: "center"
|
|
53
60
|
}
|
|
54
61
|
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* EXPORTS
|
|
65
|
+
*/
|
|
55
66
|
export { styles };
|
|
56
67
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","theme","styles","props","create","containerIndicator","width","flexDirection","justifyContent","alignItems","marginTop","paddingVertical","paddingHorizontal","opacity","disabled","containerIndicatorSelected","backgroundColor","colors","green","borderRadius","separator","borderBottomWidth","borderBottomColor","isSelected","gray","title","color","titleColor","black","textAlign","lineHeight","fontSize","fontSizes","
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","props","create","containerIndicator","width","flexDirection","justifyContent","alignItems","marginTop","paddingVertical","paddingHorizontal","opacity","disabled","containerIndicatorSelected","backgroundColor","colors","green","borderRadius","separator","borderBottomWidth","borderBottomColor","isSelected","gray","title","color","titleColor","black","textAlign","lineHeight","fontSize","fontSizes","lg","fontWeight","marginLeft","margins","xs","marginBottom","titleSelected","neutral","titleDescription","textColorDescription","md","fontFamily","fonts","inter_light_300","descSelected","containerMain"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/styles.ts"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;;AAGA,MAAMC,MAAM,GAAGA,CAACC,KAAoC,GAAG,CAAC,CAAC,KACvDH,UAAU,CAACI,MAAM,CAAC;EAChBC,kBAAkB,EAAE;IAClBC,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,KA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;IACvCX,UAAU,EAAElC,KAAK,CAACmC,OAAO,CAACC;EAC5B,CAAC;EAEDU,YAAY,EAAE;IACZrB,KAAK,EAAEzB,KAAK,CAACgB,MAAM,CAACuB,OAAO,CAAC,EAAE;EAChC,CAAC;EAEDQ,aAAa,EAAE;IACb1C,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,QAAQ;IACvBE,UAAU,EAAE,YAAY;IACxB0B,UAAU,EAAE,CAAC;IACb3B,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;;AAEJ;AACA;AACA;AACA,SAASN,MAAM","ignoreList":[]}
|
|
@@ -7,13 +7,59 @@ const meta = {
|
|
|
7
7
|
title: "componente/CardWorkSession",
|
|
8
8
|
component: CardWorkSession,
|
|
9
9
|
args: {
|
|
10
|
+
width: "100%",
|
|
11
|
+
counterBadge: 1,
|
|
10
12
|
name: "Weverson L.S",
|
|
11
13
|
workDate: "25/01/2025",
|
|
12
|
-
timeWork: "",
|
|
13
14
|
initialTime: "11:40",
|
|
14
15
|
duration: "05:20",
|
|
15
16
|
avatar: "https://avatars.githubusercontent.com/u/100369327?v=4&size=64"
|
|
16
17
|
},
|
|
18
|
+
argTypes: {
|
|
19
|
+
width: {
|
|
20
|
+
control: "number",
|
|
21
|
+
description: "Informa a a largura do componente."
|
|
22
|
+
},
|
|
23
|
+
name: {
|
|
24
|
+
control: "text",
|
|
25
|
+
description: "Informa o nome do usuário."
|
|
26
|
+
},
|
|
27
|
+
workDate: {
|
|
28
|
+
control: "text",
|
|
29
|
+
description: "Informa a data que inicio a jornada."
|
|
30
|
+
},
|
|
31
|
+
initialTime: {
|
|
32
|
+
control: "text",
|
|
33
|
+
description: "Informa o inicio de jornada."
|
|
34
|
+
},
|
|
35
|
+
duration: {
|
|
36
|
+
control: "text",
|
|
37
|
+
description: "Informa a duração de jornada."
|
|
38
|
+
},
|
|
39
|
+
avatar: {
|
|
40
|
+
control: "text",
|
|
41
|
+
description: "Informa a foto do usuário."
|
|
42
|
+
},
|
|
43
|
+
counterBadge: {
|
|
44
|
+
control: "number",
|
|
45
|
+
type: "number",
|
|
46
|
+
description: "Quantidade de mensagem não lidas"
|
|
47
|
+
},
|
|
48
|
+
backgroundColor: {
|
|
49
|
+
control: "text",
|
|
50
|
+
description: "Informa a cor de fundo."
|
|
51
|
+
},
|
|
52
|
+
handleNavigationNotification: {
|
|
53
|
+
control: () => {},
|
|
54
|
+
type: "function",
|
|
55
|
+
description: "Função que navegar para as notificações."
|
|
56
|
+
},
|
|
57
|
+
handleNavigation: {
|
|
58
|
+
control: () => {},
|
|
59
|
+
type: "function",
|
|
60
|
+
description: "Função que navegar para o perfil."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
17
63
|
parameters: {
|
|
18
64
|
notes: `
|
|
19
65
|
# CardWorkSession
|
|
@@ -22,11 +68,16 @@ Este é um componente de CardWorkSession de session de trabalho.
|
|
|
22
68
|
Você usa assim:
|
|
23
69
|
\`\`\`tsx
|
|
24
70
|
<CardWorkSession
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
71
|
+
width: 400,
|
|
72
|
+
counterBadge: 1,
|
|
73
|
+
name: "Weverson L.S",
|
|
74
|
+
workDate: "25/01/2025",
|
|
75
|
+
initialTime: "11:40",
|
|
76
|
+
duration: "05:20",
|
|
77
|
+
avatar: "https://avatars.githubusercontent.com/u/100369327?v=4&size=64",
|
|
78
|
+
backgroundColor: theme.colors.gray[300],
|
|
79
|
+
handleNavigationNotification: () => {},
|
|
80
|
+
handleNavigation: () => {},
|
|
30
81
|
/>
|
|
31
82
|
\`\`\`
|
|
32
83
|
`
|
|
@@ -36,14 +87,16 @@ export default meta;
|
|
|
36
87
|
export const CardTrabalhoSession = {
|
|
37
88
|
name: "card-work-session",
|
|
38
89
|
args: {
|
|
39
|
-
width:
|
|
90
|
+
width: "100%",
|
|
91
|
+
counterBadge: 1,
|
|
40
92
|
name: "Weverson L.S",
|
|
41
93
|
workDate: "25/01/2025",
|
|
42
|
-
timeWork: "",
|
|
43
94
|
initialTime: "11:40",
|
|
44
95
|
duration: "05:20",
|
|
45
96
|
avatar: "https://avatars.githubusercontent.com/u/100369327?v=4&size=64",
|
|
46
|
-
backgroundColor: theme.colors.gray[300]
|
|
97
|
+
backgroundColor: theme.colors.gray[300],
|
|
98
|
+
handleNavigationNotification: () => {},
|
|
99
|
+
handleNavigation: () => {}
|
|
47
100
|
}
|
|
48
101
|
};
|
|
49
102
|
//# sourceMappingURL=card-work-session.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CardWorkSession","theme","meta","title","component","args","
|
|
1
|
+
{"version":3,"names":["CardWorkSession","theme","meta","title","component","args","width","counterBadge","name","workDate","initialTime","duration","avatar","argTypes","control","description","type","backgroundColor","handleNavigationNotification","handleNavigation","parameters","notes","CardTrabalhoSession","colors","gray"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/card-work-session/card-work-session.stories.tsx"],"mappings":";;AAEA;AACA,OAAOA,eAAe,MAAM,6CAAoC;AAChE,SAASC,KAAK,QAAQ,6BAA0B;AAEhD,MAAMC,IAAkC,GAAG;EACzCC,KAAK,EAAE,4BAA4B;EACnCC,SAAS,EAAEJ,eAAe;EAC1BK,IAAI,EAAE;IACJC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE,CAAC;IACfC,IAAI,EAAE,cAAc;IACpBC,QAAQ,EAAE,YAAY;IACtBC,WAAW,EAAE,OAAO;IACpBC,QAAQ,EAAE,OAAO;IACjBC,MAAM,EAAE;EACV,CAAC;EACDC,QAAQ,EAAE;IACRP,KAAK,EAAE;MACLQ,OAAO,EAAE,QAAQ;MACjBC,WAAW,EAAE;IACf,CAAC;IACDP,IAAI,EAAE;MACJM,OAAO,EAAE,MAAM;MACfC,WAAW,EAAE;IACf,CAAC;IACDN,QAAQ,EAAE;MACRK,OAAO,EAAE,MAAM;MACfC,WAAW,EAAE;IACf,CAAC;IACDL,WAAW,EAAE;MACXI,OA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8,12 @@ import React from "react";
|
|
|
8
8
|
declare const _default: React.ComponentType<import("react-native").ViewProps & {
|
|
9
9
|
name: string;
|
|
10
10
|
workDate: string;
|
|
11
|
-
timeWork?: string;
|
|
12
11
|
initialTime?: string;
|
|
13
12
|
duration?: string;
|
|
14
13
|
avatar: string;
|
|
15
14
|
handleNavigation: () => void;
|
|
15
|
+
handleNavigationNotification: () => void;
|
|
16
|
+
counterBadge: number;
|
|
16
17
|
children?: React.ReactNode;
|
|
17
18
|
testID?: string;
|
|
18
19
|
borderStyled?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/card-work-session/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/card-work-session/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuL1C;;GAEG;;;;;;;;;;;;;mBApJK,CAAJ;oBACI,CAAL;4BAAmD,CAAC;2BAE1B,CAAC;+BAEtB,CAAN;8BAGQ,CAAC;mBAEH,CAAP;uBACyB,CAAC;wBAEjB,CAAV;sBAEM,CAAH;yBACwC,CAAC;mBAE5B,CAAC;yBAEH,CAAX;uBACW,CAAP;wBACO,CAAR;sBAA4B,CAAC;;;kBAO2B,CAAC;iBACa,CAAC;YAG/D,CAAL;qBAAoC,CAAC;gBAEX,CAAC;iBAExB,CAAV;sBAGY,CAAV;;;cAW8B,CAAC;kBACb,CAAC;mBAEb,CAAC;iBAGO,CAAC;oBAA2C,CAAC;;;eAO/C,CAAZ;mBACc,CAAL;oBAA2C,CAAC;kBACxB,CAAA;qBACZ,CAAC;;;;;;;gBAyCR,CAAb;iBAAuB,CAAC;qBAA2B,CAAC;qBAGzC,CAAN;;;AAsCN,wBAAgD"}
|
package/lib/typescript/commonjs/src/components/list-devices/components/list-device-empty/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
/**
|
|
6
|
+
* Componente ListDeviceEmpty para a interação da ui.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: React.ComponentType<Omit<any, "ref"> & React.RefAttributes<any>>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/list-devices/components/list-device-empty/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAqD1C;;GAEG;;AACH,wBAAgD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import type { IData } from "../../interface";
|
|
6
|
+
/**
|
|
7
|
+
* Componente DeviceRow para a exibição de um item da lista de dispositivos
|
|
8
|
+
*/
|
|
9
|
+
declare const DeviceRow: React.NamedExoticComponent<{
|
|
10
|
+
device: IData;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
isLast: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onPress: (d: IData) => void;
|
|
15
|
+
titleColor?: string;
|
|
16
|
+
textColorDescription?: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* EXPORTS
|
|
20
|
+
*/
|
|
21
|
+
export { DeviceRow };
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/list-devices/components/list-device-render-item/index.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAM7C;;GAEG;AACH,QAAA,MAAM,SAAS;YASL,KAAK;gBACD,OAAO;YACX,OAAO;eACJ,OAAO;aACT,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI;iBACd,MAAM;2BACI,MAAM;EA2C7B,CAAC;AAEH;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAkC,MAAM,OAAO,CAAC;AAOvD,OAAO,KAAK,EAAE,YAAY,EAAS,MAAM,aAAa,CAAC;AAyDvD;;GAEG;;AACH,wBAA4C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface IData {
|
|
2
|
+
id: number;
|
|
3
|
+
macDevice: string;
|
|
4
|
+
nameDevice: string;
|
|
5
|
+
}
|
|
6
|
+
type Extra = {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
};
|
|
10
|
+
interface IListDevices {
|
|
11
|
+
/** dados que vão ser renderizados */
|
|
12
|
+
data?: IData[];
|
|
13
|
+
/** cor do texto */
|
|
14
|
+
titleColor?: string;
|
|
15
|
+
/** cor do titulo (não está sendo usada no componente atual, mantida por compat) */
|
|
16
|
+
titleNumberColor?: string;
|
|
17
|
+
/** cor do texto da descrição */
|
|
18
|
+
textColorDescription?: string;
|
|
19
|
+
/** (opcional) id selecionado - modo controlado */
|
|
20
|
+
selectedId?: number | null;
|
|
21
|
+
/** (opcional) seleção inicial - modo não-controlado */
|
|
22
|
+
defaultSelectedId?: number | null;
|
|
23
|
+
/** callback ao selecionar um item */
|
|
24
|
+
onSelect?: (device: IData) => void;
|
|
25
|
+
/** desabilita interação */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type { IData, IListDevices, Extra };
|
|
29
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/interface.ts"],"names":[],"mappings":"AACA,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,KAAK,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1D,UAAU,YAAY;IACpB,qCAAqC;IACrC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IAEf,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,gCAAgC;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;IAEnC,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { type IListDevices } from "./interface";
|
|
2
|
-
type Extra = {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
isSelected?: boolean;
|
|
5
|
-
};
|
|
1
|
+
import { type IListDevices, type Extra } from "./interface";
|
|
6
2
|
declare const styles: (props?: Partial<IListDevices & Extra>) => {
|
|
7
3
|
containerIndicator: {
|
|
8
4
|
width: "100%";
|
|
@@ -29,6 +25,7 @@ declare const styles: (props?: Partial<IListDevices & Extra>) => {
|
|
|
29
25
|
fontSize: number;
|
|
30
26
|
fontWeight: "500";
|
|
31
27
|
marginLeft: number;
|
|
28
|
+
marginBottom: number;
|
|
32
29
|
};
|
|
33
30
|
titleSelected: {
|
|
34
31
|
color: string;
|
|
@@ -53,5 +50,8 @@ declare const styles: (props?: Partial<IListDevices & Extra>) => {
|
|
|
53
50
|
justifyContent: "center";
|
|
54
51
|
};
|
|
55
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* EXPORTS
|
|
55
|
+
*/
|
|
56
56
|
export { styles };
|
|
57
57
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/styles.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAE5D,QAAA,MAAM,MAAM,WAAW,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DhD,CAAC;AAEL;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/stories/card-work-session/card-work-session.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-work-session.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/stories/card-work-session/card-work-session.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAGjE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,
|
|
1
|
+
{"version":3,"file":"card-work-session.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/stories/card-work-session/card-work-session.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAGjE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CA+EtC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,mBAAmB,EAAE,KAcjC,CAAC"}
|
|
@@ -8,11 +8,12 @@ import React from "react";
|
|
|
8
8
|
declare const _default: React.ComponentType<import("react-native").ViewProps & {
|
|
9
9
|
name: string;
|
|
10
10
|
workDate: string;
|
|
11
|
-
timeWork?: string;
|
|
12
11
|
initialTime?: string;
|
|
13
12
|
duration?: string;
|
|
14
13
|
avatar: string;
|
|
15
14
|
handleNavigation: () => void;
|
|
15
|
+
handleNavigationNotification: () => void;
|
|
16
|
+
counterBadge: number;
|
|
16
17
|
children?: React.ReactNode;
|
|
17
18
|
testID?: string;
|
|
18
19
|
borderStyled?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/card-work-session/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/card-work-session/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuL1C;;GAEG;;;;;;;;;;;;;mBApJK,CAAJ;oBACI,CAAL;4BAAmD,CAAC;2BAE1B,CAAC;+BAEtB,CAAN;8BAGQ,CAAC;mBAEH,CAAP;uBACyB,CAAC;wBAEjB,CAAV;sBAEM,CAAH;yBACwC,CAAC;mBAE5B,CAAC;yBAEH,CAAX;uBACW,CAAP;wBACO,CAAR;sBAA4B,CAAC;;;kBAO2B,CAAC;iBACa,CAAC;YAG/D,CAAL;qBAAoC,CAAC;gBAEX,CAAC;iBAExB,CAAV;sBAGY,CAAV;;;cAW8B,CAAC;kBACb,CAAC;mBAEb,CAAC;iBAGO,CAAC;oBAA2C,CAAC;;;eAO/C,CAAZ;mBACc,CAAL;oBAA2C,CAAC;kBACxB,CAAA;qBACZ,CAAC;;;;;;;gBAyCR,CAAb;iBAAuB,CAAC;qBAA2B,CAAC;qBAGzC,CAAN;;;AAsCN,wBAAgD"}
|
package/lib/typescript/module/src/components/list-devices/components/list-device-empty/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
/**
|
|
6
|
+
* Componente ListDeviceEmpty para a interação da ui.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: React.ComponentType<Omit<any, "ref"> & React.RefAttributes<any>>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/list-devices/components/list-device-empty/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAqD1C;;GAEG;;AACH,wBAAgD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import type { IData } from "../../interface";
|
|
6
|
+
/**
|
|
7
|
+
* Componente DeviceRow para a exibição de um item da lista de dispositivos
|
|
8
|
+
*/
|
|
9
|
+
declare const DeviceRow: React.NamedExoticComponent<{
|
|
10
|
+
device: IData;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
isLast: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onPress: (d: IData) => void;
|
|
15
|
+
titleColor?: string;
|
|
16
|
+
textColorDescription?: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* EXPORTS
|
|
20
|
+
*/
|
|
21
|
+
export { DeviceRow };
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/list-devices/components/list-device-render-item/index.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAM7C;;GAEG;AACH,QAAA,MAAM,SAAS;YASL,KAAK;gBACD,OAAO;YACX,OAAO;eACJ,OAAO;aACT,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI;iBACd,MAAM;2BACI,MAAM;EA2C7B,CAAC;AAEH;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAkC,MAAM,OAAO,CAAC;AAOvD,OAAO,KAAK,EAAE,YAAY,EAAS,MAAM,aAAa,CAAC;AAyDvD;;GAEG;;AACH,wBAA4C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface IData {
|
|
2
|
+
id: number;
|
|
3
|
+
macDevice: string;
|
|
4
|
+
nameDevice: string;
|
|
5
|
+
}
|
|
6
|
+
type Extra = {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
};
|
|
10
|
+
interface IListDevices {
|
|
11
|
+
/** dados que vão ser renderizados */
|
|
12
|
+
data?: IData[];
|
|
13
|
+
/** cor do texto */
|
|
14
|
+
titleColor?: string;
|
|
15
|
+
/** cor do titulo (não está sendo usada no componente atual, mantida por compat) */
|
|
16
|
+
titleNumberColor?: string;
|
|
17
|
+
/** cor do texto da descrição */
|
|
18
|
+
textColorDescription?: string;
|
|
19
|
+
/** (opcional) id selecionado - modo controlado */
|
|
20
|
+
selectedId?: number | null;
|
|
21
|
+
/** (opcional) seleção inicial - modo não-controlado */
|
|
22
|
+
defaultSelectedId?: number | null;
|
|
23
|
+
/** callback ao selecionar um item */
|
|
24
|
+
onSelect?: (device: IData) => void;
|
|
25
|
+
/** desabilita interação */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type { IData, IListDevices, Extra };
|
|
29
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/interface.ts"],"names":[],"mappings":"AACA,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,KAAK,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1D,UAAU,YAAY;IACpB,qCAAqC;IACrC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IAEf,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,gCAAgC;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;IAEnC,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { type IListDevices } from "./interface";
|
|
2
|
-
type Extra = {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
isSelected?: boolean;
|
|
5
|
-
};
|
|
1
|
+
import { type IListDevices, type Extra } from "./interface";
|
|
6
2
|
declare const styles: (props?: Partial<IListDevices & Extra>) => {
|
|
7
3
|
containerIndicator: {
|
|
8
4
|
width: "100%";
|
|
@@ -29,6 +25,7 @@ declare const styles: (props?: Partial<IListDevices & Extra>) => {
|
|
|
29
25
|
fontSize: number;
|
|
30
26
|
fontWeight: "500";
|
|
31
27
|
marginLeft: number;
|
|
28
|
+
marginBottom: number;
|
|
32
29
|
};
|
|
33
30
|
titleSelected: {
|
|
34
31
|
color: string;
|
|
@@ -53,5 +50,8 @@ declare const styles: (props?: Partial<IListDevices & Extra>) => {
|
|
|
53
50
|
justifyContent: "center";
|
|
54
51
|
};
|
|
55
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* EXPORTS
|
|
55
|
+
*/
|
|
56
56
|
export { styles };
|
|
57
57
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list-devices/styles.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAE5D,QAAA,MAAM,MAAM,WAAW,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DhD,CAAC;AAEL;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/typescript/module/src/stories/card-work-session/card-work-session.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-work-session.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/stories/card-work-session/card-work-session.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAGjE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,
|
|
1
|
+
{"version":3,"file":"card-work-session.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/stories/card-work-session/card-work-session.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAGjE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CA+EtC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,mBAAmB,EAAE,KAcjC,CAAC"}
|