@mindly/ui-components 5.92.1 → 5.92.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.
Files changed (42) hide show
  1. package/dist/cjs/index.js +7 -7
  2. package/dist/cjs/lib2/features/TabsToolbarFeature/TabsToolbarFeature.d.ts +4 -0
  3. package/dist/cjs/lib2/features/TabsToolbarFeature/index.d.ts +1 -0
  4. package/dist/cjs/lib2/features/TabsToolbarFeature/types.d.ts +14 -0
  5. package/dist/cjs/lib2/features/index.d.ts +1 -0
  6. package/dist/cjs/lib2/shared/assets/icons/IconChat.d.ts +3 -0
  7. package/dist/cjs/lib2/shared/assets/icons/IconMindlyMini.d.ts +3 -0
  8. package/dist/cjs/lib2/shared/assets/icons/IconSchedule.d.ts +3 -0
  9. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +3 -0
  10. package/dist/cjs/lib2/shared/types/specialistTypes.d.ts +1 -1
  11. package/dist/cjs/lib2/shared/ui/Avatar_v2/Avatar_v2.d.ts +2 -1
  12. package/dist/cjs/lib2/shared/ui/Avatar_v2/Avatar_v2.style.d.ts +1 -0
  13. package/dist/cjs/lib2/shared/ui/NewSpecialist/NewSpecialist.d.ts +4 -0
  14. package/dist/cjs/lib2/shared/ui/NewSpecialist/NewSpecialist.stories.d.ts +7 -0
  15. package/dist/cjs/lib2/shared/ui/NewSpecialist/index.d.ts +1 -0
  16. package/dist/cjs/lib2/shared/ui/NewSpecialist/styles.d.ts +140 -0
  17. package/dist/cjs/lib2/shared/ui/NewSpecialist/types.d.ts +7 -0
  18. package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
  19. package/dist/cjs/lib2/widgets/SpecialistCardWidget/SpecialistCardWidget.stories.d.ts +1 -0
  20. package/dist/cjs/lib2/widgets/SpecialistDetailWidget/types.d.ts +1 -0
  21. package/dist/esm/index.js +7 -7
  22. package/dist/esm/lib2/features/TabsToolbarFeature/TabsToolbarFeature.d.ts +4 -0
  23. package/dist/esm/lib2/features/TabsToolbarFeature/index.d.ts +1 -0
  24. package/dist/esm/lib2/features/TabsToolbarFeature/types.d.ts +14 -0
  25. package/dist/esm/lib2/features/index.d.ts +1 -0
  26. package/dist/esm/lib2/shared/assets/icons/IconChat.d.ts +3 -0
  27. package/dist/esm/lib2/shared/assets/icons/IconMindlyMini.d.ts +3 -0
  28. package/dist/esm/lib2/shared/assets/icons/IconSchedule.d.ts +3 -0
  29. package/dist/esm/lib2/shared/assets/icons/index.d.ts +3 -0
  30. package/dist/esm/lib2/shared/types/specialistTypes.d.ts +1 -1
  31. package/dist/esm/lib2/shared/ui/Avatar_v2/Avatar_v2.d.ts +2 -1
  32. package/dist/esm/lib2/shared/ui/Avatar_v2/Avatar_v2.style.d.ts +1 -0
  33. package/dist/esm/lib2/shared/ui/NewSpecialist/NewSpecialist.d.ts +4 -0
  34. package/dist/esm/lib2/shared/ui/NewSpecialist/NewSpecialist.stories.d.ts +7 -0
  35. package/dist/esm/lib2/shared/ui/NewSpecialist/index.d.ts +1 -0
  36. package/dist/esm/lib2/shared/ui/NewSpecialist/styles.d.ts +140 -0
  37. package/dist/esm/lib2/shared/ui/NewSpecialist/types.d.ts +7 -0
  38. package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
  39. package/dist/esm/lib2/widgets/SpecialistCardWidget/SpecialistCardWidget.stories.d.ts +1 -0
  40. package/dist/esm/lib2/widgets/SpecialistDetailWidget/types.d.ts +1 -0
  41. package/dist/index.d.ts +34 -3
  42. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TabsToolbarProps } from './types';
3
+ declare const TabsToolbarFeature: React.FC<TabsToolbarProps>;
4
+ export default TabsToolbarFeature;
@@ -0,0 +1 @@
1
+ export { default as TabsToolbarFeature } from './TabsToolbarFeature';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { Specialist, UserType } from '../../shared';
3
+ export type TabsToolbarItemIcon = 'schedule' | 'list' | 'profile';
4
+ export type TabsToolbarItem = {
5
+ label: string;
6
+ icon: string | React.JSX.Element;
7
+ href: string;
8
+ selected?: boolean;
9
+ };
10
+ export type TabsToolbarProps = {
11
+ user?: UserType | Specialist;
12
+ slot?: 'bottom' | 'top';
13
+ items: TabsToolbarItem[];
14
+ };
@@ -35,3 +35,4 @@ export * from './ReviewListFeature';
35
35
  export * from './SpecialistEducationsFeature';
36
36
  export * from './SpecialistPreviewFeature';
37
37
  export * from './AppHeaderPageFeature';
38
+ export * from './TabsToolbarFeature';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconChat: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconMindlyMini: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconSchedule: React.FC<IconProps>;
@@ -97,3 +97,6 @@ export * from './IconStudyHat';
97
97
  export * from './IconMindlyColored';
98
98
  export * from './IconUser';
99
99
  export * from './IconEmptyList';
100
+ export * from './IconChat';
101
+ export * from './IconMindlyMini';
102
+ export * from './IconSchedule';
@@ -62,5 +62,5 @@ export type Specialist = {
62
62
  app_lang?: string;
63
63
  isFavourite?: boolean;
64
64
  subscription_discounts?: Record<string, number>;
65
- is_blocked?: boolean;
65
+ is_disabled?: boolean;
66
66
  };
@@ -1,13 +1,14 @@
1
1
  import React from 'react';
2
2
  import { AvatarRoundVariants } from './Avatar_v2.style';
3
3
  export type AvatarProps = {
4
- variant?: 'small' | 'medium' | 'smaller' | 'large' | 'xl';
4
+ variant?: 'small' | 'medium' | 'smaller' | 'large' | 'xl' | 'xs';
5
5
  round?: AvatarRoundVariants;
6
6
  className?: string;
7
7
  src?: string;
8
8
  alt?: string;
9
9
  showSkeleton?: boolean;
10
10
  onClick?(): void;
11
+ border?: boolean;
11
12
  };
12
13
  declare const _default: React.NamedExoticComponent<AvatarProps>;
13
14
  export default _default;
@@ -5,4 +5,5 @@ export declare function getBorderRadius(props: {
5
5
  export declare const AvatarWrapper: import("styled-components").StyledComponent<"div", any, {
6
6
  round: AvatarRoundVariants;
7
7
  isLoading: boolean;
8
+ border: boolean;
8
9
  }, never>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { NewSpecialistProps } from './types';
3
+ declare const NewSpecialist: React.FC<NewSpecialistProps>;
4
+ export default NewSpecialist;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import NewSpecialist from './NewSpecialist';
3
+ declare const meta: Meta<typeof NewSpecialist>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Full: Story;
@@ -0,0 +1 @@
1
+ export { default as NewSpecialist } from './NewSpecialist';
@@ -0,0 +1,140 @@
1
+ import { TypographyVariantsEnum } from '../Typography';
2
+ export declare const newSpecialistStyle: import("tailwind-variants").TVReturnType<{
3
+ variant: {
4
+ default: {
5
+ root: string;
6
+ iconVariant: TypographyVariantsEnum;
7
+ titleVariant: TypographyVariantsEnum;
8
+ };
9
+ full: {
10
+ root: string;
11
+ iconVariant: TypographyVariantsEnum;
12
+ titleVariant: TypographyVariantsEnum;
13
+ };
14
+ badge: {
15
+ root: string;
16
+ iconVariant: TypographyVariantsEnum;
17
+ titleVariant: TypographyVariantsEnum;
18
+ };
19
+ };
20
+ }, {
21
+ iconVariant: string;
22
+ titleVariant: string;
23
+ root: string;
24
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
25
+ variant: {
26
+ default: {
27
+ root: string;
28
+ iconVariant: TypographyVariantsEnum;
29
+ titleVariant: TypographyVariantsEnum;
30
+ };
31
+ full: {
32
+ root: string;
33
+ iconVariant: TypographyVariantsEnum;
34
+ titleVariant: TypographyVariantsEnum;
35
+ };
36
+ badge: {
37
+ root: string;
38
+ iconVariant: TypographyVariantsEnum;
39
+ titleVariant: TypographyVariantsEnum;
40
+ };
41
+ };
42
+ }, {
43
+ variant: {
44
+ default: {
45
+ root: string;
46
+ iconVariant: TypographyVariantsEnum;
47
+ titleVariant: TypographyVariantsEnum;
48
+ };
49
+ full: {
50
+ root: string;
51
+ iconVariant: TypographyVariantsEnum;
52
+ titleVariant: TypographyVariantsEnum;
53
+ };
54
+ badge: {
55
+ root: string;
56
+ iconVariant: TypographyVariantsEnum;
57
+ titleVariant: TypographyVariantsEnum;
58
+ };
59
+ };
60
+ }>, {
61
+ variant: {
62
+ default: {
63
+ root: string;
64
+ iconVariant: TypographyVariantsEnum;
65
+ titleVariant: TypographyVariantsEnum;
66
+ };
67
+ full: {
68
+ root: string;
69
+ iconVariant: TypographyVariantsEnum;
70
+ titleVariant: TypographyVariantsEnum;
71
+ };
72
+ badge: {
73
+ root: string;
74
+ iconVariant: TypographyVariantsEnum;
75
+ titleVariant: TypographyVariantsEnum;
76
+ };
77
+ };
78
+ }, {
79
+ iconVariant: string;
80
+ titleVariant: string;
81
+ root: string;
82
+ }, import("tailwind-variants").TVReturnType<{
83
+ variant: {
84
+ default: {
85
+ root: string;
86
+ iconVariant: TypographyVariantsEnum;
87
+ titleVariant: TypographyVariantsEnum;
88
+ };
89
+ full: {
90
+ root: string;
91
+ iconVariant: TypographyVariantsEnum;
92
+ titleVariant: TypographyVariantsEnum;
93
+ };
94
+ badge: {
95
+ root: string;
96
+ iconVariant: TypographyVariantsEnum;
97
+ titleVariant: TypographyVariantsEnum;
98
+ };
99
+ };
100
+ }, {
101
+ iconVariant: string;
102
+ titleVariant: string;
103
+ root: string;
104
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
105
+ variant: {
106
+ default: {
107
+ root: string;
108
+ iconVariant: TypographyVariantsEnum;
109
+ titleVariant: TypographyVariantsEnum;
110
+ };
111
+ full: {
112
+ root: string;
113
+ iconVariant: TypographyVariantsEnum;
114
+ titleVariant: TypographyVariantsEnum;
115
+ };
116
+ badge: {
117
+ root: string;
118
+ iconVariant: TypographyVariantsEnum;
119
+ titleVariant: TypographyVariantsEnum;
120
+ };
121
+ };
122
+ }, {
123
+ variant: {
124
+ default: {
125
+ root: string;
126
+ iconVariant: TypographyVariantsEnum;
127
+ titleVariant: TypographyVariantsEnum;
128
+ };
129
+ full: {
130
+ root: string;
131
+ iconVariant: TypographyVariantsEnum;
132
+ titleVariant: TypographyVariantsEnum;
133
+ };
134
+ badge: {
135
+ root: string;
136
+ iconVariant: TypographyVariantsEnum;
137
+ titleVariant: TypographyVariantsEnum;
138
+ };
139
+ };
140
+ }>, unknown, unknown, undefined>>;
@@ -0,0 +1,7 @@
1
+ import { WithTranslation } from 'react-i18next';
2
+ export type NewSpecialistProps = {
3
+ variant?: 'badge' | 'full';
4
+ className?: string;
5
+ t?: WithTranslation['t'];
6
+ onOpenArticle?(): void;
7
+ };
@@ -43,3 +43,4 @@ export * from './ReviewsSummary';
43
43
  export * from './Divider';
44
44
  export * from './EmptyList';
45
45
  export * from './SpecialistProfileNotFound';
46
+ export * from './NewSpecialist';
@@ -7,4 +7,5 @@ export declare const Default: Story;
7
7
  export declare const WithLoading: Story;
8
8
  export declare const AvarageMatch: Story;
9
9
  export declare const IsAddedToFavourite: Story;
10
+ export declare const IsNewSpecialist: Story;
10
11
  export declare const WithoutBadges: Story;
@@ -18,4 +18,5 @@ export type SpecialistDetailWidgetProps = {
18
18
  onOpenContract?(): void;
19
19
  onRateSession?(): void;
20
20
  onOpenSuperSpecialistArticle?(): void;
21
+ onOpenNewSpecialistArticle?(): void;
21
22
  };