@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,70 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Text from '../../atoms/Text/Text';
|
|
3
|
-
import Button from '../../atoms/Button/Button';
|
|
4
|
-
import {
|
|
5
|
-
ButtonContainer,
|
|
6
|
-
DialogContainer,
|
|
7
|
-
Overlay,
|
|
8
|
-
CloseButton,
|
|
9
|
-
TitleContainer,
|
|
10
|
-
} from './AlertDialog.styles';
|
|
11
|
-
import { X } from '@phosphor-icons/react';
|
|
12
|
-
import { AlertDialogProps } from './AlertDialog.types';
|
|
13
|
-
import { semanticColors } from '../../../styles/tokens';
|
|
14
|
-
|
|
15
|
-
const AlertDialog: React.FC<AlertDialogProps> = ({
|
|
16
|
-
text,
|
|
17
|
-
isOpen,
|
|
18
|
-
buttons: { confirm, cancel, onClose, onConfirm },
|
|
19
|
-
testId,
|
|
20
|
-
}) => {
|
|
21
|
-
if (!isOpen) return null;
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<Overlay>
|
|
25
|
-
<DialogContainer>
|
|
26
|
-
<TitleContainer>
|
|
27
|
-
<Text
|
|
28
|
-
size="lg"
|
|
29
|
-
weight="bold"
|
|
30
|
-
color={`${semanticColors.danger.border.enabled}`}
|
|
31
|
-
>
|
|
32
|
-
{text.title}
|
|
33
|
-
</Text>
|
|
34
|
-
<CloseButton onClick={onClose} aria-label="Fechar">
|
|
35
|
-
<X
|
|
36
|
-
size={20}
|
|
37
|
-
color={`${semanticColors.neutral[300]}`}
|
|
38
|
-
weight="bold"
|
|
39
|
-
/>
|
|
40
|
-
</CloseButton>
|
|
41
|
-
</TitleContainer>
|
|
42
|
-
<Text size="md" color={`${semanticColors.neutral[500]}`}>
|
|
43
|
-
{text.description}
|
|
44
|
-
</Text>
|
|
45
|
-
<ButtonContainer>
|
|
46
|
-
{cancel && (
|
|
47
|
-
<Button
|
|
48
|
-
testId={`${testId}_cancelar`}
|
|
49
|
-
variant="alert"
|
|
50
|
-
onClick={onClose}
|
|
51
|
-
>
|
|
52
|
-
{cancel}
|
|
53
|
-
</Button>
|
|
54
|
-
)}
|
|
55
|
-
{confirm && (
|
|
56
|
-
<Button
|
|
57
|
-
testId={`${testId}_confirmar`}
|
|
58
|
-
variant="danger"
|
|
59
|
-
onClick={onConfirm}
|
|
60
|
-
>
|
|
61
|
-
{confirm}
|
|
62
|
-
</Button>
|
|
63
|
-
)}
|
|
64
|
-
</ButtonContainer>
|
|
65
|
-
</DialogContainer>
|
|
66
|
-
</Overlay>
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export default AlertDialog;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// Dialog.styled.tsx
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
|
|
5
|
-
/* ========================= */
|
|
6
|
-
/* === Overlay Component === */
|
|
7
|
-
/* ========================= */
|
|
8
|
-
export const StyledDialogOverlay = styled(DialogPrimitive.Overlay)`
|
|
9
|
-
position: fixed;
|
|
10
|
-
inset: 0;
|
|
11
|
-
z-index: 50;
|
|
12
|
-
background-color: rgba(0, 0, 0, 0.8);
|
|
13
|
-
/* Você pode definir animações adicionais aqui, caso deseje */
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
/* ========================== */
|
|
17
|
-
/* === Content Component === */
|
|
18
|
-
/* ========================== */
|
|
19
|
-
export const StyledDialogContent = styled(DialogPrimitive.Content)`
|
|
20
|
-
position: fixed;
|
|
21
|
-
left: 50%;
|
|
22
|
-
top: 50%;
|
|
23
|
-
z-index: 50;
|
|
24
|
-
display: grid;
|
|
25
|
-
width: 100%;
|
|
26
|
-
max-width: 32rem; /* Equivalente a max-w-lg */
|
|
27
|
-
transform: translate(-50%, -50%);
|
|
28
|
-
gap: 1rem; /* gap-4 */
|
|
29
|
-
border: 1px solid #e5e7eb;
|
|
30
|
-
background-color: #fff; /* bg-background */
|
|
31
|
-
padding: 1.5rem; /* p-6 */
|
|
32
|
-
box-shadow:
|
|
33
|
-
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
34
|
-
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
35
|
-
border-radius: 0.5rem; /* sm:rounded-lg */
|
|
36
|
-
transition: all 0.2s ease;
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
/* ============================ */
|
|
40
|
-
/* === Close Button Component === */
|
|
41
|
-
/* ============================ */
|
|
42
|
-
export const StyledDialogClose = styled(DialogPrimitive.Close)`
|
|
43
|
-
position: absolute;
|
|
44
|
-
top: 1rem; /* top-4 */
|
|
45
|
-
right: 1rem; /* right-4 */
|
|
46
|
-
background: none;
|
|
47
|
-
border: none;
|
|
48
|
-
border-radius: 0.125rem; /* rounded-sm */
|
|
49
|
-
opacity: 0.7;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
transition: opacity 0.2s ease;
|
|
52
|
-
|
|
53
|
-
&:hover {
|
|
54
|
-
opacity: 1;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&:focus {
|
|
58
|
-
outline: none;
|
|
59
|
-
box-shadow: 0 0 0 2px #3b82f6; /* focus:ring-2 focus:ring-ring */
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
|
-
|
|
63
|
-
/* ========================== */
|
|
64
|
-
/* === Header Component === */
|
|
65
|
-
/* ========================== */
|
|
66
|
-
export const StyledDialogHeader = styled.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
gap: 0.375rem; /* Aproximadamente space-y-1.5 */
|
|
70
|
-
text-align: center;
|
|
71
|
-
|
|
72
|
-
@media (min-width: 640px) {
|
|
73
|
-
text-align: left;
|
|
74
|
-
}
|
|
75
|
-
`;
|
|
76
|
-
|
|
77
|
-
/* ========================== */
|
|
78
|
-
/* === Footer Component === */
|
|
79
|
-
/* ========================== */
|
|
80
|
-
export const StyledDialogFooter = styled.div`
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column-reverse;
|
|
83
|
-
justify-content: flex-end;
|
|
84
|
-
gap: 0.5rem; /* Aproximadamente sm:space-x-2 */
|
|
85
|
-
|
|
86
|
-
@media (min-width: 640px) {
|
|
87
|
-
flex-direction: row;
|
|
88
|
-
}
|
|
89
|
-
`;
|
|
90
|
-
|
|
91
|
-
/* =========================== */
|
|
92
|
-
/* === Title Component === */
|
|
93
|
-
/* =========================== */
|
|
94
|
-
export const StyledDialogTitle = styled(DialogPrimitive.Title)`
|
|
95
|
-
font-size: 1.125rem; /* text-lg */
|
|
96
|
-
font-weight: 600; /* font-semibold */
|
|
97
|
-
line-height: 1; /* leading-none */
|
|
98
|
-
letter-spacing: -0.025em; /* tracking-tight */
|
|
99
|
-
`;
|
|
100
|
-
|
|
101
|
-
/* =============================== */
|
|
102
|
-
/* === Description Component === */
|
|
103
|
-
/* =============================== */
|
|
104
|
-
export const StyledDialogDescription = styled(DialogPrimitive.Description)`
|
|
105
|
-
font-size: 0.875rem; /* text-sm */
|
|
106
|
-
color: #6b7280; /* text-muted-foreground */
|
|
107
|
-
`;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Dialog.tsx
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
import { X } from 'lucide-react';
|
|
5
|
-
import {
|
|
6
|
-
StyledDialogOverlay,
|
|
7
|
-
StyledDialogContent,
|
|
8
|
-
StyledDialogClose,
|
|
9
|
-
StyledDialogHeader,
|
|
10
|
-
StyledDialogFooter,
|
|
11
|
-
StyledDialogTitle,
|
|
12
|
-
StyledDialogDescription,
|
|
13
|
-
} from './Dialog.styles';
|
|
14
|
-
|
|
15
|
-
const Dialog = DialogPrimitive.Root;
|
|
16
|
-
const DialogTrigger = DialogPrimitive.Trigger;
|
|
17
|
-
const DialogPortal = DialogPrimitive.Portal;
|
|
18
|
-
|
|
19
|
-
const DialogContent = React.forwardRef<
|
|
20
|
-
React.ElementRef<typeof DialogPrimitive.Content>,
|
|
21
|
-
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
|
|
22
|
-
>(({ children, ...props }, ref) => (
|
|
23
|
-
<DialogPortal>
|
|
24
|
-
<StyledDialogOverlay />
|
|
25
|
-
<StyledDialogContent ref={ref} {...props}>
|
|
26
|
-
{children}
|
|
27
|
-
<StyledDialogClose>
|
|
28
|
-
<X style={{ height: '1rem', width: '1rem' }} />
|
|
29
|
-
<span className="sr-only">Close</span>
|
|
30
|
-
</StyledDialogClose>
|
|
31
|
-
</StyledDialogContent>
|
|
32
|
-
</DialogPortal>
|
|
33
|
-
));
|
|
34
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
35
|
-
|
|
36
|
-
const DialogHeader: React.FC<React.HTMLAttributes<HTMLDivElement>> = (
|
|
37
|
-
props
|
|
38
|
-
) => <StyledDialogHeader {...props} />;
|
|
39
|
-
DialogHeader.displayName = 'DialogHeader';
|
|
40
|
-
|
|
41
|
-
const DialogFooter: React.FC<React.HTMLAttributes<HTMLDivElement>> = (
|
|
42
|
-
props
|
|
43
|
-
) => <StyledDialogFooter {...props} />;
|
|
44
|
-
DialogFooter.displayName = 'DialogFooter';
|
|
45
|
-
|
|
46
|
-
const DialogTitle = React.forwardRef<
|
|
47
|
-
React.ElementRef<typeof DialogPrimitive.Title>,
|
|
48
|
-
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
|
|
49
|
-
>((props, ref) => <StyledDialogTitle ref={ref} {...props} />);
|
|
50
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
51
|
-
|
|
52
|
-
const DialogDescription = React.forwardRef<
|
|
53
|
-
React.ElementRef<typeof DialogPrimitive.Description>,
|
|
54
|
-
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
|
|
55
|
-
>((props, ref) => <StyledDialogDescription ref={ref} {...props} />);
|
|
56
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
57
|
-
|
|
58
|
-
export {
|
|
59
|
-
Dialog,
|
|
60
|
-
DialogTrigger,
|
|
61
|
-
DialogPortal,
|
|
62
|
-
DialogContent,
|
|
63
|
-
StyledDialogOverlay as DialogOverlay,
|
|
64
|
-
StyledDialogClose as DialogClose,
|
|
65
|
-
DialogHeader,
|
|
66
|
-
DialogFooter,
|
|
67
|
-
DialogTitle,
|
|
68
|
-
DialogDescription,
|
|
69
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
primitiveColors,
|
|
4
|
-
semanticBorders,
|
|
5
|
-
semanticColors,
|
|
6
|
-
semanticRadius,
|
|
7
|
-
semanticSizes,
|
|
8
|
-
typographyTokens,
|
|
9
|
-
} from '../../../styles/tokens';
|
|
10
|
-
|
|
11
|
-
export const Card = styled.div`
|
|
12
|
-
background-color: ${semanticColors.base.background};
|
|
13
|
-
border: ${semanticBorders.global.sm} solid ${semanticColors.neutral[400]};
|
|
14
|
-
border-radius: 8px;
|
|
15
|
-
padding: ${semanticSizes.global.padding.lg};
|
|
16
|
-
width: 100%;
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
export const CardHeader = styled.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
text-align: center;
|
|
26
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
27
|
-
align-items: center;
|
|
28
|
-
margin-bottom: 24px;
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
export const CardTitle = styled.h2`
|
|
32
|
-
font-size: ${typographyTokens.fontSizes.headingS};
|
|
33
|
-
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
34
|
-
margin: 0;
|
|
35
|
-
color: ${semanticColors.base.text};
|
|
36
|
-
text-align: center;
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
export const CardLink = styled.a`
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: row;
|
|
42
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
43
|
-
margin: 0;
|
|
44
|
-
color: ${semanticColors.branding.text.accent.enabled};
|
|
45
|
-
text-align: center;
|
|
46
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
47
|
-
align-items: center;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
text-decoration: none;
|
|
50
|
-
|
|
51
|
-
&:hover {
|
|
52
|
-
color: ${semanticColors.branding.text.accent.hover};
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
55
|
-
|
|
56
|
-
export const CardContent = styled.div`
|
|
57
|
-
display: flex;
|
|
58
|
-
justify-content: flex-start;
|
|
59
|
-
align-items: center;
|
|
60
|
-
gap: ${semanticSizes.global.gap.xl};
|
|
61
|
-
margin-bottom: 18px;
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
export const CardChartDescription = styled.div`
|
|
65
|
-
justify-content: flex-start;
|
|
66
|
-
align-items: center;
|
|
67
|
-
text-align: left;
|
|
68
|
-
|
|
69
|
-
.subtitle {
|
|
70
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
71
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
72
|
-
}
|
|
73
|
-
.description {
|
|
74
|
-
font-size: ${typographyTokens.fontSizes.headingM};
|
|
75
|
-
color: ${semanticColors.base.text};
|
|
76
|
-
margin-bottom: ${semanticSizes.global.spacings.sm};
|
|
77
|
-
}
|
|
78
|
-
`;
|
|
79
|
-
|
|
80
|
-
export const CardFooter = styled.div`
|
|
81
|
-
text-align: left;
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: column;
|
|
84
|
-
gap: ${semanticSizes.global.gap.xs};
|
|
85
|
-
|
|
86
|
-
.subtitle {
|
|
87
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
88
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
89
|
-
}
|
|
90
|
-
.description {
|
|
91
|
-
display: flex;
|
|
92
|
-
justify-content: flex-start;
|
|
93
|
-
align-items: center;
|
|
94
|
-
flex-direction: row;
|
|
95
|
-
gap: ${semanticSizes.global.gap.lg};
|
|
96
|
-
font-size: ${typographyTokens.fontSizes.captionM};
|
|
97
|
-
color: ${semanticColors.base.text};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.items {
|
|
101
|
-
display: flex;
|
|
102
|
-
align-items: center;
|
|
103
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
104
|
-
margin-bottom: ${semanticSizes.global.spacings.sm};
|
|
105
|
-
}
|
|
106
|
-
`;
|
|
107
|
-
|
|
108
|
-
export const Circle = styled.div<{ color?: string }>`
|
|
109
|
-
width: ${semanticSizes.global.gap.md};
|
|
110
|
-
height: ${semanticSizes.global.gap.md};
|
|
111
|
-
border-radius: ${semanticRadius.global.radius.full};
|
|
112
|
-
background-color: ${({ color }) => color || primitiveColors.orange[400]};
|
|
113
|
-
`;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import { ArrowUpRight } from 'lucide-react';
|
|
3
|
-
import type { DonutEmissionsChartProps } from './DonutEmissionsChart.types';
|
|
4
|
-
import type { PieChartComponentProps } from '../../molecules/PieChartComponent/PieChartComponent.types';
|
|
5
|
-
import {
|
|
6
|
-
Card,
|
|
7
|
-
CardHeader,
|
|
8
|
-
CardTitle,
|
|
9
|
-
CardContent,
|
|
10
|
-
CardFooter,
|
|
11
|
-
CardLink,
|
|
12
|
-
CardChartDescription,
|
|
13
|
-
Circle,
|
|
14
|
-
} from './DonutEmissionsChart.styles';
|
|
15
|
-
import { PieChartComponent } from '../../molecules/PieChartComponent';
|
|
16
|
-
import { primitiveColors } from '../../../styles/tokens';
|
|
17
|
-
import ResultsChart from '../../molecules/ResultsChart';
|
|
18
|
-
|
|
19
|
-
const DonutEmissionsChart: React.FC<DonutEmissionsChartProps> = ({
|
|
20
|
-
totalEmissions,
|
|
21
|
-
companiesWithEmissions,
|
|
22
|
-
}) => {
|
|
23
|
-
const colors = [
|
|
24
|
-
primitiveColors.blue[400],
|
|
25
|
-
primitiveColors.orange[400],
|
|
26
|
-
primitiveColors.green[400],
|
|
27
|
-
primitiveColors.gray[400],
|
|
28
|
-
];
|
|
29
|
-
|
|
30
|
-
const chartData: PieChartComponentProps = {
|
|
31
|
-
data: companiesWithEmissions.map((company, index) => ({
|
|
32
|
-
name: company.companyName,
|
|
33
|
-
value: company.totalEmissions,
|
|
34
|
-
fill: colors[index % colors.length],
|
|
35
|
-
})),
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const currentMonth = new Date().toLocaleDateString('pt-BR', {
|
|
39
|
-
month: 'long',
|
|
40
|
-
});
|
|
41
|
-
const currentMonthCapitalized =
|
|
42
|
-
currentMonth.charAt(0).toUpperCase() + currentMonth.slice(1);
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<Card>
|
|
46
|
-
<CardHeader>
|
|
47
|
-
<CardTitle>Emissões realizadas</CardTitle>
|
|
48
|
-
<CardLink href="#">
|
|
49
|
-
Acessar dashboard <ArrowUpRight size={16} />
|
|
50
|
-
</CardLink>
|
|
51
|
-
</CardHeader>
|
|
52
|
-
<CardContent>
|
|
53
|
-
<PieChartComponent data={chartData.data} />
|
|
54
|
-
<CardChartDescription>
|
|
55
|
-
<div className="subtitle">Emissões realizadas em</div>
|
|
56
|
-
<div className="description">{currentMonthCapitalized}</div>
|
|
57
|
-
<ResultsChart value={totalEmissions} />
|
|
58
|
-
</CardChartDescription>
|
|
59
|
-
</CardContent>
|
|
60
|
-
<CardFooter>
|
|
61
|
-
<div className="subtitle">Empresas que realizaram emissões</div>
|
|
62
|
-
<div className="description">
|
|
63
|
-
{chartData.data?.map((item, index) => (
|
|
64
|
-
<div key={index} className="items">
|
|
65
|
-
<Circle color={item.fill} />
|
|
66
|
-
{item.name}
|
|
67
|
-
</div>
|
|
68
|
-
))}
|
|
69
|
-
</div>
|
|
70
|
-
</CardFooter>
|
|
71
|
-
</Card>
|
|
72
|
-
);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export default DonutEmissionsChart;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import * as Dialog from '@radix-ui/react-dialog';
|
|
3
|
-
import { semanticColors } from '../../../styles/tokens';
|
|
4
|
-
|
|
5
|
-
export const Overlay = styled(Dialog.Overlay)`
|
|
6
|
-
position: fixed;
|
|
7
|
-
inset: 0;
|
|
8
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
9
|
-
z-index: 50;
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
export const Content = styled(Dialog.Content)`
|
|
13
|
-
position: fixed;
|
|
14
|
-
inset: 0;
|
|
15
|
-
display: grid;
|
|
16
|
-
place-items: center;
|
|
17
|
-
z-index: 1000;
|
|
18
|
-
background: transparent;
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
export const Panel = styled.div`
|
|
22
|
-
background: white;
|
|
23
|
-
border-radius: 12px;
|
|
24
|
-
padding: 32px;
|
|
25
|
-
width: min(950px, calc(100% - 32px));
|
|
26
|
-
border-top: 6px solid ${semanticColors.branding.surface.enabled};
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
export const Title = styled.h2`
|
|
30
|
-
font-size: 28px;
|
|
31
|
-
font-weight: 600;
|
|
32
|
-
color: ${semanticColors.base.text};
|
|
33
|
-
margin-bottom: 16px;
|
|
34
|
-
padding-right: 12px;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: row;
|
|
37
|
-
gap: 8px;
|
|
38
|
-
align-items: center;
|
|
39
|
-
margin-top: -2px;
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export const CloseIcon = styled(Dialog.Close)`
|
|
43
|
-
background: transparent;
|
|
44
|
-
border: none;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
padding: 4px;
|
|
47
|
-
|
|
48
|
-
svg {
|
|
49
|
-
color: #888;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
|
|
53
|
-
export const Header = styled.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
justify-content: space-between;
|
|
56
|
-
align-items: flex-start;
|
|
57
|
-
width: 100%;
|
|
58
|
-
margin-bottom: 24px;
|
|
59
|
-
`;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import * as Dialog from '@radix-ui/react-dialog';
|
|
3
|
-
import { X } from 'lucide-react';
|
|
4
|
-
import {
|
|
5
|
-
CloseIcon,
|
|
6
|
-
Content,
|
|
7
|
-
Header,
|
|
8
|
-
Overlay,
|
|
9
|
-
Panel,
|
|
10
|
-
Title,
|
|
11
|
-
} from './ExportExcelModal.styles';
|
|
12
|
-
import FieldSelector from '../../molecules/FieldSelector/FieldSelector';
|
|
13
|
-
import ButtonGroup from '../../molecules/ButtonGroup/ButtonGroup';
|
|
14
|
-
export const ExportExcelModal = ({
|
|
15
|
-
open,
|
|
16
|
-
onOpenChange,
|
|
17
|
-
onClose,
|
|
18
|
-
data,
|
|
19
|
-
title,
|
|
20
|
-
description,
|
|
21
|
-
onExport,
|
|
22
|
-
onSave,
|
|
23
|
-
isLoadingSave,
|
|
24
|
-
isLoadingExport,
|
|
25
|
-
}: {
|
|
26
|
-
open: boolean;
|
|
27
|
-
onOpenChange: (open: boolean) => void;
|
|
28
|
-
onClose: () => void;
|
|
29
|
-
onRetry?: () => void;
|
|
30
|
-
data: any;
|
|
31
|
-
title: string;
|
|
32
|
-
description: string;
|
|
33
|
-
onExport?: (data: any) => void;
|
|
34
|
-
onSave?: (data: any) => void;
|
|
35
|
-
isLoadingSave?: boolean;
|
|
36
|
-
isLoadingExport?: boolean;
|
|
37
|
-
}) => {
|
|
38
|
-
return (
|
|
39
|
-
<Dialog.Root open={open} onOpenChange={onOpenChange}>
|
|
40
|
-
<Overlay />
|
|
41
|
-
<Content>
|
|
42
|
-
<Panel>
|
|
43
|
-
<Header>
|
|
44
|
-
<div>
|
|
45
|
-
<Dialog.Title>
|
|
46
|
-
<Title>{title}</Title>
|
|
47
|
-
</Dialog.Title>
|
|
48
|
-
<Dialog.Description>{description}</Dialog.Description>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<CloseIcon aria-label="Fechar" onClick={onClose}>
|
|
52
|
-
<X size={28} color="#BDBDBD" />
|
|
53
|
-
</CloseIcon>
|
|
54
|
-
</Header>
|
|
55
|
-
|
|
56
|
-
<FieldSelector
|
|
57
|
-
availableFields={data.available}
|
|
58
|
-
selectedFields={data.selected}
|
|
59
|
-
setAvailableFields={data.setAvailable}
|
|
60
|
-
setSelectedFields={data.setSelected}
|
|
61
|
-
handleSave={(data) => console.log('Nova ordem:', data)}
|
|
62
|
-
/>
|
|
63
|
-
|
|
64
|
-
<ButtonGroup
|
|
65
|
-
buttons={[
|
|
66
|
-
{
|
|
67
|
-
label: 'Salvar e exportar planilha',
|
|
68
|
-
variant: 'primary',
|
|
69
|
-
onClick: () => {
|
|
70
|
-
if (onExport) onExport(data.selected);
|
|
71
|
-
},
|
|
72
|
-
isLoading: isLoadingExport,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
label: 'Salvar configurações',
|
|
76
|
-
variant: 'outline',
|
|
77
|
-
onClick: () => {
|
|
78
|
-
if (onSave) onSave(data.selected);
|
|
79
|
-
},
|
|
80
|
-
isLoading: isLoadingSave,
|
|
81
|
-
},
|
|
82
|
-
]}
|
|
83
|
-
orientation="horizontal"
|
|
84
|
-
/>
|
|
85
|
-
</Panel>
|
|
86
|
-
</Content>
|
|
87
|
-
</Dialog.Root>
|
|
88
|
-
);
|
|
89
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Form.styled.tsx
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
/* Container para cada item do formulário */
|
|
5
|
-
export const StyledFormItem = styled.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: 0.5rem; /* Aproximadamente o "space-y-2" do Tailwind */
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
/* Estilo para o label do formulário; a propriedade "error" permite alterar a cor se necessário */
|
|
12
|
-
export const StyledFormLabel = styled.label<{ error?: boolean }>`
|
|
13
|
-
font-size: 0.875rem; /* text-sm */
|
|
14
|
-
font-weight: 500; /* font-medium */
|
|
15
|
-
line-height: 1; /* leading-none */
|
|
16
|
-
color: ${(props) => (props.error ? '#dc2626' : 'inherit')};
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
/* Estilo para o container de controle de formulário (por exemplo, input) */
|
|
20
|
-
export const StyledFormControl = styled.div`
|
|
21
|
-
/* Adicione aqui quaisquer estilos específicos para o container do input, se necessário */
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
/* Estilo para a descrição do formulário */
|
|
25
|
-
export const StyledFormDescription = styled.p`
|
|
26
|
-
font-size: 0.875rem; /* text-sm */
|
|
27
|
-
color: #6b7280; /* text-muted-foreground */
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
/* Estilo para a mensagem (geralmente de erro) */
|
|
31
|
-
export const StyledFormMessage = styled.p`
|
|
32
|
-
font-size: 0.875rem; /* text-sm */
|
|
33
|
-
font-weight: 500; /* font-medium */
|
|
34
|
-
color: #dc2626; /* text-destructive */
|
|
35
|
-
`;
|