@granto-umbrella/umbrella-components 3.0.77 → 3.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{umbrella-components.umd.js → cjs/index.js} +760 -789
- package/dist/{umbrella-components.es.js → esm/index.js} +26832 -27462
- package/dist/types/components/atoms/Badge/Badge.d.ts +4 -0
- package/dist/types/components/atoms/Badge/Badge.styles.d.ts +22 -0
- package/dist/types/components/atoms/Badge/Badge.types.d.ts +9 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.styles.d.ts +5 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.types.d.ts +10 -0
- package/dist/types/components/atoms/Button/Button.d.ts +4 -0
- package/dist/types/components/atoms/Button/Button.styles.d.ts +31 -0
- package/dist/types/components/atoms/Button/Button.types.d.ts +13 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +3 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.styles.d.ts +11 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.types.d.ts +16 -0
- package/dist/types/components/atoms/Checkbox/CheckboxGroup.d.ts +3 -0
- package/dist/types/components/atoms/Checkbox/CheckboxSelectAll.d.ts +3 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.d.ts +4 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.styles.d.ts +1 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.types.d.ts +2 -0
- package/dist/types/components/atoms/DatePickerInput/DatePicker.styles.d.ts +3 -0
- package/dist/types/components/atoms/DatePickerInput/DatePickerInput.d.ts +11 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.d.ts +4 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.styles.d.ts +13 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.types.d.ts +12 -0
- package/dist/types/components/atoms/DropDownMenu/index.d.ts +2 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.d.ts +3 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.styles.d.ts +1 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.types.d.ts +6 -0
- package/dist/types/components/atoms/EditIcon/index.d.ts +1 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.d.ts +2 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.styles.d.ts +15 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.types.d.ts +18 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.d.ts +4 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.styles.d.ts +3 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.types.d.ts +5 -0
- package/dist/types/components/atoms/Footer/Footer.d.ts +4 -0
- package/dist/types/components/atoms/Footer/Footer.styles.d.ts +1 -0
- package/dist/types/components/atoms/Footer/Footer.types.d.ts +4 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.d.ts +3 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.styles.d.ts +1 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.types.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Icon.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Icon.styles.d.ts +8 -0
- package/{src/components/atoms/Icon/Icon.types.ts → dist/types/components/atoms/Icon/Icon.types.d.ts} +2 -3
- package/dist/types/components/atoms/Input/Input.d.ts +4 -0
- package/dist/types/components/atoms/Input/Input.styles.d.ts +21 -0
- package/dist/types/components/atoms/Input/Input.types.d.ts +19 -0
- package/dist/types/components/atoms/Label/Label.d.ts +6 -0
- package/dist/types/components/atoms/Label/Label.styles.d.ts +4 -0
- package/dist/types/components/atoms/Loading/Loading.d.ts +3 -0
- package/dist/types/components/atoms/Loading/Loading.styles.d.ts +1 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.Types.d.ts +6 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.d.ts +3 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.styles.d.ts +4 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.d.ts +3 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.styles.d.ts +6 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.types.d.ts +5 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.d.ts +4 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.styles.d.ts +15 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.types.d.ts +32 -0
- package/dist/types/components/atoms/Pill/Pill.d.ts +4 -0
- package/dist/types/components/atoms/Pill/Pill.styles.d.ts +15 -0
- package/dist/types/components/atoms/Pill/Pill.types.d.ts +10 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +4 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.styles.d.ts +3 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.types.d.ts +9 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.d.ts +3 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.styles.d.ts +3 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.types.d.ts +7 -0
- package/dist/types/components/atoms/Select/Select.d.ts +4 -0
- package/dist/types/components/atoms/Select/Select.styles.d.ts +15 -0
- package/dist/types/components/atoms/Select/Select.types.d.ts +24 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.d.ts +3 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.styles.d.ts +5 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.types.d.ts +12 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.d.ts +3 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.styles.d.ts +1 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.types.d.ts +4 -0
- package/dist/types/components/atoms/Switch/Switch.d.ts +8 -0
- package/dist/types/components/atoms/Switch/Switch.styles.d.ts +5 -0
- package/dist/types/components/atoms/Switch/Switch.types.d.ts +7 -0
- package/dist/types/components/atoms/TabBar/TabBar.d.ts +3 -0
- package/dist/types/components/atoms/TabBar/TabBar.styles.d.ts +5 -0
- package/dist/types/components/atoms/TabBar/TabBar.types.d.ts +10 -0
- package/dist/types/components/atoms/Text/Text.d.ts +4 -0
- package/dist/types/components/atoms/Text/Text.styles.d.ts +6 -0
- package/dist/types/components/atoms/Text/Text.types.d.ts +8 -0
- package/dist/types/components/atoms/Textarea/Textarea.d.ts +4 -0
- package/dist/types/components/atoms/Textarea/Textarea.styles.d.ts +4 -0
- package/{src/components/atoms/Textarea/Textarea.types.ts → dist/types/components/atoms/Textarea/Textarea.types.d.ts} +4 -4
- package/dist/types/components/atoms/TimelineEventIndicator/TimelineEventIndicator.d.ts +1 -0
- package/dist/types/components/atoms/TimelineEventIndicator/TimelineExpandButton.d.ts +7 -0
- package/dist/types/components/atoms/Title/Title.d.ts +3 -0
- package/dist/types/components/atoms/Title/Title.styles.d.ts +1 -0
- package/dist/types/components/atoms/Title/Title.types.d.ts +4 -0
- package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +4 -0
- package/dist/types/components/atoms/Tooltip/Tootip.styles.d.ts +9 -0
- package/dist/types/components/atoms/Tooltip/tooltip.types.d.ts +7 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.styles.d.ts +6 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.types.d.ts +13 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.d.ts +4 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.styles.d.ts +1 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.types.d.ts +5 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.styles.d.ts +3 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.types.d.ts +11 -0
- package/dist/types/components/molecules/Calendar/Calendar.d.ts +8 -0
- package/dist/types/components/molecules/Calendar/Calendar.styles.d.ts +2 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.d.ts +4 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.styles.d.ts +1 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.types.d.ts +9 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.d.ts +4 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.styles.d.ts +17 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.types.d.ts +12 -0
- package/dist/types/components/molecules/FieldSelector/FieldSelector.d.ts +10 -0
- package/dist/types/components/molecules/FieldSelector/FieldSelector.styles.d.ts +8 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.d.ts +4 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.styles.d.ts +8 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.types.d.ts +9 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.d.ts +3 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.styles.d.ts +49 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.types.d.ts +38 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.d.ts +3 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.styles.d.ts +1 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.types.d.ts +9 -0
- package/dist/types/components/molecules/Popover/Popover.d.ts +6 -0
- package/dist/types/components/molecules/Popover/Popover.styles.d.ts +4 -0
- package/dist/types/components/molecules/RadioBoxGroup/RadioBoxGroup.d.ts +15 -0
- package/dist/types/components/molecules/RadioBoxGroup/RadioBoxGroup.styles.d.ts +3 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.d.ts +4 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.styles.d.ts +6 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.types.d.ts +15 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.d.ts +2 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.styles.d.ts +21 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.types.d.ts +8 -0
- package/dist/types/components/molecules/ResultsChart/ResultsChart.d.ts +3 -0
- package/dist/types/components/molecules/ResultsChart/ResultsChart.styles.d.ts +3 -0
- package/{src/components/molecules/ResultsChart/ResultsChart.types.ts → dist/types/components/molecules/ResultsChart/ResultsChart.types.d.ts} +1 -1
- package/dist/types/components/molecules/TabToggle/TabToggle.d.ts +10 -0
- package/dist/types/components/molecules/TabToggle/TabToggle.styles.d.ts +8 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.d.ts +3 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.mapper.d.ts +2 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.registry.d.ts +8 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.styles.d.ts +18 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.types.d.ts +68 -0
- package/dist/types/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.d.ts +2 -0
- package/{src/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.types.ts → dist/types/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.types.d.ts} +4 -4
- package/dist/types/components/molecules/TimeLineEvent/TimelineEvent.d.ts +6 -0
- package/dist/types/components/molecules/TimeLineEvent/TimelineEvent.styles.d.ts +6 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.d.ts +4 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.styles.d.ts +5 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.types.d.ts +14 -0
- package/dist/types/components/organisms/Dialog/Dialog.d.ts +12 -0
- package/dist/types/components/organisms/Dialog/Dialog.styles.d.ts +18 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.d.ts +4 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.styles.d.ts +10 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.types.d.ts +8 -0
- package/dist/types/components/organisms/DonutEmissionsChart/index.d.ts +2 -0
- package/dist/types/components/organisms/ExportExcelModal/ExportExcelModal.d.ts +13 -0
- package/dist/types/components/organisms/ExportExcelModal/ExportExcelModal.styles.d.ts +13 -0
- package/dist/types/components/organisms/Form/Form.d.ts +22 -0
- package/dist/types/components/organisms/Form/Form.styles.d.ts +7 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.d.ts +4 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.styles.d.ts +13 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.types.d.ts +15 -0
- package/dist/types/components/organisms/Navbar/Navbar.d.ts +3 -0
- package/dist/types/components/organisms/Navbar/Navbar.styles.d.ts +15 -0
- package/dist/types/components/organisms/Navbar/Navbar.types.d.ts +32 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.d.ts +3 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.styles.d.ts +3 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.types.d.ts +11 -0
- package/dist/types/components/organisms/TimelineModal/TimelineModal.d.ts +11 -0
- package/dist/types/components/organisms/TimelineModal/TimelineModal.styles.d.ts +15 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.d.ts +3 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.styles.d.ts +1 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.types.d.ts +11 -0
- package/dist/types/components/templates/PermissionMatrix/index.d.ts +1 -0
- package/dist/types/index.d.ts +75 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/styles/tokens/borders.d.ts +16 -0
- package/dist/types/styles/tokens/colors.d.ts +599 -0
- package/dist/types/styles/tokens/radius.d.ts +21 -0
- package/dist/types/styles/tokens/shadows.d.ts +18 -0
- package/dist/types/styles/tokens/sizes.d.ts +59 -0
- package/dist/types/styles/tokens/typography.d.ts +160 -0
- package/dist/types/types/colors.types.d.ts +20 -0
- package/dist/types/types/sizes.types.d.ts +4 -0
- package/package.json +16 -10
- package/src/assets/_banner_contato.png +0 -0
- package/src/assets/_barra.svg +0 -3
- package/src/assets/_effecti.svg +0 -9
- package/src/assets/_granto_corp_navbar.svg +0 -9
- package/src/assets/_logoUmbrella.svg +0 -34
- package/src/assets/avatar1.png +0 -0
- package/src/assets/avatar2.jpg +0 -0
- package/src/assets/avatar3.jpg +0 -0
- package/src/assets/avatar4.jpg +0 -0
- package/src/assets/info.png +0 -0
- package/src/assets/linhaTempo.png +0 -0
- package/src/assets/pen.png +0 -0
- package/src/assets/react.svg +0 -1
- package/src/assets.d.ts +0 -19
- package/src/components/atoms/Badge/Badge.styles.ts +0 -96
- package/src/components/atoms/Badge/Badge.tsx +0 -50
- package/src/components/atoms/Badge/Badge.types.ts +0 -16
- package/src/components/atoms/Breadcrumb/Breadcrumb.styles.ts +0 -43
- package/src/components/atoms/Breadcrumb/Breadcrumb.tsx +0 -46
- package/src/components/atoms/Breadcrumb/Breadcrumb.types.ts +0 -12
- package/src/components/atoms/Button/Button.styles.ts +0 -279
- package/src/components/atoms/Button/Button.tsx +0 -76
- package/src/components/atoms/Button/Button.types.ts +0 -27
- package/src/components/atoms/Checkbox/Checkbox.styles.ts +0 -88
- package/src/components/atoms/Checkbox/Checkbox.tsx +0 -42
- package/src/components/atoms/Checkbox/Checkbox.types.ts +0 -14
- package/src/components/atoms/Checkbox/CheckboxGroup.tsx +0 -37
- package/src/components/atoms/Checkbox/CheckboxSelectAll.tsx +0 -32
- package/src/components/atoms/CodeInput/CodeInput.styles.tsx +0 -38
- package/src/components/atoms/CodeInput/CodeInput.tsx +0 -13
- package/src/components/atoms/CodeInput/CodeInput.types.ts +0 -3
- package/src/components/atoms/DatePickerInput/DatePicker.styles.ts +0 -75
- package/src/components/atoms/DatePickerInput/DatePickerInput.tsx +0 -154
- package/src/components/atoms/DropDownMenu/DropdownMenu.styles.tsx +0 -106
- package/src/components/atoms/DropDownMenu/DropdownMenu.tsx +0 -48
- package/src/components/atoms/DropDownMenu/DropdownMenu.types.ts +0 -15
- package/src/components/atoms/DropDownMenu/index.tsx +0 -5
- package/src/components/atoms/EditIcon/EditIcon.styles.ts +0 -39
- package/src/components/atoms/EditIcon/EditIcon.tsx +0 -21
- package/src/components/atoms/EditIcon/EditIcon.types.ts +0 -7
- package/src/components/atoms/EditIcon/index.ts +0 -0
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.styles.ts +0 -150
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.tsx +0 -138
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.types.ts +0 -19
- package/src/components/atoms/ErrorMessage/ErrorMessage.styles.tsx +0 -28
- package/src/components/atoms/ErrorMessage/ErrorMessage.tsx +0 -12
- package/src/components/atoms/ErrorMessage/ErrorMessage.types.ts +0 -6
- package/src/components/atoms/Footer/Footer.styles.tsx +0 -22
- package/src/components/atoms/Footer/Footer.tsx +0 -9
- package/src/components/atoms/Footer/Footer.types.tsx +0 -5
- package/src/components/atoms/GenericContainer/GenericContainer.styles.tsx +0 -21
- package/src/components/atoms/GenericContainer/GenericContainer.tsx +0 -9
- package/src/components/atoms/GenericContainer/GenericContainer.types.ts +0 -5
- package/src/components/atoms/Icon/Icon.styles.ts +0 -11
- package/src/components/atoms/Icon/Icon.tsx +0 -22
- package/src/components/atoms/Input/Input.styles.ts +0 -106
- package/src/components/atoms/Input/Input.tsx +0 -80
- package/src/components/atoms/Input/Input.types.ts +0 -21
- package/src/components/atoms/Label/Label.styles.ts +0 -16
- package/src/components/atoms/Label/Label.tsx +0 -16
- package/src/components/atoms/Loading/Loading.styles.tsx +0 -25
- package/src/components/atoms/Loading/Loading.tsx +0 -8
- package/src/components/atoms/LogoContainer/LogoContainer.Types.tsx +0 -6
- package/src/components/atoms/LogoContainer/LogoContainer.styles.tsx +0 -11
- package/src/components/atoms/LogoContainer/LogoContainer.tsx +0 -14
- package/src/components/atoms/ModalAviso/ModalAviso.styles.tsx +0 -56
- package/src/components/atoms/ModalAviso/ModalAviso.tsx +0 -43
- package/src/components/atoms/ModalAviso/ModalAviso.types.ts +0 -5
- package/src/components/atoms/MultiSelect/MultiSelect.styles.tsx +0 -100
- package/src/components/atoms/MultiSelect/MultiSelect.tsx +0 -346
- package/src/components/atoms/MultiSelect/MultiSelect.types.ts +0 -38
- package/src/components/atoms/Pill/Pill.styles.ts +0 -46
- package/src/components/atoms/Pill/Pill.tsx +0 -35
- package/src/components/atoms/Pill/Pill.types.ts +0 -14
- package/src/components/atoms/RadioButton/RadioButton.styles.ts +0 -44
- package/src/components/atoms/RadioButton/RadioButton.tsx +0 -31
- package/src/components/atoms/RadioButton/RadioButton.types.ts +0 -9
- package/src/components/atoms/ResendLink/ResendLink.styles.tsx +0 -19
- package/src/components/atoms/ResendLink/ResendLink.tsx +0 -21
- package/src/components/atoms/ResendLink/ResendLink.types.ts +0 -8
- package/src/components/atoms/Select/Select.styles.ts +0 -153
- package/src/components/atoms/Select/Select.tsx +0 -52
- package/src/components/atoms/Select/Select.types.ts +0 -19
- package/src/components/atoms/Skeleton/Skeleton.styles.ts +0 -32
- package/src/components/atoms/Skeleton/Skeleton.tsx +0 -43
- package/src/components/atoms/Skeleton/Skeleton.types.ts +0 -13
- package/src/components/atoms/Subtitle/Subtitle.styles.tsx +0 -21
- package/src/components/atoms/Subtitle/Subtitle.tsx +0 -7
- package/src/components/atoms/Subtitle/Subtitle.types.ts +0 -5
- package/src/components/atoms/Switch/Switch.styles.ts +0 -59
- package/src/components/atoms/Switch/Switch.tsx +0 -25
- package/src/components/atoms/Switch/Switch.types.ts +0 -7
- package/src/components/atoms/TabBar/TabBar.styles.tsx +0 -64
- package/src/components/atoms/TabBar/TabBar.tsx +0 -24
- package/src/components/atoms/TabBar/TabBar.types.ts +0 -11
- package/src/components/atoms/Text/Text.styles.tsx +0 -35
- package/src/components/atoms/Text/Text.tsx +0 -32
- package/src/components/atoms/Text/Text.types.ts +0 -8
- package/src/components/atoms/Textarea/Textarea.styles.ts +0 -52
- package/src/components/atoms/Textarea/Textarea.tsx +0 -31
- package/src/components/atoms/TimelineEventIndicator/TimelineEventIndicator.tsx +0 -12
- package/src/components/atoms/TimelineEventIndicator/TimelineExpandButton.tsx +0 -55
- package/src/components/atoms/Title/Title.styles.tsx +0 -17
- package/src/components/atoms/Title/Title.tsx +0 -7
- package/src/components/atoms/Title/Title.types.ts +0 -5
- package/src/components/atoms/Tooltip/Tooltip.tsx +0 -59
- package/src/components/atoms/Tooltip/Tootip.styles.ts +0 -153
- package/src/components/atoms/Tooltip/tooltip.types.ts +0 -8
- package/src/components/molecules/AvatarGroup/AvatarGroup.styles.ts +0 -43
- package/src/components/molecules/AvatarGroup/AvatarGroup.tsx +0 -39
- package/src/components/molecules/AvatarGroup/AvatarGroup.types.ts +0 -16
- package/src/components/molecules/BannerAjuda/BannerAjuda.styles.tsx +0 -9
- package/src/components/molecules/BannerAjuda/BannerAjuda.tsx +0 -18
- package/src/components/molecules/BannerAjuda/BannerAjuda.types.ts +0 -5
- package/src/components/molecules/ButtonGroup/ButtonGroup.styles.ts +0 -10
- package/src/components/molecules/ButtonGroup/ButtonGroup.tsx +0 -28
- package/src/components/molecules/ButtonGroup/ButtonGroup.types.ts +0 -23
- package/src/components/molecules/Calendar/Calendar.styles.ts +0 -143
- package/src/components/molecules/Calendar/Calendar.tsx +0 -31
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.styles.tsx +0 -7
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.tsx +0 -32
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.types.ts +0 -13
- package/src/components/molecules/ExcludeModal/ExcludeModal.styles.tsx +0 -123
- package/src/components/molecules/ExcludeModal/ExcludeModal.tsx +0 -50
- package/src/components/molecules/ExcludeModal/ExcludeModal.types.ts +0 -12
- package/src/components/molecules/FieldSelector/FieldSelector.styles.ts +0 -63
- package/src/components/molecules/FieldSelector/FieldSelector.tsx +0 -167
- package/src/components/molecules/HighlightsCard/HighlightsCard.styles.tsx +0 -67
- package/src/components/molecules/HighlightsCard/HighlightsCard.tsx +0 -35
- package/src/components/molecules/HighlightsCard/HighlightsCard.types.ts +0 -10
- package/src/components/molecules/InsuranceCard/InsuranceCard.styles.tsx +0 -237
- package/src/components/molecules/InsuranceCard/InsuranceCard.tsx +0 -455
- package/src/components/molecules/InsuranceCard/InsuranceCard.types.ts +0 -41
- package/src/components/molecules/PieChartComponent/PieChartComponent.styles.tsx +0 -7
- package/src/components/molecules/PieChartComponent/PieChartComponent.tsx +0 -70
- package/src/components/molecules/PieChartComponent/PieChartComponent.types.ts +0 -11
- package/src/components/molecules/Popover/Popover.styles.ts +0 -66
- package/src/components/molecules/Popover/Popover.tsx +0 -23
- package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.styles.ts +0 -11
- package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.tsx +0 -43
- package/src/components/molecules/RadioGroupField/RadioGroupField.styles.tsx +0 -65
- package/src/components/molecules/RadioGroupField/RadioGroupField.tsx +0 -69
- package/src/components/molecules/RadioGroupField/RadioGroupField.types.ts +0 -17
- package/src/components/molecules/RefuseModal/RefuseModal.styles.tsx +0 -139
- package/src/components/molecules/RefuseModal/RefuseModal.tsx +0 -92
- package/src/components/molecules/RefuseModal/RefuseModal.types.ts +0 -15
- package/src/components/molecules/ResultsChart/ResultsChart.styles.tsx +0 -26
- package/src/components/molecules/ResultsChart/ResultsChart.tsx +0 -23
- package/src/components/molecules/TabToggle/TabToggle.styles.ts +0 -54
- package/src/components/molecules/TabToggle/TabToggle.tsx +0 -35
- package/src/components/molecules/TimeLine/TimeLine.mapper.ts +0 -112
- package/src/components/molecules/TimeLine/TimeLine.registry.ts +0 -41
- package/src/components/molecules/TimeLine/TimeLine.styles.ts +0 -221
- package/src/components/molecules/TimeLine/TimeLine.tsx +0 -80
- package/src/components/molecules/TimeLine/TimeLine.types.ts +0 -92
- package/src/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.tsx +0 -94
- package/src/components/molecules/TimeLineEvent/TimelineEvent.styles.ts +0 -62
- package/src/components/molecules/TimeLineEvent/TimelineEvent.tsx +0 -58
- package/src/components/organisms/AlertDialog/AlertDialog.styles.tsx +0 -61
- package/src/components/organisms/AlertDialog/AlertDialog.tsx +0 -70
- package/src/components/organisms/AlertDialog/AlertDialog.types.ts +0 -14
- package/src/components/organisms/Dialog/Dialog.styles.ts +0 -107
- package/src/components/organisms/Dialog/Dialog.tsx +0 -69
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.styles.tsx +0 -113
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.tsx +0 -75
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.types.ts +0 -9
- package/src/components/organisms/DonutEmissionsChart/index.tsx +0 -5
- package/src/components/organisms/ExportExcelModal/ExportExcelModal.styles.ts +0 -59
- package/src/components/organisms/ExportExcelModal/ExportExcelModal.tsx +0 -89
- package/src/components/organisms/Form/Form.styles.ts +0 -35
- package/src/components/organisms/Form/Form.tsx +0 -160
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.styles.tsx +0 -115
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.tsx +0 -89
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.types.ts +0 -16
- package/src/components/organisms/Navbar/Navbar.styles.tsx +0 -243
- package/src/components/organisms/Navbar/Navbar.tsx +0 -118
- package/src/components/organisms/Navbar/Navbar.types.ts +0 -34
- package/src/components/organisms/PermissionCard/PermissionCard.styles.ts +0 -37
- package/src/components/organisms/PermissionCard/PermissionCard.tsx +0 -58
- package/src/components/organisms/PermissionCard/PermissionCard.types.ts +0 -12
- package/src/components/organisms/TimelineModal/TimelineModal.styles.ts +0 -109
- package/src/components/organisms/TimelineModal/TimelineModal.tsx +0 -67
- package/src/components/templates/PermissionMatrix/PermissionMatrix.styles.ts +0 -19
- package/src/components/templates/PermissionMatrix/PermissionMatrix.tsx +0 -24
- package/src/components/templates/PermissionMatrix/PermissionMatrix.types.ts +0 -13
- package/src/components/templates/PermissionMatrix/index.ts +0 -0
- package/src/global.d.ts +0 -16
- package/src/index.ts +0 -200
- package/src/lib/utils.ts +0 -6
- package/src/styles/tokens/borders.ts +0 -17
- package/src/styles/tokens/colors.ts +0 -601
- package/src/styles/tokens/radius.ts +0 -22
- package/src/styles/tokens/shadows.ts +0 -22
- package/src/styles/tokens/sizes.ts +0 -60
- package/src/styles/tokens/typography.ts +0 -161
- package/src/types/colors.types.ts +0 -21
- package/src/types/sizes.types.ts +0 -4
- package/src/utils/renderHighlightsCard.tsx +0 -21
- /package/{src/components/atoms/Button/index.ts → dist/types/components/atoms/Button/index.d.ts} +0 -0
- /package/{src/components/atoms/CodeInput/index.tsx → dist/types/components/atoms/CodeInput/index.d.ts} +0 -0
- /package/{src/components/atoms/EditableDurationSelect/index.tsx → dist/types/components/atoms/EditableDurationSelect/index.d.ts} +0 -0
- /package/{src/components/atoms/ErrorMessage/index.tsx → dist/types/components/atoms/ErrorMessage/index.d.ts} +0 -0
- /package/{src/components/atoms/Footer/index.tsx → dist/types/components/atoms/Footer/index.d.ts} +0 -0
- /package/{src/components/atoms/GenericContainer/index.tsx → dist/types/components/atoms/GenericContainer/index.d.ts} +0 -0
- /package/{src/components/atoms/Icon/index.ts → dist/types/components/atoms/Icon/index.d.ts} +0 -0
- /package/{src/components/atoms/Input/index.ts → dist/types/components/atoms/Input/index.d.ts} +0 -0
- /package/{src/components/atoms/Loading/index.tsx → dist/types/components/atoms/Loading/index.d.ts} +0 -0
- /package/{src/components/atoms/LogoContainer/index.tsx → dist/types/components/atoms/LogoContainer/index.d.ts} +0 -0
- /package/{src/components/atoms/ModalAviso/index.tsx → dist/types/components/atoms/ModalAviso/index.d.ts} +0 -0
- /package/{src/components/atoms/MultiSelect/index.tsx → dist/types/components/atoms/MultiSelect/index.d.ts} +0 -0
- /package/{src/components/atoms/ResendLink/index.tsx → dist/types/components/atoms/ResendLink/index.d.ts} +0 -0
- /package/{src/components/atoms/Select/index.tsx → dist/types/components/atoms/Select/index.d.ts} +0 -0
- /package/{src/components/atoms/Subtitle/index.tsx → dist/types/components/atoms/Subtitle/index.d.ts} +0 -0
- /package/{src/components/atoms/TabBar/index.tsx → dist/types/components/atoms/TabBar/index.d.ts} +0 -0
- /package/{src/components/atoms/Text/index.ts → dist/types/components/atoms/Text/index.d.ts} +0 -0
- /package/{src/components/atoms/TimelineEventIndicator/index.tsx → dist/types/components/atoms/TimelineEventIndicator/index.d.ts} +0 -0
- /package/{src/components/atoms/Title/index.tsx → dist/types/components/atoms/Title/index.d.ts} +0 -0
- /package/{src/components/molecules/AvatarGroup/index.ts → dist/types/components/molecules/AvatarGroup/index.d.ts} +0 -0
- /package/{src/components/molecules/BannerAjuda/index.tsx → dist/types/components/molecules/BannerAjuda/index.d.ts} +0 -0
- /package/{src/components/molecules/CodeInputContainer/index.tsx → dist/types/components/molecules/CodeInputContainer/index.d.ts} +0 -0
- /package/{src/components/molecules/ExcludeModal/index.tsx → dist/types/components/molecules/ExcludeModal/index.d.ts} +0 -0
- /package/{src/components/molecules/HighlightsCard/index.tsx → dist/types/components/molecules/HighlightsCard/index.d.ts} +0 -0
- /package/{src/components/molecules/InsuranceCard/index.tsx → dist/types/components/molecules/InsuranceCard/index.d.ts} +0 -0
- /package/{src/components/molecules/PieChartComponent/index.tsx → dist/types/components/molecules/PieChartComponent/index.d.ts} +0 -0
- /package/{src/components/molecules/RadioGroupField/index.tsx → dist/types/components/molecules/RadioGroupField/index.d.ts} +0 -0
- /package/{src/components/molecules/RefuseModal/index.tsx → dist/types/components/molecules/RefuseModal/index.d.ts} +0 -0
- /package/{src/components/molecules/ResultsChart/index.tsx → dist/types/components/molecules/ResultsChart/index.d.ts} +0 -0
- /package/{src/components/molecules/TimeLineEvent/index.ts → dist/types/components/molecules/TimeLineEvent/index.d.ts} +0 -0
- /package/{src/components/organisms/ListagemUltimasEmissoes/index.tsx → dist/types/components/organisms/ListagemUltimasEmissoes/index.d.ts} +0 -0
- /package/{src/components/organisms/PermissionCard/index.ts → dist/types/components/organisms/PermissionCard/index.d.ts} +0 -0
- /package/{src/styles/tokens/index.tsx → dist/types/styles/tokens/index.d.ts} +0 -0
- /package/{src/types/radius.types.ts → dist/types/types/radius.types.d.ts} +0 -0
- /package/{src/types/shadows.types.ts → dist/types/types/shadows.types.d.ts} +0 -0
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
-
import type React from 'react';
|
|
5
|
-
import Select, {
|
|
6
|
-
type StylesConfig,
|
|
7
|
-
components,
|
|
8
|
-
type GroupBase,
|
|
9
|
-
type MultiValue as ReactSelectMultiValue,
|
|
10
|
-
type SingleValue,
|
|
11
|
-
type ActionMeta,
|
|
12
|
-
} from 'react-select';
|
|
13
|
-
import { WarningCircle } from '@phosphor-icons/react';
|
|
14
|
-
import {
|
|
15
|
-
Container,
|
|
16
|
-
Label,
|
|
17
|
-
Icon,
|
|
18
|
-
Error,
|
|
19
|
-
SelectWrapper,
|
|
20
|
-
} from './MultiSelect.styles';
|
|
21
|
-
import {
|
|
22
|
-
semanticColors,
|
|
23
|
-
semanticRadius,
|
|
24
|
-
typographyTokens,
|
|
25
|
-
} from '../../../styles/tokens';
|
|
26
|
-
import type {
|
|
27
|
-
IStyledBaseProps,
|
|
28
|
-
SelectProps,
|
|
29
|
-
SelectOption,
|
|
30
|
-
} from './MultiSelect.types';
|
|
31
|
-
|
|
32
|
-
const StyledBase: React.FC<IStyledBaseProps> = ({
|
|
33
|
-
children,
|
|
34
|
-
label,
|
|
35
|
-
error,
|
|
36
|
-
errorMessage,
|
|
37
|
-
labelSize,
|
|
38
|
-
labelWeight,
|
|
39
|
-
icon,
|
|
40
|
-
sizeDisplay,
|
|
41
|
-
height,
|
|
42
|
-
}) => {
|
|
43
|
-
return (
|
|
44
|
-
<Container $sizeDisplay={sizeDisplay} height={height}>
|
|
45
|
-
<div>
|
|
46
|
-
{label && (
|
|
47
|
-
<Label fontSize={labelSize} fontWeight={labelWeight}>
|
|
48
|
-
{label}
|
|
49
|
-
</Label>
|
|
50
|
-
)}
|
|
51
|
-
<SelectWrapper>
|
|
52
|
-
{children}
|
|
53
|
-
{icon && <Icon $error={error}>{icon}</Icon>}
|
|
54
|
-
</SelectWrapper>
|
|
55
|
-
{error && errorMessage && (
|
|
56
|
-
<Error>
|
|
57
|
-
<WarningCircle size={14} /> {errorMessage}
|
|
58
|
-
</Error>
|
|
59
|
-
)}
|
|
60
|
-
</div>
|
|
61
|
-
</Container>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const NoOptionsMessage = (props: any) => (
|
|
66
|
-
<components.NoOptionsMessage {...props}>
|
|
67
|
-
<span>Sem dados</span>
|
|
68
|
-
</components.NoOptionsMessage>
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
const CustomMultiValue = (props: any) => (
|
|
72
|
-
<components.MultiValue {...props}>
|
|
73
|
-
<Custom {...props} />
|
|
74
|
-
</components.MultiValue>
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
const Option = (props: any) => (
|
|
78
|
-
<components.Option {...props}>
|
|
79
|
-
<Custom {...props} />
|
|
80
|
-
</components.Option>
|
|
81
|
-
);
|
|
82
|
-
|
|
83
|
-
const Custom = (props: any) => (
|
|
84
|
-
<div style={{ display: 'flex', alignItems: 'center' }}>
|
|
85
|
-
{'picture' in props.data &&
|
|
86
|
-
(props.data.picture ? (
|
|
87
|
-
<img
|
|
88
|
-
src={props.data.picture || '/placeholder.svg'}
|
|
89
|
-
alt={props.data.name || props.data.label}
|
|
90
|
-
style={{
|
|
91
|
-
width: '16px',
|
|
92
|
-
height: '16px',
|
|
93
|
-
borderRadius: '50%',
|
|
94
|
-
marginRight: '8px',
|
|
95
|
-
objectFit: 'cover',
|
|
96
|
-
}}
|
|
97
|
-
/>
|
|
98
|
-
) : (
|
|
99
|
-
<div
|
|
100
|
-
style={{
|
|
101
|
-
width: '16px',
|
|
102
|
-
height: '16px',
|
|
103
|
-
borderRadius: '50%',
|
|
104
|
-
backgroundColor: semanticColors.base.text,
|
|
105
|
-
color: semanticColors.base.background,
|
|
106
|
-
fontSize: '10px',
|
|
107
|
-
display: 'flex',
|
|
108
|
-
marginRight: '8px',
|
|
109
|
-
alignItems: 'center',
|
|
110
|
-
justifyContent: 'center',
|
|
111
|
-
flexShrink: 0,
|
|
112
|
-
}}
|
|
113
|
-
>
|
|
114
|
-
{(props.data.label as string).charAt(0).toUpperCase()}
|
|
115
|
-
</div>
|
|
116
|
-
))}
|
|
117
|
-
<span
|
|
118
|
-
style={{
|
|
119
|
-
fontSize: typographyTokens.fontSizes.bodyS,
|
|
120
|
-
lineHeight: '1.4',
|
|
121
|
-
color: 'inherit',
|
|
122
|
-
}}
|
|
123
|
-
>
|
|
124
|
-
{props.data.label}
|
|
125
|
-
</span>
|
|
126
|
-
</div>
|
|
127
|
-
);
|
|
128
|
-
|
|
129
|
-
const MultiSelect: React.FC<SelectProps> = ({
|
|
130
|
-
options,
|
|
131
|
-
placeholder,
|
|
132
|
-
height = '40px',
|
|
133
|
-
enabledClear = true,
|
|
134
|
-
multiple,
|
|
135
|
-
value,
|
|
136
|
-
disabled,
|
|
137
|
-
menuPlacement = 'auto',
|
|
138
|
-
defaultValue,
|
|
139
|
-
setValue,
|
|
140
|
-
...props
|
|
141
|
-
}) => {
|
|
142
|
-
const styles: StylesConfig<SelectOption, boolean, GroupBase<SelectOption>> = {
|
|
143
|
-
indicatorSeparator: (base: any) => ({ ...base, display: 'none' }),
|
|
144
|
-
container: (base: any) => ({
|
|
145
|
-
...base,
|
|
146
|
-
width: '100%',
|
|
147
|
-
border: 'none',
|
|
148
|
-
position: 'relative',
|
|
149
|
-
}),
|
|
150
|
-
control: (base: any, state: any) => ({
|
|
151
|
-
...base,
|
|
152
|
-
minHeight: `${height}`,
|
|
153
|
-
backgroundColor: semanticColors.base.background,
|
|
154
|
-
padding: '2px 8px',
|
|
155
|
-
borderRadius: semanticRadius.global.radius.md,
|
|
156
|
-
borderColor: state.isFocused
|
|
157
|
-
? semanticColors.branding.border.enabled
|
|
158
|
-
: semanticColors.global.border.default,
|
|
159
|
-
':hover': {
|
|
160
|
-
borderColor: semanticColors.branding.border.hover,
|
|
161
|
-
},
|
|
162
|
-
boxShadow: state.isFocused
|
|
163
|
-
? `0 0 0 1px ${semanticColors.branding.border.enabled}`
|
|
164
|
-
: 'none',
|
|
165
|
-
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
166
|
-
opacity: disabled ? 0.6 : 1,
|
|
167
|
-
}),
|
|
168
|
-
dropdownIndicator: (baseStyles: any) => ({
|
|
169
|
-
...baseStyles,
|
|
170
|
-
color: semanticColors.branding.surface.enabled,
|
|
171
|
-
padding: '8px',
|
|
172
|
-
':hover': {
|
|
173
|
-
color: semanticColors.branding.surface.hover,
|
|
174
|
-
},
|
|
175
|
-
}),
|
|
176
|
-
clearIndicator: (baseStyles: any) => ({
|
|
177
|
-
...baseStyles,
|
|
178
|
-
color: semanticColors.neutral[400],
|
|
179
|
-
padding: '8px',
|
|
180
|
-
':hover': {
|
|
181
|
-
color: semanticColors.danger.text.enabled,
|
|
182
|
-
},
|
|
183
|
-
}),
|
|
184
|
-
indicatorsContainer: (base: any) => ({
|
|
185
|
-
...base,
|
|
186
|
-
alignItems: 'center',
|
|
187
|
-
}),
|
|
188
|
-
option: (baseStyle: any, state: any) => ({
|
|
189
|
-
...baseStyle,
|
|
190
|
-
color: state.isSelected
|
|
191
|
-
? semanticColors.branding.text.onSurfaceAccent.enabled
|
|
192
|
-
: semanticColors.base.text,
|
|
193
|
-
backgroundColor: state.isSelected
|
|
194
|
-
? semanticColors.branding.surface.enabled
|
|
195
|
-
: state.isFocused
|
|
196
|
-
? semanticColors.neutral[100]
|
|
197
|
-
: 'transparent',
|
|
198
|
-
cursor: 'pointer',
|
|
199
|
-
padding: '12px 16px',
|
|
200
|
-
':active': {
|
|
201
|
-
backgroundColor: state.isSelected
|
|
202
|
-
? semanticColors.branding.surface.pressed
|
|
203
|
-
: semanticColors.neutral[200],
|
|
204
|
-
},
|
|
205
|
-
}),
|
|
206
|
-
placeholder: (base: any) => ({
|
|
207
|
-
...base,
|
|
208
|
-
fontSize: typographyTokens.fontSizes.bodyS,
|
|
209
|
-
fontWeight: typographyTokens.fontWeights.regular,
|
|
210
|
-
color: semanticColors.neutral[400],
|
|
211
|
-
margin: 0,
|
|
212
|
-
}),
|
|
213
|
-
singleValue: (base: any) => ({
|
|
214
|
-
...base,
|
|
215
|
-
fontSize: typographyTokens.fontSizes.bodyS,
|
|
216
|
-
color: semanticColors.base.text,
|
|
217
|
-
margin: 0,
|
|
218
|
-
}),
|
|
219
|
-
multiValue: (base: any, state: any) => ({
|
|
220
|
-
...base,
|
|
221
|
-
borderRadius: semanticRadius.global.radius.full,
|
|
222
|
-
border: `1px solid ${semanticColors.global.border.default}`,
|
|
223
|
-
backgroundColor: state.data.isFixed
|
|
224
|
-
? semanticColors.global.surface.disabled
|
|
225
|
-
: semanticColors.base.background,
|
|
226
|
-
margin: '2px',
|
|
227
|
-
display: 'inline-flex',
|
|
228
|
-
alignItems: 'center',
|
|
229
|
-
padding: '0 4px',
|
|
230
|
-
}),
|
|
231
|
-
multiValueLabel: (base: any) => ({
|
|
232
|
-
...base,
|
|
233
|
-
display: 'flex',
|
|
234
|
-
alignItems: 'center',
|
|
235
|
-
padding: '0 6px',
|
|
236
|
-
fontWeight: typographyTokens.fontWeights.regular,
|
|
237
|
-
fontSize: typographyTokens.fontSizes.captionM,
|
|
238
|
-
color: semanticColors.base.text,
|
|
239
|
-
}),
|
|
240
|
-
multiValueRemove: (base: any, state: any) => {
|
|
241
|
-
return state.data.isFixed
|
|
242
|
-
? { ...base, display: 'none' }
|
|
243
|
-
: {
|
|
244
|
-
...base,
|
|
245
|
-
display: 'flex',
|
|
246
|
-
alignItems: 'center',
|
|
247
|
-
justifyContent: 'center',
|
|
248
|
-
marginLeft: '2px',
|
|
249
|
-
padding: '0',
|
|
250
|
-
color: semanticColors.neutral[400],
|
|
251
|
-
cursor: 'pointer',
|
|
252
|
-
':hover': {
|
|
253
|
-
backgroundColor: semanticColors.danger.surface.enabled,
|
|
254
|
-
color: semanticColors.danger.text.onSurface,
|
|
255
|
-
},
|
|
256
|
-
};
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
valueContainer: (base: any) => ({
|
|
260
|
-
...base,
|
|
261
|
-
padding: '2px 8px',
|
|
262
|
-
gap: '4px',
|
|
263
|
-
flexWrap: 'wrap',
|
|
264
|
-
}),
|
|
265
|
-
input: (base: any) => ({
|
|
266
|
-
...base,
|
|
267
|
-
margin: 0,
|
|
268
|
-
padding: 0,
|
|
269
|
-
fontSize: typographyTokens.fontSizes.bodyS,
|
|
270
|
-
}),
|
|
271
|
-
menuList: (base: any) => ({
|
|
272
|
-
...base,
|
|
273
|
-
padding: 0,
|
|
274
|
-
'::-webkit-scrollbar': {
|
|
275
|
-
width: '6px',
|
|
276
|
-
},
|
|
277
|
-
'::-webkit-scrollbar-track': {
|
|
278
|
-
background: semanticColors.neutral[200],
|
|
279
|
-
},
|
|
280
|
-
'::-webkit-scrollbar-thumb': {
|
|
281
|
-
background: semanticColors.branding.surface.enabled,
|
|
282
|
-
borderRadius: '20px',
|
|
283
|
-
},
|
|
284
|
-
'::-webkit-scrollbar-thumb:hover': {
|
|
285
|
-
background: semanticColors.branding.surface.hover,
|
|
286
|
-
},
|
|
287
|
-
}),
|
|
288
|
-
menu: (base: any) => ({
|
|
289
|
-
...base,
|
|
290
|
-
borderRadius: semanticRadius.global.radius.md,
|
|
291
|
-
boxShadow:
|
|
292
|
-
'0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
|
293
|
-
border: `1px solid ${semanticColors.global.border.default}`,
|
|
294
|
-
overflow: 'hidden',
|
|
295
|
-
}),
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
const handleChange = (
|
|
299
|
-
newValue: ReactSelectMultiValue<SelectOption> | SingleValue<SelectOption>,
|
|
300
|
-
actionMeta: ActionMeta<SelectOption>
|
|
301
|
-
) => {
|
|
302
|
-
if (setValue) {
|
|
303
|
-
setValue(newValue, actionMeta);
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
return (
|
|
308
|
-
<StyledBase height={'fit-content'} {...props}>
|
|
309
|
-
<Select<SelectOption, boolean, GroupBase<SelectOption>>
|
|
310
|
-
theme={(selectTheme) => ({
|
|
311
|
-
...selectTheme,
|
|
312
|
-
colors: {
|
|
313
|
-
...selectTheme.colors,
|
|
314
|
-
primary: semanticColors.branding.surface.enabled,
|
|
315
|
-
primary75: semanticColors.branding.surface.hover,
|
|
316
|
-
primary50: semanticColors.branding.surface.disabled,
|
|
317
|
-
primary25: semanticColors.neutral[100],
|
|
318
|
-
},
|
|
319
|
-
spacing: {
|
|
320
|
-
baseUnit: 4,
|
|
321
|
-
menuGutter: 8,
|
|
322
|
-
controlHeight: parseInt(height.replace('px', '')) || 40,
|
|
323
|
-
},
|
|
324
|
-
})}
|
|
325
|
-
isClearable={enabledClear}
|
|
326
|
-
isMulti={multiple}
|
|
327
|
-
defaultValue={defaultValue}
|
|
328
|
-
options={options}
|
|
329
|
-
placeholder={placeholder}
|
|
330
|
-
isDisabled={disabled}
|
|
331
|
-
value={value}
|
|
332
|
-
isSearchable
|
|
333
|
-
onChange={handleChange}
|
|
334
|
-
styles={styles}
|
|
335
|
-
menuPlacement={menuPlacement}
|
|
336
|
-
components={{
|
|
337
|
-
NoOptionsMessage,
|
|
338
|
-
MultiValue: CustomMultiValue,
|
|
339
|
-
Option,
|
|
340
|
-
}}
|
|
341
|
-
/>
|
|
342
|
-
</StyledBase>
|
|
343
|
-
);
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
export default MultiSelect;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { MultiValue, SingleValue, ActionMeta } from 'react-select';
|
|
3
|
-
|
|
4
|
-
export interface SelectOption {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string | number;
|
|
7
|
-
picture?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
isFixed?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface IStyledBaseProps {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
label?: string;
|
|
15
|
-
error?: boolean;
|
|
16
|
-
errorMessage?: string;
|
|
17
|
-
labelSize?: string;
|
|
18
|
-
labelWeight?: string;
|
|
19
|
-
icon?: ReactNode;
|
|
20
|
-
sizeDisplay?: '100' | '75' | '66' | '50' | '33' | '25';
|
|
21
|
-
height?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface SelectProps extends Omit<IStyledBaseProps, 'children'> {
|
|
25
|
-
options: SelectOption[];
|
|
26
|
-
placeholder?: string;
|
|
27
|
-
height?: string;
|
|
28
|
-
enabledClear?: boolean;
|
|
29
|
-
multiple?: boolean;
|
|
30
|
-
value?: MultiValue<SelectOption> | SingleValue<SelectOption>;
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
menuPlacement?: 'auto' | 'bottom' | 'top';
|
|
33
|
-
defaultValue?: MultiValue<SelectOption> | SingleValue<SelectOption>;
|
|
34
|
-
setValue?: (
|
|
35
|
-
newValue: MultiValue<SelectOption> | SingleValue<SelectOption>,
|
|
36
|
-
actionMeta: ActionMeta<SelectOption>
|
|
37
|
-
) => void;
|
|
38
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
semanticRadius,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
} from '../../../styles/tokens';
|
|
8
|
-
|
|
9
|
-
const pillVariants = {
|
|
10
|
-
tradicional: css`
|
|
11
|
-
background: ${semanticColors.info.surface.pills.tradicional};
|
|
12
|
-
color: ${semanticColors.info.text.pills.tradicional};
|
|
13
|
-
`,
|
|
14
|
-
supply: css`
|
|
15
|
-
background: ${semanticColors.warning.surface.pills.supply};
|
|
16
|
-
color: ${semanticColors.warning.text.pills.supply};
|
|
17
|
-
`,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const pillSizes = {
|
|
21
|
-
sm: css`
|
|
22
|
-
padding: ${semanticSizes.global.padding.xs}
|
|
23
|
-
${semanticSizes.global.padding.sm};
|
|
24
|
-
font-size: ${typographyTokens.fontSizes.captionM};
|
|
25
|
-
`,
|
|
26
|
-
md: css`
|
|
27
|
-
padding: ${semanticSizes.global.padding.sm}
|
|
28
|
-
${semanticSizes.global.padding.md};
|
|
29
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
30
|
-
`,
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const StyledPill = styled.span<{
|
|
34
|
-
$size?: keyof typeof pillSizes;
|
|
35
|
-
$variant?: keyof typeof pillVariants;
|
|
36
|
-
$radius: keyof typeof semanticRadius.global.radius;
|
|
37
|
-
}>`
|
|
38
|
-
display: inline-flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
gap: ${semanticSizes.global.gap.xs};
|
|
41
|
-
font-weight: 500;
|
|
42
|
-
border-radius: ${semanticRadius.global.radius.full};
|
|
43
|
-
|
|
44
|
-
${({ $size = 'md' }) => pillSizes[$size]}
|
|
45
|
-
${({ $variant = 'tradicional' }) => pillVariants[$variant]}
|
|
46
|
-
`;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Pill.tsx
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { StyledPill } from './Pill.styles';
|
|
5
|
-
import { PillProps } from './Pill.types';
|
|
6
|
-
import * as Icons from '@phosphor-icons/react';
|
|
7
|
-
|
|
8
|
-
const Pill: React.FC<PillProps> = ({
|
|
9
|
-
children,
|
|
10
|
-
size,
|
|
11
|
-
variant = 'supply',
|
|
12
|
-
icon,
|
|
13
|
-
onClose,
|
|
14
|
-
}) => {
|
|
15
|
-
// CORREÇÃO: Removemos o 'as keyof typeof Icons' pois o tipo já está correto.
|
|
16
|
-
const IconComponent = icon && (Icons[icon] as React.ElementType);
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<StyledPill $size={size} $variant={variant} $radius="full">
|
|
20
|
-
{IconComponent && (
|
|
21
|
-
<span className="icon">
|
|
22
|
-
<IconComponent size={16} />
|
|
23
|
-
</span>
|
|
24
|
-
)}
|
|
25
|
-
{children}
|
|
26
|
-
{onClose && (
|
|
27
|
-
<span className="close-icon" onClick={onClose}>
|
|
28
|
-
<Icons.X size={16} />
|
|
29
|
-
</span>
|
|
30
|
-
)}
|
|
31
|
-
</StyledPill>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default Pill;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as Icons from '@phosphor-icons/react';
|
|
2
|
-
|
|
3
|
-
export type IconName = keyof typeof Icons;
|
|
4
|
-
|
|
5
|
-
export interface PillProps {
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
|
|
8
|
-
icon?: IconName;
|
|
9
|
-
|
|
10
|
-
hasIcon?: boolean;
|
|
11
|
-
size?: 'sm' | 'md';
|
|
12
|
-
variant?: 'tradicional' | 'supply';
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
primitiveSizes,
|
|
4
|
-
semanticBorders,
|
|
5
|
-
semanticColors,
|
|
6
|
-
semanticSizes,
|
|
7
|
-
typographyTokens,
|
|
8
|
-
} from '../../../styles/tokens';
|
|
9
|
-
|
|
10
|
-
export const RadioContainer = styled.label`
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
export const StyledRadio = styled.input`
|
|
18
|
-
appearance: none;
|
|
19
|
-
width: ${semanticSizes.global.padding.xl};
|
|
20
|
-
height: ${semanticSizes.global.padding.xl};
|
|
21
|
-
border-radius: 50%;
|
|
22
|
-
border: ${semanticBorders.global.md} solid
|
|
23
|
-
${semanticColors.global.border.medium};
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
transition: all 0.2s ease-in-out;
|
|
28
|
-
|
|
29
|
-
&:checked {
|
|
30
|
-
background-color: ${semanticColors.branding.surface.enabled};
|
|
31
|
-
border-color: ${semanticColors.branding.surface.enabled};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:disabled {
|
|
35
|
-
border-color: ${semanticColors.global.border.disabled};
|
|
36
|
-
cursor: not-allowed;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
|
|
40
|
-
export const Label = styled.span`
|
|
41
|
-
margin-top: ${primitiveSizes.size.x1};
|
|
42
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
43
|
-
color: ${semanticColors.base.text};
|
|
44
|
-
`;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RadioButtonProps } from './RadioButton.types';
|
|
3
|
-
import { RadioContainer, StyledRadio, Label } from './RadioButton.styles';
|
|
4
|
-
|
|
5
|
-
const RadioButton: React.FC<RadioButtonProps> = ({
|
|
6
|
-
label,
|
|
7
|
-
name,
|
|
8
|
-
value,
|
|
9
|
-
checked,
|
|
10
|
-
onChange,
|
|
11
|
-
disabled = false,
|
|
12
|
-
testId,
|
|
13
|
-
}) => {
|
|
14
|
-
return (
|
|
15
|
-
<RadioContainer>
|
|
16
|
-
<StyledRadio
|
|
17
|
-
data-testid={testId}
|
|
18
|
-
id={testId}
|
|
19
|
-
type="radio"
|
|
20
|
-
name={name}
|
|
21
|
-
value={value}
|
|
22
|
-
checked={checked}
|
|
23
|
-
onChange={onChange}
|
|
24
|
-
disabled={disabled}
|
|
25
|
-
/>
|
|
26
|
-
<Label>{label}</Label>
|
|
27
|
-
</RadioContainer>
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default RadioButton;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
primitiveSizes,
|
|
4
|
-
semanticColors,
|
|
5
|
-
typographyTokens,
|
|
6
|
-
} from '../../../styles/tokens';
|
|
7
|
-
|
|
8
|
-
export const Container = styled.div<{ disabled?: boolean }>`
|
|
9
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
10
|
-
color: ${({ disabled }) =>
|
|
11
|
-
disabled
|
|
12
|
-
? semanticColors.branding.text.accent.disabled
|
|
13
|
-
: semanticColors.branding.text.accent.enabled};
|
|
14
|
-
text-decoration: none;
|
|
15
|
-
margin-top: ${primitiveSizes.size.x12};
|
|
16
|
-
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
|
17
|
-
opacity: ${({ disabled }) => (disabled ? 0.5 : 1)};
|
|
18
|
-
pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
|
|
19
|
-
`;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Container } from './ResendLink.styles';
|
|
3
|
-
import { ResendLinkProps } from './ResendLink.types';
|
|
4
|
-
|
|
5
|
-
export const ResendLink: React.FC<ResendLinkProps> = ({
|
|
6
|
-
children,
|
|
7
|
-
onClick,
|
|
8
|
-
disabled,
|
|
9
|
-
testId,
|
|
10
|
-
}) => {
|
|
11
|
-
return (
|
|
12
|
-
<Container
|
|
13
|
-
data-testid={testId}
|
|
14
|
-
id={testId}
|
|
15
|
-
onClick={!disabled ? onClick : undefined}
|
|
16
|
-
disabled={disabled}
|
|
17
|
-
>
|
|
18
|
-
{children}
|
|
19
|
-
</Container>
|
|
20
|
-
);
|
|
21
|
-
};
|