@mindly/ui-components 3.1.5 → 3.1.7
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/README.md +2 -2
- package/dist/cjs/index.js +166 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/{index.ts → cjs/types/index.d.ts} +9 -71
- package/dist/cjs/types/lib/AppHeader/AppHeader.d.ts +6 -0
- package/dist/cjs/types/lib/AppHeader/AppHeader.style.d.ts +7 -0
- package/dist/cjs/types/lib/Avatar/Avatar.d.ts +9 -0
- package/dist/cjs/types/lib/Avatar/Avatar.style.d.ts +5 -0
- package/dist/cjs/types/lib/Container/Container.d.ts +3 -0
- package/dist/cjs/types/lib/Container/Container.styled.d.ts +5 -0
- package/dist/cjs/types/lib/EntryNotFound/EntryNotFound.d.ts +5 -0
- package/dist/cjs/types/lib/EntryNotFound/EntryNotFound.style.d.ts +2 -0
- package/dist/cjs/types/lib/Filters/ListSelect/ListSelect.d.ts +13 -0
- package/dist/cjs/types/lib/Filters/ListSelect/ListSelect.style.d.ts +9 -0
- package/dist/cjs/types/lib/Filters/Range/Range.d.ts +14 -0
- package/dist/cjs/types/lib/Filters/Range/Range.style.d.ts +3 -0
- package/dist/cjs/types/lib/Filters/RowSelect/RowSelect.d.ts +13 -0
- package/dist/cjs/types/lib/Filters/RowSelect/RowSelect.style.d.ts +7 -0
- package/dist/cjs/types/lib/Filters/Toggle/Toggle.d.ts +8 -0
- package/dist/cjs/types/lib/Filters/Toggle/Toggle.style.d.ts +2 -0
- package/dist/cjs/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +40 -0
- package/dist/cjs/types/lib/HorisontalCalendar/HorizontalCalendar.styled.d.ts +2 -0
- package/dist/cjs/types/lib/ImageWithFallback/ImageWithFallback.d.ts +6 -0
- package/dist/cjs/types/lib/LetterAvatar/LetterAvatar.d.ts +9 -0
- package/dist/cjs/types/lib/LetterAvatar/LetterAvatar.styled.d.ts +5 -0
- package/dist/cjs/types/lib/Modal/Modal.d.ts +8 -0
- package/dist/cjs/types/lib/Modal/Modal.style.d.ts +6 -0
- package/dist/cjs/types/lib/ModalCalendar/ModalCalendar.d.ts +10 -0
- package/dist/cjs/types/lib/ModalCalendar/ModalCalendar.styled.d.ts +12 -0
- package/dist/cjs/types/lib/PersonDateTimeCard/PersonDateTimeCard.d.ts +8 -0
- package/dist/cjs/types/lib/PersonDateTimeCard/PersonDateTimeCard.styled.d.ts +2 -0
- package/dist/cjs/types/lib/Segment/Segment.d.ts +9 -0
- package/dist/cjs/types/lib/Segment/Segment.style.d.ts +3 -0
- package/dist/cjs/types/lib/Segment/types.d.ts +4 -0
- package/dist/cjs/types/lib/SelectImpressionEmoji/ImpressionEmojiEnum.d.ts +8 -0
- package/dist/cjs/types/lib/SelectImpressionEmoji/SelectImpressionEmoji.d.ts +4 -0
- package/dist/cjs/types/lib/SelectImpressionEmoji/SelectImpressionEmoji.styled.d.ts +2 -0
- package/dist/cjs/types/lib/SelectImpressionEmoji/SelectImpressionEmojiProps.d.ts +6 -0
- package/dist/cjs/types/lib/SelectImpressionEmoji/emojis.d.ts +5 -0
- package/dist/cjs/types/lib/SelectImpressionEmoji/index.d.ts +4 -0
- package/dist/cjs/types/lib/Theme/mindly_constants.d.ts +22 -0
- package/dist/cjs/types/lib/UsersPsychologistScrollList/UserPsychologistScrollList.styled.d.ts +6 -0
- package/dist/cjs/types/lib/UsersPsychologistScrollList/UsersPsychologistScrollList.d.ts +10 -0
- package/dist/cjs/types/lib/archived-consultation-card/ArchivedConsultationCard.d.ts +14 -0
- package/dist/cjs/types/lib/archived-consultation-card/ArchivedConsultationCard.style.d.ts +3 -0
- package/dist/cjs/types/lib/button/Button.d.ts +9 -0
- package/dist/cjs/types/lib/button/Button.style.d.ts +6 -0
- package/dist/cjs/types/lib/consultation-card/ConsultationCard.d.ts +31 -0
- package/dist/cjs/types/lib/consultation-card/ConsultationCard.style.d.ts +7 -0
- package/dist/cjs/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +2 -0
- package/dist/cjs/types/lib/content-card/ContentCard.d.ts +15 -0
- package/dist/cjs/types/lib/content-card/ContentCard.style.d.ts +11 -0
- package/dist/cjs/types/lib/date-picker/DatePicker.d.ts +13 -0
- package/dist/cjs/types/lib/date-picker/DatePicker.style.d.ts +6 -0
- package/dist/cjs/types/lib/floating-button/FloatingButton.d.ts +8 -0
- package/dist/cjs/types/lib/floating-button/FloatingButton.style.d.ts +6 -0
- package/dist/cjs/types/lib/footer-for-booking/FooterForBooking.d.ts +10 -0
- package/dist/cjs/types/lib/footer-for-booking/FooterForBooking.style.d.ts +7 -0
- package/dist/cjs/types/lib/input/Input.d.ts +13 -0
- package/dist/cjs/types/lib/input/Input.style.d.ts +7 -0
- package/dist/cjs/types/lib/list-button/ListButton.d.ts +9 -0
- package/dist/cjs/types/lib/list-button/ListButton.style.d.ts +2 -0
- package/dist/cjs/types/lib/navigation-bar/NavigationBar.d.ts +8 -0
- package/dist/cjs/types/lib/navigation-bar/NavigationBar.style.d.ts +8 -0
- package/dist/cjs/types/lib/no-internet-connection/NoInternetConnection.d.ts +7 -0
- package/dist/cjs/types/lib/no-internet-connection/NoInternetConnection.style.d.ts +6 -0
- package/dist/cjs/types/lib/notes-card-text/NotesCardText.d.ts +6 -0
- package/dist/cjs/types/lib/notes-card-text/NotesCardText.style.d.ts +1 -0
- package/dist/cjs/types/lib/notes-editor/NotesEditor.d.ts +5 -0
- package/dist/cjs/types/lib/notes-editor/NotesEditor.styled.d.ts +2 -0
- package/dist/cjs/types/lib/scroll-tabs/ScrollTabs.d.ts +7 -0
- package/dist/cjs/types/lib/scroll-tabs/ScrollTabs.style.d.ts +3 -0
- package/dist/cjs/types/lib/tab-bar/TabBar.d.ts +6 -0
- package/dist/cjs/types/lib/tab-bar/TabBar.style.d.ts +5 -0
- package/dist/cjs/types/lib/therapist-card/TherapistCard.d.ts +13 -0
- package/dist/cjs/types/lib/therapist-card/TherapistCard.style.d.ts +5 -0
- package/dist/cjs/types/lib/therapist-information-component/TherapistInformationComponent.d.ts +10 -0
- package/dist/cjs/types/lib/therapist-information-component/TherapistInformationComponent.style.d.ts +2 -0
- package/dist/cjs/types/lib/toast/toast.d.ts +5 -0
- package/dist/cjs/types/lib/userAppTypes.d.ts +239 -0
- package/dist/cjs/types/lib/your-local-time-block/YourLocalTimeBlock.d.ts +6 -0
- package/dist/cjs/types/lib/your-local-time-block/YourLocalTimeBlock.styled.d.ts +2 -0
- package/dist/esm/b7649e1531c181af.svg +69 -0
- package/dist/esm/index.js +180 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/index.d.ts +44 -0
- package/dist/esm/types/lib/AppHeader/AppHeader.d.ts +6 -0
- package/dist/esm/types/lib/AppHeader/AppHeader.style.d.ts +7 -0
- package/dist/esm/types/lib/AppHeader/index.d.ts +1 -0
- package/dist/esm/types/lib/Avatar/Avatar.d.ts +9 -0
- package/dist/esm/types/lib/Avatar/Avatar.style.d.ts +5 -0
- package/dist/esm/types/lib/Avatar/index.d.ts +1 -0
- package/dist/esm/types/lib/Container/Container.d.ts +3 -0
- package/dist/esm/types/lib/Container/Container.styled.d.ts +5 -0
- package/dist/esm/types/lib/Container/index.d.ts +1 -0
- package/dist/esm/types/lib/EntryNotFound/EntryNotFound.d.ts +5 -0
- package/dist/esm/types/lib/EntryNotFound/EntryNotFound.style.d.ts +2 -0
- package/dist/esm/types/lib/EntryNotFound/index.d.ts +1 -0
- package/dist/esm/types/lib/Filters/ListSelect/ListSelect.d.ts +13 -0
- package/dist/esm/types/lib/Filters/ListSelect/ListSelect.style.d.ts +9 -0
- package/dist/esm/types/lib/Filters/ListSelect/index.d.ts +1 -0
- package/dist/esm/types/lib/Filters/Range/Range.d.ts +14 -0
- package/dist/esm/types/lib/Filters/Range/Range.style.d.ts +3 -0
- package/dist/esm/types/lib/Filters/Range/index.d.ts +1 -0
- package/dist/esm/types/lib/Filters/RowSelect/RowSelect.d.ts +13 -0
- package/dist/esm/types/lib/Filters/RowSelect/RowSelect.style.d.ts +7 -0
- package/dist/esm/types/lib/Filters/RowSelect/index.d.ts +1 -0
- package/dist/esm/types/lib/Filters/Toggle/Toggle.d.ts +8 -0
- package/dist/esm/types/lib/Filters/Toggle/Toggle.style.d.ts +2 -0
- package/dist/esm/types/lib/Filters/Toggle/index.d.ts +1 -0
- package/dist/esm/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +40 -0
- package/dist/esm/types/lib/HorisontalCalendar/HorizontalCalendar.styled.d.ts +2 -0
- package/dist/esm/types/lib/HorisontalCalendar/index.d.ts +1 -0
- package/dist/esm/types/lib/ImageWithFallback/ImageWithFallback.d.ts +6 -0
- package/dist/esm/types/lib/LetterAvatar/LetterAvatar.d.ts +9 -0
- package/dist/esm/types/lib/LetterAvatar/LetterAvatar.styled.d.ts +5 -0
- package/dist/esm/types/lib/Modal/Modal.d.ts +8 -0
- package/dist/esm/types/lib/Modal/Modal.style.d.ts +6 -0
- package/dist/esm/types/lib/Modal/index.d.ts +1 -0
- package/dist/esm/types/lib/ModalCalendar/ModalCalendar.d.ts +10 -0
- package/dist/esm/types/lib/ModalCalendar/ModalCalendar.styled.d.ts +12 -0
- package/dist/esm/types/lib/PersonDateTimeCard/PersonDateTimeCard.d.ts +8 -0
- package/dist/esm/types/lib/PersonDateTimeCard/PersonDateTimeCard.styled.d.ts +2 -0
- package/dist/esm/types/lib/Segment/Segment.d.ts +9 -0
- package/dist/esm/types/lib/Segment/Segment.style.d.ts +3 -0
- package/dist/esm/types/lib/Segment/index.d.ts +2 -0
- package/dist/esm/types/lib/Segment/types.d.ts +4 -0
- package/dist/esm/types/lib/SelectImpressionEmoji/ImpressionEmojiEnum.d.ts +8 -0
- package/dist/esm/types/lib/SelectImpressionEmoji/SelectImpressionEmoji.d.ts +4 -0
- package/dist/esm/types/lib/SelectImpressionEmoji/SelectImpressionEmoji.styled.d.ts +2 -0
- package/dist/esm/types/lib/SelectImpressionEmoji/SelectImpressionEmojiProps.d.ts +6 -0
- package/dist/esm/types/lib/SelectImpressionEmoji/emojis.d.ts +5 -0
- package/dist/esm/types/lib/SelectImpressionEmoji/index.d.ts +4 -0
- package/dist/esm/types/lib/Theme/mindly_constants.d.ts +22 -0
- package/dist/esm/types/lib/UsersPsychologistScrollList/UserPsychologistScrollList.styled.d.ts +6 -0
- package/dist/esm/types/lib/UsersPsychologistScrollList/UsersPsychologistScrollList.d.ts +10 -0
- package/dist/esm/types/lib/archived-consultation-card/ArchivedConsultationCard.d.ts +14 -0
- package/dist/esm/types/lib/archived-consultation-card/ArchivedConsultationCard.style.d.ts +3 -0
- package/dist/esm/types/lib/button/Button.d.ts +9 -0
- package/dist/esm/types/lib/button/Button.style.d.ts +6 -0
- package/dist/esm/types/lib/consultation-card/ConsultationCard.d.ts +31 -0
- package/dist/esm/types/lib/consultation-card/ConsultationCard.style.d.ts +7 -0
- package/dist/esm/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +2 -0
- package/dist/esm/types/lib/consultation-card/index.d.ts +2 -0
- package/dist/esm/types/lib/content-card/ContentCard.d.ts +15 -0
- package/dist/esm/types/lib/content-card/ContentCard.style.d.ts +11 -0
- package/dist/esm/types/lib/date-picker/DatePicker.d.ts +13 -0
- package/dist/esm/types/lib/date-picker/DatePicker.style.d.ts +6 -0
- package/dist/esm/types/lib/floating-button/FloatingButton.d.ts +8 -0
- package/dist/esm/types/lib/floating-button/FloatingButton.style.d.ts +6 -0
- package/dist/esm/types/lib/footer-for-booking/FooterForBooking.d.ts +10 -0
- package/dist/esm/types/lib/footer-for-booking/FooterForBooking.style.d.ts +7 -0
- package/dist/esm/types/lib/input/Input.d.ts +13 -0
- package/dist/esm/types/lib/input/Input.style.d.ts +7 -0
- package/dist/esm/types/lib/list-button/ListButton.d.ts +9 -0
- package/dist/esm/types/lib/list-button/ListButton.style.d.ts +2 -0
- package/dist/esm/types/lib/navigation-bar/NavigationBar.d.ts +8 -0
- package/dist/esm/types/lib/navigation-bar/NavigationBar.style.d.ts +8 -0
- package/dist/esm/types/lib/no-internet-connection/NoInternetConnection.d.ts +7 -0
- package/dist/esm/types/lib/no-internet-connection/NoInternetConnection.style.d.ts +6 -0
- package/dist/esm/types/lib/notes-card-text/NotesCardText.d.ts +6 -0
- package/dist/esm/types/lib/notes-card-text/NotesCardText.style.d.ts +1 -0
- package/dist/esm/types/lib/notes-card-text/index.d.ts +1 -0
- package/dist/esm/types/lib/notes-editor/NotesEditor.d.ts +5 -0
- package/dist/esm/types/lib/notes-editor/NotesEditor.styled.d.ts +2 -0
- package/dist/esm/types/lib/scroll-tabs/ScrollTabs.d.ts +7 -0
- package/dist/esm/types/lib/scroll-tabs/ScrollTabs.style.d.ts +3 -0
- package/dist/esm/types/lib/tab-bar/TabBar.d.ts +6 -0
- package/dist/esm/types/lib/tab-bar/TabBar.style.d.ts +5 -0
- package/dist/esm/types/lib/therapist-card/TherapistCard.d.ts +13 -0
- package/dist/esm/types/lib/therapist-card/TherapistCard.style.d.ts +5 -0
- package/dist/esm/types/lib/therapist-information-component/TherapistInformationComponent.d.ts +10 -0
- package/dist/esm/types/lib/therapist-information-component/TherapistInformationComponent.style.d.ts +2 -0
- package/dist/esm/types/lib/toast/toast.d.ts +5 -0
- package/dist/esm/types/lib/userAppTypes.d.ts +239 -0
- package/dist/esm/types/lib/your-local-time-block/YourLocalTimeBlock.d.ts +6 -0
- package/dist/esm/types/lib/your-local-time-block/YourLocalTimeBlock.styled.d.ts +2 -0
- package/dist/index.d.ts +420 -0
- package/package.json +17 -4
- package/dist/fonts/Lato-Bold.ttf +0 -0
- package/dist/fonts/Lato-Regular.ttf +0 -0
- package/dist/fonts/Lato-Semibold.ttf +0 -0
- package/dist/lib/AppHeader/AppHeader.style.ts +0 -19
- package/dist/lib/AppHeader/AppHeader.tsx +0 -23
- package/dist/lib/Avatar/Avatar.style.ts +0 -17
- package/dist/lib/Avatar/Avatar.tsx +0 -46
- package/dist/lib/Container/Container.styled.ts +0 -15
- package/dist/lib/Container/Container.tsx +0 -15
- package/dist/lib/EntryNotFound/EntryNotFound.style.ts +0 -14
- package/dist/lib/EntryNotFound/EntryNotFound.tsx +0 -21
- package/dist/lib/Filters/ListSelect/ListSelect.style.ts +0 -38
- package/dist/lib/Filters/ListSelect/ListSelect.tsx +0 -48
- package/dist/lib/Filters/Range/Range.style.ts +0 -41
- package/dist/lib/Filters/Range/Range.tsx +0 -48
- package/dist/lib/Filters/RowSelect/RowSelect.style.ts +0 -30
- package/dist/lib/Filters/RowSelect/RowSelect.tsx +0 -38
- package/dist/lib/Filters/Toggle/Toggle.style.ts +0 -14
- package/dist/lib/Filters/Toggle/Toggle.tsx +0 -26
- package/dist/lib/HorisontalCalendar/HorizontalCalendar.styled.ts +0 -117
- package/dist/lib/HorisontalCalendar/HorizontalCalendar.tsx +0 -213
- package/dist/lib/ImageWithFallback/ImageWithFallback.tsx +0 -37
- package/dist/lib/LetterAvatar/LetterAvatar.styled.ts +0 -32
- package/dist/lib/LetterAvatar/LetterAvatar.tsx +0 -23
- package/dist/lib/Modal/Modal.style.ts +0 -12
- package/dist/lib/Modal/Modal.tsx +0 -30
- package/dist/lib/ModalCalendar/ModalCalendar.styled.ts +0 -123
- package/dist/lib/ModalCalendar/ModalCalendar.tsx +0 -71
- package/dist/lib/PersonDateTimeCard/PersonDateTimeCard.styled.ts +0 -36
- package/dist/lib/PersonDateTimeCard/PersonDateTimeCard.tsx +0 -32
- package/dist/lib/Segment/Segment.style.ts +0 -14
- package/dist/lib/Segment/Segment.tsx +0 -29
- package/dist/lib/Segment/types.ts +0 -4
- package/dist/lib/SelectImpressionEmoji/ImpressionEmojiEnum.ts +0 -9
- package/dist/lib/SelectImpressionEmoji/SelectImpressionEmoji.styled.ts +0 -28
- package/dist/lib/SelectImpressionEmoji/SelectImpressionEmoji.tsx +0 -56
- package/dist/lib/SelectImpressionEmoji/SelectImpressionEmojiProps.ts +0 -8
- package/dist/lib/SelectImpressionEmoji/emojis.ts +0 -9
- package/dist/lib/SelectImpressionEmoji/index.tsx +0 -14
- package/dist/lib/Theme/global.css +0 -251
- package/dist/lib/Theme/mindly_constants.ts +0 -23
- package/dist/lib/UsersPsychologistScrollList/UserPsychologistScrollList.styled.ts +0 -61
- package/dist/lib/UsersPsychologistScrollList/UsersPsychologistScrollList.tsx +0 -68
- package/dist/lib/archived-consultation-card/ArchivedConsultation.test.tsx +0 -9
- package/dist/lib/archived-consultation-card/ArchivedConsultationCard.style.ts +0 -72
- package/dist/lib/archived-consultation-card/ArchivedConsultationCard.svg +0 -3
- package/dist/lib/archived-consultation-card/ArchivedConsultationCard.tsx +0 -61
- package/dist/lib/button/Button.style.ts +0 -170
- package/dist/lib/button/Button.test.tsx +0 -39
- package/dist/lib/button/Button.tsx +0 -47
- package/dist/lib/consultation-card/ConsultationCard.style.ts +0 -119
- package/dist/lib/consultation-card/ConsultationCard.test.tsx +0 -65
- package/dist/lib/consultation-card/ConsultationCard.tsx +0 -155
- package/dist/lib/consultation-card/ConsultationCardSkeleton.tsx +0 -114
- package/dist/lib/content-card/ContentCard.style.ts +0 -59
- package/dist/lib/content-card/ContentCard.test.tsx +0 -29
- package/dist/lib/content-card/ContentCard.tsx +0 -81
- package/dist/lib/date-picker/DatePicker.style.ts +0 -52
- package/dist/lib/date-picker/DatePicker.test.tsx +0 -9
- package/dist/lib/date-picker/DatePicker.tsx +0 -59
- package/dist/lib/floating-button/FloatingButton.style.ts +0 -21
- package/dist/lib/floating-button/FloatingButton.test.tsx +0 -9
- package/dist/lib/floating-button/FloatingButton.tsx +0 -29
- package/dist/lib/floating-button/floating button.svg +0 -6
- package/dist/lib/footer-for-booking/FooterForBooking.style.ts +0 -56
- package/dist/lib/footer-for-booking/FooterForBooking.test.tsx +0 -30
- package/dist/lib/footer-for-booking/FooterForBooking.tsx +0 -53
- package/dist/lib/input/Input.style.ts +0 -37
- package/dist/lib/input/Input.test.tsx +0 -21
- package/dist/lib/input/Input.tsx +0 -73
- package/dist/lib/list-button/ListButton.style.ts +0 -21
- package/dist/lib/list-button/ListButton.test.tsx +0 -26
- package/dist/lib/list-button/ListButton.tsx +0 -30
- package/dist/lib/navigation-bar/NavigationBar.style.ts +0 -81
- package/dist/lib/navigation-bar/NavigationBar.test.tsx +0 -15
- package/dist/lib/navigation-bar/NavigationBar.tsx +0 -31
- package/dist/lib/no-internet-connection/NoInternetConnection.style.ts +0 -26
- package/dist/lib/no-internet-connection/NoInternetConnection.svg +0 -10
- package/dist/lib/no-internet-connection/NoInternetConnection.test.tsx +0 -9
- package/dist/lib/no-internet-connection/NoInternetConnection.tsx +0 -30
- package/dist/lib/notes-card-text/NotesCardText.style.ts +0 -14
- package/dist/lib/notes-card-text/NotesCardText.tsx +0 -32
- package/dist/lib/notes-editor/NotesEditor.styled.ts +0 -24
- package/dist/lib/notes-editor/NotesEditor.tsx +0 -16
- package/dist/lib/scroll-tabs/ScrollTabs.style.ts +0 -19
- package/dist/lib/scroll-tabs/ScrollTabs.test.tsx +0 -9
- package/dist/lib/scroll-tabs/ScrollTabs.tsx +0 -42
- package/dist/lib/tab-bar/TabBar.style.tsx +0 -43
- package/dist/lib/tab-bar/TabBar.tsx +0 -11
- package/dist/lib/therapist-card/TherapistCard.style.ts +0 -104
- package/dist/lib/therapist-card/TherapistCard.test.tsx +0 -40
- package/dist/lib/therapist-card/TherapistCard.tsx +0 -96
- package/dist/lib/therapist-information-component/TherapistInformationComponent.style.ts +0 -40
- package/dist/lib/therapist-information-component/TherapistInformationComponent.test.tsx +0 -16
- package/dist/lib/therapist-information-component/TherapistInformationComponent.tsx +0 -51
- package/dist/lib/toast/index.css +0 -13
- package/dist/lib/toast/toast.ts +0 -17
- package/dist/lib/userAppTypes.ts +0 -261
- package/dist/lib/your-local-time-block/YourLocalTimeBlock.styled.ts +0 -28
- package/dist/lib/your-local-time-block/YourLocalTimeBlock.tsx +0 -26
- package/dist/react-app-env.d.ts +0 -1
- package/dist/svg.d.ts +0 -13
- /package/dist/{lib/EntryNotFound/calendar.svg → cjs/b7649e1531c181af.svg} +0 -0
- /package/dist/{lib/AppHeader/index.ts → cjs/types/lib/AppHeader/index.d.ts} +0 -0
- /package/dist/{lib/Avatar/index.ts → cjs/types/lib/Avatar/index.d.ts} +0 -0
- /package/dist/{lib/Container/index.ts → cjs/types/lib/Container/index.d.ts} +0 -0
- /package/dist/{lib/EntryNotFound/index.ts → cjs/types/lib/EntryNotFound/index.d.ts} +0 -0
- /package/dist/{lib/Filters/ListSelect/index.ts → cjs/types/lib/Filters/ListSelect/index.d.ts} +0 -0
- /package/dist/{lib/Filters/Range/index.ts → cjs/types/lib/Filters/Range/index.d.ts} +0 -0
- /package/dist/{lib/Filters/RowSelect/index.ts → cjs/types/lib/Filters/RowSelect/index.d.ts} +0 -0
- /package/dist/{lib/Filters/Toggle/index.ts → cjs/types/lib/Filters/Toggle/index.d.ts} +0 -0
- /package/dist/{lib/HorisontalCalendar/index.ts → cjs/types/lib/HorisontalCalendar/index.d.ts} +0 -0
- /package/dist/{lib/Modal/index.ts → cjs/types/lib/Modal/index.d.ts} +0 -0
- /package/dist/{lib/Segment/index.ts → cjs/types/lib/Segment/index.d.ts} +0 -0
- /package/dist/{lib/consultation-card/index.ts → cjs/types/lib/consultation-card/index.d.ts} +0 -0
- /package/dist/{lib/notes-card-text/index.ts → cjs/types/lib/notes-card-text/index.d.ts} +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { IonIcon, IonList } from '@ionic/react';
|
|
2
|
-
import { checkmarkOutline } from 'ionicons/icons';
|
|
3
|
-
import React, { FC, ReactText } from 'react';
|
|
4
|
-
import { ListTitle, IonItemStyled, IonLabelStyled } from './ListSelect.style';
|
|
5
|
-
|
|
6
|
-
export type ListItemType = {
|
|
7
|
-
id: ReactText;
|
|
8
|
-
label: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type ListSelectProps = {
|
|
12
|
-
title: string;
|
|
13
|
-
listItems: ListItemType[];
|
|
14
|
-
selected?: ReactText;
|
|
15
|
-
onChange: (item: ListItemType) => void;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const ListSelect: FC<ListSelectProps> = ({
|
|
19
|
-
title,
|
|
20
|
-
listItems,
|
|
21
|
-
onChange,
|
|
22
|
-
selected,
|
|
23
|
-
}) => {
|
|
24
|
-
return (
|
|
25
|
-
<>
|
|
26
|
-
<ListTitle>{title}</ListTitle>
|
|
27
|
-
<IonList lines="none" mode="ios">
|
|
28
|
-
{listItems.map((item) => (
|
|
29
|
-
<IonItemStyled
|
|
30
|
-
key={item.id}
|
|
31
|
-
mode="ios"
|
|
32
|
-
button
|
|
33
|
-
detail={false}
|
|
34
|
-
onClick={() => onChange(item)}
|
|
35
|
-
fill="solid"
|
|
36
|
-
>
|
|
37
|
-
<IonLabelStyled color={selected === item.id ? 'primary' : 'medium'}>
|
|
38
|
-
{item.label}
|
|
39
|
-
</IonLabelStyled>
|
|
40
|
-
{selected === item.id && (
|
|
41
|
-
<IonIcon icon={checkmarkOutline} slot="end" />
|
|
42
|
-
)}
|
|
43
|
-
</IonItemStyled>
|
|
44
|
-
))}
|
|
45
|
-
</IonList>
|
|
46
|
-
</>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IonRange } from '@ionic/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
export const RangeStyled = styled(IonRange)`
|
|
5
|
-
--bar-background-active: #21abd2;
|
|
6
|
-
--bar-height: 3px;
|
|
7
|
-
/* --knob-background: transparent; */
|
|
8
|
-
--knob-box-shadow: none;
|
|
9
|
-
--knob-size: 22px;
|
|
10
|
-
--height: 22px;
|
|
11
|
-
padding: 0 17px 0 11px;
|
|
12
|
-
::part(knob) {
|
|
13
|
-
border: 3px solid #21abd2;
|
|
14
|
-
top: 8px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.range-knob-b {
|
|
18
|
-
left: 100%;
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
export const RangeHeader = styled.div`
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
align-items: center;
|
|
26
|
-
margin-bottom: 16px;
|
|
27
|
-
|
|
28
|
-
& h3 {
|
|
29
|
-
font-weight: 600;
|
|
30
|
-
font-size: 20px;
|
|
31
|
-
line-height: 24px;
|
|
32
|
-
color: #1d201f;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
& span {
|
|
36
|
-
font-weight: 600;
|
|
37
|
-
font-size: 20px;
|
|
38
|
-
line-height: 24px;
|
|
39
|
-
color: #21abd2;
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React, { FC, useCallback, useState } from 'react';
|
|
2
|
-
import { RangeHeader, RangeStyled } from './Range.style';
|
|
3
|
-
|
|
4
|
-
export type RangeValue = {
|
|
5
|
-
lower: number;
|
|
6
|
-
upper: number;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
type RangeProps = {
|
|
10
|
-
title: string;
|
|
11
|
-
rangeTitleValues?: string;
|
|
12
|
-
initialValue: RangeValue;
|
|
13
|
-
onChange?: (value: RangeValue) => void;
|
|
14
|
-
onKnobMoveEnd?: (value: RangeValue) => void;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const Range: FC<RangeProps> = ({
|
|
18
|
-
title,
|
|
19
|
-
rangeTitleValues = '',
|
|
20
|
-
initialValue,
|
|
21
|
-
onKnobMoveEnd,
|
|
22
|
-
}) => {
|
|
23
|
-
const [value, setValue] = useState(initialValue);
|
|
24
|
-
|
|
25
|
-
const handleKnobMoveEnd = useCallback((e) => {
|
|
26
|
-
const eventValue = e.detail.value;
|
|
27
|
-
setValue(eventValue);
|
|
28
|
-
onKnobMoveEnd?.(eventValue);
|
|
29
|
-
}, []);
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<>
|
|
33
|
-
<RangeHeader>
|
|
34
|
-
<h3>{title}</h3>
|
|
35
|
-
<span>{`${rangeTitleValues}${value.lower}-${value.upper}`}</span>
|
|
36
|
-
</RangeHeader>
|
|
37
|
-
<RangeStyled
|
|
38
|
-
min={initialValue.lower}
|
|
39
|
-
max={initialValue.upper}
|
|
40
|
-
step={1}
|
|
41
|
-
dualKnobs={true}
|
|
42
|
-
value={value}
|
|
43
|
-
mode="ios"
|
|
44
|
-
onIonKnobMoveEnd={handleKnobMoveEnd}
|
|
45
|
-
/>
|
|
46
|
-
</>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const RowWrapper = styled.div`
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: 21px;
|
|
6
|
-
align-items: centers;
|
|
7
|
-
padding-left: 7px;
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
type RowButtonProps = {
|
|
11
|
-
selected: boolean;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export const RowButton = styled.button<RowButtonProps>`
|
|
15
|
-
background: transparent;
|
|
16
|
-
font-weight: 600;
|
|
17
|
-
font-size: ${({ selected }) => (selected ? 28 : 24)}px;
|
|
18
|
-
line-height: 32px;
|
|
19
|
-
color: ${({ selected }) => (selected ? '#21ABD2' : '#c1c1c1')};
|
|
20
|
-
padding: 0;
|
|
21
|
-
border: none;
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
export const RowTitle = styled.h3`
|
|
25
|
-
font-weight: 600;
|
|
26
|
-
font-size: 20px;
|
|
27
|
-
line-height: 24px;
|
|
28
|
-
color: #1d201f;
|
|
29
|
-
margin-bottom: 18px;
|
|
30
|
-
`;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React, { FC, ReactText } from 'react';
|
|
2
|
-
import { RowButton, RowTitle, RowWrapper } from './RowSelect.style';
|
|
3
|
-
|
|
4
|
-
export type RowItemType = {
|
|
5
|
-
id: ReactText;
|
|
6
|
-
label: string;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
type RowSelectProps = {
|
|
10
|
-
title: string;
|
|
11
|
-
rowItems: RowItemType[];
|
|
12
|
-
selected?: ReactText;
|
|
13
|
-
onChange: (value: RowItemType) => void;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const RowSelect: FC<RowSelectProps> = ({
|
|
17
|
-
title,
|
|
18
|
-
rowItems,
|
|
19
|
-
selected,
|
|
20
|
-
onChange,
|
|
21
|
-
}) => {
|
|
22
|
-
return (
|
|
23
|
-
<>
|
|
24
|
-
<RowTitle>{title}</RowTitle>
|
|
25
|
-
<RowWrapper>
|
|
26
|
-
{rowItems.map((item) => (
|
|
27
|
-
<RowButton
|
|
28
|
-
key={item.id}
|
|
29
|
-
selected={selected === item.id}
|
|
30
|
-
onClick={() => onChange(item)}
|
|
31
|
-
>
|
|
32
|
-
{item.label}
|
|
33
|
-
</RowButton>
|
|
34
|
-
))}
|
|
35
|
-
</RowWrapper>
|
|
36
|
-
</>
|
|
37
|
-
);
|
|
38
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const ToggleWrapper = styled.div`
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
export const ToggleTitle = styled.h3`
|
|
10
|
-
font-weight: 600;
|
|
11
|
-
font-size: 20px;
|
|
12
|
-
line-height: 24px;
|
|
13
|
-
color: #1d201f;
|
|
14
|
-
`;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IonToggle } from '@ionic/react';
|
|
2
|
-
import React, { FC } from 'react';
|
|
3
|
-
import { ToggleTitle, ToggleWrapper } from './Toggle.style';
|
|
4
|
-
|
|
5
|
-
type ToggleProps = {
|
|
6
|
-
title: string;
|
|
7
|
-
checked?: boolean;
|
|
8
|
-
onChange: (checked: boolean) => void;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const Toggle: FC<ToggleProps> = ({
|
|
12
|
-
title,
|
|
13
|
-
checked = false,
|
|
14
|
-
onChange,
|
|
15
|
-
}) => {
|
|
16
|
-
return (
|
|
17
|
-
<ToggleWrapper>
|
|
18
|
-
<ToggleTitle>{title}</ToggleTitle>
|
|
19
|
-
<IonToggle
|
|
20
|
-
mode="ios"
|
|
21
|
-
checked={checked}
|
|
22
|
-
onIonChange={(e) => onChange(e.detail.checked)}
|
|
23
|
-
/>
|
|
24
|
-
</ToggleWrapper>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
const HorizontalCalendarStyled = styled.div`
|
|
4
|
-
--contrastColor: #21abd2;
|
|
5
|
-
--highlightColor: #d6f2f9;
|
|
6
|
-
user-select: none;
|
|
7
|
-
|
|
8
|
-
ul {
|
|
9
|
-
list-style: none;
|
|
10
|
-
display: flex;
|
|
11
|
-
gap: 9px;
|
|
12
|
-
overflow: scroll;
|
|
13
|
-
width: 100%;
|
|
14
|
-
white-space: nowrap;
|
|
15
|
-
padding: 0;
|
|
16
|
-
scrollbar-width: none;
|
|
17
|
-
|
|
18
|
-
&::-webkit-scrollbar {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
li {
|
|
23
|
-
display: inline-block;
|
|
24
|
-
height: 70px;
|
|
25
|
-
width: 44px;
|
|
26
|
-
border-radius: 8px;
|
|
27
|
-
padding: 6px;
|
|
28
|
-
|
|
29
|
-
.day {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
align-items: center;
|
|
33
|
-
align-content: center;
|
|
34
|
-
font-family: 'Inter';
|
|
35
|
-
font-style: normal;
|
|
36
|
-
font-weight: 700;
|
|
37
|
-
|
|
38
|
-
.title {
|
|
39
|
-
font-size: 10px;
|
|
40
|
-
line-height: 14px;
|
|
41
|
-
text-transform: uppercase;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.tags {
|
|
45
|
-
height: 11px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.day-content {
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
line-height: 16px;
|
|
51
|
-
height: 32px;
|
|
52
|
-
width: 32px;
|
|
53
|
-
border: 1px solid var(--contrastColor);
|
|
54
|
-
border-radius: 50%;
|
|
55
|
-
display: flex;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
justify-items: center;
|
|
58
|
-
align-items: center;
|
|
59
|
-
align-content: center;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.selected {
|
|
64
|
-
background-color: var(--highlightColor);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.has-consultation .day .day-content {
|
|
68
|
-
background-color: var(--contrastColor);
|
|
69
|
-
color: #fff;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.has-my-note .day .tags,
|
|
73
|
-
&.has-tome-notes .day .tags {
|
|
74
|
-
position: relative;
|
|
75
|
-
|
|
76
|
-
.draw {
|
|
77
|
-
position: absolute;
|
|
78
|
-
width: 5px;
|
|
79
|
-
height: 5px;
|
|
80
|
-
left: -2px;
|
|
81
|
-
top: 1px;
|
|
82
|
-
border-radius: 3px;
|
|
83
|
-
background: #21ABD2;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.has-tome-notes .day .tags .draw {
|
|
88
|
-
width: 15px;
|
|
89
|
-
left: -7px
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.day.skeleton {
|
|
93
|
-
.title .sk {
|
|
94
|
-
width: 15px;
|
|
95
|
-
height: 14px;
|
|
96
|
-
border-radius: 4px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.tags {
|
|
100
|
-
height: 5px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.day-content {
|
|
104
|
-
border: none;
|
|
105
|
-
|
|
106
|
-
.sk {
|
|
107
|
-
width: 32px;
|
|
108
|
-
height: 32px;
|
|
109
|
-
border-radius: 50%;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
`;
|
|
116
|
-
|
|
117
|
-
export default HorizontalCalendarStyled;
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import HorizontalCalendarStyled from './HorizontalCalendar.styled';
|
|
3
|
-
import { IonSkeletonText, useIonViewDidEnter } from '@ionic/react';
|
|
4
|
-
|
|
5
|
-
export type HorizontalCalendarProps = {
|
|
6
|
-
consultationDatesSeconds?: number[],
|
|
7
|
-
myNotesDatesSeconds?: number[],
|
|
8
|
-
toMeNotesDatesSeconds?: number[],
|
|
9
|
-
/**
|
|
10
|
-
* Days to be rendered. e.g. 15 - means 7 before today and 7 after today
|
|
11
|
-
*/
|
|
12
|
-
daysToRender?: number,
|
|
13
|
-
value?: DayToRender | Date,
|
|
14
|
-
onChange?: (value: DayToRender) => void
|
|
15
|
-
/**
|
|
16
|
-
* date from which a component should start coordinates.
|
|
17
|
-
* e.g. startFrom = "15.01.2022", daysToRender=5
|
|
18
|
-
* return ["13.02.2022", "14.01.2022", "15.01.2022", "16.01.2022", "17.01.2022"]
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
startFrom?: Date;
|
|
22
|
-
showSkeleton?: boolean;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
enum DayOfWeek {
|
|
26
|
-
SUN = 'Нд',
|
|
27
|
-
MON = 'Пн',
|
|
28
|
-
TUE = 'Вт',
|
|
29
|
-
WED = 'Ср',
|
|
30
|
-
THU = 'Чт',
|
|
31
|
-
FRI = 'Пт',
|
|
32
|
-
SAT = 'Сб'
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function dateToDayOfWeek(date: Date): DayOfWeek {
|
|
36
|
-
const day = date.getDay();
|
|
37
|
-
switch (day) {
|
|
38
|
-
default:
|
|
39
|
-
case 0:
|
|
40
|
-
return DayOfWeek.SUN;
|
|
41
|
-
case 1:
|
|
42
|
-
return DayOfWeek.MON;
|
|
43
|
-
case 2:
|
|
44
|
-
return DayOfWeek.TUE;
|
|
45
|
-
case 3:
|
|
46
|
-
return DayOfWeek.WED;
|
|
47
|
-
case 4:
|
|
48
|
-
return DayOfWeek.THU;
|
|
49
|
-
case 5:
|
|
50
|
-
return DayOfWeek.FRI;
|
|
51
|
-
case 6:
|
|
52
|
-
return DayOfWeek.SAT;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function dateToShortDate(d: Date): string {
|
|
57
|
-
return d.toDateString();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type DayToRender = {
|
|
61
|
-
/**
|
|
62
|
-
* e.g. "2.2.122", "24.4.122"
|
|
63
|
-
*/
|
|
64
|
-
shortDate: string;
|
|
65
|
-
dayOfMonth: number;
|
|
66
|
-
dayOfWeek: DayOfWeek;
|
|
67
|
-
date: Date;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000;
|
|
71
|
-
|
|
72
|
-
function getDaysToRender(daysToRender = 15, startFrom: Date = new Date()): DayToRender[] {
|
|
73
|
-
const daysAroundTodayCount = Math.floor(daysToRender / 2);
|
|
74
|
-
const days: DayToRender[] = [];
|
|
75
|
-
|
|
76
|
-
const startingDate = startFrom.valueOf() - (MILLISECONDS_IN_DAY * daysAroundTodayCount);
|
|
77
|
-
|
|
78
|
-
for (let i = 0, currentDate = startingDate;
|
|
79
|
-
i < daysToRender;
|
|
80
|
-
i++, currentDate += MILLISECONDS_IN_DAY) {
|
|
81
|
-
const date = new Date(currentDate);
|
|
82
|
-
days.push({
|
|
83
|
-
shortDate: dateToShortDate(date),
|
|
84
|
-
dayOfWeek: dateToDayOfWeek(date),
|
|
85
|
-
dayOfMonth: date.getDate(),
|
|
86
|
-
date: date,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return days;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function secondsToShortDate(seconds: number): string {
|
|
94
|
-
const date = new Date(seconds * 1000);
|
|
95
|
-
return dateToShortDate(date);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function secondsArrayToShortDatesSet(secondsArray: number[] = []): Set<string> {
|
|
99
|
-
if (!Array.isArray(secondsArray)) return new Set<string>();
|
|
100
|
-
const shortDatesArray = secondsArray.map(sec => secondsToShortDate(sec));
|
|
101
|
-
const set = new Set(shortDatesArray);
|
|
102
|
-
return set;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export const HorizontalCalendar: React.FC<HorizontalCalendarProps> = (props) => {
|
|
106
|
-
const dateNow = new Date();
|
|
107
|
-
const [daysToRender, setDaysToRender] = useState<DayToRender[]>([]);
|
|
108
|
-
const currentShortDate = dateToShortDate(dateNow);
|
|
109
|
-
const todayRef = useRef<HTMLDivElement | null>(null);
|
|
110
|
-
const consultationsShortDatesSet = useMemo<Set<string>>(() => {
|
|
111
|
-
return secondsArrayToShortDatesSet(props.consultationDatesSeconds);
|
|
112
|
-
}, [props.consultationDatesSeconds]);
|
|
113
|
-
|
|
114
|
-
const myNotesDatesSet = useMemo<Set<string>>(() => {
|
|
115
|
-
return secondsArrayToShortDatesSet(props.myNotesDatesSeconds);
|
|
116
|
-
}, [props.myNotesDatesSeconds]);
|
|
117
|
-
|
|
118
|
-
const toMeNotesDatesSet = useMemo<Set<string>>(() => {
|
|
119
|
-
return secondsArrayToShortDatesSet(props.toMeNotesDatesSeconds);
|
|
120
|
-
}, [props.toMeNotesDatesSeconds]);
|
|
121
|
-
|
|
122
|
-
useEffect(() => {
|
|
123
|
-
const toRender = getDaysToRender(props.daysToRender, props.startFrom);
|
|
124
|
-
setDaysToRender(toRender);
|
|
125
|
-
}, [props.daysToRender, dateNow.getDate(), props.startFrom]);
|
|
126
|
-
|
|
127
|
-
const scrollToSelectedDay = useCallback(() => {
|
|
128
|
-
if (props.showSkeleton) return;
|
|
129
|
-
if (!todayRef.current) return;
|
|
130
|
-
todayRef.current?.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' });
|
|
131
|
-
}, [todayRef.current, props.showSkeleton]);
|
|
132
|
-
|
|
133
|
-
useEffect(() => {
|
|
134
|
-
scrollToSelectedDay();
|
|
135
|
-
}, [todayRef.current, props.showSkeleton]);
|
|
136
|
-
|
|
137
|
-
useEffect(() => {
|
|
138
|
-
// eslint-disable-next-line no-restricted-globals
|
|
139
|
-
const S = self;
|
|
140
|
-
const handler = () => {
|
|
141
|
-
scrollToSelectedDay();
|
|
142
|
-
};
|
|
143
|
-
S.addEventListener('calendar_scroll', handler);
|
|
144
|
-
return () => {
|
|
145
|
-
S.removeEventListener('calendar_scroll', handler);
|
|
146
|
-
};
|
|
147
|
-
}, []);
|
|
148
|
-
|
|
149
|
-
useIonViewDidEnter(scrollToSelectedDay);
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
const valueShortDate = props.value && (
|
|
153
|
-
props.value instanceof Date ?
|
|
154
|
-
dateToShortDate(props.value)
|
|
155
|
-
: props.value?.shortDate
|
|
156
|
-
);
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return (<HorizontalCalendarStyled>
|
|
160
|
-
<ul>
|
|
161
|
-
{daysToRender.map(day => {
|
|
162
|
-
if (props.showSkeleton) {
|
|
163
|
-
return (<li
|
|
164
|
-
key={day.shortDate}
|
|
165
|
-
>
|
|
166
|
-
<div className="day skeleton">
|
|
167
|
-
<div className="title">
|
|
168
|
-
<IonSkeletonText className="sk" animated/>
|
|
169
|
-
</div>
|
|
170
|
-
<div className="tags"></div>
|
|
171
|
-
<div className="day-content">
|
|
172
|
-
<IonSkeletonText className="sk" animated/>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</li>);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
const isToday = day.shortDate === currentShortDate;
|
|
179
|
-
const hasConsultations = consultationsShortDatesSet.has(day.shortDate);
|
|
180
|
-
const isSelected = props.value ? (valueShortDate === day.shortDate) : isToday;
|
|
181
|
-
const hasMyNote = myNotesDatesSet.has(day.shortDate);
|
|
182
|
-
const hasToMeNotes = toMeNotesDatesSet.has(day.shortDate);
|
|
183
|
-
|
|
184
|
-
const classList = [];
|
|
185
|
-
if (isSelected) classList.push('selected');
|
|
186
|
-
if (isToday) classList.push('today');
|
|
187
|
-
if (hasConsultations) classList.push('has-consultation');
|
|
188
|
-
if (hasMyNote) classList.push('has-my-note');
|
|
189
|
-
if (hasToMeNotes) classList.push('has-tome-notes');
|
|
190
|
-
|
|
191
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
192
|
-
const attributes: any = {};
|
|
193
|
-
if (classList.length) {
|
|
194
|
-
attributes.className = classList.join(' ');
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
return (<li
|
|
198
|
-
key={day.shortDate}
|
|
199
|
-
onClick={() => {
|
|
200
|
-
props.onChange && props.onChange(day);
|
|
201
|
-
}}
|
|
202
|
-
{...attributes}
|
|
203
|
-
>
|
|
204
|
-
<div className="day" ref={isToday ? todayRef : null}>
|
|
205
|
-
<div className="title">{isToday ? 'Зараз' : day.dayOfWeek}</div>
|
|
206
|
-
<div className="tags"><span className="draw"></span></div>
|
|
207
|
-
<div className="day-content">{day.dayOfMonth}</div>
|
|
208
|
-
</div>
|
|
209
|
-
</li>);
|
|
210
|
-
})}
|
|
211
|
-
</ul>
|
|
212
|
-
</HorizontalCalendarStyled>);
|
|
213
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React, { useState, useCallback, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
export type ImageWithFallbackProps = JSX.IntrinsicElements["img"] & ({
|
|
4
|
-
onErrorContent: React.ReactElement;
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
-
function filterImgProps(props: any): JSX.IntrinsicElements["img"]{
|
|
9
|
-
const props2 = { ...props };
|
|
10
|
-
delete props2.onErrorContent;
|
|
11
|
-
return props2 as JSX.IntrinsicElements["img"];
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const ImageWithFallback : React.FC<ImageWithFallbackProps> = (props)=>{
|
|
15
|
-
const [hasError, setHasError] = useState<boolean>(false);
|
|
16
|
-
const innerProps = filterImgProps(props);
|
|
17
|
-
|
|
18
|
-
useEffect(()=>{
|
|
19
|
-
setHasError(false);
|
|
20
|
-
}, [props.src]);
|
|
21
|
-
|
|
22
|
-
const onErrorHandler = useCallback((e)=>{
|
|
23
|
-
setHasError(!!e);
|
|
24
|
-
}, []);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (hasError) {
|
|
28
|
-
return props.onErrorContent;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<img {...innerProps} onError={onErrorHandler}/>
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default ImageWithFallback;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
type LetterAvatarStyledProps = {
|
|
4
|
-
dimensions: number;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const LetterAvatarStyled = styled.div<LetterAvatarStyledProps>`
|
|
8
|
-
display: inline-block;
|
|
9
|
-
text-align: center;
|
|
10
|
-
|
|
11
|
-
height: ${({ dimensions }) => dimensions}px;
|
|
12
|
-
width: ${({ dimensions }) => dimensions}px;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
background: linear-gradient(
|
|
15
|
-
0deg,
|
|
16
|
-
rgba(255, 255, 255, 0.8),
|
|
17
|
-
rgba(255, 255, 255, 0.8)
|
|
18
|
-
),
|
|
19
|
-
#21abd2;
|
|
20
|
-
color: #21abd2;
|
|
21
|
-
|
|
22
|
-
font-size: 22.4px;
|
|
23
|
-
line-height: 56px;
|
|
24
|
-
font-family: 'Inter';
|
|
25
|
-
font-style: normal;
|
|
26
|
-
font-weight: 700;
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
export default LetterAvatarStyled;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import LetterAvatarStyled from './LetterAvatar.styled';
|
|
3
|
-
|
|
4
|
-
export type LetterAvatarProps = {
|
|
5
|
-
letter: string;
|
|
6
|
-
dimensions?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const LetterAvatar: React.FC<LetterAvatarProps> = (props) => {
|
|
12
|
-
return (
|
|
13
|
-
<LetterAvatarStyled
|
|
14
|
-
dimensions={props.dimensions ?? 56}
|
|
15
|
-
className={props.className}
|
|
16
|
-
style={props.style}
|
|
17
|
-
>
|
|
18
|
-
{props.letter}
|
|
19
|
-
</LetterAvatarStyled>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default React.memo<LetterAvatarProps>(LetterAvatar);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IonModal } from '@ionic/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { maxContainerWidth } from '../Theme/mindly_constants';
|
|
4
|
-
|
|
5
|
-
type ModalStyledProps = {
|
|
6
|
-
isFullWidth: boolean;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const ModalStyled = styled(IonModal)<ModalStyledProps>`
|
|
10
|
-
--max-width: ${({ isFullWidth }) =>
|
|
11
|
-
isFullWidth ? maxContainerWidth : '100%'};
|
|
12
|
-
`;
|