@mindly/ui-components 8.5.0 → 8.5.2
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 +3 -3
- package/dist/cjs/lib2/shared/hooks/useCalendarData.d.ts +12 -8
- package/dist/cjs/lib2/shared/hooks/useSpecialistPayments.d.ts +6 -1
- package/dist/cjs/lib2/shared/ui/DrumListPicker/DrumListPicker.d.ts +3 -2
- package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/types.d.ts +2 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/lib2/shared/hooks/useCalendarData.d.ts +12 -8
- package/dist/esm/lib2/shared/hooks/useSpecialistPayments.d.ts +6 -1
- package/dist/esm/lib2/shared/ui/DrumListPicker/DrumListPicker.d.ts +3 -2
- package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/types.d.ts +2 -0
- package/dist/index.d.ts +5 -2
- package/package.json +1 -1
- package/src/lib2/shared/css/tailwind.css +23 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
type CalendarListProps = {
|
|
3
|
-
locale?: SupportedLocales;
|
|
4
|
-
lastDate: Date;
|
|
5
|
-
};
|
|
6
|
-
type CalendarListItem = {
|
|
7
|
-
value: Date;
|
|
1
|
+
type SelectionItem<T extends string | number> = {
|
|
8
2
|
label: string;
|
|
3
|
+
value: T;
|
|
4
|
+
};
|
|
5
|
+
type CalendarSelections = {
|
|
6
|
+
day: SelectionItem<number>[];
|
|
7
|
+
month: SelectionItem<string>[];
|
|
8
|
+
year: SelectionItem<number>[];
|
|
9
|
+
};
|
|
10
|
+
type CalendarListProps = {
|
|
11
|
+
locale?: string;
|
|
12
|
+
lastDate?: Date;
|
|
9
13
|
};
|
|
10
|
-
export declare function useCalendarListData({ locale, lastDate, }: CalendarListProps):
|
|
14
|
+
export declare function useCalendarListData({ locale, lastDate, }: CalendarListProps): CalendarSelections;
|
|
11
15
|
export {};
|
|
@@ -10,7 +10,12 @@ type DatesResultType = {
|
|
|
10
10
|
isFutureMonth: boolean;
|
|
11
11
|
};
|
|
12
12
|
export declare function getDatePosition(calendarDate: Date): DatesResultType;
|
|
13
|
-
|
|
13
|
+
type CalendarDefaults = {
|
|
14
|
+
day: string;
|
|
15
|
+
month: string;
|
|
16
|
+
year: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function getSelectedFormattedDate(selectedDate: Date | null | undefined, locale?: string): CalendarDefaults;
|
|
14
19
|
type FormattedDateProps = {
|
|
15
20
|
date: Date;
|
|
16
21
|
locale?: SupportedLocales;
|
|
@@ -7,9 +7,10 @@ type Props = {
|
|
|
7
7
|
height?: number;
|
|
8
8
|
selections: Record<string, SelectionType[]>;
|
|
9
9
|
defaults?: Record<string, string>;
|
|
10
|
-
onChange(value: Record<string,
|
|
10
|
+
onChange(value: Record<string, string>): void;
|
|
11
11
|
className?: string;
|
|
12
12
|
compareBy?: 'value' | 'label';
|
|
13
|
+
presentation?: 'date' | 'month' | 'month-year';
|
|
13
14
|
};
|
|
14
|
-
declare const DrumListPicker: ({ height, selections, defaults, onChange, className, compareBy, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const DrumListPicker: ({ height, selections, defaults, onChange, className, compareBy, presentation, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default DrumListPicker;
|
package/dist/index.d.ts
CHANGED
|
@@ -1798,11 +1798,12 @@ type Props$9 = {
|
|
|
1798
1798
|
height?: number;
|
|
1799
1799
|
selections: Record<string, SelectionType$1[]>;
|
|
1800
1800
|
defaults?: Record<string, string>;
|
|
1801
|
-
onChange(value: Record<string,
|
|
1801
|
+
onChange(value: Record<string, string>): void;
|
|
1802
1802
|
className?: string;
|
|
1803
1803
|
compareBy?: 'value' | 'label';
|
|
1804
|
+
presentation?: 'date' | 'month' | 'month-year';
|
|
1804
1805
|
};
|
|
1805
|
-
declare const DrumListPicker: ({ height, selections, defaults, onChange, className, compareBy, }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
1806
|
+
declare const DrumListPicker: ({ height, selections, defaults, onChange, className, compareBy, presentation, }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
1806
1807
|
|
|
1807
1808
|
type FontWeight = 'Regular' | 'Semi' | 'Bold';
|
|
1808
1809
|
type CollapsableTextProps = {
|
|
@@ -4335,6 +4336,8 @@ type SpecialistCardWithScheduleWidgetProps = {
|
|
|
4335
4336
|
onScheduleSlotChange?: (slot: ScheduleSlot | null) => void;
|
|
4336
4337
|
onScheduleShowAll?: () => void;
|
|
4337
4338
|
};
|
|
4339
|
+
shouldAnimateNotice?: boolean;
|
|
4340
|
+
isNoticeReady?: boolean;
|
|
4338
4341
|
};
|
|
4339
4342
|
|
|
4340
4343
|
declare const _default$q: React__default.NamedExoticComponent<SpecialistCardWithScheduleWidgetProps>;
|
package/package.json
CHANGED
|
@@ -93,3 +93,26 @@
|
|
|
93
93
|
.PhotoView-Portal.PhotoView-Portal .PhotoView-Slider__BannerWrap .PhotoView-Slider__Counter {
|
|
94
94
|
display: none;
|
|
95
95
|
}
|
|
96
|
+
|
|
97
|
+
@keyframes notice-bounce {
|
|
98
|
+
0% {
|
|
99
|
+
transform: translateY(-100%);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
60% {
|
|
103
|
+
transform: translateY(-16px);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
80% {
|
|
107
|
+
transform: translateY(-30%);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
100% {
|
|
111
|
+
transform: translateY(-16px);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.notice-animate {
|
|
116
|
+
animation: notice-bounce 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
|
117
|
+
animation-delay: 300ms;
|
|
118
|
+
}
|