@mindly/ui-components 5.29.1 → 5.31.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.
Files changed (30) hide show
  1. package/dist/cjs/index.js +15 -6
  2. package/dist/cjs/lib2/features/CheckBoxListFeature/CheckBoxListFeature.d.ts +14 -0
  3. package/dist/cjs/lib2/features/CheckBoxListFeature/index.d.ts +1 -0
  4. package/dist/cjs/lib2/features/CheckBoxSectionListFeature/CheckBoxSectionListFeature.d.ts +15 -0
  5. package/dist/cjs/lib2/features/CheckBoxSectionListFeature/index.d.ts +1 -0
  6. package/dist/cjs/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
  7. package/dist/cjs/lib2/features/MobilePickerFeature/index.d.ts +1 -0
  8. package/dist/cjs/lib2/features/index.d.ts +3 -0
  9. package/dist/cjs/lib2/shared/assets/icons/IconMixedButton.d.ts +2 -0
  10. package/dist/cjs/lib2/shared/assets/icons/IconRadioButtonChecked.d.ts +2 -0
  11. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
  12. package/dist/cjs/lib2/shared/ui/CheckBoxItem/CheckBoxItem.d.ts +16 -0
  13. package/dist/cjs/lib2/shared/ui/CheckBoxItem/index.d.ts +1 -0
  14. package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
  15. package/dist/esm/index.js +15 -6
  16. package/dist/esm/lib2/features/CheckBoxListFeature/CheckBoxListFeature.d.ts +14 -0
  17. package/dist/esm/lib2/features/CheckBoxListFeature/index.d.ts +1 -0
  18. package/dist/esm/lib2/features/CheckBoxSectionListFeature/CheckBoxSectionListFeature.d.ts +15 -0
  19. package/dist/esm/lib2/features/CheckBoxSectionListFeature/index.d.ts +1 -0
  20. package/dist/esm/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
  21. package/dist/esm/lib2/features/MobilePickerFeature/index.d.ts +1 -0
  22. package/dist/esm/lib2/features/index.d.ts +3 -0
  23. package/dist/esm/lib2/shared/assets/icons/IconMixedButton.d.ts +2 -0
  24. package/dist/esm/lib2/shared/assets/icons/IconRadioButtonChecked.d.ts +2 -0
  25. package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
  26. package/dist/esm/lib2/shared/ui/CheckBoxItem/CheckBoxItem.d.ts +16 -0
  27. package/dist/esm/lib2/shared/ui/CheckBoxItem/index.d.ts +1 -0
  28. package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
  29. package/dist/index.d.ts +53 -1
  30. package/package.json +2 -1
@@ -0,0 +1,14 @@
1
+ import { SelectItemType } from '../../shared';
2
+ type Props = {
3
+ items: {
4
+ id: string;
5
+ label: string;
6
+ value?: string;
7
+ }[];
8
+ type: SelectItemType;
9
+ values: string[];
10
+ name: string;
11
+ onChange(values: string[]): void;
12
+ };
13
+ declare const CheckBoxListFeature: ({ items, name, type, onChange, values, }: Props) => JSX.Element;
14
+ export default CheckBoxListFeature;
@@ -0,0 +1 @@
1
+ export { default as CheckBoxListFeature } from './CheckBoxListFeature';
@@ -0,0 +1,15 @@
1
+ type Props = {
2
+ sections: {
3
+ name: string;
4
+ items: {
5
+ id: string;
6
+ label: string;
7
+ value?: string;
8
+ }[];
9
+ }[];
10
+ defaultChecked?: string[];
11
+ name: string;
12
+ onChange(values: string[]): void;
13
+ };
14
+ declare const CheckBoxSectionListFeature: ({ sections, name, defaultChecked, onChange, }: Props) => JSX.Element;
15
+ export default CheckBoxSectionListFeature;
@@ -0,0 +1 @@
1
+ export { default as CheckBoxSectionListFeature } from './CheckBoxSectionListFeature';
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ selections: Record<string, string[]>;
3
+ defaults?: Record<string, string>;
4
+ onChange(value: Record<string, string>): void;
5
+ };
6
+ declare const MobilePickerFeature: ({ selections, defaults, onChange, }: Props) => JSX.Element;
7
+ export default MobilePickerFeature;
@@ -0,0 +1 @@
1
+ export { default as MobilePickerFeature } from './MobilePickerFeature';
@@ -7,3 +7,6 @@ export * from './PushNotificationsIsDisabledBanner';
7
7
  export * from './SpecialistShortInfoItemFeature';
8
8
  export * from './SpecialistInfoColumnFeature';
9
9
  export * from './CountdownTimerFeature';
10
+ export * from './MobilePickerFeature';
11
+ export * from './CheckBoxSectionListFeature';
12
+ export * from './CheckBoxListFeature';
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconMixedButton: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconRadioButtonChecked: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -57,3 +57,4 @@ export * from './IconCancel';
57
57
  export * from './IconCalendarFilled';
58
58
  export * from './IconBookmark';
59
59
  export * from './IconArrowDown';
60
+ export * from './IconRadioButtonChecked';
@@ -0,0 +1,16 @@
1
+ import React, { ChangeEvent } from 'react';
2
+ export declare enum SelectItemType {
3
+ Checkbox = "checkbox",
4
+ Radio = "radio"
5
+ }
6
+ type Props = {
7
+ type: SelectItemType;
8
+ id: string;
9
+ label: string;
10
+ name: string;
11
+ value: string;
12
+ checked: boolean;
13
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
14
+ };
15
+ declare const CheckBoxItem: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
16
+ export default CheckBoxItem;
@@ -0,0 +1 @@
1
+ export { default as CheckBoxItem, SelectItemType } from './CheckBoxItem';
@@ -25,3 +25,4 @@ export * from './Loading';
25
25
  export * from './ListItems';
26
26
  export * from './Video';
27
27
  export * from './ListSimple';
28
+ export * from './CheckBoxItem';
package/dist/index.d.ts CHANGED
@@ -1755,6 +1755,21 @@ type UlLiProps = {
1755
1755
  };
1756
1756
  declare const ListSimple: FC<UlLiProps>;
1757
1757
 
1758
+ declare enum SelectItemType {
1759
+ Checkbox = "checkbox",
1760
+ Radio = "radio"
1761
+ }
1762
+ type Props$3 = {
1763
+ type: SelectItemType;
1764
+ id: string;
1765
+ label: string;
1766
+ name: string;
1767
+ value: string;
1768
+ checked: boolean;
1769
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
1770
+ };
1771
+ declare const CheckBoxItem: React__default.ForwardRefExoticComponent<Props$3 & React__default.RefAttributes<HTMLInputElement>>;
1772
+
1758
1773
  declare enum appThemes {
1759
1774
  client = "client",
1760
1775
  specialist = "specialist"
@@ -2057,6 +2072,8 @@ declare const IconCalendarFilled: ({ width, height, color, ...props }: SVGProps<
2057
2072
 
2058
2073
  declare const IconArrowDown: ({ width, height, color, ...other }: SVGProps<SVGSVGElement>) => JSX.Element;
2059
2074
 
2075
+ declare const IconRadioButtonChecked: (props: SVGProps<SVGSVGElement>) => JSX.Element;
2076
+
2060
2077
  type AnyRef = React__default.Ref<any>;
2061
2078
  declare const mergeRefs: <T extends unknown>(...refs: AnyRef[]) => React__default.Ref<T>;
2062
2079
 
@@ -2171,6 +2188,41 @@ type CountdownTimerFeatureProps = {
2171
2188
  };
2172
2189
  declare const CountdownTimerFeature: FC<CountdownTimerFeatureProps>;
2173
2190
 
2191
+ type Props$2 = {
2192
+ selections: Record<string, string[]>;
2193
+ defaults?: Record<string, string>;
2194
+ onChange(value: Record<string, string>): void;
2195
+ };
2196
+ declare const MobilePickerFeature: ({ selections, defaults, onChange, }: Props$2) => JSX.Element;
2197
+
2198
+ type Props$1 = {
2199
+ sections: {
2200
+ name: string;
2201
+ items: {
2202
+ id: string;
2203
+ label: string;
2204
+ value?: string;
2205
+ }[];
2206
+ }[];
2207
+ defaultChecked?: string[];
2208
+ name: string;
2209
+ onChange(values: string[]): void;
2210
+ };
2211
+ declare const CheckBoxSectionListFeature: ({ sections, name, defaultChecked, onChange, }: Props$1) => JSX.Element;
2212
+
2213
+ type Props = {
2214
+ items: {
2215
+ id: string;
2216
+ label: string;
2217
+ value?: string;
2218
+ }[];
2219
+ type: SelectItemType;
2220
+ values: string[];
2221
+ name: string;
2222
+ onChange(values: string[]): void;
2223
+ };
2224
+ declare const CheckBoxListFeature: ({ items, name, type, onChange, values, }: Props) => JSX.Element;
2225
+
2174
2226
  declare const _default: React__default.NamedExoticComponent<any>;
2175
2227
 
2176
2228
  type SpecialistCard = {
@@ -2197,4 +2249,4 @@ type SpecialistCardListWidgetProps = {
2197
2249
  };
2198
2250
  declare const SpecialistCardListWidget: FC<SpecialistCardListWidgetProps & WithTranslation['t']>;
2199
2251
 
2200
- export { AppFooter, _default$g as AppFooter_v2, AppHeader, AppHeader_v2, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$f as Avatar_v2, BREAKPOINT_ICON_SIZE, _default$b as Badge, _default$u as BookingScheduleTime, _default$t as BookingSpecialistInfo, Button, Button_v2, Calendar, CancelSession, CardModal, ChangeLangModal, ChangeLanguageModal, _default$P as ChatListItem, _default$N as ChatListSkeleton, _default$O as ChatMessage, ChatMessageSkeleton, _default$o as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, CircleRatingContext, CircleRatingProvider, _default$G as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$D as ConsultationModal, _default$B as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CountdownTimerFeature, CountryOfOriginModal, CustomButton, _default$p as CustomCheckbox, CustomRadioButton, _default$q as CustomSelect, _default$r as CustomTextarea, DatePicker, _default$z as DaySlider, DayToRender, _default$v as EducationCard, _default$M as EmptyChatList, EmptyChatMessages, _default$E as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$l as Flag, FlagTypes, _default$d as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconApple, IconArrowDown, IconArrowLeft, IconArrowRight, IconBeachAccess, IconBookmark, IconBookmarkOutlined, _default$7 as IconButton, IconCalendar, IconCalendarFilled, IconCalendarMonth, IconCancel, IconCancelRounded, IconCapFilled, IconChat3d, IconChatFilled, IconChatOutline, IconCheck, IconCheckSmall, IconCheckboxChecked, IconCheckboxUnchecked, IconClient, IconClientFilled, IconClose, IconCreditCard, IconEditCalendar, IconEye, IconEyeOff, IconGift, IconGoogle, IconInvisible, IconLanguage, IconLeftArrow, IconLetter, IconLogout, IconMute, IconNotificationMuted, IconPaid, IconPaper, IconPause, IconPlus, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconQuestion, IconResume, IconSearch, IconSettings, IconSpinner, IconStar, IconStarFilled, IconSuccess, IconTime, IconUnmute, IconUserNotFound, IconVerifiedUser, IconVisible, IconWarning, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, _default$3 as Item, _default$a as ItemCard, LanguagesList, _default$T as LetterAvatar, _default$m as LineFileInput, ListBox, ListBoxItem, ListButton, ListItemType, _default$4 as ListItems, ListOption, ListSelect, ListSelectProps, ListSimple, _default$5 as Loading, LouseConnect, _default$Q as MediaPlayer, Modal, ModalCalendar, ModalSheet, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$S as PersonDateTimeCard, _default$c as Picture, _default$k as ProfileInformation, _default$x as ProfileView, _default$n as ProgressBar, _default$6 as ProgressBar_v2, PushNotificationsIsDisabledBanner, PushNotificationsModal, Range, _default$8 as Rating, RatingCircleWrapper, _default$A as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, SIZES, ScreenInput, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$R as SelectImpressionEmoji, _default$F as SignUpSessionButton, _default$C as SignUpSessionModal, Skeleton, _default$e as Skeleton_v2, _default$1 as SlotsGrid, _default$w as SpecialistAbout, SpecialistCard$1 as SpecialistCard, SpecialistCardListWidget, _default as SpecialistCardWidget, _default$K as SpecialistEducationCard, SpecialistInfoColumnFeature as SpecialistInfoColumn, SpecialistLangs, _default$j as SpecialistMatch, _default$J as SpecialistProfileViewCard, SpecialistShortInfoItemFeature as SpecialistShortInfoItem, _default$i as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, Spinner_v2, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$s as TextInput, _default$L as Textarea, _default$9 as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, _default$h as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$2 as Video, _default$H as VideoCallInfo, _default$I as VideoPlayer, _default$y as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, getProgressForBreakPoint, mergeRefs, toast, useAutoFocus, useBreakPointsPosition, useCircleRatingRenderData, useDomRef, useEvent, useRangeIndex, useRatingCircleBreakPoints, useRatingCircleContentValue, useRatingCircleLegend, useRatingContext, useToastContext };
2252
+ export { AppFooter, _default$g as AppFooter_v2, AppHeader, AppHeader_v2, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$f as Avatar_v2, BREAKPOINT_ICON_SIZE, _default$b as Badge, _default$u as BookingScheduleTime, _default$t as BookingSpecialistInfo, Button, Button_v2, Calendar, CancelSession, CardModal, ChangeLangModal, ChangeLanguageModal, _default$P as ChatListItem, _default$N as ChatListSkeleton, _default$O as ChatMessage, ChatMessageSkeleton, CheckBoxItem, CheckBoxListFeature, CheckBoxSectionListFeature, _default$o as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, CircleRatingContext, CircleRatingProvider, _default$G as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$D as ConsultationModal, _default$B as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CountdownTimerFeature, CountryOfOriginModal, CustomButton, _default$p as CustomCheckbox, CustomRadioButton, _default$q as CustomSelect, _default$r as CustomTextarea, DatePicker, _default$z as DaySlider, DayToRender, _default$v as EducationCard, _default$M as EmptyChatList, EmptyChatMessages, _default$E as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$l as Flag, FlagTypes, _default$d as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconApple, IconArrowDown, IconArrowLeft, IconArrowRight, IconBeachAccess, IconBookmark, IconBookmarkOutlined, _default$7 as IconButton, IconCalendar, IconCalendarFilled, IconCalendarMonth, IconCancel, IconCancelRounded, IconCapFilled, IconChat3d, IconChatFilled, IconChatOutline, IconCheck, IconCheckSmall, IconCheckboxChecked, IconCheckboxUnchecked, IconClient, IconClientFilled, IconClose, IconCreditCard, IconEditCalendar, IconEye, IconEyeOff, IconGift, IconGoogle, IconInvisible, IconLanguage, IconLeftArrow, IconLetter, IconLogout, IconMute, IconNotificationMuted, IconPaid, IconPaper, IconPause, IconPlus, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconQuestion, IconRadioButtonChecked, IconResume, IconSearch, IconSettings, IconSpinner, IconStar, IconStarFilled, IconSuccess, IconTime, IconUnmute, IconUserNotFound, IconVerifiedUser, IconVisible, IconWarning, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, _default$3 as Item, _default$a as ItemCard, LanguagesList, _default$T as LetterAvatar, _default$m as LineFileInput, ListBox, ListBoxItem, ListButton, ListItemType, _default$4 as ListItems, ListOption, ListSelect, ListSelectProps, ListSimple, _default$5 as Loading, LouseConnect, _default$Q as MediaPlayer, MobilePickerFeature, Modal, ModalCalendar, ModalSheet, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$S as PersonDateTimeCard, _default$c as Picture, _default$k as ProfileInformation, _default$x as ProfileView, _default$n as ProgressBar, _default$6 as ProgressBar_v2, PushNotificationsIsDisabledBanner, PushNotificationsModal, Range, _default$8 as Rating, RatingCircleWrapper, _default$A as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, SIZES, ScreenInput, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$R as SelectImpressionEmoji, SelectItemType, _default$F as SignUpSessionButton, _default$C as SignUpSessionModal, Skeleton, _default$e as Skeleton_v2, _default$1 as SlotsGrid, _default$w as SpecialistAbout, SpecialistCard$1 as SpecialistCard, SpecialistCardListWidget, _default as SpecialistCardWidget, _default$K as SpecialistEducationCard, SpecialistInfoColumnFeature as SpecialistInfoColumn, SpecialistLangs, _default$j as SpecialistMatch, _default$J as SpecialistProfileViewCard, SpecialistShortInfoItemFeature as SpecialistShortInfoItem, _default$i as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, Spinner_v2, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$s as TextInput, _default$L as Textarea, _default$9 as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, _default$h as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$2 as Video, _default$H as VideoCallInfo, _default$I as VideoPlayer, _default$y as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, getProgressForBreakPoint, mergeRefs, toast, useAutoFocus, useBreakPointsPosition, useCircleRatingRenderData, useDomRef, useEvent, useRangeIndex, useRatingCircleBreakPoints, useRatingCircleContentValue, useRatingCircleLegend, useRatingContext, useToastContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.29.1",
3
+ "version": "5.31.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -32,6 +32,7 @@
32
32
  "react-dom": "^17.0.2",
33
33
  "react-i18next": "^13.2.2",
34
34
  "react-intersection-observer": "^9.5.2",
35
+ "react-mobile-picker": "^1.0.0",
35
36
  "react-rating": "^2.0.5",
36
37
  "react-stately": "^3.24.0",
37
38
  "styled-components": "^5.3.1",