-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 27 - Componente de Calendário #302
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/Calendar/components/DateSelectorComposer/components/MonthSelector/index.js
Outdated
Show resolved
Hide resolved
src/components/Calendar/components/DateSelectorComposer/components/MonthSelector/index.js
Show resolved
Hide resolved
src/components/Calendar/components/WeekDayComposer/utils/weekDays.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tá quebrando o calendário em certos tamanhos, além disso, nesse mesmo problema, parece que os anos e os meses ficam andando muito rápido e isso buga a exibição, mas por print não parece
Seria legal também ter uma corzinha indicando o dia atual, mesmo que seja selecionado outro dia, isso resultará em uma navegação melhor
Quando você clica nos dias finais do mês anterior, ele seleciona do mês atual, ele deveria selecionar o dia daquele mês passado e a exibição ser do mês atual
...dar/components/DateSelectorComposer/components/SelectorModal/components/ModalItem/index.scss
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/Calendar/components/DayComposer/components/DayButton/index.js
Outdated
Show resolved
Hide resolved
Chega um momento que o scroll para de funcionar Também acho que deveria ser possível selecionar os meses ou os anos clicando e não apenas no scroll até pq o scroll ta meio difícil de controlar e acaba indo de 3 em 3 ou mais review.mp4 |
} | ||
|
||
const totalDaysInMonth = dayjs( | ||
`${this.year}-${this.month}-1`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Não precisa do -1
this.year = year; | ||
|
||
this.mountDayComposer(); | ||
this.firstDayInWeek = dayjs(`${this.year}-${this.month}-${this.day}`).day(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pq se chama firstDayInWeek sendo que ele não retorna o primeiro dia da semana e sim a posição que o dia selecionado está na semana?
} | ||
|
||
const totalDaysInMonth = dayjs( | ||
`${this.year}-${this.month}-1`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Não precisa do -1
@use '~styles/base.scss'; | ||
@use '~styles/colors.scss' as colors; | ||
@use '~styles/fonts.scss' as fonts; | ||
@use '~styles/breakpoints.scss' as breakpoints; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
É preciso importar tudo isso mesmo não usando?
@@ -0,0 +1,35 @@ | |||
@use '~styles/base.scss'; | |||
@use '~styles/colors.scss' as colors; | |||
@use '~styles/fonts.scss' as fonts; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
É preciso importar tudo isso mesmo não usando?
Closes #27
Feature
Foi criado o componente de calendário
Visual evidences 🖼️
Calendario.pra.frente.mp4
Calenario.para.tras.mp4
https://github.com/use
![Captura de tela 2024-09-08 102034](https://private-user-images.githubusercontent.com/134434652/365440972-0d77a829-4ef7-4319-a7ab-f70bc07e627f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MDMyMTUsIm5iZiI6MTczOTQwMjkxNSwicGF0aCI6Ii8xMzQ0MzQ2NTIvMzY1NDQwOTcyLTBkNzdhODI5LTRlZjctNDMxOS1hN2FiLWY3MGJjMDdlNjI3Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQyMzI4MzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04Nzg0MzJkNmQzZDNiNThhY2NhMTQ2MmJmNzI4NjQ3Nzg1ZDdlOGQzZGIxMzUxMmVhNzhjYmE2MTM4OGNlMjhlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.BX_8W6D3UDVMkO8hgG6pukQ2MyUjWRjtgX5qDgcbuOg)
r-attachments/assets/59105c54-daf3-445a-bf67-b395a605add0
Calendario.mobile.mp4
Checklist