jornada-ui 0.4.21 → 0.4.22
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/modals/modal-to-confimations/index.js +1 -4
- package/lib/commonjs/components/modals/modal-to-confimations/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +2 -1
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/weekly-table/components/row-table/index.js +6 -4
- package/lib/commonjs/components/weekly-table/components/row-table/index.js.map +1 -1
- package/lib/commonjs/components/weekly-table/index.js +68 -36
- package/lib/commonjs/components/weekly-table/index.js.map +1 -1
- package/lib/module/components/modals/modal-to-confimations/index.js +1 -4
- package/lib/module/components/modals/modal-to-confimations/index.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +2 -1
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/weekly-table/components/row-table/index.js +6 -4
- package/lib/module/components/weekly-table/components/row-table/index.js.map +1 -1
- package/lib/module/components/weekly-table/index.js +57 -25
- package/lib/module/components/weekly-table/index.js.map +1 -1
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/weekly-table/components/row-table/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/weekly-table/components/row-table/interface.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/weekly-table/components/row-table/interface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/weekly-table/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/weekly-table/interface.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/weekly-table/interface.d.ts.map +1 -1
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/step-indicator/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/weekly-table/components/row-table/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/weekly-table/components/row-table/interface.d.ts +2 -0
- package/lib/typescript/module/src/components/weekly-table/components/row-table/interface.d.ts.map +1 -1
- package/lib/typescript/module/src/components/weekly-table/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/weekly-table/interface.d.ts +5 -0
- package/lib/typescript/module/src/components/weekly-table/interface.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/modals/modal-to-confimations/index.tsx +1 -4
- package/src/components/step-indicator/index.tsx +2 -1
- package/src/components/step-indicator/interface.d.ts +3 -0
- package/src/components/weekly-table/components/row-table/index.tsx +46 -44
- package/src/components/weekly-table/components/row-table/interface.ts +16 -14
- package/src/components/weekly-table/index.tsx +60 -17
- package/src/components/weekly-table/interface.ts +40 -33
|
@@ -1,33 +1,40 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
|
-
/**
|
|
3
|
-
* IMPORTS
|
|
4
|
-
*/
|
|
5
|
-
import type { JSX } from "react";
|
|
6
|
-
|
|
7
|
-
interface DayInfo {
|
|
8
|
-
dia: string; // Ex: "SEG", "TER"
|
|
9
|
-
entrada?: string; // Ex: "08:00"
|
|
10
|
-
saida?: string; // Ex: "17:00" ou "REP"
|
|
11
|
-
kms?: number; // Quilômetros percorridos no dia
|
|
12
|
-
picos?: number; // Quantidade de picos
|
|
13
|
-
falhas?: number; // Quantidade de falhas
|
|
14
|
-
}
|
|
15
|
-
interface WeekItem extends DayInfo {
|
|
16
|
-
jornada?: string; // Ex: "08:00 - 17:00"
|
|
17
|
-
}
|
|
18
|
-
interface CampoProps {
|
|
19
|
-
texto: string;
|
|
20
|
-
bold?: boolean;
|
|
21
|
-
color?: string;
|
|
22
|
-
}
|
|
23
|
-
interface WeekCalendarProps {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
/* eslint-disable no-unused-vars */
|
|
2
|
+
/**
|
|
3
|
+
* IMPORTS
|
|
4
|
+
*/
|
|
5
|
+
import type { JSX } from "react";
|
|
6
|
+
|
|
7
|
+
interface DayInfo {
|
|
8
|
+
dia: string; // Ex: "SEG", "TER"
|
|
9
|
+
entrada?: string; // Ex: "08:00"
|
|
10
|
+
saida?: string; // Ex: "17:00" ou "REP"
|
|
11
|
+
kms?: number; // Quilômetros percorridos no dia
|
|
12
|
+
picos?: number; // Quantidade de picos
|
|
13
|
+
falhas?: number; // Quantidade de falhas
|
|
14
|
+
}
|
|
15
|
+
interface WeekItem extends DayInfo {
|
|
16
|
+
jornada?: string; // Ex: "08:00 - 17:00"
|
|
17
|
+
}
|
|
18
|
+
interface CampoProps {
|
|
19
|
+
texto: string;
|
|
20
|
+
bold?: boolean;
|
|
21
|
+
color?: string;
|
|
22
|
+
}
|
|
23
|
+
interface WeekCalendarProps {
|
|
24
|
+
/**Identificador para o components */
|
|
25
|
+
testID?: string;
|
|
26
|
+
|
|
27
|
+
/**Identificador para o components em carrega*/
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
|
|
30
|
+
/**dados que vão ser renderizados */
|
|
31
|
+
semana: DayInfo[];
|
|
32
|
+
}
|
|
33
|
+
interface WeekCalendarComponent {
|
|
34
|
+
(props: WeekCalendarProps): JSX.Element;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* EXPORTS
|
|
39
|
+
*/
|
|
40
|
+
export type { DayInfo, WeekItem, CampoProps, WeekCalendarComponent, WeekCalendarProps };
|