jornada-ui 0.4.14 → 0.4.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/constants/index.js +2 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/download/index.js +53 -0
- package/lib/commonjs/common/icons-svg/download/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +7 -0
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- 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/inputs/input-date-time/index.js +11 -9
- package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -1
- package/lib/commonjs/components/inputs/input-date-time/styles.js +6 -3
- package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -1
- package/lib/commonjs/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.js +71 -65
- package/lib/commonjs/components/modals/modal-edite-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-edite-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/notification-card/index.js +142 -0
- package/lib/commonjs/components/notification-card/index.js.map +1 -0
- package/lib/commonjs/components/notification-card/interface.js +6 -0
- package/lib/commonjs/components/notification-card/interface.js.map +1 -0
- package/lib/commonjs/components/notification-details-card/index.js +181 -0
- package/lib/commonjs/components/notification-details-card/index.js.map +1 -0
- package/lib/commonjs/components/notification-details-card/interface.js +6 -0
- package/lib/commonjs/components/notification-details-card/interface.js.map +1 -0
- package/lib/commonjs/components/user-journey-work-card/index.js +44 -4
- package/lib/commonjs/components/user-journey-work-card/index.js.map +1 -1
- package/lib/commonjs/index.js +19 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/button/button.stories.js +0 -2
- package/lib/commonjs/stories/button/button.stories.js.map +1 -1
- package/lib/commonjs/stories/capture-photo/capture-photo.stories.js +0 -1
- package/lib/commonjs/stories/capture-photo/capture-photo.stories.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/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +3 -3
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
- package/lib/commonjs/stories/notification-card/notification-card.stories.js +100 -0
- package/lib/commonjs/stories/notification-card/notification-card.stories.js.map +1 -0
- package/lib/commonjs/stories/notification-details-card/notification-details-card.stories.js +112 -0
- package/lib/commonjs/stories/notification-details-card/notification-details-card.stories.js.map +1 -0
- package/lib/commonjs/stories/user-journey-work-card/user-journey-work-card.stories.js +12 -4
- package/lib/commonjs/stories/user-journey-work-card/user-journey-work-card.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +2 -1
- package/lib/commonjs/styles/theme/theme.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/download/index.js +47 -0
- package/lib/module/common/icons-svg/download/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +7 -0
- package/lib/module/common/icons-svg/index.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/inputs/input-date-time/index.js +11 -9
- package/lib/module/components/inputs/input-date-time/index.js.map +1 -1
- package/lib/module/components/inputs/input-date-time/styles.js +6 -3
- package/lib/module/components/inputs/input-date-time/styles.js.map +1 -1
- package/lib/module/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.js +69 -63
- package/lib/module/components/modals/modal-edite-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modals/modal-edite-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/notification-card/index.js +135 -0
- package/lib/module/components/notification-card/index.js.map +1 -0
- package/lib/module/components/notification-card/interface.js +4 -0
- package/lib/module/components/notification-card/interface.js.map +1 -0
- package/lib/module/components/notification-details-card/index.js +183 -0
- package/lib/module/components/notification-details-card/index.js.map +1 -0
- package/lib/module/components/notification-details-card/interface.js +4 -0
- package/lib/module/components/notification-details-card/interface.js.map +1 -0
- package/lib/module/components/user-journey-work-card/index.js +44 -4
- package/lib/module/components/user-journey-work-card/index.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/button/button.stories.js +0 -1
- package/lib/module/stories/button/button.stories.js.map +1 -1
- package/lib/module/stories/capture-photo/capture-photo.stories.js +0 -1
- package/lib/module/stories/capture-photo/capture-photo.stories.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/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +3 -3
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
- package/lib/module/stories/notification-card/notification-card.stories.js +95 -0
- package/lib/module/stories/notification-card/notification-card.stories.js.map +1 -0
- package/lib/module/stories/notification-details-card/notification-details-card.stories.js +107 -0
- package/lib/module/stories/notification-details-card/notification-details-card.stories.js.map +1 -0
- package/lib/module/stories/user-journey-work-card/user-journey-work-card.stories.js +12 -4
- package/lib/module/stories/user-journey-work-card/user-journey-work-card.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +2 -1
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/download/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/download/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-report/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +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/inputs/input-date-time/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/modals/modal-edite-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-card/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification-card/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-card/interface.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/notification-card/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/travel-history/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/user-journey-work-card/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/user-journey-work-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -1
- package/lib/typescript/commonjs/src/index.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/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +1 -1
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/notification-card/notification-card.stories.d.ts +14 -0
- package/lib/typescript/commonjs/src/stories/notification-card/notification-card.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/notification-details-card/notification-details-card.stories.d.ts +16 -0
- package/lib/typescript/commonjs/src/stories/notification-details-card/notification-details-card.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/user-journey-work-card/user-journey-work-card.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/download/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/download/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-report/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +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/inputs/input-date-time/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +2 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.d.ts +3 -0
- package/lib/typescript/module/src/components/modals/modal-edite-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-card/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification-card/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-card/interface.d.ts +17 -0
- package/lib/typescript/module/src/components/notification-card/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-details-card/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification-details-card/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-details-card/interface.d.ts +15 -0
- package/lib/typescript/module/src/components/notification-details-card/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +1 -1
- package/lib/typescript/module/src/components/travel-history/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/user-journey-work-card/index.d.ts +2 -0
- package/lib/typescript/module/src/components/user-journey-work-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +1 -1
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/notification-card/notification-card.stories.d.ts +14 -0
- package/lib/typescript/module/src/stories/notification-card/notification-card.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/notification-details-card/notification-details-card.stories.d.ts +16 -0
- package/lib/typescript/module/src/stories/notification-details-card/notification-details-card.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/user-journey-work-card/user-journey-work-card.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/common/icons-svg/constants/index.ts +1 -0
- package/src/common/icons-svg/download/index.tsx +52 -0
- package/src/common/icons-svg/index.tsx +4 -0
- package/src/components/activities-progress/index.tsx +172 -172
- package/src/components/card-report/interface.d.ts +1 -1
- package/src/components/card-work-session/index.tsx +190 -172
- package/src/components/card-work-session/interface.d.ts +151 -150
- package/src/components/inputs/input-date-time/index.tsx +13 -12
- package/src/components/inputs/input-date-time/styles.ts +64 -63
- package/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.tsx +78 -67
- package/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.ts +10 -10
- package/src/components/monthly-summary-table/interface.d.ts +1 -1
- package/src/components/notification-card/index.tsx +123 -0
- package/src/components/notification-card/interface.ts +18 -0
- package/src/components/notification-details-card/index.tsx +180 -0
- package/src/components/notification-details-card/interface.ts +16 -0
- package/src/components/travel-history/interface.d.ts +1 -1
- package/src/components/user-journey-work-card/index.tsx +28 -1
- package/src/components/user-journey-work-card/interface.d.ts +149 -145
- package/src/index.tsx +3 -1
- package/src/stories/button/button.stories.tsx +1 -1
- package/src/stories/capture-photo/capture-photo.stories.tsx +1 -1
- package/src/stories/card-work-session/card-work-session.stories.tsx +106 -53
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -60
- package/src/stories/notification-card/notification-card.stories.tsx +93 -0
- package/src/stories/notification-details-card/notification-details-card.stories.tsx +109 -0
- package/src/stories/user-journey-work-card/user-journey-work-card.stories.tsx +71 -63
- package/src/styles/theme/theme.ts +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +0 -1
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +0 -1
- package/lib/module/components/modals/modal-journey-rectification/index.js.map +0 -1
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +0 -1
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +0 -1
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +0 -1
- /package/lib/commonjs/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.js +0 -0
- /package/lib/module/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.js +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import NotificationCard from "../../components/notification-card";
|
|
9
|
+
|
|
10
|
+
// typings
|
|
11
|
+
import type { INotificationCardProps } from "../../components/notification-card/interface";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* META
|
|
15
|
+
*/
|
|
16
|
+
const meta: Meta<typeof NotificationCard> = {
|
|
17
|
+
title: "Componente/NotificationCard",
|
|
18
|
+
component: NotificationCard as React.FC<INotificationCardProps>,
|
|
19
|
+
args: {
|
|
20
|
+
variant: "read",
|
|
21
|
+
title: "Lorem Ipsum",
|
|
22
|
+
description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry...",
|
|
23
|
+
},
|
|
24
|
+
argTypes: {
|
|
25
|
+
variant: {
|
|
26
|
+
control: { type: "select" },
|
|
27
|
+
description: "Define o estilo do card.",
|
|
28
|
+
options: ["success", "warning"],
|
|
29
|
+
},
|
|
30
|
+
title: {
|
|
31
|
+
control: { type: "text" },
|
|
32
|
+
description: "Título da notificação.",
|
|
33
|
+
},
|
|
34
|
+
description: {
|
|
35
|
+
control: { type: "text" },
|
|
36
|
+
description: "Descrição da notificação.",
|
|
37
|
+
},
|
|
38
|
+
actionLabel: {
|
|
39
|
+
control: { type: "text" },
|
|
40
|
+
description: "Texto do botão de ação opcional.",
|
|
41
|
+
},
|
|
42
|
+
onPressAction: {
|
|
43
|
+
action: "onPressAction",
|
|
44
|
+
description: "Função chamada ao clicar no botão de ação.",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
parameters: {
|
|
48
|
+
docs: {
|
|
49
|
+
description: {
|
|
50
|
+
component: `
|
|
51
|
+
### NotificationCard
|
|
52
|
+
|
|
53
|
+
Componente de **notificação** para exibir informações ao usuário.
|
|
54
|
+
|
|
55
|
+
- \`variant\`: define o tipo de card (\`success\` | \`warning\`)
|
|
56
|
+
- \`title\`: define o título da notificação
|
|
57
|
+
- \`description\`: define a descrição da notificação
|
|
58
|
+
- \`actionLabel\`: texto opcional do botão de ação
|
|
59
|
+
- \`onPressAction\`: callback executado ao clicar na ação
|
|
60
|
+
|
|
61
|
+
> Use este componente quando precisar exibir uma notificação com ou sem ação para o usuário.
|
|
62
|
+
`,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export default meta;
|
|
69
|
+
|
|
70
|
+
type Story = StoryObj<typeof NotificationCard>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* STORIES
|
|
74
|
+
*/
|
|
75
|
+
export const NotificationCardSuccess: Story = {
|
|
76
|
+
name: "notification-card-success",
|
|
77
|
+
args: {
|
|
78
|
+
variant: "read",
|
|
79
|
+
title: "Lorem Ipsum",
|
|
80
|
+
description:
|
|
81
|
+
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. It has been used as a placeholder text since the 1500s...",
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const NotificationCardWarning: Story = {
|
|
86
|
+
name: "notification-card-warning",
|
|
87
|
+
args: {
|
|
88
|
+
variant: "unread",
|
|
89
|
+
title: "Lorem Ipsum",
|
|
90
|
+
description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry...",
|
|
91
|
+
actionLabel: "Lorem Ipsum",
|
|
92
|
+
},
|
|
93
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import NotificationDetailCard from "../../components/notification-details-card";
|
|
9
|
+
|
|
10
|
+
// typings
|
|
11
|
+
import type { INotificationDetailCardProps } from "../../components/notification-details-card/interface";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* META
|
|
15
|
+
*/
|
|
16
|
+
const meta: Meta<typeof NotificationDetailCard> = {
|
|
17
|
+
title: "Componente/NotificationDetailCard",
|
|
18
|
+
component: NotificationDetailCard as React.FC<INotificationDetailCardProps>,
|
|
19
|
+
args: {
|
|
20
|
+
title: "Lorem Ipsum",
|
|
21
|
+
description:
|
|
22
|
+
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. " +
|
|
23
|
+
"Lorem Ipsum has been the industry's standard dummy text ever since the 1500s...",
|
|
24
|
+
},
|
|
25
|
+
argTypes: {
|
|
26
|
+
title: {
|
|
27
|
+
control: { type: "text" },
|
|
28
|
+
description: "Título da notificação.",
|
|
29
|
+
},
|
|
30
|
+
description: {
|
|
31
|
+
control: { type: "text" },
|
|
32
|
+
description: "Descrição detalhada da notificação.",
|
|
33
|
+
},
|
|
34
|
+
fileUrl: {
|
|
35
|
+
control: { type: "text" },
|
|
36
|
+
description: "URL de um arquivo anexo (imagem, PDF, CSV, etc.).",
|
|
37
|
+
},
|
|
38
|
+
fileType: {
|
|
39
|
+
control: { type: "select" },
|
|
40
|
+
options: ["image", "pdf", "csv", "other"],
|
|
41
|
+
description: "Tipo do arquivo anexo.",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
parameters: {
|
|
45
|
+
docs: {
|
|
46
|
+
description: {
|
|
47
|
+
component: `
|
|
48
|
+
### NotificationDetailCard
|
|
49
|
+
|
|
50
|
+
Componente de **detalhamento de notificações**, podendo conter apenas texto ou também anexos (imagem, PDF, CSV, etc.).
|
|
51
|
+
|
|
52
|
+
- \`title\`: título da notificação
|
|
53
|
+
- \`description\`: descrição detalhada
|
|
54
|
+
- \`fileUrl\`: URL do arquivo (opcional)
|
|
55
|
+
- \`fileType\`: tipo do arquivo (image, pdf, csv, other)
|
|
56
|
+
|
|
57
|
+
> Use este componente para exibir o detalhamento completo de uma notificação.
|
|
58
|
+
`,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export default meta;
|
|
65
|
+
|
|
66
|
+
type Story = StoryObj<typeof NotificationDetailCard>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* STORIES
|
|
70
|
+
*/
|
|
71
|
+
export const SomenteTexto: Story = {
|
|
72
|
+
name: "Somente Texto",
|
|
73
|
+
args: {
|
|
74
|
+
title: "Lorem Ipsum",
|
|
75
|
+
description:
|
|
76
|
+
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. " +
|
|
77
|
+
"It has survived not only five centuries, but also the leap into electronic typesetting.",
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export const TextoComImagem: Story = {
|
|
82
|
+
name: "Texto + Imagem",
|
|
83
|
+
args: {
|
|
84
|
+
title: "Atenção!",
|
|
85
|
+
description: "Ponte interditada para caminhões. Apenas veículos leves podem transitar.",
|
|
86
|
+
fileUrl: "https://placehold.co/300x300", // aqui você troca pelo real
|
|
87
|
+
fileType: "image",
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const TextoComPdf: Story = {
|
|
92
|
+
name: "Texto + PDF",
|
|
93
|
+
args: {
|
|
94
|
+
title: "Relatório disponível",
|
|
95
|
+
description: "Clique abaixo para abrir o relatório completo em PDF.",
|
|
96
|
+
fileUrl: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
|
|
97
|
+
fileType: "pdf",
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export const TextoComCsv: Story = {
|
|
102
|
+
name: "Texto + CSV",
|
|
103
|
+
args: {
|
|
104
|
+
title: "Dados Exportados",
|
|
105
|
+
description: "Clique abaixo para visualizar o arquivo CSV exportado.",
|
|
106
|
+
fileUrl: "https://people.sc.fsu.edu/~jburkardt/data/csv/airtravel.csv",
|
|
107
|
+
fileType: "csv",
|
|
108
|
+
},
|
|
109
|
+
};
|
|
@@ -1,63 +1,71 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
5
|
-
|
|
6
|
-
// components
|
|
7
|
-
import UserJourneyWorkCard from "../../components/user-journey-work-card";
|
|
8
|
-
|
|
9
|
-
// styles
|
|
10
|
-
import { theme } from "../../styles/theme/theme";
|
|
11
|
-
|
|
12
|
-
const meta: Meta<typeof UserJourneyWorkCard> = {
|
|
13
|
-
title: "componente/UserJourneyWorkCard",
|
|
14
|
-
component: UserJourneyWorkCard,
|
|
15
|
-
args: {
|
|
16
|
-
name: "Weverson L.S",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
5
|
+
|
|
6
|
+
// components
|
|
7
|
+
import UserJourneyWorkCard from "../../components/user-journey-work-card";
|
|
8
|
+
|
|
9
|
+
// styles
|
|
10
|
+
import { theme } from "../../styles/theme/theme";
|
|
11
|
+
|
|
12
|
+
const meta: Meta<typeof UserJourneyWorkCard> = {
|
|
13
|
+
title: "componente/UserJourneyWorkCard",
|
|
14
|
+
component: UserJourneyWorkCard,
|
|
15
|
+
args: {
|
|
16
|
+
name: "Weverson L.S",
|
|
17
|
+
counterBadge: 1,
|
|
18
|
+
workDate: "25/01/2025",
|
|
19
|
+
initialTime: "11:40",
|
|
20
|
+
duration: "05:20",
|
|
21
|
+
avatar:
|
|
22
|
+
"https://avatars.githubusercontent.com/u/43550853?s=400&u=15b97a467044ec1cda5803f00cb4aac4bc5ae95a&v=4",
|
|
23
|
+
backgroundColor: theme.colors.gray[300],
|
|
24
|
+
width: 360,
|
|
25
|
+
handleNavigation: () => {},
|
|
26
|
+
handleNavigationNotification: () => {},
|
|
27
|
+
},
|
|
28
|
+
parameters: {
|
|
29
|
+
notes: `
|
|
30
|
+
# UserJourneyWorkCard
|
|
31
|
+
|
|
32
|
+
Este é um componente que exibe informações do motorista, data da jornada, tempo de jornada, início e duração.
|
|
33
|
+
Você usa assim:
|
|
34
|
+
\`\`\`tsx
|
|
35
|
+
<UserJourneyWorkCard
|
|
36
|
+
width: 400,
|
|
37
|
+
counterBadge: 1,
|
|
38
|
+
name: "Enzo Martins",
|
|
39
|
+
workDate: "15/07/2025",
|
|
40
|
+
initialTime: "08:00",
|
|
41
|
+
duration: "05:20",
|
|
42
|
+
avatar: "https://avatars.githubusercontent.com/u/43550853?s=400&u=15b97a467044ec1cda5803f00cb4aac4bc5ae95a&v=4",
|
|
43
|
+
backgroundColor: theme.colors.gray[300],
|
|
44
|
+
handleNavigation: () => {},
|
|
45
|
+
handleNavigationNotification: () => {},
|
|
46
|
+
/>
|
|
47
|
+
\`\`\`
|
|
48
|
+
`,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default meta;
|
|
53
|
+
|
|
54
|
+
type Story = StoryObj<typeof meta>;
|
|
55
|
+
|
|
56
|
+
export const UserJourneyCardWork: Story = {
|
|
57
|
+
name: "user-journey-work-card-01",
|
|
58
|
+
args: {
|
|
59
|
+
width: 400,
|
|
60
|
+
counterBadge: 4,
|
|
61
|
+
name: "Enzo Martins",
|
|
62
|
+
workDate: "15/07/2025",
|
|
63
|
+
initialTime: "08:00",
|
|
64
|
+
duration: "05:20",
|
|
65
|
+
avatar:
|
|
66
|
+
"https://avatars.githubusercontent.com/u/43550853?s=400&u=15b97a467044ec1cda5803f00cb4aac4bc5ae95a&v=4",
|
|
67
|
+
backgroundColor: theme.colors.gray[300],
|
|
68
|
+
handleNavigation: () => {},
|
|
69
|
+
handleNavigationNotification: () => {},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_interopRequireDefault","_index2","_index3","_index4","_index5","_index6","_asBaseComponent","_theme","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","options","label","value","ModalJourneyRectification","visible","onClose","modalConfirm","textTitle","isLoading","React","useState","defaultReason","selectedReason","setSelectedReason","selectedDate","setSelectedDate","Date","selectedTime","setSelectedTime","fmtDate","d","String","getDate","padStart","getMonth","getFullYear","fmtTime","getHours","getMinutes","mergeDateTime","date","time","out","setHours","setMinutes","setSeconds","setMilliseconds","jsx","Modal","animationType","transparent","children","View","style","flex","justifyContent","alignItems","backgroundColor","jsxs","width","theme","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","Icons","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","lg","padding","xs","black","inter_regular_400","md","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","mode","onChange","colortitleLabel","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","merged","payload","reasonValue","reasonLabel","find","dateTimeISO","toISOString","displayName","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-journey-rectification/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,OAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,OAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,OAAA,GAAAJ,sBAAA,CAAAH,OAAA;AAGA,IAAAQ,OAAA,GAAAR,OAAA;AAIA,IAAAS,gBAAA,GAAAT,OAAA;AAGA,IAAAU,MAAA,GAAAV,OAAA;AAAoD,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAG,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAjB,uBAAA,YAAAA,CAAAa,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAA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AAM,CAACM,WAAW,CAAC,CAAC,GAAG;gBAC/C,CAAC;gBAED3G,YAAY,CAACsG,OAAO,CAAC;gBACrBvG,OAAO,CAAC,CAAC;cACX,CAAE;cACF4C,KAAK,EAAE,KAAM;cACbgD,MAAM,EAAE,EAAG;cACXzF,SAAS,EAAEA,SAAU;cACrB0F,QAAQ,EAAE1F,SAAU;cACpBuC,eAAe,EAAEG,YAAK,CAACC,MAAM,CAACiD,IAAI,CAAC,GAAG,CAAE;cACxCD,eAAe,EAAE;gBACf5B,KAAK,EAAErB,YAAK,CAACC,MAAM,CAACsB,OAAO,CAAC,EAAE,CAAC;gBAC/BI,UAAU,EAAE,cAAc;gBAC1BwB,QAAQ,EAAEnD,YAAK,CAAC8B,SAAS,CAACG,EAAE;gBAC5BmB,UAAU,EAAE;cACd,CAAE;cACFnC,SAAS,EAAE;gBACTC,aAAa,EAAE,KAAK;gBACpBtB,UAAU,EAAE,QAAQ;gBACpBD,cAAc,EAAE,QAAQ;gBACxB0D,SAAS,EAAE;cACb,CAAE;cACFlD,YAAY,EAAE;gBACZmD,WAAW,EAAEtD,YAAK,CAACK,YAAY,CAACkD,IAAI;gBACpCC,WAAW,EAAExD,YAAK,CAACC,MAAM,CAACiD,IAAI,CAAC,GAAG,CAAC;gBACnC9C,YAAY,EAAEJ,YAAK,CAACK,YAAY,CAACC;cACnC;YAAE,CACH,CAAC;UAAA,CACC,CAAC;QAAA,CACH,CAAC;MAAA,CACH;IAAC,CACF;EAAC,CACF,CAAC;AAEZ,CAAC;AAEDrD,yBAAyB,CAAC+G,WAAW,GAAG,2BAA2B;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAArI,OAAA,GAErD,IAAAsI,gCAAe,EAAClH,yBAAyB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-journey-rectification/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","Modal","View","Box","Typography","Button","SelectOption","InputDateTime","Icons","asBaseComponent","theme","jsx","_jsx","jsxs","_jsxs","options","label","value","ModalJourneyRectification","visible","onClose","modalConfirm","textTitle","isLoading","defaultReason","selectedReason","setSelectedReason","selectedDate","setSelectedDate","Date","selectedTime","setSelectedTime","fmtDate","d","String","getDate","padStart","getMonth","getFullYear","fmtTime","getHours","getMinutes","mergeDateTime","date","time","out","setHours","setMinutes","setSeconds","setMilliseconds","animationType","transparent","children","style","flex","justifyContent","alignItems","backgroundColor","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","lg","padding","xs","black","inter_regular_400","md","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","mode","onChange","colortitleLabel","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","merged","payload","reasonValue","reasonLabel","find","o","dateTimeISO","toISOString","displayName"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-journey-rectification/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,KAAK,EAAEC,IAAI,QAAQ,cAAc;;AAE1C;AACA,OAAOC,GAAG,MAAM,oBAAW;AAC3B,OAAOC,UAAU,MAAM,2BAAkB;AACzC,OAAOC,MAAM,MAAM,uBAAc;AACjC,OAAOC,YAAY,MAAM,sCAA6B;AACtD,OAAOC,aAAa,MAAM,uCAA8B;;AAExD;AACA,SAASC,KAAK,QAAQ,oCAA2B;;AAEjD;;AAEA,SAASC,eAAe,QAAQ,sCAAmC;;AAEnE;AACA,SAASC,KAAK,QAAQ,gCAA6B;AAAC,SAA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3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-journey-rectification/interface.d.ts"],"mappings":"","ignoreList":[]}
|
package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/modals/modal-journey-rectification/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAcxC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;;AA0NnE,wBAA0D"}
|
package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/modals/modal-journey-rectification/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAcxC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;;AA0NnE,wBAA0D"}
|
|
File without changes
|