react-native-exp-fig 0.1.14 → 0.1.16
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/common/icons-svg/agent/index.js +2 -2
- package/lib/commonjs/common/icons-svg/agent/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/bed/index.js +4 -4
- package/lib/commonjs/common/icons-svg/bed/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/car/index.js +4 -4
- package/lib/commonjs/common/icons-svg/car/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/check-outline/index.js +6 -6
- package/lib/commonjs/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/coffee/index.js +4 -4
- package/lib/commonjs/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +2 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/hourglass/index.js +36 -0
- package/lib/commonjs/common/icons-svg/hourglass/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +8 -1
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/pencil/index.js +4 -4
- package/lib/commonjs/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/commonjs/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +4 -4
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/interface.d.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +4 -4
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/commonjs/components/button/styles.js +1 -1
- package/lib/commonjs/components/button/styles.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +62 -12
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-history/interface.d.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +21 -10
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +4 -4
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +6 -6
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/check-box/interface.d.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +4 -4
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/coil/interface.d.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +7 -7
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +1 -2
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/history-details/interface.d.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +11 -10
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +3 -1
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/index.js +155 -0
- package/lib/commonjs/components/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/modal-activities/interface.d.js +6 -0
- package/lib/commonjs/components/modal-activities/interface.d.js.map +1 -0
- package/lib/commonjs/components/notification-loading/index.js +9 -2
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/interface.d.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +6 -6
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +9 -8
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +6 -6
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/commonjs/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/commonjs/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
- package/lib/commonjs/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/commonjs/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +47 -0
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -0
- package/lib/commonjs/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/commonjs/styles/global/interface.d.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +6 -5
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/format-data/index.js +11 -11
- package/lib/commonjs/utils/format-data/index.js.map +1 -1
- package/lib/commonjs/utils/status-color/return-color.js +12 -2
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/common/icons-svg/agent/index.js +2 -2
- package/lib/module/common/icons-svg/agent/index.js.map +1 -1
- package/lib/module/common/icons-svg/bed/index.js +4 -4
- package/lib/module/common/icons-svg/bed/index.js.map +1 -1
- package/lib/module/common/icons-svg/car/index.js +4 -4
- package/lib/module/common/icons-svg/car/index.js.map +1 -1
- package/lib/module/common/icons-svg/check-outline/index.js +6 -6
- package/lib/module/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/module/common/icons-svg/coffee/index.js +4 -4
- package/lib/module/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +2 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/hourglass/index.js +28 -0
- package/lib/module/common/icons-svg/hourglass/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +11 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/pencil/index.js +4 -4
- package/lib/module/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/module/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +4 -4
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-daily/interface.d.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +4 -4
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/activities-progress/interface.d.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/module/components/button/styles.js +1 -1
- package/lib/module/components/button/styles.js.map +1 -1
- package/lib/module/components/card-history/index.js +62 -12
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-history/interface.d.js.map +1 -1
- package/lib/module/components/card-loading/index.js +22 -11
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +4 -4
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +6 -6
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/check-box/interface.d.js.map +1 -1
- package/lib/module/components/coil/index.js +4 -4
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/coil/interface.d.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +7 -7
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +1 -2
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/history-details/interface.d.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +11 -10
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +3 -1
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/modal-activities/index.js +148 -0
- package/lib/module/components/modal-activities/index.js.map +1 -0
- package/lib/module/components/modal-activities/interface.d.js +2 -0
- package/lib/module/components/modal-activities/interface.d.js.map +1 -0
- package/lib/module/components/notification-loading/index.js +9 -2
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/notification-loading/interface.d.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +6 -6
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/step-indicator/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +9 -8
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/components/user-profile/index.js +6 -6
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/module/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/module/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/module/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/module/stories/coil/coil.stories.js.map +1 -1
- package/lib/module/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/module/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js +41 -0
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -0
- package/lib/module/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/module/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/module/styles/global/interface.d.js.map +1 -1
- package/lib/module/styles/theme/theme.js +6 -5
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/format-data/index.js +11 -11
- package/lib/module/utils/format-data/index.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js +12 -3
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/src/common/icons-svg/hourglass/index.d.ts +10 -0
- package/lib/typescript/src/components/button/styles.d.ts +2 -3
- package/lib/typescript/src/components/modal-activities/index.d.ts +6 -0
- package/lib/typescript/src/components/step-indicator/styles.d.ts +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +6 -0
- package/lib/typescript/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/src/utils/status-color/return-color.d.ts +2 -1
- package/package.json +221 -221
- package/src/common/icons-svg/agent/index.tsx +40 -40
- package/src/common/icons-svg/bed/index.tsx +41 -41
- package/src/common/icons-svg/car/index.tsx +29 -29
- package/src/common/icons-svg/check-outline/index.tsx +42 -42
- package/src/common/icons-svg/coffee/index.tsx +43 -43
- package/src/common/icons-svg/constants/index.ts +1 -0
- package/src/common/icons-svg/hourglass/index.tsx +28 -0
- package/src/common/icons-svg/index.tsx +8 -4
- package/src/common/icons-svg/pencil/index.tsx +32 -32
- package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -32
- package/src/common/icons-svg/truck-activity/index.tsx +29 -29
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-daily/interface.d.ts +22 -22
- package/src/components/activities-progress/index.tsx +162 -162
- package/src/components/activities-progress/interface.d.ts +41 -41
- package/src/components/avatar-profile/index.tsx +95 -95
- package/src/components/avatar-profile/interface.d.ts +39 -39
- package/src/components/button/styles.ts +34 -34
- package/src/components/card-history/index.tsx +67 -5
- package/src/components/card-history/interface.d.ts +34 -28
- package/src/components/card-loading/index.tsx +16 -4
- package/src/components/card-work-session/index.tsx +187 -187
- package/src/components/check-box/index.tsx +94 -94
- package/src/components/check-box/interface.d.ts +31 -31
- package/src/components/coil/index.tsx +103 -103
- package/src/components/coil/interface.d.ts +26 -26
- package/src/components/filter-date-selector/index.tsx +101 -101
- package/src/components/history-details/index.tsx +1 -2
- package/src/components/history-details/interface.d.ts +18 -18
- package/src/components/image-capture-with-remove/index.tsx +11 -8
- package/src/components/image-capture-with-remove/interface.d.ts +6 -3
- package/src/components/loading-progress/index.tsx +93 -91
- package/src/components/modal-activities/index.tsx +139 -0
- package/src/components/modal-activities/interface.d.ts +21 -0
- package/src/components/notification-loading/index.tsx +9 -2
- package/src/components/notification-loading/interface.d.ts +35 -35
- package/src/components/profile-menu-option/index.tsx +65 -65
- package/src/components/profile-menu-option/interface.d.ts +42 -42
- package/src/components/step-indicator/index.tsx +164 -164
- package/src/components/step-indicator/interface.d.ts +34 -34
- package/src/components/step-indicator/styles.ts +68 -67
- package/src/components/user-profile/index.tsx +204 -204
- package/src/index.ts +1 -0
- package/src/stories/activities-daily/activities-daily.stories.tsx +40 -40
- package/src/stories/activities-progress/activities-progress.stories.tsx +61 -61
- package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -32
- package/src/stories/card-history/card-history.stories.tsx +50 -50
- package/src/stories/card-loading/card-loading.stories.tsx +85 -85
- package/src/stories/check-box/check-box.stories.tsx +81 -81
- package/src/stories/coil/coil.stories.tsx +98 -98
- package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -122
- package/src/stories/history-details/history-details.stories.tsx +36 -36
- package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +57 -57
- package/src/stories/modal-activities/modal-activities.stories.tsx +46 -0
- package/src/stories/notification-loading/notification-loading.stories.tsx +88 -88
- package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -70
- package/src/stories/step-indicator/step-indicator.stories.tsx +124 -124
- package/src/styles/global/interface.d.ts +146 -141
- package/src/styles/theme/theme.ts +1 -0
- package/src/utils/format-data/index.ts +66 -66
- package/src/utils/status-color/return-color.ts +14 -3
|
@@ -1,141 +1,146 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { DimensionValue } from "react-native";
|
|
6
|
-
import { theme } from "../theme/theme";
|
|
7
|
-
|
|
8
|
-
export interface IGlobalCss {
|
|
9
|
-
/**
|
|
10
|
-
* A propriedade JSX que define um elemento ou componente filho.
|
|
11
|
-
*/
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* TestID para testes automático e identificação
|
|
16
|
-
*/
|
|
17
|
-
testID?: string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
|
|
21
|
-
*/
|
|
22
|
-
borderStyled?: {
|
|
23
|
-
borderStyle?: "solid" | "dotted" | "dashed";
|
|
24
|
-
|
|
25
|
-
borderRadius?: number | DimensionValue;
|
|
26
|
-
borderTopRightRadius?: number | DimensionValue;
|
|
27
|
-
borderTopLeftRadius?: number | DimensionValue;
|
|
28
|
-
borderBottomRightRadius?: number | DimensionValue;
|
|
29
|
-
borderBottomLeftRadius?: number | DimensionValue;
|
|
30
|
-
|
|
31
|
-
borderWidth?: number | DimensionValue;
|
|
32
|
-
borderLeftWidth?: number | DimensionValue;
|
|
33
|
-
borderRightWidth?: number | DimensionValue;
|
|
34
|
-
borderTopWidth?: number | DimensionValue;
|
|
35
|
-
borderBottomWidth?: number | DimensionValue;
|
|
36
|
-
|
|
37
|
-
borderColor?: string;
|
|
38
|
-
borderBottomColor?: string;
|
|
39
|
-
borderLeftColor?: string;
|
|
40
|
-
borderRightColor?: string;
|
|
41
|
-
borderTopColor?: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
|
|
46
|
-
*/
|
|
47
|
-
flexStyle?: {
|
|
48
|
-
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
49
|
-
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
50
|
-
flex?: string | number;
|
|
51
|
-
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
52
|
-
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
53
|
-
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
54
|
-
justifyContent?:
|
|
55
|
-
| "flex-start"
|
|
56
|
-
| "flex-end"
|
|
57
|
-
| "center"
|
|
58
|
-
| "space-between"
|
|
59
|
-
| "space-around"
|
|
60
|
-
| "space-evenly";
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
|
|
65
|
-
*/
|
|
66
|
-
marginStyle?: {
|
|
67
|
-
margin?: number | DimensionValue;
|
|
68
|
-
marginLeft?: number | DimensionValue;
|
|
69
|
-
marginRight?: number | DimensionValue;
|
|
70
|
-
marginTop?: number | DimensionValue;
|
|
71
|
-
marginBottom?: number | DimensionValue;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
|
|
76
|
-
*/
|
|
77
|
-
paddingStyle?: {
|
|
78
|
-
padding?: number | DimensionValue;
|
|
79
|
-
paddingLeft?: number | DimensionValue;
|
|
80
|
-
paddingRight?: number | DimensionValue;
|
|
81
|
-
paddingTop?: number | DimensionValue;
|
|
82
|
-
paddingBottom?: number | DimensionValue;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
|
|
87
|
-
*/
|
|
88
|
-
height?: number | DimensionValue;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
|
|
92
|
-
*/
|
|
93
|
-
width?: number | DimensionValue;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
|
|
97
|
-
*/
|
|
98
|
-
backgroundColor?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Propriedade texto que sera renderizado pro usuário final
|
|
102
|
-
*/
|
|
103
|
-
text?: string;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
|
|
107
|
-
*/
|
|
108
|
-
color?: {
|
|
109
|
-
colorSvg?: string;
|
|
110
|
-
colorText?: string;
|
|
111
|
-
colorTextBold?: string;
|
|
112
|
-
colorTextData?: string;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* A propriedade abreviada CSS da fonte define todas as propriedades diferentes da fonte de um elemento. Alternativamente, ele define a fonte de um elemento como uma fonte do sistema.
|
|
117
|
-
*/
|
|
118
|
-
fontStyle?: {
|
|
119
|
-
font?: string;
|
|
120
|
-
fontSize?: number;
|
|
121
|
-
fontWeight?: "100" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "bold";
|
|
122
|
-
fontFamily?: keyof typeof theme.fonts;
|
|
123
|
-
letterSpacing?: keyof typeof theme.letterSpacing;
|
|
124
|
-
lineHeight?: number;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* A propriedade CSS opacity define o nível de opacidade de um elemento. O valor da opacidade varia de 0 (totalmente transparente) a 1 (totalmente opaco).
|
|
129
|
-
*/
|
|
130
|
-
disabled?: boolean;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* A propriedade background do icon da cor.
|
|
134
|
-
*/
|
|
135
|
-
backgroundColorIcon?: string;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
1
|
+
/*
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { DimensionValue } from "react-native";
|
|
6
|
+
import { theme } from "../theme/theme";
|
|
7
|
+
|
|
8
|
+
export interface IGlobalCss {
|
|
9
|
+
/**
|
|
10
|
+
* A propriedade JSX que define um elemento ou componente filho.
|
|
11
|
+
*/
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* TestID para testes automático e identificação
|
|
16
|
+
*/
|
|
17
|
+
testID?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
|
|
21
|
+
*/
|
|
22
|
+
borderStyled?: {
|
|
23
|
+
borderStyle?: "solid" | "dotted" | "dashed";
|
|
24
|
+
|
|
25
|
+
borderRadius?: number | DimensionValue;
|
|
26
|
+
borderTopRightRadius?: number | DimensionValue;
|
|
27
|
+
borderTopLeftRadius?: number | DimensionValue;
|
|
28
|
+
borderBottomRightRadius?: number | DimensionValue;
|
|
29
|
+
borderBottomLeftRadius?: number | DimensionValue;
|
|
30
|
+
|
|
31
|
+
borderWidth?: number | DimensionValue;
|
|
32
|
+
borderLeftWidth?: number | DimensionValue;
|
|
33
|
+
borderRightWidth?: number | DimensionValue;
|
|
34
|
+
borderTopWidth?: number | DimensionValue;
|
|
35
|
+
borderBottomWidth?: number | DimensionValue;
|
|
36
|
+
|
|
37
|
+
borderColor?: string;
|
|
38
|
+
borderBottomColor?: string;
|
|
39
|
+
borderLeftColor?: string;
|
|
40
|
+
borderRightColor?: string;
|
|
41
|
+
borderTopColor?: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
|
|
46
|
+
*/
|
|
47
|
+
flexStyle?: {
|
|
48
|
+
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
49
|
+
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
50
|
+
flex?: string | number;
|
|
51
|
+
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
52
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
53
|
+
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
54
|
+
justifyContent?:
|
|
55
|
+
| "flex-start"
|
|
56
|
+
| "flex-end"
|
|
57
|
+
| "center"
|
|
58
|
+
| "space-between"
|
|
59
|
+
| "space-around"
|
|
60
|
+
| "space-evenly";
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
|
|
65
|
+
*/
|
|
66
|
+
marginStyle?: {
|
|
67
|
+
margin?: number | DimensionValue;
|
|
68
|
+
marginLeft?: number | DimensionValue;
|
|
69
|
+
marginRight?: number | DimensionValue;
|
|
70
|
+
marginTop?: number | DimensionValue;
|
|
71
|
+
marginBottom?: number | DimensionValue;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
|
|
76
|
+
*/
|
|
77
|
+
paddingStyle?: {
|
|
78
|
+
padding?: number | DimensionValue;
|
|
79
|
+
paddingLeft?: number | DimensionValue;
|
|
80
|
+
paddingRight?: number | DimensionValue;
|
|
81
|
+
paddingTop?: number | DimensionValue;
|
|
82
|
+
paddingBottom?: number | DimensionValue;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
|
|
87
|
+
*/
|
|
88
|
+
height?: number | DimensionValue;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
|
|
92
|
+
*/
|
|
93
|
+
width?: number | DimensionValue;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
|
|
97
|
+
*/
|
|
98
|
+
backgroundColor?: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Propriedade texto que sera renderizado pro usuário final
|
|
102
|
+
*/
|
|
103
|
+
text?: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
|
|
107
|
+
*/
|
|
108
|
+
color?: {
|
|
109
|
+
colorSvg?: string;
|
|
110
|
+
colorText?: string;
|
|
111
|
+
colorTextBold?: string;
|
|
112
|
+
colorTextData?: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A propriedade abreviada CSS da fonte define todas as propriedades diferentes da fonte de um elemento. Alternativamente, ele define a fonte de um elemento como uma fonte do sistema.
|
|
117
|
+
*/
|
|
118
|
+
fontStyle?: {
|
|
119
|
+
font?: string;
|
|
120
|
+
fontSize?: number;
|
|
121
|
+
fontWeight?: "100" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "bold";
|
|
122
|
+
fontFamily?: keyof typeof theme.fonts;
|
|
123
|
+
letterSpacing?: keyof typeof theme.letterSpacing;
|
|
124
|
+
lineHeight?: number;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* A propriedade CSS opacity define o nível de opacidade de um elemento. O valor da opacidade varia de 0 (totalmente transparente) a 1 (totalmente opaco).
|
|
129
|
+
*/
|
|
130
|
+
disabled?: boolean;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* A propriedade background do icon da cor.
|
|
134
|
+
*/
|
|
135
|
+
backgroundColorIcon?: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* props que indica o loading do button
|
|
139
|
+
*/
|
|
140
|
+
isLoading?: boolean;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// /**
|
|
144
|
+
// * EXPORTS
|
|
145
|
+
// */
|
|
146
|
+
// export { IGlobalCss };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formata uma data do tipo Date para o formato DD/MM/YYYY
|
|
3
|
-
* @param date Objeto Date a ser formatado
|
|
4
|
-
* @returns String no formato DD/MM/YYYY
|
|
5
|
-
*/
|
|
6
|
-
const formatDate = (date: Date): string => {
|
|
7
|
-
const day = String(date.getDate()).padStart(2, "0");
|
|
8
|
-
const month = String(date.getMonth() + 1).padStart(2, "0"); // Mês começa em 0
|
|
9
|
-
const year = date.getFullYear();
|
|
10
|
-
|
|
11
|
-
return `${day}/${month}/${year}`;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { formatDate };
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Formata uma data do tipo Date para o formato DD/MM/YYYY
|
|
18
|
-
* @param date Objeto Date a ser formatado
|
|
19
|
-
* @returns String no formato DD/MM/YYYY
|
|
20
|
-
*/
|
|
21
|
-
const formHoursMinute = (segundos: string): string => {
|
|
22
|
-
const totalSegundos = parseInt(segundos, 10);
|
|
23
|
-
const horas = Math.floor(totalSegundos / 3600);
|
|
24
|
-
const minutos = Math.floor((totalSegundos % 3600) / 60);
|
|
25
|
-
|
|
26
|
-
const horasFormatadas = String(horas).padStart(2, "0");
|
|
27
|
-
const minutosFormatados = String(minutos).padStart(2, "0");
|
|
28
|
-
|
|
29
|
-
return `${horasFormatadas}:${minutosFormatados}`;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export { formHoursMinute };
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Retorna as sete últimas datas do dias
|
|
36
|
-
* @returns Array<{ date: number, dayName: string, fullDate: Date }>
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
const getLastSevenDays = () => {
|
|
40
|
-
const today = new Date();
|
|
41
|
-
const days = [];
|
|
42
|
-
|
|
43
|
-
// adiciona a opção "Todos" no início
|
|
44
|
-
days.push({
|
|
45
|
-
date: "all",
|
|
46
|
-
dayName: "Todos",
|
|
47
|
-
fullDate: new Date(),
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
const dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
51
|
-
|
|
52
|
-
for (let i = 6; i >= 0; i--) {
|
|
53
|
-
const date = new Date(today);
|
|
54
|
-
date.setDate(today.getDate() - i);
|
|
55
|
-
|
|
56
|
-
days.push({
|
|
57
|
-
date: date.getDate(),
|
|
58
|
-
dayName: dayNames[date.getDay()],
|
|
59
|
-
fullDate: date,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return days;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export { getLastSevenDays };
|
|
1
|
+
/**
|
|
2
|
+
* Formata uma data do tipo Date para o formato DD/MM/YYYY
|
|
3
|
+
* @param date Objeto Date a ser formatado
|
|
4
|
+
* @returns String no formato DD/MM/YYYY
|
|
5
|
+
*/
|
|
6
|
+
const formatDate = (date: Date): string => {
|
|
7
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
8
|
+
const month = String(date.getMonth() + 1).padStart(2, "0"); // Mês começa em 0
|
|
9
|
+
const year = date.getFullYear();
|
|
10
|
+
|
|
11
|
+
return `${day}/${month}/${year}`;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { formatDate };
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Formata uma data do tipo Date para o formato DD/MM/YYYY
|
|
18
|
+
* @param date Objeto Date a ser formatado
|
|
19
|
+
* @returns String no formato DD/MM/YYYY
|
|
20
|
+
*/
|
|
21
|
+
const formHoursMinute = (segundos: string): string => {
|
|
22
|
+
const totalSegundos = parseInt(segundos, 10);
|
|
23
|
+
const horas = Math.floor(totalSegundos / 3600);
|
|
24
|
+
const minutos = Math.floor((totalSegundos % 3600) / 60);
|
|
25
|
+
|
|
26
|
+
const horasFormatadas = String(horas).padStart(2, "0");
|
|
27
|
+
const minutosFormatados = String(minutos).padStart(2, "0");
|
|
28
|
+
|
|
29
|
+
return `${horasFormatadas}:${minutosFormatados}`;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { formHoursMinute };
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Retorna as sete últimas datas do dias
|
|
36
|
+
* @returns Array<{ date: number, dayName: string, fullDate: Date }>
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
const getLastSevenDays = () => {
|
|
40
|
+
const today = new Date();
|
|
41
|
+
const days = [];
|
|
42
|
+
|
|
43
|
+
// adiciona a opção "Todos" no início
|
|
44
|
+
days.push({
|
|
45
|
+
date: "all",
|
|
46
|
+
dayName: "Todos",
|
|
47
|
+
fullDate: new Date(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
const dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
51
|
+
|
|
52
|
+
for (let i = 6; i >= 0; i--) {
|
|
53
|
+
const date = new Date(today);
|
|
54
|
+
date.setDate(today.getDate() - i);
|
|
55
|
+
|
|
56
|
+
days.push({
|
|
57
|
+
date: date.getDate(),
|
|
58
|
+
dayName: dayNames[date.getDay()],
|
|
59
|
+
fullDate: date,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return days;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export { getLastSevenDays };
|
|
@@ -11,13 +11,24 @@ function getBorderColor(status: string) {
|
|
|
11
11
|
}
|
|
12
12
|
function getStatusColor(status: StatusType): string {
|
|
13
13
|
const statusColors: Record<StatusType, string> = {
|
|
14
|
-
Concluido: theme.colors.green[
|
|
14
|
+
Concluido: theme.colors.green[250],
|
|
15
15
|
Cancelado: theme.colors.red[900],
|
|
16
|
-
Pendente: theme.colors.yellow[
|
|
16
|
+
Pendente: theme.colors.yellow[75],
|
|
17
17
|
Andamento: theme.colors.yellow[50],
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
return statusColors[status];
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function getStatusTextColor(status: StatusType): string {
|
|
24
|
+
const statusColors: Record<StatusType, string> = {
|
|
25
|
+
Concluido: theme.colors.neutral[25],
|
|
26
|
+
Cancelado: theme.colors.neutral[25],
|
|
27
|
+
Pendente: theme.colors.neutral[50],
|
|
28
|
+
Andamento: theme.colors.neutral[50],
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return statusColors[status];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { getStatusColor, getBorderColor, getStatusTextColor };
|