react-native-exp-fig 0.1.38 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/modal-create-activitie/index.js +17 -13
- package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -1
- package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -1
- package/lib/commonjs/components/modal-journey-rectification/index.js +10 -10
- package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -1
- package/lib/commonjs/components/modals/modal-activities/data-activities/index.js +25 -1
- package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -1
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +6 -5
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -1
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -1
- package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/index.js +12 -10
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/interface.d.js.map +1 -1
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +8 -8
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +9 -1
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +35 -23
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
- package/lib/module/components/modal-create-activitie/index.js +17 -13
- package/lib/module/components/modal-create-activitie/index.js.map +1 -1
- package/lib/module/components/modal-create-activitie/interface.js.map +1 -1
- package/lib/module/components/modal-journey-rectification/index.js +10 -10
- package/lib/module/components/modal-journey-rectification/index.js.map +1 -1
- package/lib/module/components/modals/modal-activities/data-activities/index.js +24 -0
- package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -1
- package/lib/module/components/modals/modal-activity-reason/index.js +6 -5
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -1
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -1
- package/lib/module/components/modals/modal-change-activity/index.js.map +1 -1
- package/lib/module/components/selects/select-option/index.js +12 -10
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/selects/select-option/interface.d.js.map +1 -1
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +8 -8
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -1
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +9 -1
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -1
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +35 -23
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
- package/lib/typescript/src/components/modal-create-activitie/interface.d.ts +1 -0
- package/lib/typescript/src/components/modals/modal-activities/data-activities/index.d.ts +7 -0
- package/package.json +4 -8
- package/src/components/modal-create-activitie/index.tsx +216 -211
- package/src/components/modal-create-activitie/interface.ts +23 -22
- package/src/components/modal-journey-rectification/index.tsx +213 -211
- package/src/components/modals/modal-activities/data-activities/index.ts +31 -0
- package/src/components/modals/modal-activity-reason/index.tsx +163 -162
- package/src/components/modals/modal-activity-reason/interface.d.ts +10 -10
- package/src/components/modals/modal-change-activity/index.tsx +1 -1
- package/src/components/selects/select-option/index.tsx +133 -124
- package/src/components/selects/select-option/interface.d.ts +19 -18
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -192
- package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +8 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +170 -161
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-undef */
|
|
1
2
|
/**
|
|
2
3
|
* IMPORTS
|
|
3
4
|
*/
|
|
@@ -72,7 +73,14 @@ export const Fechado = {
|
|
|
72
73
|
export const Aberto = {
|
|
73
74
|
args: {
|
|
74
75
|
visible: true,
|
|
75
|
-
textTitle: "Incluir atividade"
|
|
76
|
+
textTitle: "Incluir atividade",
|
|
77
|
+
optionSelected: {
|
|
78
|
+
value: 22,
|
|
79
|
+
label: "Em operação - Carregamento"
|
|
80
|
+
},
|
|
81
|
+
onPressConfirm: payload => {
|
|
82
|
+
console.log("payload", payload);
|
|
83
|
+
}
|
|
76
84
|
}
|
|
77
85
|
};
|
|
78
86
|
//# sourceMappingURL=modal-create-activitie.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ModalCreteActivitie","meta","title","component","args","visible","textTitle","argTypes","onClose","action","onPressConfirm","control","description","parameters","docs","Playground","render","createElement","Fechado","Aberto"],"sources":["modal-create-activitie.stories.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\n\n// component\nimport ModalCreteActivitie from \"../../components/modal-create-activitie\";\n\n// utils / types\ntype Props = React.ComponentProps<typeof ModalCreteActivitie>;\n\nconst meta: Meta<typeof ModalCreteActivitie> = {\n title: \"Componente/ModalCreteActivitie\",\n component: ModalCreteActivitie,\n args: {\n visible: false,\n textTitle: \"Incluir atividade\",\n },\n argTypes: {\n onClose: { action: \"onClose\" },\n onPressConfirm: { action: \"onPressConfirm\" },\n textTitle: {\n control: \"text\",\n description: \"Título exibido no cabeçalho do modal\",\n },\n visible: {\n control: \"boolean\",\n description: \"Controla a visibilidade do modal\",\n },\n },\n parameters: {\n docs: {\n description: {\n component: `\n### ModalCreteActivitie\nModal para incluir uma atividade com motivo, data e hora.\n\n#### Uso\n\\`\\`\\`tsx\n<ModalCreteActivitie\n visible={visible}\n onClose={() => {}}\n onPressConfirm={(payload) => {}}\n textTitle=\"Incluir atividade\"\n/>\n\\`\\`\\`\n\n- \\`visible\\`: abre/fecha o modal\n- \\`onClose\\`: chamado ao cancelar/fechar\n- \\`onPressConfirm\\`: retorna { reasonValue, label, dateAndHours }\n- \\`textTitle\\`: título opcional\n `,\n },\n },\n },\n} as Meta<typeof ModalCreteActivitie>;\n\nexport default meta;\n\ntype Story = StoryObj<typeof ModalCreteActivitie>;\n\n/**\n * Apenas controla via Controls (visible true/false no painel do Storybook).\n * Evita Template com \"args: any\" e mantém tipagem estrita.\n */\nexport const Playground: Story = {\n render: (args: Props) => <ModalCreteActivitie {...args} />,\n};\n\nexport const Fechado: Story = {\n args: {\n visible: false,\n },\n};\n\nexport const Aberto: Story = {\n args: {\n visible: true,\n textTitle: \"Incluir atividade\",\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAGzB;AACA,OAAOC,mBAAmB,MAAM,yCAAyC;;AAEzE;;AAGA,MAAMC,IAAsC,GAAG;EAC7CC,KAAK,EAAE,gCAAgC;EACvCC,SAAS,EAAEH,mBAAmB;EAC9BI,IAAI,EAAE;IACJC,OAAO,EAAE,KAAK;IACdC,SAAS,EAAE;EACb,CAAC;EACDC,QAAQ,EAAE;IACRC,OAAO,EAAE;MAAEC,MAAM,EAAE;IAAU,CAAC;IAC9BC,cAAc,EAAE;MAAED,MAAM,EAAE;IAAiB,CAAC;IAC5CH,SAAS,EAAE;MACTK,OAAO,EAAE,MAAM;MACfC,WAAW,EAAE;IACf,CAAC;IACDP,OAAO,EAAE;MACPM,OAAO,EAAE,SAAS;MAClBC,WAAW,EAAE;IACf;EACF,CAAC;EACDC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJF,WAAW,EAAE;QACXT,SAAS,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACM;IACF;EACF;AACF,CAAqC;AAErC,eAAeF,IAAI;AAInB;AACA;AACA;AACA;AACA,OAAO,MAAMc,UAAiB,GAAG;EAC/BC,MAAM,EAAGZ,IAAW,iBAAKL,KAAA,CAAAkB,aAAA,CAACjB,mBAAmB,EAAKI,IAAO;AAC3D,CAAC;AAED,OAAO,MAAMc,OAAc,GAAG;EAC5Bd,IAAI,EAAE;IACJC,OAAO,EAAE;EACX;AACF,CAAC;AAED,OAAO,MAAMc,MAAa,GAAG;EAC3Bf,IAAI,EAAE;IACJC,OAAO,EAAE,IAAI;IACbC,SAAS,EAAE;
|
|
1
|
+
{"version":3,"names":["React","ModalCreteActivitie","meta","title","component","args","visible","textTitle","argTypes","onClose","action","onPressConfirm","control","description","parameters","docs","Playground","render","createElement","Fechado","Aberto","optionSelected","value","label","payload","console","log"],"sources":["modal-create-activitie.stories.tsx"],"sourcesContent":["/* eslint-disable no-undef */\n/**\n * IMPORTS\n */\nimport React from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\n\n// component\nimport ModalCreteActivitie from \"../../components/modal-create-activitie\";\n\n// utils / types\ntype Props = React.ComponentProps<typeof ModalCreteActivitie>;\n\nconst meta: Meta<typeof ModalCreteActivitie> = {\n title: \"Componente/ModalCreteActivitie\",\n component: ModalCreteActivitie,\n args: {\n visible: false,\n textTitle: \"Incluir atividade\",\n },\n argTypes: {\n onClose: { action: \"onClose\" },\n onPressConfirm: { action: \"onPressConfirm\" },\n textTitle: {\n control: \"text\",\n description: \"Título exibido no cabeçalho do modal\",\n },\n visible: {\n control: \"boolean\",\n description: \"Controla a visibilidade do modal\",\n },\n },\n parameters: {\n docs: {\n description: {\n component: `\n### ModalCreteActivitie\nModal para incluir uma atividade com motivo, data e hora.\n\n#### Uso\n\\`\\`\\`tsx\n<ModalCreteActivitie\n visible={visible}\n onClose={() => {}}\n onPressConfirm={(payload) => {}}\n textTitle=\"Incluir atividade\"\n/>\n\\`\\`\\`\n\n- \\`visible\\`: abre/fecha o modal\n- \\`onClose\\`: chamado ao cancelar/fechar\n- \\`onPressConfirm\\`: retorna { reasonValue, label, dateAndHours }\n- \\`textTitle\\`: título opcional\n `,\n },\n },\n },\n} as Meta<typeof ModalCreteActivitie>;\n\nexport default meta;\n\ntype Story = StoryObj<typeof ModalCreteActivitie>;\n\n/**\n * Apenas controla via Controls (visible true/false no painel do Storybook).\n * Evita Template com \"args: any\" e mantém tipagem estrita.\n */\nexport const Playground: Story = {\n render: (args: Props) => <ModalCreteActivitie {...args} />,\n};\n\nexport const Fechado: Story = {\n args: {\n visible: false,\n },\n};\n\nexport const Aberto: Story = {\n args: {\n visible: true,\n textTitle: \"Incluir atividade\",\n optionSelected: {\n value: 22,\n label: \"Em operação - Carregamento\",\n },\n onPressConfirm: (payload) => {\n console.log(\"payload\", payload);\n },\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAGzB;AACA,OAAOC,mBAAmB,MAAM,yCAAyC;;AAEzE;;AAGA,MAAMC,IAAsC,GAAG;EAC7CC,KAAK,EAAE,gCAAgC;EACvCC,SAAS,EAAEH,mBAAmB;EAC9BI,IAAI,EAAE;IACJC,OAAO,EAAE,KAAK;IACdC,SAAS,EAAE;EACb,CAAC;EACDC,QAAQ,EAAE;IACRC,OAAO,EAAE;MAAEC,MAAM,EAAE;IAAU,CAAC;IAC9BC,cAAc,EAAE;MAAED,MAAM,EAAE;IAAiB,CAAC;IAC5CH,SAAS,EAAE;MACTK,OAAO,EAAE,MAAM;MACfC,WAAW,EAAE;IACf,CAAC;IACDP,OAAO,EAAE;MACPM,OAAO,EAAE,SAAS;MAClBC,WAAW,EAAE;IACf;EACF,CAAC;EACDC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJF,WAAW,EAAE;QACXT,SAAS,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACM;IACF;EACF;AACF,CAAqC;AAErC,eAAeF,IAAI;AAInB;AACA;AACA;AACA;AACA,OAAO,MAAMc,UAAiB,GAAG;EAC/BC,MAAM,EAAGZ,IAAW,iBAAKL,KAAA,CAAAkB,aAAA,CAACjB,mBAAmB,EAAKI,IAAO;AAC3D,CAAC;AAED,OAAO,MAAMc,OAAc,GAAG;EAC5Bd,IAAI,EAAE;IACJC,OAAO,EAAE;EACX;AACF,CAAC;AAED,OAAO,MAAMc,MAAa,GAAG;EAC3Bf,IAAI,EAAE;IACJC,OAAO,EAAE,IAAI;IACbC,SAAS,EAAE,mBAAmB;IAC9Bc,cAAc,EAAE;MACdC,KAAK,EAAE,EAAE;MACTC,KAAK,EAAE;IACT,CAAC;IACDZ,cAAc,EAAGa,OAAO,IAAK;MAC3BC,OAAO,CAACC,GAAG,CAAC,SAAS,EAAEF,OAAO,CAAC;IACjC;EACF;AACF,CAAC","ignoreList":[]}
|
package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS (Storybook)
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS (Storybook)
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { View } from "react-native";
|
|
7
7
|
import { action } from "@storybook/addon-actions";
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* IMPORTS (Componente)
|
|
11
|
-
* Ajuste o caminho conforme sua estrutura (ex.: "../index" ou "./index").
|
|
9
|
+
/**
|
|
10
|
+
* IMPORTS (Componente)
|
|
11
|
+
* Ajuste o caminho conforme sua estrutura (ex.: "../index" ou "./index").
|
|
12
12
|
*/
|
|
13
13
|
import ModalJourneyRectification from "../../components/modal-create-activitie";
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* DECORATORS
|
|
17
|
-
* Envolve o story para garantir área de visualização e evitar "modal perdido".
|
|
15
|
+
/**
|
|
16
|
+
* DECORATORS
|
|
17
|
+
* Envolve o story para garantir área de visualização e evitar "modal perdido".
|
|
18
18
|
*/
|
|
19
19
|
const WithViewport = ({
|
|
20
20
|
children
|
|
@@ -30,8 +30,8 @@ const WithViewport = ({
|
|
|
30
30
|
}, children);
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* META
|
|
33
|
+
/**
|
|
34
|
+
* META
|
|
35
35
|
*/
|
|
36
36
|
const meta = {
|
|
37
37
|
title: "Componente/ModalJourneyRectification",
|
|
@@ -107,21 +107,25 @@ import ModalJourneyRectification from "caminho/do/componente";
|
|
|
107
107
|
};
|
|
108
108
|
export default meta;
|
|
109
109
|
|
|
110
|
-
/**
|
|
111
|
-
* STORIES
|
|
110
|
+
/**
|
|
111
|
+
* STORIES
|
|
112
112
|
*/
|
|
113
113
|
|
|
114
|
-
/**
|
|
115
|
-
* Estado padrão (fechado).
|
|
114
|
+
/**
|
|
115
|
+
* Estado padrão (fechado).
|
|
116
116
|
*/
|
|
117
117
|
export const Default = {};
|
|
118
118
|
|
|
119
|
-
/**
|
|
120
|
-
* Modal visível para inspeção visual.
|
|
119
|
+
/**
|
|
120
|
+
* Modal visível para inspeção visual.
|
|
121
121
|
*/
|
|
122
122
|
export const Opened = {
|
|
123
123
|
args: {
|
|
124
|
-
visible: true
|
|
124
|
+
visible: true,
|
|
125
|
+
optionSelected: {
|
|
126
|
+
value: 22,
|
|
127
|
+
label: "Em operação - Carregamento"
|
|
128
|
+
}
|
|
125
129
|
},
|
|
126
130
|
parameters: {
|
|
127
131
|
docs: {
|
|
@@ -132,13 +136,17 @@ export const Opened = {
|
|
|
132
136
|
}
|
|
133
137
|
};
|
|
134
138
|
|
|
135
|
-
/**
|
|
136
|
-
* Título customizado (ex.: para variações de copy).
|
|
139
|
+
/**
|
|
140
|
+
* Título customizado (ex.: para variações de copy).
|
|
137
141
|
*/
|
|
138
142
|
export const WithCustomTitle = {
|
|
139
143
|
args: {
|
|
140
144
|
visible: true,
|
|
141
|
-
textTitle: "
|
|
145
|
+
textTitle: "Editar atividade",
|
|
146
|
+
optionSelected: {
|
|
147
|
+
value: 22,
|
|
148
|
+
label: "Em operação - Carregamento"
|
|
149
|
+
}
|
|
142
150
|
},
|
|
143
151
|
parameters: {
|
|
144
152
|
docs: {
|
|
@@ -149,13 +157,17 @@ export const WithCustomTitle = {
|
|
|
149
157
|
}
|
|
150
158
|
};
|
|
151
159
|
|
|
152
|
-
/**
|
|
153
|
-
* Playground — ajuste livre via Controls.
|
|
160
|
+
/**
|
|
161
|
+
* Playground — ajuste livre via Controls.
|
|
154
162
|
*/
|
|
155
163
|
export const Playground = {
|
|
156
164
|
args: {
|
|
157
165
|
visible: false,
|
|
158
|
-
textTitle: "Editar atividade"
|
|
166
|
+
textTitle: "Editar atividade",
|
|
167
|
+
optionSelected: {
|
|
168
|
+
value: 22,
|
|
169
|
+
label: "Em operação - Carregamento"
|
|
170
|
+
}
|
|
159
171
|
},
|
|
160
172
|
parameters: {
|
|
161
173
|
docs: {
|
package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","action","ModalJourneyRectification","WithViewport","children","createElement","style","flex","minHeight","alignItems","justifyContent","backgroundColor","meta","title","component","args","visible","textTitle","onClose","onPressConfirm","argTypes","control","type","description","table","category","parameters","layout","docs","decorators","Story","Default","Opened","story","WithCustomTitle","Playground"],"sources":["modal-journey-rectification.stories.tsx"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["React","View","action","ModalJourneyRectification","WithViewport","children","createElement","style","flex","minHeight","alignItems","justifyContent","backgroundColor","meta","title","component","args","visible","textTitle","onClose","onPressConfirm","argTypes","control","type","description","table","category","parameters","layout","docs","decorators","Story","Default","Opened","optionSelected","value","label","story","WithCustomTitle","Playground"],"sources":["modal-journey-rectification.stories.tsx"],"sourcesContent":["/**\n * IMPORTS (Storybook)\n */\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport React from \"react\";\nimport { View } from \"react-native\";\nimport { action } from \"@storybook/addon-actions\";\n\n/**\n * IMPORTS (Componente)\n * Ajuste o caminho conforme sua estrutura (ex.: \"../index\" ou \"./index\").\n */\nimport ModalJourneyRectification from \"../../components/modal-create-activitie\";\n\n/**\n * DECORATORS\n * Envolve o story para garantir área de visualização e evitar \"modal perdido\".\n */\nconst WithViewport: React.FC<React.PropsWithChildren> = ({ children }) => {\n return (\n <View\n style={{\n flex: 1,\n minHeight: 600,\n alignItems: \"center\",\n justifyContent: \"center\",\n backgroundColor: \"#F3F4F6\", // neutro claro p/ destacar o modal\n }}\n >\n {children}\n </View>\n );\n};\n\n/**\n * META\n */\nconst meta: Meta<typeof ModalJourneyRectification> = {\n title: \"Componente/ModalJourneyRectification\",\n component: ModalJourneyRectification,\n args: {\n visible: false,\n textTitle: \"Editar atividade\",\n onClose: action(\"onClose\"), // ação capturada no painel \"Actions\"\n onPressConfirm: action(\"onPressConfirm\"), // idem\n },\n argTypes: {\n visible: {\n control: { type: \"boolean\" },\n description: \"Define a visibilidade do modal.\",\n table: { category: \"Controle\" },\n },\n textTitle: {\n control: { type: \"text\" },\n description: \"Título exibido no cabeçalho do modal.\",\n table: { category: \"Conteúdo\" },\n },\n onClose: {\n description: \"Callback ao cancelar/fechar o modal.\",\n table: { category: \"Eventos\" },\n },\n onPressConfirm: {\n description: \"Callback ao confirmar. Recebe { reasonValue, label, dateAndHours }.\",\n table: { category: \"Eventos\" },\n },\n },\n parameters: {\n layout: \"fullscreen\",\n docs: {\n description: {\n component: `\n### ModalJourneyRectification\nModal para **Editar uma atividade** (motivo + data e hora) seguindo o design do sistema.\n\n#### Uso básico\n\\`\\`\\`tsx\nimport ModalJourneyRectification from \"caminho/do/componente\";\n\n<ModalJourneyRectification\n visible={true}\n textTitle=\"Edutar atividade\"\n onClose={() => {/* fechar */}}\n onPressConfirm={(payload) => {\n // payload: { reasonValue, label, dateAndHours: { date, hours } }\n }}\n/>\n\\`\\`\\`\n\n- Ao confirmar, o componente dispara o \\`onPressConfirm\\` com os dados selecionados e **fecha** em seguida.\n- O clique no overlay ou o botão \"CANCELAR\" disparam \\`onClose\\`.\n `,\n },\n },\n },\n decorators: [(Story) => <WithViewport>{Story()}</WithViewport>],\n};\nexport default meta;\n\n/**\n * STORIES\n */\ntype Story = StoryObj<typeof ModalJourneyRectification>;\n\n/**\n * Estado padrão (fechado).\n */\nexport const Default: Story = {};\n\n/**\n * Modal visível para inspeção visual.\n */\nexport const Opened: Story = {\n args: {\n visible: true,\n optionSelected: {\n value: 22,\n label: \"Em operação - Carregamento\",\n },\n },\n parameters: {\n docs: {\n description: {\n story: \"Exibe o modal aberto para validar layout, overlay e botões de ação.\",\n },\n },\n },\n};\n\n/**\n * Título customizado (ex.: para variações de copy).\n */\nexport const WithCustomTitle: Story = {\n args: {\n visible: true,\n textTitle: \"Editar atividade\",\n optionSelected: {\n value: 22,\n label: \"Em operação - Carregamento\",\n },\n },\n parameters: {\n docs: {\n description: {\n story: \"Permite validar a troca do título e o encaixe no cabeçalho do modal.\",\n },\n },\n },\n};\n\n/**\n * Playground — ajuste livre via Controls.\n */\nexport const Playground: Story = {\n args: {\n visible: false,\n textTitle: \"Editar atividade\",\n optionSelected: {\n value: 22,\n label: \"Em operação - Carregamento\",\n },\n },\n parameters: {\n docs: {\n description: {\n story:\n \"Use os **Controls** para alternar `visible` e personalizar `textTitle`. As ações aparecem no painel *Actions*.\",\n },\n },\n },\n};\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -12,3 +12,10 @@ export interface IActivity {
|
|
|
12
12
|
* Atividades específicas por tipo de usuário
|
|
13
13
|
*/
|
|
14
14
|
export declare const activitiesByDriverType: Record<string, Record<string, IActivity[]>>;
|
|
15
|
+
/**
|
|
16
|
+
* Atividades para retificação
|
|
17
|
+
*/
|
|
18
|
+
export declare const retificacaoActivities: {
|
|
19
|
+
value: number;
|
|
20
|
+
label: string;
|
|
21
|
+
}[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-exp-fig",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"description": "Biblioteca para desenvolvimento dos componentes para utilizar nos app da Expresso Figueiredo.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
"babel-plugin-react-docgen-typescript": "^1.5.1",
|
|
106
106
|
"babel-plugin-react-native-web": "^0.19.12",
|
|
107
107
|
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
108
|
+
"baseline-browser-mapping": "2.9.2",
|
|
108
109
|
"commitlint": "^17.0.2",
|
|
109
110
|
"del-cli": "^5.1.0",
|
|
110
111
|
"eslint": "^9.19.0",
|
|
@@ -181,19 +182,14 @@
|
|
|
181
182
|
},
|
|
182
183
|
"dependencies": {
|
|
183
184
|
"@react-native-async-storage/async-storage": "^2.0.0",
|
|
184
|
-
"@react-native-community/datetimepicker": "8.
|
|
185
|
+
"@react-native-community/datetimepicker": ">=8.0.0",
|
|
185
186
|
"@react-native-community/slider": "^4.5.3",
|
|
186
187
|
"@storybook/test": "^8.3.0",
|
|
187
188
|
"jest-environment-jsdom": "^29.7.0",
|
|
188
189
|
"jest-matcher-utils": "^29.7.0",
|
|
189
|
-
"react": "*",
|
|
190
|
-
"react-dom": "*",
|
|
191
|
-
"react-native": "*",
|
|
192
|
-
"react-native-exp-fig": "^0.1.34",
|
|
193
190
|
"react-native-gesture-handler": "^2.19.0",
|
|
194
191
|
"react-native-reanimated": "^3.16.7",
|
|
195
|
-
"react-native-
|
|
196
|
-
"react-native-svg": "^15.6.0",
|
|
192
|
+
"react-native-svg": "15.15.1",
|
|
197
193
|
"react-native-web": "^0.19.12",
|
|
198
194
|
"ts-jest": "^29.1.1",
|
|
199
195
|
"ts-node": "^10.9.1",
|