@mindly/ui-components 6.2.3 → 6.2.4
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/cjs/index.js +6 -6
- package/dist/cjs/lib2/features/SpecialistScheduleFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/SpecialistScheduleFeature/types.d.ts +3 -3
- package/dist/cjs/lib2/shared/providers/SpecialistScheduleProvider/SpecialistScheduleProvider.d.ts +27 -0
- package/dist/cjs/lib2/shared/providers/SpecialistScheduleProvider/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/providers/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/SuperSpecialist/types.d.ts +1 -0
- package/dist/cjs/lib2/widgets/SpecialistDetailWithTabsWidget/types.d.ts +0 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/lib2/features/SpecialistScheduleFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/SpecialistScheduleFeature/types.d.ts +3 -3
- package/dist/esm/lib2/shared/providers/SpecialistScheduleProvider/SpecialistScheduleProvider.d.ts +27 -0
- package/dist/esm/lib2/shared/providers/SpecialistScheduleProvider/index.d.ts +1 -0
- package/dist/esm/lib2/shared/providers/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/SuperSpecialist/types.d.ts +1 -0
- package/dist/esm/lib2/widgets/SpecialistDetailWithTabsWidget/types.d.ts +0 -1
- package/dist/index.d.ts +40 -14
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { WithTranslation } from 'react-i18next';
|
|
2
|
-
import {
|
|
2
|
+
import { ScheduleSlot } from '../../shared';
|
|
3
|
+
import { ScheduleDate } from '../../shared';
|
|
3
4
|
export type ScheduleFeatureProps = {
|
|
4
|
-
isLoading?: boolean;
|
|
5
5
|
className?: string;
|
|
6
6
|
t?: WithTranslation['t'];
|
|
7
|
-
schedule?: Schedule;
|
|
8
7
|
locale?: string;
|
|
8
|
+
forceLoading?: boolean;
|
|
9
9
|
onDateChange?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
|
|
10
10
|
onSlotChange?: (slot: ScheduleSlot | null) => void;
|
|
11
11
|
};
|
package/dist/cjs/lib2/shared/providers/SpecialistScheduleProvider/SpecialistScheduleProvider.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Schedule, ScheduleDate, ScheduleSlot } from '../../types';
|
|
3
|
+
type SpecialistScheduleContextValue = {
|
|
4
|
+
selectedDate: ScheduleDate | undefined;
|
|
5
|
+
selectedSlot: ScheduleSlot | undefined;
|
|
6
|
+
setSelectedDate: (date: ScheduleDate | undefined) => void;
|
|
7
|
+
setSelectedSlot: (slot: ScheduleSlot | undefined) => void;
|
|
8
|
+
resetSelectedScheduleData: () => void;
|
|
9
|
+
schedule: Schedule | undefined;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
setSchedule: (schedule: Schedule | undefined) => void;
|
|
12
|
+
setIsLoading: (isLoading: boolean) => void;
|
|
13
|
+
};
|
|
14
|
+
type Props = {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
initialSchedule?: Schedule;
|
|
17
|
+
};
|
|
18
|
+
export declare const useSpecialistScheduleContext: () => SpecialistScheduleContextValue;
|
|
19
|
+
export declare const withSpecialistScheduleContext: <T extends React.ComponentType<any>>(Component: T) => {
|
|
20
|
+
(props: React.ComponentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
export type SpecialistScheduleProviderRef = {
|
|
24
|
+
onDateChange: (cb: (date: ScheduleDate | undefined, slots?: any) => void) => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const SpecialistScheduleProvider: React.FC<Props>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SpecialistScheduleProvider';
|
|
@@ -4,7 +4,6 @@ import { ScheduleDate, ScheduleSlot, SpecialistReview, UserType } from '../../sh
|
|
|
4
4
|
export type SpecialistDetailWithTabsWidgetProps = {
|
|
5
5
|
t?: WithTranslation['t'];
|
|
6
6
|
isLoading?: boolean;
|
|
7
|
-
isLoadingSchedule?: boolean;
|
|
8
7
|
specialist: Specialist;
|
|
9
8
|
reviews?: SpecialistReview[];
|
|
10
9
|
country: string;
|