react-native-exp-fig 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/common/icons-svg/agent/index.js +2 -2
- package/lib/commonjs/common/icons-svg/agent/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/bed/index.js +4 -4
- package/lib/commonjs/common/icons-svg/bed/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/car/index.js +4 -4
- package/lib/commonjs/common/icons-svg/car/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/check-outline/index.js +6 -6
- package/lib/commonjs/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/coffee/index.js +4 -4
- package/lib/commonjs/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +2 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/hourglass/index.js +36 -0
- package/lib/commonjs/common/icons-svg/hourglass/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +8 -1
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/pencil/index.js +4 -4
- package/lib/commonjs/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/commonjs/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +4 -4
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/interface.d.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +4 -4
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/commonjs/components/button/styles.js +1 -1
- package/lib/commonjs/components/button/styles.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +62 -12
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-history/interface.d.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +21 -10
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +4 -4
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +6 -6
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/check-box/interface.d.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +4 -4
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/coil/interface.d.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +7 -7
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +1 -2
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/history-details/interface.d.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +11 -10
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +3 -1
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/index.js +155 -0
- package/lib/commonjs/components/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/modal-activities/interface.d.js +6 -0
- package/lib/commonjs/components/modal-activities/interface.d.js.map +1 -0
- package/lib/commonjs/components/notification-loading/index.js +9 -2
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/interface.d.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +6 -6
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +9 -8
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +6 -6
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/commonjs/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/commonjs/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
- package/lib/commonjs/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/commonjs/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +47 -0
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -0
- package/lib/commonjs/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/commonjs/styles/global/interface.d.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +6 -5
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/format-data/index.js +11 -11
- package/lib/commonjs/utils/format-data/index.js.map +1 -1
- package/lib/commonjs/utils/status-color/return-color.js +12 -2
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/common/icons-svg/agent/index.js +2 -2
- package/lib/module/common/icons-svg/agent/index.js.map +1 -1
- package/lib/module/common/icons-svg/bed/index.js +4 -4
- package/lib/module/common/icons-svg/bed/index.js.map +1 -1
- package/lib/module/common/icons-svg/car/index.js +4 -4
- package/lib/module/common/icons-svg/car/index.js.map +1 -1
- package/lib/module/common/icons-svg/check-outline/index.js +6 -6
- package/lib/module/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/module/common/icons-svg/coffee/index.js +4 -4
- package/lib/module/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +2 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/hourglass/index.js +28 -0
- package/lib/module/common/icons-svg/hourglass/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +11 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/pencil/index.js +4 -4
- package/lib/module/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/module/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +4 -4
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-daily/interface.d.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +4 -4
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/activities-progress/interface.d.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/module/components/button/styles.js +1 -1
- package/lib/module/components/button/styles.js.map +1 -1
- package/lib/module/components/card-history/index.js +62 -12
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-history/interface.d.js.map +1 -1
- package/lib/module/components/card-loading/index.js +22 -11
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +4 -4
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +6 -6
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/check-box/interface.d.js.map +1 -1
- package/lib/module/components/coil/index.js +4 -4
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/coil/interface.d.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +7 -7
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +1 -2
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/history-details/interface.d.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +11 -10
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +3 -1
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/modal-activities/index.js +148 -0
- package/lib/module/components/modal-activities/index.js.map +1 -0
- package/lib/module/components/modal-activities/interface.d.js +2 -0
- package/lib/module/components/modal-activities/interface.d.js.map +1 -0
- package/lib/module/components/notification-loading/index.js +9 -2
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/notification-loading/interface.d.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +6 -6
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/step-indicator/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +9 -8
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/components/user-profile/index.js +6 -6
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/module/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/module/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/module/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/module/stories/coil/coil.stories.js.map +1 -1
- package/lib/module/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/module/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js +41 -0
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -0
- package/lib/module/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/module/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/module/styles/global/interface.d.js.map +1 -1
- package/lib/module/styles/theme/theme.js +6 -5
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/format-data/index.js +11 -11
- package/lib/module/utils/format-data/index.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js +12 -3
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/src/common/icons-svg/hourglass/index.d.ts +10 -0
- package/lib/typescript/src/components/button/styles.d.ts +2 -3
- package/lib/typescript/src/components/modal-activities/index.d.ts +6 -0
- package/lib/typescript/src/components/step-indicator/styles.d.ts +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +6 -0
- package/lib/typescript/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/src/utils/status-color/return-color.d.ts +2 -1
- package/package.json +221 -221
- package/src/common/icons-svg/agent/index.tsx +40 -40
- package/src/common/icons-svg/bed/index.tsx +41 -41
- package/src/common/icons-svg/car/index.tsx +29 -29
- package/src/common/icons-svg/check-outline/index.tsx +42 -42
- package/src/common/icons-svg/coffee/index.tsx +43 -43
- package/src/common/icons-svg/constants/index.ts +1 -0
- package/src/common/icons-svg/hourglass/index.tsx +28 -0
- package/src/common/icons-svg/index.tsx +8 -4
- package/src/common/icons-svg/pencil/index.tsx +32 -32
- package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -32
- package/src/common/icons-svg/truck-activity/index.tsx +29 -29
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-daily/interface.d.ts +22 -22
- package/src/components/activities-progress/index.tsx +162 -162
- package/src/components/activities-progress/interface.d.ts +41 -41
- package/src/components/avatar-profile/index.tsx +95 -95
- package/src/components/avatar-profile/interface.d.ts +39 -39
- package/src/components/button/styles.ts +34 -34
- package/src/components/card-history/index.tsx +67 -5
- package/src/components/card-history/interface.d.ts +34 -28
- package/src/components/card-loading/index.tsx +16 -4
- package/src/components/card-work-session/index.tsx +187 -187
- package/src/components/check-box/index.tsx +94 -94
- package/src/components/check-box/interface.d.ts +31 -31
- package/src/components/coil/index.tsx +103 -103
- package/src/components/coil/interface.d.ts +26 -26
- package/src/components/filter-date-selector/index.tsx +101 -101
- package/src/components/history-details/index.tsx +1 -2
- package/src/components/history-details/interface.d.ts +18 -18
- package/src/components/image-capture-with-remove/index.tsx +11 -8
- package/src/components/image-capture-with-remove/interface.d.ts +6 -3
- package/src/components/loading-progress/index.tsx +93 -91
- package/src/components/modal-activities/index.tsx +139 -0
- package/src/components/modal-activities/interface.d.ts +21 -0
- package/src/components/notification-loading/index.tsx +9 -2
- package/src/components/notification-loading/interface.d.ts +35 -35
- package/src/components/profile-menu-option/index.tsx +65 -65
- package/src/components/profile-menu-option/interface.d.ts +42 -42
- package/src/components/step-indicator/index.tsx +164 -164
- package/src/components/step-indicator/interface.d.ts +34 -34
- package/src/components/step-indicator/styles.ts +68 -67
- package/src/components/user-profile/index.tsx +204 -204
- package/src/index.ts +1 -0
- package/src/stories/activities-daily/activities-daily.stories.tsx +40 -40
- package/src/stories/activities-progress/activities-progress.stories.tsx +61 -61
- package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -32
- package/src/stories/card-history/card-history.stories.tsx +50 -50
- package/src/stories/card-loading/card-loading.stories.tsx +85 -85
- package/src/stories/check-box/check-box.stories.tsx +81 -81
- package/src/stories/coil/coil.stories.tsx +98 -98
- package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -122
- package/src/stories/history-details/history-details.stories.tsx +36 -36
- package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +57 -57
- package/src/stories/modal-activities/modal-activities.stories.tsx +46 -0
- package/src/stories/notification-loading/notification-loading.stories.tsx +88 -88
- package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -70
- package/src/stories/step-indicator/step-indicator.stories.tsx +124 -124
- package/src/styles/global/interface.d.ts +146 -141
- package/src/styles/theme/theme.ts +1 -0
- package/src/utils/format-data/index.ts +66 -66
- package/src/utils/status-color/return-color.ts +14 -3
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
4
|
-
import { Coil } from "../../components/coil";
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof Coil> = {
|
|
7
|
-
title: "componente/Coil",
|
|
8
|
-
component: Coil as React.FC,
|
|
9
|
-
args: {
|
|
10
|
-
title: "HUTY-9754",
|
|
11
|
-
description: "04 de 02 fotos pendentes",
|
|
12
|
-
handleNavigation: () => {},
|
|
13
|
-
status: "Cancelado",
|
|
14
|
-
},
|
|
15
|
-
parameters: {
|
|
16
|
-
notes: `
|
|
17
|
-
# Coil
|
|
18
|
-
|
|
19
|
-
Este é um componente de Card da bobina.
|
|
20
|
-
Você usa assim:
|
|
21
|
-
\`\`\`tsx
|
|
22
|
-
<Coil
|
|
23
|
-
title=''
|
|
24
|
-
description=''
|
|
25
|
-
handleNavigation={() => {}}
|
|
26
|
-
status=''
|
|
27
|
-
/>
|
|
28
|
-
\`\`\`
|
|
29
|
-
`,
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default meta;
|
|
34
|
-
|
|
35
|
-
type Story = StoryObj<typeof meta>;
|
|
36
|
-
|
|
37
|
-
export const CoilPending: Story = {
|
|
38
|
-
name: "coil-pending",
|
|
39
|
-
args: {
|
|
40
|
-
title: "HUTY-9754",
|
|
41
|
-
description: "04 de 02 fotos pendentes",
|
|
42
|
-
handleNavigation: () => {},
|
|
43
|
-
status: "Pendente",
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const CoilApproved: Story = {
|
|
48
|
-
name: "coil-approved",
|
|
49
|
-
args: {
|
|
50
|
-
title: "HUTY-9754",
|
|
51
|
-
description: "04 de 02 fotos pendentes",
|
|
52
|
-
handleNavigation: () => {},
|
|
53
|
-
status: "Concluido",
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export const CoilRecused: Story = {
|
|
58
|
-
name: "coil-recused",
|
|
59
|
-
args: {
|
|
60
|
-
title: "HUTY-9754",
|
|
61
|
-
description: "04 de 02 fotos pendentes",
|
|
62
|
-
handleNavigation: () => {},
|
|
63
|
-
status: "Cancelado",
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const CoilAndamento: Story = {
|
|
68
|
-
name: "coil-andamento",
|
|
69
|
-
args: {
|
|
70
|
-
title: "HUTY-9754",
|
|
71
|
-
description: "background color diferente",
|
|
72
|
-
handleNavigation: () => {},
|
|
73
|
-
status: "Andamento",
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export const CoilNoStatus: Story = {
|
|
78
|
-
name: "coil-no-status",
|
|
79
|
-
args: {
|
|
80
|
-
title: "HUTY-9754",
|
|
81
|
-
description: "background color diferente",
|
|
82
|
-
handleNavigation: () => {},
|
|
83
|
-
backgroundColor: "green",
|
|
84
|
-
status: "Andamento",
|
|
85
|
-
disabled: true,
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export const CoilOff: Story = {
|
|
90
|
-
name: "coil-off",
|
|
91
|
-
args: {
|
|
92
|
-
title: "HUTY-9823",
|
|
93
|
-
description: "background color diferente",
|
|
94
|
-
handleNavigation: () => {},
|
|
95
|
-
status: "Pendente",
|
|
96
|
-
backgroundColorIcon: "#fff",
|
|
97
|
-
},
|
|
98
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
4
|
+
import { Coil } from "../../components/coil";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof Coil> = {
|
|
7
|
+
title: "componente/Coil",
|
|
8
|
+
component: Coil as React.FC,
|
|
9
|
+
args: {
|
|
10
|
+
title: "HUTY-9754",
|
|
11
|
+
description: "04 de 02 fotos pendentes",
|
|
12
|
+
handleNavigation: () => {},
|
|
13
|
+
status: "Cancelado",
|
|
14
|
+
},
|
|
15
|
+
parameters: {
|
|
16
|
+
notes: `
|
|
17
|
+
# Coil
|
|
18
|
+
|
|
19
|
+
Este é um componente de Card da bobina.
|
|
20
|
+
Você usa assim:
|
|
21
|
+
\`\`\`tsx
|
|
22
|
+
<Coil
|
|
23
|
+
title=''
|
|
24
|
+
description=''
|
|
25
|
+
handleNavigation={() => {}}
|
|
26
|
+
status=''
|
|
27
|
+
/>
|
|
28
|
+
\`\`\`
|
|
29
|
+
`,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default meta;
|
|
34
|
+
|
|
35
|
+
type Story = StoryObj<typeof meta>;
|
|
36
|
+
|
|
37
|
+
export const CoilPending: Story = {
|
|
38
|
+
name: "coil-pending",
|
|
39
|
+
args: {
|
|
40
|
+
title: "HUTY-9754",
|
|
41
|
+
description: "04 de 02 fotos pendentes",
|
|
42
|
+
handleNavigation: () => {},
|
|
43
|
+
status: "Pendente",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const CoilApproved: Story = {
|
|
48
|
+
name: "coil-approved",
|
|
49
|
+
args: {
|
|
50
|
+
title: "HUTY-9754",
|
|
51
|
+
description: "04 de 02 fotos pendentes",
|
|
52
|
+
handleNavigation: () => {},
|
|
53
|
+
status: "Concluido",
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const CoilRecused: Story = {
|
|
58
|
+
name: "coil-recused",
|
|
59
|
+
args: {
|
|
60
|
+
title: "HUTY-9754",
|
|
61
|
+
description: "04 de 02 fotos pendentes",
|
|
62
|
+
handleNavigation: () => {},
|
|
63
|
+
status: "Cancelado",
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const CoilAndamento: Story = {
|
|
68
|
+
name: "coil-andamento",
|
|
69
|
+
args: {
|
|
70
|
+
title: "HUTY-9754",
|
|
71
|
+
description: "background color diferente",
|
|
72
|
+
handleNavigation: () => {},
|
|
73
|
+
status: "Andamento",
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const CoilNoStatus: Story = {
|
|
78
|
+
name: "coil-no-status",
|
|
79
|
+
args: {
|
|
80
|
+
title: "HUTY-9754",
|
|
81
|
+
description: "background color diferente",
|
|
82
|
+
handleNavigation: () => {},
|
|
83
|
+
backgroundColor: "green",
|
|
84
|
+
status: "Andamento",
|
|
85
|
+
disabled: true,
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export const CoilOff: Story = {
|
|
90
|
+
name: "coil-off",
|
|
91
|
+
args: {
|
|
92
|
+
title: "HUTY-9823",
|
|
93
|
+
description: "background color diferente",
|
|
94
|
+
handleNavigation: () => {},
|
|
95
|
+
status: "Pendente",
|
|
96
|
+
backgroundColorIcon: "#fff",
|
|
97
|
+
},
|
|
98
|
+
};
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
3
|
-
import { FilterDateSelector } from "../../components/filter-date-selector";
|
|
4
|
-
import { getLastSevenDays } from "../../utils/format-data";
|
|
5
|
-
import { ISelectedDay } from "../../components/filter-date-selector/interface";
|
|
6
|
-
|
|
7
|
-
const meta: Meta<typeof FilterDateSelector> = {
|
|
8
|
-
title: "componente/FilterDateSelector",
|
|
9
|
-
component: FilterDateSelector as React.FC,
|
|
10
|
-
args: {
|
|
11
|
-
selectedDay: {
|
|
12
|
-
date: "",
|
|
13
|
-
dayName: "",
|
|
14
|
-
fullDate: new Date(""),
|
|
15
|
-
},
|
|
16
|
-
handleSelectedDay: (date: ISelectedDay) => {
|
|
17
|
-
return date;
|
|
18
|
-
},
|
|
19
|
-
days: [],
|
|
20
|
-
},
|
|
21
|
-
parameters: {
|
|
22
|
-
notes: `
|
|
23
|
-
# FilterDateSelector
|
|
24
|
-
|
|
25
|
-
Este é um componente de filtro do dias .
|
|
26
|
-
Você usa assim:
|
|
27
|
-
\`\`\`tsx
|
|
28
|
-
<FilterDateSelector
|
|
29
|
-
selectedDay={selectedDay as any}
|
|
30
|
-
handleSelectedDay={setSelectedDay as any}
|
|
31
|
-
days={days as []}
|
|
32
|
-
isLoading={false}
|
|
33
|
-
/>
|
|
34
|
-
\`\`\`
|
|
35
|
-
`,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export default meta;
|
|
40
|
-
|
|
41
|
-
type Story = StoryObj<typeof meta>;
|
|
42
|
-
|
|
43
|
-
export const FilterDateSelectorSimples: Story = {
|
|
44
|
-
name: "filter-journey",
|
|
45
|
-
render: () => {
|
|
46
|
-
const [isLoading, setIsLoading] = React.useState(false);
|
|
47
|
-
const [selectedDay, setSelectedDay] = React.useState<ISelectedDay>({
|
|
48
|
-
date: "",
|
|
49
|
-
dayName: "",
|
|
50
|
-
fullDate: new Date(""),
|
|
51
|
-
});
|
|
52
|
-
const days = getLastSevenDays();
|
|
53
|
-
|
|
54
|
-
React.useEffect(() => {
|
|
55
|
-
const today = new Date();
|
|
56
|
-
|
|
57
|
-
setSelectedDay(
|
|
58
|
-
days.find(
|
|
59
|
-
(day) => day.date === today.getDate() && day.fullDate.getMonth() === today.getMonth()
|
|
60
|
-
) as any
|
|
61
|
-
);
|
|
62
|
-
}, []);
|
|
63
|
-
|
|
64
|
-
const handleSelectedDay = (day: ISelectedDay) => {
|
|
65
|
-
setSelectedDay(day);
|
|
66
|
-
setIsLoading(true);
|
|
67
|
-
|
|
68
|
-
/* global setTimeout */
|
|
69
|
-
setTimeout(() => {
|
|
70
|
-
setIsLoading(false);
|
|
71
|
-
}, 1000);
|
|
72
|
-
};
|
|
73
|
-
return (
|
|
74
|
-
<FilterDateSelector
|
|
75
|
-
selectedDay={selectedDay as any}
|
|
76
|
-
handleSelectedDay={handleSelectedDay as any}
|
|
77
|
-
days={days as []}
|
|
78
|
-
isLoading={isLoading}
|
|
79
|
-
/>
|
|
80
|
-
);
|
|
81
|
-
},
|
|
82
|
-
args: {
|
|
83
|
-
selectedDay: {
|
|
84
|
-
date: "",
|
|
85
|
-
dayName: "",
|
|
86
|
-
fullDate: new Date(""),
|
|
87
|
-
},
|
|
88
|
-
handleSelectedDay: (date: ISelectedDay) => {
|
|
89
|
-
return date;
|
|
90
|
-
},
|
|
91
|
-
days: [],
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const FilterDateSelectorTodos: Story = {
|
|
96
|
-
name: "filter-journey-todos",
|
|
97
|
-
render: () => {
|
|
98
|
-
const [isLoading, setIsLoading] = React.useState(false);
|
|
99
|
-
|
|
100
|
-
const days = getLastSevenDays() as ISelectedDay[];
|
|
101
|
-
|
|
102
|
-
const [selectedDay, setSelectedDay] = React.useState<any>(days[0]);
|
|
103
|
-
|
|
104
|
-
// Função para lidar com a seleção de um dia
|
|
105
|
-
const handleSelectedDay = (day: ISelectedDay) => {
|
|
106
|
-
setSelectedDay(day);
|
|
107
|
-
setIsLoading(true);
|
|
108
|
-
// Simula um carregamento de 1 segundo
|
|
109
|
-
setTimeout(() => setIsLoading(false), 1000);
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
return (
|
|
113
|
-
<FilterDateSelector
|
|
114
|
-
selectedDay={selectedDay}
|
|
115
|
-
handleSelectedDay={handleSelectedDay as any}
|
|
116
|
-
days={days}
|
|
117
|
-
isLoading={isLoading}
|
|
118
|
-
/>
|
|
119
|
-
);
|
|
120
|
-
},
|
|
121
|
-
args: {}, // <- NÃO defina selectedDay/days aqui
|
|
122
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
3
|
+
import { FilterDateSelector } from "../../components/filter-date-selector";
|
|
4
|
+
import { getLastSevenDays } from "../../utils/format-data";
|
|
5
|
+
import { ISelectedDay } from "../../components/filter-date-selector/interface";
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof FilterDateSelector> = {
|
|
8
|
+
title: "componente/FilterDateSelector",
|
|
9
|
+
component: FilterDateSelector as React.FC,
|
|
10
|
+
args: {
|
|
11
|
+
selectedDay: {
|
|
12
|
+
date: "",
|
|
13
|
+
dayName: "",
|
|
14
|
+
fullDate: new Date(""),
|
|
15
|
+
},
|
|
16
|
+
handleSelectedDay: (date: ISelectedDay) => {
|
|
17
|
+
return date;
|
|
18
|
+
},
|
|
19
|
+
days: [],
|
|
20
|
+
},
|
|
21
|
+
parameters: {
|
|
22
|
+
notes: `
|
|
23
|
+
# FilterDateSelector
|
|
24
|
+
|
|
25
|
+
Este é um componente de filtro do dias .
|
|
26
|
+
Você usa assim:
|
|
27
|
+
\`\`\`tsx
|
|
28
|
+
<FilterDateSelector
|
|
29
|
+
selectedDay={selectedDay as any}
|
|
30
|
+
handleSelectedDay={setSelectedDay as any}
|
|
31
|
+
days={days as []}
|
|
32
|
+
isLoading={false}
|
|
33
|
+
/>
|
|
34
|
+
\`\`\`
|
|
35
|
+
`,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default meta;
|
|
40
|
+
|
|
41
|
+
type Story = StoryObj<typeof meta>;
|
|
42
|
+
|
|
43
|
+
export const FilterDateSelectorSimples: Story = {
|
|
44
|
+
name: "filter-journey",
|
|
45
|
+
render: () => {
|
|
46
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
47
|
+
const [selectedDay, setSelectedDay] = React.useState<ISelectedDay>({
|
|
48
|
+
date: "",
|
|
49
|
+
dayName: "",
|
|
50
|
+
fullDate: new Date(""),
|
|
51
|
+
});
|
|
52
|
+
const days = getLastSevenDays();
|
|
53
|
+
|
|
54
|
+
React.useEffect(() => {
|
|
55
|
+
const today = new Date();
|
|
56
|
+
|
|
57
|
+
setSelectedDay(
|
|
58
|
+
days.find(
|
|
59
|
+
(day) => day.date === today.getDate() && day.fullDate.getMonth() === today.getMonth()
|
|
60
|
+
) as any
|
|
61
|
+
);
|
|
62
|
+
}, []);
|
|
63
|
+
|
|
64
|
+
const handleSelectedDay = (day: ISelectedDay) => {
|
|
65
|
+
setSelectedDay(day);
|
|
66
|
+
setIsLoading(true);
|
|
67
|
+
|
|
68
|
+
/* global setTimeout */
|
|
69
|
+
setTimeout(() => {
|
|
70
|
+
setIsLoading(false);
|
|
71
|
+
}, 1000);
|
|
72
|
+
};
|
|
73
|
+
return (
|
|
74
|
+
<FilterDateSelector
|
|
75
|
+
selectedDay={selectedDay as any}
|
|
76
|
+
handleSelectedDay={handleSelectedDay as any}
|
|
77
|
+
days={days as []}
|
|
78
|
+
isLoading={isLoading}
|
|
79
|
+
/>
|
|
80
|
+
);
|
|
81
|
+
},
|
|
82
|
+
args: {
|
|
83
|
+
selectedDay: {
|
|
84
|
+
date: "",
|
|
85
|
+
dayName: "",
|
|
86
|
+
fullDate: new Date(""),
|
|
87
|
+
},
|
|
88
|
+
handleSelectedDay: (date: ISelectedDay) => {
|
|
89
|
+
return date;
|
|
90
|
+
},
|
|
91
|
+
days: [],
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const FilterDateSelectorTodos: Story = {
|
|
96
|
+
name: "filter-journey-todos",
|
|
97
|
+
render: () => {
|
|
98
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
99
|
+
|
|
100
|
+
const days = getLastSevenDays() as ISelectedDay[];
|
|
101
|
+
|
|
102
|
+
const [selectedDay, setSelectedDay] = React.useState<any>(days[0]);
|
|
103
|
+
|
|
104
|
+
// Função para lidar com a seleção de um dia
|
|
105
|
+
const handleSelectedDay = (day: ISelectedDay) => {
|
|
106
|
+
setSelectedDay(day);
|
|
107
|
+
setIsLoading(true);
|
|
108
|
+
// Simula um carregamento de 1 segundo
|
|
109
|
+
setTimeout(() => setIsLoading(false), 1000);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
return (
|
|
113
|
+
<FilterDateSelector
|
|
114
|
+
selectedDay={selectedDay}
|
|
115
|
+
handleSelectedDay={handleSelectedDay as any}
|
|
116
|
+
days={days}
|
|
117
|
+
isLoading={isLoading}
|
|
118
|
+
/>
|
|
119
|
+
);
|
|
120
|
+
},
|
|
121
|
+
args: {}, // <- NÃO defina selectedDay/days aqui
|
|
122
|
+
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
-
import { HistoryDetails } from "../../components/history-details";
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof HistoryDetails> = {
|
|
5
|
-
title: "componente/HistoryDetails",
|
|
6
|
-
component: HistoryDetails,
|
|
7
|
-
args: {
|
|
8
|
-
numero: "01020304050607",
|
|
9
|
-
local: "Doca 1, Pátio 02 - Usimais (Ipatinga)",
|
|
10
|
-
date: "24/03/2025",
|
|
11
|
-
duracao: "00:30",
|
|
12
|
-
},
|
|
13
|
-
parameters: {
|
|
14
|
-
notes: ` HistoryDetails Este é um componente de detalhe do histórico.Você usa assim:
|
|
15
|
-
<HistoryDetails
|
|
16
|
-
numero="999999"
|
|
17
|
-
local="Doca 3, Pátio 05 - Usiminas (Ipatinga)"
|
|
18
|
-
date="2026-01-01"
|
|
19
|
-
duracao="01:15"
|
|
20
|
-
/>`,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default meta;
|
|
25
|
-
|
|
26
|
-
type Story = StoryObj<typeof meta>;
|
|
27
|
-
|
|
28
|
-
export const Padrao: Story = {
|
|
29
|
-
name: "history-details-padrao",
|
|
30
|
-
args: {
|
|
31
|
-
numero: "01020304050607",
|
|
32
|
-
local: "Doca 1, Pátio 02 - Usimais (Ipatinga)",
|
|
33
|
-
date: "2025-03-24",
|
|
34
|
-
duracao: "00:30",
|
|
35
|
-
},
|
|
36
|
-
};
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import { HistoryDetails } from "../../components/history-details";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof HistoryDetails> = {
|
|
5
|
+
title: "componente/HistoryDetails",
|
|
6
|
+
component: HistoryDetails,
|
|
7
|
+
args: {
|
|
8
|
+
numero: "01020304050607",
|
|
9
|
+
local: "Doca 1, Pátio 02 - Usimais (Ipatinga)",
|
|
10
|
+
date: "24/03/2025",
|
|
11
|
+
duracao: "00:30",
|
|
12
|
+
},
|
|
13
|
+
parameters: {
|
|
14
|
+
notes: ` HistoryDetails Este é um componente de detalhe do histórico.Você usa assim:
|
|
15
|
+
<HistoryDetails
|
|
16
|
+
numero="999999"
|
|
17
|
+
local="Doca 3, Pátio 05 - Usiminas (Ipatinga)"
|
|
18
|
+
date="2026-01-01"
|
|
19
|
+
duracao="01:15"
|
|
20
|
+
/>`,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default meta;
|
|
25
|
+
|
|
26
|
+
type Story = StoryObj<typeof meta>;
|
|
27
|
+
|
|
28
|
+
export const Padrao: Story = {
|
|
29
|
+
name: "history-details-padrao",
|
|
30
|
+
args: {
|
|
31
|
+
numero: "01020304050607",
|
|
32
|
+
local: "Doca 1, Pátio 02 - Usimais (Ipatinga)",
|
|
33
|
+
date: "2025-03-24",
|
|
34
|
+
duracao: "00:30",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
4
|
-
import { ImageCaptureWithRemove } from "../../components/image-capture-with-remove";
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof ImageCaptureWithRemove> = {
|
|
7
|
-
title: "componente/ImageCaptureWithRemove",
|
|
8
|
-
component: ImageCaptureWithRemove as React.FC,
|
|
9
|
-
args: {
|
|
10
|
-
foto: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s",
|
|
11
|
-
status: "Cancelado",
|
|
12
|
-
},
|
|
13
|
-
parameters: {
|
|
14
|
-
notes: `
|
|
15
|
-
# ImageCaptureWithRemove
|
|
16
|
-
|
|
17
|
-
Este é um componente de ImageCaptureWithRemove.
|
|
18
|
-
Você usa assim:
|
|
19
|
-
\`\`\`tsx
|
|
20
|
-
<ImageCaptureWithRemove
|
|
21
|
-
|
|
22
|
-
/>
|
|
23
|
-
\`\`\`
|
|
24
|
-
`,
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default meta;
|
|
29
|
-
|
|
30
|
-
type Story = StoryObj<typeof meta>;
|
|
31
|
-
|
|
32
|
-
export const ImageCapture: Story = {
|
|
33
|
-
name: "image-capture-with",
|
|
34
|
-
args: {
|
|
35
|
-
foto: null,
|
|
36
|
-
handleTakePhoto: () => {},
|
|
37
|
-
onRemove: () => {},
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const ImageCaptureWithDelete: Story = {
|
|
42
|
-
name: "image-capture-with-delete",
|
|
43
|
-
args: {
|
|
44
|
-
foto: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s",
|
|
45
|
-
handleTakePhoto: () => {},
|
|
46
|
-
onRemove: () => {},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
export const ImageCaptureWithStatus: Story = {
|
|
50
|
-
name: "image-capture-with-status",
|
|
51
|
-
args: {
|
|
52
|
-
foto: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s",
|
|
53
|
-
handleTakePhoto: () => {},
|
|
54
|
-
onRemove: () => {},
|
|
55
|
-
status: "Pendente",
|
|
56
|
-
},
|
|
57
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
4
|
+
import { ImageCaptureWithRemove } from "../../components/image-capture-with-remove";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ImageCaptureWithRemove> = {
|
|
7
|
+
title: "componente/ImageCaptureWithRemove",
|
|
8
|
+
component: ImageCaptureWithRemove as React.FC,
|
|
9
|
+
args: {
|
|
10
|
+
foto: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s",
|
|
11
|
+
status: "Cancelado",
|
|
12
|
+
},
|
|
13
|
+
parameters: {
|
|
14
|
+
notes: `
|
|
15
|
+
# ImageCaptureWithRemove
|
|
16
|
+
|
|
17
|
+
Este é um componente de ImageCaptureWithRemove.
|
|
18
|
+
Você usa assim:
|
|
19
|
+
\`\`\`tsx
|
|
20
|
+
<ImageCaptureWithRemove
|
|
21
|
+
|
|
22
|
+
/>
|
|
23
|
+
\`\`\`
|
|
24
|
+
`,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default meta;
|
|
29
|
+
|
|
30
|
+
type Story = StoryObj<typeof meta>;
|
|
31
|
+
|
|
32
|
+
export const ImageCapture: Story = {
|
|
33
|
+
name: "image-capture-with",
|
|
34
|
+
args: {
|
|
35
|
+
foto: null,
|
|
36
|
+
handleTakePhoto: () => {},
|
|
37
|
+
onRemove: () => {},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const ImageCaptureWithDelete: Story = {
|
|
42
|
+
name: "image-capture-with-delete",
|
|
43
|
+
args: {
|
|
44
|
+
foto: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s",
|
|
45
|
+
handleTakePhoto: () => {},
|
|
46
|
+
onRemove: () => {},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
export const ImageCaptureWithStatus: Story = {
|
|
50
|
+
name: "image-capture-with-status",
|
|
51
|
+
args: {
|
|
52
|
+
foto: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s",
|
|
53
|
+
handleTakePhoto: () => {},
|
|
54
|
+
onRemove: () => {},
|
|
55
|
+
status: "Pendente",
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import { ModalActivities } from "../../components/modal-activities";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof ModalActivities> = {
|
|
5
|
+
title: "componente/ModalActivities",
|
|
6
|
+
component: ModalActivities,
|
|
7
|
+
args: {
|
|
8
|
+
width: 120,
|
|
9
|
+
onClose: () => {},
|
|
10
|
+
isLoading: false,
|
|
11
|
+
handleActivity: (activity: string) => () => {
|
|
12
|
+
return activity;
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
parameters: {
|
|
16
|
+
notes: `
|
|
17
|
+
# MenuItem
|
|
18
|
+
|
|
19
|
+
Este é um componente de MenuItem de menu.
|
|
20
|
+
Você usa assim:
|
|
21
|
+
\`\`\`tsx
|
|
22
|
+
<ModalActivities
|
|
23
|
+
{...args}
|
|
24
|
+
onClose={() => setIsVisible(false)}
|
|
25
|
+
handleActivity={handleActivity}
|
|
26
|
+
/>
|
|
27
|
+
\`\`\`
|
|
28
|
+
`,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default meta;
|
|
33
|
+
|
|
34
|
+
type Story = StoryObj<typeof meta>;
|
|
35
|
+
|
|
36
|
+
export const Default: Story = {
|
|
37
|
+
name: "modal-activities",
|
|
38
|
+
args: {
|
|
39
|
+
width: 120,
|
|
40
|
+
isLoading: false,
|
|
41
|
+
onClose: () => {},
|
|
42
|
+
handleActivity: (activity: string) => () => {
|
|
43
|
+
return activity;
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|