@granto-umbrella/umbrella-components 3.0.77 → 3.0.78
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/dist/{umbrella-components.umd.js → cjs/index.js} +760 -789
- package/dist/{umbrella-components.es.js → esm/index.js} +26832 -27462
- package/dist/types/components/atoms/Badge/Badge.d.ts +4 -0
- package/dist/types/components/atoms/Badge/Badge.styles.d.ts +22 -0
- package/dist/types/components/atoms/Badge/Badge.types.d.ts +9 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.styles.d.ts +5 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.types.d.ts +10 -0
- package/dist/types/components/atoms/Button/Button.d.ts +4 -0
- package/dist/types/components/atoms/Button/Button.styles.d.ts +31 -0
- package/dist/types/components/atoms/Button/Button.types.d.ts +13 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +3 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.styles.d.ts +11 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.types.d.ts +16 -0
- package/dist/types/components/atoms/Checkbox/CheckboxGroup.d.ts +3 -0
- package/dist/types/components/atoms/Checkbox/CheckboxSelectAll.d.ts +3 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.d.ts +4 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.styles.d.ts +1 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.types.d.ts +2 -0
- package/dist/types/components/atoms/DatePickerInput/DatePicker.styles.d.ts +3 -0
- package/dist/types/components/atoms/DatePickerInput/DatePickerInput.d.ts +11 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.d.ts +4 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.styles.d.ts +13 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.types.d.ts +12 -0
- package/dist/types/components/atoms/DropDownMenu/index.d.ts +2 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.d.ts +3 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.styles.d.ts +1 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.types.d.ts +6 -0
- package/dist/types/components/atoms/EditIcon/index.d.ts +1 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.d.ts +2 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.styles.d.ts +15 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.types.d.ts +18 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.d.ts +4 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.styles.d.ts +3 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.types.d.ts +5 -0
- package/dist/types/components/atoms/Footer/Footer.d.ts +4 -0
- package/dist/types/components/atoms/Footer/Footer.styles.d.ts +1 -0
- package/dist/types/components/atoms/Footer/Footer.types.d.ts +4 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.d.ts +3 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.styles.d.ts +1 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.types.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Icon.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Icon.styles.d.ts +8 -0
- package/{src/components/atoms/Icon/Icon.types.ts → dist/types/components/atoms/Icon/Icon.types.d.ts} +2 -3
- package/dist/types/components/atoms/Input/Input.d.ts +4 -0
- package/dist/types/components/atoms/Input/Input.styles.d.ts +21 -0
- package/dist/types/components/atoms/Input/Input.types.d.ts +19 -0
- package/dist/types/components/atoms/Label/Label.d.ts +6 -0
- package/dist/types/components/atoms/Label/Label.styles.d.ts +4 -0
- package/dist/types/components/atoms/Loading/Loading.d.ts +3 -0
- package/dist/types/components/atoms/Loading/Loading.styles.d.ts +1 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.Types.d.ts +6 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.d.ts +3 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.styles.d.ts +4 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.d.ts +3 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.styles.d.ts +6 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.types.d.ts +5 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.d.ts +4 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.styles.d.ts +15 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.types.d.ts +32 -0
- package/dist/types/components/atoms/Pill/Pill.d.ts +4 -0
- package/dist/types/components/atoms/Pill/Pill.styles.d.ts +15 -0
- package/dist/types/components/atoms/Pill/Pill.types.d.ts +10 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +4 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.styles.d.ts +3 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.types.d.ts +9 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.d.ts +3 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.styles.d.ts +3 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.types.d.ts +7 -0
- package/dist/types/components/atoms/Select/Select.d.ts +4 -0
- package/dist/types/components/atoms/Select/Select.styles.d.ts +15 -0
- package/dist/types/components/atoms/Select/Select.types.d.ts +24 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.d.ts +3 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.styles.d.ts +5 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.types.d.ts +12 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.d.ts +3 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.styles.d.ts +1 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.types.d.ts +4 -0
- package/dist/types/components/atoms/Switch/Switch.d.ts +8 -0
- package/dist/types/components/atoms/Switch/Switch.styles.d.ts +5 -0
- package/dist/types/components/atoms/Switch/Switch.types.d.ts +7 -0
- package/dist/types/components/atoms/TabBar/TabBar.d.ts +3 -0
- package/dist/types/components/atoms/TabBar/TabBar.styles.d.ts +5 -0
- package/dist/types/components/atoms/TabBar/TabBar.types.d.ts +10 -0
- package/dist/types/components/atoms/Text/Text.d.ts +4 -0
- package/dist/types/components/atoms/Text/Text.styles.d.ts +6 -0
- package/dist/types/components/atoms/Text/Text.types.d.ts +8 -0
- package/dist/types/components/atoms/Textarea/Textarea.d.ts +4 -0
- package/dist/types/components/atoms/Textarea/Textarea.styles.d.ts +4 -0
- package/{src/components/atoms/Textarea/Textarea.types.ts → dist/types/components/atoms/Textarea/Textarea.types.d.ts} +4 -4
- package/dist/types/components/atoms/TimelineEventIndicator/TimelineEventIndicator.d.ts +1 -0
- package/dist/types/components/atoms/TimelineEventIndicator/TimelineExpandButton.d.ts +7 -0
- package/dist/types/components/atoms/Title/Title.d.ts +3 -0
- package/dist/types/components/atoms/Title/Title.styles.d.ts +1 -0
- package/dist/types/components/atoms/Title/Title.types.d.ts +4 -0
- package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +4 -0
- package/dist/types/components/atoms/Tooltip/Tootip.styles.d.ts +9 -0
- package/dist/types/components/atoms/Tooltip/tooltip.types.d.ts +7 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.styles.d.ts +6 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.types.d.ts +13 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.d.ts +4 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.styles.d.ts +1 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.types.d.ts +5 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.styles.d.ts +3 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.types.d.ts +11 -0
- package/dist/types/components/molecules/Calendar/Calendar.d.ts +8 -0
- package/dist/types/components/molecules/Calendar/Calendar.styles.d.ts +2 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.d.ts +4 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.styles.d.ts +1 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.types.d.ts +9 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.d.ts +4 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.styles.d.ts +17 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.types.d.ts +12 -0
- package/dist/types/components/molecules/FieldSelector/FieldSelector.d.ts +10 -0
- package/dist/types/components/molecules/FieldSelector/FieldSelector.styles.d.ts +8 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.d.ts +4 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.styles.d.ts +8 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.types.d.ts +9 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.d.ts +3 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.styles.d.ts +49 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.types.d.ts +38 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.d.ts +3 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.styles.d.ts +1 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.types.d.ts +9 -0
- package/dist/types/components/molecules/Popover/Popover.d.ts +6 -0
- package/dist/types/components/molecules/Popover/Popover.styles.d.ts +4 -0
- package/dist/types/components/molecules/RadioBoxGroup/RadioBoxGroup.d.ts +15 -0
- package/dist/types/components/molecules/RadioBoxGroup/RadioBoxGroup.styles.d.ts +3 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.d.ts +4 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.styles.d.ts +6 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.types.d.ts +15 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.d.ts +2 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.styles.d.ts +21 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.types.d.ts +8 -0
- package/dist/types/components/molecules/ResultsChart/ResultsChart.d.ts +3 -0
- package/dist/types/components/molecules/ResultsChart/ResultsChart.styles.d.ts +3 -0
- package/{src/components/molecules/ResultsChart/ResultsChart.types.ts → dist/types/components/molecules/ResultsChart/ResultsChart.types.d.ts} +1 -1
- package/dist/types/components/molecules/TabToggle/TabToggle.d.ts +10 -0
- package/dist/types/components/molecules/TabToggle/TabToggle.styles.d.ts +8 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.d.ts +3 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.mapper.d.ts +2 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.registry.d.ts +8 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.styles.d.ts +18 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.types.d.ts +68 -0
- package/dist/types/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.d.ts +2 -0
- package/{src/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.types.ts → dist/types/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.types.d.ts} +4 -4
- package/dist/types/components/molecules/TimeLineEvent/TimelineEvent.d.ts +6 -0
- package/dist/types/components/molecules/TimeLineEvent/TimelineEvent.styles.d.ts +6 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.d.ts +4 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.styles.d.ts +5 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.types.d.ts +14 -0
- package/dist/types/components/organisms/Dialog/Dialog.d.ts +12 -0
- package/dist/types/components/organisms/Dialog/Dialog.styles.d.ts +18 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.d.ts +4 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.styles.d.ts +10 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.types.d.ts +8 -0
- package/dist/types/components/organisms/DonutEmissionsChart/index.d.ts +2 -0
- package/dist/types/components/organisms/ExportExcelModal/ExportExcelModal.d.ts +13 -0
- package/dist/types/components/organisms/ExportExcelModal/ExportExcelModal.styles.d.ts +13 -0
- package/dist/types/components/organisms/Form/Form.d.ts +22 -0
- package/dist/types/components/organisms/Form/Form.styles.d.ts +7 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.d.ts +4 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.styles.d.ts +13 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.types.d.ts +15 -0
- package/dist/types/components/organisms/Navbar/Navbar.d.ts +3 -0
- package/dist/types/components/organisms/Navbar/Navbar.styles.d.ts +15 -0
- package/dist/types/components/organisms/Navbar/Navbar.types.d.ts +32 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.d.ts +3 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.styles.d.ts +3 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.types.d.ts +11 -0
- package/dist/types/components/organisms/TimelineModal/TimelineModal.d.ts +11 -0
- package/dist/types/components/organisms/TimelineModal/TimelineModal.styles.d.ts +15 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.d.ts +3 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.styles.d.ts +1 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.types.d.ts +11 -0
- package/dist/types/components/templates/PermissionMatrix/index.d.ts +1 -0
- package/dist/types/index.d.ts +75 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/styles/tokens/borders.d.ts +16 -0
- package/dist/types/styles/tokens/colors.d.ts +599 -0
- package/dist/types/styles/tokens/radius.d.ts +21 -0
- package/dist/types/styles/tokens/shadows.d.ts +18 -0
- package/dist/types/styles/tokens/sizes.d.ts +59 -0
- package/dist/types/styles/tokens/typography.d.ts +160 -0
- package/dist/types/types/colors.types.d.ts +20 -0
- package/dist/types/types/sizes.types.d.ts +4 -0
- package/package.json +16 -10
- package/src/assets/_banner_contato.png +0 -0
- package/src/assets/_barra.svg +0 -3
- package/src/assets/_effecti.svg +0 -9
- package/src/assets/_granto_corp_navbar.svg +0 -9
- package/src/assets/_logoUmbrella.svg +0 -34
- package/src/assets/avatar1.png +0 -0
- package/src/assets/avatar2.jpg +0 -0
- package/src/assets/avatar3.jpg +0 -0
- package/src/assets/avatar4.jpg +0 -0
- package/src/assets/info.png +0 -0
- package/src/assets/linhaTempo.png +0 -0
- package/src/assets/pen.png +0 -0
- package/src/assets/react.svg +0 -1
- package/src/assets.d.ts +0 -19
- package/src/components/atoms/Badge/Badge.styles.ts +0 -96
- package/src/components/atoms/Badge/Badge.tsx +0 -50
- package/src/components/atoms/Badge/Badge.types.ts +0 -16
- package/src/components/atoms/Breadcrumb/Breadcrumb.styles.ts +0 -43
- package/src/components/atoms/Breadcrumb/Breadcrumb.tsx +0 -46
- package/src/components/atoms/Breadcrumb/Breadcrumb.types.ts +0 -12
- package/src/components/atoms/Button/Button.styles.ts +0 -279
- package/src/components/atoms/Button/Button.tsx +0 -76
- package/src/components/atoms/Button/Button.types.ts +0 -27
- package/src/components/atoms/Checkbox/Checkbox.styles.ts +0 -88
- package/src/components/atoms/Checkbox/Checkbox.tsx +0 -42
- package/src/components/atoms/Checkbox/Checkbox.types.ts +0 -14
- package/src/components/atoms/Checkbox/CheckboxGroup.tsx +0 -37
- package/src/components/atoms/Checkbox/CheckboxSelectAll.tsx +0 -32
- package/src/components/atoms/CodeInput/CodeInput.styles.tsx +0 -38
- package/src/components/atoms/CodeInput/CodeInput.tsx +0 -13
- package/src/components/atoms/CodeInput/CodeInput.types.ts +0 -3
- package/src/components/atoms/DatePickerInput/DatePicker.styles.ts +0 -75
- package/src/components/atoms/DatePickerInput/DatePickerInput.tsx +0 -154
- package/src/components/atoms/DropDownMenu/DropdownMenu.styles.tsx +0 -106
- package/src/components/atoms/DropDownMenu/DropdownMenu.tsx +0 -48
- package/src/components/atoms/DropDownMenu/DropdownMenu.types.ts +0 -15
- package/src/components/atoms/DropDownMenu/index.tsx +0 -5
- package/src/components/atoms/EditIcon/EditIcon.styles.ts +0 -39
- package/src/components/atoms/EditIcon/EditIcon.tsx +0 -21
- package/src/components/atoms/EditIcon/EditIcon.types.ts +0 -7
- package/src/components/atoms/EditIcon/index.ts +0 -0
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.styles.ts +0 -150
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.tsx +0 -138
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.types.ts +0 -19
- package/src/components/atoms/ErrorMessage/ErrorMessage.styles.tsx +0 -28
- package/src/components/atoms/ErrorMessage/ErrorMessage.tsx +0 -12
- package/src/components/atoms/ErrorMessage/ErrorMessage.types.ts +0 -6
- package/src/components/atoms/Footer/Footer.styles.tsx +0 -22
- package/src/components/atoms/Footer/Footer.tsx +0 -9
- package/src/components/atoms/Footer/Footer.types.tsx +0 -5
- package/src/components/atoms/GenericContainer/GenericContainer.styles.tsx +0 -21
- package/src/components/atoms/GenericContainer/GenericContainer.tsx +0 -9
- package/src/components/atoms/GenericContainer/GenericContainer.types.ts +0 -5
- package/src/components/atoms/Icon/Icon.styles.ts +0 -11
- package/src/components/atoms/Icon/Icon.tsx +0 -22
- package/src/components/atoms/Input/Input.styles.ts +0 -106
- package/src/components/atoms/Input/Input.tsx +0 -80
- package/src/components/atoms/Input/Input.types.ts +0 -21
- package/src/components/atoms/Label/Label.styles.ts +0 -16
- package/src/components/atoms/Label/Label.tsx +0 -16
- package/src/components/atoms/Loading/Loading.styles.tsx +0 -25
- package/src/components/atoms/Loading/Loading.tsx +0 -8
- package/src/components/atoms/LogoContainer/LogoContainer.Types.tsx +0 -6
- package/src/components/atoms/LogoContainer/LogoContainer.styles.tsx +0 -11
- package/src/components/atoms/LogoContainer/LogoContainer.tsx +0 -14
- package/src/components/atoms/ModalAviso/ModalAviso.styles.tsx +0 -56
- package/src/components/atoms/ModalAviso/ModalAviso.tsx +0 -43
- package/src/components/atoms/ModalAviso/ModalAviso.types.ts +0 -5
- package/src/components/atoms/MultiSelect/MultiSelect.styles.tsx +0 -100
- package/src/components/atoms/MultiSelect/MultiSelect.tsx +0 -346
- package/src/components/atoms/MultiSelect/MultiSelect.types.ts +0 -38
- package/src/components/atoms/Pill/Pill.styles.ts +0 -46
- package/src/components/atoms/Pill/Pill.tsx +0 -35
- package/src/components/atoms/Pill/Pill.types.ts +0 -14
- package/src/components/atoms/RadioButton/RadioButton.styles.ts +0 -44
- package/src/components/atoms/RadioButton/RadioButton.tsx +0 -31
- package/src/components/atoms/RadioButton/RadioButton.types.ts +0 -9
- package/src/components/atoms/ResendLink/ResendLink.styles.tsx +0 -19
- package/src/components/atoms/ResendLink/ResendLink.tsx +0 -21
- package/src/components/atoms/ResendLink/ResendLink.types.ts +0 -8
- package/src/components/atoms/Select/Select.styles.ts +0 -153
- package/src/components/atoms/Select/Select.tsx +0 -52
- package/src/components/atoms/Select/Select.types.ts +0 -19
- package/src/components/atoms/Skeleton/Skeleton.styles.ts +0 -32
- package/src/components/atoms/Skeleton/Skeleton.tsx +0 -43
- package/src/components/atoms/Skeleton/Skeleton.types.ts +0 -13
- package/src/components/atoms/Subtitle/Subtitle.styles.tsx +0 -21
- package/src/components/atoms/Subtitle/Subtitle.tsx +0 -7
- package/src/components/atoms/Subtitle/Subtitle.types.ts +0 -5
- package/src/components/atoms/Switch/Switch.styles.ts +0 -59
- package/src/components/atoms/Switch/Switch.tsx +0 -25
- package/src/components/atoms/Switch/Switch.types.ts +0 -7
- package/src/components/atoms/TabBar/TabBar.styles.tsx +0 -64
- package/src/components/atoms/TabBar/TabBar.tsx +0 -24
- package/src/components/atoms/TabBar/TabBar.types.ts +0 -11
- package/src/components/atoms/Text/Text.styles.tsx +0 -35
- package/src/components/atoms/Text/Text.tsx +0 -32
- package/src/components/atoms/Text/Text.types.ts +0 -8
- package/src/components/atoms/Textarea/Textarea.styles.ts +0 -52
- package/src/components/atoms/Textarea/Textarea.tsx +0 -31
- package/src/components/atoms/TimelineEventIndicator/TimelineEventIndicator.tsx +0 -12
- package/src/components/atoms/TimelineEventIndicator/TimelineExpandButton.tsx +0 -55
- package/src/components/atoms/Title/Title.styles.tsx +0 -17
- package/src/components/atoms/Title/Title.tsx +0 -7
- package/src/components/atoms/Title/Title.types.ts +0 -5
- package/src/components/atoms/Tooltip/Tooltip.tsx +0 -59
- package/src/components/atoms/Tooltip/Tootip.styles.ts +0 -153
- package/src/components/atoms/Tooltip/tooltip.types.ts +0 -8
- package/src/components/molecules/AvatarGroup/AvatarGroup.styles.ts +0 -43
- package/src/components/molecules/AvatarGroup/AvatarGroup.tsx +0 -39
- package/src/components/molecules/AvatarGroup/AvatarGroup.types.ts +0 -16
- package/src/components/molecules/BannerAjuda/BannerAjuda.styles.tsx +0 -9
- package/src/components/molecules/BannerAjuda/BannerAjuda.tsx +0 -18
- package/src/components/molecules/BannerAjuda/BannerAjuda.types.ts +0 -5
- package/src/components/molecules/ButtonGroup/ButtonGroup.styles.ts +0 -10
- package/src/components/molecules/ButtonGroup/ButtonGroup.tsx +0 -28
- package/src/components/molecules/ButtonGroup/ButtonGroup.types.ts +0 -23
- package/src/components/molecules/Calendar/Calendar.styles.ts +0 -143
- package/src/components/molecules/Calendar/Calendar.tsx +0 -31
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.styles.tsx +0 -7
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.tsx +0 -32
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.types.ts +0 -13
- package/src/components/molecules/ExcludeModal/ExcludeModal.styles.tsx +0 -123
- package/src/components/molecules/ExcludeModal/ExcludeModal.tsx +0 -50
- package/src/components/molecules/ExcludeModal/ExcludeModal.types.ts +0 -12
- package/src/components/molecules/FieldSelector/FieldSelector.styles.ts +0 -63
- package/src/components/molecules/FieldSelector/FieldSelector.tsx +0 -167
- package/src/components/molecules/HighlightsCard/HighlightsCard.styles.tsx +0 -67
- package/src/components/molecules/HighlightsCard/HighlightsCard.tsx +0 -35
- package/src/components/molecules/HighlightsCard/HighlightsCard.types.ts +0 -10
- package/src/components/molecules/InsuranceCard/InsuranceCard.styles.tsx +0 -237
- package/src/components/molecules/InsuranceCard/InsuranceCard.tsx +0 -455
- package/src/components/molecules/InsuranceCard/InsuranceCard.types.ts +0 -41
- package/src/components/molecules/PieChartComponent/PieChartComponent.styles.tsx +0 -7
- package/src/components/molecules/PieChartComponent/PieChartComponent.tsx +0 -70
- package/src/components/molecules/PieChartComponent/PieChartComponent.types.ts +0 -11
- package/src/components/molecules/Popover/Popover.styles.ts +0 -66
- package/src/components/molecules/Popover/Popover.tsx +0 -23
- package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.styles.ts +0 -11
- package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.tsx +0 -43
- package/src/components/molecules/RadioGroupField/RadioGroupField.styles.tsx +0 -65
- package/src/components/molecules/RadioGroupField/RadioGroupField.tsx +0 -69
- package/src/components/molecules/RadioGroupField/RadioGroupField.types.ts +0 -17
- package/src/components/molecules/RefuseModal/RefuseModal.styles.tsx +0 -139
- package/src/components/molecules/RefuseModal/RefuseModal.tsx +0 -92
- package/src/components/molecules/RefuseModal/RefuseModal.types.ts +0 -15
- package/src/components/molecules/ResultsChart/ResultsChart.styles.tsx +0 -26
- package/src/components/molecules/ResultsChart/ResultsChart.tsx +0 -23
- package/src/components/molecules/TabToggle/TabToggle.styles.ts +0 -54
- package/src/components/molecules/TabToggle/TabToggle.tsx +0 -35
- package/src/components/molecules/TimeLine/TimeLine.mapper.ts +0 -112
- package/src/components/molecules/TimeLine/TimeLine.registry.ts +0 -41
- package/src/components/molecules/TimeLine/TimeLine.styles.ts +0 -221
- package/src/components/molecules/TimeLine/TimeLine.tsx +0 -80
- package/src/components/molecules/TimeLine/TimeLine.types.ts +0 -92
- package/src/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.tsx +0 -94
- package/src/components/molecules/TimeLineEvent/TimelineEvent.styles.ts +0 -62
- package/src/components/molecules/TimeLineEvent/TimelineEvent.tsx +0 -58
- package/src/components/organisms/AlertDialog/AlertDialog.styles.tsx +0 -61
- package/src/components/organisms/AlertDialog/AlertDialog.tsx +0 -70
- package/src/components/organisms/AlertDialog/AlertDialog.types.ts +0 -14
- package/src/components/organisms/Dialog/Dialog.styles.ts +0 -107
- package/src/components/organisms/Dialog/Dialog.tsx +0 -69
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.styles.tsx +0 -113
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.tsx +0 -75
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.types.ts +0 -9
- package/src/components/organisms/DonutEmissionsChart/index.tsx +0 -5
- package/src/components/organisms/ExportExcelModal/ExportExcelModal.styles.ts +0 -59
- package/src/components/organisms/ExportExcelModal/ExportExcelModal.tsx +0 -89
- package/src/components/organisms/Form/Form.styles.ts +0 -35
- package/src/components/organisms/Form/Form.tsx +0 -160
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.styles.tsx +0 -115
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.tsx +0 -89
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.types.ts +0 -16
- package/src/components/organisms/Navbar/Navbar.styles.tsx +0 -243
- package/src/components/organisms/Navbar/Navbar.tsx +0 -118
- package/src/components/organisms/Navbar/Navbar.types.ts +0 -34
- package/src/components/organisms/PermissionCard/PermissionCard.styles.ts +0 -37
- package/src/components/organisms/PermissionCard/PermissionCard.tsx +0 -58
- package/src/components/organisms/PermissionCard/PermissionCard.types.ts +0 -12
- package/src/components/organisms/TimelineModal/TimelineModal.styles.ts +0 -109
- package/src/components/organisms/TimelineModal/TimelineModal.tsx +0 -67
- package/src/components/templates/PermissionMatrix/PermissionMatrix.styles.ts +0 -19
- package/src/components/templates/PermissionMatrix/PermissionMatrix.tsx +0 -24
- package/src/components/templates/PermissionMatrix/PermissionMatrix.types.ts +0 -13
- package/src/components/templates/PermissionMatrix/index.ts +0 -0
- package/src/global.d.ts +0 -16
- package/src/index.ts +0 -200
- package/src/lib/utils.ts +0 -6
- package/src/styles/tokens/borders.ts +0 -17
- package/src/styles/tokens/colors.ts +0 -601
- package/src/styles/tokens/radius.ts +0 -22
- package/src/styles/tokens/shadows.ts +0 -22
- package/src/styles/tokens/sizes.ts +0 -60
- package/src/styles/tokens/typography.ts +0 -161
- package/src/types/colors.types.ts +0 -21
- package/src/types/sizes.types.ts +0 -4
- package/src/utils/renderHighlightsCard.tsx +0 -21
- /package/{src/components/atoms/Button/index.ts → dist/types/components/atoms/Button/index.d.ts} +0 -0
- /package/{src/components/atoms/CodeInput/index.tsx → dist/types/components/atoms/CodeInput/index.d.ts} +0 -0
- /package/{src/components/atoms/EditableDurationSelect/index.tsx → dist/types/components/atoms/EditableDurationSelect/index.d.ts} +0 -0
- /package/{src/components/atoms/ErrorMessage/index.tsx → dist/types/components/atoms/ErrorMessage/index.d.ts} +0 -0
- /package/{src/components/atoms/Footer/index.tsx → dist/types/components/atoms/Footer/index.d.ts} +0 -0
- /package/{src/components/atoms/GenericContainer/index.tsx → dist/types/components/atoms/GenericContainer/index.d.ts} +0 -0
- /package/{src/components/atoms/Icon/index.ts → dist/types/components/atoms/Icon/index.d.ts} +0 -0
- /package/{src/components/atoms/Input/index.ts → dist/types/components/atoms/Input/index.d.ts} +0 -0
- /package/{src/components/atoms/Loading/index.tsx → dist/types/components/atoms/Loading/index.d.ts} +0 -0
- /package/{src/components/atoms/LogoContainer/index.tsx → dist/types/components/atoms/LogoContainer/index.d.ts} +0 -0
- /package/{src/components/atoms/ModalAviso/index.tsx → dist/types/components/atoms/ModalAviso/index.d.ts} +0 -0
- /package/{src/components/atoms/MultiSelect/index.tsx → dist/types/components/atoms/MultiSelect/index.d.ts} +0 -0
- /package/{src/components/atoms/ResendLink/index.tsx → dist/types/components/atoms/ResendLink/index.d.ts} +0 -0
- /package/{src/components/atoms/Select/index.tsx → dist/types/components/atoms/Select/index.d.ts} +0 -0
- /package/{src/components/atoms/Subtitle/index.tsx → dist/types/components/atoms/Subtitle/index.d.ts} +0 -0
- /package/{src/components/atoms/TabBar/index.tsx → dist/types/components/atoms/TabBar/index.d.ts} +0 -0
- /package/{src/components/atoms/Text/index.ts → dist/types/components/atoms/Text/index.d.ts} +0 -0
- /package/{src/components/atoms/TimelineEventIndicator/index.tsx → dist/types/components/atoms/TimelineEventIndicator/index.d.ts} +0 -0
- /package/{src/components/atoms/Title/index.tsx → dist/types/components/atoms/Title/index.d.ts} +0 -0
- /package/{src/components/molecules/AvatarGroup/index.ts → dist/types/components/molecules/AvatarGroup/index.d.ts} +0 -0
- /package/{src/components/molecules/BannerAjuda/index.tsx → dist/types/components/molecules/BannerAjuda/index.d.ts} +0 -0
- /package/{src/components/molecules/CodeInputContainer/index.tsx → dist/types/components/molecules/CodeInputContainer/index.d.ts} +0 -0
- /package/{src/components/molecules/ExcludeModal/index.tsx → dist/types/components/molecules/ExcludeModal/index.d.ts} +0 -0
- /package/{src/components/molecules/HighlightsCard/index.tsx → dist/types/components/molecules/HighlightsCard/index.d.ts} +0 -0
- /package/{src/components/molecules/InsuranceCard/index.tsx → dist/types/components/molecules/InsuranceCard/index.d.ts} +0 -0
- /package/{src/components/molecules/PieChartComponent/index.tsx → dist/types/components/molecules/PieChartComponent/index.d.ts} +0 -0
- /package/{src/components/molecules/RadioGroupField/index.tsx → dist/types/components/molecules/RadioGroupField/index.d.ts} +0 -0
- /package/{src/components/molecules/RefuseModal/index.tsx → dist/types/components/molecules/RefuseModal/index.d.ts} +0 -0
- /package/{src/components/molecules/ResultsChart/index.tsx → dist/types/components/molecules/ResultsChart/index.d.ts} +0 -0
- /package/{src/components/molecules/TimeLineEvent/index.ts → dist/types/components/molecules/TimeLineEvent/index.d.ts} +0 -0
- /package/{src/components/organisms/ListagemUltimasEmissoes/index.tsx → dist/types/components/organisms/ListagemUltimasEmissoes/index.d.ts} +0 -0
- /package/{src/components/organisms/PermissionCard/index.ts → dist/types/components/organisms/PermissionCard/index.d.ts} +0 -0
- /package/{src/styles/tokens/index.tsx → dist/types/styles/tokens/index.d.ts} +0 -0
- /package/{src/types/radius.types.ts → dist/types/types/radius.types.d.ts} +0 -0
- /package/{src/types/shadows.types.ts → dist/types/types/shadows.types.d.ts} +0 -0
|
@@ -1,455 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { cnpj } from 'cpf-cnpj-validator';
|
|
3
|
-
import { format, parseISO } from 'date-fns';
|
|
4
|
-
import {
|
|
5
|
-
ChevronDown,
|
|
6
|
-
ChevronUp,
|
|
7
|
-
CreditCard,
|
|
8
|
-
Download,
|
|
9
|
-
FileText,
|
|
10
|
-
Loader2,
|
|
11
|
-
PlusCircle,
|
|
12
|
-
} from 'lucide-react';
|
|
13
|
-
import mask from 'make-mask';
|
|
14
|
-
import { ArrowCircleUpRight, Cube, FlowArrow, XCircle } from 'phosphor-react';
|
|
15
|
-
import React, { useState } from 'react';
|
|
16
|
-
|
|
17
|
-
import Pill from '../../atoms/Pill/Pill';
|
|
18
|
-
import { mapRemoteToTimeline } from '../../molecules/TimeLine/TimeLine.mapper';
|
|
19
|
-
import { TimelineModal } from '../../organisms/TimelineModal/TimelineModal';
|
|
20
|
-
import { ExcludeModal } from '../ExcludeModal';
|
|
21
|
-
import { RefuseModal } from '../RefuseModal';
|
|
22
|
-
import {
|
|
23
|
-
ActionButton,
|
|
24
|
-
Actions,
|
|
25
|
-
BodyRow,
|
|
26
|
-
CardContainer,
|
|
27
|
-
DropdownMenu,
|
|
28
|
-
DropdownWrapper,
|
|
29
|
-
HeaderRow,
|
|
30
|
-
InfoLabel,
|
|
31
|
-
InfoRow,
|
|
32
|
-
InfoSubValue,
|
|
33
|
-
InfoValue,
|
|
34
|
-
MenuItemProps,
|
|
35
|
-
ProcessValue,
|
|
36
|
-
ProdValue,
|
|
37
|
-
StyledMenuItem,
|
|
38
|
-
Text,
|
|
39
|
-
TruncatedValue,
|
|
40
|
-
} from './InsuranceCard.styles';
|
|
41
|
-
import { InsuranceCardProps, StatusVariant } from './InsuranceCard.types';
|
|
42
|
-
|
|
43
|
-
export const InsuranceCard: React.FC<InsuranceCardProps> = ({
|
|
44
|
-
idGranto,
|
|
45
|
-
idOrder,
|
|
46
|
-
idInsurance,
|
|
47
|
-
idInterno,
|
|
48
|
-
isSupply,
|
|
49
|
-
hasMinute,
|
|
50
|
-
statusLabel,
|
|
51
|
-
statusVariant,
|
|
52
|
-
seguradoName,
|
|
53
|
-
seguradoCnpj,
|
|
54
|
-
product,
|
|
55
|
-
issuedDate,
|
|
56
|
-
totalValue,
|
|
57
|
-
processId,
|
|
58
|
-
activeIndex,
|
|
59
|
-
testId,
|
|
60
|
-
openCardId,
|
|
61
|
-
setOpenCardId,
|
|
62
|
-
runQuery,
|
|
63
|
-
useDownloadAndSupport,
|
|
64
|
-
useDownloadFile,
|
|
65
|
-
useChangeOrderStageAsync,
|
|
66
|
-
useMyStore,
|
|
67
|
-
useQueryClient,
|
|
68
|
-
useGetTimeline,
|
|
69
|
-
useAuthStoreV2,
|
|
70
|
-
navigate,
|
|
71
|
-
}) => {
|
|
72
|
-
const [loadingItem, setLoadingItem] = useState<string | null>(null);
|
|
73
|
-
const [showRefuseModal, setShowRefuseModal] = useState(false);
|
|
74
|
-
const [showExcludeModal, setShowExcludeModal] = useState(false);
|
|
75
|
-
const [showTimeline, setShowTimeline] = useState(false);
|
|
76
|
-
const [timelineItems, setTimelineItems] = useState<
|
|
77
|
-
ReturnType<typeof mapRemoteToTimeline>
|
|
78
|
-
>([]);
|
|
79
|
-
const { isLoading: isTimelineLoading, refetch: fetchTimeline } =
|
|
80
|
-
useGetTimeline({ orderId: idOrder, insuranceId: idInsurance });
|
|
81
|
-
|
|
82
|
-
const showTimelineToggle = async () => {
|
|
83
|
-
const willOpen = !showTimeline;
|
|
84
|
-
|
|
85
|
-
if (willOpen && (!timelineItems || timelineItems.length === 0)) {
|
|
86
|
-
setLoadingItem('linha_do_tempo');
|
|
87
|
-
setShowTimeline(true);
|
|
88
|
-
try {
|
|
89
|
-
const { data: remote } = await fetchTimeline();
|
|
90
|
-
setTimelineItems(mapRemoteToTimeline(remote ?? []));
|
|
91
|
-
} catch (err) {
|
|
92
|
-
console.error('Falha ao carregar timeline', err);
|
|
93
|
-
} finally {
|
|
94
|
-
setLoadingItem(null);
|
|
95
|
-
}
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
setShowTimeline(willOpen);
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
const isOpen = openCardId === idOrder;
|
|
103
|
-
|
|
104
|
-
const toggleOpen = () => {
|
|
105
|
-
setOpenCardId(isOpen ? null : idOrder);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
const handleClick = async (
|
|
109
|
-
key: string,
|
|
110
|
-
callback: () => Promise<void> | void
|
|
111
|
-
) => {
|
|
112
|
-
setLoadingItem(key);
|
|
113
|
-
await Promise.resolve(callback());
|
|
114
|
-
setLoadingItem(null);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
const { isAllowedByRoles } = useAuthStoreV2();
|
|
118
|
-
|
|
119
|
-
const [productTitle, productDescription] = product;
|
|
120
|
-
|
|
121
|
-
const { downloadFile, searchCerts } = useDownloadFile(idOrder);
|
|
122
|
-
const { onEndorsementClick } = useDownloadAndSupport();
|
|
123
|
-
const mutateStageOrder = useChangeOrderStageAsync();
|
|
124
|
-
const { setData } = useMyStore();
|
|
125
|
-
const queryClient = useQueryClient();
|
|
126
|
-
|
|
127
|
-
const irParaContinuarEmissao = () => {
|
|
128
|
-
const stateData = idInsurance
|
|
129
|
-
? { idInsurance, isSupply }
|
|
130
|
-
: { idOrder, isSupply };
|
|
131
|
-
if (
|
|
132
|
-
statusLabel === 'Proposta recusada' ||
|
|
133
|
-
statusLabel === 'Proposta excluída'
|
|
134
|
-
) {
|
|
135
|
-
mutateStageOrder.mutateAsync(
|
|
136
|
-
{
|
|
137
|
-
id: idGranto,
|
|
138
|
-
newStage: 'IDLE',
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
onSuccess: () => {
|
|
142
|
-
queryClient.invalidateQueries({ queryKey: ['orders'] });
|
|
143
|
-
},
|
|
144
|
-
}
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
navigate('/issue', { state: stateData });
|
|
148
|
-
|
|
149
|
-
setData({});
|
|
150
|
-
};
|
|
151
|
-
const abrirModalExcluirProposta = () => setShowExcludeModal(true);
|
|
152
|
-
const fecharModalExclusao = () => setShowExcludeModal(false);
|
|
153
|
-
|
|
154
|
-
const confirmarExclusao = () => {
|
|
155
|
-
runQuery();
|
|
156
|
-
fecharModalExclusao();
|
|
157
|
-
};
|
|
158
|
-
const abrirModalRecusarProposta = () => setShowRefuseModal(true);
|
|
159
|
-
const fecharModalRecusa = () => setShowRefuseModal(false);
|
|
160
|
-
|
|
161
|
-
const confirmarRecusa = () => {
|
|
162
|
-
runQuery();
|
|
163
|
-
fecharModalRecusa();
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
return (
|
|
167
|
-
<CardContainer
|
|
168
|
-
data-testid={testId}
|
|
169
|
-
id={testId}
|
|
170
|
-
$variant={statusVariant as StatusVariant}
|
|
171
|
-
>
|
|
172
|
-
<ExcludeModal
|
|
173
|
-
open={showExcludeModal}
|
|
174
|
-
onOpenChange={setShowExcludeModal}
|
|
175
|
-
onConfirm={confirmarExclusao}
|
|
176
|
-
onClose={fecharModalExclusao}
|
|
177
|
-
orderId={idGranto}
|
|
178
|
-
/>
|
|
179
|
-
<RefuseModal
|
|
180
|
-
open={showRefuseModal}
|
|
181
|
-
onOpenChange={setShowRefuseModal}
|
|
182
|
-
onConfirm={confirmarRecusa}
|
|
183
|
-
onClose={fecharModalRecusa}
|
|
184
|
-
orderId={idGranto}
|
|
185
|
-
/>
|
|
186
|
-
<TimelineModal
|
|
187
|
-
open={showTimeline}
|
|
188
|
-
onOpenChange={setShowTimeline}
|
|
189
|
-
onClose={() => setShowTimeline(false)}
|
|
190
|
-
data={timelineItems}
|
|
191
|
-
loading={isTimelineLoading}
|
|
192
|
-
onRetry={fetchTimeline}
|
|
193
|
-
/>
|
|
194
|
-
<HeaderRow>
|
|
195
|
-
{isSupply && (
|
|
196
|
-
<Pill size={'sm'} variant="supply">
|
|
197
|
-
<Cube />
|
|
198
|
-
Suppliers
|
|
199
|
-
</Pill>
|
|
200
|
-
)}
|
|
201
|
-
<Text>ID Granto: {idGranto}</Text>
|
|
202
|
-
<Text>ID interno: {idInterno}</Text>
|
|
203
|
-
<Text $variant={statusVariant as StatusVariant}>
|
|
204
|
-
{activeIndex === 0 ? 'Etapa' : 'Status'}: {statusLabel}
|
|
205
|
-
</Text>
|
|
206
|
-
</HeaderRow>
|
|
207
|
-
<BodyRow>
|
|
208
|
-
<InfoRow>
|
|
209
|
-
<InfoLabel>Segurado</InfoLabel>
|
|
210
|
-
<TruncatedValue>{seguradoName}</TruncatedValue>
|
|
211
|
-
<InfoSubValue>
|
|
212
|
-
{mask(
|
|
213
|
-
seguradoCnpj,
|
|
214
|
-
cnpj.isValid(seguradoCnpj)
|
|
215
|
-
? '00.000.000/0000-00'
|
|
216
|
-
: '000.000.000-00'
|
|
217
|
-
)}
|
|
218
|
-
</InfoSubValue>
|
|
219
|
-
</InfoRow>
|
|
220
|
-
<InfoRow>
|
|
221
|
-
<InfoLabel>Produto</InfoLabel>
|
|
222
|
-
<ProdValue>{productTitle}</ProdValue>
|
|
223
|
-
<InfoSubValue>{productDescription}</InfoSubValue>
|
|
224
|
-
</InfoRow>
|
|
225
|
-
<InfoRow>
|
|
226
|
-
<InfoLabel>
|
|
227
|
-
{activeIndex === 0 ? 'Iniciado em' : 'Emitido em'}
|
|
228
|
-
</InfoLabel>
|
|
229
|
-
<InfoValue>{format(parseISO(issuedDate), 'dd/MM/yyyy')}</InfoValue>
|
|
230
|
-
</InfoRow>
|
|
231
|
-
<InfoRow>
|
|
232
|
-
<InfoLabel>
|
|
233
|
-
{' '}
|
|
234
|
-
{activeIndex === 0 ? 'Valor a ser pago' : 'Valor pago'}
|
|
235
|
-
</InfoLabel>
|
|
236
|
-
<InfoValue>{totalValue}</InfoValue>
|
|
237
|
-
</InfoRow>
|
|
238
|
-
<InfoRow>
|
|
239
|
-
<InfoLabel>Processo</InfoLabel>
|
|
240
|
-
<ProcessValue>
|
|
241
|
-
{processId
|
|
242
|
-
? mask(processId || '', '0000000-00.0000.0.00.0000')
|
|
243
|
-
: '-'}
|
|
244
|
-
</ProcessValue>
|
|
245
|
-
</InfoRow>
|
|
246
|
-
<Actions>
|
|
247
|
-
<DropdownWrapper>
|
|
248
|
-
<ActionButton
|
|
249
|
-
data-testid={`btn_minhas_emissoes_mais_informacoes_${processId}`}
|
|
250
|
-
id={`btn_minhas_emissoes_mais_informacoes_${processId}`}
|
|
251
|
-
onClick={toggleOpen}
|
|
252
|
-
>
|
|
253
|
-
Mais informações{' '}
|
|
254
|
-
{isOpen ? <ChevronUp size={16} /> : <ChevronDown size={16} />}
|
|
255
|
-
</ActionButton>
|
|
256
|
-
{isOpen && activeIndex === 0 && (
|
|
257
|
-
<DropdownMenu>
|
|
258
|
-
<MenuItem
|
|
259
|
-
data-testid={`btn_minhas_linha_do_tempo_${processId}`}
|
|
260
|
-
id={`btn_minhas_linha_do_tempo_${processId}`}
|
|
261
|
-
icon={
|
|
262
|
-
loadingItem === 'linha_do_tempo' || isTimelineLoading ? (
|
|
263
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
264
|
-
) : (
|
|
265
|
-
<FlowArrow size={16} />
|
|
266
|
-
)
|
|
267
|
-
}
|
|
268
|
-
onClick={() =>
|
|
269
|
-
handleClick('linha_do_tempo', showTimelineToggle)
|
|
270
|
-
}
|
|
271
|
-
>
|
|
272
|
-
Linha do tempo
|
|
273
|
-
</MenuItem>
|
|
274
|
-
<MenuItem
|
|
275
|
-
data-testid={`btn_minhas_emissoes_continuar_emissao_${processId}`}
|
|
276
|
-
id={`btn_minhas_emissoes_continuar_emissao_${processId}`}
|
|
277
|
-
icon={
|
|
278
|
-
loadingItem === 'continuar_emissao' ? (
|
|
279
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
280
|
-
) : (
|
|
281
|
-
<ArrowCircleUpRight size={16} />
|
|
282
|
-
)
|
|
283
|
-
}
|
|
284
|
-
onClick={() =>
|
|
285
|
-
handleClick('continuar_emissao', irParaContinuarEmissao)
|
|
286
|
-
}
|
|
287
|
-
>
|
|
288
|
-
Continuar emissão
|
|
289
|
-
</MenuItem>
|
|
290
|
-
{hasMinute && isAllowedByRoles('user') && (
|
|
291
|
-
<MenuItem
|
|
292
|
-
data-testid={`btn_minhas_emissoes_baixar_minuta_${processId}`}
|
|
293
|
-
id={`btn_minhas_emissoes_baixar_minuta_${processId}`}
|
|
294
|
-
icon={
|
|
295
|
-
loadingItem === 'minuta' ? (
|
|
296
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
297
|
-
) : (
|
|
298
|
-
<Download size={16} />
|
|
299
|
-
)
|
|
300
|
-
}
|
|
301
|
-
onClick={() =>
|
|
302
|
-
handleClick('minuta', () => downloadFile('MINUTE', true))
|
|
303
|
-
}
|
|
304
|
-
>
|
|
305
|
-
Baixar minuta
|
|
306
|
-
</MenuItem>
|
|
307
|
-
)}
|
|
308
|
-
{statusLabel === 'Aguardando aprovação' && (
|
|
309
|
-
<MenuItem
|
|
310
|
-
danger
|
|
311
|
-
data-testid={`btn_minhas_emissoes_recusar_proposta_${processId}`}
|
|
312
|
-
id={`btn_minhas_emissoes_recusar_proposta_${processId}`}
|
|
313
|
-
icon={
|
|
314
|
-
loadingItem === 'recusar_proposta' ? (
|
|
315
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
316
|
-
) : (
|
|
317
|
-
<XCircle size={16} />
|
|
318
|
-
)
|
|
319
|
-
}
|
|
320
|
-
onClick={() =>
|
|
321
|
-
handleClick('recusar_proposta', abrirModalRecusarProposta)
|
|
322
|
-
}
|
|
323
|
-
>
|
|
324
|
-
Recusar proposta
|
|
325
|
-
</MenuItem>
|
|
326
|
-
)}
|
|
327
|
-
{statusLabel === 'Proposta recusada' && (
|
|
328
|
-
<MenuItem
|
|
329
|
-
danger
|
|
330
|
-
data-testid={`btn_minhas_emissoes_excluir_proposta_${processId}`}
|
|
331
|
-
id={`btn_minhas_emissoes_excluir_proposta_${processId}`}
|
|
332
|
-
icon={
|
|
333
|
-
loadingItem === 'excluir_proposta' ? (
|
|
334
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
335
|
-
) : (
|
|
336
|
-
<XCircle size={16} />
|
|
337
|
-
)
|
|
338
|
-
}
|
|
339
|
-
onClick={() =>
|
|
340
|
-
handleClick('excluir_proposta', abrirModalExcluirProposta)
|
|
341
|
-
}
|
|
342
|
-
>
|
|
343
|
-
Excluir proposta
|
|
344
|
-
</MenuItem>
|
|
345
|
-
)}
|
|
346
|
-
</DropdownMenu>
|
|
347
|
-
)}
|
|
348
|
-
{isOpen && activeIndex === 1 && (
|
|
349
|
-
<DropdownMenu>
|
|
350
|
-
<MenuItem
|
|
351
|
-
data-testid={`btn_minhas_linha_do_tempo_${processId}`}
|
|
352
|
-
id={`btn_minhas_linha_do_tempo_${processId}`}
|
|
353
|
-
icon={
|
|
354
|
-
loadingItem === 'linha_do_tempo' || isTimelineLoading ? (
|
|
355
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
356
|
-
) : (
|
|
357
|
-
<FlowArrow size={16} />
|
|
358
|
-
)
|
|
359
|
-
}
|
|
360
|
-
onClick={() =>
|
|
361
|
-
handleClick('linha_do_tempo', showTimelineToggle)
|
|
362
|
-
}
|
|
363
|
-
>
|
|
364
|
-
Linha do tempo
|
|
365
|
-
</MenuItem>
|
|
366
|
-
<MenuItem
|
|
367
|
-
data-testid={`btn_minhas_emissoes_baixar_apolice_${processId}`}
|
|
368
|
-
id={`btn_minhas_emissoes_baixar_apolice_${processId}`}
|
|
369
|
-
icon={
|
|
370
|
-
loadingItem === 'apolice' ? (
|
|
371
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
372
|
-
) : (
|
|
373
|
-
<FileText size={16} />
|
|
374
|
-
)
|
|
375
|
-
}
|
|
376
|
-
onClick={() =>
|
|
377
|
-
handleClick('apolice', () => downloadFile('POLICY', true))
|
|
378
|
-
}
|
|
379
|
-
>
|
|
380
|
-
Baixar apólice
|
|
381
|
-
</MenuItem>
|
|
382
|
-
<MenuItem
|
|
383
|
-
data-testid={`btn_minhas_emissoes_baixar_boleto_${processId}`}
|
|
384
|
-
id={`btn_minhas_emissoes_baixar_boleto_${processId}`}
|
|
385
|
-
icon={
|
|
386
|
-
loadingItem === 'boleto' ? (
|
|
387
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
388
|
-
) : (
|
|
389
|
-
<CreditCard size={16} />
|
|
390
|
-
)
|
|
391
|
-
}
|
|
392
|
-
onClick={() =>
|
|
393
|
-
handleClick('boleto', () => downloadFile('SLIP', true))
|
|
394
|
-
}
|
|
395
|
-
>
|
|
396
|
-
Baixar boleto
|
|
397
|
-
</MenuItem>
|
|
398
|
-
<MenuItem
|
|
399
|
-
data-testid={`btn_minhas_emissoes_baixar_certidoes_${processId}`}
|
|
400
|
-
id={`btn_minhas_emissoes_baixar_certidoes_${processId}`}
|
|
401
|
-
icon={
|
|
402
|
-
loadingItem === 'certidoes' ? (
|
|
403
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
404
|
-
) : (
|
|
405
|
-
<Download size={16} />
|
|
406
|
-
)
|
|
407
|
-
}
|
|
408
|
-
onClick={() =>
|
|
409
|
-
handleClick('certidoes', () =>
|
|
410
|
-
searchCerts(idInsurance!, idOrder)
|
|
411
|
-
)
|
|
412
|
-
}
|
|
413
|
-
>
|
|
414
|
-
Baixar certidões
|
|
415
|
-
</MenuItem>
|
|
416
|
-
<MenuItem
|
|
417
|
-
data-testid={`btn_minhas_emissoes_solicitar_endosso_${processId}`}
|
|
418
|
-
id={`btn_minhas_emissoes_solicitar_endosso_${processId}`}
|
|
419
|
-
icon={
|
|
420
|
-
loadingItem === 'endosso' ? (
|
|
421
|
-
<Loader2 className="mr-2 h-5 w-5 animate-spin" />
|
|
422
|
-
) : (
|
|
423
|
-
<PlusCircle size={16} />
|
|
424
|
-
)
|
|
425
|
-
}
|
|
426
|
-
onClick={() =>
|
|
427
|
-
handleClick('endosso', () =>
|
|
428
|
-
onEndorsementClick('Umbrela Corp', idInsurance!)
|
|
429
|
-
)
|
|
430
|
-
}
|
|
431
|
-
>
|
|
432
|
-
Solicitar endosso
|
|
433
|
-
</MenuItem>
|
|
434
|
-
</DropdownMenu>
|
|
435
|
-
)}
|
|
436
|
-
</DropdownWrapper>
|
|
437
|
-
</Actions>
|
|
438
|
-
</BodyRow>
|
|
439
|
-
</CardContainer>
|
|
440
|
-
);
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
const MenuItem: React.FC<MenuItemProps> = ({
|
|
444
|
-
icon,
|
|
445
|
-
danger,
|
|
446
|
-
children,
|
|
447
|
-
...rest
|
|
448
|
-
}) => {
|
|
449
|
-
return (
|
|
450
|
-
<StyledMenuItem {...rest} $danger={danger}>
|
|
451
|
-
{icon}
|
|
452
|
-
{children}
|
|
453
|
-
</StyledMenuItem>
|
|
454
|
-
);
|
|
455
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
export type StatusVariant = 'primary' | 'success' | 'warning' | 'danger';
|
|
3
|
-
|
|
4
|
-
export interface InsuranceCardProps {
|
|
5
|
-
idGranto: string;
|
|
6
|
-
idOrder: string;
|
|
7
|
-
idInsurance?: string;
|
|
8
|
-
idInterno: string;
|
|
9
|
-
isSupply: boolean;
|
|
10
|
-
hasMinute: boolean;
|
|
11
|
-
statusLabel: string;
|
|
12
|
-
statusVariant: StatusVariant;
|
|
13
|
-
seguradoName: string;
|
|
14
|
-
seguradoCnpj: string;
|
|
15
|
-
product: any;
|
|
16
|
-
issuedDate: string;
|
|
17
|
-
totalValue: string;
|
|
18
|
-
processId?: string;
|
|
19
|
-
activeIndex: number;
|
|
20
|
-
testId?: string;
|
|
21
|
-
openCardId: string | null;
|
|
22
|
-
setOpenCardId: (id: string | null) => void;
|
|
23
|
-
runQuery: () => void;
|
|
24
|
-
useDownloadAndSupport: any;
|
|
25
|
-
useDownloadFile: any;
|
|
26
|
-
useChangeOrderStageAsync: any;
|
|
27
|
-
useMyStore: any;
|
|
28
|
-
useQueryClient: any;
|
|
29
|
-
useGetTimeline: any;
|
|
30
|
-
useAuthStoreV2: any;
|
|
31
|
-
navigate: any;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface MenuItemProps {
|
|
35
|
-
icon: React.ReactNode;
|
|
36
|
-
danger?: boolean;
|
|
37
|
-
children: React.ReactNode;
|
|
38
|
-
onClick?: () => void;
|
|
39
|
-
id?: string;
|
|
40
|
-
'data-testid'?: string;
|
|
41
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { PieChart, Pie, Label, Tooltip } from 'recharts';
|
|
3
|
-
import { StyledPieChart } from './PieChartComponent.styles';
|
|
4
|
-
import { PieChartComponentProps } from './PieChartComponent.types';
|
|
5
|
-
import { semanticColors, typographyTokens } from '../../../styles/tokens';
|
|
6
|
-
|
|
7
|
-
const PieChartComponent = ({ data }: PieChartComponentProps) => {
|
|
8
|
-
const totalEmissoes = useMemo(
|
|
9
|
-
() => data.reduce((acc, curr) => acc + curr.value, 0),
|
|
10
|
-
[data]
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<StyledPieChart>
|
|
15
|
-
<PieChart width={155} height={155}>
|
|
16
|
-
<Tooltip cursor={false} />
|
|
17
|
-
<Pie
|
|
18
|
-
data={data}
|
|
19
|
-
dataKey="value"
|
|
20
|
-
nameKey="name"
|
|
21
|
-
innerRadius={52}
|
|
22
|
-
outerRadius={62}
|
|
23
|
-
stroke="none"
|
|
24
|
-
paddingAngle={2}
|
|
25
|
-
>
|
|
26
|
-
<Label
|
|
27
|
-
content={({ viewBox }) => {
|
|
28
|
-
if (viewBox && 'cx' in viewBox && 'cy' in viewBox) {
|
|
29
|
-
const { cx, cy } = viewBox;
|
|
30
|
-
return (
|
|
31
|
-
<text
|
|
32
|
-
x={cx}
|
|
33
|
-
y={cy}
|
|
34
|
-
textAnchor="middle"
|
|
35
|
-
dominantBaseline="middle"
|
|
36
|
-
>
|
|
37
|
-
<tspan
|
|
38
|
-
x={cx}
|
|
39
|
-
y={(cy ?? 0) - 8}
|
|
40
|
-
style={{
|
|
41
|
-
fontSize: typographyTokens.fontSizes.displayL,
|
|
42
|
-
fontWeight: typographyTokens.fontWeights.bold,
|
|
43
|
-
fill: semanticColors.base.text,
|
|
44
|
-
}}
|
|
45
|
-
>
|
|
46
|
-
{totalEmissoes}
|
|
47
|
-
</tspan>
|
|
48
|
-
<tspan
|
|
49
|
-
x={cx}
|
|
50
|
-
y={(cy ?? 0) + 16}
|
|
51
|
-
style={{
|
|
52
|
-
fontSize: typographyTokens.fontSizes.bodyS,
|
|
53
|
-
fill: semanticColors.base.text,
|
|
54
|
-
}}
|
|
55
|
-
>
|
|
56
|
-
emissões
|
|
57
|
-
</tspan>
|
|
58
|
-
</text>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
return null;
|
|
62
|
-
}}
|
|
63
|
-
/>
|
|
64
|
-
</Pie>
|
|
65
|
-
</PieChart>
|
|
66
|
-
</StyledPieChart>
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export { PieChartComponent };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import styled, { keyframes } from 'styled-components';
|
|
2
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
-
|
|
4
|
-
const animateIn = keyframes`
|
|
5
|
-
from { opacity: 0; transform: scale(0.95); }
|
|
6
|
-
to { opacity: 1; transform: scale(1); }
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
const animateOut = keyframes`
|
|
10
|
-
from { opacity: 1; transform: scale(1); }
|
|
11
|
-
to { opacity: 0; transform: scale(0.95); }
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
const slideInFromTop2 = keyframes`
|
|
15
|
-
from { transform: translateY(-10px); opacity: 0; }
|
|
16
|
-
to { transform: translateY(0); opacity: 1; }
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
const slideInFromRight2 = keyframes`
|
|
20
|
-
from { transform: translateX(10px); opacity: 0; }
|
|
21
|
-
to { transform: translateX(0); opacity: 1; }
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
const slideInFromLeft2 = keyframes`
|
|
25
|
-
from { transform: translateX(-10px); opacity: 0; }
|
|
26
|
-
to { transform: translateX(0); opacity: 1; }
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
const slideInFromBottom2 = keyframes`
|
|
30
|
-
from { transform: translateY(10px); opacity: 0; }
|
|
31
|
-
to { transform: translateY(0); opacity: 1; }
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
export const StyledPopoverContent = styled(PopoverPrimitive.Content)`
|
|
35
|
-
z-index: 50;
|
|
36
|
-
width: 18rem;
|
|
37
|
-
border-radius: 0.375rem;
|
|
38
|
-
border: 1px solid #e5e7eb;
|
|
39
|
-
background-color: var(--popover-bg, #fff);
|
|
40
|
-
padding: 1rem;
|
|
41
|
-
color: var(--popover-foreground, #000);
|
|
42
|
-
box-shadow:
|
|
43
|
-
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
44
|
-
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
45
|
-
outline: none;
|
|
46
|
-
|
|
47
|
-
&[data-state='open'] {
|
|
48
|
-
animation: ${animateIn} 0.3s ease-out forwards;
|
|
49
|
-
}
|
|
50
|
-
&[data-state='closed'] {
|
|
51
|
-
animation: ${animateOut} 0.3s ease-in forwards;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&[data-side='bottom'] {
|
|
55
|
-
animation: ${slideInFromTop2} 0.3s ease-out forwards;
|
|
56
|
-
}
|
|
57
|
-
&[data-side='left'] {
|
|
58
|
-
animation: ${slideInFromRight2} 0.3s ease-out forwards;
|
|
59
|
-
}
|
|
60
|
-
&[data-side='right'] {
|
|
61
|
-
animation: ${slideInFromLeft2} 0.3s ease-out forwards;
|
|
62
|
-
}
|
|
63
|
-
&[data-side='top'] {
|
|
64
|
-
animation: ${slideInFromBottom2} 0.3s ease-out forwards;
|
|
65
|
-
}
|
|
66
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
-
import { StyledPopoverContent } from './Popover.styles';
|
|
4
|
-
|
|
5
|
-
const Popover = PopoverPrimitive.Root;
|
|
6
|
-
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
7
|
-
|
|
8
|
-
const PopoverContent = React.forwardRef<
|
|
9
|
-
React.ElementRef<typeof PopoverPrimitive.Content>,
|
|
10
|
-
React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
|
|
11
|
-
>(({ align = 'center', sideOffset = 4, ...props }, ref) => (
|
|
12
|
-
<PopoverPrimitive.Portal>
|
|
13
|
-
<StyledPopoverContent
|
|
14
|
-
ref={ref}
|
|
15
|
-
align={align}
|
|
16
|
-
sideOffset={sideOffset}
|
|
17
|
-
{...props}
|
|
18
|
-
/>
|
|
19
|
-
</PopoverPrimitive.Portal>
|
|
20
|
-
));
|
|
21
|
-
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
22
|
-
|
|
23
|
-
export { Popover, PopoverTrigger, PopoverContent };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { semanticSizes } from '../../../styles/tokens';
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div<{
|
|
5
|
-
orientation?: 'horizontal' | 'vertical';
|
|
6
|
-
}>`
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: ${({ orientation = 'horizontal' }) =>
|
|
9
|
-
orientation === 'vertical' ? 'column' : 'row'};
|
|
10
|
-
gap: ${semanticSizes.global.padding.sm};
|
|
11
|
-
`;
|