react-native-exp-fig 0.1.26 → 0.1.27
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/input-text-counter/index.js +66 -0
- package/lib/commonjs/components/input-text-counter/index.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/interface.d.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/styles.js +42 -0
- package/lib/commonjs/components/input-text-counter/styles.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/index.js +202 -0
- package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/interface.js +2 -0
- package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/styles.js +42 -0
- package/lib/commonjs/components/modal-create-activitie/styles.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/index.js +202 -0
- package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/interface.d.js +2 -0
- package/lib/commonjs/components/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/styles.js +42 -0
- package/lib/commonjs/components/modal-journey-rectification/styles.js.map +1 -0
- package/lib/commonjs/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
- package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -0
- package/lib/commonjs/components/{modal-activities → modals/modal-activities}/index.js +8 -8
- package/lib/commonjs/components/modals/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activities/interface.d.js +6 -0
- package/lib/commonjs/components/modals/modal-activities/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +161 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/commonjs/components/{modal-change-activity → modals/modal-change-activity}/index.js +7 -7
- package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js +95 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js +33 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/commonjs/components/selects/select-option/index.js +41 -39
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +7 -7
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/index.js +32 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js +259 -0
- package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +198 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +86 -0
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +172 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/commonjs/stories/select-option/select-option.stories.js +3 -2
- package/lib/commonjs/stories/select-option/select-option.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +18 -2
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/options-activity/index.js +27 -0
- package/lib/commonjs/utils/options-activity/index.js.map +1 -0
- package/lib/commonjs/utils/text-limit/index.js +37 -0
- package/lib/commonjs/utils/text-limit/index.js.map +1 -0
- package/lib/module/components/input-text-counter/index.js +63 -0
- package/lib/module/components/input-text-counter/index.js.map +1 -0
- package/lib/module/components/input-text-counter/interface.d.js.map +1 -0
- package/lib/module/components/input-text-counter/styles.js +37 -0
- package/lib/module/components/input-text-counter/styles.js.map +1 -0
- package/lib/module/components/modal-create-activitie/index.js +192 -0
- package/lib/module/components/modal-create-activitie/index.js.map +1 -0
- package/lib/module/components/modal-create-activitie/interface.js +2 -0
- package/lib/module/components/modal-create-activitie/interface.js.map +1 -0
- package/lib/module/components/modal-create-activitie/styles.js +37 -0
- package/lib/module/components/modal-create-activitie/styles.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/index.js +192 -0
- package/lib/module/components/modal-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/interface.d.js +2 -0
- package/lib/module/components/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/styles.js +37 -0
- package/lib/module/components/modal-journey-rectification/styles.js.map +1 -0
- package/lib/module/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
- package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -0
- package/lib/module/components/{modal-activities → modals/modal-activities}/index.js +8 -8
- package/lib/module/components/modals/modal-activities/index.js.map +1 -0
- package/lib/module/components/modals/modal-activities/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activities/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/index.js +151 -0
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/module/components/{modal-change-activity → modals/modal-change-activity}/index.js +6 -6
- package/lib/module/components/modals/modal-change-activity/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/index.js +86 -0
- package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js +2 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js +28 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/module/components/selects/select-option/index.js +41 -42
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +7 -7
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/index.js +9 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/input-text-counter/input-text-counter.stories.js +253 -0
- package/lib/module/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
- package/lib/module/stories/modal-activities/modal-activities.stories.js +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +193 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +78 -0
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +168 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/module/stories/select-option/select-option.stories.js +1 -1
- package/lib/module/stories/select-option/select-option.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +18 -2
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/options-activity/index.js +22 -0
- package/lib/module/utils/options-activity/index.js.map +1 -0
- package/lib/module/utils/text-limit/index.js +30 -0
- package/lib/module/utils/text-limit/index.js.map +1 -0
- package/lib/typescript/src/components/input-text-counter/index.d.ts +33 -0
- package/lib/typescript/src/components/input-text-counter/styles.d.ts +34 -0
- package/lib/typescript/src/components/modal-create-activitie/index.d.ts +7 -0
- package/lib/typescript/src/components/modal-create-activitie/interface.d.ts +18 -0
- package/lib/typescript/src/components/modal-create-activitie/styles.d.ts +32 -0
- package/lib/typescript/src/components/modal-journey-rectification/index.d.ts +7 -0
- package/lib/typescript/src/components/modal-journey-rectification/styles.d.ts +32 -0
- package/lib/typescript/src/components/modals/modal-activity-reason/index.d.ts +7 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +12 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/interface.d.ts +21 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/styles.d.ts +24 -0
- package/lib/typescript/src/components/selects/select-option/index.d.ts +3 -6
- package/lib/typescript/src/index.d.ts +7 -3
- package/lib/typescript/src/stories/input-text-counter/input-text-counter.stories.d.ts +17 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +1 -1
- package/lib/typescript/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +15 -0
- package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +1 -1
- package/lib/typescript/src/stories/modal-create-activitie/modal-create-activitie.stories.d.ts +12 -0
- package/lib/typescript/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +34 -0
- package/lib/typescript/src/stories/select-option/select-option.stories.d.ts +1 -1
- package/lib/typescript/src/styles/global/theme-provider.d.ts +16 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +16 -0
- package/lib/typescript/src/utils/options-activity/index.d.ts +20 -0
- package/lib/typescript/src/utils/text-limit/index.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/input-text-counter/index.tsx +64 -0
- package/src/components/input-text-counter/interface.d.ts +41 -0
- package/src/components/input-text-counter/styles.ts +38 -0
- package/src/components/modal-create-activitie/index.tsx +211 -0
- package/src/components/modal-create-activitie/interface.ts +22 -0
- package/src/components/modal-create-activitie/styles.ts +24 -0
- package/src/components/modal-journey-rectification/index.tsx +211 -0
- package/src/components/modal-journey-rectification/interface.d.ts +22 -0
- package/src/components/modal-journey-rectification/styles.ts +24 -0
- package/src/components/{modal-activities → modals/modal-activities}/data-activities/index.ts +65 -65
- package/src/components/{modal-activities → modals/modal-activities}/index.tsx +137 -137
- package/src/components/{modal-activities → modals/modal-activities}/interface.d.ts +32 -32
- package/src/components/modals/modal-activity-reason/index.tsx +162 -0
- package/src/components/modals/modal-activity-reason/interface.d.ts +10 -0
- package/src/components/{modal-change-activity → modals/modal-change-activity}/index.tsx +6 -6
- package/src/components/selects/select-date-and-hours/index.tsx +97 -0
- package/src/components/selects/select-date-and-hours/interface.ts +31 -0
- package/src/components/selects/select-date-and-hours/styles.ts +24 -0
- package/src/components/selects/select-option/index.tsx +50 -41
- package/src/components/step-indicator/index.tsx +235 -235
- package/src/index.ts +49 -45
- package/src/stories/input-text-counter/input-text-counter.stories.tsx +232 -0
- package/src/stories/modal-activities/modal-activities.stories.tsx +64 -64
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -0
- package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +49 -49
- package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +82 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +161 -0
- package/src/stories/select-option/select-option.stories.tsx +1 -1
- package/src/styles/theme/theme.ts +17 -0
- package/src/utils/options-activity/index.ts +14 -0
- package/src/utils/text-limit/index.ts +28 -0
- package/lib/commonjs/components/modal-activities/data-activities/index.js.map +0 -1
- package/lib/commonjs/components/modal-activities/index.js.map +0 -1
- package/lib/commonjs/components/modal-activities/interface.d.js.map +0 -1
- package/lib/commonjs/components/modal-change-activity/index.js.map +0 -1
- package/lib/module/components/modal-activities/data-activities/index.js.map +0 -1
- package/lib/module/components/modal-activities/index.js.map +0 -1
- package/lib/module/components/modal-activities/interface.d.js.map +0 -1
- package/lib/module/components/modal-change-activity/index.js.map +0 -1
- /package/lib/commonjs/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
- /package/lib/module/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
- /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/data-activities/index.d.ts +0 -0
- /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/index.d.ts +0 -0
- /package/lib/typescript/src/components/{modal-change-activity → modals/modal-change-activity}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","View","Text","Button","ModalActivityReason","meta","title","component","tags","args","visible","textTitle","undefined","argTypes","control","type","description","table","category","onClose","action","modalConfirm","parameters","controls","expanded","layout","docs","decorators","Story","createElement","style","width","padding","backgroundColor","borderRadius","AbertoBasico","name","Fechado","TituloPersonalizado","ControladoInterativo","render","Wrapper","_args$textTitle","open","setOpen","onPress","marginTop","fontSize","color","_extends","_args$onClose","call","ok","_args$modalConfirm","story"],"sources":["modal-activity-reason.stories.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { useState } from \"react\";\r\nimport type { Meta, StoryObj } from \"@storybook/react\";\r\nimport { View, Text, Button } from \"react-native\";\r\n\r\n// components\r\nimport ModalActivityReason from \"../../components/modals/modal-activity-reason\";\r\n\r\n/**\r\n * META\r\n */\r\nconst meta: Meta<typeof ModalActivityReason> = {\r\n title: \"componente/ModalActivityReason\",\r\n component: ModalActivityReason as React.FC,\r\n tags: [\"autodocs\"],\r\n args: {\r\n visible: false,\r\n textTitle: undefined,\r\n },\r\n argTypes: {\r\n visible: {\r\n control: { type: \"boolean\" },\r\n description: \"Controla a visibilidade do modal.\",\r\n table: { category: \"Comportamento\" },\r\n },\r\n textTitle: {\r\n control: { type: \"text\" },\r\n description:\r\n \"Título exibido no cabeçalho do modal. Se não informado, usa 'Motivo da exclusão'.\",\r\n table: { category: \"Aparência\" },\r\n },\r\n onClose: {\r\n action: \"onClose\",\r\n description:\r\n \"Chamado ao fechar/cancelar o modal. Deve alternar `visible` para `false` no uso controlado.\",\r\n table: { category: \"Eventos\" },\r\n },\r\n modalConfirm: {\r\n action: \"modalConfirm\",\r\n description:\r\n \"Chamado ao confirmar a ação. Por padrão, o componente chama `modalConfirm(true)` e em seguida `onClose()`.\",\r\n table: { category: \"Eventos\" },\r\n },\r\n },\r\n parameters: {\r\n controls: { expanded: true },\r\n layout: \"centered\",\r\n docs: {\r\n description: {\r\n component: `\r\n### ModalActivityReason\r\n\r\nModal para solicitar **motivo/justificativa** antes de executar uma ação crítica (ex.: excluir atividade).\r\n\r\n#### Recursos\r\n- Título personalizável via \\`textTitle\\`\r\n- Campo de texto (interno) para descrição do motivo\r\n- Botões **CANCELAR** e **CONFIRMAR**\r\n- Dispara \\`onClose\\` e \\`modalConfirm\\` conforme interação do usuário\r\n\r\n#### Props\r\n- \\`visible: boolean\\` — controla abertura/fechamento do modal\r\n- \\`onClose: () => void\\` — chamado ao cancelar/fechar\r\n- \\`modalConfirm: (ok?: boolean) => void\\` — chamado ao confirmar; o componente invoca \\`modalConfirm(true)\\` e depois \\`onClose()\\`\r\n- \\`textTitle?: string\\` — título opcional do cabeçalho\r\n\r\n> Caso \\`textTitle\\` não seja informado, o título padrão é **\"Motivo da exclusão\"**.\r\n\r\n#### Padrão de Uso (controlado)\r\nNo consumo real, gerencie o estado \\`visible\\` fora do componente e passe callbacks:\r\n\\`\\`\\`tsx\r\nconst [open, setOpen] = useState(false);\r\n\r\n<ModalActivityReason\r\n visible={open}\r\n onClose={() => setOpen(false)}\r\n modalConfirm={() => {\r\n // enviar justificativa para API (se o componente expuser)\r\n setOpen(false);\r\n }}\r\n textTitle=\"Motivo da exclusão\"\r\n/>\r\n\\`\\`\\`\r\n\r\n#### Testes (ideias)\r\n- Renderiza com \\`visible=true\\`\r\n- Exibe título padrão e título customizado\r\n- Dispara \\`onClose\\` ao cancelar\r\n- Dispara \\`modalConfirm\\` ao confirmar (e fecha em seguida)\r\n`,\r\n },\r\n },\r\n },\r\n decorators: [\r\n (Story) => (\r\n <View\r\n style={{\r\n width: 360,\r\n padding: 16,\r\n backgroundColor: \"#F7F7F7\",\r\n borderRadius: 12,\r\n }}\r\n >\r\n <Story />\r\n </View>\r\n ),\r\n ],\r\n};\r\n\r\nexport default meta;\r\n\r\ntype Story = StoryObj<typeof meta>;\r\n\r\n/**\r\n * STORIES\r\n */\r\n\r\n// 1) Aberto (básico)\r\nexport const AbertoBasico: Story = {\r\n name: \"aberto-basico\",\r\n args: {\r\n visible: true,\r\n },\r\n};\r\n\r\n// 2) Fechado (estado inicial comum)\r\nexport const Fechado: Story = {\r\n name: \"fechado\",\r\n args: {\r\n visible: false,\r\n },\r\n};\r\n\r\n// 3) Com título personalizado\r\nexport const TituloPersonalizado: Story = {\r\n name: \"titulo-personalizado\",\r\n args: {\r\n visible: true,\r\n textTitle: \"Justifique a alteração da atividade\",\r\n },\r\n};\r\n\r\n// 4) Interativo (controlado) — demonstra fluxo completo\r\nexport const ControladoInterativo: Story = {\r\n name: \"controlado-interativo\",\r\n render: (args) => {\r\n const Wrapper = () => {\r\n const [open, setOpen] = useState(false);\r\n\r\n return (\r\n <View>\r\n <Button title=\"Abrir modal\" onPress={() => setOpen(true)} />\r\n <Text style={{ marginTop: 12, fontSize: 12, color: \"#666\" }}>\r\n Clique para abrir e testar CANCELAR/CONFIRMAR.\r\n </Text>\r\n\r\n <ModalActivityReason\r\n {...args}\r\n visible={open}\r\n onClose={() => {\r\n // aciona painel de ações do Storybook\r\n // @ts-ignore\r\n args?.onClose?.();\r\n setOpen(false);\r\n }}\r\n modalConfirm={(ok?: boolean) => {\r\n // @ts-ignore\r\n args?.modalConfirm?.(ok);\r\n setOpen(false);\r\n }}\r\n textTitle={args.textTitle ?? \"Motivo da exclusão\"}\r\n />\r\n </View>\r\n );\r\n };\r\n\r\n return <Wrapper />;\r\n },\r\n args: {\r\n visible: false,\r\n },\r\n parameters: {\r\n docs: {\r\n description: {\r\n story:\r\n \"Exemplo **controlado**: o estado `visible` é gerenciado no Story para simular uso real.\",\r\n },\r\n },\r\n },\r\n};\r\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,IAAI,EAAEC,IAAI,EAAEC,MAAM,QAAQ,cAAc;;AAEjD;AACA,OAAOC,mBAAmB,MAAM,+CAA+C;;AAE/E;AACA;AACA;AACA,MAAMC,IAAsC,GAAG;EAC7CC,KAAK,EAAE,gCAAgC;EACvCC,SAAS,EAAEH,mBAA+B;EAC1CI,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,IAAI,EAAE;IACJC,OAAO,EAAE,KAAK;IACdC,SAAS,EAAEC;EACb,CAAC;EACDC,QAAQ,EAAE;IACRH,OAAO,EAAE;MACPI,OAAO,EAAE;QAAEC,IAAI,EAAE;MAAU,CAAC;MAC5BC,WAAW,EAAE,mCAAmC;MAChDC,KAAK,EAAE;QAAEC,QAAQ,EAAE;MAAgB;IACrC,CAAC;IACDP,SAAS,EAAE;MACTG,OAAO,EAAE;QAAEC,IAAI,EAAE;MAAO,CAAC;MACzBC,WAAW,EACT,mFAAmF;MACrFC,KAAK,EAAE;QAAEC,QAAQ,EAAE;MAAY;IACjC,CAAC;IACDC,OAAO,EAAE;MACPC,MAAM,EAAE,SAAS;MACjBJ,WAAW,EACT,6FAA6F;MAC/FC,KAAK,EAAE;QAAEC,QAAQ,EAAE;MAAU;IAC/B,CAAC;IACDG,YAAY,EAAE;MACZD,MAAM,EAAE,cAAc;MACtBJ,WAAW,EACT,4GAA4G;MAC9GC,KAAK,EAAE;QAAEC,QAAQ,EAAE;MAAU;IAC/B;EACF,CAAC;EACDI,UAAU,EAAE;IACVC,QAAQ,EAAE;MAAEC,QAAQ,EAAE;IAAK,CAAC;IAC5BC,MAAM,EAAE,UAAU;IAClBC,IAAI,EAAE;MACJV,WAAW,EAAE;QACX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 -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// component
|
|
6
|
-
import { ModalChangeActivity } from "../../components/modal-change-activity";
|
|
6
|
+
import { ModalChangeActivity } from "../../components/modals/modal-change-activity";
|
|
7
7
|
const meta = {
|
|
8
8
|
title: "Componente/ModalChangeActivity",
|
|
9
9
|
component: ModalChangeActivity,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ModalChangeActivity","meta","title","component","args","visible","descricao","onClose","modalConfirm","parameters","docs","description","Default","name"],"sources":["modal-change-activity.stories.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport type { Meta, StoryObj } from \"@storybook/react\";\n\n// component\nimport { ModalChangeActivity } from \"../../components/modal-change-activity\";\n\nconst meta: Meta<typeof ModalChangeActivity> = {\n title: \"Componente/ModalChangeActivity\",\n component: ModalChangeActivity,\n args: {\n visible: true,\n descricao: \"Repouso Noturno\",\n onClose: () => {},\n modalConfirm: () => {},\n },\n parameters: {\n docs: {\n description: {\n component: `\n# ModalChangeActivity\n\nComponente de modal para alterar a atividade do usuário.\n\n## Uso\n\\`\\`\\`tsx\n<ModalChangeActivity\n visible\n dataRegistro=\"07/03/2024\"\n descricao=\"Repouso Noturno\"\n modalConfirm={(data) => console.log(data)}\n onClose={() => console.log(\"fechar modal\")}\n/>\n\\`\\`\\`\n `,\n },\n },\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default: Story = {\n name: \"Modal - Alterar Descanso\",\n};\n"],"mappings":"AAAA;AACA;AACA;;AAIA;AACA,SAASA,mBAAmB,QAAQ
|
|
1
|
+
{"version":3,"names":["ModalChangeActivity","meta","title","component","args","visible","descricao","onClose","modalConfirm","parameters","docs","description","Default","name"],"sources":["modal-change-activity.stories.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\nimport type { Meta, StoryObj } from \"@storybook/react\";\r\n\r\n// component\r\nimport { ModalChangeActivity } from \"../../components/modals/modal-change-activity\";\r\n\r\nconst meta: Meta<typeof ModalChangeActivity> = {\r\n title: \"Componente/ModalChangeActivity\",\r\n component: ModalChangeActivity,\r\n args: {\r\n visible: true,\r\n descricao: \"Repouso Noturno\",\r\n onClose: () => {},\r\n modalConfirm: () => {},\r\n },\r\n parameters: {\r\n docs: {\r\n description: {\r\n component: `\r\n# ModalChangeActivity\r\n\r\nComponente de modal para alterar a atividade do usuário.\r\n\r\n## Uso\r\n\\`\\`\\`tsx\r\n<ModalChangeActivity\r\n visible\r\n dataRegistro=\"07/03/2024\"\r\n descricao=\"Repouso Noturno\"\r\n modalConfirm={(data) => console.log(data)}\r\n onClose={() => console.log(\"fechar modal\")}\r\n/>\r\n\\`\\`\\`\r\n `,\r\n },\r\n },\r\n },\r\n};\r\n\r\nexport default meta;\r\n\r\ntype Story = StoryObj<typeof meta>;\r\n\r\nexport const Default: Story = {\r\n name: \"Modal - Alterar Descanso\",\r\n};\r\n"],"mappings":"AAAA;AACA;AACA;;AAIA;AACA,SAASA,mBAAmB,QAAQ,+CAA+C;AAEnF,MAAMC,IAAsC,GAAG;EAC7CC,KAAK,EAAE,gCAAgC;EACvCC,SAAS,EAAEH,mBAAmB;EAC9BI,IAAI,EAAE;IACJC,OAAO,EAAE,IAAI;IACbC,SAAS,EAAE,iBAAiB;IAC5BC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBC,YAAY,EAAEA,CAAA,KAAM,CAAC;EACvB,CAAC;EACDC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXR,SAAS,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACM;IACF;EACF;AACF,CAAC;AAED,eAAeF,IAAI;AAInB,OAAO,MAAMW,OAAc,GAAG;EAC5BC,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
// component
|
|
6
|
+
import ModalCreteActivitie from "../../components/modal-create-activitie";
|
|
7
|
+
|
|
8
|
+
// utils / types
|
|
9
|
+
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Componente/ModalCreteActivitie",
|
|
12
|
+
component: ModalCreteActivitie,
|
|
13
|
+
args: {
|
|
14
|
+
visible: false,
|
|
15
|
+
textTitle: "Incluir atividade"
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
onClose: {
|
|
19
|
+
action: "onClose"
|
|
20
|
+
},
|
|
21
|
+
onPressConfirm: {
|
|
22
|
+
action: "onPressConfirm"
|
|
23
|
+
},
|
|
24
|
+
textTitle: {
|
|
25
|
+
control: "text",
|
|
26
|
+
description: "Título exibido no cabeçalho do modal"
|
|
27
|
+
},
|
|
28
|
+
visible: {
|
|
29
|
+
control: "boolean",
|
|
30
|
+
description: "Controla a visibilidade do modal"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
parameters: {
|
|
34
|
+
docs: {
|
|
35
|
+
description: {
|
|
36
|
+
component: `
|
|
37
|
+
### ModalCreteActivitie
|
|
38
|
+
Modal para incluir uma atividade com motivo, data e hora.
|
|
39
|
+
|
|
40
|
+
#### Uso
|
|
41
|
+
\`\`\`tsx
|
|
42
|
+
<ModalCreteActivitie
|
|
43
|
+
visible={visible}
|
|
44
|
+
onClose={() => {}}
|
|
45
|
+
onPressConfirm={(payload) => {}}
|
|
46
|
+
textTitle="Incluir atividade"
|
|
47
|
+
/>
|
|
48
|
+
\`\`\`
|
|
49
|
+
|
|
50
|
+
- \`visible\`: abre/fecha o modal
|
|
51
|
+
- \`onClose\`: chamado ao cancelar/fechar
|
|
52
|
+
- \`onPressConfirm\`: retorna { reasonValue, label, dateAndHours }
|
|
53
|
+
- \`textTitle\`: título opcional
|
|
54
|
+
`
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export default meta;
|
|
60
|
+
/**
|
|
61
|
+
* Apenas controla via Controls (visible true/false no painel do Storybook).
|
|
62
|
+
* Evita Template com "args: any" e mantém tipagem estrita.
|
|
63
|
+
*/
|
|
64
|
+
export const Playground = {
|
|
65
|
+
render: args => /*#__PURE__*/React.createElement(ModalCreteActivitie, args)
|
|
66
|
+
};
|
|
67
|
+
export const Fechado = {
|
|
68
|
+
args: {
|
|
69
|
+
visible: false
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export const Aberto = {
|
|
73
|
+
args: {
|
|
74
|
+
visible: true,
|
|
75
|
+
textTitle: "Incluir atividade"
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=modal-create-activitie.stories.js.map
|
|
@@ -0,0 +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;EACb;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS (Storybook)
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { View } from "react-native";
|
|
7
|
+
import { action } from "@storybook/addon-actions";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* IMPORTS (Componente)
|
|
11
|
+
* Ajuste o caminho conforme sua estrutura (ex.: "../index" ou "./index").
|
|
12
|
+
*/
|
|
13
|
+
import ModalJourneyRectification from "../../components/modal-create-activitie";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* DECORATORS
|
|
17
|
+
* Envolve o story para garantir área de visualização e evitar "modal perdido".
|
|
18
|
+
*/
|
|
19
|
+
const WithViewport = ({
|
|
20
|
+
children
|
|
21
|
+
}) => {
|
|
22
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
23
|
+
style: {
|
|
24
|
+
flex: 1,
|
|
25
|
+
minHeight: 600,
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
backgroundColor: "#F3F4F6" // neutro claro p/ destacar o modal
|
|
29
|
+
}
|
|
30
|
+
}, children);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* META
|
|
35
|
+
*/
|
|
36
|
+
const meta = {
|
|
37
|
+
title: "Componente/ModalJourneyRectification",
|
|
38
|
+
component: ModalJourneyRectification,
|
|
39
|
+
args: {
|
|
40
|
+
visible: false,
|
|
41
|
+
textTitle: "Editar atividade",
|
|
42
|
+
onClose: action("onClose"),
|
|
43
|
+
// ação capturada no painel "Actions"
|
|
44
|
+
onPressConfirm: action("onPressConfirm") // idem
|
|
45
|
+
},
|
|
46
|
+
argTypes: {
|
|
47
|
+
visible: {
|
|
48
|
+
control: {
|
|
49
|
+
type: "boolean"
|
|
50
|
+
},
|
|
51
|
+
description: "Define a visibilidade do modal.",
|
|
52
|
+
table: {
|
|
53
|
+
category: "Controle"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
textTitle: {
|
|
57
|
+
control: {
|
|
58
|
+
type: "text"
|
|
59
|
+
},
|
|
60
|
+
description: "Título exibido no cabeçalho do modal.",
|
|
61
|
+
table: {
|
|
62
|
+
category: "Conteúdo"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
onClose: {
|
|
66
|
+
description: "Callback ao cancelar/fechar o modal.",
|
|
67
|
+
table: {
|
|
68
|
+
category: "Eventos"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
onPressConfirm: {
|
|
72
|
+
description: "Callback ao confirmar. Recebe { reasonValue, label, dateAndHours }.",
|
|
73
|
+
table: {
|
|
74
|
+
category: "Eventos"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
parameters: {
|
|
79
|
+
layout: "fullscreen",
|
|
80
|
+
docs: {
|
|
81
|
+
description: {
|
|
82
|
+
component: `
|
|
83
|
+
### ModalJourneyRectification
|
|
84
|
+
Modal para **Editar uma atividade** (motivo + data e hora) seguindo o design do sistema.
|
|
85
|
+
|
|
86
|
+
#### Uso básico
|
|
87
|
+
\`\`\`tsx
|
|
88
|
+
import ModalJourneyRectification from "caminho/do/componente";
|
|
89
|
+
|
|
90
|
+
<ModalJourneyRectification
|
|
91
|
+
visible={true}
|
|
92
|
+
textTitle="Edutar atividade"
|
|
93
|
+
onClose={() => {/* fechar */}}
|
|
94
|
+
onPressConfirm={(payload) => {
|
|
95
|
+
// payload: { reasonValue, label, dateAndHours: { date, hours } }
|
|
96
|
+
}}
|
|
97
|
+
/>
|
|
98
|
+
\`\`\`
|
|
99
|
+
|
|
100
|
+
- Ao confirmar, o componente dispara o \`onPressConfirm\` com os dados selecionados e **fecha** em seguida.
|
|
101
|
+
- O clique no overlay ou o botão "CANCELAR" disparam \`onClose\`.
|
|
102
|
+
`
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
decorators: [Story => /*#__PURE__*/React.createElement(WithViewport, null, Story())]
|
|
107
|
+
};
|
|
108
|
+
export default meta;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* STORIES
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Estado padrão (fechado).
|
|
116
|
+
*/
|
|
117
|
+
export const Default = {};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Modal visível para inspeção visual.
|
|
121
|
+
*/
|
|
122
|
+
export const Opened = {
|
|
123
|
+
args: {
|
|
124
|
+
visible: true
|
|
125
|
+
},
|
|
126
|
+
parameters: {
|
|
127
|
+
docs: {
|
|
128
|
+
description: {
|
|
129
|
+
story: "Exibe o modal aberto para validar layout, overlay e botões de ação."
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Título customizado (ex.: para variações de copy).
|
|
137
|
+
*/
|
|
138
|
+
export const WithCustomTitle = {
|
|
139
|
+
args: {
|
|
140
|
+
visible: true,
|
|
141
|
+
textTitle: "Registrar atividade manualmente"
|
|
142
|
+
},
|
|
143
|
+
parameters: {
|
|
144
|
+
docs: {
|
|
145
|
+
description: {
|
|
146
|
+
story: "Permite validar a troca do título e o encaixe no cabeçalho do modal."
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Playground — ajuste livre via Controls.
|
|
154
|
+
*/
|
|
155
|
+
export const Playground = {
|
|
156
|
+
args: {
|
|
157
|
+
visible: false,
|
|
158
|
+
textTitle: "Editar atividade"
|
|
159
|
+
},
|
|
160
|
+
parameters: {
|
|
161
|
+
docs: {
|
|
162
|
+
description: {
|
|
163
|
+
story: "Use os **Controls** para alternar `visible` e personalizar `textTitle`. As ações aparecem no painel *Actions*."
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=modal-journey-rectification.stories.js.map
|
package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map
ADDED
|
@@ -0,0 +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":["/**\r\n * IMPORTS (Storybook)\r\n */\r\nimport type { Meta, StoryObj } from \"@storybook/react\";\r\nimport React from \"react\";\r\nimport { View } from \"react-native\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\n/**\r\n * IMPORTS (Componente)\r\n * Ajuste o caminho conforme sua estrutura (ex.: \"../index\" ou \"./index\").\r\n */\r\nimport ModalJourneyRectification from \"../../components/modal-create-activitie\";\r\n\r\n/**\r\n * DECORATORS\r\n * Envolve o story para garantir área de visualização e evitar \"modal perdido\".\r\n */\r\nconst WithViewport: React.FC<React.PropsWithChildren> = ({ children }) => {\r\n return (\r\n <View\r\n style={{\r\n flex: 1,\r\n minHeight: 600,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n backgroundColor: \"#F3F4F6\", // neutro claro p/ destacar o modal\r\n }}\r\n >\r\n {children}\r\n </View>\r\n );\r\n};\r\n\r\n/**\r\n * META\r\n */\r\nconst meta: Meta<typeof ModalJourneyRectification> = {\r\n title: \"Componente/ModalJourneyRectification\",\r\n component: ModalJourneyRectification,\r\n args: {\r\n visible: false,\r\n textTitle: \"Editar atividade\",\r\n onClose: action(\"onClose\"),// ação capturada no painel \"Actions\"\r\n onPressConfirm: action(\"onPressConfirm\"), // idem\r\n },\r\n argTypes: {\r\n visible: {\r\n control: { type: \"boolean\" },\r\n description: \"Define a visibilidade do modal.\",\r\n table: { category: \"Controle\" },\r\n },\r\n textTitle: {\r\n control: { type: \"text\" },\r\n description: \"Título exibido no cabeçalho do modal.\",\r\n table: { category: \"Conteúdo\" },\r\n },\r\n onClose: {\r\n description: \"Callback ao cancelar/fechar o modal.\",\r\n table: { category: \"Eventos\" },\r\n },\r\n onPressConfirm: {\r\n description:\r\n \"Callback ao confirmar. Recebe { reasonValue, label, dateAndHours }.\",\r\n table: { category: \"Eventos\" },\r\n },\r\n },\r\n parameters: {\r\n layout: \"fullscreen\",\r\n docs: {\r\n description: {\r\n component: `\r\n### ModalJourneyRectification\r\nModal para **Editar uma atividade** (motivo + data e hora) seguindo o design do sistema.\r\n\r\n#### Uso básico\r\n\\`\\`\\`tsx\r\nimport ModalJourneyRectification from \"caminho/do/componente\";\r\n\r\n<ModalJourneyRectification\r\n visible={true}\r\n textTitle=\"Edutar atividade\"\r\n onClose={() => {/* fechar */}}\r\n onPressConfirm={(payload) => {\r\n // payload: { reasonValue, label, dateAndHours: { date, hours } }\r\n }}\r\n/>\r\n\\`\\`\\`\r\n\r\n- Ao confirmar, o componente dispara o \\`onPressConfirm\\` com os dados selecionados e **fecha** em seguida.\r\n- O clique no overlay ou o botão \"CANCELAR\" disparam \\`onClose\\`.\r\n `,\r\n },\r\n },\r\n },\r\n decorators: [(Story) => <WithViewport>{Story()}</WithViewport>],\r\n};\r\nexport default meta;\r\n\r\n/**\r\n * STORIES\r\n */\r\ntype Story = StoryObj<typeof ModalJourneyRectification>;\r\n\r\n/**\r\n * Estado padrão (fechado).\r\n */\r\nexport const Default: Story = {};\r\n\r\n/**\r\n * Modal visível para inspeção visual.\r\n */\r\nexport const Opened: Story = {\r\n args: {\r\n visible: true,\r\n },\r\n parameters: {\r\n docs: {\r\n description: {\r\n story:\r\n \"Exibe o modal aberto para validar layout, overlay e botões de ação.\",\r\n },\r\n },\r\n },\r\n};\r\n\r\n/**\r\n * Título customizado (ex.: para variações de copy).\r\n */\r\nexport const WithCustomTitle: Story = {\r\n args: {\r\n visible: true,\r\n textTitle: \"Registrar atividade manualmente\",\r\n },\r\n parameters: {\r\n docs: {\r\n description: {\r\n story:\r\n \"Permite validar a troca do título e o encaixe no cabeçalho do modal.\",\r\n },\r\n },\r\n },\r\n};\r\n\r\n/**\r\n * Playground — ajuste livre via Controls.\r\n */\r\nexport const Playground: Story = {\r\n args: {\r\n visible: false,\r\n textTitle: \"Editar atividade\",\r\n },\r\n parameters: {\r\n docs: {\r\n description: {\r\n story:\r\n \"Use os **Controls** para alternar `visible` e personalizar `textTitle`. As ações aparecem no painel *Actions*.\",\r\n },\r\n },\r\n },\r\n};"],"mappings":"AAAA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,QAAQ,0BAA0B;;AAEjD;AACA;AACA;AACA;AACA,OAAOC,yBAAyB,MAAM,yCAAyC;;AAE/E;AACA;AACA;AACA;AACA,MAAMC,YAA+C,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EACxE,oBACEL,KAAA,CAAAM,aAAA,CAACL,IAAI;IACHM,KAAK,EAAE;MACLC,IAAI,EAAE,CAAC;MACPC,SAAS,EAAE,GAAG;MACdC,UAAU,EAAE,QAAQ;MACpBC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AC,CAAgB,CAAC;AAChE,CAAC;AACD,eAAelB,IAAI;;AAEnB;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAMmB,OAAc,GAAG,CAAC,CAAC;;AAEhC;AACA;AACA;AACA,OAAO,MAAMC,MAAa,GAAG;EAC3BjB,IAAI,EAAE;IACJC,OAAO,EAAE;EACX,CAAC;EACDU,UAAU,EAAE;IACVE,IAAI,EAAE;MACJL,WAAW,EAAE;QACXU,KAAK,EACH;MACJ;IACF;EACF;AACF,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,eAAsB,GAAG;EACpCnB,IAAI,EAAE;IACJC,OAAO,EAAE,IAAI;IACbC,SAAS,EAAE;EACb,CAAC;EACDS,UAAU,EAAE;IACVE,IAAI,EAAE;MACJL,WAAW,EAAE;QACXU,KAAK,EACH;MACJ;IACF;EACF;AACF,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAME,UAAiB,GAAG;EAC/BpB,IAAI,EAAE;IACJC,OAAO,EAAE,KAAK;IACdC,SAAS,EAAE;EACb,CAAC;EACDS,UAAU,EAAE;IACVE,IAAI,EAAE;MACJL,WAAW,EAAE;QACXU,KAAK,EACH;MACJ;IACF;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SelectOption","theme","meta","title","component","args","dataOption","parameters","notes","options","label","value","SelectRefuseRest","name","handleSelectDown","titleLabel","colortitleLabel","colors","neutral"],"sources":["select-option.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\nimport
|
|
1
|
+
{"version":3,"names":["SelectOption","theme","meta","title","component","args","dataOption","parameters","notes","options","label","value","SelectRefuseRest","name","handleSelectDown","titleLabel","colortitleLabel","colors","neutral"],"sources":["select-option.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\nimport SelectOption from \"../../components/selects/select-option\";\n\nimport { theme } from \"../../styles/theme/theme\";\n\nconst meta: Meta<typeof SelectOption> = {\n title: \"componente/SelectOption\",\n component: SelectOption,\n args: { dataOption: [] },\n parameters: {\n notes: `\n# SelectOption\n\nEste é um componente de select.\nVocê usa assim:\n\\`\\`\\`tsx\n<SelectOption\n titleLabel=\"Selecione um motivo\"\n sizeTitleLabel={18}\n dataOption={options}\n handleSelectDown={() => {}}\n/>\n\\`\\`\\`\n`,\n },\n};\n\nconst options = [\n { label: \"Local com infraestrutura ruim\", value: \"option1\" },\n { label: \"Pretendo fazer o repouso em casa ou outro local\", value: \"option2\" },\n { label: \"Outro motivo\", value: \"option3\" },\n];\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const SelectRefuseRest: Story = {\n name: \"select-refuse-rest-week\",\n args: {\n dataOption: options,\n handleSelectDown: () => {},\n titleLabel: \"Selecione uma opção\",\n colortitleLabel: theme.colors.neutral[25],\n },\n};\n"],"mappings":"AACA,OAAOA,YAAY,MAAM,wCAAwC;AAEjE,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAMC,IAA+B,GAAG;EACtCC,KAAK,EAAE,yBAAyB;EAChCC,SAAS,EAAEJ,YAAY;EACvBK,IAAI,EAAE;IAAEC,UAAU,EAAE;EAAG,CAAC;EACxBC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAED,MAAMC,OAAO,GAAG,CACd;EAAEC,KAAK,EAAE,+BAA+B;EAAEC,KAAK,EAAE;AAAU,CAAC,EAC5D;EAAED,KAAK,EAAE,iDAAiD;EAAEC,KAAK,EAAE;AAAU,CAAC,EAC9E;EAAED,KAAK,EAAE,cAAc;EAAEC,KAAK,EAAE;AAAU,CAAC,CAC5C;AAED,eAAeT,IAAI;AAInB,OAAO,MAAMU,gBAAuB,GAAG;EACrCC,IAAI,EAAE,yBAAyB;EAC/BR,IAAI,EAAE;IACJC,UAAU,EAAEG,OAAO;IACnBK,gBAAgB,EAAEA,CAAA,KAAM,CAAC,CAAC;IAC1BC,UAAU,EAAE,qBAAqB;IACjCC,eAAe,EAAEf,KAAK,CAACgB,MAAM,CAACC,OAAO,CAAC,EAAE;EAC1C;AACF,CAAC","ignoreList":[]}
|
|
@@ -149,7 +149,22 @@ const letterSpacing = {
|
|
|
149
149
|
medium: 0.75,
|
|
150
150
|
strong: 1
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
const lineHeight = {
|
|
153
|
+
"2xs": 10,
|
|
154
|
+
xs: 12,
|
|
155
|
+
sm: 14,
|
|
156
|
+
md: 16,
|
|
157
|
+
lg: 18,
|
|
158
|
+
xl: 20,
|
|
159
|
+
"2xl": 24,
|
|
160
|
+
"3xl": 30,
|
|
161
|
+
"4xl": 36,
|
|
162
|
+
"5xl": 48,
|
|
163
|
+
"6xl": 60,
|
|
164
|
+
"7xl": 72,
|
|
165
|
+
"8xl": 96,
|
|
166
|
+
"9xl": 128
|
|
167
|
+
};
|
|
153
168
|
/**
|
|
154
169
|
* EXPORTSS
|
|
155
170
|
*/
|
|
@@ -161,6 +176,7 @@ export const theme = {
|
|
|
161
176
|
margins,
|
|
162
177
|
shadows,
|
|
163
178
|
paddings,
|
|
164
|
-
letterSpacing
|
|
179
|
+
letterSpacing,
|
|
180
|
+
lineHeight
|
|
165
181
|
};
|
|
166
182
|
//# sourceMappingURL=theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["borderWidths","thin","thin_medium","thin_bold","thick","thick_medium","thick_bold","thick_large","hairline","colors","neutral","black","blue","red","gray","green","orange","yellow","fonts","inter_thin_100","inter_extra_light_200","inter_light_300","inter_regular_400","inter_medium_500","inter_semi_bold_600","inter_bold_700","inter_extra_bold_800","inter_bold","fontSizes","xs","sm","md","lg","xl","margins","paddings","shadows","z1","z2","letterSpacing","o_16","regular","medium","strong","theme"],"sources":["theme.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\nconst borderWidths = {\r\n thin: 1,\r\n thin_medium: 2,\r\n thin_bold: 6,\r\n thick: 4,\r\n thick_medium: 8,\r\n thick_bold: 12,\r\n thick_large: 16,\r\n hairline: 999,\r\n};\r\n\r\nconst colors = {\r\n neutral: {\r\n 25: \"#FFFFFF\",\r\n 50: \"#E7EEFF\",\r\n 75: \"#E5E1F9\",\r\n 200: \"#C6C6C6\",\r\n 300: \"#F3F3F3\",\r\n 400: \"#F4F5F6\",\r\n },\r\n black: {\r\n 10: \"#000000\",\r\n 25: \"#1E1E1E\",\r\n 100: \"#393939\",\r\n 180: \"#35302B\",\r\n },\r\n blue: {\r\n 25: \"#1E1E1E\",\r\n 50: \"#1EA7fD\",\r\n 100: \"#051C3B\",\r\n 150: \"#2E41F2\",\r\n 350: \"#357FD6\",\r\n 375: \"#056CF2\",\r\n 400: \"#2D3748\",\r\n 400_50: \"#2D374880\",\r\n 500: \"#050022\",\r\n 525: \"#051C3B\",\r\n },\r\n red: {\r\n 400: \"#D23A1A\",\r\n 500: \"#C54239\",\r\n 600: \"#B3261E\",\r\n 800: \"#E72626\",\r\n 900: \"#9F0000\",\r\n },\r\n gray: {\r\n 300: \"#D9D9D9\",\r\n 350: \"#CDCDCD\",\r\n 400: \"#C6C6C6\",\r\n 500: \"#1c1c1e\",\r\n 600: \"#5E5E5E\",\r\n 700: \"#727272\",\r\n 800: \"#837676\",\r\n 850: \"#868686\",\r\n 875: \"#949494\",\r\n 900: \"#9B9B9B\",\r\n 925: \"#957c5f\",\r\n 950: \"#94a3b8\",\r\n },\r\n green: {\r\n 100: \"#20AD4880\",\r\n 200: \"#25BA76\",\r\n 250: \"#20AD48\",\r\n 400: \"#49C63E\",\r\n 500: \"#50C58F\",\r\n },\r\n orange: {\r\n 500: \"#FC5701\",\r\n 450: \"#FC6C2D\",\r\n 150: \"#FFA41C\",\r\n },\r\n yellow: {\r\n 100: \"#DFAE00\",\r\n 50: \"#F0CA4B\",\r\n 75: \"#F59E0B\",\r\n 90: \"#957C5F\",\r\n },\r\n};\r\n\r\nconst fonts = {\r\n inter_thin_100: \"Inter-Thin\",\r\n inter_extra_light_200: \"Inter-ExtraLight\",\r\n inter_light_300: \"Inter-Light\",\r\n inter_regular_400: \"Inter-Regular\",\r\n inter_medium_500: \"Inter-Medium\",\r\n inter_semi_bold_600: \"Inter-SemiBold\",\r\n inter_bold_700: \"Inter-Bold\",\r\n inter_extra_bold_800: \"Inter-ExtraBold\",\r\n inter_bold: \"Inter-Bold\",\r\n};\r\n\r\nconst fontSizes = {\r\n \"2xs\": 10,\r\n xs: 12,\r\n sm: 14,\r\n md: 16,\r\n lg: 18,\r\n xl: 20,\r\n \"2xl\": 24,\r\n \"3xl\": 32,\r\n \"4xl\": 38,\r\n \"5xl\": 50,\r\n \"6xl\": 60,\r\n \"7xl\": 72,\r\n \"8xl\": 96,\r\n \"9xl\": 128,\r\n};\r\n\r\nconst margins = {\r\n \"1xs\": 6,\r\n \"2xs\": 10,\r\n xs: 12,\r\n sm: 14,\r\n md: 16,\r\n lg: 18,\r\n xl: 20,\r\n \"2xl\": 24,\r\n \"3xl\": 30,\r\n \"4xl\": 36,\r\n \"5xl\": 48,\r\n \"6xl\": 60,\r\n \"7xl\": 72,\r\n \"8xl\": 96,\r\n \"9xl\": 128,\r\n};\r\n\r\nconst paddings = {\r\n \"2xs\": 10,\r\n xs: 12,\r\n sm: 14,\r\n md: 16,\r\n lg: 18,\r\n xl: 20,\r\n \"2xl\": 24,\r\n \"3xl\": 30,\r\n \"4xl\": 36,\r\n \"5xl\": 48,\r\n \"6xl\": 60,\r\n \"7xl\": 72,\r\n \"8xl\": 96,\r\n \"9xl\": 128,\r\n};\r\n\r\nconst shadows = {\r\n z1: \"0px 1px 0px rgba(0, 0, 0, 0.3), 0px 1px 0px 1px rgba(0, 0, 0, 0.15)\",\r\n z2: \"0px 1px 2px rgba(0, 0, 0, 0.3)\",\r\n};\r\n\r\nconst letterSpacing = {\r\n o_16: 0.16,\r\n regular: 0.5,\r\n medium: 0.75,\r\n strong: 1,\r\n};\r\n\r\n/**\r\n * EXPORTSS\r\n */\r\nexport const theme = {\r\n borderWidths,\r\n colors,\r\n fonts,\r\n fontSizes,\r\n margins,\r\n shadows,\r\n paddings,\r\n letterSpacing,\r\n};\r\n"],"mappings":"AAAA;AACA;AACA;;AAEA,MAAMA,YAAY,GAAG;EACnBC,IAAI,EAAE,CAAC;EACPC,WAAW,EAAE,CAAC;EACdC,SAAS,EAAE,CAAC;EACZC,KAAK,EAAE,CAAC;EACRC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,EAAE;EACdC,WAAW,EAAE,EAAE;EACfC,QAAQ,EAAE;AACZ,CAAC;AAED,MAAMC,MAAM,GAAG;EACbC,OAAO,EAAE;IACP,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,KAAK,EAAE;IACL,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,IAAI,EAAE;IACJ,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,KAAM,EAAE,WAAW;IACnB,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,GAAG,EAAE;IACH,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,IAAI,EAAE;IACJ,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,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ACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACN,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE;AACT,CAAC;AAED,MAAME,QAAQ,GAAG;EACf,KAAK,EAAE,EAAE;EACTN,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACN,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE;AACT,CAAC;AAED,MAAMG,OAAO,GAAG;EACdC,EAAE,EAAE,qEAAqE;EACzEC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,aAAa,GAAG;EACpBC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,GAAG;EACZC,MAAM,EAAE,IAAI;EACZC,MAAM,EAAE;AACV,CAAC
|
|
1
|
+
{"version":3,"names":["borderWidths","thin","thin_medium","thin_bold","thick","thick_medium","thick_bold","thick_large","hairline","colors","neutral","black","blue","red","gray","green","orange","yellow","fonts","inter_thin_100","inter_extra_light_200","inter_light_300","inter_regular_400","inter_medium_500","inter_semi_bold_600","inter_bold_700","inter_extra_bold_800","inter_bold","fontSizes","xs","sm","md","lg","xl","margins","paddings","shadows","z1","z2","letterSpacing","o_16","regular","medium","strong","lineHeight","theme"],"sources":["theme.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\nconst borderWidths = {\r\n thin: 1,\r\n thin_medium: 2,\r\n thin_bold: 6,\r\n thick: 4,\r\n thick_medium: 8,\r\n thick_bold: 12,\r\n thick_large: 16,\r\n hairline: 999,\r\n};\r\n\r\nconst colors = {\r\n neutral: {\r\n 25: \"#FFFFFF\",\r\n 50: \"#E7EEFF\",\r\n 75: \"#E5E1F9\",\r\n 200: \"#C6C6C6\",\r\n 300: \"#F3F3F3\",\r\n 400: \"#F4F5F6\",\r\n },\r\n black: {\r\n 10: \"#000000\",\r\n 25: \"#1E1E1E\",\r\n 100: \"#393939\",\r\n 180: \"#35302B\",\r\n },\r\n blue: {\r\n 25: \"#1E1E1E\",\r\n 50: \"#1EA7fD\",\r\n 100: \"#051C3B\",\r\n 150: \"#2E41F2\",\r\n 350: \"#357FD6\",\r\n 375: \"#056CF2\",\r\n 400: \"#2D3748\",\r\n 400_50: \"#2D374880\",\r\n 500: \"#050022\",\r\n 525: \"#051C3B\",\r\n },\r\n red: {\r\n 400: \"#D23A1A\",\r\n 500: \"#C54239\",\r\n 600: \"#B3261E\",\r\n 800: \"#E72626\",\r\n 900: \"#9F0000\",\r\n },\r\n gray: {\r\n 300: \"#D9D9D9\",\r\n 350: \"#CDCDCD\",\r\n 400: \"#C6C6C6\",\r\n 500: \"#1c1c1e\",\r\n 600: \"#5E5E5E\",\r\n 700: \"#727272\",\r\n 800: \"#837676\",\r\n 850: \"#868686\",\r\n 875: \"#949494\",\r\n 900: \"#9B9B9B\",\r\n 925: \"#957c5f\",\r\n 950: \"#94a3b8\",\r\n },\r\n green: {\r\n 100: \"#20AD4880\",\r\n 200: \"#25BA76\",\r\n 250: \"#20AD48\",\r\n 400: \"#49C63E\",\r\n 500: \"#50C58F\",\r\n },\r\n orange: {\r\n 500: \"#FC5701\",\r\n 450: \"#FC6C2D\",\r\n 150: \"#FFA41C\",\r\n },\r\n yellow: {\r\n 100: \"#DFAE00\",\r\n 50: \"#F0CA4B\",\r\n 75: \"#F59E0B\",\r\n 90: \"#957C5F\",\r\n },\r\n};\r\n\r\nconst fonts = {\r\n inter_thin_100: \"Inter-Thin\",\r\n inter_extra_light_200: \"Inter-ExtraLight\",\r\n inter_light_300: \"Inter-Light\",\r\n inter_regular_400: \"Inter-Regular\",\r\n inter_medium_500: \"Inter-Medium\",\r\n inter_semi_bold_600: \"Inter-SemiBold\",\r\n inter_bold_700: \"Inter-Bold\",\r\n inter_extra_bold_800: \"Inter-ExtraBold\",\r\n inter_bold: \"Inter-Bold\",\r\n};\r\n\r\nconst fontSizes = {\r\n \"2xs\": 10,\r\n xs: 12,\r\n sm: 14,\r\n md: 16,\r\n lg: 18,\r\n xl: 20,\r\n \"2xl\": 24,\r\n \"3xl\": 32,\r\n \"4xl\": 38,\r\n \"5xl\": 50,\r\n \"6xl\": 60,\r\n \"7xl\": 72,\r\n \"8xl\": 96,\r\n \"9xl\": 128,\r\n};\r\n\r\nconst margins = {\r\n \"1xs\": 6,\r\n \"2xs\": 10,\r\n xs: 12,\r\n sm: 14,\r\n md: 16,\r\n lg: 18,\r\n xl: 20,\r\n \"2xl\": 24,\r\n \"3xl\": 30,\r\n \"4xl\": 36,\r\n \"5xl\": 48,\r\n \"6xl\": 60,\r\n \"7xl\": 72,\r\n \"8xl\": 96,\r\n \"9xl\": 128,\r\n};\r\n\r\nconst paddings = {\r\n \"2xs\": 10,\r\n xs: 12,\r\n sm: 14,\r\n md: 16,\r\n lg: 18,\r\n xl: 20,\r\n \"2xl\": 24,\r\n \"3xl\": 30,\r\n \"4xl\": 36,\r\n \"5xl\": 48,\r\n \"6xl\": 60,\r\n \"7xl\": 72,\r\n \"8xl\": 96,\r\n \"9xl\": 128,\r\n};\r\n\r\nconst shadows = {\r\n z1: \"0px 1px 0px rgba(0, 0, 0, 0.3), 0px 1px 0px 1px rgba(0, 0, 0, 0.15)\",\r\n z2: \"0px 1px 2px rgba(0, 0, 0, 0.3)\",\r\n};\r\n\r\nconst letterSpacing = {\r\n o_16: 0.16,\r\n regular: 0.5,\r\n medium: 0.75,\r\n strong: 1,\r\n};\r\n\r\nconst lineHeight = {\r\n \"2xs\": 10,\r\n xs: 12,\r\n sm: 14,\r\n md: 16,\r\n lg: 18,\r\n xl: 20,\r\n \"2xl\": 24,\r\n \"3xl\": 30,\r\n \"4xl\": 36,\r\n \"5xl\": 48,\r\n \"6xl\": 60,\r\n \"7xl\": 72,\r\n \"8xl\": 96,\r\n \"9xl\": 128,\r\n};\r\n/**\r\n * EXPORTSS\r\n */\r\nexport const theme = {\r\n borderWidths,\r\n colors,\r\n fonts,\r\n fontSizes,\r\n margins,\r\n shadows,\r\n paddings,\r\n letterSpacing,\r\n lineHeight,\r\n};\r\n"],"mappings":"AAAA;AACA;AACA;;AAEA,MAAMA,YAAY,GAAG;EACnBC,IAAI,EAAE,CAAC;EACPC,WAAW,EAAE,CAAC;EACdC,SAAS,EAAE,CAAC;EACZC,KAAK,EAAE,CAAC;EACRC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,EAAE;EACdC,WAAW,EAAE,EAAE;EACfC,QAAQ,EAAE;AACZ,CAAC;AAED,MAAMC,MAAM,GAAG;EACbC,OAAO,EAAE;IACP,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,KAAK,EAAE;IACL,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,IAAI,EAAE;IACJ,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,KAAM,EAAE,WAAW;IACnB,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,GAAG,EAAE;IACH,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,S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AE;EACN,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE;AACT,CAAC;AACD;AACA;AACA;AACA,OAAO,MAAMY,KAAK,GAAG;EACnB7C,YAAY;EACZS,MAAM;EACNS,KAAK;EACLU,SAAS;EACTM,OAAO;EACPE,OAAO;EACPD,QAAQ;EACRI,aAAa;EACbK;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
const OPTIONS = [{
|
|
5
|
+
label: "Disp com veículo parado",
|
|
6
|
+
value: "option1"
|
|
7
|
+
}, {
|
|
8
|
+
label: "Operação com veículo",
|
|
9
|
+
value: "option2"
|
|
10
|
+
}, {
|
|
11
|
+
label: "Em carga",
|
|
12
|
+
value: "option3"
|
|
13
|
+
}, {
|
|
14
|
+
label: "Em descarga",
|
|
15
|
+
value: "option4"
|
|
16
|
+
}];
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* EXPORTS
|
|
20
|
+
*/
|
|
21
|
+
export { OPTIONS };
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OPTIONS","label","value"],"sources":["index.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nconst OPTIONS = [\r\n { label: \"Disp com veículo parado\", value: \"option1\" },\r\n { label: \"Operação com veículo\", value: \"option2\" },\r\n { label: \"Em carga\", value: \"option3\" },\r\n { label: \"Em descarga\", value: \"option4\" },\r\n] as const;\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { OPTIONS };"],"mappings":"AAAA;AACA;AACA;AACA,MAAMA,OAAO,GAAG,CACd;EAAEC,KAAK,EAAE,yBAAyB;EAAEC,KAAK,EAAE;AAAU,CAAC,EACtD;EAAED,KAAK,EAAE,sBAAsB;EAAEC,KAAK,EAAE;AAAU,CAAC,EACnD;EAAED,KAAK,EAAE,UAAU;EAAEC,KAAK,EAAE;AAAU,CAAC,EACvC;EAAED,KAAK,EAAE,aAAa;EAAEC,KAAK,EAAE;AAAU,CAAC,CAClC;;AAEV;AACA;AACA;AACA,SAASF,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
const handleLimitTextdisplayByAmount = ({
|
|
6
|
+
text,
|
|
7
|
+
limit
|
|
8
|
+
}) => {
|
|
9
|
+
if ((text === null || text === void 0 ? void 0 : text.length) > limit) {
|
|
10
|
+
return `${text.substring(0, limit)}...`;
|
|
11
|
+
} else {
|
|
12
|
+
return text;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const handleLimitTextDate = ({
|
|
16
|
+
text,
|
|
17
|
+
limit
|
|
18
|
+
}) => {
|
|
19
|
+
if ((text === null || text === void 0 ? void 0 : text.length) > limit) {
|
|
20
|
+
return `${text.substring(0, limit)}`;
|
|
21
|
+
} else {
|
|
22
|
+
return text;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* EXPORTS
|
|
28
|
+
*/
|
|
29
|
+
export { handleLimitTextdisplayByAmount, handleLimitTextDate };
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["handleLimitTextdisplayByAmount","text","limit","length","substring","handleLimitTextDate"],"sources":["index.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\ninterface ILimitProps {\r\n text: string;\r\n limit: number;\r\n}\r\nconst handleLimitTextdisplayByAmount = ({ text, limit }: ILimitProps) => {\r\n if (text?.length > limit) {\r\n return `${text.substring(0, limit)}...`;\r\n } else {\r\n return text;\r\n }\r\n};\r\n\r\nconst handleLimitTextDate = ({ text, limit }: ILimitProps) => {\r\n if (text?.length > limit) {\r\n return `${text.substring(0, limit)}`;\r\n } else {\r\n return text;\r\n }\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { handleLimitTextdisplayByAmount, handleLimitTextDate };\r\n"],"mappings":"AAAA;AACA;AACA;;AAMA,MAAMA,8BAA8B,GAAGA,CAAC;EAAEC,IAAI;EAAEC;AAAmB,CAAC,KAAK;EACvE,IAAI,CAAAD,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEE,MAAM,IAAGD,KAAK,EAAE;IACxB,OAAO,GAAGD,IAAI,CAACG,SAAS,CAAC,CAAC,EAAEF,KAAK,CAAC,KAAK;EACzC,CAAC,MAAM;IACL,OAAOD,IAAI;EACb;AACF,CAAC;AAED,MAAMI,mBAAmB,GAAGA,CAAC;EAAEJ,IAAI;EAAEC;AAAmB,CAAC,KAAK;EAC5D,IAAI,CAAAD,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEE,MAAM,IAAGD,KAAK,EAAE;IACxB,OAAO,GAAGD,IAAI,CAACG,SAAS,CAAC,CAAC,EAAEF,KAAK,CAAC,EAAE;EACtC,CAAC,MAAM;IACL,OAAOD,IAAI;EACb;AACF,CAAC;;AAED;AACA;AACA;AACA,SAASD,8BAA8B,EAAEK,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
/**
|
|
6
|
+
* EXPORTS
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: React.ComponentType<Omit<import("react-native").TextInputProps & {
|
|
9
|
+
label: string;
|
|
10
|
+
backgroundColor?: string | undefined;
|
|
11
|
+
error?: string | null | undefined;
|
|
12
|
+
borderStyled?: {
|
|
13
|
+
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
14
|
+
borderRadius?: import("react-native").DimensionValue | undefined;
|
|
15
|
+
borderTopRightRadius?: import("react-native").DimensionValue | undefined;
|
|
16
|
+
borderTopLeftRadius?: import("react-native").DimensionValue | undefined;
|
|
17
|
+
borderBottomRightRadius?: import("react-native").DimensionValue | undefined;
|
|
18
|
+
borderBottomLeftRadius?: import("react-native").DimensionValue | undefined;
|
|
19
|
+
borderWidth?: import("react-native").DimensionValue | undefined;
|
|
20
|
+
borderLeftWidth?: import("react-native").DimensionValue | undefined;
|
|
21
|
+
borderRightWidth?: import("react-native").DimensionValue | undefined;
|
|
22
|
+
borderTopWidth?: import("react-native").DimensionValue | undefined;
|
|
23
|
+
borderBottomWidth?: import("react-native").DimensionValue | undefined;
|
|
24
|
+
borderColor?: string | undefined;
|
|
25
|
+
borderBottomColor?: string | undefined;
|
|
26
|
+
borderLeftColor?: string | undefined;
|
|
27
|
+
borderRightColor?: string | undefined;
|
|
28
|
+
borderTopColor?: string | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
} & React.RefAttributes<any>, "ref"> & {
|
|
31
|
+
ref?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const stylesInput: {
|
|
2
|
+
label: {
|
|
3
|
+
fontFamily: string;
|
|
4
|
+
fontSize: number;
|
|
5
|
+
color: string;
|
|
6
|
+
marginBottom: number;
|
|
7
|
+
fontWeight: "500";
|
|
8
|
+
};
|
|
9
|
+
inputWrapper: {
|
|
10
|
+
borderColor: string;
|
|
11
|
+
borderWidth: number;
|
|
12
|
+
borderRadius: number;
|
|
13
|
+
};
|
|
14
|
+
input: {
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
color: string;
|
|
18
|
+
padding: number;
|
|
19
|
+
textAlignVertical: "top";
|
|
20
|
+
minHeight: number;
|
|
21
|
+
};
|
|
22
|
+
charCount: {
|
|
23
|
+
alignSelf: "flex-end";
|
|
24
|
+
marginTop: number;
|
|
25
|
+
color: string;
|
|
26
|
+
fontSize: number;
|
|
27
|
+
};
|
|
28
|
+
errorText: {
|
|
29
|
+
color: string;
|
|
30
|
+
fontSize: number;
|
|
31
|
+
marginTop: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export { stylesInput };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
declare type IModalCreateActivitieProps<T> = {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
textTitle?: string;
|
|
7
|
+
options?: T;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onPressConfirm: (value: T) => void;
|
|
10
|
+
};
|
|
11
|
+
declare type IDateAndHoursProps = {
|
|
12
|
+
date: string;
|
|
13
|
+
hours: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* EXPORTS
|
|
17
|
+
*/
|
|
18
|
+
export type { IModalCreateActivitieProps, IDateAndHoursProps };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
declare const styles: {
|
|
5
|
+
overlay: {
|
|
6
|
+
flex: number;
|
|
7
|
+
justifyContent: "center";
|
|
8
|
+
alignItems: "center";
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
};
|
|
11
|
+
card: {
|
|
12
|
+
width: "90%";
|
|
13
|
+
};
|
|
14
|
+
headerRow: {
|
|
15
|
+
marginBottom: number;
|
|
16
|
+
marginLeft: number;
|
|
17
|
+
flexDirection: "row";
|
|
18
|
+
alignItems: "center";
|
|
19
|
+
};
|
|
20
|
+
content: {
|
|
21
|
+
padding: number;
|
|
22
|
+
};
|
|
23
|
+
actions: {
|
|
24
|
+
marginTop: number;
|
|
25
|
+
flexDirection: "row";
|
|
26
|
+
justifyContent: "space-between";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* EXPORTS
|
|
31
|
+
*/
|
|
32
|
+
export { styles };
|