@mindly/ui-components 3.1.6 → 3.2.0
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 +178 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/{index.ts → cjs/types/index.d.ts} +8 -51
- 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 +9 -0
- package/dist/cjs/types/lib/footer-for-booking/FooterForBooking.style.d.ts +6 -0
- package/dist/cjs/types/lib/footer-for-booking/index.d.ts +1 -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 +192 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/index.d.ts +45 -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 +9 -0
- package/dist/esm/types/lib/footer-for-booking/FooterForBooking.style.d.ts +6 -0
- package/dist/esm/types/lib/footer-for-booking/index.d.ts +1 -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 +419 -0
- package/package.json +17 -4
- 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
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText } from 'react';
|
|
3
|
+
import { JSX as JSX$1 } from '@ionic/core/components';
|
|
4
|
+
|
|
5
|
+
interface ButtonProps {
|
|
6
|
+
buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive' | 'actionButtonGreen';
|
|
7
|
+
isDisabled: boolean;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
onClick?: (props?: React.SyntheticEvent) => void;
|
|
10
|
+
['data-testid']?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Button: React.FC<ButtonProps>;
|
|
13
|
+
|
|
14
|
+
interface FloatingButtonType {
|
|
15
|
+
bottomHeight: number;
|
|
16
|
+
rightWidth: number;
|
|
17
|
+
['data-testid']?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const FloatingButton: React.FC<FloatingButtonType>;
|
|
20
|
+
|
|
21
|
+
interface ListButtonProps {
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
icon: string;
|
|
24
|
+
onClick: (props?: React.SyntheticEvent) => void;
|
|
25
|
+
['data-testid']?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const ListButton: React.FC<ListButtonProps>;
|
|
28
|
+
|
|
29
|
+
interface NavigationBarProps {
|
|
30
|
+
isInternetConnected: boolean;
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
isIos: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare const NavigationBar: React.FC<NavigationBarProps>;
|
|
35
|
+
|
|
36
|
+
interface ContentCardProps {
|
|
37
|
+
contentVideo?: {
|
|
38
|
+
title: string;
|
|
39
|
+
url: string;
|
|
40
|
+
};
|
|
41
|
+
contentArticle?: {
|
|
42
|
+
link: string;
|
|
43
|
+
photoURL: string;
|
|
44
|
+
title: string;
|
|
45
|
+
};
|
|
46
|
+
['data-testid']?: string;
|
|
47
|
+
}
|
|
48
|
+
declare const ContentCard: React.FC<ContentCardProps>;
|
|
49
|
+
|
|
50
|
+
interface TherapistCardProps {
|
|
51
|
+
psychologistName: string;
|
|
52
|
+
psychologistLastName: string;
|
|
53
|
+
psychologistType: string;
|
|
54
|
+
psychologistPhoto: string;
|
|
55
|
+
psychologistPrice: number;
|
|
56
|
+
psychologistDuration: number;
|
|
57
|
+
psychologistExperience: number;
|
|
58
|
+
handleClick: (props?: React.SyntheticEvent) => void;
|
|
59
|
+
['data-testid']?: string;
|
|
60
|
+
}
|
|
61
|
+
declare const TherapistCard: React.FC<TherapistCardProps>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Toast that work line an API, we can call it anywhere, need message text and duration(default 3 seconds)
|
|
65
|
+
*/
|
|
66
|
+
declare const toast: (message: string, duration?: number) => Promise<void>;
|
|
67
|
+
|
|
68
|
+
interface ArchivedConsultationCardProps {
|
|
69
|
+
nameAndSurname: string;
|
|
70
|
+
date: string;
|
|
71
|
+
avatar: string;
|
|
72
|
+
isFree?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Consultation price
|
|
75
|
+
*/
|
|
76
|
+
price: string;
|
|
77
|
+
['data-testid']?: string;
|
|
78
|
+
}
|
|
79
|
+
declare const ArchivedConsultationCard: React.FC<ArchivedConsultationCardProps>;
|
|
80
|
+
|
|
81
|
+
interface DatePickerProps {
|
|
82
|
+
type: 'date' | 'weekday';
|
|
83
|
+
weekday?: string;
|
|
84
|
+
day?: string;
|
|
85
|
+
date?: string;
|
|
86
|
+
month?: string;
|
|
87
|
+
isActive: boolean;
|
|
88
|
+
onClick: (props?: React.SyntheticEvent) => void;
|
|
89
|
+
['data-testid']?: string;
|
|
90
|
+
}
|
|
91
|
+
declare const DatePicker: React.FC<DatePickerProps>;
|
|
92
|
+
|
|
93
|
+
interface NoInternetConnectionProps {
|
|
94
|
+
isInternetConnected: boolean;
|
|
95
|
+
isIos: boolean;
|
|
96
|
+
}
|
|
97
|
+
declare const NoInternetConnection: React.FC<NoInternetConnectionProps>;
|
|
98
|
+
|
|
99
|
+
interface TherapistInformationComponentProps {
|
|
100
|
+
avatar: string;
|
|
101
|
+
experience: string;
|
|
102
|
+
duration: string;
|
|
103
|
+
price: string;
|
|
104
|
+
['data-testid']?: string;
|
|
105
|
+
}
|
|
106
|
+
declare const TherapistInformationComponent: React.FC<TherapistInformationComponentProps>;
|
|
107
|
+
|
|
108
|
+
interface InputProps {
|
|
109
|
+
isActive: boolean;
|
|
110
|
+
name: string;
|
|
111
|
+
type: 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | 'time' | 'week' | 'month' | 'datetime-local';
|
|
112
|
+
placeholder: string;
|
|
113
|
+
value: string;
|
|
114
|
+
['data-testid']?: string;
|
|
115
|
+
onIonChange: (e: CustomEvent) => void;
|
|
116
|
+
icon: string;
|
|
117
|
+
}
|
|
118
|
+
declare const Input: React.FC<InputProps>;
|
|
119
|
+
|
|
120
|
+
interface ScrollTabsProps {
|
|
121
|
+
setActiveTab: (e?: string) => void;
|
|
122
|
+
value: 'profile' | 'video' | 'articles';
|
|
123
|
+
}
|
|
124
|
+
declare const ScrollTabs: React.FC<ScrollTabsProps>;
|
|
125
|
+
|
|
126
|
+
interface TabBarProps {
|
|
127
|
+
children: ReactNode;
|
|
128
|
+
isIos: boolean;
|
|
129
|
+
}
|
|
130
|
+
declare const TabBar: React.FC<TabBarProps>;
|
|
131
|
+
|
|
132
|
+
interface YourLocalTimeBlockProps {
|
|
133
|
+
text?: string;
|
|
134
|
+
}
|
|
135
|
+
declare const YourLocalTimeBlock: React.FC<YourLocalTimeBlockProps>;
|
|
136
|
+
|
|
137
|
+
declare type ModalCalendarProps = {
|
|
138
|
+
onDaySelected: (day: Date) => void;
|
|
139
|
+
consultationDays: Date[];
|
|
140
|
+
smileDays?: Date[];
|
|
141
|
+
noteDays?: Date[];
|
|
142
|
+
selectedDate?: Date;
|
|
143
|
+
};
|
|
144
|
+
declare const ModalCalendar: React.FC<ModalCalendarProps>;
|
|
145
|
+
|
|
146
|
+
declare type HorizontalCalendarProps = {
|
|
147
|
+
consultationDatesSeconds?: number[];
|
|
148
|
+
myNotesDatesSeconds?: number[];
|
|
149
|
+
toMeNotesDatesSeconds?: number[];
|
|
150
|
+
/**
|
|
151
|
+
* Days to be rendered. e.g. 15 - means 7 before today and 7 after today
|
|
152
|
+
*/
|
|
153
|
+
daysToRender?: number;
|
|
154
|
+
value?: DayToRender | Date;
|
|
155
|
+
onChange?: (value: DayToRender) => void;
|
|
156
|
+
/**
|
|
157
|
+
* date from which a component should start coordinates.
|
|
158
|
+
* e.g. startFrom = "15.01.2022", daysToRender=5
|
|
159
|
+
* return ["13.02.2022", "14.01.2022", "15.01.2022", "16.01.2022", "17.01.2022"]
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
startFrom?: Date;
|
|
163
|
+
showSkeleton?: boolean;
|
|
164
|
+
};
|
|
165
|
+
declare enum DayOfWeek {
|
|
166
|
+
SUN = "\u041D\u0434",
|
|
167
|
+
MON = "\u041F\u043D",
|
|
168
|
+
TUE = "\u0412\u0442",
|
|
169
|
+
WED = "\u0421\u0440",
|
|
170
|
+
THU = "\u0427\u0442",
|
|
171
|
+
FRI = "\u041F\u0442",
|
|
172
|
+
SAT = "\u0421\u0431"
|
|
173
|
+
}
|
|
174
|
+
declare type DayToRender = {
|
|
175
|
+
/**
|
|
176
|
+
* e.g. "2.2.122", "24.4.122"
|
|
177
|
+
*/
|
|
178
|
+
shortDate: string;
|
|
179
|
+
dayOfMonth: number;
|
|
180
|
+
dayOfWeek: DayOfWeek;
|
|
181
|
+
date: Date;
|
|
182
|
+
};
|
|
183
|
+
declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
184
|
+
|
|
185
|
+
declare enum ImpressionEmojiEnum {
|
|
186
|
+
DEPRESSED = -2,
|
|
187
|
+
SAD = -1,
|
|
188
|
+
NEUTRAL = 0,
|
|
189
|
+
HAPPY = 1,
|
|
190
|
+
LOVELY = 2
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare type LetterAvatarProps = {
|
|
194
|
+
letter: string;
|
|
195
|
+
dimensions?: number;
|
|
196
|
+
className?: string;
|
|
197
|
+
style?: CSSProperties;
|
|
198
|
+
};
|
|
199
|
+
declare const _default$2: React.NamedExoticComponent<LetterAvatarProps>;
|
|
200
|
+
|
|
201
|
+
declare type ImageWithFallbackProps = JSX.IntrinsicElements["img"] & ({
|
|
202
|
+
onErrorContent: React.ReactElement;
|
|
203
|
+
});
|
|
204
|
+
declare const ImageWithFallback: React.FC<ImageWithFallbackProps>;
|
|
205
|
+
|
|
206
|
+
declare type PersonDateTimeCardProps = {
|
|
207
|
+
photoSrc?: string;
|
|
208
|
+
name: string;
|
|
209
|
+
dateTime: Date;
|
|
210
|
+
};
|
|
211
|
+
declare const _default$1: React.NamedExoticComponent<PersonDateTimeCardProps>;
|
|
212
|
+
|
|
213
|
+
declare type PsychologistProfileType = {
|
|
214
|
+
id: string;
|
|
215
|
+
psychologist_id?: string;
|
|
216
|
+
articles: Array<{
|
|
217
|
+
subtheme: string;
|
|
218
|
+
content: Array<{
|
|
219
|
+
photoURL: string;
|
|
220
|
+
title: string;
|
|
221
|
+
link: string;
|
|
222
|
+
}>;
|
|
223
|
+
}>;
|
|
224
|
+
education: string;
|
|
225
|
+
experience: string;
|
|
226
|
+
goal: string;
|
|
227
|
+
not_work_with: Array<string>;
|
|
228
|
+
short_description: string;
|
|
229
|
+
specialization: string;
|
|
230
|
+
video: Array<{
|
|
231
|
+
subtheme: string;
|
|
232
|
+
content: Array<{
|
|
233
|
+
title: string;
|
|
234
|
+
url: string;
|
|
235
|
+
}>;
|
|
236
|
+
}>;
|
|
237
|
+
work_with: Array<string>;
|
|
238
|
+
};
|
|
239
|
+
declare type PsycologistCalendarType = {
|
|
240
|
+
id: string;
|
|
241
|
+
psychologist_id: string;
|
|
242
|
+
schedule: Array<{
|
|
243
|
+
slot_id: string;
|
|
244
|
+
}>;
|
|
245
|
+
};
|
|
246
|
+
declare type PsychologistDevicesProfileType = {
|
|
247
|
+
tokens?: {
|
|
248
|
+
fcmtokens?: string[];
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
declare type PsychologistType = {
|
|
252
|
+
id: string;
|
|
253
|
+
consultation_with: string;
|
|
254
|
+
duration: number;
|
|
255
|
+
email: string;
|
|
256
|
+
first_name: string;
|
|
257
|
+
last_name: string;
|
|
258
|
+
price: number;
|
|
259
|
+
focus: string;
|
|
260
|
+
photo: string;
|
|
261
|
+
avatar: string;
|
|
262
|
+
experience: number;
|
|
263
|
+
time_zone: string;
|
|
264
|
+
calendar: PsycologistCalendarType;
|
|
265
|
+
devices?: PsychologistDevicesProfileType;
|
|
266
|
+
profile: PsychologistProfileType;
|
|
267
|
+
isTestUser: boolean;
|
|
268
|
+
psychologistSex?: 'female' | 'male';
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
declare type UsersPsychologistScrollListPropsType = {
|
|
272
|
+
psychologistClickHandler: React.Dispatch<React.SetStateAction<{
|
|
273
|
+
isShow: boolean;
|
|
274
|
+
psychologist_id: string;
|
|
275
|
+
}>>;
|
|
276
|
+
usersPsychologists: Array<PsychologistType> | null;
|
|
277
|
+
};
|
|
278
|
+
declare const UsersPsychologistScrollList: ({ psychologistClickHandler, usersPsychologists, }: UsersPsychologistScrollListPropsType) => JSX.Element | null;
|
|
279
|
+
|
|
280
|
+
declare type NotesEditorProps = JSX$1.IonTextarea & HTMLAttributes<HTMLIonTextareaElement> & RefAttributes<HTMLIonTextareaElement>;
|
|
281
|
+
declare const NotesEditor: React.ForwardRefExoticComponent<Pick<NotesEditorProps, "slot" | "style" | "title" | "name" | "key" | "disabled" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mode" | "autocapitalize" | "autofocus" | "clearOnEdit" | "debounce" | "enterkeyhint" | "inputmode" | "maxlength" | "minlength" | "onIonBlur" | "onIonChange" | "onIonFocus" | "onIonInput" | "readonly" | "required" | "spellcheck" | "wrap" | "autoGrow" | "cols" | "rows"> & React.RefAttributes<HTMLIonTextareaElement>>;
|
|
282
|
+
|
|
283
|
+
declare type NotesCardTextProps = {
|
|
284
|
+
text: string;
|
|
285
|
+
};
|
|
286
|
+
declare const NotesCardText: React.FC<NotesCardTextProps>;
|
|
287
|
+
|
|
288
|
+
declare type ListItemType = {
|
|
289
|
+
id: ReactText;
|
|
290
|
+
label: string;
|
|
291
|
+
};
|
|
292
|
+
declare type ListSelectProps = {
|
|
293
|
+
title: string;
|
|
294
|
+
listItems: ListItemType[];
|
|
295
|
+
selected?: ReactText;
|
|
296
|
+
onChange: (item: ListItemType) => void;
|
|
297
|
+
};
|
|
298
|
+
declare const ListSelect: FC<ListSelectProps>;
|
|
299
|
+
|
|
300
|
+
declare type RangeValue = {
|
|
301
|
+
lower: number;
|
|
302
|
+
upper: number;
|
|
303
|
+
};
|
|
304
|
+
declare type RangeProps = {
|
|
305
|
+
title: string;
|
|
306
|
+
rangeTitleValues?: string;
|
|
307
|
+
initialValue: RangeValue;
|
|
308
|
+
onChange?: (value: RangeValue) => void;
|
|
309
|
+
onKnobMoveEnd?: (value: RangeValue) => void;
|
|
310
|
+
};
|
|
311
|
+
declare const Range: FC<RangeProps>;
|
|
312
|
+
|
|
313
|
+
declare type RowItemType = {
|
|
314
|
+
id: ReactText;
|
|
315
|
+
label: string;
|
|
316
|
+
};
|
|
317
|
+
declare type RowSelectProps = {
|
|
318
|
+
title: string;
|
|
319
|
+
rowItems: RowItemType[];
|
|
320
|
+
selected?: ReactText;
|
|
321
|
+
onChange: (value: RowItemType) => void;
|
|
322
|
+
};
|
|
323
|
+
declare const RowSelect: FC<RowSelectProps>;
|
|
324
|
+
|
|
325
|
+
declare type ToggleProps = {
|
|
326
|
+
title: string;
|
|
327
|
+
checked?: boolean;
|
|
328
|
+
onChange: (checked: boolean) => void;
|
|
329
|
+
};
|
|
330
|
+
declare const Toggle: FC<ToggleProps>;
|
|
331
|
+
|
|
332
|
+
declare type EntryNotFoundProps = {
|
|
333
|
+
title?: string;
|
|
334
|
+
};
|
|
335
|
+
declare const EntryNotFound: FC<EntryNotFoundProps>;
|
|
336
|
+
|
|
337
|
+
declare enum DayOfWeeks {
|
|
338
|
+
'Понеділок' = 1,
|
|
339
|
+
'Вівторок' = 2,
|
|
340
|
+
'Середа' = 3,
|
|
341
|
+
'Четверг' = 4,
|
|
342
|
+
"П'ятниця" = 5,
|
|
343
|
+
'Субота' = 6,
|
|
344
|
+
'Неділя' = 7
|
|
345
|
+
}
|
|
346
|
+
declare type DateTimeType = {
|
|
347
|
+
_nanoseconds: number;
|
|
348
|
+
_seconds: number;
|
|
349
|
+
};
|
|
350
|
+
interface ConsultationCardProps {
|
|
351
|
+
startConsultation: (props?: React.SyntheticEvent) => void;
|
|
352
|
+
handleReschedule: (props?: React.SyntheticEvent) => void;
|
|
353
|
+
handleRefund: (props?: React.SyntheticEvent) => void;
|
|
354
|
+
handleNotes?: (props?: React.SyntheticEvent) => void;
|
|
355
|
+
consultationWith: string;
|
|
356
|
+
consultationTime: DateTimeType;
|
|
357
|
+
userTimeZone: string;
|
|
358
|
+
avatar: string;
|
|
359
|
+
autorecord?: boolean;
|
|
360
|
+
['data-container-testid']?: string;
|
|
361
|
+
['data-start-testid']?: string;
|
|
362
|
+
['data-reschedule-testid']?: string;
|
|
363
|
+
['data-refund-testid']?: string;
|
|
364
|
+
}
|
|
365
|
+
declare const ConsultationCard: React.FC<ConsultationCardProps>;
|
|
366
|
+
|
|
367
|
+
declare const ConsultationCardSkeleton: () => JSX.Element;
|
|
368
|
+
|
|
369
|
+
declare type AvatarProps = {
|
|
370
|
+
dimensions?: number;
|
|
371
|
+
src?: string;
|
|
372
|
+
firstName?: string;
|
|
373
|
+
style?: CSSProperties;
|
|
374
|
+
className?: string;
|
|
375
|
+
};
|
|
376
|
+
declare const Avatar: FC<AvatarProps>;
|
|
377
|
+
|
|
378
|
+
declare type AppHeaderProps = {
|
|
379
|
+
fullwidth?: boolean;
|
|
380
|
+
};
|
|
381
|
+
declare const AppHeader: FC<AppHeaderProps>;
|
|
382
|
+
|
|
383
|
+
declare const Container: FC;
|
|
384
|
+
|
|
385
|
+
declare type SegmentType = {
|
|
386
|
+
id: string;
|
|
387
|
+
label: string;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
declare type SegmentProps = {
|
|
391
|
+
segments: SegmentType[];
|
|
392
|
+
selected?: string;
|
|
393
|
+
onChange?: (id: string) => void;
|
|
394
|
+
};
|
|
395
|
+
declare const Segment: FC<SegmentProps>;
|
|
396
|
+
|
|
397
|
+
interface ModalProps {
|
|
398
|
+
fullwidth?: boolean;
|
|
399
|
+
isOpen: boolean;
|
|
400
|
+
onDidDismiss: () => void;
|
|
401
|
+
}
|
|
402
|
+
declare const Modal: FC<ModalProps>;
|
|
403
|
+
|
|
404
|
+
declare type SelectImpressionEmojiProps = {
|
|
405
|
+
value?: ImpressionEmojiEnum;
|
|
406
|
+
onChange?: (val: ImpressionEmojiEnum) => void;
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
declare const _default: React.NamedExoticComponent<SelectImpressionEmojiProps>;
|
|
410
|
+
|
|
411
|
+
interface FooterForBookingProps {
|
|
412
|
+
eventHandler: (props?: React.SyntheticEvent) => void;
|
|
413
|
+
duration: number;
|
|
414
|
+
price: string;
|
|
415
|
+
['data-testid']?: string;
|
|
416
|
+
}
|
|
417
|
+
declare const FooterForBooking: React.FC<FooterForBookingProps>;
|
|
418
|
+
|
|
419
|
+
export { AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, Button, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, Container, ContentCard, DatePicker, DateTimeType, DayOfWeeks, DayToRender, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImageWithFallback, ImpressionEmojiEnum, Input, _default$2 as LetterAvatar, ListButton, ListSelect, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotesCardText, NotesEditor, _default$1 as PersonDateTimeCard, Range, RowSelect, ScrollTabs, Segment, SegmentType, _default as SelectImpressionEmoji, TabBar, TherapistCard, TherapistInformationComponent, Toggle, UsersPsychologistScrollList, YourLocalTimeBlock, toast };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "react-scripts start",
|
|
7
7
|
"clean": "rimraf dist",
|
|
8
|
-
"build": "
|
|
8
|
+
"build": "rollup -c",
|
|
9
9
|
"test:ts": "tsc --noEmit --skipLibCheck",
|
|
10
10
|
"coverage": "npm test -- --env=jsdom --coverage --coverageDirectory=jest-coverage --passWithNoTests",
|
|
11
11
|
"test:lint": "eslint \"./src/**/*{ts,tsx}\" --ignore-pattern \"*.d.ts\" --fix",
|
|
@@ -56,8 +56,21 @@
|
|
|
56
56
|
"styled-components": "^5.3.1",
|
|
57
57
|
"web-vitals": "^1.1.2"
|
|
58
58
|
},
|
|
59
|
-
"main": "dist/index.js",
|
|
60
|
-
"module": "dist/index.js",
|
|
59
|
+
"main": "dist/cjs/index.js",
|
|
60
|
+
"module": "dist/esm/index.js",
|
|
61
|
+
"typings": "dist/index.d.ts",
|
|
62
|
+
"babel": {
|
|
63
|
+
"presets": [
|
|
64
|
+
[
|
|
65
|
+
"@babel/preset-react",
|
|
66
|
+
"@babel/env",
|
|
67
|
+
"react-app",
|
|
68
|
+
{
|
|
69
|
+
"absoluteRuntime": false
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
]
|
|
73
|
+
},
|
|
61
74
|
"eslintConfig": {
|
|
62
75
|
"extends": [
|
|
63
76
|
"react-app",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { IonHeader, IonToolbar } from '@ionic/react';
|
|
3
|
-
import { maxContainerWidth } from '../Theme/mindly_constants';
|
|
4
|
-
|
|
5
|
-
type AppHeaderToolbarProps = {
|
|
6
|
-
isNotMobile: boolean;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const AppHeaderContainer = styled(IonHeader)`
|
|
10
|
-
background: #ffffff;
|
|
11
|
-
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.12);
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
export const AppHeaderToolbar = styled(IonToolbar)<AppHeaderToolbarProps>`
|
|
17
|
-
max-width: ${({ isNotMobile }) => (isNotMobile ? maxContainerWidth : '100%')};
|
|
18
|
-
padding: 0 16px;
|
|
19
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { AppHeaderContainer, AppHeaderToolbar } from './AppHeader.style';
|
|
3
|
-
import { isPlatform } from '@ionic/react';
|
|
4
|
-
|
|
5
|
-
type AppHeaderProps = {
|
|
6
|
-
fullwidth?: boolean;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const AppHeader: FC<AppHeaderProps> = ({ fullwidth = false, children }) => {
|
|
10
|
-
return (
|
|
11
|
-
<AppHeaderContainer>
|
|
12
|
-
<AppHeaderToolbar
|
|
13
|
-
isNotMobile={
|
|
14
|
-
!fullwidth && (isPlatform('desktop') || isPlatform('tablet'))
|
|
15
|
-
}
|
|
16
|
-
>
|
|
17
|
-
{children}
|
|
18
|
-
</AppHeaderToolbar>
|
|
19
|
-
</AppHeaderContainer>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default AppHeader;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
type AvatarWrapperProps = {
|
|
4
|
-
dimensions: number;
|
|
5
|
-
};
|
|
6
|
-
export const AvatarWrapper = styled.div<AvatarWrapperProps>`
|
|
7
|
-
width: ${({ dimensions }) => dimensions}px;
|
|
8
|
-
height: ${({ dimensions }) => dimensions}px;
|
|
9
|
-
border-radius: 50%;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
|
|
12
|
-
& img {
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 100%;
|
|
15
|
-
object-fit: cover;
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, FC, memo } from 'react';
|
|
2
|
-
import { AvatarWrapper } from './Avatar.style';
|
|
3
|
-
import LetterAvatar from '../LetterAvatar/LetterAvatar';
|
|
4
|
-
import ImageWithFallback from '../ImageWithFallback/ImageWithFallback';
|
|
5
|
-
|
|
6
|
-
export type AvatarProps = {
|
|
7
|
-
dimensions?: number;
|
|
8
|
-
src?: string;
|
|
9
|
-
firstName?: string;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
className?: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export const Avatar: FC<AvatarProps> = memo(
|
|
15
|
-
({
|
|
16
|
-
src = '',
|
|
17
|
-
firstName = '',
|
|
18
|
-
dimensions = 56,
|
|
19
|
-
style = {},
|
|
20
|
-
className = '',
|
|
21
|
-
}) => {
|
|
22
|
-
const imageFallback = (
|
|
23
|
-
<LetterAvatar
|
|
24
|
-
dimensions={dimensions}
|
|
25
|
-
letter={firstName[0] ?? ''}
|
|
26
|
-
className={className}
|
|
27
|
-
style={style}
|
|
28
|
-
/>
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
if (src) {
|
|
32
|
-
return (
|
|
33
|
-
<AvatarWrapper
|
|
34
|
-
dimensions={dimensions}
|
|
35
|
-
style={style}
|
|
36
|
-
className={className}
|
|
37
|
-
>
|
|
38
|
-
<ImageWithFallback src={src} onErrorContent={imageFallback} />
|
|
39
|
-
</AvatarWrapper>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return imageFallback;
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
Avatar.displayName = 'Avatar';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { maxContainerWidth } from '../Theme/mindly_constants';
|
|
3
|
-
|
|
4
|
-
type ContainerStyledProps = {
|
|
5
|
-
isNotMobile: boolean;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export const ContainerStyled = styled.div<ContainerStyledProps>`
|
|
9
|
-
margin: auto;
|
|
10
|
-
max-width: ${({ isNotMobile }) => (isNotMobile ? maxContainerWidth : '100%')};
|
|
11
|
-
padding: 16px;
|
|
12
|
-
height: 100%;
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { ContainerStyled } from './Container.styled';
|
|
3
|
-
import { isPlatform } from '@ionic/react';
|
|
4
|
-
|
|
5
|
-
const Container: FC = ({ children }) => {
|
|
6
|
-
return (
|
|
7
|
-
<ContainerStyled
|
|
8
|
-
isNotMobile={isPlatform('desktop') || isPlatform('tablet')}
|
|
9
|
-
>
|
|
10
|
-
{children}
|
|
11
|
-
</ContainerStyled>
|
|
12
|
-
);
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default Container;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const EntryNodFoundContainer = styled.div`
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: center;
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
export const EntryNotFoundTitle = styled.span`
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
color: #1d201f;
|
|
13
|
-
margin-top: 20px;
|
|
14
|
-
`;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { ReactComponent as CalendarIcon } from './calendar.svg';
|
|
3
|
-
import {
|
|
4
|
-
EntryNodFoundContainer,
|
|
5
|
-
EntryNotFoundTitle,
|
|
6
|
-
} from './EntryNotFound.style';
|
|
7
|
-
|
|
8
|
-
export type EntryNotFoundProps = {
|
|
9
|
-
title?: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const EntryNotFound: FC<EntryNotFoundProps> = ({
|
|
13
|
-
title = 'Консультацій немає',
|
|
14
|
-
}) => {
|
|
15
|
-
return (
|
|
16
|
-
<EntryNodFoundContainer>
|
|
17
|
-
<CalendarIcon />
|
|
18
|
-
<EntryNotFoundTitle>{title}</EntryNotFoundTitle>
|
|
19
|
-
</EntryNodFoundContainer>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { IonItem, IonLabel } from '@ionic/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
export const ListTitle = styled.h3`
|
|
5
|
-
font-weight: 600;
|
|
6
|
-
font-size: 20px;
|
|
7
|
-
line-height: 24px;
|
|
8
|
-
color: #1d201f;
|
|
9
|
-
margin-bottom: 16px;
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
export const IonItemStyled = styled(IonItem)`
|
|
13
|
-
--padding-start: 0;
|
|
14
|
-
--inner-padding-end: 0;
|
|
15
|
-
--min-height: 32px;
|
|
16
|
-
--background-hover: transparent;
|
|
17
|
-
--background-activated: transparent;
|
|
18
|
-
--background: transparent;
|
|
19
|
-
margin-bottom: 4px;
|
|
20
|
-
|
|
21
|
-
&:last-child {
|
|
22
|
-
margin-bottom: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
& ion-icon {
|
|
26
|
-
margin: 0 8px 0 0;
|
|
27
|
-
color: #21abd2;
|
|
28
|
-
font-size: 18px;
|
|
29
|
-
--ionicon-stroke-width: 48px;
|
|
30
|
-
}
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
export const IonLabelStyled = styled(IonLabel)`
|
|
34
|
-
margin: 0;
|
|
35
|
-
font-weight: 600;
|
|
36
|
-
font-size: 14px !important;
|
|
37
|
-
line-height: 16px;
|
|
38
|
-
`;
|