@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,88 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticColors,
|
|
4
|
-
semanticSizes,
|
|
5
|
-
semanticRadius,
|
|
6
|
-
typographyTokens,
|
|
7
|
-
semanticBorders,
|
|
8
|
-
} from '../../../styles/tokens';
|
|
9
|
-
|
|
10
|
-
export const CheckboxWrapper = styled.label`
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
user-select: none;
|
|
16
|
-
position: relative;
|
|
17
|
-
width: fit-content;
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
export const StyledCheckbox = styled.input`
|
|
21
|
-
width: ${semanticSizes.global.padding.xl};
|
|
22
|
-
height: ${semanticSizes.global.padding.xl};
|
|
23
|
-
border: ${semanticBorders.global.sm} solid ${semanticColors.neutral[200]};
|
|
24
|
-
border-radius: ${semanticRadius.global.radius.sm};
|
|
25
|
-
appearance: none;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
position: relative;
|
|
28
|
-
transition: all 0.2s ease-in-out;
|
|
29
|
-
background: ${semanticColors.base.background};
|
|
30
|
-
flex-shrink: 0;
|
|
31
|
-
margin: 0;
|
|
32
|
-
|
|
33
|
-
&:checked {
|
|
34
|
-
background: ${semanticColors.branding.surface.enabled};
|
|
35
|
-
border-color: ${semanticColors.branding.border.enabled};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:disabled {
|
|
39
|
-
cursor: not-allowed;
|
|
40
|
-
opacity: 0.5;
|
|
41
|
-
background: ${semanticColors.global.surface.disabled};
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
44
|
-
|
|
45
|
-
export const CheckboxIconWrapper = styled.div<{ active: boolean }>`
|
|
46
|
-
position: absolute;
|
|
47
|
-
left: 0;
|
|
48
|
-
top: 0;
|
|
49
|
-
width: ${semanticSizes.global.padding.xl};
|
|
50
|
-
height: ${semanticSizes.global.padding.xl};
|
|
51
|
-
pointer-events: none;
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
|
|
56
|
-
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
57
|
-
opacity: ${({ active }) => (active ? 1 : 0)};
|
|
58
|
-
transform: ${({ active }) => (active ? 'scale(1)' : 'scale(0.5)')};
|
|
59
|
-
|
|
60
|
-
svg {
|
|
61
|
-
color: ${semanticColors.base.background};
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
|
|
65
|
-
export const CheckboxLabel = styled.span`
|
|
66
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
67
|
-
color: ${semanticColors.base.text};
|
|
68
|
-
line-height: 1;
|
|
69
|
-
`;
|
|
70
|
-
|
|
71
|
-
export const CheckboxGroupWrapper = styled.div`
|
|
72
|
-
display: flex;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
75
|
-
`;
|
|
76
|
-
|
|
77
|
-
export const CheckboxGroupHorizontal = styled(CheckboxGroupWrapper)`
|
|
78
|
-
flex-direction: row;
|
|
79
|
-
flex-wrap: wrap;
|
|
80
|
-
`;
|
|
81
|
-
|
|
82
|
-
export const SelectAllWrapper = styled.div`
|
|
83
|
-
display: flex;
|
|
84
|
-
flex-direction: column;
|
|
85
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
86
|
-
font-weight: bold;
|
|
87
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
88
|
-
`;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Check, Minus } from '@phosphor-icons/react'; // Adicionado Minus
|
|
3
|
-
import {
|
|
4
|
-
CheckboxWrapper,
|
|
5
|
-
StyledCheckbox,
|
|
6
|
-
CheckboxLabel,
|
|
7
|
-
CheckboxIconWrapper,
|
|
8
|
-
} from './Checkbox.styles';
|
|
9
|
-
import { CheckboxProps } from './Checkbox.types';
|
|
10
|
-
|
|
11
|
-
export const Checkbox: React.FC<CheckboxProps> = ({
|
|
12
|
-
label,
|
|
13
|
-
checked,
|
|
14
|
-
indeterminate,
|
|
15
|
-
onChange,
|
|
16
|
-
disabled = false,
|
|
17
|
-
...props
|
|
18
|
-
}) => {
|
|
19
|
-
const isActive = checked || indeterminate;
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<CheckboxWrapper>
|
|
23
|
-
<StyledCheckbox
|
|
24
|
-
type="checkbox"
|
|
25
|
-
checked={isActive}
|
|
26
|
-
onChange={onChange}
|
|
27
|
-
disabled={disabled}
|
|
28
|
-
{...props}
|
|
29
|
-
/>
|
|
30
|
-
{isActive && (
|
|
31
|
-
<CheckboxIconWrapper active={isActive}>
|
|
32
|
-
{indeterminate ? (
|
|
33
|
-
<Minus size={12} weight="bold" />
|
|
34
|
-
) : (
|
|
35
|
-
<Check size={12} weight="bold" />
|
|
36
|
-
)}
|
|
37
|
-
</CheckboxIconWrapper>
|
|
38
|
-
)}
|
|
39
|
-
{label && <CheckboxLabel>{label}</CheckboxLabel>}
|
|
40
|
-
</CheckboxWrapper>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
-
label?: string;
|
|
3
|
-
checked?: boolean;
|
|
4
|
-
indeterminate?: boolean;
|
|
5
|
-
onChange?: () => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface CheckboxGroupProps {
|
|
10
|
-
options: { label: string; value: string }[];
|
|
11
|
-
selected: string[];
|
|
12
|
-
setSelected: (values: string[]) => void;
|
|
13
|
-
direction?: 'vertical' | 'horizontal';
|
|
14
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Checkbox } from './Checkbox';
|
|
3
|
-
import { CheckboxGroupProps } from './Checkbox.types';
|
|
4
|
-
import {
|
|
5
|
-
CheckboxGroupWrapper,
|
|
6
|
-
CheckboxGroupHorizontal,
|
|
7
|
-
} from './Checkbox.styles';
|
|
8
|
-
|
|
9
|
-
export const CheckboxGroup: React.FC<CheckboxGroupProps> = ({
|
|
10
|
-
options,
|
|
11
|
-
selected,
|
|
12
|
-
setSelected,
|
|
13
|
-
direction = 'vertical',
|
|
14
|
-
}) => {
|
|
15
|
-
const handleChange = (value: string) => {
|
|
16
|
-
const newSelected = selected.includes(value)
|
|
17
|
-
? selected.filter((v: string) => v !== value)
|
|
18
|
-
: [...selected, value];
|
|
19
|
-
setSelected(newSelected);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const Wrapper =
|
|
23
|
-
direction === 'horizontal' ? CheckboxGroupHorizontal : CheckboxGroupWrapper;
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Wrapper>
|
|
27
|
-
{options.map((option) => (
|
|
28
|
-
<Checkbox
|
|
29
|
-
key={option.value}
|
|
30
|
-
label={option.label}
|
|
31
|
-
checked={selected.includes(option.value)}
|
|
32
|
-
onChange={() => handleChange(option.value)}
|
|
33
|
-
/>
|
|
34
|
-
))}
|
|
35
|
-
</Wrapper>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Checkbox } from './Checkbox';
|
|
3
|
-
import { CheckboxGroup } from './CheckboxGroup';
|
|
4
|
-
import { CheckboxGroupProps } from './Checkbox.types';
|
|
5
|
-
import { SelectAllWrapper } from './Checkbox.styles';
|
|
6
|
-
|
|
7
|
-
export const CheckboxSelectAll: React.FC<CheckboxGroupProps> = ({
|
|
8
|
-
options,
|
|
9
|
-
selected,
|
|
10
|
-
setSelected,
|
|
11
|
-
}) => {
|
|
12
|
-
const allSelected = selected.length === options.length;
|
|
13
|
-
|
|
14
|
-
const handleSelectAll = () => {
|
|
15
|
-
setSelected(allSelected ? [] : options.map((option) => option.value));
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<SelectAllWrapper>
|
|
20
|
-
<Checkbox
|
|
21
|
-
label="Selecionar todos"
|
|
22
|
-
checked={allSelected}
|
|
23
|
-
onChange={handleSelectAll}
|
|
24
|
-
/>
|
|
25
|
-
<CheckboxGroup
|
|
26
|
-
options={options}
|
|
27
|
-
selected={selected}
|
|
28
|
-
setSelected={setSelected}
|
|
29
|
-
/>
|
|
30
|
-
</SelectAllWrapper>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
primitiveSizes,
|
|
3
|
-
semanticBorders,
|
|
4
|
-
semanticColors,
|
|
5
|
-
semanticSizes,
|
|
6
|
-
semanticRadius,
|
|
7
|
-
typographyTokens,
|
|
8
|
-
} from '../../../styles/tokens';
|
|
9
|
-
import { styled } from 'styled-components';
|
|
10
|
-
|
|
11
|
-
const borderColor = semanticColors.global.border.strong;
|
|
12
|
-
const inputWidth = semanticSizes.global.spacings.lg;
|
|
13
|
-
const inputHeight = primitiveSizes.size.x14;
|
|
14
|
-
const fontSize = typographyTokens.fontSizes.labelL;
|
|
15
|
-
const borderRadius = semanticRadius.global.radius.md;
|
|
16
|
-
const borderStyle = semanticBorders.global.sm;
|
|
17
|
-
|
|
18
|
-
export const StyledCodeInput = styled.input`
|
|
19
|
-
width: ${inputWidth};
|
|
20
|
-
height: ${inputHeight};
|
|
21
|
-
font-size: ${fontSize};
|
|
22
|
-
text-align: center;
|
|
23
|
-
border-top: ${borderStyle} solid ${borderColor};
|
|
24
|
-
border-bottom: ${borderStyle} solid ${borderColor};
|
|
25
|
-
border-left: 0;
|
|
26
|
-
border-right: ${borderStyle} solid ${borderColor};
|
|
27
|
-
|
|
28
|
-
&:first-child {
|
|
29
|
-
border-top-left-radius: ${borderRadius};
|
|
30
|
-
border-bottom-left-radius: ${borderRadius};
|
|
31
|
-
border-left: ${borderStyle} solid ${borderColor};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:last-child {
|
|
35
|
-
border-top-right-radius: ${borderRadius};
|
|
36
|
-
border-bottom-right-radius: ${borderRadius};
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyledCodeInput } from './CodeInput.styles';
|
|
3
|
-
import { CodeInputProps } from './CodeInput.types';
|
|
4
|
-
|
|
5
|
-
const CodeInput = React.forwardRef<HTMLInputElement, CodeInputProps>(
|
|
6
|
-
({ ...props }, ref) => {
|
|
7
|
-
return <StyledCodeInput ref={ref} type="text" {...props} />;
|
|
8
|
-
}
|
|
9
|
-
);
|
|
10
|
-
|
|
11
|
-
CodeInput.displayName = 'CodeInput';
|
|
12
|
-
|
|
13
|
-
export default CodeInput;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
// DatePicker.styles.ts
|
|
2
|
-
import { createGlobalStyle, styled } from 'styled-components';
|
|
3
|
-
import ReactDatePicker, {
|
|
4
|
-
DatePickerProps,
|
|
5
|
-
registerLocale,
|
|
6
|
-
} from 'react-datepicker';
|
|
7
|
-
import { ptBR } from 'date-fns/locale';
|
|
8
|
-
import {
|
|
9
|
-
semanticColors,
|
|
10
|
-
semanticRadius,
|
|
11
|
-
typographyTokens,
|
|
12
|
-
semanticSizes,
|
|
13
|
-
} from '../../../styles/tokens';
|
|
14
|
-
|
|
15
|
-
// register Portuguese‐Brazil locale
|
|
16
|
-
registerLocale('pt-BR', ptBR);
|
|
17
|
-
|
|
18
|
-
// 1) Global overrides for the popup calendar:
|
|
19
|
-
export const DatePickerGlobalStyles = createGlobalStyle`
|
|
20
|
-
.react-datepicker {
|
|
21
|
-
background: ${semanticColors.base.background};
|
|
22
|
-
border: 1px solid ${semanticColors.neutral[300]};
|
|
23
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
24
|
-
font-family: inherit;
|
|
25
|
-
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.react-datepicker__header {
|
|
29
|
-
background: ${semanticColors.neutral[100]};
|
|
30
|
-
border-bottom: none;
|
|
31
|
-
border-top-left-radius: ${semanticRadius.global.radius.md};
|
|
32
|
-
border-top-right-radius: ${semanticRadius.global.radius.md};
|
|
33
|
-
padding: ${semanticSizes.global.padding.sm};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.react-datepicker__current-month {
|
|
37
|
-
font-size: ${typographyTokens.fontSizes.bodyM};
|
|
38
|
-
color: ${semanticColors.base.text};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.react-datepicker__day-name,
|
|
42
|
-
.react-datepicker__day {
|
|
43
|
-
width: 2rem;
|
|
44
|
-
line-height: 2rem;
|
|
45
|
-
margin: 0.1rem;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.react-datepicker__day--selected {
|
|
49
|
-
background-color: ${semanticColors.branding.surface.enabled};
|
|
50
|
-
color: ${semanticColors.base.background};
|
|
51
|
-
border-radius: 50%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.react-datepicker__triangle {
|
|
55
|
-
display: none;
|
|
56
|
-
}
|
|
57
|
-
`;
|
|
58
|
-
|
|
59
|
-
// 2) Styled input only:
|
|
60
|
-
export const StyledDatePicker = styled(
|
|
61
|
-
ReactDatePicker as unknown as React.ComponentType<DatePickerProps>
|
|
62
|
-
)`
|
|
63
|
-
width: 100%;
|
|
64
|
-
padding: 0.75rem ${semanticSizes.global.padding.md};
|
|
65
|
-
border: 1px solid ${semanticColors.neutral[300]};
|
|
66
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
67
|
-
font-size: ${typographyTokens.fontSizes.bodyS};
|
|
68
|
-
color: ${semanticColors.base.text};
|
|
69
|
-
|
|
70
|
-
&:focus {
|
|
71
|
-
outline: none;
|
|
72
|
-
border-color: ${semanticColors.branding.surface.enabled};
|
|
73
|
-
box-shadow: 0 0 0 2px ${semanticColors.branding.surface.enabled}33;
|
|
74
|
-
}
|
|
75
|
-
`;
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { DatePickerGlobalStyles, StyledDatePicker } from './DatePicker.styles';
|
|
4
|
-
import 'react-datepicker/dist/react-datepicker.css';
|
|
5
|
-
import { parse, isValid, format } from 'date-fns';
|
|
6
|
-
|
|
7
|
-
export interface DatePickerInputProps {
|
|
8
|
-
mode?: 'single' | 'range';
|
|
9
|
-
selected: Date | [Date, Date];
|
|
10
|
-
onChange: (date: Date | [Date, Date]) => void;
|
|
11
|
-
minDate?: Date;
|
|
12
|
-
maxDate?: Date;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const DF = 'dd/MM/yyyy';
|
|
18
|
-
|
|
19
|
-
// ---------- helpers de parse/format ----------
|
|
20
|
-
function parseBRDate(s: string): Date | null {
|
|
21
|
-
const d = parse(s, DF, new Date());
|
|
22
|
-
return isValid(d) ? d : null;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function maskDateDigits(digits: string) {
|
|
26
|
-
let v = digits.replace(/\D/g, '').slice(0, 8);
|
|
27
|
-
if (v.length >= 5) v = v.replace(/^(\d{2})(\d{2})(\d{0,4}).*/, '$1/$2/$3');
|
|
28
|
-
else if (v.length >= 3) v = v.replace(/^(\d{2})(\d{0,2}).*/, '$1/$2');
|
|
29
|
-
return v;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function autoMaskSingle(input: string) {
|
|
33
|
-
const digits = input.replace(/\D/g, '');
|
|
34
|
-
return maskDateDigits(digits);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function autoMaskRange(input: string) {
|
|
38
|
-
const parts = input.split(/\s*[-–]\s*/);
|
|
39
|
-
const left = autoMaskSingle(parts[0] || '');
|
|
40
|
-
const right = autoMaskSingle(parts[1] || '');
|
|
41
|
-
return right ? `${left} - ${right}` : left;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function tryCommitSingle(value: string): Date | null {
|
|
45
|
-
return parseBRDate(value);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function tryCommitRange(value: string): [Date | null, Date | null] {
|
|
49
|
-
const [a, b] = value.split(/\s*[-–]\s*/);
|
|
50
|
-
return [a ? parseBRDate(a) : null, b ? parseBRDate(b) : null];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Tipo que o StyledDatePicker espera em onChangeRaw
|
|
54
|
-
type RawEvt =
|
|
55
|
-
| React.MouseEvent<HTMLElement>
|
|
56
|
-
| React.KeyboardEvent<HTMLElement>
|
|
57
|
-
| undefined;
|
|
58
|
-
|
|
59
|
-
// Extrai com segurança o input do evento (alvo pode não ser input diretamente)
|
|
60
|
-
function getInputFromRawEvent(e: RawEvt): HTMLInputElement | null {
|
|
61
|
-
const target = e?.target as HTMLElement | undefined;
|
|
62
|
-
if (!target) return null;
|
|
63
|
-
if (target instanceof HTMLInputElement) return target;
|
|
64
|
-
const input = target.closest('input');
|
|
65
|
-
return (input as HTMLInputElement) || null;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export const DatePickerInput: React.FC<DatePickerInputProps> = ({
|
|
69
|
-
mode = 'single',
|
|
70
|
-
selected,
|
|
71
|
-
onChange,
|
|
72
|
-
minDate,
|
|
73
|
-
maxDate,
|
|
74
|
-
placeholder,
|
|
75
|
-
...rest
|
|
76
|
-
}) => {
|
|
77
|
-
// SINGLE
|
|
78
|
-
const handleChangeRawSingle = (e: RawEvt) => {
|
|
79
|
-
const el = getInputFromRawEvent(e);
|
|
80
|
-
if (!el) return;
|
|
81
|
-
el.value = autoMaskSingle(el.value);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const handleBlurSingle = (e: React.FocusEvent<HTMLInputElement>) => {
|
|
85
|
-
const el = e.target;
|
|
86
|
-
const d = tryCommitSingle(el.value);
|
|
87
|
-
if (d) {
|
|
88
|
-
el.value = format(d, DF);
|
|
89
|
-
onChange(d);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
// RANGE
|
|
94
|
-
const handleChangeRawRange = (e: RawEvt) => {
|
|
95
|
-
const el = getInputFromRawEvent(e);
|
|
96
|
-
if (!el) return;
|
|
97
|
-
el.value = autoMaskRange(el.value);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const handleBlurRange = (e: React.FocusEvent<HTMLInputElement>) => {
|
|
101
|
-
const el = e.target;
|
|
102
|
-
const [d1, d2] = tryCommitRange(el.value);
|
|
103
|
-
|
|
104
|
-
if (d1) {
|
|
105
|
-
const oldRight = Array.isArray(selected) ? selected[1] : undefined;
|
|
106
|
-
const payload: [Date, Date] = [d1, (d2 || (oldRight as Date)) as Date];
|
|
107
|
-
const left = format(d1, DF);
|
|
108
|
-
const right = d2 ? format(d2, DF) : '';
|
|
109
|
-
el.value = right ? `${left} - ${right}` : left;
|
|
110
|
-
onChange(payload);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
return (
|
|
115
|
-
<>
|
|
116
|
-
<DatePickerGlobalStyles />
|
|
117
|
-
|
|
118
|
-
{mode === 'range' ? (
|
|
119
|
-
<StyledDatePicker
|
|
120
|
-
locale="pt-BR"
|
|
121
|
-
selectsRange
|
|
122
|
-
startDate={(selected as [Date, Date])[0] || undefined}
|
|
123
|
-
endDate={(selected as [Date, Date])[1] || undefined}
|
|
124
|
-
selected={(selected as [Date, Date])[0] || undefined}
|
|
125
|
-
onChange={(d) => onChange(d as [Date, Date])}
|
|
126
|
-
minDate={minDate}
|
|
127
|
-
maxDate={maxDate}
|
|
128
|
-
placeholderText={placeholder}
|
|
129
|
-
dateFormat={DF}
|
|
130
|
-
onChangeRaw={handleChangeRawRange} // << tipo compatível
|
|
131
|
-
onBlur={handleBlurRange}
|
|
132
|
-
{...rest}
|
|
133
|
-
/>
|
|
134
|
-
) : (
|
|
135
|
-
<StyledDatePicker
|
|
136
|
-
locale="pt-BR"
|
|
137
|
-
selected={
|
|
138
|
-
Array.isArray(selected)
|
|
139
|
-
? selected[0]
|
|
140
|
-
: (selected as Date) || undefined
|
|
141
|
-
}
|
|
142
|
-
onChange={(d) => onChange(d as Date)}
|
|
143
|
-
minDate={minDate}
|
|
144
|
-
maxDate={maxDate}
|
|
145
|
-
placeholderText={placeholder}
|
|
146
|
-
dateFormat={DF}
|
|
147
|
-
onChangeRaw={handleChangeRawSingle} // << tipo compatível
|
|
148
|
-
onBlur={handleBlurSingle}
|
|
149
|
-
{...rest}
|
|
150
|
-
/>
|
|
151
|
-
)}
|
|
152
|
-
</>
|
|
153
|
-
);
|
|
154
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
semanticBorders,
|
|
4
|
-
semanticColors,
|
|
5
|
-
semanticRadius,
|
|
6
|
-
semanticShadows,
|
|
7
|
-
semanticSizes,
|
|
8
|
-
typographyTokens,
|
|
9
|
-
} from '../../../styles/tokens';
|
|
10
|
-
import { Variant } from './DropdownMenu.types';
|
|
11
|
-
|
|
12
|
-
export const Wrapper = styled.div`
|
|
13
|
-
position: relative;
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
justify-content: flex-start;
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const ToggleButton = styled.button<{
|
|
19
|
-
$variant: Variant;
|
|
20
|
-
$open: boolean;
|
|
21
|
-
}>`
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
26
|
-
padding: ${semanticSizes.global.padding.lg};
|
|
27
|
-
height: ${semanticSizes.global.spacings.lg};
|
|
28
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
29
|
-
border: none;
|
|
30
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
transition: opacity 0.2s;
|
|
33
|
-
min-width: 160px;
|
|
34
|
-
|
|
35
|
-
${(props) =>
|
|
36
|
-
props.$variant === 'light'
|
|
37
|
-
? css`
|
|
38
|
-
background-color: ${semanticColors.branding.border.enabled};
|
|
39
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
40
|
-
`
|
|
41
|
-
: css`
|
|
42
|
-
background-color: ${semanticColors.global.surface.default};
|
|
43
|
-
color: ${semanticColors.branding.border.enabled};
|
|
44
|
-
border: ${semanticBorders.global.sm} solid
|
|
45
|
-
${semanticColors.branding.border.enabled};
|
|
46
|
-
`}
|
|
47
|
-
|
|
48
|
-
&:hover {
|
|
49
|
-
opacity: 0.9;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
|
|
53
|
-
export const LabelText = styled.span`
|
|
54
|
-
font-weight: ${typographyTokens.fontWeights.medium};
|
|
55
|
-
`;
|
|
56
|
-
|
|
57
|
-
export const Menu = styled.div<{ $variant: Variant }>`
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: calc(100% + ${semanticSizes.global.gap.xs});
|
|
60
|
-
right: 0;
|
|
61
|
-
width: 100%;
|
|
62
|
-
padding: ${semanticSizes.global.padding.sm} 0;
|
|
63
|
-
border-radius: ${semanticRadius.global.radius.md};
|
|
64
|
-
box-shadow: ${semanticShadows.shadow.default};
|
|
65
|
-
display: grid;
|
|
66
|
-
gap: ${semanticSizes.global.gap.xs};
|
|
67
|
-
z-index: 10;
|
|
68
|
-
|
|
69
|
-
${(props) =>
|
|
70
|
-
props.$variant === 'light'
|
|
71
|
-
? css`
|
|
72
|
-
background-color: ${semanticColors.global.surface.default};
|
|
73
|
-
color: ${semanticColors.global.text.default.enabled};
|
|
74
|
-
`
|
|
75
|
-
: css`
|
|
76
|
-
background-color: ${semanticColors.branding.surface.enabled};
|
|
77
|
-
color: ${semanticColors.branding.text.onSurfaceAccent.enabled};
|
|
78
|
-
`}
|
|
79
|
-
`;
|
|
80
|
-
|
|
81
|
-
export const Item = styled.div`
|
|
82
|
-
display: inline-grid;
|
|
83
|
-
grid-auto-flow: column;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: flex-start;
|
|
86
|
-
gap: ${semanticSizes.global.gap.sm};
|
|
87
|
-
padding: ${semanticSizes.global.padding.sm} ${semanticSizes.global.padding.lg};
|
|
88
|
-
font-size: ${typographyTokens.fontSizes.labelS};
|
|
89
|
-
cursor: pointer;
|
|
90
|
-
|
|
91
|
-
&:hover {
|
|
92
|
-
background-color: ${semanticColors.neutral['100']};
|
|
93
|
-
}
|
|
94
|
-
`;
|
|
95
|
-
|
|
96
|
-
export const IconWrapper = styled.span`
|
|
97
|
-
display: flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
justify-content: center;
|
|
100
|
-
flex-shrink: 0;
|
|
101
|
-
`;
|
|
102
|
-
|
|
103
|
-
export const ItemLabel = styled.span`
|
|
104
|
-
flex: 1;
|
|
105
|
-
text-align: left;
|
|
106
|
-
`;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { ChevronDown, ChevronUp } from 'lucide-react';
|
|
3
|
-
import {
|
|
4
|
-
Wrapper,
|
|
5
|
-
ToggleButton,
|
|
6
|
-
LabelText,
|
|
7
|
-
Menu,
|
|
8
|
-
Item,
|
|
9
|
-
IconWrapper,
|
|
10
|
-
ItemLabel,
|
|
11
|
-
} from './DropdownMenu.styles';
|
|
12
|
-
import { DropdownMenuProps, DropdownMenuItemProps } from './DropdownMenu.types';
|
|
13
|
-
|
|
14
|
-
export const DropdownMenu: React.FC<DropdownMenuProps> = ({
|
|
15
|
-
label,
|
|
16
|
-
variant = 'light',
|
|
17
|
-
children,
|
|
18
|
-
}) => {
|
|
19
|
-
const [open, setOpen] = useState(false);
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<Wrapper>
|
|
23
|
-
<ToggleButton
|
|
24
|
-
onClick={() => setOpen((o) => !o)}
|
|
25
|
-
$variant={variant}
|
|
26
|
-
$open={open}
|
|
27
|
-
>
|
|
28
|
-
<LabelText>{label}</LabelText>
|
|
29
|
-
{open ? <ChevronUp size={16} /> : <ChevronDown size={16} />}
|
|
30
|
-
</ToggleButton>
|
|
31
|
-
{open && <Menu $variant={variant}>{children}</Menu>}
|
|
32
|
-
</Wrapper>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export const DropdownMenuItem: React.FC<DropdownMenuItemProps> = ({
|
|
37
|
-
icon,
|
|
38
|
-
onClick,
|
|
39
|
-
children,
|
|
40
|
-
}) => (
|
|
41
|
-
<Item onClick={onClick}>
|
|
42
|
-
{icon && <IconWrapper>{icon}</IconWrapper>}
|
|
43
|
-
<ItemLabel>{children}</ItemLabel>
|
|
44
|
-
</Item>
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
48
|
-
DropdownMenuItem.displayName = 'DropdownMenuItem';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export type Variant = 'light' | 'dark';
|
|
4
|
-
|
|
5
|
-
export interface DropdownMenuProps {
|
|
6
|
-
label: string;
|
|
7
|
-
variant?: Variant;
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface DropdownMenuItemProps {
|
|
12
|
-
icon?: ReactNode;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}
|