react-native-exp-fig 0.1.26 → 0.1.28
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/activity-timeline/components/activite-row/index.js +130 -0
- package/lib/commonjs/components/activity-timeline/components/activite-row/index.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/index.js +78 -0
- package/lib/commonjs/components/activity-timeline/index.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/interface.js +6 -0
- package/lib/commonjs/components/activity-timeline/interface.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/styles.js +84 -0
- package/lib/commonjs/components/activity-timeline/styles.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/index.js +66 -0
- package/lib/commonjs/components/input-text-counter/index.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/interface.d.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/styles.js +42 -0
- package/lib/commonjs/components/input-text-counter/styles.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/index.js +202 -0
- package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/interface.js +2 -0
- package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/styles.js +42 -0
- package/lib/commonjs/components/modal-create-activitie/styles.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/index.js +202 -0
- package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/interface.d.js +2 -0
- package/lib/commonjs/components/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/styles.js +42 -0
- package/lib/commonjs/components/modal-journey-rectification/styles.js.map +1 -0
- package/lib/commonjs/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
- package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -0
- package/lib/commonjs/components/{modal-activities → modals/modal-activities}/index.js +8 -8
- package/lib/commonjs/components/modals/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activities/interface.d.js +6 -0
- package/lib/commonjs/components/modals/modal-activities/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +161 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/commonjs/components/{modal-change-activity → modals/modal-change-activity}/index.js +7 -7
- package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js +95 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js +33 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/commonjs/components/selects/select-option/index.js +41 -39
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +7 -7
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/index.js +39 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activity-timeline/activity-timeline.stories.js +82 -0
- package/lib/commonjs/stories/activity-timeline/activity-timeline.stories.js.map +1 -0
- package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js +259 -0
- package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +198 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +86 -0
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +172 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/commonjs/stories/select-option/select-option.stories.js +3 -2
- package/lib/commonjs/stories/select-option/select-option.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +18 -2
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/options-activity/index.js +27 -0
- package/lib/commonjs/utils/options-activity/index.js.map +1 -0
- package/lib/commonjs/utils/text-limit/index.js +37 -0
- package/lib/commonjs/utils/text-limit/index.js.map +1 -0
- package/lib/module/components/activity-timeline/components/activite-row/index.js +123 -0
- package/lib/module/components/activity-timeline/components/activite-row/index.js.map +1 -0
- package/lib/module/components/activity-timeline/index.js +70 -0
- package/lib/module/components/activity-timeline/index.js.map +1 -0
- package/lib/module/components/activity-timeline/interface.js +2 -0
- package/lib/module/components/activity-timeline/interface.js.map +1 -0
- package/lib/module/components/activity-timeline/styles.js +78 -0
- package/lib/module/components/activity-timeline/styles.js.map +1 -0
- package/lib/module/components/input-text-counter/index.js +63 -0
- package/lib/module/components/input-text-counter/index.js.map +1 -0
- package/lib/module/components/input-text-counter/interface.d.js.map +1 -0
- package/lib/module/components/input-text-counter/styles.js +37 -0
- package/lib/module/components/input-text-counter/styles.js.map +1 -0
- package/lib/module/components/modal-create-activitie/index.js +192 -0
- package/lib/module/components/modal-create-activitie/index.js.map +1 -0
- package/lib/module/components/modal-create-activitie/interface.js +2 -0
- package/lib/module/components/modal-create-activitie/interface.js.map +1 -0
- package/lib/module/components/modal-create-activitie/styles.js +37 -0
- package/lib/module/components/modal-create-activitie/styles.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/index.js +192 -0
- package/lib/module/components/modal-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/interface.d.js +2 -0
- package/lib/module/components/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/styles.js +37 -0
- package/lib/module/components/modal-journey-rectification/styles.js.map +1 -0
- package/lib/module/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
- package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -0
- package/lib/module/components/{modal-activities → modals/modal-activities}/index.js +8 -8
- package/lib/module/components/modals/modal-activities/index.js.map +1 -0
- package/lib/module/components/modals/modal-activities/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activities/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/index.js +151 -0
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/module/components/{modal-change-activity → modals/modal-change-activity}/index.js +6 -6
- package/lib/module/components/modals/modal-change-activity/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/index.js +86 -0
- package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js +2 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js +28 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/module/components/selects/select-option/index.js +41 -42
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +7 -7
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/index.js +10 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activity-timeline/activity-timeline.stories.js +75 -0
- package/lib/module/stories/activity-timeline/activity-timeline.stories.js.map +1 -0
- package/lib/module/stories/input-text-counter/input-text-counter.stories.js +253 -0
- package/lib/module/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
- package/lib/module/stories/modal-activities/modal-activities.stories.js +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +193 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +78 -0
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +168 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/module/stories/select-option/select-option.stories.js +1 -1
- package/lib/module/stories/select-option/select-option.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +18 -2
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/options-activity/index.js +22 -0
- package/lib/module/utils/options-activity/index.js.map +1 -0
- package/lib/module/utils/text-limit/index.js +30 -0
- package/lib/module/utils/text-limit/index.js.map +1 -0
- package/lib/typescript/src/components/activity-timeline/components/activite-row/index.d.ts +10 -0
- package/lib/typescript/src/components/activity-timeline/index.d.ts +16 -0
- package/lib/typescript/src/components/activity-timeline/interface.d.ts +39 -0
- package/lib/typescript/src/components/activity-timeline/styles.d.ts +71 -0
- package/lib/typescript/src/components/input-text-counter/index.d.ts +33 -0
- package/lib/typescript/src/components/input-text-counter/styles.d.ts +34 -0
- package/lib/typescript/src/components/modal-create-activitie/index.d.ts +7 -0
- package/lib/typescript/src/components/modal-create-activitie/interface.d.ts +18 -0
- package/lib/typescript/src/components/modal-create-activitie/styles.d.ts +32 -0
- package/lib/typescript/src/components/modal-journey-rectification/index.d.ts +7 -0
- package/lib/typescript/src/components/modal-journey-rectification/styles.d.ts +32 -0
- package/lib/typescript/src/components/modals/modal-activity-reason/index.d.ts +7 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +12 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/interface.d.ts +21 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/styles.d.ts +24 -0
- package/lib/typescript/src/components/selects/select-option/index.d.ts +3 -6
- package/lib/typescript/src/index.d.ts +8 -3
- package/lib/typescript/src/stories/activity-timeline/activity-timeline.stories.d.ts +8 -0
- package/lib/typescript/src/stories/input-text-counter/input-text-counter.stories.d.ts +17 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +1 -1
- package/lib/typescript/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +15 -0
- package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +1 -1
- package/lib/typescript/src/stories/modal-create-activitie/modal-create-activitie.stories.d.ts +12 -0
- package/lib/typescript/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +34 -0
- package/lib/typescript/src/stories/select-option/select-option.stories.d.ts +1 -1
- package/lib/typescript/src/styles/global/theme-provider.d.ts +16 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +16 -0
- package/lib/typescript/src/utils/options-activity/index.d.ts +20 -0
- package/lib/typescript/src/utils/text-limit/index.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/activity-timeline/components/activite-row/index.tsx +133 -0
- package/src/components/activity-timeline/index.tsx +72 -0
- package/src/components/activity-timeline/interface.ts +53 -0
- package/src/components/activity-timeline/styles.ts +69 -0
- package/src/components/input-text-counter/index.tsx +64 -0
- package/src/components/input-text-counter/interface.d.ts +41 -0
- package/src/components/input-text-counter/styles.ts +38 -0
- package/src/components/modal-create-activitie/index.tsx +211 -0
- package/src/components/modal-create-activitie/interface.ts +22 -0
- package/src/components/modal-create-activitie/styles.ts +24 -0
- package/src/components/modal-journey-rectification/index.tsx +211 -0
- package/src/components/modal-journey-rectification/interface.d.ts +22 -0
- package/src/components/modal-journey-rectification/styles.ts +24 -0
- package/src/components/{modal-activities → modals/modal-activities}/data-activities/index.ts +65 -65
- package/src/components/{modal-activities → modals/modal-activities}/index.tsx +137 -137
- package/src/components/{modal-activities → modals/modal-activities}/interface.d.ts +32 -32
- package/src/components/modals/modal-activity-reason/index.tsx +162 -0
- package/src/components/modals/modal-activity-reason/interface.d.ts +10 -0
- package/src/components/{modal-change-activity → modals/modal-change-activity}/index.tsx +6 -6
- package/src/components/selects/select-date-and-hours/index.tsx +97 -0
- package/src/components/selects/select-date-and-hours/interface.ts +31 -0
- package/src/components/selects/select-date-and-hours/styles.ts +24 -0
- package/src/components/selects/select-option/index.tsx +50 -41
- package/src/components/step-indicator/index.tsx +235 -235
- package/src/index.ts +50 -45
- package/src/stories/activity-timeline/activity-timeline.stories.tsx +90 -0
- package/src/stories/input-text-counter/input-text-counter.stories.tsx +232 -0
- package/src/stories/modal-activities/modal-activities.stories.tsx +64 -64
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -0
- package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +49 -49
- package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +82 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +161 -0
- package/src/stories/select-option/select-option.stories.tsx +1 -1
- package/src/styles/theme/theme.ts +17 -0
- package/src/utils/options-activity/index.ts +14 -0
- package/src/utils/text-limit/index.ts +28 -0
- package/lib/commonjs/components/modal-activities/data-activities/index.js.map +0 -1
- package/lib/commonjs/components/modal-activities/index.js.map +0 -1
- package/lib/commonjs/components/modal-activities/interface.d.js.map +0 -1
- package/lib/commonjs/components/modal-change-activity/index.js.map +0 -1
- package/lib/module/components/modal-activities/data-activities/index.js.map +0 -1
- package/lib/module/components/modal-activities/index.js.map +0 -1
- package/lib/module/components/modal-activities/interface.d.js.map +0 -1
- package/lib/module/components/modal-change-activity/index.js.map +0 -1
- /package/lib/commonjs/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
- /package/lib/module/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
- /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/data-activities/index.d.ts +0 -0
- /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/index.d.ts +0 -0
- /package/lib/typescript/src/components/{modal-change-activity → modals/modal-change-activity}/index.d.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
declare const _default: React.ComponentType<import("react-native").TouchableOpacityProps & {
|
|
6
|
+
value: any;
|
|
7
|
+
icon: "CAMERA_PLUS" | "STEERING_WHEEL" | "CHECK_BOX_FILL" | "CHECK_BOX" | "CHECK_BOX_OUTLINE" | "MOON_STARS" | "CALL_BELL" | "STEERING_WHEEL_FILL" | "TROPHY" | "SHOPPING_CART" | "CREDIT_CARD" | "FILE_TEXT" | "TRUCK" | "PACKAGE_CHECK" | "PLUS" | "EYE_SLASH" | "EYE" | "CALENDAR" | "TIMER" | "GEAR" | "CURRENCY" | "GAUGE" | "GAS_PUMP" | "ARROW_LEFT" | "BLUETOOTH" | "BLUETOOTH_CONNECTED" | "LIST" | "WIFI_X" | "WIFI_HIGH" | "NOTE_PINCEL" | "CHECK_CIRCLE" | "ARROW_DROP_DOWN" | "CLOSED" | "LOADING" | "ACTIVITY" | "HISTORY" | "BELL" | "FILES" | "LIFEBUOY" | "RECUSED" | "EXCLAMATION_CIRCLE" | "X_CIRCLE" | "ELLIPSE" | "PENCIL" | "CAR" | "TRUCK_ACTIVITY" | "COFFEE" | "AGENT" | "CHECK_OUTLINE" | "BED" | "REFRESH_CCW_DOT" | "HOURGLASS" | "HOUSE" | "ISLAND" | "EXCLAMATION_TRIANGLE";
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
textColor?: string | undefined;
|
|
10
|
+
onPressConfirm: (value: any) => void;
|
|
11
|
+
} & React.RefAttributes<any>>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import type { TouchableOpacityProps } from "react-native";
|
|
5
|
+
import type { SVG_NAME } from "../../../common/icons-svg/constants";
|
|
6
|
+
declare type IActivityFieldsProps<T> = TouchableOpacityProps & {
|
|
7
|
+
/** Valor exibido e retornado no onPressConfirm */
|
|
8
|
+
value: T | null;
|
|
9
|
+
/** Ícone à esquerda (padrão: 'CALENDAR') */
|
|
10
|
+
icon: keyof typeof SVG_NAME;
|
|
11
|
+
/** Desabilita interação */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Cor do texto (opcional) */
|
|
14
|
+
textColor?: string;
|
|
15
|
+
/** Clique confirma e devolve o value */
|
|
16
|
+
onPressConfirm: (value: T) => void;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* EXPORTS
|
|
20
|
+
*/
|
|
21
|
+
export type { IActivityFieldsProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
declare const styles: {
|
|
5
|
+
field: {
|
|
6
|
+
width: "100%";
|
|
7
|
+
height: number;
|
|
8
|
+
borderRadius: number;
|
|
9
|
+
borderWidth: number;
|
|
10
|
+
paddingHorizontal: number;
|
|
11
|
+
justifyContent: "center";
|
|
12
|
+
marginTop: number;
|
|
13
|
+
marginBottom: number;
|
|
14
|
+
};
|
|
15
|
+
row: {
|
|
16
|
+
flexDirection: "row";
|
|
17
|
+
alignItems: "center";
|
|
18
|
+
justifyContent: "space-around";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* EXPORTS
|
|
23
|
+
*/
|
|
24
|
+
export { styles };
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { ISelectDropDownProps } from "./interface";
|
|
5
|
+
import type { ISelectDropDownProps } from "./interface";
|
|
6
6
|
/**
|
|
7
7
|
* Componente SelectOption para a interação da ui.
|
|
8
8
|
*/
|
|
9
|
-
declare const
|
|
10
|
-
|
|
11
|
-
* EXPORTS
|
|
12
|
-
*/
|
|
13
|
-
export { SelectOption };
|
|
9
|
+
declare const _default: React.ComponentType<ISelectDropDownProps & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|
|
@@ -8,7 +8,7 @@ export { Typography } from "./components/typography";
|
|
|
8
8
|
export { Input } from "./components/input";
|
|
9
9
|
export { CapturePhoto } from "./components/capture-photo";
|
|
10
10
|
export { CardHours } from "./components/card-hours";
|
|
11
|
-
export { SelectOption } from "./components/selects/select-option";
|
|
11
|
+
export { default as SelectOption } from "./components/selects/select-option";
|
|
12
12
|
export { Header } from "./components/header-profile";
|
|
13
13
|
export { ScheduledJourneyIndicators } from "./components/scheduled-journey-indicators";
|
|
14
14
|
export { CardScheduledJourney } from "./components/card-scheduled-journey";
|
|
@@ -31,9 +31,14 @@ export { HistoryDetails } from "./components/history-details";
|
|
|
31
31
|
export { ActivitiesDaily } from "./components/activities-daily";
|
|
32
32
|
export { ActivitiesProgress } from "./components/activities-progress";
|
|
33
33
|
export { ProfileMenuOption } from "./components/profile-menu-option";
|
|
34
|
-
export { ModalActivities } from "./components/modal-activities";
|
|
34
|
+
export { ModalActivities } from "./components/modals/modal-activities";
|
|
35
35
|
export { HistoryActivitiesCard } from "./components/history-activities-card";
|
|
36
|
-
export { ModalChangeActivity } from "./components/modal-change-activity";
|
|
36
|
+
export { ModalChangeActivity } from "./components/modals/modal-change-activity";
|
|
37
|
+
export { default as ModalActivityReason } from "./components/modals/modal-activity-reason";
|
|
38
|
+
export { default as InputTextCounter } from "./components/input-text-counter";
|
|
39
|
+
export { default as ModalCreteActivitie } from "./components/modal-create-activitie";
|
|
40
|
+
export { default as ModalJourneyRectification } from "./components/modal-journey-rectification";
|
|
41
|
+
export { default as ActivityTimeline } from "./components/activity-timeline";
|
|
37
42
|
export { multiply } from "./utils/mutiply";
|
|
38
43
|
export { formatDate, getLastSevenDays, formHoursMinute } from "./utils/format-data";
|
|
39
44
|
export { theme } from "./styles/theme/theme";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import ActivityTimeline from "../../components/activity-timeline";
|
|
3
|
+
declare const meta: Meta<typeof ActivityTimeline>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Padrao: Story;
|
|
7
|
+
export declare const SemBadge: Story;
|
|
8
|
+
export declare const ListaVazia: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import InputTextCounter from "../../components/input-text-counter";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
/**
|
|
4
|
+
* META
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof InputTextCounter>;
|
|
7
|
+
export default meta;
|
|
8
|
+
declare type Story = StoryObj<typeof meta>;
|
|
9
|
+
/**
|
|
10
|
+
* STORIES
|
|
11
|
+
*/
|
|
12
|
+
export declare const InputDefault: Story;
|
|
13
|
+
export declare const ComValorInicial: Story;
|
|
14
|
+
export declare const PertoDoLimite: Story;
|
|
15
|
+
export declare const Desabilitado: Story;
|
|
16
|
+
export declare const ControladoInterativo: Story;
|
|
17
|
+
export declare const PlaceholderOrientativo: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoryObj, Meta } from "@storybook/react";
|
|
2
|
-
import { ModalActivities } from "../../components/modal-activities";
|
|
2
|
+
import { ModalActivities } from "../../components/modals/modal-activities";
|
|
3
3
|
declare const meta: Meta<typeof ModalActivities>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof meta>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import ModalActivityReason from "../../components/modals/modal-activity-reason";
|
|
3
|
+
/**
|
|
4
|
+
* META
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof ModalActivityReason>;
|
|
7
|
+
export default meta;
|
|
8
|
+
declare type Story = StoryObj<typeof meta>;
|
|
9
|
+
/**
|
|
10
|
+
* STORIES
|
|
11
|
+
*/
|
|
12
|
+
export declare const AbertoBasico: Story;
|
|
13
|
+
export declare const Fechado: Story;
|
|
14
|
+
export declare const TituloPersonalizado: Story;
|
|
15
|
+
export declare const ControladoInterativo: Story;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
5
|
-
import { ModalChangeActivity } from "../../components/modal-change-activity";
|
|
5
|
+
import { ModalChangeActivity } from "../../components/modals/modal-change-activity";
|
|
6
6
|
declare const meta: Meta<typeof ModalChangeActivity>;
|
|
7
7
|
export default meta;
|
|
8
8
|
declare type Story = StoryObj<typeof meta>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import ModalCreteActivitie from "../../components/modal-create-activitie";
|
|
3
|
+
declare const meta: Meta<typeof ModalCreteActivitie>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof ModalCreteActivitie>;
|
|
6
|
+
/**
|
|
7
|
+
* Apenas controla via Controls (visible true/false no painel do Storybook).
|
|
8
|
+
* Evita Template com "args: any" e mantém tipagem estrita.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Playground: Story;
|
|
11
|
+
export declare const Fechado: Story;
|
|
12
|
+
export declare const Aberto: Story;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS (Storybook)
|
|
3
|
+
*/
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
5
|
+
/**
|
|
6
|
+
* IMPORTS (Componente)
|
|
7
|
+
* Ajuste o caminho conforme sua estrutura (ex.: "../index" ou "./index").
|
|
8
|
+
*/
|
|
9
|
+
import ModalJourneyRectification from "../../components/modal-create-activitie";
|
|
10
|
+
/**
|
|
11
|
+
* META
|
|
12
|
+
*/
|
|
13
|
+
declare const meta: Meta<typeof ModalJourneyRectification>;
|
|
14
|
+
export default meta;
|
|
15
|
+
/**
|
|
16
|
+
* STORIES
|
|
17
|
+
*/
|
|
18
|
+
declare type Story = StoryObj<typeof ModalJourneyRectification>;
|
|
19
|
+
/**
|
|
20
|
+
* Estado padrão (fechado).
|
|
21
|
+
*/
|
|
22
|
+
export declare const Default: Story;
|
|
23
|
+
/**
|
|
24
|
+
* Modal visível para inspeção visual.
|
|
25
|
+
*/
|
|
26
|
+
export declare const Opened: Story;
|
|
27
|
+
/**
|
|
28
|
+
* Título customizado (ex.: para variações de copy).
|
|
29
|
+
*/
|
|
30
|
+
export declare const WithCustomTitle: Story;
|
|
31
|
+
/**
|
|
32
|
+
* Playground — ajuste livre via Controls.
|
|
33
|
+
*/
|
|
34
|
+
export declare const Playground: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
-
import
|
|
2
|
+
import SelectOption from "../../components/selects/select-option";
|
|
3
3
|
declare const meta: Meta<typeof SelectOption>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof meta>;
|
|
@@ -150,4 +150,20 @@ export declare const useTheme: () => {
|
|
|
150
150
|
medium: number;
|
|
151
151
|
strong: number;
|
|
152
152
|
};
|
|
153
|
+
lineHeight: {
|
|
154
|
+
"2xs": number;
|
|
155
|
+
xs: number;
|
|
156
|
+
sm: number;
|
|
157
|
+
md: number;
|
|
158
|
+
lg: number;
|
|
159
|
+
xl: number;
|
|
160
|
+
"2xl": number;
|
|
161
|
+
"3xl": number;
|
|
162
|
+
"4xl": number;
|
|
163
|
+
"5xl": number;
|
|
164
|
+
"6xl": number;
|
|
165
|
+
"7xl": number;
|
|
166
|
+
"8xl": number;
|
|
167
|
+
"9xl": number;
|
|
168
|
+
};
|
|
153
169
|
};
|
|
@@ -152,4 +152,20 @@ export declare const theme: {
|
|
|
152
152
|
medium: number;
|
|
153
153
|
strong: number;
|
|
154
154
|
};
|
|
155
|
+
lineHeight: {
|
|
156
|
+
"2xs": number;
|
|
157
|
+
xs: number;
|
|
158
|
+
sm: number;
|
|
159
|
+
md: number;
|
|
160
|
+
lg: number;
|
|
161
|
+
xl: number;
|
|
162
|
+
"2xl": number;
|
|
163
|
+
"3xl": number;
|
|
164
|
+
"4xl": number;
|
|
165
|
+
"5xl": number;
|
|
166
|
+
"6xl": number;
|
|
167
|
+
"7xl": number;
|
|
168
|
+
"8xl": number;
|
|
169
|
+
"9xl": number;
|
|
170
|
+
};
|
|
155
171
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
declare const OPTIONS: readonly [{
|
|
5
|
+
readonly label: "Disp com veículo parado";
|
|
6
|
+
readonly value: "option1";
|
|
7
|
+
}, {
|
|
8
|
+
readonly label: "Operação com veículo";
|
|
9
|
+
readonly value: "option2";
|
|
10
|
+
}, {
|
|
11
|
+
readonly label: "Em carga";
|
|
12
|
+
readonly value: "option3";
|
|
13
|
+
}, {
|
|
14
|
+
readonly label: "Em descarga";
|
|
15
|
+
readonly value: "option4";
|
|
16
|
+
}];
|
|
17
|
+
/**
|
|
18
|
+
* EXPORTS
|
|
19
|
+
*/
|
|
20
|
+
export { OPTIONS };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
interface ILimitProps {
|
|
5
|
+
text: string;
|
|
6
|
+
limit: number;
|
|
7
|
+
}
|
|
8
|
+
declare const handleLimitTextdisplayByAmount: ({ text, limit }: ILimitProps) => string;
|
|
9
|
+
declare const handleLimitTextDate: ({ text, limit }: ILimitProps) => string;
|
|
10
|
+
/**
|
|
11
|
+
* EXPORTS
|
|
12
|
+
*/
|
|
13
|
+
export { handleLimitTextdisplayByAmount, handleLimitTextDate };
|
package/package.json
CHANGED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React, { forwardRef, useCallback } from "react";
|
|
5
|
+
import { TouchableOpacity, View } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Typography } from "../../../../components/typography";
|
|
9
|
+
|
|
10
|
+
// commons / svg
|
|
11
|
+
import { Icons } from "../../../../common/icons-svg";
|
|
12
|
+
|
|
13
|
+
// typings
|
|
14
|
+
import type { IActivitieRowProps } from "../../interface";
|
|
15
|
+
import { asBaseComponent } from "../../../../@types/as-base-component";
|
|
16
|
+
|
|
17
|
+
// styles
|
|
18
|
+
import { theme } from "../../../../styles/theme/theme";
|
|
19
|
+
import { styles } from "../../styles";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Componente ActivityRows para a interação da ui.
|
|
23
|
+
*/
|
|
24
|
+
const ActivityRows = forwardRef<any, IActivitieRowProps<any>>(
|
|
25
|
+
({ index, activities, items, onAdd, onEdit, onDelete }, ref): React.ReactElement => {
|
|
26
|
+
const handleAdd = useCallback(() => onAdd(activities), [onAdd, activities]);
|
|
27
|
+
const handleEdit = useCallback(() => onEdit(activities), [onEdit, activities]);
|
|
28
|
+
const handleDelete = useCallback(() => onDelete(activities), [onDelete, activities]);
|
|
29
|
+
|
|
30
|
+
const isInvalid = !!activities.invalid;
|
|
31
|
+
|
|
32
|
+
const dateText =
|
|
33
|
+
activities.date instanceof Date
|
|
34
|
+
? `${String(activities.date.getDate()).padStart(2, "0")}/${String(
|
|
35
|
+
activities.date.getMonth() + 1
|
|
36
|
+
).padStart(2, "0")}/${activities.date.getFullYear()}`
|
|
37
|
+
: String(activities.date ?? "");
|
|
38
|
+
|
|
39
|
+
const timeText =
|
|
40
|
+
activities.time instanceof Date
|
|
41
|
+
? `${String(activities.time.getHours()).padStart(2, "0")}:${String(
|
|
42
|
+
activities.time.getMinutes()
|
|
43
|
+
).padStart(2, "0")}`
|
|
44
|
+
: String(activities.time ?? "");
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<View ref={ref} style={styles.row}>
|
|
48
|
+
<View style={styles.badge}>
|
|
49
|
+
<Typography
|
|
50
|
+
text={String(index + 1)}
|
|
51
|
+
color={theme.colors.neutral[25]}
|
|
52
|
+
size={theme.fontSizes.sm}
|
|
53
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
54
|
+
/>
|
|
55
|
+
</View>
|
|
56
|
+
|
|
57
|
+
{Boolean(index !== items?.length - 1) && (
|
|
58
|
+
<View
|
|
59
|
+
style={{
|
|
60
|
+
width: 2,
|
|
61
|
+
height: 76,
|
|
62
|
+
backgroundColor: theme.colors.blue[500],
|
|
63
|
+
position: "absolute",
|
|
64
|
+
left: 21,
|
|
65
|
+
top: 60,
|
|
66
|
+
}}
|
|
67
|
+
/>
|
|
68
|
+
)}
|
|
69
|
+
|
|
70
|
+
<View style={styles.card}>
|
|
71
|
+
<Typography
|
|
72
|
+
numberOfLines={1}
|
|
73
|
+
style={styles.title}
|
|
74
|
+
text={activities.title ?? "Não informada"}
|
|
75
|
+
color={isInvalid ? theme.colors.red[900] : theme.colors.blue[500]}
|
|
76
|
+
size={14}
|
|
77
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
78
|
+
lineHeight={34}
|
|
79
|
+
/>
|
|
80
|
+
|
|
81
|
+
<View style={[styles.pill, isInvalid ? styles.pillInvalid : styles.pillOk]}>
|
|
82
|
+
<Icons
|
|
83
|
+
icon="CALENDAR"
|
|
84
|
+
size={18}
|
|
85
|
+
color={isInvalid ? theme.colors.red[900] : theme.colors.blue[500]}
|
|
86
|
+
/>
|
|
87
|
+
<Typography
|
|
88
|
+
text={dateText}
|
|
89
|
+
color={isInvalid ? theme.colors.red[800] : theme.colors.blue[400]}
|
|
90
|
+
size={theme.fontSizes.xs}
|
|
91
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
92
|
+
/>
|
|
93
|
+
<Typography
|
|
94
|
+
text="|"
|
|
95
|
+
color={isInvalid ? theme.colors.red[800] : theme.colors.blue[400]}
|
|
96
|
+
size={theme.fontSizes.sm}
|
|
97
|
+
style={styles.sep}
|
|
98
|
+
/>
|
|
99
|
+
<Typography
|
|
100
|
+
text={timeText}
|
|
101
|
+
color={isInvalid ? theme.colors.red[800] : theme.colors.blue[500]}
|
|
102
|
+
size={theme.fontSizes.xs}
|
|
103
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
104
|
+
/>
|
|
105
|
+
</View>
|
|
106
|
+
</View>
|
|
107
|
+
|
|
108
|
+
<View style={styles.actions}>
|
|
109
|
+
<TouchableOpacity style={styles.iconButton} onPress={handleEdit} testID="edit-activity">
|
|
110
|
+
<Icons icon="NOTE_PINCEL" size={18} color={theme.colors.blue[350]} />
|
|
111
|
+
</TouchableOpacity>
|
|
112
|
+
|
|
113
|
+
<TouchableOpacity style={styles.iconButton} onPress={handleAdd} testID="add-after-activity">
|
|
114
|
+
{/* Não há PLUS_CONTAINER, usando PLUS como alternativa visual */}
|
|
115
|
+
<Icons icon="PLUS" size={18} color={theme.colors.green[500]} />
|
|
116
|
+
</TouchableOpacity>
|
|
117
|
+
|
|
118
|
+
<TouchableOpacity style={styles.iconButton} onPress={handleDelete} testID="delete-activity">
|
|
119
|
+
{/* Não há TRASH, usando X_CIRCLE como alternativa de remover */}
|
|
120
|
+
<Icons icon="X_CIRCLE" size={18} color={theme.colors.red[900]} />
|
|
121
|
+
</TouchableOpacity>
|
|
122
|
+
</View>
|
|
123
|
+
</View>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
ActivityRows.displayName = "ActivityRows";
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* EXPORTS
|
|
132
|
+
*/
|
|
133
|
+
export default asBaseComponent(ActivityRows);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React, { forwardRef, useCallback } from "react";
|
|
5
|
+
import { View, FlatList } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import ActivityRows from "./components/activite-row";
|
|
9
|
+
|
|
10
|
+
// typings
|
|
11
|
+
import type { ActivityItemModel, ActivityTimelineProps } from "./interface";
|
|
12
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
13
|
+
|
|
14
|
+
// styles
|
|
15
|
+
import { styles, ROW_HEIGHT } from "./styles";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Componente ActivityTimeline para a interação da ui.
|
|
19
|
+
*/
|
|
20
|
+
const ActivityTimeline = forwardRef<any, ActivityTimelineProps<any>>(
|
|
21
|
+
(
|
|
22
|
+
{ data, onAdd, onEdit, onDelete, showIndexBadge = true, testID = "activity-timeline" },
|
|
23
|
+
ref
|
|
24
|
+
): React.ReactElement => {
|
|
25
|
+
const keyExtractor = useCallback((it: ActivityItemModel) => String(it.id), []);
|
|
26
|
+
|
|
27
|
+
const renderItem = useCallback(
|
|
28
|
+
({ item, index }: { item: ActivityItemModel; index: number }) => (
|
|
29
|
+
<ActivityRows
|
|
30
|
+
index={index}
|
|
31
|
+
items={data}
|
|
32
|
+
activities={item}
|
|
33
|
+
onAdd={onAdd}
|
|
34
|
+
onEdit={onEdit}
|
|
35
|
+
onDelete={onDelete}
|
|
36
|
+
showIndexBadge={showIndexBadge}
|
|
37
|
+
/>
|
|
38
|
+
),
|
|
39
|
+
[onAdd, onEdit, onDelete, showIndexBadge]
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const getItemLayout = useCallback(
|
|
43
|
+
(_: any, index: number) => ({
|
|
44
|
+
length: ROW_HEIGHT,
|
|
45
|
+
offset: ROW_HEIGHT * index,
|
|
46
|
+
index,
|
|
47
|
+
}),
|
|
48
|
+
[]
|
|
49
|
+
);
|
|
50
|
+
return (
|
|
51
|
+
<FlatList
|
|
52
|
+
ref={ref}
|
|
53
|
+
testID={testID}
|
|
54
|
+
data={data}
|
|
55
|
+
keyExtractor={keyExtractor}
|
|
56
|
+
renderItem={renderItem}
|
|
57
|
+
contentContainerStyle={styles.listContainer}
|
|
58
|
+
getItemLayout={getItemLayout}
|
|
59
|
+
initialNumToRender={10}
|
|
60
|
+
maxToRenderPerBatch={10}
|
|
61
|
+
removeClippedSubviews
|
|
62
|
+
windowSize={7}
|
|
63
|
+
ListEmptyComponent={<View style={{ height: 8 }} />}
|
|
64
|
+
/>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* EXPORTS
|
|
71
|
+
*/
|
|
72
|
+
export default asBaseComponent(ActivityTimeline);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import type { TouchableOpacityProps } from "react-native";
|
|
5
|
+
import type { SVG_NAME } from "../../common/icons-svg/constants";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* TYPES
|
|
9
|
+
*/
|
|
10
|
+
type ActivityId = string | number;
|
|
11
|
+
|
|
12
|
+
type ActivityItemModel = {
|
|
13
|
+
id: ActivityId;
|
|
14
|
+
title: string; // "Operação com veículo", "Refeição", ...
|
|
15
|
+
date: Date | string; // pode vir Date ou string já formatada
|
|
16
|
+
time: Date | string; // idem
|
|
17
|
+
invalid?: boolean; // destaca em vermelho
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
type IconName = keyof typeof SVG_NAME;
|
|
21
|
+
|
|
22
|
+
type OnActivity = (item: ActivityItemModel) => void;
|
|
23
|
+
|
|
24
|
+
type ActivityTimelineProps<T> = TouchableOpacityProps & {
|
|
25
|
+
data: T[];
|
|
26
|
+
onAdd: OnActivity; // add novo após o item
|
|
27
|
+
onEdit: OnActivity;
|
|
28
|
+
onDelete: OnActivity;
|
|
29
|
+
showIndexBadge?: boolean; // mostra o “3/4/5”
|
|
30
|
+
testID?: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
type IActivitieRowProps<T> = {
|
|
34
|
+
index: number;
|
|
35
|
+
activities: ActivityItemModel;
|
|
36
|
+
items: T[];
|
|
37
|
+
onAdd: OnActivity;
|
|
38
|
+
onEdit: OnActivity;
|
|
39
|
+
onDelete: OnActivity;
|
|
40
|
+
showIndexBadge?: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* EXPORTS
|
|
45
|
+
*/
|
|
46
|
+
export type {
|
|
47
|
+
ActivityId,
|
|
48
|
+
ActivityItemModel,
|
|
49
|
+
IconName,
|
|
50
|
+
OnActivity,
|
|
51
|
+
ActivityTimelineProps,
|
|
52
|
+
IActivitieRowProps,
|
|
53
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
import { theme } from "../../styles/theme/theme";
|
|
6
|
+
|
|
7
|
+
export const ROW_HEIGHT = 72;
|
|
8
|
+
|
|
9
|
+
const styles = StyleSheet.create({
|
|
10
|
+
listContainer: { paddingVertical: 8 },
|
|
11
|
+
row: {
|
|
12
|
+
width: "100%",
|
|
13
|
+
minHeight: ROW_HEIGHT,
|
|
14
|
+
paddingVertical: 8,
|
|
15
|
+
paddingHorizontal: 8,
|
|
16
|
+
flexDirection: "row",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
justifyContent: "center",
|
|
19
|
+
gap: 6,
|
|
20
|
+
},
|
|
21
|
+
badge: {
|
|
22
|
+
width: 28,
|
|
23
|
+
height: 28,
|
|
24
|
+
borderRadius: 14,
|
|
25
|
+
backgroundColor: theme.colors.blue[500],
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
},
|
|
29
|
+
card: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
borderRadius: 10,
|
|
32
|
+
},
|
|
33
|
+
title: { marginBottom: 6 },
|
|
34
|
+
pill: {
|
|
35
|
+
flexDirection: "row",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
borderWidth: 1,
|
|
38
|
+
borderRadius: 10,
|
|
39
|
+
paddingHorizontal: 10,
|
|
40
|
+
paddingVertical: 8,
|
|
41
|
+
gap: 4,
|
|
42
|
+
},
|
|
43
|
+
pillOk: {
|
|
44
|
+
backgroundColor: "#F3F3F5",
|
|
45
|
+
borderColor: "#C4D4E5",
|
|
46
|
+
},
|
|
47
|
+
pillInvalid: {
|
|
48
|
+
backgroundColor: "#FDE7E7",
|
|
49
|
+
borderColor: theme.colors.red[900],
|
|
50
|
+
},
|
|
51
|
+
sep: { marginHorizontal: 8, opacity: 0.5 },
|
|
52
|
+
actions: { flexDirection: "row", gap: 8 },
|
|
53
|
+
iconButton: {
|
|
54
|
+
width: 36,
|
|
55
|
+
height: 36,
|
|
56
|
+
borderRadius: 8,
|
|
57
|
+
backgroundColor: theme.colors.neutral[25],
|
|
58
|
+
borderWidth: 1,
|
|
59
|
+
borderColor: theme.colors.neutral[200],
|
|
60
|
+
alignItems: "center",
|
|
61
|
+
justifyContent: "center",
|
|
62
|
+
marginTop: 36,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* EXPORTS
|
|
68
|
+
*/
|
|
69
|
+
export { styles };
|