@mindly/ui-components 3.49.1 → 3.50.0

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,6 +1,10 @@
1
1
  import React from 'react';
2
+ declare type BookingItem = {
3
+ title: string;
4
+ active?: boolean;
5
+ };
2
6
  declare type BookingScheduleTimeProps = {
3
- items: string[];
7
+ items: BookingItem[] | string[];
4
8
  onClick?: (index: number, item: string) => void;
5
9
  isLoading?: boolean;
6
10
  };
@@ -1,8 +1,8 @@
1
1
  import React, { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { JSX } from '@ionic/core/components';
3
3
  declare type DaySliderProps = JSX.IonSlides & HTMLAttributes<HTMLIonSlidesElement> & RefAttributes<HTMLIonSlidesElement> & {
4
- slides: number[];
5
- onDayClick?: (i: number, item: number) => void;
4
+ slides: number[] | string[];
5
+ onDayClick?: (i: number, item: number | string) => void;
6
6
  locale: string;
7
7
  translations?: {
8
8
  today?: string;
package/dist/index.d.ts CHANGED
@@ -880,8 +880,8 @@ declare type TooltipComponentProps = {
880
880
  declare const TooltipComponent: FC<TooltipComponentProps>;
881
881
 
882
882
  declare type DaySliderProps = JSX$1.IonSlides & HTMLAttributes<HTMLIonSlidesElement> & RefAttributes<HTMLIonSlidesElement> & {
883
- slides: number[];
884
- onDayClick?: (i: number, item: number) => void;
883
+ slides: number[] | string[];
884
+ onDayClick?: (i: number, item: number | string) => void;
885
885
  locale: string;
886
886
  translations?: {
887
887
  today?: string;
@@ -962,8 +962,12 @@ declare const StatisticsScroll: React.FC<SpecialistStatisticsCardProps>;
962
962
 
963
963
  declare const decOfNum: (number: number, titles: string[]) => string;
964
964
 
965
+ declare type BookingItem = {
966
+ title: string;
967
+ active?: boolean;
968
+ };
965
969
  declare type BookingScheduleTimeProps = {
966
- items: string[];
970
+ items: BookingItem[] | string[];
967
971
  onClick?: (index: number, item: string) => void;
968
972
  isLoading?: boolean;
969
973
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.49.1",
3
+ "version": "3.50.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",