@granto-umbrella/umbrella-components 3.0.76 → 3.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{umbrella-components.umd.js → cjs/index.js} +760 -789
- package/dist/{umbrella-components.es.js → esm/index.js} +26832 -27462
- package/dist/types/components/atoms/Badge/Badge.d.ts +4 -0
- package/dist/types/components/atoms/Badge/Badge.styles.d.ts +22 -0
- package/dist/types/components/atoms/Badge/Badge.types.d.ts +9 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.styles.d.ts +5 -0
- package/dist/types/components/atoms/Breadcrumb/Breadcrumb.types.d.ts +10 -0
- package/dist/types/components/atoms/Button/Button.d.ts +4 -0
- package/dist/types/components/atoms/Button/Button.styles.d.ts +31 -0
- package/dist/types/components/atoms/Button/Button.types.d.ts +13 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +3 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.styles.d.ts +11 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.types.d.ts +16 -0
- package/dist/types/components/atoms/Checkbox/CheckboxGroup.d.ts +3 -0
- package/dist/types/components/atoms/Checkbox/CheckboxSelectAll.d.ts +3 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.d.ts +4 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.styles.d.ts +1 -0
- package/dist/types/components/atoms/CodeInput/CodeInput.types.d.ts +2 -0
- package/dist/types/components/atoms/DatePickerInput/DatePicker.styles.d.ts +3 -0
- package/dist/types/components/atoms/DatePickerInput/DatePickerInput.d.ts +11 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.d.ts +4 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.styles.d.ts +13 -0
- package/dist/types/components/atoms/DropDownMenu/DropdownMenu.types.d.ts +12 -0
- package/dist/types/components/atoms/DropDownMenu/index.d.ts +2 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.d.ts +3 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.styles.d.ts +1 -0
- package/dist/types/components/atoms/EditIcon/EditIcon.types.d.ts +6 -0
- package/dist/types/components/atoms/EditIcon/index.d.ts +1 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.d.ts +2 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.styles.d.ts +15 -0
- package/dist/types/components/atoms/EditableDurationSelect/EditableDurationSelect.types.d.ts +18 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.d.ts +4 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.styles.d.ts +3 -0
- package/dist/types/components/atoms/ErrorMessage/ErrorMessage.types.d.ts +5 -0
- package/dist/types/components/atoms/Footer/Footer.d.ts +4 -0
- package/dist/types/components/atoms/Footer/Footer.styles.d.ts +1 -0
- package/dist/types/components/atoms/Footer/Footer.types.d.ts +4 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.d.ts +3 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.styles.d.ts +1 -0
- package/dist/types/components/atoms/GenericContainer/GenericContainer.types.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Icon.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Icon.styles.d.ts +8 -0
- package/{src/components/atoms/Icon/Icon.types.ts → dist/types/components/atoms/Icon/Icon.types.d.ts} +2 -3
- package/dist/types/components/atoms/Input/Input.d.ts +4 -0
- package/dist/types/components/atoms/Input/Input.styles.d.ts +21 -0
- package/dist/types/components/atoms/Input/Input.types.d.ts +19 -0
- package/dist/types/components/atoms/Label/Label.d.ts +6 -0
- package/dist/types/components/atoms/Label/Label.styles.d.ts +4 -0
- package/dist/types/components/atoms/Loading/Loading.d.ts +3 -0
- package/dist/types/components/atoms/Loading/Loading.styles.d.ts +1 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.Types.d.ts +6 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.d.ts +3 -0
- package/dist/types/components/atoms/LogoContainer/LogoContainer.styles.d.ts +4 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.d.ts +3 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.styles.d.ts +6 -0
- package/dist/types/components/atoms/ModalAviso/ModalAviso.types.d.ts +5 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.d.ts +4 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.styles.d.ts +15 -0
- package/dist/types/components/atoms/MultiSelect/MultiSelect.types.d.ts +32 -0
- package/dist/types/components/atoms/Pill/Pill.d.ts +4 -0
- package/dist/types/components/atoms/Pill/Pill.styles.d.ts +15 -0
- package/dist/types/components/atoms/Pill/Pill.types.d.ts +10 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +4 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.styles.d.ts +3 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.types.d.ts +9 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.d.ts +3 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.styles.d.ts +3 -0
- package/dist/types/components/atoms/ResendLink/ResendLink.types.d.ts +7 -0
- package/dist/types/components/atoms/Select/Select.d.ts +4 -0
- package/dist/types/components/atoms/Select/Select.styles.d.ts +15 -0
- package/dist/types/components/atoms/Select/Select.types.d.ts +24 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.d.ts +3 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.styles.d.ts +5 -0
- package/dist/types/components/atoms/Skeleton/Skeleton.types.d.ts +12 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.d.ts +3 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.styles.d.ts +1 -0
- package/dist/types/components/atoms/Subtitle/Subtitle.types.d.ts +4 -0
- package/dist/types/components/atoms/Switch/Switch.d.ts +8 -0
- package/dist/types/components/atoms/Switch/Switch.styles.d.ts +5 -0
- package/dist/types/components/atoms/Switch/Switch.types.d.ts +7 -0
- package/dist/types/components/atoms/TabBar/TabBar.d.ts +3 -0
- package/dist/types/components/atoms/TabBar/TabBar.styles.d.ts +5 -0
- package/dist/types/components/atoms/TabBar/TabBar.types.d.ts +10 -0
- package/dist/types/components/atoms/Text/Text.d.ts +4 -0
- package/dist/types/components/atoms/Text/Text.styles.d.ts +6 -0
- package/dist/types/components/atoms/Text/Text.types.d.ts +8 -0
- package/dist/types/components/atoms/Textarea/Textarea.d.ts +4 -0
- package/dist/types/components/atoms/Textarea/Textarea.styles.d.ts +4 -0
- package/{src/components/atoms/Textarea/Textarea.types.ts → dist/types/components/atoms/Textarea/Textarea.types.d.ts} +4 -4
- package/dist/types/components/atoms/TimelineEventIndicator/TimelineEventIndicator.d.ts +1 -0
- package/dist/types/components/atoms/TimelineEventIndicator/TimelineExpandButton.d.ts +7 -0
- package/dist/types/components/atoms/Title/Title.d.ts +3 -0
- package/dist/types/components/atoms/Title/Title.styles.d.ts +1 -0
- package/dist/types/components/atoms/Title/Title.types.d.ts +4 -0
- package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +4 -0
- package/dist/types/components/atoms/Tooltip/Tootip.styles.d.ts +9 -0
- package/dist/types/components/atoms/Tooltip/tooltip.types.d.ts +7 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.styles.d.ts +6 -0
- package/dist/types/components/molecules/AvatarGroup/AvatarGroup.types.d.ts +13 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.d.ts +4 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.styles.d.ts +1 -0
- package/dist/types/components/molecules/BannerAjuda/BannerAjuda.types.d.ts +5 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.styles.d.ts +3 -0
- package/dist/types/components/molecules/ButtonGroup/ButtonGroup.types.d.ts +11 -0
- package/dist/types/components/molecules/Calendar/Calendar.d.ts +8 -0
- package/dist/types/components/molecules/Calendar/Calendar.styles.d.ts +2 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.d.ts +4 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.styles.d.ts +1 -0
- package/dist/types/components/molecules/CodeInputContainer/CodeInputContainer.types.d.ts +9 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.d.ts +4 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.styles.d.ts +17 -0
- package/dist/types/components/molecules/ExcludeModal/ExcludeModal.types.d.ts +12 -0
- package/dist/types/components/molecules/FieldSelector/FieldSelector.d.ts +10 -0
- package/dist/types/components/molecules/FieldSelector/FieldSelector.styles.d.ts +8 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.d.ts +4 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.styles.d.ts +8 -0
- package/dist/types/components/molecules/HighlightsCard/HighlightsCard.types.d.ts +9 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.d.ts +3 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.styles.d.ts +49 -0
- package/dist/types/components/molecules/InsuranceCard/InsuranceCard.types.d.ts +38 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.d.ts +3 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.styles.d.ts +1 -0
- package/dist/types/components/molecules/PieChartComponent/PieChartComponent.types.d.ts +9 -0
- package/dist/types/components/molecules/Popover/Popover.d.ts +6 -0
- package/dist/types/components/molecules/Popover/Popover.styles.d.ts +4 -0
- package/dist/types/components/molecules/RadioBoxGroup/RadioBoxGroup.d.ts +15 -0
- package/dist/types/components/molecules/RadioBoxGroup/RadioBoxGroup.styles.d.ts +3 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.d.ts +4 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.styles.d.ts +6 -0
- package/dist/types/components/molecules/RadioGroupField/RadioGroupField.types.d.ts +15 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.d.ts +2 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.styles.d.ts +21 -0
- package/dist/types/components/molecules/RefuseModal/RefuseModal.types.d.ts +8 -0
- package/dist/types/components/molecules/ResultsChart/ResultsChart.d.ts +3 -0
- package/dist/types/components/molecules/ResultsChart/ResultsChart.styles.d.ts +3 -0
- package/{src/components/molecules/ResultsChart/ResultsChart.types.ts → dist/types/components/molecules/ResultsChart/ResultsChart.types.d.ts} +1 -1
- package/dist/types/components/molecules/TabToggle/TabToggle.d.ts +10 -0
- package/dist/types/components/molecules/TabToggle/TabToggle.styles.d.ts +8 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.d.ts +3 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.mapper.d.ts +2 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.registry.d.ts +8 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.styles.d.ts +18 -0
- package/dist/types/components/molecules/TimeLine/TimeLine.types.d.ts +68 -0
- package/dist/types/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.d.ts +2 -0
- package/{src/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.types.ts → dist/types/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.types.d.ts} +4 -4
- package/dist/types/components/molecules/TimeLineEvent/TimelineEvent.d.ts +6 -0
- package/dist/types/components/molecules/TimeLineEvent/TimelineEvent.styles.d.ts +6 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.d.ts +4 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.styles.d.ts +5 -0
- package/dist/types/components/organisms/AlertDialog/AlertDialog.types.d.ts +14 -0
- package/dist/types/components/organisms/Dialog/Dialog.d.ts +12 -0
- package/dist/types/components/organisms/Dialog/Dialog.styles.d.ts +18 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.d.ts +4 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.styles.d.ts +10 -0
- package/dist/types/components/organisms/DonutEmissionsChart/DonutEmissionsChart.types.d.ts +8 -0
- package/dist/types/components/organisms/DonutEmissionsChart/index.d.ts +2 -0
- package/dist/types/components/organisms/ExportExcelModal/ExportExcelModal.d.ts +13 -0
- package/dist/types/components/organisms/ExportExcelModal/ExportExcelModal.styles.d.ts +13 -0
- package/dist/types/components/organisms/Form/Form.d.ts +22 -0
- package/dist/types/components/organisms/Form/Form.styles.d.ts +7 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.d.ts +4 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.styles.d.ts +13 -0
- package/dist/types/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.types.d.ts +15 -0
- package/dist/types/components/organisms/Navbar/Navbar.d.ts +3 -0
- package/dist/types/components/organisms/Navbar/Navbar.styles.d.ts +15 -0
- package/dist/types/components/organisms/Navbar/Navbar.types.d.ts +32 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.d.ts +3 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.styles.d.ts +3 -0
- package/dist/types/components/organisms/PermissionCard/PermissionCard.types.d.ts +11 -0
- package/dist/types/components/organisms/TimelineModal/TimelineModal.d.ts +11 -0
- package/dist/types/components/organisms/TimelineModal/TimelineModal.styles.d.ts +15 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.d.ts +3 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.styles.d.ts +1 -0
- package/dist/types/components/templates/PermissionMatrix/PermissionMatrix.types.d.ts +11 -0
- package/dist/types/components/templates/PermissionMatrix/index.d.ts +1 -0
- package/dist/types/index.d.ts +75 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/styles/tokens/borders.d.ts +16 -0
- package/dist/types/styles/tokens/colors.d.ts +599 -0
- package/dist/types/styles/tokens/radius.d.ts +21 -0
- package/dist/types/styles/tokens/shadows.d.ts +18 -0
- package/dist/types/styles/tokens/sizes.d.ts +59 -0
- package/dist/types/styles/tokens/typography.d.ts +160 -0
- package/dist/types/types/colors.types.d.ts +20 -0
- package/dist/types/types/sizes.types.d.ts +4 -0
- package/package.json +16 -10
- package/src/assets/_banner_contato.png +0 -0
- package/src/assets/_barra.svg +0 -3
- package/src/assets/_effecti.svg +0 -9
- package/src/assets/_granto_corp_navbar.svg +0 -9
- package/src/assets/_logoUmbrella.svg +0 -34
- package/src/assets/avatar1.png +0 -0
- package/src/assets/avatar2.jpg +0 -0
- package/src/assets/avatar3.jpg +0 -0
- package/src/assets/avatar4.jpg +0 -0
- package/src/assets/info.png +0 -0
- package/src/assets/linhaTempo.png +0 -0
- package/src/assets/pen.png +0 -0
- package/src/assets/react.svg +0 -1
- package/src/assets.d.ts +0 -19
- package/src/components/atoms/Badge/Badge.styles.ts +0 -96
- package/src/components/atoms/Badge/Badge.tsx +0 -50
- package/src/components/atoms/Badge/Badge.types.ts +0 -16
- package/src/components/atoms/Breadcrumb/Breadcrumb.styles.ts +0 -43
- package/src/components/atoms/Breadcrumb/Breadcrumb.tsx +0 -46
- package/src/components/atoms/Breadcrumb/Breadcrumb.types.ts +0 -12
- package/src/components/atoms/Button/Button.styles.ts +0 -279
- package/src/components/atoms/Button/Button.tsx +0 -76
- package/src/components/atoms/Button/Button.types.ts +0 -27
- package/src/components/atoms/Checkbox/Checkbox.styles.ts +0 -88
- package/src/components/atoms/Checkbox/Checkbox.tsx +0 -42
- package/src/components/atoms/Checkbox/Checkbox.types.ts +0 -14
- package/src/components/atoms/Checkbox/CheckboxGroup.tsx +0 -37
- package/src/components/atoms/Checkbox/CheckboxSelectAll.tsx +0 -32
- package/src/components/atoms/CodeInput/CodeInput.styles.tsx +0 -38
- package/src/components/atoms/CodeInput/CodeInput.tsx +0 -13
- package/src/components/atoms/CodeInput/CodeInput.types.ts +0 -3
- package/src/components/atoms/DatePickerInput/DatePicker.styles.ts +0 -75
- package/src/components/atoms/DatePickerInput/DatePickerInput.tsx +0 -154
- package/src/components/atoms/DropDownMenu/DropdownMenu.styles.tsx +0 -106
- package/src/components/atoms/DropDownMenu/DropdownMenu.tsx +0 -48
- package/src/components/atoms/DropDownMenu/DropdownMenu.types.ts +0 -15
- package/src/components/atoms/DropDownMenu/index.tsx +0 -5
- package/src/components/atoms/EditIcon/EditIcon.styles.ts +0 -39
- package/src/components/atoms/EditIcon/EditIcon.tsx +0 -21
- package/src/components/atoms/EditIcon/EditIcon.types.ts +0 -7
- package/src/components/atoms/EditIcon/index.ts +0 -0
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.styles.ts +0 -150
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.tsx +0 -138
- package/src/components/atoms/EditableDurationSelect/EditableDurationSelect.types.ts +0 -19
- package/src/components/atoms/ErrorMessage/ErrorMessage.styles.tsx +0 -28
- package/src/components/atoms/ErrorMessage/ErrorMessage.tsx +0 -12
- package/src/components/atoms/ErrorMessage/ErrorMessage.types.ts +0 -6
- package/src/components/atoms/Footer/Footer.styles.tsx +0 -22
- package/src/components/atoms/Footer/Footer.tsx +0 -9
- package/src/components/atoms/Footer/Footer.types.tsx +0 -5
- package/src/components/atoms/GenericContainer/GenericContainer.styles.tsx +0 -21
- package/src/components/atoms/GenericContainer/GenericContainer.tsx +0 -9
- package/src/components/atoms/GenericContainer/GenericContainer.types.ts +0 -5
- package/src/components/atoms/Icon/Icon.styles.ts +0 -11
- package/src/components/atoms/Icon/Icon.tsx +0 -22
- package/src/components/atoms/Input/Input.styles.ts +0 -106
- package/src/components/atoms/Input/Input.tsx +0 -80
- package/src/components/atoms/Input/Input.types.ts +0 -21
- package/src/components/atoms/Label/Label.styles.ts +0 -16
- package/src/components/atoms/Label/Label.tsx +0 -16
- package/src/components/atoms/Loading/Loading.styles.tsx +0 -25
- package/src/components/atoms/Loading/Loading.tsx +0 -8
- package/src/components/atoms/LogoContainer/LogoContainer.Types.tsx +0 -6
- package/src/components/atoms/LogoContainer/LogoContainer.styles.tsx +0 -11
- package/src/components/atoms/LogoContainer/LogoContainer.tsx +0 -14
- package/src/components/atoms/ModalAviso/ModalAviso.styles.tsx +0 -56
- package/src/components/atoms/ModalAviso/ModalAviso.tsx +0 -43
- package/src/components/atoms/ModalAviso/ModalAviso.types.ts +0 -5
- package/src/components/atoms/MultiSelect/MultiSelect.styles.tsx +0 -100
- package/src/components/atoms/MultiSelect/MultiSelect.tsx +0 -346
- package/src/components/atoms/MultiSelect/MultiSelect.types.ts +0 -38
- package/src/components/atoms/Pill/Pill.styles.ts +0 -46
- package/src/components/atoms/Pill/Pill.tsx +0 -35
- package/src/components/atoms/Pill/Pill.types.ts +0 -14
- package/src/components/atoms/RadioButton/RadioButton.styles.ts +0 -44
- package/src/components/atoms/RadioButton/RadioButton.tsx +0 -31
- package/src/components/atoms/RadioButton/RadioButton.types.ts +0 -9
- package/src/components/atoms/ResendLink/ResendLink.styles.tsx +0 -19
- package/src/components/atoms/ResendLink/ResendLink.tsx +0 -21
- package/src/components/atoms/ResendLink/ResendLink.types.ts +0 -8
- package/src/components/atoms/Select/Select.styles.ts +0 -153
- package/src/components/atoms/Select/Select.tsx +0 -52
- package/src/components/atoms/Select/Select.types.ts +0 -19
- package/src/components/atoms/Skeleton/Skeleton.styles.ts +0 -32
- package/src/components/atoms/Skeleton/Skeleton.tsx +0 -43
- package/src/components/atoms/Skeleton/Skeleton.types.ts +0 -13
- package/src/components/atoms/Subtitle/Subtitle.styles.tsx +0 -21
- package/src/components/atoms/Subtitle/Subtitle.tsx +0 -7
- package/src/components/atoms/Subtitle/Subtitle.types.ts +0 -5
- package/src/components/atoms/Switch/Switch.styles.ts +0 -59
- package/src/components/atoms/Switch/Switch.tsx +0 -25
- package/src/components/atoms/Switch/Switch.types.ts +0 -7
- package/src/components/atoms/TabBar/TabBar.styles.tsx +0 -64
- package/src/components/atoms/TabBar/TabBar.tsx +0 -24
- package/src/components/atoms/TabBar/TabBar.types.ts +0 -11
- package/src/components/atoms/Text/Text.styles.tsx +0 -35
- package/src/components/atoms/Text/Text.tsx +0 -32
- package/src/components/atoms/Text/Text.types.ts +0 -8
- package/src/components/atoms/Textarea/Textarea.styles.ts +0 -52
- package/src/components/atoms/Textarea/Textarea.tsx +0 -31
- package/src/components/atoms/TimelineEventIndicator/TimelineEventIndicator.tsx +0 -12
- package/src/components/atoms/TimelineEventIndicator/TimelineExpandButton.tsx +0 -55
- package/src/components/atoms/Title/Title.styles.tsx +0 -17
- package/src/components/atoms/Title/Title.tsx +0 -7
- package/src/components/atoms/Title/Title.types.ts +0 -5
- package/src/components/atoms/Tooltip/Tooltip.tsx +0 -59
- package/src/components/atoms/Tooltip/Tootip.styles.ts +0 -153
- package/src/components/atoms/Tooltip/tooltip.types.ts +0 -8
- package/src/components/molecules/AvatarGroup/AvatarGroup.styles.ts +0 -43
- package/src/components/molecules/AvatarGroup/AvatarGroup.tsx +0 -39
- package/src/components/molecules/AvatarGroup/AvatarGroup.types.ts +0 -16
- package/src/components/molecules/BannerAjuda/BannerAjuda.styles.tsx +0 -9
- package/src/components/molecules/BannerAjuda/BannerAjuda.tsx +0 -18
- package/src/components/molecules/BannerAjuda/BannerAjuda.types.ts +0 -5
- package/src/components/molecules/ButtonGroup/ButtonGroup.styles.ts +0 -10
- package/src/components/molecules/ButtonGroup/ButtonGroup.tsx +0 -28
- package/src/components/molecules/ButtonGroup/ButtonGroup.types.ts +0 -23
- package/src/components/molecules/Calendar/Calendar.styles.ts +0 -143
- package/src/components/molecules/Calendar/Calendar.tsx +0 -31
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.styles.tsx +0 -7
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.tsx +0 -32
- package/src/components/molecules/CodeInputContainer/CodeInputContainer.types.ts +0 -13
- package/src/components/molecules/ExcludeModal/ExcludeModal.styles.tsx +0 -123
- package/src/components/molecules/ExcludeModal/ExcludeModal.tsx +0 -50
- package/src/components/molecules/ExcludeModal/ExcludeModal.types.ts +0 -12
- package/src/components/molecules/FieldSelector/FieldSelector.styles.ts +0 -63
- package/src/components/molecules/FieldSelector/FieldSelector.tsx +0 -167
- package/src/components/molecules/HighlightsCard/HighlightsCard.styles.tsx +0 -67
- package/src/components/molecules/HighlightsCard/HighlightsCard.tsx +0 -35
- package/src/components/molecules/HighlightsCard/HighlightsCard.types.ts +0 -10
- package/src/components/molecules/InsuranceCard/InsuranceCard.styles.tsx +0 -237
- package/src/components/molecules/InsuranceCard/InsuranceCard.tsx +0 -455
- package/src/components/molecules/InsuranceCard/InsuranceCard.types.ts +0 -41
- package/src/components/molecules/PieChartComponent/PieChartComponent.styles.tsx +0 -7
- package/src/components/molecules/PieChartComponent/PieChartComponent.tsx +0 -70
- package/src/components/molecules/PieChartComponent/PieChartComponent.types.ts +0 -11
- package/src/components/molecules/Popover/Popover.styles.ts +0 -66
- package/src/components/molecules/Popover/Popover.tsx +0 -23
- package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.styles.ts +0 -11
- package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.tsx +0 -43
- package/src/components/molecules/RadioGroupField/RadioGroupField.styles.tsx +0 -65
- package/src/components/molecules/RadioGroupField/RadioGroupField.tsx +0 -69
- package/src/components/molecules/RadioGroupField/RadioGroupField.types.ts +0 -17
- package/src/components/molecules/RefuseModal/RefuseModal.styles.tsx +0 -139
- package/src/components/molecules/RefuseModal/RefuseModal.tsx +0 -92
- package/src/components/molecules/RefuseModal/RefuseModal.types.ts +0 -15
- package/src/components/molecules/ResultsChart/ResultsChart.styles.tsx +0 -26
- package/src/components/molecules/ResultsChart/ResultsChart.tsx +0 -23
- package/src/components/molecules/TabToggle/TabToggle.styles.ts +0 -54
- package/src/components/molecules/TabToggle/TabToggle.tsx +0 -35
- package/src/components/molecules/TimeLine/TimeLine.mapper.ts +0 -112
- package/src/components/molecules/TimeLine/TimeLine.registry.ts +0 -41
- package/src/components/molecules/TimeLine/TimeLine.styles.ts +0 -221
- package/src/components/molecules/TimeLine/TimeLine.tsx +0 -80
- package/src/components/molecules/TimeLine/TimeLine.types.ts +0 -92
- package/src/components/molecules/TimeLine/TimelineComparisonTable/TimelineComparisonTable.tsx +0 -94
- package/src/components/molecules/TimeLineEvent/TimelineEvent.styles.ts +0 -62
- package/src/components/molecules/TimeLineEvent/TimelineEvent.tsx +0 -58
- package/src/components/organisms/AlertDialog/AlertDialog.styles.tsx +0 -61
- package/src/components/organisms/AlertDialog/AlertDialog.tsx +0 -70
- package/src/components/organisms/AlertDialog/AlertDialog.types.ts +0 -14
- package/src/components/organisms/Dialog/Dialog.styles.ts +0 -107
- package/src/components/organisms/Dialog/Dialog.tsx +0 -69
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.styles.tsx +0 -113
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.tsx +0 -75
- package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.types.ts +0 -9
- package/src/components/organisms/DonutEmissionsChart/index.tsx +0 -5
- package/src/components/organisms/ExportExcelModal/ExportExcelModal.styles.ts +0 -59
- package/src/components/organisms/ExportExcelModal/ExportExcelModal.tsx +0 -89
- package/src/components/organisms/Form/Form.styles.ts +0 -35
- package/src/components/organisms/Form/Form.tsx +0 -160
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.styles.tsx +0 -115
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.tsx +0 -89
- package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.types.ts +0 -16
- package/src/components/organisms/Navbar/Navbar.styles.tsx +0 -243
- package/src/components/organisms/Navbar/Navbar.tsx +0 -118
- package/src/components/organisms/Navbar/Navbar.types.ts +0 -34
- package/src/components/organisms/PermissionCard/PermissionCard.styles.ts +0 -37
- package/src/components/organisms/PermissionCard/PermissionCard.tsx +0 -58
- package/src/components/organisms/PermissionCard/PermissionCard.types.ts +0 -12
- package/src/components/organisms/TimelineModal/TimelineModal.styles.ts +0 -109
- package/src/components/organisms/TimelineModal/TimelineModal.tsx +0 -67
- package/src/components/templates/PermissionMatrix/PermissionMatrix.styles.ts +0 -19
- package/src/components/templates/PermissionMatrix/PermissionMatrix.tsx +0 -24
- package/src/components/templates/PermissionMatrix/PermissionMatrix.types.ts +0 -13
- package/src/components/templates/PermissionMatrix/index.ts +0 -0
- package/src/global.d.ts +0 -16
- package/src/index.ts +0 -200
- package/src/lib/utils.ts +0 -6
- package/src/styles/tokens/borders.ts +0 -17
- package/src/styles/tokens/colors.ts +0 -601
- package/src/styles/tokens/radius.ts +0 -22
- package/src/styles/tokens/shadows.ts +0 -22
- package/src/styles/tokens/sizes.ts +0 -60
- package/src/styles/tokens/typography.ts +0 -161
- package/src/types/colors.types.ts +0 -21
- package/src/types/sizes.types.ts +0 -4
- package/src/utils/renderHighlightsCard.tsx +0 -21
- /package/{src/components/atoms/Button/index.ts → dist/types/components/atoms/Button/index.d.ts} +0 -0
- /package/{src/components/atoms/CodeInput/index.tsx → dist/types/components/atoms/CodeInput/index.d.ts} +0 -0
- /package/{src/components/atoms/EditableDurationSelect/index.tsx → dist/types/components/atoms/EditableDurationSelect/index.d.ts} +0 -0
- /package/{src/components/atoms/ErrorMessage/index.tsx → dist/types/components/atoms/ErrorMessage/index.d.ts} +0 -0
- /package/{src/components/atoms/Footer/index.tsx → dist/types/components/atoms/Footer/index.d.ts} +0 -0
- /package/{src/components/atoms/GenericContainer/index.tsx → dist/types/components/atoms/GenericContainer/index.d.ts} +0 -0
- /package/{src/components/atoms/Icon/index.ts → dist/types/components/atoms/Icon/index.d.ts} +0 -0
- /package/{src/components/atoms/Input/index.ts → dist/types/components/atoms/Input/index.d.ts} +0 -0
- /package/{src/components/atoms/Loading/index.tsx → dist/types/components/atoms/Loading/index.d.ts} +0 -0
- /package/{src/components/atoms/LogoContainer/index.tsx → dist/types/components/atoms/LogoContainer/index.d.ts} +0 -0
- /package/{src/components/atoms/ModalAviso/index.tsx → dist/types/components/atoms/ModalAviso/index.d.ts} +0 -0
- /package/{src/components/atoms/MultiSelect/index.tsx → dist/types/components/atoms/MultiSelect/index.d.ts} +0 -0
- /package/{src/components/atoms/ResendLink/index.tsx → dist/types/components/atoms/ResendLink/index.d.ts} +0 -0
- /package/{src/components/atoms/Select/index.tsx → dist/types/components/atoms/Select/index.d.ts} +0 -0
- /package/{src/components/atoms/Subtitle/index.tsx → dist/types/components/atoms/Subtitle/index.d.ts} +0 -0
- /package/{src/components/atoms/TabBar/index.tsx → dist/types/components/atoms/TabBar/index.d.ts} +0 -0
- /package/{src/components/atoms/Text/index.ts → dist/types/components/atoms/Text/index.d.ts} +0 -0
- /package/{src/components/atoms/TimelineEventIndicator/index.tsx → dist/types/components/atoms/TimelineEventIndicator/index.d.ts} +0 -0
- /package/{src/components/atoms/Title/index.tsx → dist/types/components/atoms/Title/index.d.ts} +0 -0
- /package/{src/components/molecules/AvatarGroup/index.ts → dist/types/components/molecules/AvatarGroup/index.d.ts} +0 -0
- /package/{src/components/molecules/BannerAjuda/index.tsx → dist/types/components/molecules/BannerAjuda/index.d.ts} +0 -0
- /package/{src/components/molecules/CodeInputContainer/index.tsx → dist/types/components/molecules/CodeInputContainer/index.d.ts} +0 -0
- /package/{src/components/molecules/ExcludeModal/index.tsx → dist/types/components/molecules/ExcludeModal/index.d.ts} +0 -0
- /package/{src/components/molecules/HighlightsCard/index.tsx → dist/types/components/molecules/HighlightsCard/index.d.ts} +0 -0
- /package/{src/components/molecules/InsuranceCard/index.tsx → dist/types/components/molecules/InsuranceCard/index.d.ts} +0 -0
- /package/{src/components/molecules/PieChartComponent/index.tsx → dist/types/components/molecules/PieChartComponent/index.d.ts} +0 -0
- /package/{src/components/molecules/RadioGroupField/index.tsx → dist/types/components/molecules/RadioGroupField/index.d.ts} +0 -0
- /package/{src/components/molecules/RefuseModal/index.tsx → dist/types/components/molecules/RefuseModal/index.d.ts} +0 -0
- /package/{src/components/molecules/ResultsChart/index.tsx → dist/types/components/molecules/ResultsChart/index.d.ts} +0 -0
- /package/{src/components/molecules/TimeLineEvent/index.ts → dist/types/components/molecules/TimeLineEvent/index.d.ts} +0 -0
- /package/{src/components/organisms/ListagemUltimasEmissoes/index.tsx → dist/types/components/organisms/ListagemUltimasEmissoes/index.d.ts} +0 -0
- /package/{src/components/organisms/PermissionCard/index.ts → dist/types/components/organisms/PermissionCard/index.d.ts} +0 -0
- /package/{src/styles/tokens/index.tsx → dist/types/styles/tokens/index.d.ts} +0 -0
- /package/{src/types/radius.types.ts → dist/types/types/radius.types.d.ts} +0 -0
- /package/{src/types/shadows.types.ts → dist/types/types/shadows.types.d.ts} +0 -0
package/src/assets/react.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
package/src/assets.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare module '*.png' {
|
|
2
|
-
const content: string;
|
|
3
|
-
export default content;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare module '*.jpg' {
|
|
7
|
-
const content: string;
|
|
8
|
-
export default content;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare module '*.jpeg' {
|
|
12
|
-
const content: string;
|
|
13
|
-
export default content;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare module '*.svg' {
|
|
17
|
-
const content: string;
|
|
18
|
-
export default content;
|
|
19
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
semanticRadius,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
primitiveSizes,
|
|
8
|
-
} from '../../../styles/tokens';
|
|
9
|
-
|
|
10
|
-
const badgeVariants = {
|
|
11
|
-
primary: css`
|
|
12
|
-
background: ${semanticColors.branding.surface.enabled};
|
|
13
|
-
color: ${semanticColors.base.background};
|
|
14
|
-
`,
|
|
15
|
-
outline: css`
|
|
16
|
-
background: transparent;
|
|
17
|
-
border: 1px solid ${semanticColors.branding.border.enabled};
|
|
18
|
-
color: ${semanticColors.branding.text.accent.enabled};
|
|
19
|
-
`,
|
|
20
|
-
danger: css`
|
|
21
|
-
background: ${semanticColors.global.surface.danger.disabled};
|
|
22
|
-
color: ${semanticColors.global.text.feedback.strong.error};
|
|
23
|
-
`,
|
|
24
|
-
success: css`
|
|
25
|
-
background: ${semanticColors.success.surface.feedback};
|
|
26
|
-
color: ${semanticColors.success.text.feedback};
|
|
27
|
-
`,
|
|
28
|
-
warning: css`
|
|
29
|
-
background: ${semanticColors.warning.surface.feedback};
|
|
30
|
-
color: ${semanticColors.warning.text.feedback};
|
|
31
|
-
`,
|
|
32
|
-
neutral: css`
|
|
33
|
-
background: ${semanticColors.neutral[200]};
|
|
34
|
-
color: ${semanticColors.neutral[700]};
|
|
35
|
-
`,
|
|
36
|
-
info: css`
|
|
37
|
-
background: ${semanticColors.info.surface.feedback};
|
|
38
|
-
color: ${semanticColors.info.text.feedback.strong};
|
|
39
|
-
`,
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const badgeSizes = {
|
|
43
|
-
xs: css`
|
|
44
|
-
padding: ${primitiveSizes.size.half} 10px;
|
|
45
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
46
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
47
|
-
line-height: ${typographyTokens.lineHeights.labelS};
|
|
48
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
49
|
-
`,
|
|
50
|
-
sm: css`
|
|
51
|
-
padding: ${semanticSizes.global.padding.xs}
|
|
52
|
-
${semanticSizes.global.padding.sm};
|
|
53
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
54
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
55
|
-
line-height: ${typographyTokens.lineHeights.labelS};
|
|
56
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
57
|
-
`,
|
|
58
|
-
md: css`
|
|
59
|
-
padding: ${semanticSizes.global.padding.sm}
|
|
60
|
-
${semanticSizes.global.padding.md};
|
|
61
|
-
font-size: ${typographyTokens.fontSizes.labelM};
|
|
62
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
63
|
-
line-height: ${typographyTokens.lineHeights.labelM};
|
|
64
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
65
|
-
`,
|
|
66
|
-
lg: css`
|
|
67
|
-
padding: ${semanticSizes.global.padding.md}
|
|
68
|
-
${semanticSizes.global.padding.lg};
|
|
69
|
-
font-size: ${typographyTokens.fontSizes.labelL};
|
|
70
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
71
|
-
line-height: ${typographyTokens.lineHeights.labelL};
|
|
72
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
73
|
-
`,
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const StyledBadge = styled.span<{
|
|
77
|
-
$size: keyof typeof badgeSizes;
|
|
78
|
-
$variant: keyof typeof badgeVariants;
|
|
79
|
-
$radius: keyof typeof semanticRadius.global.radius;
|
|
80
|
-
}>`
|
|
81
|
-
display: inline-flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
border-radius: ${({ $radius }) => semanticRadius.global.radius[$radius]};
|
|
85
|
-
gap: ${semanticSizes.global.gap.xs};
|
|
86
|
-
|
|
87
|
-
${({ $size }) => badgeSizes[$size]}
|
|
88
|
-
${({ $variant }) => badgeVariants[$variant]}
|
|
89
|
-
|
|
90
|
-
.icon-left,
|
|
91
|
-
.icon-right {
|
|
92
|
-
display: flex;
|
|
93
|
-
align-items: center;
|
|
94
|
-
line-height: 1;
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyledBadge } from './Badge.styles';
|
|
3
|
-
import { BadgeProps } from './Badge.types';
|
|
4
|
-
import * as Icons from '@phosphor-icons/react';
|
|
5
|
-
import { semanticSizes } from '../../../styles/tokens/sizes';
|
|
6
|
-
|
|
7
|
-
const getIconSize = (size: BadgeProps['size']) => {
|
|
8
|
-
switch (size) {
|
|
9
|
-
case 'xs':
|
|
10
|
-
return semanticSizes.global.padding.md;
|
|
11
|
-
case 'sm':
|
|
12
|
-
return semanticSizes.global.padding.lg;
|
|
13
|
-
case 'lg':
|
|
14
|
-
return semanticSizes.global.padding['2xl'];
|
|
15
|
-
default: // Caso 'md'
|
|
16
|
-
return semanticSizes.global.padding.xl;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const Badge: React.FC<BadgeProps> = ({
|
|
21
|
-
children,
|
|
22
|
-
size = 'md',
|
|
23
|
-
variant = 'primary',
|
|
24
|
-
radius = 'full',
|
|
25
|
-
leftIcon,
|
|
26
|
-
rightIcon,
|
|
27
|
-
className,
|
|
28
|
-
}) => {
|
|
29
|
-
const IconComponentLeft =
|
|
30
|
-
leftIcon && (Icons[leftIcon as keyof typeof Icons] as React.ElementType);
|
|
31
|
-
const IconComponentRight =
|
|
32
|
-
rightIcon && (Icons[rightIcon as keyof typeof Icons] as React.ElementType);
|
|
33
|
-
|
|
34
|
-
const iconSize = getIconSize(size);
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<StyledBadge
|
|
38
|
-
$size={size}
|
|
39
|
-
$variant={variant}
|
|
40
|
-
$radius={radius}
|
|
41
|
-
className={className}
|
|
42
|
-
>
|
|
43
|
-
{IconComponentLeft && <IconComponentLeft size={parseInt(iconSize)} />}
|
|
44
|
-
{children}
|
|
45
|
-
{IconComponentRight && <IconComponentRight size={parseInt(iconSize)} />}
|
|
46
|
-
</StyledBadge>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export default Badge;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface BadgeProps {
|
|
2
|
-
children: React.ReactNode;
|
|
3
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
-
variant?:
|
|
5
|
-
| 'primary'
|
|
6
|
-
| 'outline'
|
|
7
|
-
| 'danger'
|
|
8
|
-
| 'success'
|
|
9
|
-
| 'warning'
|
|
10
|
-
| 'neutral'
|
|
11
|
-
| 'info';
|
|
12
|
-
radius?: 'sm' | 'md' | 'lg' | 'md2' | 'full';
|
|
13
|
-
leftIcon?: string;
|
|
14
|
-
rightIcon?: string;
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
typographyTokens,
|
|
6
|
-
} from '../../../styles/tokens';
|
|
7
|
-
|
|
8
|
-
import { textStyles } from '../../../styles/tokens/typography';
|
|
9
|
-
|
|
10
|
-
export const BreadcrumbContainer = styled.nav`
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
font-family: ${typographyTokens.fontFamily.base};
|
|
14
|
-
${css(textStyles.labelS)};
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
export const BreadcrumbItem = styled.span<{ $isActive?: boolean }>`
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
gap: ${semanticSizes.global.gap.xs};
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
|
|
23
|
-
color: ${({ $isActive }) =>
|
|
24
|
-
$isActive
|
|
25
|
-
? semanticColors.branding.text.accent.enabled
|
|
26
|
-
: semanticColors.global.text.onSurface.subtitle};
|
|
27
|
-
|
|
28
|
-
font-weight: ${({ $isActive }) =>
|
|
29
|
-
$isActive
|
|
30
|
-
? typographyTokens.fontWeights.semibold
|
|
31
|
-
: typographyTokens.fontWeights.regular};
|
|
32
|
-
|
|
33
|
-
&:hover {
|
|
34
|
-
color: ${semanticColors.branding.text.accent.hover};
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
|
|
38
|
-
export const BreadcrumbSeparator = styled.span`
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
margin: 0 ${semanticSizes.global.gap.xs};
|
|
42
|
-
color: ${semanticColors.global.text.onSurface.subtitle};
|
|
43
|
-
`;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// src/components/atoms/Breadcrumb/Breadcrumb.tsx
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import * as Icons from '@phosphor-icons/react';
|
|
5
|
-
import { BreadcrumbProps } from './Breadcrumb.types';
|
|
6
|
-
import {
|
|
7
|
-
BreadcrumbContainer,
|
|
8
|
-
BreadcrumbItem,
|
|
9
|
-
BreadcrumbSeparator,
|
|
10
|
-
} from './Breadcrumb.styles';
|
|
11
|
-
|
|
12
|
-
import { semanticSizes } from '../../../styles/tokens/sizes';
|
|
13
|
-
|
|
14
|
-
const Breadcrumb: React.FC<BreadcrumbProps> = ({
|
|
15
|
-
items,
|
|
16
|
-
separator = 'chevron-right',
|
|
17
|
-
}) => {
|
|
18
|
-
const SeparatorIcon = Icons[
|
|
19
|
-
separator as keyof typeof Icons
|
|
20
|
-
] as React.ElementType;
|
|
21
|
-
|
|
22
|
-
const iconSize = parseInt(semanticSizes.global.padding.lg);
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<BreadcrumbContainer>
|
|
26
|
-
{items.map((item, index) => (
|
|
27
|
-
<React.Fragment key={item.label}>
|
|
28
|
-
<BreadcrumbItem
|
|
29
|
-
onClick={() => item.onClick && item.onClick()}
|
|
30
|
-
$isActive={index === items.length - 1}
|
|
31
|
-
>
|
|
32
|
-
{item.icon && <item.icon size={iconSize} />}
|
|
33
|
-
{item.label}
|
|
34
|
-
</BreadcrumbItem>
|
|
35
|
-
{index < items.length - 1 && (
|
|
36
|
-
<BreadcrumbSeparator>
|
|
37
|
-
{SeparatorIcon && <SeparatorIcon size={iconSize} />}
|
|
38
|
-
</BreadcrumbSeparator>
|
|
39
|
-
)}
|
|
40
|
-
</React.Fragment>
|
|
41
|
-
))}
|
|
42
|
-
</BreadcrumbContainer>
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export default Breadcrumb;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IconProps } from '@phosphor-icons/react';
|
|
2
|
-
|
|
3
|
-
export interface BreadcrumbItemProps {
|
|
4
|
-
label: string;
|
|
5
|
-
icon?: React.ElementType<IconProps>;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface BreadcrumbProps {
|
|
10
|
-
items: BreadcrumbItemProps[];
|
|
11
|
-
separator?: string;
|
|
12
|
-
}
|
|
@@ -1,279 +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 buttonSizes = {
|
|
10
|
-
sm: css`
|
|
11
|
-
padding: ${semanticSizes.global.padding.md};
|
|
12
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
13
|
-
`,
|
|
14
|
-
md: css`
|
|
15
|
-
padding: ${semanticSizes.global.padding.md}${' '}${semanticSizes.global
|
|
16
|
-
.padding.xl};
|
|
17
|
-
font-size: ${typographyTokens.fontSizes.bodyS};
|
|
18
|
-
`,
|
|
19
|
-
lg: css`
|
|
20
|
-
padding: ${semanticSizes.global.padding.md}${' '}${semanticSizes.global
|
|
21
|
-
.padding.xl};
|
|
22
|
-
font-size: ${typographyTokens.fontSizes.bodyL};
|
|
23
|
-
`,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const buttonVariants = {
|
|
27
|
-
primary: css`
|
|
28
|
-
background: ${semanticColors.branding.surface.enabled};
|
|
29
|
-
color: ${semanticColors.base.background};
|
|
30
|
-
border: none;
|
|
31
|
-
&:hover {
|
|
32
|
-
background: ${semanticColors.branding.surface.hover};
|
|
33
|
-
}
|
|
34
|
-
&:active {
|
|
35
|
-
background: ${semanticColors.branding.surface.pressed};
|
|
36
|
-
}
|
|
37
|
-
&:disabled {
|
|
38
|
-
background: ${semanticColors.branding.surface.disabled};
|
|
39
|
-
}
|
|
40
|
-
`,
|
|
41
|
-
outline: css`
|
|
42
|
-
border: 1px solid ${semanticColors.branding.border.enabled};
|
|
43
|
-
color: ${semanticColors.branding.text.accent.enabled};
|
|
44
|
-
background: transparent;
|
|
45
|
-
&:hover {
|
|
46
|
-
border: 1px solid ${semanticColors.branding.border.hover};
|
|
47
|
-
color: ${semanticColors.branding.text.accent.hover};
|
|
48
|
-
}
|
|
49
|
-
&:active {
|
|
50
|
-
border: 1px solid ${semanticColors.branding.border.pressed};
|
|
51
|
-
color: ${semanticColors.branding.text.accent.pressed};
|
|
52
|
-
}
|
|
53
|
-
&:disabled {
|
|
54
|
-
color: ${semanticColors.branding.text.accent.disabled};
|
|
55
|
-
border: 1px solid ${semanticColors.branding.border.disabled};
|
|
56
|
-
}
|
|
57
|
-
`,
|
|
58
|
-
outline_ghost: css`
|
|
59
|
-
border: 1px solid ${semanticColors.global.text.subtitle.enabled};
|
|
60
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
61
|
-
background: transparent;
|
|
62
|
-
&:hover {
|
|
63
|
-
border: 1px solid ${semanticColors.global.text.subtitle.enabled};
|
|
64
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
65
|
-
}
|
|
66
|
-
&:active {
|
|
67
|
-
border: 1px solid ${semanticColors.global.text.subtitle.enabled};
|
|
68
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
69
|
-
}
|
|
70
|
-
&:disabled {
|
|
71
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
72
|
-
border: 1px solid ${semanticColors.global.text.onSurface.enabled};
|
|
73
|
-
background: ${semanticColors.global.surface.disabled};
|
|
74
|
-
}
|
|
75
|
-
`,
|
|
76
|
-
outline_ghost_disabled: css`
|
|
77
|
-
border: 1px solid ${semanticColors.global.border.medium};
|
|
78
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
79
|
-
background: transparent;
|
|
80
|
-
&:hover {
|
|
81
|
-
border: 1px solid ${semanticColors.global.text.subtitle.enabled};
|
|
82
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
83
|
-
}
|
|
84
|
-
&:active {
|
|
85
|
-
border: 1px solid ${semanticColors.global.text.subtitle.enabled};
|
|
86
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
87
|
-
}
|
|
88
|
-
&:disabled {
|
|
89
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
90
|
-
border: 1px solid ${semanticColors.global.text.onSurface.enabled};
|
|
91
|
-
background: ${semanticColors.global.surface.disabled};
|
|
92
|
-
}
|
|
93
|
-
`,
|
|
94
|
-
outline_danger: css`
|
|
95
|
-
border: 1px solid ${semanticColors.danger.surface.enabled};
|
|
96
|
-
color: ${semanticColors.danger.text.enabled};
|
|
97
|
-
background: transparent;
|
|
98
|
-
&:hover {
|
|
99
|
-
border: 1px solid ${semanticColors.danger.surface.hover};
|
|
100
|
-
color: ${semanticColors.danger.text.hover};
|
|
101
|
-
}
|
|
102
|
-
&:active {
|
|
103
|
-
border: 1px solid ${semanticColors.danger.surface.pressed};
|
|
104
|
-
color: ${semanticColors.danger.text.pressed};
|
|
105
|
-
}
|
|
106
|
-
&:disabled {
|
|
107
|
-
border: 1px solid ${semanticColors.danger.surface.disabled};
|
|
108
|
-
color: ${semanticColors.danger.text.disabled};
|
|
109
|
-
}
|
|
110
|
-
`,
|
|
111
|
-
ghost: css`
|
|
112
|
-
background: transparent;
|
|
113
|
-
color: ${semanticColors.branding.text.accent.enabled};
|
|
114
|
-
border: none;
|
|
115
|
-
&:hover {
|
|
116
|
-
color: ${semanticColors.branding.text.accent.hover};
|
|
117
|
-
}
|
|
118
|
-
&:active {
|
|
119
|
-
color: ${semanticColors.branding.text.accent.pressed};
|
|
120
|
-
}
|
|
121
|
-
&:disabled {
|
|
122
|
-
color: ${semanticColors.branding.text.accent.disabled};
|
|
123
|
-
}
|
|
124
|
-
`,
|
|
125
|
-
|
|
126
|
-
ghost_alert: css`
|
|
127
|
-
background: transparent;
|
|
128
|
-
color: ${semanticColors.danger.text.enabled};
|
|
129
|
-
border: none;
|
|
130
|
-
&:hover {
|
|
131
|
-
color: ${semanticColors.danger.text.hover};
|
|
132
|
-
}
|
|
133
|
-
&:active {
|
|
134
|
-
color: ${semanticColors.danger.text.pressed};
|
|
135
|
-
}
|
|
136
|
-
&:disabled {
|
|
137
|
-
color: ${semanticColors.danger.text.disabled};
|
|
138
|
-
}
|
|
139
|
-
`,
|
|
140
|
-
danger: css`
|
|
141
|
-
background: ${semanticColors.danger.surface.enabled};
|
|
142
|
-
color: ${semanticColors.danger.text.onSurface};
|
|
143
|
-
border: none;
|
|
144
|
-
&:hover {
|
|
145
|
-
background: ${semanticColors.danger.surface.hover};
|
|
146
|
-
}
|
|
147
|
-
&:active {
|
|
148
|
-
background: ${semanticColors.danger.surface.pressed};
|
|
149
|
-
}
|
|
150
|
-
&:disabled {
|
|
151
|
-
background: ${semanticColors.danger.surface.disabled};
|
|
152
|
-
}
|
|
153
|
-
`,
|
|
154
|
-
alert: css`
|
|
155
|
-
background: transparent;
|
|
156
|
-
color: ${semanticColors.neutral[700]};
|
|
157
|
-
border: 1px solid ${semanticColors.neutral[700]};
|
|
158
|
-
&:hover {
|
|
159
|
-
background: ${semanticColors.neutral[200]};
|
|
160
|
-
color: ${semanticColors.neutral[600]};
|
|
161
|
-
}
|
|
162
|
-
&:active {
|
|
163
|
-
background: ${semanticColors.neutral[300]};
|
|
164
|
-
}
|
|
165
|
-
&:disabled {
|
|
166
|
-
color: ${semanticColors.neutral[400]};
|
|
167
|
-
}
|
|
168
|
-
`,
|
|
169
|
-
|
|
170
|
-
'danger-no-fill': css`
|
|
171
|
-
background: transparent;
|
|
172
|
-
color: ${semanticColors.danger.text.enabled};
|
|
173
|
-
border: none;
|
|
174
|
-
&:hover {
|
|
175
|
-
color: ${semanticColors.danger.text.hover};
|
|
176
|
-
}
|
|
177
|
-
&:active {
|
|
178
|
-
color: ${semanticColors.danger.text.pressed};
|
|
179
|
-
}
|
|
180
|
-
&:disabled {
|
|
181
|
-
color: ${semanticColors.danger.text.disabled};
|
|
182
|
-
}
|
|
183
|
-
`,
|
|
184
|
-
'accent-outline': css`
|
|
185
|
-
background: transparent;
|
|
186
|
-
color: ${semanticColors.branding.text.accent.enabled};
|
|
187
|
-
border: 1px solid ${semanticColors.branding.border.enabled};
|
|
188
|
-
&:hover {
|
|
189
|
-
color: ${semanticColors.branding.text.accent.hover};
|
|
190
|
-
border: 1px solid ${semanticColors.branding.border.hover};
|
|
191
|
-
}
|
|
192
|
-
&:active {
|
|
193
|
-
color: ${semanticColors.branding.text.accent.pressed};
|
|
194
|
-
border: 1px solid ${semanticColors.branding.border.pressed};
|
|
195
|
-
}
|
|
196
|
-
&:disabled {
|
|
197
|
-
color: ${semanticColors.branding.text.accent.disabled};
|
|
198
|
-
border: 1px solid ${semanticColors.branding.border.disabled};
|
|
199
|
-
}
|
|
200
|
-
`,
|
|
201
|
-
'accent-fill': css`
|
|
202
|
-
background: ${semanticColors.branding.surface.enabled};
|
|
203
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
204
|
-
border: none;
|
|
205
|
-
&:hover {
|
|
206
|
-
background: ${semanticColors.branding.surface.hover};
|
|
207
|
-
}
|
|
208
|
-
&:active {
|
|
209
|
-
background: ${semanticColors.branding.surface.pressed};
|
|
210
|
-
}
|
|
211
|
-
&:disabled {
|
|
212
|
-
background: ${semanticColors.branding.surface.disabled};
|
|
213
|
-
}
|
|
214
|
-
`,
|
|
215
|
-
'secondary-outline': css`
|
|
216
|
-
background: transparent;
|
|
217
|
-
color: ${semanticColors.global.text.subtitle.enabled};
|
|
218
|
-
border: 1px solid ${semanticColors.global.border.strong};
|
|
219
|
-
&:hover {
|
|
220
|
-
background: ${semanticColors.neutral[200]};
|
|
221
|
-
}
|
|
222
|
-
&:active {
|
|
223
|
-
background: ${semanticColors.neutral[300]};
|
|
224
|
-
}
|
|
225
|
-
&:disabled {
|
|
226
|
-
color: ${semanticColors.global.text.onSurface.enabled};
|
|
227
|
-
border: 1px solid ${semanticColors.global.text.onSurface.enabled};
|
|
228
|
-
background: ${semanticColors.global.surface.disabled};
|
|
229
|
-
}
|
|
230
|
-
`,
|
|
231
|
-
'danger-fill': css`
|
|
232
|
-
background: ${semanticColors.danger.surface.enabled};
|
|
233
|
-
color: ${semanticColors.danger.text.onSurface};
|
|
234
|
-
border: none;
|
|
235
|
-
&:hover {
|
|
236
|
-
background: ${semanticColors.danger.surface.hover};
|
|
237
|
-
}
|
|
238
|
-
&:active {
|
|
239
|
-
background: ${semanticColors.danger.surface.pressed};
|
|
240
|
-
}
|
|
241
|
-
&:disabled {
|
|
242
|
-
background: ${semanticColors.danger.surface.disabled};
|
|
243
|
-
}
|
|
244
|
-
`,
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
export const StyledButton = styled.button<{
|
|
248
|
-
$size: keyof typeof buttonSizes;
|
|
249
|
-
$variant: keyof typeof buttonVariants;
|
|
250
|
-
$width?: string;
|
|
251
|
-
$height?: string;
|
|
252
|
-
$radius?: string;
|
|
253
|
-
$fontSize?: string;
|
|
254
|
-
$disabled?: boolean;
|
|
255
|
-
}>`
|
|
256
|
-
display: flex;
|
|
257
|
-
align-items: center;
|
|
258
|
-
justify-content: center;
|
|
259
|
-
font-weight: 500;
|
|
260
|
-
border-radius: ${({ $radius }) =>
|
|
261
|
-
semanticRadius.global.radius[
|
|
262
|
-
($radius as keyof typeof semanticRadius.global.radius) || 'md'
|
|
263
|
-
]};
|
|
264
|
-
cursor: pointer;
|
|
265
|
-
transition: all 0.2s ease-in-out;
|
|
266
|
-
|
|
267
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
268
|
-
|
|
269
|
-
${({ $size }) => buttonSizes[$size]}
|
|
270
|
-
${({ $variant }) => buttonVariants[$variant]}
|
|
271
|
-
|
|
272
|
-
width: ${({ $width }) => $width || 'auto'};
|
|
273
|
-
height: ${({ $height }) => $height || 'auto'};
|
|
274
|
-
|
|
275
|
-
&:disabled {
|
|
276
|
-
cursor: not-allowed;
|
|
277
|
-
opacity: 0.6;
|
|
278
|
-
}
|
|
279
|
-
`;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyledButton } from './Button.styles';
|
|
3
|
-
import { ButtonProps } from './Button.types';
|
|
4
|
-
import * as Icons from '@phosphor-icons/react';
|
|
5
|
-
import { semanticSizes } from '../../../styles/tokens';
|
|
6
|
-
|
|
7
|
-
const Button: React.FC<ButtonProps> = ({
|
|
8
|
-
children,
|
|
9
|
-
size = 'md',
|
|
10
|
-
variant = 'primary',
|
|
11
|
-
radius = 'md',
|
|
12
|
-
isLoading = false,
|
|
13
|
-
iconSize = 'lg',
|
|
14
|
-
leftIcon,
|
|
15
|
-
rightIcon,
|
|
16
|
-
width,
|
|
17
|
-
height,
|
|
18
|
-
testId,
|
|
19
|
-
...props
|
|
20
|
-
}) => {
|
|
21
|
-
const IconComponentLeft =
|
|
22
|
-
leftIcon && (Icons[leftIcon as keyof typeof Icons] as React.ElementType);
|
|
23
|
-
const IconComponentRight =
|
|
24
|
-
rightIcon && (Icons[rightIcon as keyof typeof Icons] as React.ElementType);
|
|
25
|
-
|
|
26
|
-
return (
|
|
27
|
-
<StyledButton
|
|
28
|
-
$size={size}
|
|
29
|
-
$variant={variant}
|
|
30
|
-
$radius={radius}
|
|
31
|
-
$width={width}
|
|
32
|
-
$height={height}
|
|
33
|
-
data-testid={testId}
|
|
34
|
-
id={testId}
|
|
35
|
-
{...props}
|
|
36
|
-
>
|
|
37
|
-
{isLoading ? (
|
|
38
|
-
<Icons.Spinner
|
|
39
|
-
size={
|
|
40
|
-
semanticSizes.global.padding[
|
|
41
|
-
iconSize as keyof typeof semanticSizes.global.padding
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
/>
|
|
45
|
-
) : (
|
|
46
|
-
<>
|
|
47
|
-
{IconComponentLeft && (
|
|
48
|
-
<span className="icon-left">
|
|
49
|
-
<IconComponentLeft
|
|
50
|
-
size={
|
|
51
|
-
semanticSizes.global.padding[
|
|
52
|
-
iconSize as keyof typeof semanticSizes.global.padding
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
/>
|
|
56
|
-
</span>
|
|
57
|
-
)}
|
|
58
|
-
{children}
|
|
59
|
-
{IconComponentRight && (
|
|
60
|
-
<span className="icon-right">
|
|
61
|
-
<IconComponentRight
|
|
62
|
-
size={
|
|
63
|
-
semanticSizes.global.padding[
|
|
64
|
-
iconSize as keyof typeof semanticSizes.global.padding
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
/>
|
|
68
|
-
</span>
|
|
69
|
-
)}
|
|
70
|
-
</>
|
|
71
|
-
)}
|
|
72
|
-
</StyledButton>
|
|
73
|
-
);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export default Button;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2
|
-
size?: 'sm' | 'md' | 'lg';
|
|
3
|
-
variant?:
|
|
4
|
-
| 'primary'
|
|
5
|
-
| 'outline'
|
|
6
|
-
| 'outline_ghost'
|
|
7
|
-
| 'outline_ghost_disabled'
|
|
8
|
-
| 'outline_danger'
|
|
9
|
-
| 'danger'
|
|
10
|
-
| 'ghost'
|
|
11
|
-
| 'ghost_alert'
|
|
12
|
-
| 'alert'
|
|
13
|
-
| 'danger-no-fill'
|
|
14
|
-
| 'accent-outline'
|
|
15
|
-
| 'accent-fill'
|
|
16
|
-
| 'secondary-outline'
|
|
17
|
-
| 'danger-fill';
|
|
18
|
-
radius?: string;
|
|
19
|
-
isLoading?: boolean;
|
|
20
|
-
leftIcon?: string;
|
|
21
|
-
rightIcon?: string;
|
|
22
|
-
iconSize?: string;
|
|
23
|
-
fontSize?: string;
|
|
24
|
-
width?: string;
|
|
25
|
-
height?: string;
|
|
26
|
-
testId?: string;
|
|
27
|
-
}
|