@mindly/ui-components 6.4.1 → 6.4.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 +8 -8
- package/dist/cjs/lib2/shared/assets/icons/IconSort.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/types/filter.d.ts +7 -0
- package/dist/cjs/lib2/shared/ui/Counter/Counter.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/Counter/index.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/Counter/styles.d.ts +87 -0
- package/dist/cjs/lib2/shared/ui/Counter/types.d.ts +5 -0
- package/dist/cjs/lib2/shared/ui/Divider/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/Typography/types.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/utils/filter.d.ts +4 -1
- package/dist/cjs/lib2/widgets/SpecialistCardWithScheduleWidget/types.d.ts +2 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/lib2/shared/assets/icons/IconSort.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
- package/dist/esm/lib2/shared/types/filter.d.ts +7 -0
- package/dist/esm/lib2/shared/ui/Counter/Counter.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/Counter/index.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/Counter/styles.d.ts +87 -0
- package/dist/esm/lib2/shared/ui/Counter/types.d.ts +5 -0
- package/dist/esm/lib2/shared/ui/Divider/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/Typography/types.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
- package/dist/esm/lib2/shared/utils/filter.d.ts +4 -1
- package/dist/esm/lib2/widgets/SpecialistCardWithScheduleWidget/types.d.ts +2 -0
- package/dist/index.d.ts +25 -1
- package/package.json +1 -1
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export type AllowFilterValueType = string | number | boolean;
|
|
2
2
|
export type FilterValue = AllowFilterValueType | AllowFilterValueType[];
|
|
3
|
+
export type SortDirection = 'asc' | 'desc';
|
|
4
|
+
export type SortValue = string;
|
|
5
|
+
export type Sort = {
|
|
6
|
+
value: SortValue;
|
|
7
|
+
direction: SortDirection;
|
|
8
|
+
};
|
|
9
|
+
export type SortKey = `${SortValue}:${SortDirection}`;
|
|
3
10
|
export type FilterOptionValue = AllowFilterValueType;
|
|
4
11
|
export type FilterOption = {
|
|
5
12
|
value?: AllowFilterValueType;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare const counterStyles: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
default: {
|
|
4
|
+
root: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
size: {
|
|
8
|
+
xs: {
|
|
9
|
+
root: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
root: string;
|
|
14
|
+
text: string;
|
|
15
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
16
|
+
variant: {
|
|
17
|
+
default: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
xs: {
|
|
23
|
+
root: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
variant: {
|
|
28
|
+
default: {
|
|
29
|
+
root: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
size: {
|
|
33
|
+
xs: {
|
|
34
|
+
root: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>, {
|
|
38
|
+
variant: {
|
|
39
|
+
default: {
|
|
40
|
+
root: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
xs: {
|
|
45
|
+
root: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
root: string;
|
|
50
|
+
text: string;
|
|
51
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
52
|
+
variant: {
|
|
53
|
+
default: {
|
|
54
|
+
root: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
size: {
|
|
58
|
+
xs: {
|
|
59
|
+
root: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
root: string;
|
|
64
|
+
text: string;
|
|
65
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
66
|
+
variant: {
|
|
67
|
+
default: {
|
|
68
|
+
root: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
size: {
|
|
72
|
+
xs: {
|
|
73
|
+
root: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
variant: {
|
|
78
|
+
default: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
size: {
|
|
83
|
+
xs: {
|
|
84
|
+
root: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -27,6 +27,7 @@ export declare enum TypographyVariantsEnum {
|
|
|
27
27
|
Text12Regular = "Text/12 Regular",
|
|
28
28
|
Tabbar10Medium = "Tabbar/10 Medium",
|
|
29
29
|
Text8Regular = "Text/8 Regular",
|
|
30
|
+
Text8Semi = "Text/8 Semi",
|
|
30
31
|
Text7Regular = "Text/7 Regular",
|
|
31
32
|
Text6Regular = "Text/6 Regular",
|
|
32
33
|
Badge12Semi = "Badge/12 Semi",
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { FilterItem } from '../../widgets/FiltersWidget/types';
|
|
2
|
-
import { AllowFilterValueType, FilterValue } from '../types/filter';
|
|
2
|
+
import { AllowFilterValueType, FilterValue, Sort, SortDirection, SortKey, SortValue } from '../types/filter';
|
|
3
3
|
export declare const getMappedFilterValue: (value?: FilterValue) => AllowFilterValueType[];
|
|
4
4
|
export declare const getFiltersValues: (filters: FilterItem[]) => Record<string, FilterValue>;
|
|
5
5
|
export declare const isFilterSet: (filtersValues: Record<string, FilterValue>) => boolean;
|
|
6
|
+
export declare const getFilterCount: (filtersValues: Record<string, FilterValue>) => number;
|
|
6
7
|
export declare const getFiltersQuery: (filters: Record<string, FilterValue>) => string;
|
|
8
|
+
export declare const getSortKey: (sort: SortValue, direction: SortDirection) => string;
|
|
9
|
+
export declare const getSortFromKey: (key: SortKey) => Sort;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { WithTranslation } from 'react-i18next';
|
|
2
3
|
import { ScheduleDate, ScheduleSlot, Specialist, UserType } from '../../shared/types';
|
|
3
4
|
export type SpecialistCardWithScheduleWidgetProps = {
|
|
@@ -9,6 +10,7 @@ export type SpecialistCardWithScheduleWidgetProps = {
|
|
|
9
10
|
onCardClick(): void;
|
|
10
11
|
currentUser?: UserType;
|
|
11
12
|
isBookingLoading?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
12
14
|
events?: {
|
|
13
15
|
onVideoClick?(): void;
|
|
14
16
|
onScheduleDateChange?: (date: ScheduleDate, slots: ScheduleSlot[]) => void;
|