react-native-exp-fig 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/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 +4 -4
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +4 -4
- 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/card-history/index.js +7 -7
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +7 -7
- 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 +7 -7
- 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 +12 -9
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- 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.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/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/theme/theme.js +4 -4
- 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.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 +4 -4
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +4 -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/card-history/index.js +7 -7
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-loading/index.js +7 -7
- 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 +7 -7
- 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 +12 -9
- package/lib/module/components/loading-progress/index.js.map +1 -1
- 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 +2 -2
- 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/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/theme/theme.js +4 -4
- 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.map +1 -1
- package/lib/typescript/src/components/step-indicator/styles.d.ts +1 -0
- package/package.json +5 -5
- 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 +63 -63
- package/src/common/icons-svg/index.tsx +255 -255
- 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/card-history/index.tsx +149 -149
- package/src/components/card-loading/index.tsx +278 -278
- 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 +89 -89
- package/src/components/image-capture-with-remove/interface.d.ts +25 -25
- package/src/components/loading-progress/index.tsx +92 -91
- 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 +42 -42
- 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-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/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/theme/theme.ts +170 -170
- package/src/utils/format-data/index.ts +66 -66
- package/src/utils/status-color/return-color.ts +23 -23
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
4
|
-
import { NotificationLoading } from "../../components/notification-loading";
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof NotificationLoading> = {
|
|
7
|
-
title: "componente/NotificationLoading",
|
|
8
|
-
component: NotificationLoading as React.FC,
|
|
9
|
-
args: {
|
|
10
|
-
title: "Carregamento - #013200400456",
|
|
11
|
-
date: "12:30 07/05/2025",
|
|
12
|
-
handleNavigation: () => {},
|
|
13
|
-
notification: "Hoje você tem um carregamento agendamento",
|
|
14
|
-
statusNotify: "pending",
|
|
15
|
-
dataStart: "Hoje",
|
|
16
|
-
readonly: false,
|
|
17
|
-
},
|
|
18
|
-
parameters: {
|
|
19
|
-
notes: `
|
|
20
|
-
# NotificationLoading
|
|
21
|
-
|
|
22
|
-
Este é um componente de Card de notificação.
|
|
23
|
-
Você usa assim:
|
|
24
|
-
\`\`\`tsx
|
|
25
|
-
<NotificationLoading
|
|
26
|
-
title=""
|
|
27
|
-
date=""
|
|
28
|
-
handleNavigation={() => {}}
|
|
29
|
-
notification=""
|
|
30
|
-
statusNotify=""
|
|
31
|
-
dataStart: "Hoje",
|
|
32
|
-
readonly: false,
|
|
33
|
-
/>
|
|
34
|
-
\`\`\`
|
|
35
|
-
`,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export default meta;
|
|
40
|
-
|
|
41
|
-
type Story = StoryObj<typeof meta>;
|
|
42
|
-
|
|
43
|
-
export const NotificationLoadingPending: Story = {
|
|
44
|
-
name: "Notification-pending",
|
|
45
|
-
args: {
|
|
46
|
-
title: "#013200400456",
|
|
47
|
-
date: "12:30 07/05/2025",
|
|
48
|
-
handleNavigation: () => {},
|
|
49
|
-
notification: "Hoje você tem um carregamento agendamento",
|
|
50
|
-
statusNotify: "Pendente",
|
|
51
|
-
dataStart: "Ontem",
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
export const NotificationLoadingApproved: Story = {
|
|
55
|
-
name: "Notification-Approved",
|
|
56
|
-
args: {
|
|
57
|
-
title: "#013200400456",
|
|
58
|
-
date: "12:30 07/05/2025",
|
|
59
|
-
handleNavigation: () => {},
|
|
60
|
-
notification: "Hoje você tem um carregamento agendamento",
|
|
61
|
-
statusNotify: "Aprovado",
|
|
62
|
-
dataStart: "Hoje",
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
export const NotificationLoadingRecused: Story = {
|
|
66
|
-
name: "Notification-recused",
|
|
67
|
-
args: {
|
|
68
|
-
title: "#013200400456",
|
|
69
|
-
date: "12:30 07/05/2025",
|
|
70
|
-
handleNavigation: () => {},
|
|
71
|
-
notification: "Hoje você tem um carregamento agendamento",
|
|
72
|
-
statusNotify: "Reprovado",
|
|
73
|
-
dataStart: "25 abril 2025",
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export const NotificationLoadingReadonly: Story = {
|
|
78
|
-
name: "Notification-readonly",
|
|
79
|
-
args: {
|
|
80
|
-
title: "#013200400456",
|
|
81
|
-
date: "12:30 07/05/2025",
|
|
82
|
-
handleNavigation: () => {},
|
|
83
|
-
notification: "Hoje você tem um carregamento agendamento",
|
|
84
|
-
statusNotify: "Reprovado",
|
|
85
|
-
dataStart: "25 abril 2025",
|
|
86
|
-
readonly: true,
|
|
87
|
-
},
|
|
88
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
4
|
+
import { NotificationLoading } from "../../components/notification-loading";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof NotificationLoading> = {
|
|
7
|
+
title: "componente/NotificationLoading",
|
|
8
|
+
component: NotificationLoading as React.FC,
|
|
9
|
+
args: {
|
|
10
|
+
title: "Carregamento - #013200400456",
|
|
11
|
+
date: "12:30 07/05/2025",
|
|
12
|
+
handleNavigation: () => {},
|
|
13
|
+
notification: "Hoje você tem um carregamento agendamento",
|
|
14
|
+
statusNotify: "pending",
|
|
15
|
+
dataStart: "Hoje",
|
|
16
|
+
readonly: false,
|
|
17
|
+
},
|
|
18
|
+
parameters: {
|
|
19
|
+
notes: `
|
|
20
|
+
# NotificationLoading
|
|
21
|
+
|
|
22
|
+
Este é um componente de Card de notificação.
|
|
23
|
+
Você usa assim:
|
|
24
|
+
\`\`\`tsx
|
|
25
|
+
<NotificationLoading
|
|
26
|
+
title=""
|
|
27
|
+
date=""
|
|
28
|
+
handleNavigation={() => {}}
|
|
29
|
+
notification=""
|
|
30
|
+
statusNotify=""
|
|
31
|
+
dataStart: "Hoje",
|
|
32
|
+
readonly: false,
|
|
33
|
+
/>
|
|
34
|
+
\`\`\`
|
|
35
|
+
`,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default meta;
|
|
40
|
+
|
|
41
|
+
type Story = StoryObj<typeof meta>;
|
|
42
|
+
|
|
43
|
+
export const NotificationLoadingPending: Story = {
|
|
44
|
+
name: "Notification-pending",
|
|
45
|
+
args: {
|
|
46
|
+
title: "#013200400456",
|
|
47
|
+
date: "12:30 07/05/2025",
|
|
48
|
+
handleNavigation: () => {},
|
|
49
|
+
notification: "Hoje você tem um carregamento agendamento",
|
|
50
|
+
statusNotify: "Pendente",
|
|
51
|
+
dataStart: "Ontem",
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
export const NotificationLoadingApproved: Story = {
|
|
55
|
+
name: "Notification-Approved",
|
|
56
|
+
args: {
|
|
57
|
+
title: "#013200400456",
|
|
58
|
+
date: "12:30 07/05/2025",
|
|
59
|
+
handleNavigation: () => {},
|
|
60
|
+
notification: "Hoje você tem um carregamento agendamento",
|
|
61
|
+
statusNotify: "Aprovado",
|
|
62
|
+
dataStart: "Hoje",
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
export const NotificationLoadingRecused: Story = {
|
|
66
|
+
name: "Notification-recused",
|
|
67
|
+
args: {
|
|
68
|
+
title: "#013200400456",
|
|
69
|
+
date: "12:30 07/05/2025",
|
|
70
|
+
handleNavigation: () => {},
|
|
71
|
+
notification: "Hoje você tem um carregamento agendamento",
|
|
72
|
+
statusNotify: "Reprovado",
|
|
73
|
+
dataStart: "25 abril 2025",
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const NotificationLoadingReadonly: Story = {
|
|
78
|
+
name: "Notification-readonly",
|
|
79
|
+
args: {
|
|
80
|
+
title: "#013200400456",
|
|
81
|
+
date: "12:30 07/05/2025",
|
|
82
|
+
handleNavigation: () => {},
|
|
83
|
+
notification: "Hoje você tem um carregamento agendamento",
|
|
84
|
+
statusNotify: "Reprovado",
|
|
85
|
+
dataStart: "25 abril 2025",
|
|
86
|
+
readonly: true,
|
|
87
|
+
},
|
|
88
|
+
};
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
import { ProfileMenuOption } from "../../components/profile-menu-option";
|
|
4
|
-
import { theme } from "../../styles/theme/theme";
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof ProfileMenuOption> = {
|
|
7
|
-
title: "componente/ProfileMenuOption",
|
|
8
|
-
component: ProfileMenuOption,
|
|
9
|
-
args: {
|
|
10
|
-
text: "Perfil",
|
|
11
|
-
icon: "AGENT",
|
|
12
|
-
backgroundColor: theme.colors.blue[400],
|
|
13
|
-
colorIcon: theme.colors.neutral[25],
|
|
14
|
-
handleNavigation: () => {},
|
|
15
|
-
},
|
|
16
|
-
parameters: {
|
|
17
|
-
notes: `
|
|
18
|
-
# ProfileMenuOption
|
|
19
|
-
|
|
20
|
-
Este é um componente de opção de menu para perfil.
|
|
21
|
-
Você usa assim:
|
|
22
|
-
\`\`\`tsx
|
|
23
|
-
<ProfileMenuOption
|
|
24
|
-
text="Perfil"
|
|
25
|
-
icon="AGENT"
|
|
26
|
-
backgroundColor={theme.colors.blue[400]}
|
|
27
|
-
colorIcon={theme.colors.neutral[25]}
|
|
28
|
-
handleNavigation={() => {}}
|
|
29
|
-
/>
|
|
30
|
-
\`\`\`
|
|
31
|
-
`,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default meta;
|
|
36
|
-
|
|
37
|
-
type Story = StoryObj<typeof meta>;
|
|
38
|
-
|
|
39
|
-
export const Default: Story = {
|
|
40
|
-
name: "profile-menu-option",
|
|
41
|
-
args: {
|
|
42
|
-
text: "Perfil",
|
|
43
|
-
icon: "AGENT",
|
|
44
|
-
backgroundColor: theme.colors.blue[400],
|
|
45
|
-
colorIcon: theme.colors.neutral[25],
|
|
46
|
-
handleNavigation: () => {},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const CustomColor: Story = {
|
|
51
|
-
name: "profile-menu-option-custom-color",
|
|
52
|
-
args: {
|
|
53
|
-
text: "Configurações",
|
|
54
|
-
icon: "GEAR",
|
|
55
|
-
backgroundColor: theme.colors.blue[500],
|
|
56
|
-
colorIcon: theme.colors.neutral[25],
|
|
57
|
-
handleNavigation: () => {},
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const Support: Story = {
|
|
62
|
-
name: "profile-menu-option-support",
|
|
63
|
-
args: {
|
|
64
|
-
text: "Suporte",
|
|
65
|
-
icon: "LIFEBUOY",
|
|
66
|
-
backgroundColor: theme.colors.blue[400],
|
|
67
|
-
colorIcon: theme.colors.neutral[25],
|
|
68
|
-
handleNavigation: () => {},
|
|
69
|
-
},
|
|
70
|
-
};
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { ProfileMenuOption } from "../../components/profile-menu-option";
|
|
4
|
+
import { theme } from "../../styles/theme/theme";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ProfileMenuOption> = {
|
|
7
|
+
title: "componente/ProfileMenuOption",
|
|
8
|
+
component: ProfileMenuOption,
|
|
9
|
+
args: {
|
|
10
|
+
text: "Perfil",
|
|
11
|
+
icon: "AGENT",
|
|
12
|
+
backgroundColor: theme.colors.blue[400],
|
|
13
|
+
colorIcon: theme.colors.neutral[25],
|
|
14
|
+
handleNavigation: () => {},
|
|
15
|
+
},
|
|
16
|
+
parameters: {
|
|
17
|
+
notes: `
|
|
18
|
+
# ProfileMenuOption
|
|
19
|
+
|
|
20
|
+
Este é um componente de opção de menu para perfil.
|
|
21
|
+
Você usa assim:
|
|
22
|
+
\`\`\`tsx
|
|
23
|
+
<ProfileMenuOption
|
|
24
|
+
text="Perfil"
|
|
25
|
+
icon="AGENT"
|
|
26
|
+
backgroundColor={theme.colors.blue[400]}
|
|
27
|
+
colorIcon={theme.colors.neutral[25]}
|
|
28
|
+
handleNavigation={() => {}}
|
|
29
|
+
/>
|
|
30
|
+
\`\`\`
|
|
31
|
+
`,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default meta;
|
|
36
|
+
|
|
37
|
+
type Story = StoryObj<typeof meta>;
|
|
38
|
+
|
|
39
|
+
export const Default: Story = {
|
|
40
|
+
name: "profile-menu-option",
|
|
41
|
+
args: {
|
|
42
|
+
text: "Perfil",
|
|
43
|
+
icon: "AGENT",
|
|
44
|
+
backgroundColor: theme.colors.blue[400],
|
|
45
|
+
colorIcon: theme.colors.neutral[25],
|
|
46
|
+
handleNavigation: () => {},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const CustomColor: Story = {
|
|
51
|
+
name: "profile-menu-option-custom-color",
|
|
52
|
+
args: {
|
|
53
|
+
text: "Configurações",
|
|
54
|
+
icon: "GEAR",
|
|
55
|
+
backgroundColor: theme.colors.blue[500],
|
|
56
|
+
colorIcon: theme.colors.neutral[25],
|
|
57
|
+
handleNavigation: () => {},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const Support: Story = {
|
|
62
|
+
name: "profile-menu-option-support",
|
|
63
|
+
args: {
|
|
64
|
+
text: "Suporte",
|
|
65
|
+
icon: "LIFEBUOY",
|
|
66
|
+
backgroundColor: theme.colors.blue[400],
|
|
67
|
+
colorIcon: theme.colors.neutral[25],
|
|
68
|
+
handleNavigation: () => {},
|
|
69
|
+
},
|
|
70
|
+
};
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
// components
|
|
4
|
-
import { StepIndicator } from "../../components/step-indicator";
|
|
5
|
-
|
|
6
|
-
// styles
|
|
7
|
-
import { theme } from "../../styles/theme/theme";
|
|
8
|
-
|
|
9
|
-
const meta: Meta<typeof StepIndicator> = {
|
|
10
|
-
title: "Componente/StepIndicator",
|
|
11
|
-
component: StepIndicator,
|
|
12
|
-
args: {
|
|
13
|
-
data: [
|
|
14
|
-
{
|
|
15
|
-
id: 1,
|
|
16
|
-
descricao: "Repouso Noturno",
|
|
17
|
-
data_inicio: "07/03/2024 14:52",
|
|
18
|
-
data_fim: "07/03/2024 17:52",
|
|
19
|
-
duracao_segundos: "3601",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
backgroundColorBall: theme.colors.blue[500],
|
|
23
|
-
titleColor: theme.colors.neutral[25],
|
|
24
|
-
titleNumberColor: theme.colors.neutral[25],
|
|
25
|
-
},
|
|
26
|
-
parameters: {
|
|
27
|
-
notes: `
|
|
28
|
-
# StepIndicator
|
|
29
|
-
|
|
30
|
-
Este é um componente de step indicator.
|
|
31
|
-
Você usa assim:
|
|
32
|
-
\`\`\`tsx
|
|
33
|
-
<StepIndicator
|
|
34
|
-
backgroundColorBall="#050022"
|
|
35
|
-
type="default"
|
|
36
|
-
data={dataMock}
|
|
37
|
-
/>
|
|
38
|
-
\`\`\`
|
|
39
|
-
`,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default meta;
|
|
44
|
-
|
|
45
|
-
type Story = StoryObj<typeof meta>;
|
|
46
|
-
|
|
47
|
-
const dataMock = [
|
|
48
|
-
{
|
|
49
|
-
id: 1,
|
|
50
|
-
descricao: "Repouso Noturno",
|
|
51
|
-
data_inicio: "07/03/2024 14:52",
|
|
52
|
-
data_fim: "07/03/2024 17:52",
|
|
53
|
-
duracao_segundos: "3601",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: 2,
|
|
57
|
-
descricao: "Descarga",
|
|
58
|
-
data_inicio: "06/03/2024 14:52",
|
|
59
|
-
data_fim: "06/03/2024 16:52",
|
|
60
|
-
duracao_segundos: "7200",
|
|
61
|
-
},
|
|
62
|
-
];
|
|
63
|
-
|
|
64
|
-
const dataMockCustom = [
|
|
65
|
-
{
|
|
66
|
-
id: 1,
|
|
67
|
-
descricao: "Pedido Realizado",
|
|
68
|
-
data_inicio: "",
|
|
69
|
-
data_fim: "",
|
|
70
|
-
duracao_segundos: "",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
id: 2,
|
|
74
|
-
descricao: "Pagamento Aprovado",
|
|
75
|
-
data_inicio: "07/03/2024 14:52",
|
|
76
|
-
data_fim: "07/03/2024 17:52",
|
|
77
|
-
duracao_segundos: "3601",
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: 3,
|
|
81
|
-
descricao: "Pedido Faturado",
|
|
82
|
-
data_inicio: "",
|
|
83
|
-
data_fim: "",
|
|
84
|
-
duracao_segundos: "",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
id: 4,
|
|
88
|
-
descricao: "Pedido Enviado",
|
|
89
|
-
data_inicio: "",
|
|
90
|
-
data_fim: "",
|
|
91
|
-
duracao_segundos: "",
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
id: 4,
|
|
95
|
-
descricao: "Pedido Entregue",
|
|
96
|
-
data_inicio: "07/03/2024 14:52",
|
|
97
|
-
data_fim: "07/03/2024 17:52",
|
|
98
|
-
duracao_segundos: "3601",
|
|
99
|
-
},
|
|
100
|
-
];
|
|
101
|
-
|
|
102
|
-
export const StepIndicatorDefault: Story = {
|
|
103
|
-
name: "step-indicator-default",
|
|
104
|
-
args: {
|
|
105
|
-
data: dataMock,
|
|
106
|
-
type: "default",
|
|
107
|
-
backgroundColorBall: theme.colors.blue[500],
|
|
108
|
-
titleColor: theme.colors.neutral[25],
|
|
109
|
-
textColorDescription: theme.colors.gray[300],
|
|
110
|
-
titleNumberColor: theme.colors.neutral[25],
|
|
111
|
-
},
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export const StepIndicationCustom: Story = {
|
|
115
|
-
name: "step-indicator-custom",
|
|
116
|
-
args: {
|
|
117
|
-
data: dataMockCustom,
|
|
118
|
-
type: "custom",
|
|
119
|
-
backgroundColorBall: theme.colors.orange[150],
|
|
120
|
-
titleColor: theme.colors.blue[500],
|
|
121
|
-
textColorDescription: theme.colors.gray[300],
|
|
122
|
-
titleNumberColor: theme.colors.neutral[25],
|
|
123
|
-
},
|
|
124
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
// components
|
|
4
|
+
import { StepIndicator } from "../../components/step-indicator";
|
|
5
|
+
|
|
6
|
+
// styles
|
|
7
|
+
import { theme } from "../../styles/theme/theme";
|
|
8
|
+
|
|
9
|
+
const meta: Meta<typeof StepIndicator> = {
|
|
10
|
+
title: "Componente/StepIndicator",
|
|
11
|
+
component: StepIndicator,
|
|
12
|
+
args: {
|
|
13
|
+
data: [
|
|
14
|
+
{
|
|
15
|
+
id: 1,
|
|
16
|
+
descricao: "Repouso Noturno",
|
|
17
|
+
data_inicio: "07/03/2024 14:52",
|
|
18
|
+
data_fim: "07/03/2024 17:52",
|
|
19
|
+
duracao_segundos: "3601",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
backgroundColorBall: theme.colors.blue[500],
|
|
23
|
+
titleColor: theme.colors.neutral[25],
|
|
24
|
+
titleNumberColor: theme.colors.neutral[25],
|
|
25
|
+
},
|
|
26
|
+
parameters: {
|
|
27
|
+
notes: `
|
|
28
|
+
# StepIndicator
|
|
29
|
+
|
|
30
|
+
Este é um componente de step indicator.
|
|
31
|
+
Você usa assim:
|
|
32
|
+
\`\`\`tsx
|
|
33
|
+
<StepIndicator
|
|
34
|
+
backgroundColorBall="#050022"
|
|
35
|
+
type="default"
|
|
36
|
+
data={dataMock}
|
|
37
|
+
/>
|
|
38
|
+
\`\`\`
|
|
39
|
+
`,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export default meta;
|
|
44
|
+
|
|
45
|
+
type Story = StoryObj<typeof meta>;
|
|
46
|
+
|
|
47
|
+
const dataMock = [
|
|
48
|
+
{
|
|
49
|
+
id: 1,
|
|
50
|
+
descricao: "Repouso Noturno",
|
|
51
|
+
data_inicio: "07/03/2024 14:52",
|
|
52
|
+
data_fim: "07/03/2024 17:52",
|
|
53
|
+
duracao_segundos: "3601",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 2,
|
|
57
|
+
descricao: "Descarga",
|
|
58
|
+
data_inicio: "06/03/2024 14:52",
|
|
59
|
+
data_fim: "06/03/2024 16:52",
|
|
60
|
+
duracao_segundos: "7200",
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
const dataMockCustom = [
|
|
65
|
+
{
|
|
66
|
+
id: 1,
|
|
67
|
+
descricao: "Pedido Realizado",
|
|
68
|
+
data_inicio: "",
|
|
69
|
+
data_fim: "",
|
|
70
|
+
duracao_segundos: "",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 2,
|
|
74
|
+
descricao: "Pagamento Aprovado",
|
|
75
|
+
data_inicio: "07/03/2024 14:52",
|
|
76
|
+
data_fim: "07/03/2024 17:52",
|
|
77
|
+
duracao_segundos: "3601",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: 3,
|
|
81
|
+
descricao: "Pedido Faturado",
|
|
82
|
+
data_inicio: "",
|
|
83
|
+
data_fim: "",
|
|
84
|
+
duracao_segundos: "",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 4,
|
|
88
|
+
descricao: "Pedido Enviado",
|
|
89
|
+
data_inicio: "",
|
|
90
|
+
data_fim: "",
|
|
91
|
+
duracao_segundos: "",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: 4,
|
|
95
|
+
descricao: "Pedido Entregue",
|
|
96
|
+
data_inicio: "07/03/2024 14:52",
|
|
97
|
+
data_fim: "07/03/2024 17:52",
|
|
98
|
+
duracao_segundos: "3601",
|
|
99
|
+
},
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
export const StepIndicatorDefault: Story = {
|
|
103
|
+
name: "step-indicator-default",
|
|
104
|
+
args: {
|
|
105
|
+
data: dataMock,
|
|
106
|
+
type: "default",
|
|
107
|
+
backgroundColorBall: theme.colors.blue[500],
|
|
108
|
+
titleColor: theme.colors.neutral[25],
|
|
109
|
+
textColorDescription: theme.colors.gray[300],
|
|
110
|
+
titleNumberColor: theme.colors.neutral[25],
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export const StepIndicationCustom: Story = {
|
|
115
|
+
name: "step-indicator-custom",
|
|
116
|
+
args: {
|
|
117
|
+
data: dataMockCustom,
|
|
118
|
+
type: "custom",
|
|
119
|
+
backgroundColorBall: theme.colors.orange[150],
|
|
120
|
+
titleColor: theme.colors.blue[500],
|
|
121
|
+
textColorDescription: theme.colors.gray[300],
|
|
122
|
+
titleNumberColor: theme.colors.neutral[25],
|
|
123
|
+
},
|
|
124
|
+
};
|