@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,153 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import Select from 'react-select';
|
|
3
|
-
import {
|
|
4
|
-
semanticSizes,
|
|
5
|
-
semanticShadows,
|
|
6
|
-
primitiveSizes,
|
|
7
|
-
typographyTokens,
|
|
8
|
-
semanticBorders,
|
|
9
|
-
semanticColors,
|
|
10
|
-
semanticRadius,
|
|
11
|
-
} from '../../../styles/tokens/index';
|
|
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
|
-
display: flex;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
align-items: center;
|
|
24
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
25
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
26
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
export const SupportingText = styled.span<{ $error?: boolean }>`
|
|
30
|
-
font-size: ${typographyTokens.fontSizes.captionM};
|
|
31
|
-
color: ${({ $error }) =>
|
|
32
|
-
$error
|
|
33
|
-
? semanticColors.global.text.feedback.strong.error
|
|
34
|
-
: semanticColors.global.text.subtitle.enabled};
|
|
35
|
-
`;
|
|
36
|
-
|
|
37
|
-
export const CustomSelect = styled(Select).attrs({
|
|
38
|
-
classNamePrefix: 'react-select',
|
|
39
|
-
})<{
|
|
40
|
-
$size?: keyof typeof semanticSizes.global.padding;
|
|
41
|
-
$error?: boolean;
|
|
42
|
-
}>`
|
|
43
|
-
.react-select__control {
|
|
44
|
-
background: ${semanticColors.base.background};
|
|
45
|
-
border: ${semanticBorders.global.sm} solid
|
|
46
|
-
${({ $error }) =>
|
|
47
|
-
$error
|
|
48
|
-
? semanticColors.global.border.danger.enabled
|
|
49
|
-
: semanticColors.global.border.medium};
|
|
50
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
51
|
-
transition:
|
|
52
|
-
border-color 0.2s,
|
|
53
|
-
box-shadow 0.2s;
|
|
54
|
-
min-height: ${primitiveSizes.size.x12};
|
|
55
|
-
|
|
56
|
-
&:hover {
|
|
57
|
-
border-color: ${({ $error }) =>
|
|
58
|
-
$error
|
|
59
|
-
? semanticColors.danger.border.hover
|
|
60
|
-
: semanticColors.branding.border.hover};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&:focus-within {
|
|
64
|
-
border-color: ${({ $error }) =>
|
|
65
|
-
$error
|
|
66
|
-
? semanticColors.danger.border.enabled
|
|
67
|
-
: semanticColors.branding.border.enabled};
|
|
68
|
-
box-shadow: ${semanticShadows.shadow.md};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.react-select__control--is-disabled {
|
|
72
|
-
background: ${semanticColors.global.surface.disabled};
|
|
73
|
-
border-color: ${semanticColors.global.border.strong};
|
|
74
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
75
|
-
cursor: not-allowed;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.react-select__value-container {
|
|
80
|
-
padding: ${({ $size = 'md' }) => semanticSizes.global.padding[$size]};
|
|
81
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
82
|
-
color: ${semanticColors.base.text};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.react-select__placeholder {
|
|
86
|
-
color: ${semanticColors.global.text.onSurface.subtitle};
|
|
87
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.react-select__menu {
|
|
91
|
-
background: ${semanticColors.base.background};
|
|
92
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
93
|
-
box-shadow: ${semanticShadows.shadow.lg};
|
|
94
|
-
border: ${semanticBorders.global.sm} solid
|
|
95
|
-
${semanticColors.global.border.default};
|
|
96
|
-
z-index: 1000;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.react-select__option {
|
|
100
|
-
padding: ${({ $size = 'md' }) => semanticSizes.global.padding[$size]};
|
|
101
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
102
|
-
cursor: pointer;
|
|
103
|
-
transition:
|
|
104
|
-
background 0.2s,
|
|
105
|
-
color 0.2s;
|
|
106
|
-
color: ${semanticColors.base.text};
|
|
107
|
-
|
|
108
|
-
&:hover {
|
|
109
|
-
background: ${semanticColors.branding.surface.hover};
|
|
110
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&:active {
|
|
114
|
-
background: ${semanticColors.branding.surface.pressed};
|
|
115
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.react-select__option--is-selected {
|
|
120
|
-
background: ${semanticColors.branding.surface.enabled};
|
|
121
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
122
|
-
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
123
|
-
|
|
124
|
-
&:hover {
|
|
125
|
-
background: ${semanticColors.branding.surface.hover};
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.react-select__option--is-focused {
|
|
130
|
-
background: ${semanticColors.neutral[100]};
|
|
131
|
-
color: ${semanticColors.base.text};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.react-select__indicator-separator {
|
|
135
|
-
background-color: ${semanticColors.global.border.medium};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.react-select__dropdown-indicator {
|
|
139
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
140
|
-
|
|
141
|
-
&:hover {
|
|
142
|
-
color: ${semanticColors.branding.text.accent.enabled};
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.react-select__clear-indicator {
|
|
147
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
148
|
-
|
|
149
|
-
&:hover {
|
|
150
|
-
color: ${semanticColors.danger.text.enabled};
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
`;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import type React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
Container,
|
|
6
|
-
Label,
|
|
7
|
-
SupportingText,
|
|
8
|
-
CustomSelect,
|
|
9
|
-
} from './Select.styles';
|
|
10
|
-
import type { SelectProps } from './Select.types';
|
|
11
|
-
|
|
12
|
-
interface Option {
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const Select: React.FC<SelectProps> = ({
|
|
18
|
-
label,
|
|
19
|
-
supportingText,
|
|
20
|
-
options,
|
|
21
|
-
placeholder,
|
|
22
|
-
onChange,
|
|
23
|
-
value,
|
|
24
|
-
testId,
|
|
25
|
-
size = 'md',
|
|
26
|
-
disabled = false,
|
|
27
|
-
error = false,
|
|
28
|
-
}) => {
|
|
29
|
-
return (
|
|
30
|
-
<Container data-testid={testId} id={testId}>
|
|
31
|
-
{label && <Label>{label}</Label>}
|
|
32
|
-
<CustomSelect
|
|
33
|
-
$size={size}
|
|
34
|
-
$error={error}
|
|
35
|
-
classNamePrefix="react-select"
|
|
36
|
-
options={options}
|
|
37
|
-
placeholder={placeholder || 'Selecione'}
|
|
38
|
-
onChange={(newValue, actionMeta) =>
|
|
39
|
-
onChange && onChange(newValue as Option | null, actionMeta)
|
|
40
|
-
}
|
|
41
|
-
value={value}
|
|
42
|
-
isSearchable
|
|
43
|
-
isDisabled={disabled}
|
|
44
|
-
/>
|
|
45
|
-
{supportingText && (
|
|
46
|
-
<SupportingText $error={error}>{supportingText}</SupportingText>
|
|
47
|
-
)}
|
|
48
|
-
</Container>
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export default Select;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface Option {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface SelectProps {
|
|
7
|
-
label: string;
|
|
8
|
-
supportingText?: string;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
borderColor?: string;
|
|
11
|
-
borderRadius?: string;
|
|
12
|
-
size?: 'sm' | 'md' | 'lg';
|
|
13
|
-
options: { label: string; value: string }[];
|
|
14
|
-
onChange?: (newValue: Option | null, actionMeta: { action: string }) => void;
|
|
15
|
-
value?: Option | null;
|
|
16
|
-
testId?: string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
error?: boolean;
|
|
19
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// src/components/atoms/Skeleton/styles.ts
|
|
2
|
-
import styled, { keyframes, css } from 'styled-components';
|
|
3
|
-
import { primitiveColors } from '../../../styles/tokens';
|
|
4
|
-
|
|
5
|
-
const shimmer = keyframes`
|
|
6
|
-
0% { background-position: -200% 0; }
|
|
7
|
-
100% { background-position: 200% 0; }
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
export const SkeletonWrap = styled.div`
|
|
11
|
-
display: grid;
|
|
12
|
-
gap: 8px;
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
|
-
export const SkeletonBlock = styled.div<{
|
|
16
|
-
$variant: 'text' | 'rect' | 'circle';
|
|
17
|
-
$animated: boolean;
|
|
18
|
-
}>`
|
|
19
|
-
background: linear-gradient(
|
|
20
|
-
90deg,
|
|
21
|
-
${primitiveColors.gray[100]} 0%,
|
|
22
|
-
${primitiveColors.gray[200]} 50%,
|
|
23
|
-
${primitiveColors.gray[100]} 100%
|
|
24
|
-
);
|
|
25
|
-
background-size: 200% 100%;
|
|
26
|
-
|
|
27
|
-
${({ $animated }) =>
|
|
28
|
-
$animated &&
|
|
29
|
-
css`
|
|
30
|
-
animation: ${shimmer} 1.4s ease-in-out infinite;
|
|
31
|
-
`}
|
|
32
|
-
`;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SkeletonBlock, SkeletonWrap } from './Skeleton.styles';
|
|
3
|
-
import { SkeletonProps } from './Skeleton.types';
|
|
4
|
-
|
|
5
|
-
export const Skeleton: React.FC<SkeletonProps> = ({
|
|
6
|
-
width,
|
|
7
|
-
height,
|
|
8
|
-
radius,
|
|
9
|
-
count = 1,
|
|
10
|
-
variant = 'rect',
|
|
11
|
-
animated = true,
|
|
12
|
-
className,
|
|
13
|
-
style,
|
|
14
|
-
ariaLabel = 'Carregando conteúdo',
|
|
15
|
-
}) => {
|
|
16
|
-
const items = Array.from({ length: count });
|
|
17
|
-
return (
|
|
18
|
-
<SkeletonWrap
|
|
19
|
-
role="status"
|
|
20
|
-
aria-live="polite"
|
|
21
|
-
aria-busy="true"
|
|
22
|
-
aria-label={ariaLabel}
|
|
23
|
-
className={className}
|
|
24
|
-
>
|
|
25
|
-
{items.map((_, i) => (
|
|
26
|
-
<SkeletonBlock
|
|
27
|
-
key={i}
|
|
28
|
-
$variant={variant}
|
|
29
|
-
$animated={animated}
|
|
30
|
-
style={{
|
|
31
|
-
width: width ?? (variant === 'text' ? '100%' : undefined),
|
|
32
|
-
height:
|
|
33
|
-
height ??
|
|
34
|
-
(variant === 'text' ? '1em' : variant === 'circle' ? 40 : 16),
|
|
35
|
-
borderRadius:
|
|
36
|
-
variant === 'circle' ? '9999px' : radius != null ? radius : 8,
|
|
37
|
-
...style,
|
|
38
|
-
}}
|
|
39
|
-
/>
|
|
40
|
-
))}
|
|
41
|
-
</SkeletonWrap>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type SkeletonVariant = 'text' | 'rect' | 'circle';
|
|
2
|
-
|
|
3
|
-
export type SkeletonProps = {
|
|
4
|
-
width?: string | number;
|
|
5
|
-
height?: string | number;
|
|
6
|
-
radius?: number;
|
|
7
|
-
count?: number;
|
|
8
|
-
variant?: SkeletonVariant;
|
|
9
|
-
animated?: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
ariaLabel?: string;
|
|
13
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticSizes,
|
|
4
|
-
typographyTokens,
|
|
5
|
-
semanticColors,
|
|
6
|
-
} from '../../../styles/tokens';
|
|
7
|
-
|
|
8
|
-
export const Container = styled.div`
|
|
9
|
-
width: 100%;
|
|
10
|
-
color: ${semanticColors.neutral[700]};
|
|
11
|
-
text-align: center;
|
|
12
|
-
font-family: 'Mulish', sans-serif;
|
|
13
|
-
font-size: ${typographyTokens.fontSizes.bodyM};
|
|
14
|
-
font-weight: 400;
|
|
15
|
-
line-height: 125%;
|
|
16
|
-
|
|
17
|
-
margin-bottom: ${semanticSizes.global.padding.lg};
|
|
18
|
-
@media (max-width: 768px) {
|
|
19
|
-
font-size: ${typographyTokens.fontSizes.bodyS};
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
semanticRadius,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
} from '../../../styles/tokens';
|
|
8
|
-
|
|
9
|
-
export const SwitchWrapper = styled.label`
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
width: 100%;
|
|
13
|
-
align-items: center;
|
|
14
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const SwitchInput = styled.input.attrs({ type: 'checkbox' })`
|
|
19
|
-
appearance: none;
|
|
20
|
-
width: ${semanticSizes.global.spacings.lg};
|
|
21
|
-
height: ${semanticSizes.global.padding.xl};
|
|
22
|
-
background: ${semanticColors.neutral[300]};
|
|
23
|
-
border-radius: ${semanticRadius.global.radius.full};
|
|
24
|
-
position: relative;
|
|
25
|
-
transition: background 0.3s ease-out;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
|
|
28
|
-
&:checked {
|
|
29
|
-
background: ${semanticColors.branding.surface.enabled};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&::after {
|
|
33
|
-
content: '';
|
|
34
|
-
width: ${semanticSizes.global.padding.md}; // 12px circle
|
|
35
|
-
height: ${semanticSizes.global.padding.md}; // 12px circle
|
|
36
|
-
background: ${semanticColors.base.background};
|
|
37
|
-
border-radius: 50%;
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: 50%;
|
|
40
|
-
left: 4px;
|
|
41
|
-
transform: translateY(-50%);
|
|
42
|
-
transition: all 0.3s ease-out;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:checked::after {
|
|
46
|
-
left: calc(100% - ${semanticSizes.global.padding.md} - 4px);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:disabled {
|
|
50
|
-
opacity: 0.5;
|
|
51
|
-
cursor: not-allowed;
|
|
52
|
-
}
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
export const SwitchLabel = styled.span`
|
|
56
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
57
|
-
color: ${semanticColors.base.text};
|
|
58
|
-
user-select: none;
|
|
59
|
-
`;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SwitchWrapper, SwitchInput, SwitchLabel } from './Switch.styles';
|
|
3
|
-
|
|
4
|
-
interface SwitchProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
-
label?: string;
|
|
6
|
-
testId?: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const Switch: React.FC<SwitchProps> = ({
|
|
11
|
-
label,
|
|
12
|
-
text,
|
|
13
|
-
testId,
|
|
14
|
-
...props
|
|
15
|
-
}) => {
|
|
16
|
-
return (
|
|
17
|
-
<SwitchWrapper>
|
|
18
|
-
{label && <SwitchLabel>{label}</SwitchLabel>}
|
|
19
|
-
<SwitchInput data-testid={testId} id={testId} {...props} />
|
|
20
|
-
{text && <SwitchLabel>{text}</SwitchLabel>}
|
|
21
|
-
</SwitchWrapper>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export default Switch;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
semanticBorders,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
} from '../../../styles/tokens';
|
|
8
|
-
|
|
9
|
-
export const Wrapper = styled.nav`
|
|
10
|
-
display: flex;
|
|
11
|
-
width: 100%;
|
|
12
|
-
align-items: center;
|
|
13
|
-
border-bottom: ${semanticBorders.global.lg} solid
|
|
14
|
-
${semanticColors.global.border.medium};
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
export const Tab = styled.button<{ $active: boolean }>`
|
|
18
|
-
display: flex;
|
|
19
|
-
height: ${semanticSizes.global.spacings.lg};
|
|
20
|
-
padding: ${semanticSizes.global.padding.lg}
|
|
21
|
-
${semanticSizes.global.padding['3xl']};
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
25
|
-
background: none;
|
|
26
|
-
border: none;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
29
|
-
font-size: ${typographyTokens.fontSizes.bodyM};
|
|
30
|
-
font-weight: ${typographyTokens.fontWeights.regular};
|
|
31
|
-
line-height: ${typographyTokens.lineHeights.bodyM};
|
|
32
|
-
color: ${semanticColors.global.text.onSurface.subtitle};
|
|
33
|
-
margin-bottom: calc(-1 * ${semanticBorders.global.lg});
|
|
34
|
-
border-bottom: ${semanticBorders.global.lg} solid transparent;
|
|
35
|
-
|
|
36
|
-
& + & {
|
|
37
|
-
margin-left: ${semanticSizes.global.padding.lg};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
${(p) =>
|
|
41
|
-
p.$active &&
|
|
42
|
-
css`
|
|
43
|
-
border-bottom-color: ${semanticColors.branding.border.enabled};
|
|
44
|
-
color: ${semanticColors.branding.text.accent.enabled};
|
|
45
|
-
`}
|
|
46
|
-
|
|
47
|
-
&:hover:not(:disabled) {
|
|
48
|
-
color: ${semanticColors.branding.text.accent.hover};
|
|
49
|
-
${(p) =>
|
|
50
|
-
p.$active &&
|
|
51
|
-
css`
|
|
52
|
-
border-bottom-color: ${semanticColors.branding.border.hover};
|
|
53
|
-
`}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:focus {
|
|
57
|
-
outline: none;
|
|
58
|
-
}
|
|
59
|
-
`;
|
|
60
|
-
|
|
61
|
-
export const Count = styled.span`
|
|
62
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
63
|
-
color: inherit;
|
|
64
|
-
`;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Count, Tab, Wrapper } from './TabBar.styles';
|
|
3
|
-
import { TabBarProps } from './TabBar.types';
|
|
4
|
-
|
|
5
|
-
export const TabBar: React.FC<TabBarProps> = ({
|
|
6
|
-
items,
|
|
7
|
-
activeIndex,
|
|
8
|
-
onChange,
|
|
9
|
-
}) => (
|
|
10
|
-
<Wrapper>
|
|
11
|
-
{items.map((item, idx) => (
|
|
12
|
-
<Tab
|
|
13
|
-
key={idx}
|
|
14
|
-
$active={Boolean(idx === activeIndex)}
|
|
15
|
-
onClick={() => onChange(idx)}
|
|
16
|
-
data-testid={item.testId}
|
|
17
|
-
id={item.testId}
|
|
18
|
-
>
|
|
19
|
-
<span>{item.title}</span>
|
|
20
|
-
{typeof item.quantity === 'number' && <Count>({item.quantity})</Count>}
|
|
21
|
-
</Tab>
|
|
22
|
-
))}
|
|
23
|
-
</Wrapper>
|
|
24
|
-
);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { semanticColors, typographyTokens } from '../../../styles/tokens';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
export const StyledText = styled.p<{
|
|
5
|
-
$size: string;
|
|
6
|
-
$weight: string;
|
|
7
|
-
$color: string;
|
|
8
|
-
$variant?: string;
|
|
9
|
-
}>`
|
|
10
|
-
font-size: ${({ $size }) =>
|
|
11
|
-
$size === 'lg'
|
|
12
|
-
? typographyTokens.fontSizes.bodyL
|
|
13
|
-
: $size === 'md'
|
|
14
|
-
? typographyTokens.fontSizes.bodyM
|
|
15
|
-
: typographyTokens.fontSizes.bodyS};
|
|
16
|
-
font-weight: ${({ $weight }) =>
|
|
17
|
-
$weight === 'bold'
|
|
18
|
-
? typographyTokens.fontWeights.bold
|
|
19
|
-
: typographyTokens.fontWeights.regular};
|
|
20
|
-
color: ${({ $color, $variant }) => {
|
|
21
|
-
if ($variant) {
|
|
22
|
-
switch ($variant) {
|
|
23
|
-
case 'error':
|
|
24
|
-
return semanticColors.danger.text.enabled;
|
|
25
|
-
case 'success':
|
|
26
|
-
return semanticColors.success.text.feedback.accent;
|
|
27
|
-
case 'warning':
|
|
28
|
-
return semanticColors.warning.text.feedback.strong;
|
|
29
|
-
default:
|
|
30
|
-
return $color;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return $color || semanticColors.base.text;
|
|
34
|
-
}};
|
|
35
|
-
`;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyledText } from './Text.styles';
|
|
3
|
-
|
|
4
|
-
import { TextProps } from './Text.types';
|
|
5
|
-
import { semanticColors } from '../../../styles/tokens';
|
|
6
|
-
|
|
7
|
-
const Text: React.FC<TextProps> = ({
|
|
8
|
-
children,
|
|
9
|
-
size = 'md',
|
|
10
|
-
weight = 'normal',
|
|
11
|
-
color = 'black',
|
|
12
|
-
testId,
|
|
13
|
-
variant,
|
|
14
|
-
}) => {
|
|
15
|
-
// Define a cor padrão se não for fornecida
|
|
16
|
-
const defaultColor = color || semanticColors.base.text;
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<StyledText
|
|
20
|
-
data-testid={testId}
|
|
21
|
-
id={testId}
|
|
22
|
-
$size={size}
|
|
23
|
-
$weight={weight}
|
|
24
|
-
$color={defaultColor}
|
|
25
|
-
$variant={variant}
|
|
26
|
-
>
|
|
27
|
-
{children}
|
|
28
|
-
</StyledText>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export default Text;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
semanticRadius,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
} from '../../../styles/tokens';
|
|
8
|
-
|
|
9
|
-
export const TextareaWrapper = styled.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
13
|
-
width: 100%;
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
export const Label = styled.label`
|
|
17
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
18
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
19
|
-
font-weight: 500;
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
export const StyledTextarea = styled.textarea`
|
|
23
|
-
display: flex;
|
|
24
|
-
padding: ${semanticSizes.global.padding.lg};
|
|
25
|
-
font-size: ${typographyTokens.fontSizes.bodyM};
|
|
26
|
-
color: ${semanticColors.base.text};
|
|
27
|
-
background: ${semanticColors.base.background};
|
|
28
|
-
border: 1px solid ${semanticColors.global.border.medium};
|
|
29
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
30
|
-
resize: vertical;
|
|
31
|
-
transition: border-color 0.2s;
|
|
32
|
-
|
|
33
|
-
&::placeholder {
|
|
34
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:focus {
|
|
38
|
-
border-color: ${semanticColors.branding.border.enabled};
|
|
39
|
-
box-shadow: 0 0 0 2px ${semanticColors.branding.surface.hover};
|
|
40
|
-
outline: none;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:disabled {
|
|
44
|
-
background-color: ${semanticColors.global.surface.disabled};
|
|
45
|
-
cursor: not-allowed;
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
|
|
49
|
-
export const SupportingText = styled.span`
|
|
50
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
51
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
52
|
-
`;
|