@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,41 +0,0 @@
|
|
|
1
|
-
import { EventIdKey, TimelineVariant } from './TimeLine.types';
|
|
2
|
-
|
|
3
|
-
type TimelineEventConfig = {
|
|
4
|
-
labelPtBr: string;
|
|
5
|
-
variant: TimelineVariant;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export const TIMELINE_EVENT_REGISTRY: Record<EventIdKey, TimelineEventConfig> =
|
|
9
|
-
{
|
|
10
|
-
'15101': { labelPtBr: 'Proposta criada', variant: 'info' },
|
|
11
|
-
'15102': { labelPtBr: 'Proposta subscrita', variant: 'info' },
|
|
12
|
-
'15103': { labelPtBr: 'Proposta atualizada', variant: 'info' },
|
|
13
|
-
'15104': { labelPtBr: 'Foi feito o download da proposta', variant: 'info' },
|
|
14
|
-
'15105': { labelPtBr: 'Apólice emitida', variant: 'issue' },
|
|
15
|
-
|
|
16
|
-
'15120': { labelPtBr: 'Categoria criada', variant: 'info' },
|
|
17
|
-
|
|
18
|
-
'20001': { labelPtBr: 'Unidade de Negócio criada', variant: 'info' },
|
|
19
|
-
'20002': { labelPtBr: 'Unidade de Negócio atualizada', variant: 'info' },
|
|
20
|
-
'20003': { labelPtBr: 'Unidade de Negócio removida', variant: 'deleted' },
|
|
21
|
-
'20004': {
|
|
22
|
-
labelPtBr: 'Usuário adicionado à Unidade de Negócio',
|
|
23
|
-
variant: 'info',
|
|
24
|
-
},
|
|
25
|
-
'20005': {
|
|
26
|
-
labelPtBr: 'Usuário removido da Unidade de Negócio',
|
|
27
|
-
variant: 'info',
|
|
28
|
-
},
|
|
29
|
-
'20006': {
|
|
30
|
-
labelPtBr: 'Empresa adicionada à Unidade de Negócio',
|
|
31
|
-
variant: 'info',
|
|
32
|
-
},
|
|
33
|
-
'20007': {
|
|
34
|
-
labelPtBr: 'Empresa removida da Unidade de Negócio',
|
|
35
|
-
variant: 'deleted',
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export function resolveTimelineConfig(eventIdKey: EventIdKey) {
|
|
40
|
-
return TIMELINE_EVENT_REGISTRY[eventIdKey];
|
|
41
|
-
}
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
primitiveColors,
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
typographyTokens,
|
|
6
|
-
} from '../../../styles/tokens';
|
|
7
|
-
import styled, { css } from 'styled-components';
|
|
8
|
-
import { TimelineVariant } from './TimeLine.types';
|
|
9
|
-
|
|
10
|
-
export const Time = styled.time`
|
|
11
|
-
color: #6b7280;
|
|
12
|
-
font-size: 0.78rem;
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
|
-
export const ItemWrap = styled.li`
|
|
16
|
-
display: grid;
|
|
17
|
-
grid-template-columns: 24px 1fr;
|
|
18
|
-
gap: 12px;
|
|
19
|
-
position: relative;
|
|
20
|
-
padding-bottom: 16px;
|
|
21
|
-
&:last-child {
|
|
22
|
-
padding-bottom: 0;
|
|
23
|
-
}
|
|
24
|
-
&:not(:last-child)::before {
|
|
25
|
-
content: '';
|
|
26
|
-
position: absolute;
|
|
27
|
-
left: 11px;
|
|
28
|
-
top: 34px;
|
|
29
|
-
bottom: 0;
|
|
30
|
-
width: 3px;
|
|
31
|
-
height: 100%;
|
|
32
|
-
background-color: ${primitiveColors.gray[200]};
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
export const Dot = styled.span<{ $variant?: TimelineVariant | string }>`
|
|
37
|
-
width: 24px;
|
|
38
|
-
height: 24px;
|
|
39
|
-
border-radius: 50%;
|
|
40
|
-
border: 1px solid;
|
|
41
|
-
display: inline-block;
|
|
42
|
-
margin-top: 0.2rem;
|
|
43
|
-
|
|
44
|
-
${({ $variant = 'continued' }) => {
|
|
45
|
-
const v = ($variant as TimelineVariant) || 'continued';
|
|
46
|
-
|
|
47
|
-
const bgMap: Partial<Record<TimelineVariant, ReturnType<typeof css>>> = {
|
|
48
|
-
continued: css`
|
|
49
|
-
background: ${semanticColors.branding.surface.disabled};
|
|
50
|
-
`,
|
|
51
|
-
accepted: css`
|
|
52
|
-
background: ${semanticColors.global.surface.status.online};
|
|
53
|
-
`,
|
|
54
|
-
rejected: css`
|
|
55
|
-
background: ${semanticColors.global.surface.status.notification};
|
|
56
|
-
`,
|
|
57
|
-
download: css`
|
|
58
|
-
background: ${semanticColors.branding.surface.disabled};
|
|
59
|
-
`,
|
|
60
|
-
issue: css`
|
|
61
|
-
background: ${semanticColors.global.surface.status.online};
|
|
62
|
-
`,
|
|
63
|
-
order: css`
|
|
64
|
-
background: ${semanticColors.global.surface.status.online};
|
|
65
|
-
`,
|
|
66
|
-
created: css`
|
|
67
|
-
background: ${semanticColors.global.surface.status.online};
|
|
68
|
-
`,
|
|
69
|
-
updated: css`
|
|
70
|
-
background: ${semanticColors.global.surface.status.online};
|
|
71
|
-
`,
|
|
72
|
-
deleted: css`
|
|
73
|
-
background: ${semanticColors.global.surface.status.notification};
|
|
74
|
-
`,
|
|
75
|
-
info: css`
|
|
76
|
-
background: ${semanticColors.branding.surface.disabled};
|
|
77
|
-
`,
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
return bgMap[v] ?? bgMap.continued!;
|
|
81
|
-
}}
|
|
82
|
-
|
|
83
|
-
${({ $variant = 'continued' }) => {
|
|
84
|
-
const v = ($variant as TimelineVariant) || 'continued';
|
|
85
|
-
|
|
86
|
-
const borderMap: Partial<Record<TimelineVariant, ReturnType<typeof css>>> =
|
|
87
|
-
{
|
|
88
|
-
continued: css`
|
|
89
|
-
border-color: ${semanticColors.branding.surface.enabled};
|
|
90
|
-
`,
|
|
91
|
-
accepted: css`
|
|
92
|
-
border-color: ${semanticColors.global.border.feedback.success};
|
|
93
|
-
`,
|
|
94
|
-
rejected: css`
|
|
95
|
-
border-color: ${semanticColors.global.border.feedback.error};
|
|
96
|
-
`,
|
|
97
|
-
download: css`
|
|
98
|
-
border-color: ${semanticColors.branding.surface.enabled};
|
|
99
|
-
`,
|
|
100
|
-
issue: css`
|
|
101
|
-
border-color: ${semanticColors.global.border.feedback.success};
|
|
102
|
-
`,
|
|
103
|
-
order: css`
|
|
104
|
-
border-color: ${semanticColors.global.border.feedback.success};
|
|
105
|
-
`,
|
|
106
|
-
created: css`
|
|
107
|
-
border-color: ${semanticColors.global.border.feedback.success};
|
|
108
|
-
`,
|
|
109
|
-
updated: css`
|
|
110
|
-
border-color: ${semanticColors.global.border.feedback.success};
|
|
111
|
-
`,
|
|
112
|
-
deleted: css`
|
|
113
|
-
border-color: ${semanticColors.global.border.feedback.error};
|
|
114
|
-
`,
|
|
115
|
-
info: css`
|
|
116
|
-
border-color: ${semanticColors.branding.surface.enabled};
|
|
117
|
-
`,
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
return borderMap[v] ?? borderMap.continued!;
|
|
121
|
-
}}
|
|
122
|
-
`;
|
|
123
|
-
|
|
124
|
-
export const Card = styled.div`
|
|
125
|
-
background: #fff;
|
|
126
|
-
padding: 0px 8px;
|
|
127
|
-
margin-top: -4px;
|
|
128
|
-
`;
|
|
129
|
-
|
|
130
|
-
export const Title = styled.h4`
|
|
131
|
-
margin: 0 0 4px 0;
|
|
132
|
-
font-size: ${typographyTokens.fontSizes.headingL};
|
|
133
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
134
|
-
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
135
|
-
`;
|
|
136
|
-
|
|
137
|
-
export const Sub = styled.div`
|
|
138
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
139
|
-
font-size: 14px;
|
|
140
|
-
`;
|
|
141
|
-
|
|
142
|
-
export const Row = styled.div`
|
|
143
|
-
display: flex;
|
|
144
|
-
flex-wrap: wrap;
|
|
145
|
-
gap: 8px;
|
|
146
|
-
align-items: center;
|
|
147
|
-
`;
|
|
148
|
-
|
|
149
|
-
export const List = styled.ol`
|
|
150
|
-
list-style: none;
|
|
151
|
-
margin: 0;
|
|
152
|
-
padding: 0;
|
|
153
|
-
gap: 8px;
|
|
154
|
-
display: flex;
|
|
155
|
-
flex-direction: column;
|
|
156
|
-
`;
|
|
157
|
-
|
|
158
|
-
export const Empty = styled.div`
|
|
159
|
-
display: grid;
|
|
160
|
-
gap: 12px;
|
|
161
|
-
justify-items: start;
|
|
162
|
-
background: #fff;
|
|
163
|
-
border: 1px dashed ${primitiveColors.gray[300]};
|
|
164
|
-
border-radius: 12px;
|
|
165
|
-
padding: 16px;
|
|
166
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
167
|
-
`;
|
|
168
|
-
|
|
169
|
-
export const RetryButton = styled.button`
|
|
170
|
-
appearance: none;
|
|
171
|
-
border: 1px solid ${semanticColors.branding.surface.enabled};
|
|
172
|
-
background: ${semanticColors.branding.surface.enabled};
|
|
173
|
-
color: ${primitiveColors.base.white};
|
|
174
|
-
border-radius: 10px;
|
|
175
|
-
padding: 8px 12px;
|
|
176
|
-
font-size: ${typographyTokens.fontSizes.bodyM};
|
|
177
|
-
cursor: pointer;
|
|
178
|
-
|
|
179
|
-
&:hover {
|
|
180
|
-
filter: brightness(0.95);
|
|
181
|
-
}
|
|
182
|
-
&:active {
|
|
183
|
-
filter: brightness(0.9);
|
|
184
|
-
}
|
|
185
|
-
`;
|
|
186
|
-
export const EventContainer = styled.div`
|
|
187
|
-
display: flex;
|
|
188
|
-
gap: ${semanticSizes.global.gap.xs};
|
|
189
|
-
position: relative;
|
|
190
|
-
`;
|
|
191
|
-
|
|
192
|
-
export const IndicatorColumn = styled.div`
|
|
193
|
-
display: flex;
|
|
194
|
-
flex-direction: column;
|
|
195
|
-
align-items: center;
|
|
196
|
-
width: 16px;
|
|
197
|
-
flex-shrink: 0;
|
|
198
|
-
`;
|
|
199
|
-
|
|
200
|
-
export const EventTitle = styled.h3`
|
|
201
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
202
|
-
font-size: ${typographyTokens.fontSizes.headingS};
|
|
203
|
-
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
204
|
-
line-height: 125%;
|
|
205
|
-
letter-spacing: 0%;
|
|
206
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
207
|
-
margin: 0;
|
|
208
|
-
`;
|
|
209
|
-
|
|
210
|
-
export const EventSubtitle = styled.p`
|
|
211
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
212
|
-
font-size: ${typographyTokens.fontSizes.captionM};
|
|
213
|
-
line-height: 120%;
|
|
214
|
-
letter-spacing: 0%;
|
|
215
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
216
|
-
margin: 0;
|
|
217
|
-
`;
|
|
218
|
-
|
|
219
|
-
export const DetailsContainer = styled.div`
|
|
220
|
-
margin-top: 8px;
|
|
221
|
-
`;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
//ItemWrap,
|
|
4
|
-
//Card,
|
|
5
|
-
//Sub,
|
|
6
|
-
//Row,
|
|
7
|
-
//Dot,
|
|
8
|
-
List,
|
|
9
|
-
//Title,
|
|
10
|
-
Empty,
|
|
11
|
-
RetryButton,
|
|
12
|
-
} from './TimeLine.styles';
|
|
13
|
-
import { ComparisonRow, TimelineProps } from './TimeLine.types';
|
|
14
|
-
import { Skeleton } from '../../atoms/Skeleton/Skeleton';
|
|
15
|
-
|
|
16
|
-
import { TimelineEvent } from '../../molecules/TimeLineEvent';
|
|
17
|
-
|
|
18
|
-
export const Timeline: React.FC<TimelineProps> = ({
|
|
19
|
-
items,
|
|
20
|
-
loading = false,
|
|
21
|
-
onRetry,
|
|
22
|
-
emptyLabel = 'Nenhum evento encontrado.',
|
|
23
|
-
skeletonItems = 3,
|
|
24
|
-
}) => {
|
|
25
|
-
if (loading) {
|
|
26
|
-
return (
|
|
27
|
-
<List aria-label="Linha do tempo (carregando)">
|
|
28
|
-
{Array.from({ length: skeletonItems }).map((_, i) => (
|
|
29
|
-
<li
|
|
30
|
-
key={`sk-${i}`}
|
|
31
|
-
style={{ listStyle: 'none', paddingBottom: '16px' }}
|
|
32
|
-
>
|
|
33
|
-
<div style={{ display: 'flex', gap: '8px' }}>
|
|
34
|
-
<Skeleton variant="circle" width={24} height={24} />
|
|
35
|
-
<div style={{ flex: 1 }}>
|
|
36
|
-
<Skeleton variant="text" width="60%" height={32} />
|
|
37
|
-
<Skeleton variant="text" width="40%" height={18} />
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</li>
|
|
41
|
-
))}
|
|
42
|
-
</List>
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (!items?.length) {
|
|
47
|
-
return (
|
|
48
|
-
<Empty role="status" aria-live="polite">
|
|
49
|
-
<div>{emptyLabel}</div>
|
|
50
|
-
{onRetry && (
|
|
51
|
-
<RetryButton type="button" onClick={onRetry}>
|
|
52
|
-
Tentar novamente
|
|
53
|
-
</RetryButton>
|
|
54
|
-
)}
|
|
55
|
-
</Empty>
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return (
|
|
60
|
-
<List aria-label="Linha do tempo">
|
|
61
|
-
{items.map((it) => (
|
|
62
|
-
<li key={it.id} style={{ listStyle: 'none', paddingBottom: '16px' }}>
|
|
63
|
-
<TimelineEvent
|
|
64
|
-
data={{
|
|
65
|
-
id: it.id,
|
|
66
|
-
title: it.title,
|
|
67
|
-
timestamp: it.timestamp,
|
|
68
|
-
hasDetails: !!it.metadata?.hasDetails,
|
|
69
|
-
startsExpanded: !!it.metadata?.startsExpanded,
|
|
70
|
-
comparisonData: it.metadata?.comparisonData as
|
|
71
|
-
| ComparisonRow[]
|
|
72
|
-
| undefined,
|
|
73
|
-
metadata: it.metadata,
|
|
74
|
-
}}
|
|
75
|
-
/>
|
|
76
|
-
</li>
|
|
77
|
-
))}
|
|
78
|
-
</List>
|
|
79
|
-
);
|
|
80
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
export type TimelineVariant =
|
|
2
|
-
| 'continued'
|
|
3
|
-
| 'accepted'
|
|
4
|
-
| 'rejected'
|
|
5
|
-
| 'issue'
|
|
6
|
-
| 'order'
|
|
7
|
-
| 'created'
|
|
8
|
-
| 'updated'
|
|
9
|
-
| 'download'
|
|
10
|
-
| 'deleted'
|
|
11
|
-
| 'info';
|
|
12
|
-
|
|
13
|
-
export type ActorType = 'user' | 'app';
|
|
14
|
-
|
|
15
|
-
export interface TimelineActor {
|
|
16
|
-
id: string;
|
|
17
|
-
displayName: string;
|
|
18
|
-
type: ActorType | string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface ComparisonRow {
|
|
22
|
-
field: string;
|
|
23
|
-
before: string;
|
|
24
|
-
after: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface TimelineMetadata {
|
|
28
|
-
hasDetails?: boolean;
|
|
29
|
-
comparisonData?: ComparisonRow[];
|
|
30
|
-
eventIdKey?: string;
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface TimelineItem {
|
|
35
|
-
id: string;
|
|
36
|
-
timestamp: string;
|
|
37
|
-
type: TimelineVariant | string;
|
|
38
|
-
title: string;
|
|
39
|
-
description?: string;
|
|
40
|
-
actor: TimelineActor;
|
|
41
|
-
origin: string;
|
|
42
|
-
correlationId?: string;
|
|
43
|
-
metadata?: Record<string, unknown>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type EventIdKey = `${number}`;
|
|
47
|
-
|
|
48
|
-
export interface RemoteUser {
|
|
49
|
-
id: number;
|
|
50
|
-
username: string;
|
|
51
|
-
name: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface RemoteEvent {
|
|
55
|
-
id: string;
|
|
56
|
-
eventType: string;
|
|
57
|
-
eventId: number | string;
|
|
58
|
-
isPublic: boolean;
|
|
59
|
-
|
|
60
|
-
startDate: string;
|
|
61
|
-
endDate?: string;
|
|
62
|
-
duration?: number;
|
|
63
|
-
|
|
64
|
-
user?: RemoteUser;
|
|
65
|
-
|
|
66
|
-
data?: Record<string, unknown>;
|
|
67
|
-
|
|
68
|
-
parentId?: string | null;
|
|
69
|
-
parentType?: string | null;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export type TimelineProps = {
|
|
73
|
-
items: TimelineItem[];
|
|
74
|
-
loading?: boolean;
|
|
75
|
-
onRetry?: () => void;
|
|
76
|
-
emptyLabel?: string;
|
|
77
|
-
skeletonItems?: number;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export interface TimelineEventData {
|
|
81
|
-
metadata: unknown;
|
|
82
|
-
id: string;
|
|
83
|
-
title: string;
|
|
84
|
-
timestamp: string;
|
|
85
|
-
comparisonData?: {
|
|
86
|
-
field: string;
|
|
87
|
-
before: string;
|
|
88
|
-
after: string;
|
|
89
|
-
}[];
|
|
90
|
-
hasDetails: boolean;
|
|
91
|
-
startsExpanded?: boolean;
|
|
92
|
-
}
|
package/src/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.tsx
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
semanticRadius,
|
|
6
|
-
semanticBorders,
|
|
7
|
-
typographyTokens,
|
|
8
|
-
} from '../../../../styles/tokens';
|
|
9
|
-
|
|
10
|
-
import { TimelineComparisonTableProps } from '../TimelineComparisonTable/TimelineComparisonTable.types';
|
|
11
|
-
|
|
12
|
-
const TableContainer = styled.div`
|
|
13
|
-
width: 100%;
|
|
14
|
-
background-color: ${semanticColors.global.foreground.default};
|
|
15
|
-
border: ${semanticBorders.global.sm} solid
|
|
16
|
-
${semanticColors.global.border.medium};
|
|
17
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
18
|
-
padding: ${semanticSizes.global.padding.sm};
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
gap: 12px;
|
|
22
|
-
margin-left: -12px;
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
const TableRow = styled.div`
|
|
26
|
-
display: grid;
|
|
27
|
-
grid-template-columns: 100px 1fr 1fr;
|
|
28
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
29
|
-
align-items: center;
|
|
30
|
-
padding: 4px 0;
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
const FieldLabel = styled.div`
|
|
34
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
35
|
-
font-size: ${typographyTokens.fontSizes.captionM};
|
|
36
|
-
font-weight: ${typographyTokens.fontWeights.regular};
|
|
37
|
-
line-height: 120%;
|
|
38
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
const ValueContainer = styled.div`
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
gap: 4px;
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
const ValueLabel = styled.div<{ $isAfter?: boolean }>`
|
|
48
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
49
|
-
font-size: ${typographyTokens.fontSizes.captionS};
|
|
50
|
-
font-weight: ${(props) =>
|
|
51
|
-
props.$isAfter
|
|
52
|
-
? typographyTokens.fontWeights.semibold
|
|
53
|
-
: typographyTokens.fontWeights.medium};
|
|
54
|
-
line-height: 120%;
|
|
55
|
-
color: ${(props) =>
|
|
56
|
-
props.$isAfter
|
|
57
|
-
? semanticColors.branding.text.accent.enabled
|
|
58
|
-
: semanticColors.global.text.subtitle.enabled};
|
|
59
|
-
`;
|
|
60
|
-
|
|
61
|
-
const ValueText = styled.div<{ $isAfter?: boolean }>`
|
|
62
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
63
|
-
font-size: ${typographyTokens.fontSizes.bodyXS};
|
|
64
|
-
font-weight: ${(props) =>
|
|
65
|
-
props.$isAfter
|
|
66
|
-
? typographyTokens.fontWeights.semibold
|
|
67
|
-
: typographyTokens.fontWeights.regular};
|
|
68
|
-
line-height: 130%;
|
|
69
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
70
|
-
`;
|
|
71
|
-
|
|
72
|
-
export const TimeLineComparisonTable = ({
|
|
73
|
-
rows,
|
|
74
|
-
}: TimelineComparisonTableProps) => {
|
|
75
|
-
return (
|
|
76
|
-
<TableContainer>
|
|
77
|
-
{rows.map((row, index) => (
|
|
78
|
-
<TableRow key={index}>
|
|
79
|
-
<FieldLabel>{row.field}</FieldLabel>
|
|
80
|
-
|
|
81
|
-
<ValueContainer>
|
|
82
|
-
<ValueLabel>Antes</ValueLabel>
|
|
83
|
-
<ValueText>{row.before}</ValueText>
|
|
84
|
-
</ValueContainer>
|
|
85
|
-
|
|
86
|
-
<ValueContainer>
|
|
87
|
-
<ValueLabel $isAfter>Depois</ValueLabel>
|
|
88
|
-
<ValueText $isAfter>{row.after}</ValueText>
|
|
89
|
-
</ValueContainer>
|
|
90
|
-
</TableRow>
|
|
91
|
-
))}
|
|
92
|
-
</TableContainer>
|
|
93
|
-
);
|
|
94
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
typographyTokens,
|
|
6
|
-
} from '../../../styles/tokens';
|
|
7
|
-
|
|
8
|
-
export const EventContainer = styled.div`
|
|
9
|
-
display: flex;
|
|
10
|
-
gap: ${semanticSizes.global.gap.lg};
|
|
11
|
-
position: relative;
|
|
12
|
-
margin-bottom: 10px;
|
|
13
|
-
|
|
14
|
-
&:last-child {
|
|
15
|
-
margin-bottom: 0;
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
export const IndicatorColumn = styled.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
align-items: center;
|
|
23
|
-
width: 16px;
|
|
24
|
-
flex-shrink: 0;
|
|
25
|
-
margin-top: 2px;
|
|
26
|
-
`;
|
|
27
|
-
|
|
28
|
-
export const ContentColumn = styled.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
flex: 1;
|
|
32
|
-
align-self: stretch;
|
|
33
|
-
align-items: stretch;
|
|
34
|
-
padding-right: ${semanticSizes.global.padding.xs};
|
|
35
|
-
`;
|
|
36
|
-
|
|
37
|
-
export const EventTitle = styled.h3`
|
|
38
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
39
|
-
font-size: ${typographyTokens.fontSizes.headingS};
|
|
40
|
-
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
41
|
-
line-height: 125%;
|
|
42
|
-
letter-spacing: 0%;
|
|
43
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
44
|
-
margin: 0;
|
|
45
|
-
margin-bottom: 6px;
|
|
46
|
-
`;
|
|
47
|
-
export const EventSubtitle = styled.p`
|
|
48
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
49
|
-
font-size: ${typographyTokens.fontSizes.captionM};
|
|
50
|
-
line-height: 120%;
|
|
51
|
-
letter-spacing: 0%;
|
|
52
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
53
|
-
margin: 0;
|
|
54
|
-
margin-bottom: 6px;
|
|
55
|
-
`;
|
|
56
|
-
export const DetailsContainer = styled.div`
|
|
57
|
-
margin-top: 6px;
|
|
58
|
-
margin-bottom: 0;
|
|
59
|
-
|
|
60
|
-
margin-left: calc(-1 * ${semanticSizes.global.gap.lg} - 5px);
|
|
61
|
-
margin-right: calc(-1 * ${semanticSizes.global.padding.xs});
|
|
62
|
-
`;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { TimelineEventIndicador } from '../../atoms/TimelineEventIndicator';
|
|
3
|
-
import { TimeLineExpandButton } from '../../atoms/TimelineEventIndicator/TimelineExpandButton';
|
|
4
|
-
import { TimeLineComparisonTable } from '../TimeLine/TimelineComparisonTable/TimelineComparisonTable';
|
|
5
|
-
import type { TimelineEventData } from '../TimeLine/TimeLine.types';
|
|
6
|
-
import { ContentColumn } from './TimelineEvent.styles';
|
|
7
|
-
import {
|
|
8
|
-
EventContainer,
|
|
9
|
-
IndicatorColumn,
|
|
10
|
-
EventTitle,
|
|
11
|
-
EventSubtitle,
|
|
12
|
-
DetailsContainer,
|
|
13
|
-
} from './TimelineEvent.styles';
|
|
14
|
-
|
|
15
|
-
interface TimelineEventProps {
|
|
16
|
-
data: TimelineEventData;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const TimelineEvent = ({ data }: TimelineEventProps) => {
|
|
20
|
-
const [expanded, setExpanded] = useState<boolean>(
|
|
21
|
-
data.startsExpanded || false
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
const toggleExpanded = () => {
|
|
25
|
-
setExpanded((prev: boolean) => !prev);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<EventContainer>
|
|
30
|
-
<IndicatorColumn>
|
|
31
|
-
<TimelineEventIndicador />
|
|
32
|
-
</IndicatorColumn>
|
|
33
|
-
|
|
34
|
-
<ContentColumn>
|
|
35
|
-
<EventTitle>{data.title}</EventTitle>
|
|
36
|
-
|
|
37
|
-
{!data.hasDetails && <EventSubtitle>{data.timestamp}</EventSubtitle>}
|
|
38
|
-
|
|
39
|
-
{data.hasDetails && (
|
|
40
|
-
<>
|
|
41
|
-
<EventSubtitle>{data.timestamp}</EventSubtitle>
|
|
42
|
-
|
|
43
|
-
<TimeLineExpandButton
|
|
44
|
-
expanded={expanded}
|
|
45
|
-
onClick={toggleExpanded}
|
|
46
|
-
/>
|
|
47
|
-
|
|
48
|
-
{expanded && data.comparisonData && (
|
|
49
|
-
<DetailsContainer>
|
|
50
|
-
<TimeLineComparisonTable rows={data.comparisonData} />
|
|
51
|
-
</DetailsContainer>
|
|
52
|
-
)}
|
|
53
|
-
</>
|
|
54
|
-
)}
|
|
55
|
-
</ContentColumn>
|
|
56
|
-
</EventContainer>
|
|
57
|
-
);
|
|
58
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
semanticColors,
|
|
3
|
-
semanticRadius,
|
|
4
|
-
semanticShadows,
|
|
5
|
-
semanticSizes,
|
|
6
|
-
} from '../../../styles/tokens';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
|
|
9
|
-
export const DialogContainer = styled.div`
|
|
10
|
-
background: ${semanticColors.base.background};
|
|
11
|
-
padding: ${semanticSizes.global.padding['2xl']};
|
|
12
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
13
|
-
box-shadow: ${semanticShadows.shadow};
|
|
14
|
-
border-top: 4px solid ${semanticColors.danger.border.enabled};
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
align-items: center;
|
|
18
|
-
gap: ${semanticSizes.global.gap.lg};
|
|
19
|
-
max-width: 440px;
|
|
20
|
-
text-align: left;
|
|
21
|
-
position: relative;
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
export const ButtonContainer = styled.div`
|
|
25
|
-
display: flex;
|
|
26
|
-
width: 100%;
|
|
27
|
-
gap: ${semanticSizes.global.gap.lg};
|
|
28
|
-
margin-top: ${semanticSizes.global.spacings.lg};
|
|
29
|
-
justify-content: flex-end;
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
export const Overlay = styled.div`
|
|
33
|
-
position: fixed;
|
|
34
|
-
inset: 0;
|
|
35
|
-
background: rgba(0, 0, 0, 0.5);
|
|
36
|
-
display: flex;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
align-items: center;
|
|
39
|
-
z-index: 9999;
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export const CloseButton = styled.button`
|
|
43
|
-
background: none;
|
|
44
|
-
border: none;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
color: ${semanticColors.base.text};
|
|
47
|
-
font-size: ${semanticSizes.global.spacings.lg};
|
|
48
|
-
|
|
49
|
-
&:hover {
|
|
50
|
-
color: ${semanticColors.danger.border.enabled};
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
|
|
54
|
-
export const TitleContainer = styled.div`
|
|
55
|
-
display: flex;
|
|
56
|
-
width: 100%;
|
|
57
|
-
flex-direction: row;
|
|
58
|
-
justify-content: space-between;
|
|
59
|
-
align-items: flex-start;
|
|
60
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
61
|
-
`;
|