@granto-umbrella/umbrella-components 3.0.76 → 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,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Container } from './RadioBoxGroup.styles';
|
|
3
|
-
import RadioButton from '../../../components/atoms/RadioButton/RadioButton';
|
|
4
|
-
|
|
5
|
-
export interface Option {
|
|
6
|
-
label: string;
|
|
7
|
-
value: string | number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface RadioBoxGroupProps {
|
|
12
|
-
name: string;
|
|
13
|
-
options: Option[];
|
|
14
|
-
value: string;
|
|
15
|
-
onChange: (value: string) => void;
|
|
16
|
-
orientation?: 'horizontal' | 'vertical';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const RadioBoxGroup: React.FC<RadioBoxGroupProps> = ({
|
|
20
|
-
name,
|
|
21
|
-
options,
|
|
22
|
-
value,
|
|
23
|
-
onChange,
|
|
24
|
-
orientation = 'horizontal',
|
|
25
|
-
}) => {
|
|
26
|
-
return (
|
|
27
|
-
<Container orientation={orientation}>
|
|
28
|
-
{options.map((opt) => (
|
|
29
|
-
<RadioButton
|
|
30
|
-
key={opt.value}
|
|
31
|
-
name={name}
|
|
32
|
-
value={`${opt.value}`}
|
|
33
|
-
label={opt.label}
|
|
34
|
-
checked={opt.value === value}
|
|
35
|
-
disabled={opt.disabled}
|
|
36
|
-
onChange={(e) => onChange(e.currentTarget.value)}
|
|
37
|
-
/>
|
|
38
|
-
))}
|
|
39
|
-
</Container>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default RadioBoxGroup;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticRadius,
|
|
5
|
-
semanticSizes,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
} from '../../../styles/tokens';
|
|
8
|
-
|
|
9
|
-
export const RadioGroupContainer = styled.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-wrap: wrap;
|
|
12
|
-
gap: ${semanticSizes.global.gap.md};
|
|
13
|
-
width: 100%;
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
export const RadioButton = styled.div<{ isSelected: boolean }>`
|
|
17
|
-
min-width: 274px;
|
|
18
|
-
padding: ${semanticSizes.global.padding.md}
|
|
19
|
-
${semanticSizes.global.padding['2xl']};
|
|
20
|
-
height: 40px;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
border-radius: ${semanticRadius.global.radius.md2};
|
|
26
|
-
transition: all 0.2s;
|
|
27
|
-
font-size: ${typographyTokens.fontSizes.bodyS};
|
|
28
|
-
font-weight: ${typographyTokens.fontWeights.regular};
|
|
29
|
-
|
|
30
|
-
${({ isSelected }) =>
|
|
31
|
-
isSelected
|
|
32
|
-
? `
|
|
33
|
-
background-color: ${semanticColors.branding.surface.enabled};
|
|
34
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
35
|
-
border: none;
|
|
36
|
-
`
|
|
37
|
-
: `
|
|
38
|
-
background-color: ${semanticColors.base.background};
|
|
39
|
-
color: ${semanticColors.neutral[700]};
|
|
40
|
-
border: 1px solid ${semanticColors.global.border.default};
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
border-color: ${semanticColors.global.border.medium};
|
|
44
|
-
}
|
|
45
|
-
`}
|
|
46
|
-
|
|
47
|
-
&:disabled {
|
|
48
|
-
cursor: not-allowed;
|
|
49
|
-
opacity: 0.5;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
|
|
53
|
-
export const RadioLabel = styled.label`
|
|
54
|
-
display: inline-flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
gap: ${semanticSizes.global.gap.lg};
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
margin: 0;
|
|
59
|
-
`;
|
|
60
|
-
|
|
61
|
-
export const HiddenRadioInput = styled.input`
|
|
62
|
-
position: absolute;
|
|
63
|
-
opacity: 0;
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
`;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
RadioGroupContainer,
|
|
4
|
-
RadioButton,
|
|
5
|
-
RadioLabel,
|
|
6
|
-
HiddenRadioInput,
|
|
7
|
-
} from './RadioGroupField.styles';
|
|
8
|
-
import { RadioGroupFieldProps } from './RadioGroupField.types';
|
|
9
|
-
|
|
10
|
-
const RadioGroupField: React.FC<RadioGroupFieldProps> = ({
|
|
11
|
-
options,
|
|
12
|
-
value: controlledValue,
|
|
13
|
-
defaultValue,
|
|
14
|
-
onChange,
|
|
15
|
-
name = 'radio-group',
|
|
16
|
-
disabled = false,
|
|
17
|
-
}) => {
|
|
18
|
-
const [internalValue, setInternalValue] = useState(defaultValue || '');
|
|
19
|
-
|
|
20
|
-
// Componente controlado ou não-controlado
|
|
21
|
-
const isControlled = controlledValue !== undefined;
|
|
22
|
-
const currentValue = isControlled ? controlledValue : internalValue;
|
|
23
|
-
|
|
24
|
-
const handleChange = (optionValue: string) => {
|
|
25
|
-
if (disabled) return;
|
|
26
|
-
|
|
27
|
-
if (!isControlled) {
|
|
28
|
-
setInternalValue(optionValue);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
onChange?.(optionValue);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<RadioGroupContainer>
|
|
36
|
-
{options.map((option) => {
|
|
37
|
-
const isSelected = currentValue === option.value;
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<RadioButton
|
|
41
|
-
key={option.value}
|
|
42
|
-
isSelected={isSelected}
|
|
43
|
-
onClick={() => handleChange(option.value)}
|
|
44
|
-
role="radio"
|
|
45
|
-
aria-checked={isSelected}
|
|
46
|
-
aria-disabled={disabled}
|
|
47
|
-
>
|
|
48
|
-
<RadioLabel>
|
|
49
|
-
<HiddenRadioInput
|
|
50
|
-
type="radio"
|
|
51
|
-
name={name}
|
|
52
|
-
value={option.value}
|
|
53
|
-
checked={isSelected}
|
|
54
|
-
onChange={() => handleChange(option.value)}
|
|
55
|
-
disabled={disabled}
|
|
56
|
-
/>
|
|
57
|
-
|
|
58
|
-
{isSelected ? option.iconActive : option.iconInactive}
|
|
59
|
-
|
|
60
|
-
<span>{option.label}</span>
|
|
61
|
-
</RadioLabel>
|
|
62
|
-
</RadioButton>
|
|
63
|
-
);
|
|
64
|
-
})}
|
|
65
|
-
</RadioGroupContainer>
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export { RadioGroupField };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface RadioOption {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
iconActive?: ReactNode;
|
|
7
|
-
iconInactive?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface RadioGroupFieldProps {
|
|
11
|
-
options: RadioOption[];
|
|
12
|
-
value?: string;
|
|
13
|
-
defaultValue?: string;
|
|
14
|
-
onChange?: (value: string) => void;
|
|
15
|
-
name?: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import * as Dialog from '@radix-ui/react-dialog';
|
|
3
|
-
|
|
4
|
-
export const Overlay = styled(Dialog.Overlay)`
|
|
5
|
-
position: fixed;
|
|
6
|
-
inset: 0;
|
|
7
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
8
|
-
z-index: 50;
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
export const Content = styled(Dialog.Content)`
|
|
12
|
-
position: fixed;
|
|
13
|
-
top: 50%;
|
|
14
|
-
left: 50%;
|
|
15
|
-
transform: translate(-50%, -50%);
|
|
16
|
-
font-family: 'Mulish', sans-serif;
|
|
17
|
-
background: white;
|
|
18
|
-
border-radius: 12px;
|
|
19
|
-
padding: 32px;
|
|
20
|
-
width: 100%;
|
|
21
|
-
max-width: 520px;
|
|
22
|
-
z-index: 1000;
|
|
23
|
-
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
|
24
|
-
border-top: 6px solid #c53030;
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
export const Title = styled.h2`
|
|
28
|
-
font-size: 28px;
|
|
29
|
-
font-weight: 600;
|
|
30
|
-
color: #1a1a1a;
|
|
31
|
-
margin-bottom: 8px;
|
|
32
|
-
font-family: 'Mulish', sans-serif;
|
|
33
|
-
padding-right: 12px;
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
export const Description = styled.p`
|
|
37
|
-
font-size: 1rem;
|
|
38
|
-
line-height: 1.5;
|
|
39
|
-
color: #888;
|
|
40
|
-
margin-bottom: 16px;
|
|
41
|
-
font-family: 'Mulish', sans-serif;
|
|
42
|
-
|
|
43
|
-
span {
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
color: #1a1a1a;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
strong {
|
|
49
|
-
font-weight: 600;
|
|
50
|
-
color: #1a1a1a;
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
|
|
54
|
-
export const Label = styled.label`
|
|
55
|
-
font-size: 1rem;
|
|
56
|
-
margin-top: 16px;
|
|
57
|
-
margin-bottom: 4px;
|
|
58
|
-
display: block;
|
|
59
|
-
color: #888;
|
|
60
|
-
font-family: 'Mulish', sans-serif;
|
|
61
|
-
`;
|
|
62
|
-
|
|
63
|
-
export const Select = styled.select`
|
|
64
|
-
width: 100%;
|
|
65
|
-
color: #777;
|
|
66
|
-
padding: 12px;
|
|
67
|
-
font-size: 1rem;
|
|
68
|
-
border: 1px solid #d9d9d9;
|
|
69
|
-
border-radius: 8px;
|
|
70
|
-
background-color: white;
|
|
71
|
-
appearance: none;
|
|
72
|
-
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' stroke='gray' strokeWidth='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
|
|
73
|
-
background-repeat: no-repeat;
|
|
74
|
-
background-position: right 12px center;
|
|
75
|
-
background-size: 16px;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
`;
|
|
78
|
-
|
|
79
|
-
export const TextArea = styled.textarea`
|
|
80
|
-
width: 100%;
|
|
81
|
-
min-height: 80px;
|
|
82
|
-
padding: 12px;
|
|
83
|
-
font-size: 14px;
|
|
84
|
-
border: 1px solid #d9d9d9;
|
|
85
|
-
border-radius: 8px;
|
|
86
|
-
resize: none;
|
|
87
|
-
margin-top: 8px;
|
|
88
|
-
`;
|
|
89
|
-
|
|
90
|
-
export const HelpText = styled.p`
|
|
91
|
-
font-size: 0.9rem;
|
|
92
|
-
color: #888;
|
|
93
|
-
margin-top: 4px;
|
|
94
|
-
`;
|
|
95
|
-
|
|
96
|
-
export const CancelButton = styled(Dialog.Close)`
|
|
97
|
-
background: #fff;
|
|
98
|
-
border: 2px solid #7f7f7f;
|
|
99
|
-
border-radius: 8px;
|
|
100
|
-
padding: 10px 16px;
|
|
101
|
-
font-weight: 600;
|
|
102
|
-
color: #7f7f7f;
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
`;
|
|
105
|
-
|
|
106
|
-
export const ConfirmButton = styled.button`
|
|
107
|
-
background: #c53030;
|
|
108
|
-
color: white;
|
|
109
|
-
border: none;
|
|
110
|
-
border-radius: 8px;
|
|
111
|
-
padding: 10px 16px;
|
|
112
|
-
font-weight: 600;
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
|
|
115
|
-
&:disabled {
|
|
116
|
-
background: #e2e2e2;
|
|
117
|
-
cursor: not-allowed;
|
|
118
|
-
}
|
|
119
|
-
`;
|
|
120
|
-
|
|
121
|
-
export const CloseIcon = styled(Dialog.Close)`
|
|
122
|
-
position: absolute;
|
|
123
|
-
top: 32px;
|
|
124
|
-
right: 32px;
|
|
125
|
-
background: transparent;
|
|
126
|
-
border: none;
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
|
|
129
|
-
svg {
|
|
130
|
-
color: #888;
|
|
131
|
-
}
|
|
132
|
-
`;
|
|
133
|
-
|
|
134
|
-
export const Footer = styled.div`
|
|
135
|
-
display: flex;
|
|
136
|
-
justify-content: flex-end;
|
|
137
|
-
gap: 12px;
|
|
138
|
-
margin-top: 24px;
|
|
139
|
-
`;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as Dialog from '@radix-ui/react-dialog';
|
|
4
|
-
import { X } from 'lucide-react';
|
|
5
|
-
import { useState } from 'react';
|
|
6
|
-
import {
|
|
7
|
-
CancelButton,
|
|
8
|
-
CloseIcon,
|
|
9
|
-
ConfirmButton,
|
|
10
|
-
Content,
|
|
11
|
-
Description,
|
|
12
|
-
Footer,
|
|
13
|
-
HelpText,
|
|
14
|
-
Label,
|
|
15
|
-
Overlay,
|
|
16
|
-
Select,
|
|
17
|
-
TextArea,
|
|
18
|
-
Title,
|
|
19
|
-
} from './RefuseModal.styles';
|
|
20
|
-
import { type RefuseModalProps, motivos } from './RefuseModal.types';
|
|
21
|
-
|
|
22
|
-
export const RefuseModal = ({
|
|
23
|
-
open,
|
|
24
|
-
onOpenChange,
|
|
25
|
-
onConfirm,
|
|
26
|
-
onClose,
|
|
27
|
-
orderId,
|
|
28
|
-
}: RefuseModalProps) => {
|
|
29
|
-
const [motivo, setMotivo] = useState('');
|
|
30
|
-
const [detalhes, setDetalhes] = useState('');
|
|
31
|
-
|
|
32
|
-
const handleConfirm = () => {
|
|
33
|
-
console.log('Proposta recusada:', { orderId, motivo, detalhes });
|
|
34
|
-
onConfirm();
|
|
35
|
-
onClose();
|
|
36
|
-
setMotivo('');
|
|
37
|
-
setDetalhes('');
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
<Dialog.Root open={open} onOpenChange={onOpenChange}>
|
|
42
|
-
<Dialog.Portal>
|
|
43
|
-
<Overlay />
|
|
44
|
-
<Content>
|
|
45
|
-
<CloseIcon aria-label="Fechar" onClick={onClose}>
|
|
46
|
-
<X size={28} color="#BDBDBD" />
|
|
47
|
-
</CloseIcon>
|
|
48
|
-
|
|
49
|
-
<Title>Tem certeza de que deseja recusar esta proposta?</Title>
|
|
50
|
-
|
|
51
|
-
<Description>
|
|
52
|
-
Após recusar, você pode voltar e continuar de onde parou acessando{' '}
|
|
53
|
-
<span onClick={() => onClose()}>Minhas apólices</span>.<br />
|
|
54
|
-
<strong>Nota:</strong> pode ser que as condições oferecidas sejam
|
|
55
|
-
diferentes das atuais.
|
|
56
|
-
</Description>
|
|
57
|
-
|
|
58
|
-
<Label>Nos ajude a entender o motivo da recusa:</Label>
|
|
59
|
-
<Select value={motivo} onChange={(e) => setMotivo(e.target.value)}>
|
|
60
|
-
<option value="">Selecione o motivo</option>
|
|
61
|
-
{motivos.map((item) => (
|
|
62
|
-
<option key={item} value={item}>
|
|
63
|
-
{item}
|
|
64
|
-
</option>
|
|
65
|
-
))}
|
|
66
|
-
</Select>
|
|
67
|
-
<HelpText>
|
|
68
|
-
Sua resposta ajuda a melhorar nosso processo para você e outros
|
|
69
|
-
usuários.
|
|
70
|
-
</HelpText>
|
|
71
|
-
|
|
72
|
-
<Label>Se quiser, conte mais detalhes</Label>
|
|
73
|
-
<TextArea
|
|
74
|
-
placeholder="Escreva aqui..."
|
|
75
|
-
value={detalhes}
|
|
76
|
-
onChange={(e) => setDetalhes(e.target.value)}
|
|
77
|
-
/>
|
|
78
|
-
<HelpText>
|
|
79
|
-
Essas informações nos ajudam a melhorar sua experiência.
|
|
80
|
-
</HelpText>
|
|
81
|
-
|
|
82
|
-
<Footer>
|
|
83
|
-
<CancelButton onClick={onClose}>Cancelar</CancelButton>
|
|
84
|
-
<ConfirmButton onClick={handleConfirm} disabled={!motivo}>
|
|
85
|
-
Sim, recusar
|
|
86
|
-
</ConfirmButton>
|
|
87
|
-
</Footer>
|
|
88
|
-
</Content>
|
|
89
|
-
</Dialog.Portal>
|
|
90
|
-
</Dialog.Root>
|
|
91
|
-
);
|
|
92
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface RefuseModalProps {
|
|
2
|
-
open: boolean;
|
|
3
|
-
onOpenChange: (open: boolean) => void;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onConfirm: () => void;
|
|
6
|
-
orderId: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const motivos = [
|
|
10
|
-
'Preço muito alto',
|
|
11
|
-
'Encontrei uma opção melhor',
|
|
12
|
-
'Não preciso mais do serviço',
|
|
13
|
-
'Condições não atendem minhas necessidades',
|
|
14
|
-
'Outro motivo',
|
|
15
|
-
];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { semanticColors, primitiveColors } from '../../../styles/tokens/colors';
|
|
3
|
-
|
|
4
|
-
export const Results = styled.div<{ $isPositive: boolean }>`
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: row;
|
|
7
|
-
font-size: 12px;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: 8px;
|
|
10
|
-
background-color: ${({ $isPositive }) =>
|
|
11
|
-
$isPositive
|
|
12
|
-
? semanticColors.success.surface.feedback
|
|
13
|
-
: primitiveColors.red[100]};
|
|
14
|
-
border: ${({ $isPositive }) =>
|
|
15
|
-
$isPositive
|
|
16
|
-
? `1px solid ${semanticColors.success.text.feedback.accent}`
|
|
17
|
-
: `1px solid ${semanticColors.danger.border.enabled}`};
|
|
18
|
-
border-radius: 9999px;
|
|
19
|
-
padding: 8px 16px;
|
|
20
|
-
color: ${({ $isPositive }) =>
|
|
21
|
-
$isPositive
|
|
22
|
-
? semanticColors.success.text.feedback.accent
|
|
23
|
-
: semanticColors.danger.text.feedback.accent};
|
|
24
|
-
font-weight: 500;
|
|
25
|
-
width: fit-content;
|
|
26
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TrendingDown, TrendingUp } from 'lucide-react';
|
|
2
|
-
import { Results } from './ResultsChart.styles';
|
|
3
|
-
import type { ResultsChartProps } from './ResultsChart.types';
|
|
4
|
-
|
|
5
|
-
const ResultsChart = ({ value }: ResultsChartProps) => {
|
|
6
|
-
const isPositive = value >= 0;
|
|
7
|
-
const trendIcon = isPositive ? (
|
|
8
|
-
<TrendingUp size={16} />
|
|
9
|
-
) : (
|
|
10
|
-
<TrendingDown size={16} />
|
|
11
|
-
);
|
|
12
|
-
const trendText = isPositive
|
|
13
|
-
? `${value}% a mais do que o mês anterior`
|
|
14
|
-
: `${Math.abs(value)}% a menos do que o mês anterior`;
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Results $isPositive={isPositive}>
|
|
18
|
-
{trendIcon} {trendText}
|
|
19
|
-
</Results>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default ResultsChart;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
semanticColors,
|
|
3
|
-
semanticRadius,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
typographyTokens,
|
|
6
|
-
} from '../../../styles/tokens';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
|
|
9
|
-
export const ToggleContainer = styled.div`
|
|
10
|
-
position: relative;
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
background: transparent;
|
|
13
|
-
border-radius: ${semanticRadius.global.radius.md2};
|
|
14
|
-
padding: ${semanticSizes.global.padding.xs};
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const Slider = styled.div<{
|
|
19
|
-
activeIndex: number;
|
|
20
|
-
count: number;
|
|
21
|
-
}>`
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: ${semanticSizes.global.padding.xs};
|
|
24
|
-
left: ${({ activeIndex, count }) => (activeIndex * 100) / count}%;
|
|
25
|
-
width: ${({ count }) => 100 / count}%;
|
|
26
|
-
height: calc(100% - ${semanticSizes.global.padding.xs} * 2);
|
|
27
|
-
background: ${semanticColors.base.background};
|
|
28
|
-
border-radius: ${semanticRadius.global.radius.md2};
|
|
29
|
-
transition: left 200ms ease-in-out;
|
|
30
|
-
z-index: 0;
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
export const TabButton = styled.button<{ active: boolean }>`
|
|
34
|
-
position: relative;
|
|
35
|
-
z-index: 1;
|
|
36
|
-
display: flex;
|
|
37
|
-
width: 230px;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
align-items: center;
|
|
40
|
-
padding: ${semanticSizes.global.padding.sm} ${semanticSizes.global.gap['3xl']};
|
|
41
|
-
font-size: ${typographyTokens.fontSizes.bodyS};
|
|
42
|
-
color: ${({ active }) =>
|
|
43
|
-
active ? semanticColors.base.text : semanticColors.neutral[400]};
|
|
44
|
-
background: none;
|
|
45
|
-
border: none;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
transition: color 200ms;
|
|
48
|
-
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
|
|
51
|
-
&:focus {
|
|
52
|
-
outline: none;
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { ToggleContainer, Slider, TabButton } from './TabToggle.styles';
|
|
3
|
-
|
|
4
|
-
export type TabItem = {
|
|
5
|
-
title: string;
|
|
6
|
-
quantity: number;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export type TabToggleProps = {
|
|
10
|
-
items: TabItem[];
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const TabToggle: React.FC<TabToggleProps> = ({ items }) => {
|
|
14
|
-
const [activeIndex, setActiveIndex] = useState(0);
|
|
15
|
-
const count = items.length;
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<ToggleContainer>
|
|
19
|
-
{/* Slider agora sabe quantas abas existem */}
|
|
20
|
-
<Slider activeIndex={activeIndex} count={count} />
|
|
21
|
-
|
|
22
|
-
{items.map(({ title, quantity }, i) => (
|
|
23
|
-
<TabButton
|
|
24
|
-
key={title}
|
|
25
|
-
active={i === activeIndex}
|
|
26
|
-
onClick={() => setActiveIndex(i)}
|
|
27
|
-
>
|
|
28
|
-
{title} ({quantity})
|
|
29
|
-
</TabButton>
|
|
30
|
-
))}
|
|
31
|
-
</ToggleContainer>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default TabToggle;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
// TimeLine.mapper.ts
|
|
2
|
-
import {
|
|
3
|
-
TimelineItem,
|
|
4
|
-
RemoteEvent,
|
|
5
|
-
EventIdKey,
|
|
6
|
-
TimelineVariant,
|
|
7
|
-
} from './TimeLine.types';
|
|
8
|
-
import { resolveTimelineConfig } from './TimeLine.registry';
|
|
9
|
-
|
|
10
|
-
const formatFullTimestamp = (startAt: string, actorName: string): string => {
|
|
11
|
-
const date = new Date(startAt);
|
|
12
|
-
const day = String(date.getDate()).padStart(2, '0');
|
|
13
|
-
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
14
|
-
const year = date.getFullYear();
|
|
15
|
-
const hours = String(date.getHours()).padStart(2, '0');
|
|
16
|
-
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
17
|
-
const seconds = String(date.getSeconds()).padStart(2, '0');
|
|
18
|
-
|
|
19
|
-
return `Por: ${actorName} no dia ${day}/${month}/${year} às ${hours}:${minutes}:${seconds}`;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
function toEventIdKey(eventId: number | string): EventIdKey {
|
|
23
|
-
const raw = String(eventId).trim();
|
|
24
|
-
return raw as EventIdKey;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function toVariant(eventIdKey: EventIdKey): TimelineVariant {
|
|
28
|
-
return resolveTimelineConfig(eventIdKey)?.variant || 'continued';
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function buildTitle(ev: RemoteEvent): string {
|
|
32
|
-
const titles: Record<string, string> = {
|
|
33
|
-
'subscription:partner_quote': 'Empresa criada no sistema',
|
|
34
|
-
'subscription:partner_subscribe': 'Empresa editada no sistema',
|
|
35
|
-
'issue:partner_issue': 'Fornecedor cadastrado',
|
|
36
|
-
'order:partner_order': 'Fornecedor editado',
|
|
37
|
-
ProposalCreated: 'Proposta criada',
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
titles[ev.eventType] ||
|
|
42
|
-
resolveTimelineConfig(toEventIdKey(ev.eventId))?.labelPtBr ||
|
|
43
|
-
`Evento ${ev.eventId}`
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function actorFrom(ev: RemoteEvent) {
|
|
48
|
-
if (!ev.user) {
|
|
49
|
-
return { id: '', displayName: 'Sistema', type: 'app' as const };
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
id: String(ev.user.id),
|
|
53
|
-
displayName: ev.user.name || 'Usuário',
|
|
54
|
-
type: 'user' as const,
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function safeData(ev: RemoteEvent): Record<string, unknown> {
|
|
59
|
-
return ev.data && typeof ev.data === 'object' ? ev.data : {};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function mapRemoteToTimeline(items: RemoteEvent[]): TimelineItem[] {
|
|
63
|
-
return items.map((ev, idx) => {
|
|
64
|
-
const id = ev.id || String(idx);
|
|
65
|
-
const eventIdKey = toEventIdKey(ev.eventId);
|
|
66
|
-
const data = safeData(ev);
|
|
67
|
-
const actor = actorFrom(ev);
|
|
68
|
-
|
|
69
|
-
const hasDetails = [
|
|
70
|
-
'subscription:partner_quote',
|
|
71
|
-
'subscription:partner_subscribe',
|
|
72
|
-
'issue:partner_issue',
|
|
73
|
-
'order:partner_order',
|
|
74
|
-
'ProposalCreated',
|
|
75
|
-
].includes(ev.eventType);
|
|
76
|
-
|
|
77
|
-
const startsExpanded = ev.eventType === 'subscription:partner_quote';
|
|
78
|
-
return {
|
|
79
|
-
id,
|
|
80
|
-
timestamp: formatFullTimestamp(ev.startDate, actor.displayName),
|
|
81
|
-
type: toVariant(eventIdKey),
|
|
82
|
-
title: buildTitle(ev),
|
|
83
|
-
actor,
|
|
84
|
-
origin: ev.parentType || ev.eventType || 'unknown',
|
|
85
|
-
correlationId: ev.id,
|
|
86
|
-
|
|
87
|
-
metadata: {
|
|
88
|
-
...data,
|
|
89
|
-
eventIdKey,
|
|
90
|
-
eventType: ev.eventType,
|
|
91
|
-
startDate: ev.startDate,
|
|
92
|
-
hasDetails,
|
|
93
|
-
startsExpanded,
|
|
94
|
-
comparisonData:
|
|
95
|
-
ev.eventType === 'subscription:partner_quote'
|
|
96
|
-
? [
|
|
97
|
-
{
|
|
98
|
-
field: 'Razão Social',
|
|
99
|
-
before: 'Algar Holding',
|
|
100
|
-
after: 'Algar Holding S.A.',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
field: 'CNPJ',
|
|
104
|
-
before: '00.000.000/0000-00',
|
|
105
|
-
after: '00.000.000/0000-01',
|
|
106
|
-
},
|
|
107
|
-
]
|
|
108
|
-
: undefined,
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
});
|
|
112
|
-
}
|