@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,39 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { primitiveColors } from '../../../styles/tokens';
|
|
3
|
-
|
|
4
|
-
export const IconWrapper = styled.button`
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
|
|
9
|
-
width: 12.5px;
|
|
10
|
-
height: 12.5px;
|
|
11
|
-
padding: 0;
|
|
12
|
-
border: none;
|
|
13
|
-
background: transparent;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
opacity: 1;
|
|
16
|
-
|
|
17
|
-
position: relative;
|
|
18
|
-
top: 1.5px;
|
|
19
|
-
left: 2px;
|
|
20
|
-
|
|
21
|
-
transition: opacity 0.2s ease;
|
|
22
|
-
|
|
23
|
-
img,
|
|
24
|
-
svg {
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
|
|
28
|
-
color: ${primitiveColors.gray[800]};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:hover {
|
|
32
|
-
opacity: 0.7;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:disabled {
|
|
36
|
-
cursor: not-allowed;
|
|
37
|
-
opacity: 0.3;
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PencilSimple } from '@phosphor-icons/react';
|
|
3
|
-
import { IconWrapper } from './EditIcon.styles';
|
|
4
|
-
import { EditIconProps } from './EditIcon.types';
|
|
5
|
-
import imgPen from '../../../assets/pen.png';
|
|
6
|
-
|
|
7
|
-
export const EditIcon: React.FC<EditIconProps> = ({
|
|
8
|
-
onClick,
|
|
9
|
-
useAsset = false,
|
|
10
|
-
...props
|
|
11
|
-
}) => {
|
|
12
|
-
return (
|
|
13
|
-
<IconWrapper onClick={onClick} {...props}>
|
|
14
|
-
{useAsset ? (
|
|
15
|
-
<img src={imgPen} alt="Editar" />
|
|
16
|
-
) : (
|
|
17
|
-
<PencilSimple weight="bold" />
|
|
18
|
-
)}
|
|
19
|
-
</IconWrapper>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
File without changes
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
primitiveSizes,
|
|
4
|
-
semanticBorders,
|
|
5
|
-
semanticColors,
|
|
6
|
-
semanticRadius,
|
|
7
|
-
semanticShadows,
|
|
8
|
-
semanticSizes,
|
|
9
|
-
typographyTokens,
|
|
10
|
-
} from '../../../styles/tokens';
|
|
11
|
-
import CreatableSelect from 'react-select/creatable';
|
|
12
|
-
|
|
13
|
-
export const Container = styled.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
gap: ${primitiveSizes.size.x1};
|
|
17
|
-
width: 100%;
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
export const Label = styled.label`
|
|
21
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
22
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
23
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
24
|
-
`;
|
|
25
|
-
|
|
26
|
-
export const SupportingText = styled.span<{ $error?: boolean }>`
|
|
27
|
-
font-size: ${typographyTokens.fontSizes.captionM};
|
|
28
|
-
color: ${({ $error }) =>
|
|
29
|
-
$error
|
|
30
|
-
? semanticColors.global.text.feedback.strong.error
|
|
31
|
-
: semanticColors.global.text.subtitle.enabled};
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
export const CustomSelect = styled(CreatableSelect).attrs({
|
|
35
|
-
classNamePrefix: 'react-select',
|
|
36
|
-
})<{
|
|
37
|
-
$size?: keyof typeof semanticSizes.global.padding;
|
|
38
|
-
$error?: boolean;
|
|
39
|
-
}>`
|
|
40
|
-
.react-select__control {
|
|
41
|
-
background: ${semanticColors.base.background};
|
|
42
|
-
border: ${semanticBorders.global.sm} solid
|
|
43
|
-
${({ $error }) =>
|
|
44
|
-
$error
|
|
45
|
-
? semanticColors.global.border.danger.enabled
|
|
46
|
-
: semanticColors.global.border.medium};
|
|
47
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
48
|
-
transition:
|
|
49
|
-
border-color 0.2s,
|
|
50
|
-
box-shadow 0.2s;
|
|
51
|
-
min-height: ${primitiveSizes.size.x12};
|
|
52
|
-
|
|
53
|
-
&:hover {
|
|
54
|
-
border-color: ${({ $error }) =>
|
|
55
|
-
$error
|
|
56
|
-
? semanticColors.danger.border.hover
|
|
57
|
-
: semanticColors.branding.border.hover};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:focus-within {
|
|
61
|
-
border-color: ${({ $error }) =>
|
|
62
|
-
$error
|
|
63
|
-
? semanticColors.danger.border.enabled
|
|
64
|
-
: semanticColors.branding.border.enabled};
|
|
65
|
-
box-shadow: ${semanticShadows.shadow.md};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.react-select__control--is-disabled {
|
|
69
|
-
background: ${semanticColors.global.surface.disabled};
|
|
70
|
-
border-color: ${semanticColors.global.border.strong};
|
|
71
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
72
|
-
cursor: not-allowed;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.react-select__value-container {
|
|
77
|
-
padding: ${({ $size = 'md' }) => semanticSizes.global.padding[$size]};
|
|
78
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
79
|
-
color: ${semanticColors.base.text};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.react-select__placeholder {
|
|
83
|
-
color: ${semanticColors.global.text.onSurface.subtitle};
|
|
84
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.react-select__menu {
|
|
88
|
-
background: ${semanticColors.base.background};
|
|
89
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
90
|
-
box-shadow: ${semanticShadows.shadow.lg};
|
|
91
|
-
border: ${semanticBorders.global.sm} solid
|
|
92
|
-
${semanticColors.global.border.default};
|
|
93
|
-
z-index: 1000;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.react-select__option {
|
|
97
|
-
padding: ${({ $size = 'md' }) => semanticSizes.global.padding[$size]};
|
|
98
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
transition:
|
|
101
|
-
background 0.2s,
|
|
102
|
-
color 0.2s;
|
|
103
|
-
color: ${semanticColors.base.text};
|
|
104
|
-
|
|
105
|
-
&:hover {
|
|
106
|
-
background: ${semanticColors.branding.surface.hover};
|
|
107
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:active {
|
|
111
|
-
background: ${semanticColors.branding.surface.pressed};
|
|
112
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.react-select__option--is-selected {
|
|
117
|
-
background: ${semanticColors.branding.surface.enabled};
|
|
118
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
119
|
-
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
120
|
-
|
|
121
|
-
&:hover {
|
|
122
|
-
background: ${semanticColors.branding.surface.hover};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.react-select__option--is-focused {
|
|
127
|
-
background: ${semanticColors.neutral[100]};
|
|
128
|
-
color: ${semanticColors.base.text};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.react-select__indicator-separator {
|
|
132
|
-
background-color: ${semanticColors.global.border.medium};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.react-select__dropdown-indicator {
|
|
136
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
137
|
-
|
|
138
|
-
&:hover {
|
|
139
|
-
color: ${semanticColors.branding.text.accent.enabled};
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.react-select__clear-indicator {
|
|
144
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
145
|
-
|
|
146
|
-
&:hover {
|
|
147
|
-
color: ${semanticColors.danger.text.enabled};
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
`;
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useMemo, useState } from 'react';
|
|
4
|
-
import type { InputActionMeta } from 'react-select';
|
|
5
|
-
import {
|
|
6
|
-
Container,
|
|
7
|
-
Label,
|
|
8
|
-
SupportingText,
|
|
9
|
-
CustomSelect,
|
|
10
|
-
} from './EditableDurationSelect.styles';
|
|
11
|
-
import {
|
|
12
|
-
DurationOption,
|
|
13
|
-
EditableDurationSelectProps,
|
|
14
|
-
} from './EditableDurationSelect.types';
|
|
15
|
-
|
|
16
|
-
const DAYS_IN_YEAR = 365;
|
|
17
|
-
const BASE_LIMIT = 5;
|
|
18
|
-
|
|
19
|
-
function parseDuration(input: string): DurationOption | null {
|
|
20
|
-
if (!input) return null;
|
|
21
|
-
|
|
22
|
-
const normalized = input.trim().toLowerCase();
|
|
23
|
-
|
|
24
|
-
if (/^\d+$/.test(normalized)) {
|
|
25
|
-
const amount = Number(normalized);
|
|
26
|
-
if (amount <= 0) return null;
|
|
27
|
-
|
|
28
|
-
const isYear = amount <= BASE_LIMIT;
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
label: isYear
|
|
32
|
-
? `${amount} ${amount > 1 ? 'anos' : 'ano'}`
|
|
33
|
-
: `${amount} ${amount > 1 ? 'dias' : 'dia'}`,
|
|
34
|
-
value: normalized,
|
|
35
|
-
days: isYear ? amount * DAYS_IN_YEAR : amount,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const match = normalized.match(/^(\d+)\s*(dia|dias|ano|anos)$/);
|
|
40
|
-
if (!match) return null;
|
|
41
|
-
|
|
42
|
-
const amount = Number(match[1]);
|
|
43
|
-
const unit = match[2];
|
|
44
|
-
|
|
45
|
-
if (amount <= 0) return null;
|
|
46
|
-
|
|
47
|
-
const isYear = unit.startsWith('ano');
|
|
48
|
-
|
|
49
|
-
return {
|
|
50
|
-
label: `${amount} ${isYear ? (amount > 1 ? 'anos' : 'ano') : amount > 1 ? 'dias' : 'dia'}`,
|
|
51
|
-
value: normalized,
|
|
52
|
-
days: isYear ? amount * DAYS_IN_YEAR : amount,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export default function EditableDurationSelect({
|
|
57
|
-
label,
|
|
58
|
-
supportingText,
|
|
59
|
-
value,
|
|
60
|
-
onChange,
|
|
61
|
-
options = [],
|
|
62
|
-
disabled,
|
|
63
|
-
error,
|
|
64
|
-
size = 'md',
|
|
65
|
-
testId,
|
|
66
|
-
baseLimit = BASE_LIMIT,
|
|
67
|
-
placeholder = 'Selecione ou insira a duração',
|
|
68
|
-
}: EditableDurationSelectProps) {
|
|
69
|
-
const [inputValue, setInputValue] = useState('');
|
|
70
|
-
|
|
71
|
-
const parsedInput = useMemo(() => parseDuration(inputValue), [inputValue]);
|
|
72
|
-
|
|
73
|
-
const dynamicOption = useMemo(() => {
|
|
74
|
-
if (!parsedInput) return [];
|
|
75
|
-
return [
|
|
76
|
-
{
|
|
77
|
-
label: parsedInput.label,
|
|
78
|
-
value: parsedInput.value,
|
|
79
|
-
days: parsedInput.days,
|
|
80
|
-
},
|
|
81
|
-
];
|
|
82
|
-
}, [parsedInput]);
|
|
83
|
-
|
|
84
|
-
const mergedOptions = useMemo(() => {
|
|
85
|
-
return [
|
|
86
|
-
...dynamicOption.filter((d) => !options.some((o) => o.days === d.days)),
|
|
87
|
-
...options,
|
|
88
|
-
];
|
|
89
|
-
}, [dynamicOption, options]);
|
|
90
|
-
|
|
91
|
-
const helperText = useMemo(() => {
|
|
92
|
-
if (!inputValue) return supportingText;
|
|
93
|
-
|
|
94
|
-
if (!parsedInput) return 'Valor inválido';
|
|
95
|
-
|
|
96
|
-
return parsedInput.days > baseLimit * DAYS_IN_YEAR
|
|
97
|
-
? `Valores acima de ${baseLimit} são considerados dias`
|
|
98
|
-
: `Valores até ${baseLimit} são considerados anos`;
|
|
99
|
-
}, [baseLimit, inputValue, parsedInput, supportingText]);
|
|
100
|
-
|
|
101
|
-
function handleInputChange(value: string, meta: InputActionMeta) {
|
|
102
|
-
if (meta.action === 'input-change') {
|
|
103
|
-
setInputValue(value);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function handleChange(option: DurationOption | null) {
|
|
108
|
-
if (!option) return;
|
|
109
|
-
onChange?.(option);
|
|
110
|
-
setInputValue('');
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return (
|
|
114
|
-
<Container data-testid={testId}>
|
|
115
|
-
{label && <Label>{label}</Label>}
|
|
116
|
-
|
|
117
|
-
<CustomSelect
|
|
118
|
-
classNamePrefix="react-select"
|
|
119
|
-
isSearchable
|
|
120
|
-
isDisabled={disabled}
|
|
121
|
-
$size={size}
|
|
122
|
-
$error={error}
|
|
123
|
-
options={mergedOptions}
|
|
124
|
-
value={value}
|
|
125
|
-
placeholder={placeholder}
|
|
126
|
-
onInputChange={handleInputChange}
|
|
127
|
-
onChange={(opt) => handleChange(opt as DurationOption | null)}
|
|
128
|
-
formatCreateLabel={() => null}
|
|
129
|
-
/>
|
|
130
|
-
|
|
131
|
-
{helperText && (
|
|
132
|
-
<SupportingText $error={error || helperText === 'Valor inválido'}>
|
|
133
|
-
{helperText}
|
|
134
|
-
</SupportingText>
|
|
135
|
-
)}
|
|
136
|
-
</Container>
|
|
137
|
-
);
|
|
138
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type DurationOption = {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string;
|
|
4
|
-
days: number;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export interface EditableDurationSelectProps {
|
|
8
|
-
label?: string;
|
|
9
|
-
supportingText?: string;
|
|
10
|
-
value?: DurationOption | null;
|
|
11
|
-
onChange?: (value: DurationOption | null) => void;
|
|
12
|
-
options?: DurationOption[];
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
error?: boolean;
|
|
15
|
-
size?: 'sm' | 'md' | 'lg';
|
|
16
|
-
testId?: string;
|
|
17
|
-
baseLimit?: number;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticBorders,
|
|
4
|
-
semanticColors,
|
|
5
|
-
semanticSizes,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
} from '../../../styles/tokens';
|
|
8
|
-
|
|
9
|
-
const errorMessageVariants = {
|
|
10
|
-
error: css`
|
|
11
|
-
color: ${semanticColors.danger.text.feedback.accent};
|
|
12
|
-
`,
|
|
13
|
-
success: css`
|
|
14
|
-
color: ${semanticColors.success.text.feedback.accent};
|
|
15
|
-
`,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const ErrorMessage = styled.p<{ $type?: 'error' | 'success' }>`
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
gap: ${semanticSizes.global.gap.md};
|
|
23
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
24
|
-
margin-top: ${semanticSizes.global.spacings.sm};
|
|
25
|
-
border-radius: ${semanticBorders.global.md};
|
|
26
|
-
|
|
27
|
-
${({ $type = 'error' }) => errorMessageVariants[$type]}
|
|
28
|
-
`;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ErrorMessage as StyledErrorMessage } from './ErrorMessage.styles';
|
|
3
|
-
import { ErrorMessageProps } from './ErrorMessage.types';
|
|
4
|
-
|
|
5
|
-
const ErrorMessage: React.FC<ErrorMessageProps> = ({
|
|
6
|
-
children,
|
|
7
|
-
type = 'error',
|
|
8
|
-
}) => {
|
|
9
|
-
return <StyledErrorMessage $type={type}>{children}</StyledErrorMessage>;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export default ErrorMessage;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticSizes,
|
|
4
|
-
semanticColors,
|
|
5
|
-
primitiveSizes,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
} from '../../../styles/tokens';
|
|
8
|
-
|
|
9
|
-
export const Container = styled.div`
|
|
10
|
-
font-size: ${typographyTokens.fontSizes.bodyM};
|
|
11
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
12
|
-
margin-top: calc(${semanticSizes.global.padding['4xl']} + 111px);
|
|
13
|
-
padding-bottom: ${semanticSizes.global.padding['2xl']};
|
|
14
|
-
text-align: center;
|
|
15
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
16
|
-
font-weight: ${typographyTokens.fontWeights.regular};
|
|
17
|
-
line-height: ${typographyTokens.lineHeights.bodyM};
|
|
18
|
-
position: fixed;
|
|
19
|
-
bottom: ${primitiveSizes.size.half};
|
|
20
|
-
width: ${semanticSizes.global.full};
|
|
21
|
-
background-color: ${semanticColors.base.background};
|
|
22
|
-
`;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
typographyTokens,
|
|
6
|
-
} from '../../../styles/tokens';
|
|
7
|
-
|
|
8
|
-
export const Container = styled.div`
|
|
9
|
-
padding: ${semanticSizes.global.padding['2xl']};
|
|
10
|
-
|
|
11
|
-
h1 {
|
|
12
|
-
font-size: ${typographyTokens.fontSizes.displayM};
|
|
13
|
-
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
14
|
-
line-height: ${typographyTokens.lineHeights.displayM};
|
|
15
|
-
margin-top: ${semanticSizes.global.padding.xl};
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.text {
|
|
19
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Container } from './GenericContainer.styles';
|
|
3
|
-
import { GenericContainerProps } from './GenericContainer.types';
|
|
4
|
-
|
|
5
|
-
export const GenericContainer: React.FC<GenericContainerProps> = ({
|
|
6
|
-
children,
|
|
7
|
-
}) => {
|
|
8
|
-
return <Container>{children}</Container>;
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { semanticSizes } from '../../../styles/tokens';
|
|
2
|
-
|
|
3
|
-
const iconSizes = {
|
|
4
|
-
xs: semanticSizes.global.padding.xl,
|
|
5
|
-
sm: semanticSizes.global.padding.sm,
|
|
6
|
-
md: semanticSizes.global.padding.md,
|
|
7
|
-
lg: semanticSizes.global.padding.lg,
|
|
8
|
-
xl: semanticSizes.global.padding.xl,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default iconSizes;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as Icons from '@phosphor-icons/react';
|
|
3
|
-
import { IconProps } from './Icon.types';
|
|
4
|
-
import iconSizes from './Icon.styles';
|
|
5
|
-
|
|
6
|
-
const Icon: React.FC<IconProps> = ({
|
|
7
|
-
name,
|
|
8
|
-
size = 'md',
|
|
9
|
-
weight = 'regular',
|
|
10
|
-
...props
|
|
11
|
-
}) => {
|
|
12
|
-
const IconComponent = Icons[name as keyof typeof Icons] as React.ElementType;
|
|
13
|
-
|
|
14
|
-
if (!IconComponent) {
|
|
15
|
-
console.warn(`Ícone "${name}" não encontrado.`);
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return <IconComponent size={iconSizes[size]} weight={weight} {...props} />;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default Icon;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticShadows,
|
|
5
|
-
semanticRadius,
|
|
6
|
-
primitiveSizes,
|
|
7
|
-
semanticSizes,
|
|
8
|
-
semanticBorders,
|
|
9
|
-
typographyTokens,
|
|
10
|
-
} from '../../../styles/tokens';
|
|
11
|
-
|
|
12
|
-
const inputSizes = {
|
|
13
|
-
sm: css`
|
|
14
|
-
padding: ${semanticSizes.global.padding.md}
|
|
15
|
-
${semanticSizes.global.padding.lg};
|
|
16
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
17
|
-
`,
|
|
18
|
-
md: css`
|
|
19
|
-
padding: ${semanticSizes.global.padding.lg}
|
|
20
|
-
${semanticSizes.global.padding.xl};
|
|
21
|
-
gap: ${semanticSizes.global.gap.md};
|
|
22
|
-
`,
|
|
23
|
-
lg: css`
|
|
24
|
-
padding: ${semanticSizes.global.padding['2xl']}
|
|
25
|
-
${semanticSizes.global.padding['3xl']};
|
|
26
|
-
gap: ${semanticSizes.global.gap.lg};
|
|
27
|
-
`,
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const Container = styled.div`
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
gap: ${primitiveSizes.size.x1};
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
export const Label = styled.label`
|
|
37
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
38
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
39
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export const SupportText = styled.span<{ $error?: boolean }>`
|
|
43
|
-
font-size: ${typographyTokens.fontSizes.captionM};
|
|
44
|
-
color: ${({ $error }) =>
|
|
45
|
-
$error
|
|
46
|
-
? semanticColors.danger.text.enabled
|
|
47
|
-
: semanticColors.global.text.subtitle.enabled};
|
|
48
|
-
`;
|
|
49
|
-
|
|
50
|
-
export const InputWrapper = styled.div<{
|
|
51
|
-
$error?: boolean;
|
|
52
|
-
$disabled?: boolean;
|
|
53
|
-
$radius?: keyof typeof semanticRadius.global.radius;
|
|
54
|
-
$shadow?: keyof typeof semanticShadows.shadow;
|
|
55
|
-
$size: keyof typeof inputSizes;
|
|
56
|
-
}>`
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
|
|
60
|
-
${({ $size }) => inputSizes[$size]}
|
|
61
|
-
|
|
62
|
-
box-shadow: ${({ $shadow }) => semanticShadows.shadow[$shadow || 'default']};
|
|
63
|
-
border-radius: ${semanticBorders.global.lg};
|
|
64
|
-
border: 1px solid
|
|
65
|
-
${({ $error }) =>
|
|
66
|
-
$error
|
|
67
|
-
? semanticColors.danger.border.enabled
|
|
68
|
-
: semanticColors.global.border.medium};
|
|
69
|
-
background-color: ${({ $disabled }) =>
|
|
70
|
-
$disabled ? semanticColors.neutral[100] : semanticColors.base.background};
|
|
71
|
-
transition:
|
|
72
|
-
border-color 0.2s,
|
|
73
|
-
box-shadow 0.2s;
|
|
74
|
-
|
|
75
|
-
&:focus-within {
|
|
76
|
-
border-color: ${({ $error }) =>
|
|
77
|
-
$error
|
|
78
|
-
? semanticColors.danger.border.enabled
|
|
79
|
-
: semanticColors.branding.border.enabled};
|
|
80
|
-
}
|
|
81
|
-
`;
|
|
82
|
-
|
|
83
|
-
export const StyledInput = styled.input`
|
|
84
|
-
display: flex;
|
|
85
|
-
width: 100%;
|
|
86
|
-
border: none;
|
|
87
|
-
outline: none;
|
|
88
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
89
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
90
|
-
|
|
91
|
-
&::placeholder {
|
|
92
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:disabled {
|
|
96
|
-
background-color: transparent;
|
|
97
|
-
cursor: not-allowed;
|
|
98
|
-
}
|
|
99
|
-
`;
|
|
100
|
-
|
|
101
|
-
export const Icon = styled.div`
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
justify-content: center;
|
|
105
|
-
color: ${semanticColors.neutral[400]};
|
|
106
|
-
`;
|