@mindly/ui-components 5.96.0 → 5.96.1

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.
@@ -1,11 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { Specialist, UserType } from '../../shared';
3
- export type TabsToolbarItemIcon = 'schedule' | 'list' | 'profile';
3
+ export type TabsToolbarItemIcon = 'schedule' | 'list' | 'profile' | 'chat';
4
4
  export type TabsToolbarItem = {
5
5
  label: string;
6
6
  icon: string | React.JSX.Element;
7
7
  iconSelected?: string | React.JSX.Element;
8
8
  href: string;
9
+ badge?: number;
9
10
  selected?: boolean;
10
11
  };
11
12
  export type TabsToolbarProps = {
@@ -15,5 +16,7 @@ export type TabsToolbarProps = {
15
16
  slot?: 'bottom' | 'top';
16
17
  items: TabsToolbarItem[];
17
18
  selectedTab: string;
18
- onTabChange?(tab: string): void;
19
+ onTabWillChange?(e: CustomEvent<{
20
+ tab: string;
21
+ }>): void;
19
22
  };
@@ -56,7 +56,7 @@ export type Specialist = {
56
56
  reviews_count_by_stars: {
57
57
  [key: string]: number;
58
58
  };
59
- percent_match: number;
59
+ percent_match?: number;
60
60
  session_count_by_3_days?: number;
61
61
  favourite?: boolean;
62
62
  app_lang?: string;
package/dist/index.d.ts CHANGED
@@ -1673,7 +1673,7 @@ type Specialist = {
1673
1673
  reviews_count_by_stars: {
1674
1674
  [key: string]: number;
1675
1675
  };
1676
- percent_match: number;
1676
+ percent_match?: number;
1677
1677
  session_count_by_3_days?: number;
1678
1678
  favourite?: boolean;
1679
1679
  app_lang?: string;
@@ -3228,6 +3228,7 @@ type TabsToolbarItem = {
3228
3228
  icon: string | React.JSX.Element;
3229
3229
  iconSelected?: string | React.JSX.Element;
3230
3230
  href: string;
3231
+ badge?: number;
3231
3232
  selected?: boolean;
3232
3233
  };
3233
3234
  type TabsToolbarProps = {
@@ -3237,7 +3238,9 @@ type TabsToolbarProps = {
3237
3238
  slot?: 'bottom' | 'top';
3238
3239
  items: TabsToolbarItem[];
3239
3240
  selectedTab: string;
3240
- onTabChange?(tab: string): void;
3241
+ onTabWillChange?(e: CustomEvent<{
3242
+ tab: string;
3243
+ }>): void;
3241
3244
  };
3242
3245
 
3243
3246
  declare const TabsToolbarFeature: React__default.FC<TabsToolbarProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.96.0",
3
+ "version": "5.96.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",