@mindly/ui-components 5.95.1 → 5.95.3

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,5 +1,7 @@
1
1
  import { AriaTabListProps } from 'react-aria';
2
- type TabsProps<T> = AriaTabListProps<T>;
2
+ type TabsProps<T> = AriaTabListProps<T> & {
3
+ className?: string;
4
+ };
3
5
  export declare function Tabs<T extends Record<string, unknown>>(props: TabsProps<T>): JSX.Element;
4
6
  export declare namespace Tabs {
5
7
  var displayName: string;
@@ -0,0 +1,3 @@
1
+ import { Specialist } from '../types';
2
+ export type ContractStatus = 'pending' | 'not_signed' | 'expired' | 'expired_none' | 'none' | 'active';
3
+ export declare const getContractStatus: (specialist?: Specialist) => ContractStatus;
@@ -4,9 +4,9 @@ export declare const NEAR_SESSION_TIME_SECONDS: number;
4
4
  export declare const CAN_MANAGE_SESSION_TIME_HOURS = 24;
5
5
  export declare const getStartSessionDate: (sessionTime?: SessionTime) => Date | undefined;
6
6
  export declare const getSessionVariant: (session?: Session) => SessionVariant;
7
- export declare const getSessionsByYear: (sessions: Session[]) => Record<number, Session[]>;
8
- export declare const getSessionsByMonth: (sessions: Session[]) => Record<number, Session[]>;
9
- export declare const getSessionsByDay: (sessions: Session[]) => Record<number, Session[]>;
10
- export declare const splitSessions: (sessions: Session[]) => Record<string, Session[]>;
7
+ export declare const getSessionsByYear: (sessions: Session[]) => Map<number, Session[]>;
8
+ export declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
9
+ export declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
10
+ export declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
11
11
  export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>) => string;
12
12
  export declare const canManageSession: (sessionDate?: Date) => boolean;
@@ -13,3 +13,4 @@ export declare const Future: Story;
13
13
  export declare const Loading: Story;
14
14
  export declare const SpecialistBlocked: Story;
15
15
  export declare const TrialSession: Story;
16
+ export declare const ContractNotValid: Story;
@@ -5,4 +5,5 @@ export default meta;
5
5
  type Story = StoryObj<typeof SessionsListWidget>;
6
6
  export declare const Default: Story;
7
7
  export declare const Loading: Story;
8
+ export declare const SmallAmount: Story;
8
9
  export declare const Empty: Story;