@mindly/ui-components 3.1.3 → 3.1.5
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/fonts/Lato-Bold.ttf +0 -0
- package/dist/fonts/Lato-Regular.ttf +0 -0
- package/dist/fonts/Lato-Semibold.ttf +0 -0
- package/dist/{esm/types/index.d.ts → index.ts} +64 -6
- package/dist/lib/AppHeader/AppHeader.style.ts +19 -0
- package/dist/lib/AppHeader/AppHeader.tsx +23 -0
- package/dist/lib/Avatar/Avatar.style.ts +17 -0
- package/dist/lib/Avatar/Avatar.tsx +46 -0
- package/dist/lib/Container/Container.styled.ts +15 -0
- package/dist/lib/Container/Container.tsx +15 -0
- package/dist/lib/EntryNotFound/EntryNotFound.style.ts +14 -0
- package/dist/lib/EntryNotFound/EntryNotFound.tsx +21 -0
- package/dist/lib/Filters/ListSelect/ListSelect.style.ts +38 -0
- package/dist/lib/Filters/ListSelect/ListSelect.tsx +48 -0
- package/dist/lib/Filters/Range/Range.style.ts +41 -0
- package/dist/lib/Filters/Range/Range.tsx +48 -0
- package/dist/lib/Filters/RowSelect/RowSelect.style.ts +30 -0
- package/dist/lib/Filters/RowSelect/RowSelect.tsx +38 -0
- package/dist/lib/Filters/Toggle/Toggle.style.ts +14 -0
- package/dist/lib/Filters/Toggle/Toggle.tsx +26 -0
- package/dist/lib/HorisontalCalendar/HorizontalCalendar.styled.ts +117 -0
- package/dist/lib/HorisontalCalendar/HorizontalCalendar.tsx +213 -0
- package/dist/lib/ImageWithFallback/ImageWithFallback.tsx +37 -0
- package/dist/lib/LetterAvatar/LetterAvatar.styled.ts +32 -0
- package/dist/lib/LetterAvatar/LetterAvatar.tsx +23 -0
- package/dist/lib/Modal/Modal.style.ts +12 -0
- package/dist/lib/Modal/Modal.tsx +30 -0
- package/dist/lib/ModalCalendar/ModalCalendar.styled.ts +123 -0
- package/dist/lib/ModalCalendar/ModalCalendar.tsx +71 -0
- package/dist/lib/PersonDateTimeCard/PersonDateTimeCard.styled.ts +36 -0
- package/dist/lib/PersonDateTimeCard/PersonDateTimeCard.tsx +32 -0
- package/dist/lib/Segment/Segment.style.ts +14 -0
- package/dist/lib/Segment/Segment.tsx +29 -0
- package/dist/lib/Segment/types.ts +4 -0
- package/dist/lib/SelectImpressionEmoji/ImpressionEmojiEnum.ts +9 -0
- package/dist/lib/SelectImpressionEmoji/SelectImpressionEmoji.styled.ts +28 -0
- package/dist/lib/SelectImpressionEmoji/SelectImpressionEmoji.tsx +56 -0
- package/dist/lib/SelectImpressionEmoji/SelectImpressionEmojiProps.ts +8 -0
- package/dist/lib/SelectImpressionEmoji/emojis.ts +9 -0
- package/dist/lib/SelectImpressionEmoji/index.tsx +14 -0
- package/dist/lib/Theme/global.css +251 -0
- package/dist/lib/Theme/mindly_constants.ts +23 -0
- package/dist/lib/UsersPsychologistScrollList/UserPsychologistScrollList.styled.ts +61 -0
- package/dist/lib/UsersPsychologistScrollList/UsersPsychologistScrollList.tsx +68 -0
- package/dist/lib/archived-consultation-card/ArchivedConsultation.test.tsx +9 -0
- package/dist/lib/archived-consultation-card/ArchivedConsultationCard.style.ts +72 -0
- package/dist/lib/archived-consultation-card/ArchivedConsultationCard.svg +3 -0
- package/dist/lib/archived-consultation-card/ArchivedConsultationCard.tsx +61 -0
- package/dist/lib/button/Button.style.ts +170 -0
- package/dist/lib/button/Button.test.tsx +39 -0
- package/dist/lib/button/Button.tsx +47 -0
- package/dist/lib/consultation-card/ConsultationCard.style.ts +119 -0
- package/dist/lib/consultation-card/ConsultationCard.test.tsx +65 -0
- package/dist/lib/consultation-card/ConsultationCard.tsx +155 -0
- package/dist/lib/consultation-card/ConsultationCardSkeleton.tsx +114 -0
- package/dist/lib/content-card/ContentCard.style.ts +59 -0
- package/dist/lib/content-card/ContentCard.test.tsx +29 -0
- package/dist/lib/content-card/ContentCard.tsx +81 -0
- package/dist/lib/date-picker/DatePicker.style.ts +52 -0
- package/dist/lib/date-picker/DatePicker.test.tsx +9 -0
- package/dist/lib/date-picker/DatePicker.tsx +59 -0
- package/dist/lib/floating-button/FloatingButton.style.ts +21 -0
- package/dist/lib/floating-button/FloatingButton.test.tsx +9 -0
- package/dist/lib/floating-button/FloatingButton.tsx +29 -0
- package/dist/lib/floating-button/floating button.svg +6 -0
- package/dist/lib/footer-for-booking/FooterForBooking.style.ts +56 -0
- package/dist/lib/footer-for-booking/FooterForBooking.test.tsx +30 -0
- package/dist/lib/footer-for-booking/FooterForBooking.tsx +53 -0
- package/dist/lib/input/Input.style.ts +37 -0
- package/dist/lib/input/Input.test.tsx +21 -0
- package/dist/lib/input/Input.tsx +73 -0
- package/dist/lib/list-button/ListButton.style.ts +21 -0
- package/dist/lib/list-button/ListButton.test.tsx +26 -0
- package/dist/lib/list-button/ListButton.tsx +30 -0
- package/dist/lib/navigation-bar/NavigationBar.style.ts +81 -0
- package/dist/lib/navigation-bar/NavigationBar.test.tsx +15 -0
- package/dist/lib/navigation-bar/NavigationBar.tsx +31 -0
- package/dist/lib/no-internet-connection/NoInternetConnection.style.ts +26 -0
- package/dist/lib/no-internet-connection/NoInternetConnection.svg +10 -0
- package/dist/lib/no-internet-connection/NoInternetConnection.test.tsx +9 -0
- package/dist/lib/no-internet-connection/NoInternetConnection.tsx +30 -0
- package/dist/lib/notes-card-text/NotesCardText.style.ts +14 -0
- package/dist/lib/notes-card-text/NotesCardText.tsx +32 -0
- package/dist/lib/notes-editor/NotesEditor.styled.ts +24 -0
- package/dist/lib/notes-editor/NotesEditor.tsx +16 -0
- package/dist/lib/scroll-tabs/ScrollTabs.style.ts +19 -0
- package/dist/lib/scroll-tabs/ScrollTabs.test.tsx +9 -0
- package/dist/lib/scroll-tabs/ScrollTabs.tsx +42 -0
- package/dist/lib/tab-bar/TabBar.style.tsx +43 -0
- package/dist/lib/tab-bar/TabBar.tsx +11 -0
- package/dist/lib/therapist-card/TherapistCard.style.ts +104 -0
- package/dist/lib/therapist-card/TherapistCard.test.tsx +40 -0
- package/dist/lib/therapist-card/TherapistCard.tsx +96 -0
- package/dist/lib/therapist-information-component/TherapistInformationComponent.style.ts +40 -0
- package/dist/lib/therapist-information-component/TherapistInformationComponent.test.tsx +16 -0
- package/dist/lib/therapist-information-component/TherapistInformationComponent.tsx +51 -0
- package/dist/lib/toast/index.css +13 -0
- package/dist/lib/toast/toast.ts +17 -0
- package/dist/lib/userAppTypes.ts +261 -0
- package/dist/lib/your-local-time-block/YourLocalTimeBlock.styled.ts +28 -0
- package/dist/lib/your-local-time-block/YourLocalTimeBlock.tsx +26 -0
- package/dist/react-app-env.d.ts +1 -0
- package/dist/svg.d.ts +13 -0
- package/package.json +4 -17
- package/dist/cjs/index.js +0 -166
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/index.d.ts +0 -48
- package/dist/cjs/types/lib/AppHeader/AppHeader.d.ts +0 -6
- package/dist/cjs/types/lib/AppHeader/AppHeader.style.d.ts +0 -7
- package/dist/cjs/types/lib/Avatar/Avatar.d.ts +0 -9
- package/dist/cjs/types/lib/Avatar/Avatar.style.d.ts +0 -5
- package/dist/cjs/types/lib/Container/Container.d.ts +0 -3
- package/dist/cjs/types/lib/Container/Container.styled.d.ts +0 -5
- package/dist/cjs/types/lib/EntryNotFound/EntryNotFound.d.ts +0 -5
- package/dist/cjs/types/lib/EntryNotFound/EntryNotFound.style.d.ts +0 -2
- package/dist/cjs/types/lib/Filters/ListSelect/ListSelect.d.ts +0 -13
- package/dist/cjs/types/lib/Filters/ListSelect/ListSelect.style.d.ts +0 -9
- package/dist/cjs/types/lib/Filters/Range/Range.d.ts +0 -14
- package/dist/cjs/types/lib/Filters/Range/Range.style.d.ts +0 -3
- package/dist/cjs/types/lib/Filters/RowSelect/RowSelect.d.ts +0 -13
- package/dist/cjs/types/lib/Filters/RowSelect/RowSelect.style.d.ts +0 -7
- package/dist/cjs/types/lib/Filters/Toggle/Toggle.d.ts +0 -8
- package/dist/cjs/types/lib/Filters/Toggle/Toggle.style.d.ts +0 -2
- package/dist/cjs/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +0 -40
- package/dist/cjs/types/lib/HorisontalCalendar/HorizontalCalendar.styled.d.ts +0 -2
- package/dist/cjs/types/lib/ImageWithFallback/ImageWithFallback.d.ts +0 -6
- package/dist/cjs/types/lib/LetterAvatar/LetterAvatar.d.ts +0 -9
- package/dist/cjs/types/lib/LetterAvatar/LetterAvatar.styled.d.ts +0 -5
- package/dist/cjs/types/lib/Modal/Modal.d.ts +0 -8
- package/dist/cjs/types/lib/Modal/Modal.style.d.ts +0 -6
- package/dist/cjs/types/lib/ModalCalendar/ModalCalendar.d.ts +0 -10
- package/dist/cjs/types/lib/ModalCalendar/ModalCalendar.styled.d.ts +0 -12
- package/dist/cjs/types/lib/PersonDateTimeCard/PersonDateTimeCard.d.ts +0 -8
- package/dist/cjs/types/lib/PersonDateTimeCard/PersonDateTimeCard.styled.d.ts +0 -2
- package/dist/cjs/types/lib/Segment/Segment.d.ts +0 -10
- package/dist/cjs/types/lib/Segment/types.d.ts +0 -4
- package/dist/cjs/types/lib/SelectImpressionEmoji/ImpressionEmojiEnum.d.ts +0 -8
- package/dist/cjs/types/lib/SelectImpressionEmoji/SelectImpressionEmoji.d.ts +0 -4
- package/dist/cjs/types/lib/SelectImpressionEmoji/SelectImpressionEmoji.styled.d.ts +0 -2
- package/dist/cjs/types/lib/SelectImpressionEmoji/SelectImpressionEmojiProps.d.ts +0 -6
- package/dist/cjs/types/lib/SelectImpressionEmoji/emojis.d.ts +0 -5
- package/dist/cjs/types/lib/SelectImpressionEmoji/index.d.ts +0 -4
- package/dist/cjs/types/lib/Theme/mindly_constants.d.ts +0 -22
- package/dist/cjs/types/lib/UsersPsychologistScrollList/UserPsychologistScrollList.styled.d.ts +0 -6
- package/dist/cjs/types/lib/UsersPsychologistScrollList/UsersPsychologistScrollList.d.ts +0 -10
- package/dist/cjs/types/lib/archived-consultation-card/ArchivedConsultationCard.d.ts +0 -14
- package/dist/cjs/types/lib/archived-consultation-card/ArchivedConsultationCard.style.d.ts +0 -3
- package/dist/cjs/types/lib/button/Button.d.ts +0 -9
- package/dist/cjs/types/lib/button/Button.style.d.ts +0 -6
- package/dist/cjs/types/lib/consultation-card/ConsultationCard.d.ts +0 -31
- package/dist/cjs/types/lib/consultation-card/ConsultationCard.style.d.ts +0 -7
- package/dist/cjs/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +0 -2
- package/dist/cjs/types/lib/content-card/ContentCard.d.ts +0 -15
- package/dist/cjs/types/lib/content-card/ContentCard.style.d.ts +0 -11
- package/dist/cjs/types/lib/date-picker/DatePicker.d.ts +0 -13
- package/dist/cjs/types/lib/date-picker/DatePicker.style.d.ts +0 -6
- package/dist/cjs/types/lib/floating-button/FloatingButton.d.ts +0 -8
- package/dist/cjs/types/lib/floating-button/FloatingButton.style.d.ts +0 -6
- package/dist/cjs/types/lib/footer-for-booking/FooterForBooking.d.ts +0 -10
- package/dist/cjs/types/lib/footer-for-booking/FooterForBooking.style.d.ts +0 -7
- package/dist/cjs/types/lib/input/Input.d.ts +0 -13
- package/dist/cjs/types/lib/input/Input.style.d.ts +0 -7
- package/dist/cjs/types/lib/list-button/ListButton.d.ts +0 -9
- package/dist/cjs/types/lib/list-button/ListButton.style.d.ts +0 -2
- package/dist/cjs/types/lib/navigation-bar/NavigationBar.d.ts +0 -8
- package/dist/cjs/types/lib/navigation-bar/NavigationBar.style.d.ts +0 -8
- package/dist/cjs/types/lib/no-internet-connection/NoInternetConnection.d.ts +0 -7
- package/dist/cjs/types/lib/no-internet-connection/NoInternetConnection.style.d.ts +0 -6
- package/dist/cjs/types/lib/notes-card-text/NotesCardText.d.ts +0 -6
- package/dist/cjs/types/lib/notes-card-text/NotesCardText.style.d.ts +0 -1
- package/dist/cjs/types/lib/notes-editor/NotesEditor.d.ts +0 -5
- package/dist/cjs/types/lib/notes-editor/NotesEditor.styled.d.ts +0 -2
- package/dist/cjs/types/lib/scroll-tabs/ScrollTabs.d.ts +0 -7
- package/dist/cjs/types/lib/scroll-tabs/ScrollTabs.style.d.ts +0 -3
- package/dist/cjs/types/lib/tab-bar/TabBar.d.ts +0 -6
- package/dist/cjs/types/lib/tab-bar/TabBar.style.d.ts +0 -5
- package/dist/cjs/types/lib/therapist-card/TherapistCard.d.ts +0 -13
- package/dist/cjs/types/lib/therapist-card/TherapistCard.style.d.ts +0 -5
- package/dist/cjs/types/lib/therapist-information-component/TherapistInformationComponent.d.ts +0 -10
- package/dist/cjs/types/lib/therapist-information-component/TherapistInformationComponent.style.d.ts +0 -2
- package/dist/cjs/types/lib/toast/toast.d.ts +0 -5
- package/dist/cjs/types/lib/userAppTypes.d.ts +0 -239
- package/dist/cjs/types/lib/your-local-time-block/YourLocalTimeBlock.d.ts +0 -6
- package/dist/cjs/types/lib/your-local-time-block/YourLocalTimeBlock.styled.d.ts +0 -2
- package/dist/esm/b7649e1531c181af.svg +0 -69
- package/dist/esm/index.js +0 -180
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/lib/AppHeader/AppHeader.d.ts +0 -6
- package/dist/esm/types/lib/AppHeader/AppHeader.style.d.ts +0 -7
- package/dist/esm/types/lib/AppHeader/index.d.ts +0 -1
- package/dist/esm/types/lib/Avatar/Avatar.d.ts +0 -9
- package/dist/esm/types/lib/Avatar/Avatar.style.d.ts +0 -5
- package/dist/esm/types/lib/Avatar/index.d.ts +0 -1
- package/dist/esm/types/lib/Container/Container.d.ts +0 -3
- package/dist/esm/types/lib/Container/Container.styled.d.ts +0 -5
- package/dist/esm/types/lib/Container/index.d.ts +0 -1
- package/dist/esm/types/lib/EntryNotFound/EntryNotFound.d.ts +0 -5
- package/dist/esm/types/lib/EntryNotFound/EntryNotFound.style.d.ts +0 -2
- package/dist/esm/types/lib/EntryNotFound/index.d.ts +0 -1
- package/dist/esm/types/lib/Filters/ListSelect/ListSelect.d.ts +0 -13
- package/dist/esm/types/lib/Filters/ListSelect/ListSelect.style.d.ts +0 -9
- package/dist/esm/types/lib/Filters/ListSelect/index.d.ts +0 -1
- package/dist/esm/types/lib/Filters/Range/Range.d.ts +0 -14
- package/dist/esm/types/lib/Filters/Range/Range.style.d.ts +0 -3
- package/dist/esm/types/lib/Filters/Range/index.d.ts +0 -1
- package/dist/esm/types/lib/Filters/RowSelect/RowSelect.d.ts +0 -13
- package/dist/esm/types/lib/Filters/RowSelect/RowSelect.style.d.ts +0 -7
- package/dist/esm/types/lib/Filters/RowSelect/index.d.ts +0 -1
- package/dist/esm/types/lib/Filters/Toggle/Toggle.d.ts +0 -8
- package/dist/esm/types/lib/Filters/Toggle/Toggle.style.d.ts +0 -2
- package/dist/esm/types/lib/Filters/Toggle/index.d.ts +0 -1
- package/dist/esm/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +0 -40
- package/dist/esm/types/lib/HorisontalCalendar/HorizontalCalendar.styled.d.ts +0 -2
- package/dist/esm/types/lib/HorisontalCalendar/index.d.ts +0 -1
- package/dist/esm/types/lib/ImageWithFallback/ImageWithFallback.d.ts +0 -6
- package/dist/esm/types/lib/LetterAvatar/LetterAvatar.d.ts +0 -9
- package/dist/esm/types/lib/LetterAvatar/LetterAvatar.styled.d.ts +0 -5
- package/dist/esm/types/lib/Modal/Modal.d.ts +0 -8
- package/dist/esm/types/lib/Modal/Modal.style.d.ts +0 -6
- package/dist/esm/types/lib/Modal/index.d.ts +0 -1
- package/dist/esm/types/lib/ModalCalendar/ModalCalendar.d.ts +0 -10
- package/dist/esm/types/lib/ModalCalendar/ModalCalendar.styled.d.ts +0 -12
- package/dist/esm/types/lib/PersonDateTimeCard/PersonDateTimeCard.d.ts +0 -8
- package/dist/esm/types/lib/PersonDateTimeCard/PersonDateTimeCard.styled.d.ts +0 -2
- package/dist/esm/types/lib/Segment/Segment.d.ts +0 -10
- package/dist/esm/types/lib/Segment/index.d.ts +0 -2
- package/dist/esm/types/lib/Segment/types.d.ts +0 -4
- package/dist/esm/types/lib/SelectImpressionEmoji/ImpressionEmojiEnum.d.ts +0 -8
- package/dist/esm/types/lib/SelectImpressionEmoji/SelectImpressionEmoji.d.ts +0 -4
- package/dist/esm/types/lib/SelectImpressionEmoji/SelectImpressionEmoji.styled.d.ts +0 -2
- package/dist/esm/types/lib/SelectImpressionEmoji/SelectImpressionEmojiProps.d.ts +0 -6
- package/dist/esm/types/lib/SelectImpressionEmoji/emojis.d.ts +0 -5
- package/dist/esm/types/lib/SelectImpressionEmoji/index.d.ts +0 -4
- package/dist/esm/types/lib/Theme/mindly_constants.d.ts +0 -22
- package/dist/esm/types/lib/UsersPsychologistScrollList/UserPsychologistScrollList.styled.d.ts +0 -6
- package/dist/esm/types/lib/UsersPsychologistScrollList/UsersPsychologistScrollList.d.ts +0 -10
- package/dist/esm/types/lib/archived-consultation-card/ArchivedConsultationCard.d.ts +0 -14
- package/dist/esm/types/lib/archived-consultation-card/ArchivedConsultationCard.style.d.ts +0 -3
- package/dist/esm/types/lib/button/Button.d.ts +0 -9
- package/dist/esm/types/lib/button/Button.style.d.ts +0 -6
- package/dist/esm/types/lib/consultation-card/ConsultationCard.d.ts +0 -31
- package/dist/esm/types/lib/consultation-card/ConsultationCard.style.d.ts +0 -7
- package/dist/esm/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +0 -2
- package/dist/esm/types/lib/consultation-card/index.d.ts +0 -2
- package/dist/esm/types/lib/content-card/ContentCard.d.ts +0 -15
- package/dist/esm/types/lib/content-card/ContentCard.style.d.ts +0 -11
- package/dist/esm/types/lib/date-picker/DatePicker.d.ts +0 -13
- package/dist/esm/types/lib/date-picker/DatePicker.style.d.ts +0 -6
- package/dist/esm/types/lib/floating-button/FloatingButton.d.ts +0 -8
- package/dist/esm/types/lib/floating-button/FloatingButton.style.d.ts +0 -6
- package/dist/esm/types/lib/footer-for-booking/FooterForBooking.d.ts +0 -10
- package/dist/esm/types/lib/footer-for-booking/FooterForBooking.style.d.ts +0 -7
- package/dist/esm/types/lib/input/Input.d.ts +0 -13
- package/dist/esm/types/lib/input/Input.style.d.ts +0 -7
- package/dist/esm/types/lib/list-button/ListButton.d.ts +0 -9
- package/dist/esm/types/lib/list-button/ListButton.style.d.ts +0 -2
- package/dist/esm/types/lib/navigation-bar/NavigationBar.d.ts +0 -8
- package/dist/esm/types/lib/navigation-bar/NavigationBar.style.d.ts +0 -8
- package/dist/esm/types/lib/no-internet-connection/NoInternetConnection.d.ts +0 -7
- package/dist/esm/types/lib/no-internet-connection/NoInternetConnection.style.d.ts +0 -6
- package/dist/esm/types/lib/notes-card-text/NotesCardText.d.ts +0 -6
- package/dist/esm/types/lib/notes-card-text/NotesCardText.style.d.ts +0 -1
- package/dist/esm/types/lib/notes-card-text/index.d.ts +0 -1
- package/dist/esm/types/lib/notes-editor/NotesEditor.d.ts +0 -5
- package/dist/esm/types/lib/notes-editor/NotesEditor.styled.d.ts +0 -2
- package/dist/esm/types/lib/scroll-tabs/ScrollTabs.d.ts +0 -7
- package/dist/esm/types/lib/scroll-tabs/ScrollTabs.style.d.ts +0 -3
- package/dist/esm/types/lib/tab-bar/TabBar.d.ts +0 -6
- package/dist/esm/types/lib/tab-bar/TabBar.style.d.ts +0 -5
- package/dist/esm/types/lib/therapist-card/TherapistCard.d.ts +0 -13
- package/dist/esm/types/lib/therapist-card/TherapistCard.style.d.ts +0 -5
- package/dist/esm/types/lib/therapist-information-component/TherapistInformationComponent.d.ts +0 -10
- package/dist/esm/types/lib/therapist-information-component/TherapistInformationComponent.style.d.ts +0 -2
- package/dist/esm/types/lib/toast/toast.d.ts +0 -5
- package/dist/esm/types/lib/userAppTypes.d.ts +0 -239
- package/dist/esm/types/lib/your-local-time-block/YourLocalTimeBlock.d.ts +0 -6
- package/dist/esm/types/lib/your-local-time-block/YourLocalTimeBlock.styled.d.ts +0 -2
- package/dist/index.d.ts +0 -644
- /package/dist/{cjs/types/lib/AppHeader/index.d.ts → lib/AppHeader/index.ts} +0 -0
- /package/dist/{cjs/types/lib/Avatar/index.d.ts → lib/Avatar/index.ts} +0 -0
- /package/dist/{cjs/types/lib/Container/index.d.ts → lib/Container/index.ts} +0 -0
- /package/dist/{cjs/b7649e1531c181af.svg → lib/EntryNotFound/calendar.svg} +0 -0
- /package/dist/{cjs/types/lib/EntryNotFound/index.d.ts → lib/EntryNotFound/index.ts} +0 -0
- /package/dist/{cjs/types/lib/Filters/ListSelect/index.d.ts → lib/Filters/ListSelect/index.ts} +0 -0
- /package/dist/{cjs/types/lib/Filters/Range/index.d.ts → lib/Filters/Range/index.ts} +0 -0
- /package/dist/{cjs/types/lib/Filters/RowSelect/index.d.ts → lib/Filters/RowSelect/index.ts} +0 -0
- /package/dist/{cjs/types/lib/Filters/Toggle/index.d.ts → lib/Filters/Toggle/index.ts} +0 -0
- /package/dist/{cjs/types/lib/HorisontalCalendar/index.d.ts → lib/HorisontalCalendar/index.ts} +0 -0
- /package/dist/{cjs/types/lib/Modal/index.d.ts → lib/Modal/index.ts} +0 -0
- /package/dist/{cjs/types/lib/Segment/index.d.ts → lib/Segment/index.ts} +0 -0
- /package/dist/{cjs/types/lib/consultation-card/index.d.ts → lib/consultation-card/index.ts} +0 -0
- /package/dist/{cjs/types/lib/notes-card-text/index.d.ts → lib/notes-card-text/index.ts} +0 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
ButtonContainer,
|
|
4
|
+
ButtonsContainer,
|
|
5
|
+
Container,
|
|
6
|
+
DividersContainer,
|
|
7
|
+
InfoContainer,
|
|
8
|
+
TextInfo,
|
|
9
|
+
} from './ConsultationCard.style';
|
|
10
|
+
import { Button } from '../button/Button';
|
|
11
|
+
import '../Theme/global.css';
|
|
12
|
+
import { DateTime } from 'luxon';
|
|
13
|
+
import { Avatar } from '../Avatar';
|
|
14
|
+
|
|
15
|
+
export enum DayOfWeeks {
|
|
16
|
+
'Понеділок' = 1,
|
|
17
|
+
'Вівторок',
|
|
18
|
+
'Середа',
|
|
19
|
+
'Четверг',
|
|
20
|
+
"П'ятниця",
|
|
21
|
+
'Субота',
|
|
22
|
+
'Неділя',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type DateTimeType = {
|
|
26
|
+
_nanoseconds: number;
|
|
27
|
+
_seconds: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export interface ConsultationCardProps {
|
|
31
|
+
/*
|
|
32
|
+
* Here you need to pass a function to start consultation
|
|
33
|
+
*/
|
|
34
|
+
startConsultation: (props?: React.SyntheticEvent) => void;
|
|
35
|
+
|
|
36
|
+
/*
|
|
37
|
+
* Function for refund consultation
|
|
38
|
+
*/
|
|
39
|
+
handleReschedule: (props?: React.SyntheticEvent) => void;
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
* Function for refund consultation
|
|
43
|
+
*/
|
|
44
|
+
handleRefund: (props?: React.SyntheticEvent) => void;
|
|
45
|
+
handleNotes?: (props?: React.SyntheticEvent) => void;
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
* Psychologist name and last name
|
|
49
|
+
*/
|
|
50
|
+
consultationWith: string;
|
|
51
|
+
|
|
52
|
+
consultationTime: DateTimeType;
|
|
53
|
+
userTimeZone: string;
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* Psychologist avatar link
|
|
57
|
+
*/
|
|
58
|
+
avatar: string;
|
|
59
|
+
autorecord?: boolean;
|
|
60
|
+
|
|
61
|
+
['data-container-testid']?: string;
|
|
62
|
+
['data-start-testid']?: string;
|
|
63
|
+
['data-reschedule-testid']?: string;
|
|
64
|
+
['data-refund-testid']?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const ConsultationCard: React.FC<ConsultationCardProps> = ({
|
|
68
|
+
startConsultation,
|
|
69
|
+
handleReschedule,
|
|
70
|
+
handleRefund,
|
|
71
|
+
consultationWith,
|
|
72
|
+
consultationTime,
|
|
73
|
+
userTimeZone,
|
|
74
|
+
avatar,
|
|
75
|
+
autorecord = false,
|
|
76
|
+
...props
|
|
77
|
+
}) => {
|
|
78
|
+
const time = DateTime.fromSeconds(consultationTime._seconds)
|
|
79
|
+
.setZone(userTimeZone)
|
|
80
|
+
.setLocale('uk-UK');
|
|
81
|
+
const finishedTime = DateTime.fromSeconds(consultationTime._seconds)
|
|
82
|
+
.setZone(userTimeZone)
|
|
83
|
+
.setLocale('uk-UK')
|
|
84
|
+
.plus({ minute: 50 });
|
|
85
|
+
const currentTime = DateTime.now().setZone(userTimeZone).setLocale('uk-UK');
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<Container data-testid={props['data-container-testid']}>
|
|
89
|
+
<InfoContainer>
|
|
90
|
+
<TextInfo>
|
|
91
|
+
<h3>Консультація з {consultationWith}</h3>
|
|
92
|
+
{autorecord && <span>Автозапис</span>}
|
|
93
|
+
<h2 className="time">
|
|
94
|
+
{currentTime.toSeconds() <= finishedTime.toSeconds() ? (
|
|
95
|
+
<>
|
|
96
|
+
{DayOfWeeks[time.weekday]}
|
|
97
|
+
<br />
|
|
98
|
+
</>
|
|
99
|
+
) : (
|
|
100
|
+
<>
|
|
101
|
+
Відбулась <br />
|
|
102
|
+
</>
|
|
103
|
+
)}
|
|
104
|
+
{time.toLocaleString({
|
|
105
|
+
month: 'long',
|
|
106
|
+
day: 'numeric',
|
|
107
|
+
})}{' '}
|
|
108
|
+
о {time.toFormat('HH:mm')}
|
|
109
|
+
</h2>
|
|
110
|
+
</TextInfo>
|
|
111
|
+
<Avatar
|
|
112
|
+
src={avatar}
|
|
113
|
+
dimensions={104}
|
|
114
|
+
firstName={consultationWith}
|
|
115
|
+
className="person-avatar"
|
|
116
|
+
/>
|
|
117
|
+
</InfoContainer>
|
|
118
|
+
{currentTime.toSeconds() <= finishedTime.toSeconds() && (
|
|
119
|
+
<ButtonsContainer>
|
|
120
|
+
<Button
|
|
121
|
+
buttonType="primary"
|
|
122
|
+
isDisabled={false}
|
|
123
|
+
data-testid={props['data-start-testid']}
|
|
124
|
+
onClick={startConsultation} // # skipcq JS-0411
|
|
125
|
+
>
|
|
126
|
+
Почати консультацію
|
|
127
|
+
</Button>
|
|
128
|
+
<DividersContainer>
|
|
129
|
+
<div className="divider" />
|
|
130
|
+
<h4>чи</h4>
|
|
131
|
+
<div className="divider" />
|
|
132
|
+
</DividersContainer>
|
|
133
|
+
<ButtonContainer>
|
|
134
|
+
<Button
|
|
135
|
+
buttonType="secondaryCancel"
|
|
136
|
+
isDisabled={false}
|
|
137
|
+
onClick={handleRefund}
|
|
138
|
+
data-testid={props['data-refund-testid']}
|
|
139
|
+
>
|
|
140
|
+
Відмінити
|
|
141
|
+
</Button>
|
|
142
|
+
<Button
|
|
143
|
+
buttonType="secondary"
|
|
144
|
+
isDisabled={false}
|
|
145
|
+
onClick={handleReschedule}
|
|
146
|
+
data-testid={props['data-refund-testid']}
|
|
147
|
+
>
|
|
148
|
+
Перенести
|
|
149
|
+
</Button>
|
|
150
|
+
</ButtonContainer>
|
|
151
|
+
</ButtonsContainer>
|
|
152
|
+
)}
|
|
153
|
+
</Container>
|
|
154
|
+
);
|
|
155
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IonSkeletonText } from '@ionic/react';
|
|
3
|
+
import {
|
|
4
|
+
ButtonContainer,
|
|
5
|
+
Container,
|
|
6
|
+
InfoContainer,
|
|
7
|
+
TextInfo,
|
|
8
|
+
} from './ConsultationCard.style';
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
11
|
+
export const ConsultationCardSkeleton = () => {
|
|
12
|
+
return (
|
|
13
|
+
<Container>
|
|
14
|
+
<InfoContainer style={{ marginBottom: '16px' }}>
|
|
15
|
+
<TextInfo style={{ padding: '6px 0' }}>
|
|
16
|
+
<IonSkeletonText
|
|
17
|
+
animated
|
|
18
|
+
style={{
|
|
19
|
+
width: '159px',
|
|
20
|
+
height: '10px',
|
|
21
|
+
borderRadius: '4px',
|
|
22
|
+
margin: '0',
|
|
23
|
+
}}
|
|
24
|
+
/>
|
|
25
|
+
<IonSkeletonText
|
|
26
|
+
animated
|
|
27
|
+
style={{
|
|
28
|
+
width: '69px',
|
|
29
|
+
height: '10px',
|
|
30
|
+
borderRadius: '4px',
|
|
31
|
+
margin: '0',
|
|
32
|
+
}}
|
|
33
|
+
/>
|
|
34
|
+
<IonSkeletonText
|
|
35
|
+
animated
|
|
36
|
+
style={{
|
|
37
|
+
width: '74px',
|
|
38
|
+
height: '14px',
|
|
39
|
+
borderRadius: '4px',
|
|
40
|
+
margin: '0',
|
|
41
|
+
}}
|
|
42
|
+
/>
|
|
43
|
+
<IonSkeletonText
|
|
44
|
+
animated
|
|
45
|
+
style={{
|
|
46
|
+
width: '57px',
|
|
47
|
+
height: '11px',
|
|
48
|
+
borderRadius: '4px',
|
|
49
|
+
margin: '0',
|
|
50
|
+
}}
|
|
51
|
+
/>
|
|
52
|
+
<IonSkeletonText
|
|
53
|
+
animated
|
|
54
|
+
style={{
|
|
55
|
+
width: '118px',
|
|
56
|
+
height: '11px',
|
|
57
|
+
borderRadius: '4px',
|
|
58
|
+
margin: '0',
|
|
59
|
+
}}
|
|
60
|
+
/>
|
|
61
|
+
</TextInfo>
|
|
62
|
+
<IonSkeletonText
|
|
63
|
+
animated
|
|
64
|
+
style={{
|
|
65
|
+
width: '104px',
|
|
66
|
+
height: '104px',
|
|
67
|
+
borderRadius: '8px',
|
|
68
|
+
margin: '0',
|
|
69
|
+
}}
|
|
70
|
+
/>
|
|
71
|
+
</InfoContainer>
|
|
72
|
+
<IonSkeletonText
|
|
73
|
+
animated
|
|
74
|
+
style={{
|
|
75
|
+
width: '100%',
|
|
76
|
+
height: '40px',
|
|
77
|
+
borderRadius: '4px',
|
|
78
|
+
margin: '0 0 20px 0',
|
|
79
|
+
}}
|
|
80
|
+
/>
|
|
81
|
+
<IonSkeletonText
|
|
82
|
+
animated
|
|
83
|
+
style={{
|
|
84
|
+
width: '100%',
|
|
85
|
+
height: '7px',
|
|
86
|
+
borderRadius: '4px',
|
|
87
|
+
margin: '0 0 17px 0',
|
|
88
|
+
}}
|
|
89
|
+
/>
|
|
90
|
+
<ButtonContainer
|
|
91
|
+
style={{ justifyContent: 'space-around', paddingBottom: '13px' }}
|
|
92
|
+
>
|
|
93
|
+
<IonSkeletonText
|
|
94
|
+
animated
|
|
95
|
+
style={{
|
|
96
|
+
width: '68px',
|
|
97
|
+
height: '14px',
|
|
98
|
+
borderRadius: '4px',
|
|
99
|
+
margin: '0',
|
|
100
|
+
}}
|
|
101
|
+
/>
|
|
102
|
+
<IonSkeletonText
|
|
103
|
+
animated
|
|
104
|
+
style={{
|
|
105
|
+
width: '76px',
|
|
106
|
+
height: '14px',
|
|
107
|
+
borderRadius: '4px',
|
|
108
|
+
margin: '0',
|
|
109
|
+
}}
|
|
110
|
+
/>
|
|
111
|
+
</ButtonContainer>
|
|
112
|
+
</Container>
|
|
113
|
+
);
|
|
114
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { colorConstants } from '../Theme/mindly_constants';
|
|
3
|
+
import { IonSkeletonText } from '@ionic/react';
|
|
4
|
+
|
|
5
|
+
export const Container = styled.div`
|
|
6
|
+
border: 1px solid ${colorConstants.StrokeGray};
|
|
7
|
+
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
text-align: left;
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
export const ContentArticle = styled.a`
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-height: 192px;
|
|
18
|
+
max-height: 192px;
|
|
19
|
+
display: block;
|
|
20
|
+
|
|
21
|
+
img {
|
|
22
|
+
border-radius: 8px 8px 0 0;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 192px;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
export const ContentVideo = styled.iframe`
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 192px;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
border-radius: 8px 8px 0 0;
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
export const Title = styled.h3`
|
|
37
|
+
padding: 16px !important;
|
|
38
|
+
height: 104px;
|
|
39
|
+
color: ${colorConstants.primaryTextColor};
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
interface SkeletonProps {
|
|
43
|
+
isLoading: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const SkeletonWrapper = styled.div<SkeletonProps>`
|
|
47
|
+
visibility: ${(props) => (props.isLoading ? 'visible' : 'hidden')};
|
|
48
|
+
position: absolute;
|
|
49
|
+
width: 100%;
|
|
50
|
+
top: 0;
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
export const Skeleton = styled(IonSkeletonText)`
|
|
54
|
+
height: 192px;
|
|
55
|
+
border-radius: 4px 4px 0 0;
|
|
56
|
+
border: none;
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding: 0;
|
|
59
|
+
`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import { ContentCard } from './ContentCard';
|
|
4
|
+
|
|
5
|
+
describe('Test content card', () => {
|
|
6
|
+
test('Smoke test video', () => {
|
|
7
|
+
render(
|
|
8
|
+
<ContentCard
|
|
9
|
+
contentVideo={{
|
|
10
|
+
title: 'КАК ВЫЙТИ ИЗ ДЕПРЕССИИ: СОВЕТЫ ПСИХОЛОГА',
|
|
11
|
+
url: 'watch?v=GnrkrxNL1Ek',
|
|
12
|
+
}}
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
test('Smoke test articles', () => {
|
|
18
|
+
render(
|
|
19
|
+
<ContentCard
|
|
20
|
+
contentArticle={{
|
|
21
|
+
link: 'https://ru.mindly.cc/our-thoughts-our-friends-or-enemies/',
|
|
22
|
+
photoURL:
|
|
23
|
+
'https://ru.mindly.cc/content/images/size/w2000/2020/10/cover-prepared-1--2-.jpg',
|
|
24
|
+
title: 'Мысли - наши друзья или наши враги?',
|
|
25
|
+
}}
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Container,
|
|
4
|
+
ContentArticle,
|
|
5
|
+
ContentVideo,
|
|
6
|
+
Skeleton,
|
|
7
|
+
SkeletonWrapper,
|
|
8
|
+
Title,
|
|
9
|
+
} from './ContentCard.style';
|
|
10
|
+
import '../Theme/global.css';
|
|
11
|
+
|
|
12
|
+
export interface ContentCardProps {
|
|
13
|
+
/*
|
|
14
|
+
* We pass this object when we need to create a card with a video
|
|
15
|
+
* title: video title
|
|
16
|
+
* url: link to video
|
|
17
|
+
*/
|
|
18
|
+
contentVideo?: {
|
|
19
|
+
title: string;
|
|
20
|
+
url: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* We pass this object when we need to create a card with a article
|
|
25
|
+
* title: article title
|
|
26
|
+
* link: link to article
|
|
27
|
+
* photoURL: link to article preview
|
|
28
|
+
*/
|
|
29
|
+
contentArticle?: {
|
|
30
|
+
link: string;
|
|
31
|
+
photoURL: string;
|
|
32
|
+
title: string;
|
|
33
|
+
};
|
|
34
|
+
['data-testid']?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const ContentCard: React.FC<ContentCardProps> = (props) => {
|
|
38
|
+
const [isLoading, setIsLoading] = useState<boolean>(true);
|
|
39
|
+
const title = props.contentVideo?.title || props.contentArticle?.title;
|
|
40
|
+
const contentJSX = props.contentArticle ? (
|
|
41
|
+
<ContentArticle
|
|
42
|
+
data-testID={props['data-testid']}
|
|
43
|
+
href={props.contentArticle.link}
|
|
44
|
+
>
|
|
45
|
+
<img
|
|
46
|
+
src={props.contentArticle.photoURL}
|
|
47
|
+
alt="article-img"
|
|
48
|
+
onLoad={() => {
|
|
49
|
+
setIsLoading(false);
|
|
50
|
+
}}
|
|
51
|
+
/>
|
|
52
|
+
</ContentArticle>
|
|
53
|
+
) : (
|
|
54
|
+
<ContentVideo
|
|
55
|
+
data-testid={props['data-testid']}
|
|
56
|
+
src={`https://www.youtube.com/embed/${props.contentVideo?.url}`}
|
|
57
|
+
title="YouTube video player"
|
|
58
|
+
frameBorder="0"
|
|
59
|
+
onLoad={() => {
|
|
60
|
+
setIsLoading(false);
|
|
61
|
+
}}
|
|
62
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
|
63
|
+
allowFullScreen
|
|
64
|
+
/>
|
|
65
|
+
);
|
|
66
|
+
return (
|
|
67
|
+
<Container>
|
|
68
|
+
{contentJSX}
|
|
69
|
+
<SkeletonWrapper isLoading={isLoading}>
|
|
70
|
+
<Skeleton animated />
|
|
71
|
+
</SkeletonWrapper>
|
|
72
|
+
<Title className="semiBold">
|
|
73
|
+
{' '}
|
|
74
|
+
{
|
|
75
|
+
// #skipcq
|
|
76
|
+
}
|
|
77
|
+
{title}
|
|
78
|
+
</Title>
|
|
79
|
+
</Container>
|
|
80
|
+
);
|
|
81
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { colorConstants } from '../Theme/mindly_constants';
|
|
3
|
+
|
|
4
|
+
interface ContainerProps {
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const Container = styled.div<ContainerProps>`
|
|
9
|
+
padding: 16px 8px;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
border: 1px solid;
|
|
12
|
+
width: 100%;
|
|
13
|
+
min-width: 86px;
|
|
14
|
+
max-height: 108px;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
border-color: ${(props) =>
|
|
17
|
+
props.isActive ? colorConstants.primaryColor : colorConstants.StrokeGray};
|
|
18
|
+
background: ${(props) =>
|
|
19
|
+
props.isActive ? colorConstants.secondaryColor : colorConstants.White};
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
box-shadow: 0 5px 8px rgba(0, 0, 0, 0.04);
|
|
24
|
+
|
|
25
|
+
h4 {
|
|
26
|
+
margin-bottom: 4px;
|
|
27
|
+
color: ${(props) =>
|
|
28
|
+
props.isActive
|
|
29
|
+
? colorConstants.primaryColor
|
|
30
|
+
: colorConstants.secondaryTextColor};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
h1 {
|
|
34
|
+
color: ${(props) =>
|
|
35
|
+
props.isActive
|
|
36
|
+
? colorConstants.primaryColor
|
|
37
|
+
: colorConstants.primaryTextColor};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
h5 {
|
|
41
|
+
color: ${(props) =>
|
|
42
|
+
props.isActive
|
|
43
|
+
? colorConstants.primaryColor
|
|
44
|
+
: colorConstants.secondaryTextColor};
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
export const WeekDayH1 = styled.h1`
|
|
49
|
+
line-height: 76px;
|
|
50
|
+
font-weight: 700;
|
|
51
|
+
margin: 0;
|
|
52
|
+
`;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { render } from '@testing-library/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { DatePicker } from './DatePicker';
|
|
4
|
+
|
|
5
|
+
describe('Test date picker', () => {
|
|
6
|
+
test('Smoke test', () => {
|
|
7
|
+
render(<DatePicker day="monday" date="12" isActive month="jan" />);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Container, WeekDayH1 } from './DatePicker.style';
|
|
3
|
+
import '../Theme/global.css';
|
|
4
|
+
|
|
5
|
+
export interface DatePickerProps {
|
|
6
|
+
/*
|
|
7
|
+
* Button type
|
|
8
|
+
*/
|
|
9
|
+
type: 'date' | 'weekday';
|
|
10
|
+
/*
|
|
11
|
+
* Weekday. Example: "Пн"
|
|
12
|
+
*/
|
|
13
|
+
weekday?: string;
|
|
14
|
+
/*
|
|
15
|
+
* Abbreviated to 2 letters day of week
|
|
16
|
+
*/
|
|
17
|
+
day?: string;
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Day of month
|
|
21
|
+
*/
|
|
22
|
+
date?: string;
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Abbreviated to 3 letters month name
|
|
26
|
+
*/
|
|
27
|
+
month?: string;
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Status defining condition (set isActive on click)
|
|
31
|
+
*/
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* Default react onClick
|
|
36
|
+
*/
|
|
37
|
+
onClick: (props?: React.SyntheticEvent) => void;
|
|
38
|
+
['data-testid']?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const DatePicker: React.FC<DatePickerProps> = (props) => {
|
|
42
|
+
return (
|
|
43
|
+
<Container
|
|
44
|
+
data-testid={props['data-testid']}
|
|
45
|
+
isActive={props.isActive}
|
|
46
|
+
onClick={() => props.onClick()}
|
|
47
|
+
>
|
|
48
|
+
{props.type === 'weekday' ? (
|
|
49
|
+
<WeekDayH1>{props.weekday}</WeekDayH1>
|
|
50
|
+
) : (
|
|
51
|
+
<>
|
|
52
|
+
<h4>{props.day}</h4>
|
|
53
|
+
<h1 className="bold">{props.date}</h1>
|
|
54
|
+
<h5>{props.month}</h5>
|
|
55
|
+
</>
|
|
56
|
+
)}
|
|
57
|
+
</Container>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
interface ContainerProps {
|
|
4
|
+
bottomHeight: number;
|
|
5
|
+
rightWidth: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const Container = styled.a<ContainerProps>`
|
|
9
|
+
display: block;
|
|
10
|
+
width: 54px;
|
|
11
|
+
height: 54px;
|
|
12
|
+
position: fixed;
|
|
13
|
+
bottom: ${(props) => props.bottomHeight}px;
|
|
14
|
+
right: ${(props) => props.rightWidth}px;
|
|
15
|
+
z-index: 10000000000000;
|
|
16
|
+
|
|
17
|
+
img {
|
|
18
|
+
background: none;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { render } from '@testing-library/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FloatingButton } from './FloatingButton';
|
|
4
|
+
|
|
5
|
+
describe('Test floating button', () => {
|
|
6
|
+
test('Smoke test', () => {
|
|
7
|
+
render(<FloatingButton bottomHeight={20} rightWidth={20} />);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Container } from './FloatingButton.style';
|
|
3
|
+
import img from './floating button.svg';
|
|
4
|
+
import '../Theme/global.css';
|
|
5
|
+
|
|
6
|
+
export interface FloatingButtonType {
|
|
7
|
+
/*
|
|
8
|
+
* The position of the button relative to the bottom edge. Conveys a value in pixels
|
|
9
|
+
*/
|
|
10
|
+
bottomHeight: number;
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* The position of the button relative to the right edge. Conveys a value in pixels
|
|
14
|
+
*/
|
|
15
|
+
rightWidth: number;
|
|
16
|
+
['data-testid']?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const FloatingButton: React.FC<FloatingButtonType> = (props) => {
|
|
20
|
+
return (
|
|
21
|
+
<Container
|
|
22
|
+
href="https://t.me/MindlySupport"
|
|
23
|
+
bottomHeight={props.bottomHeight}
|
|
24
|
+
rightWidth={props.rightWidth}
|
|
25
|
+
>
|
|
26
|
+
<img data-testid={props['data-testid']} src={img} alt="support mindly" />
|
|
27
|
+
</Container>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="54" height="54" viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="54" height="54" fill="#21ABD2"/>
|
|
3
|
+
<path d="M27.0002 15C21.9405 15 17.8237 19.1168 17.8237 24.1765V32.647C17.8237 33.8148 18.7737 34.7648 19.9413 34.7648C21.1092 34.7648 22.0591 33.8148 22.0591 32.647V25.5883C22.0591 24.4206 21.1092 23.4706 19.9413 23.4706C19.7037 23.4706 19.4788 23.5188 19.2651 23.5913C19.5663 19.5829 22.9168 16.4117 27.0002 16.4117C31.0815 16.4117 34.431 19.58 34.735 23.5856C34.5226 23.5129 34.2964 23.4706 34.0591 23.4706C32.8913 23.4706 31.9413 24.4206 31.9413 25.5883V32.647C31.9413 33.8148 32.8913 34.7648 34.0591 34.7648C34.3078 34.7648 34.5431 34.7139 34.765 34.6348V35.4706C34.765 35.8601 34.4479 36.1765 34.0591 36.1765H28.9879C28.6954 35.3566 27.9192 34.7648 27.0002 34.7648C25.8326 34.7648 24.8826 35.7147 24.8826 36.8824C24.8826 38.05 25.8326 39 27.0002 39C27.9192 39 28.6954 38.408 28.9879 37.5883H34.0591C35.2268 37.5883 36.1768 36.6383 36.1768 35.4706C36.1768 31.2248 36.1768 28.4269 36.1768 24.1765C36.1768 19.1168 32.06 15 27.0002 15V15Z" fill="white"/>
|
|
4
|
+
<path d="M37.5884 25.0122V33.2227C38.4081 32.9304 39.0001 32.1542 39.0001 31.235V26.9998C39.0001 26.0808 38.4081 25.3046 37.5884 25.0122Z" fill="white"/>
|
|
5
|
+
<path d="M15 26.9998V31.235C15 32.1542 15.592 32.9304 16.4117 33.2227V25.0122C15.592 25.3046 15 26.0808 15 26.9998Z" fill="white"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { IonIcon } from '@ionic/react';
|
|
3
|
+
import { colorConstants } from '../Theme/mindly_constants';
|
|
4
|
+
|
|
5
|
+
interface ContainerProps {
|
|
6
|
+
isIos: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const Container = styled.div<ContainerProps>`
|
|
10
|
+
padding: ${(props) => (props.isIos ? '16px 24px 50px' : '16px 24px')};
|
|
11
|
+
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
|
|
12
|
+
display: flex;
|
|
13
|
+
position: fixed;
|
|
14
|
+
z-index: 10000000000000;
|
|
15
|
+
background: ${colorConstants.White};
|
|
16
|
+
bottom: -1px;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
align-items: center;
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
@media (min-width: 600px) {
|
|
22
|
+
padding-left: calc((100vw - 468px) / 2);
|
|
23
|
+
padding-right: calc((100vw - 468px) / 2);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (min-width: 1024px) {
|
|
27
|
+
padding-left: calc((100vw - 960px) / 2);
|
|
28
|
+
padding-right: calc((100vw - 960px) / 2);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
button {
|
|
32
|
+
min-height: 44px !important;
|
|
33
|
+
width: 132px;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
export const InfoContainer = styled.div`
|
|
38
|
+
h4 {
|
|
39
|
+
color: ${colorConstants.primaryTextColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
h4:first-child {
|
|
43
|
+
margin-bottom: 4px;
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
|
+
export const SmallIcon = styled<any>(IonIcon)`
|
|
49
|
+
// #skipcq
|
|
50
|
+
margin: 0 5px -4px 0;
|
|
51
|
+
font-size: 18px;
|
|
52
|
+
|
|
53
|
+
&.ion-color {
|
|
54
|
+
--ion-color-base: ${colorConstants.primaryColor} !important;
|
|
55
|
+
}
|
|
56
|
+
`;
|