@mindly/ui-components 8.5.5 → 8.5.7
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 +7 -7
- package/dist/cjs/lib2/features/SessionPreviewFeature/types.d.ts +1 -0
- package/dist/cjs/lib2/features/ViewedClientsListFeature/ViewedClientsListFeature.d.ts +10 -0
- package/dist/cjs/lib2/features/ViewedClientsListFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/assets/icons/IconBinoculars.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/IconFilledHeart.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/IconLoyalty.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +3 -0
- package/dist/cjs/lib2/shared/ui/ClientCard/ClientCard.d.ts +15 -0
- package/dist/cjs/lib2/shared/ui/ClientCard/index.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/ClientCard/types.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/EmptyClientsList/EmptyClientsList.d.ts +8 -0
- package/dist/cjs/lib2/shared/ui/EmptyClientsList/EmptyClientsList.stories.d.ts +6 -0
- package/dist/cjs/lib2/shared/ui/EmptyClientsList/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/index.d.ts +2 -0
- package/dist/cjs/lib2/widgets/SessionsListWidget/types.d.ts +1 -0
- package/dist/cjs/lib2/widgets/ViewedClientsWidget/ViewedClientListSkeleton.d.ts +2 -0
- package/dist/cjs/lib2/widgets/ViewedClientsWidget/ViewedClientsWidget.d.ts +16 -0
- package/dist/cjs/lib2/widgets/ViewedClientsWidget/ViewedClientsWidget.stories.d.ts +9 -0
- package/dist/cjs/lib2/widgets/ViewedClientsWidget/index.d.ts +1 -0
- package/dist/cjs/lib2/widgets/index.d.ts +1 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/lib2/features/SessionPreviewFeature/types.d.ts +1 -0
- package/dist/esm/lib2/features/ViewedClientsListFeature/ViewedClientsListFeature.d.ts +10 -0
- package/dist/esm/lib2/features/ViewedClientsListFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/index.d.ts +1 -0
- package/dist/esm/lib2/shared/assets/icons/IconBinoculars.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/IconFilledHeart.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/IconLoyalty.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +3 -0
- package/dist/esm/lib2/shared/ui/ClientCard/ClientCard.d.ts +15 -0
- package/dist/esm/lib2/shared/ui/ClientCard/index.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/ClientCard/types.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/EmptyClientsList/EmptyClientsList.d.ts +8 -0
- package/dist/esm/lib2/shared/ui/EmptyClientsList/EmptyClientsList.stories.d.ts +6 -0
- package/dist/esm/lib2/shared/ui/EmptyClientsList/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/index.d.ts +2 -0
- package/dist/esm/lib2/widgets/SessionsListWidget/types.d.ts +1 -0
- package/dist/esm/lib2/widgets/ViewedClientsWidget/ViewedClientListSkeleton.d.ts +2 -0
- package/dist/esm/lib2/widgets/ViewedClientsWidget/ViewedClientsWidget.d.ts +16 -0
- package/dist/esm/lib2/widgets/ViewedClientsWidget/ViewedClientsWidget.stories.d.ts +9 -0
- package/dist/esm/lib2/widgets/ViewedClientsWidget/index.d.ts +1 -0
- package/dist/esm/lib2/widgets/index.d.ts +1 -0
- package/dist/index.d.ts +54 -2
- package/package.json +1 -1
- package/src/lib2/shared/css/variables.css +12 -10
|
@@ -13,4 +13,5 @@ export type SessionPreviewFeatureProps = {
|
|
|
13
13
|
onSessionStart?(session: Session | SessionQueue): void;
|
|
14
14
|
rateSessionCallback?: (session: Session | SessionQueue) => void;
|
|
15
15
|
onUpdateSubscription?: (session: Session | SessionQueue) => void;
|
|
16
|
+
getSubscriptionRemainingBalance?: (session: Session | SessionQueue) => number;
|
|
16
17
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
|
+
import { type ClientCardProps } from '../../shared/ui';
|
|
4
|
+
type ViewedClientsListProps = {
|
|
5
|
+
clients: Omit<ClientCardProps, 'onClick'>[];
|
|
6
|
+
t: WithTranslation['t'];
|
|
7
|
+
onClickClientCard: (id: string) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const ViewedClientsListFeature: React.FC<ViewedClientsListProps>;
|
|
10
|
+
export default ViewedClientsListFeature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ViewedClientsListFeature } from './ViewedClientsListFeature';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { LastEventType } from './types';
|
|
3
|
+
export interface ClientCardProps {
|
|
4
|
+
id: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
avatarUrl?: string;
|
|
8
|
+
dateText: string;
|
|
9
|
+
lastSeenAt?: string | null;
|
|
10
|
+
lastEventType: LastEventType;
|
|
11
|
+
onClick?: (id: string) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
isMasked: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const ClientCard: FC<ClientCardProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
|
+
export type EmptyClientsListProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
t?: WithTranslation['t'];
|
|
6
|
+
};
|
|
7
|
+
declare const EmptyClientsList: React.FC<EmptyClientsListProps>;
|
|
8
|
+
export default EmptyClientsList;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import EmptyClientsList from './EmptyClientsList';
|
|
3
|
+
declare const meta: Meta<typeof EmptyClientsList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof EmptyClientsList>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EmptyClientsList } from './EmptyClientsList';
|
|
@@ -20,6 +20,7 @@ export type SessionsWidgetProps = {
|
|
|
20
20
|
onRecurringSessionClick?(recurringSession: RecurringSession): void;
|
|
21
21
|
onScheduleSession?(): void;
|
|
22
22
|
onUpdateSubscription?(session: Session): void;
|
|
23
|
+
getSubscriptionRemainingBalance?: (session: Session) => number;
|
|
23
24
|
t?: WithTranslation['t'];
|
|
24
25
|
timeZone?: string;
|
|
25
26
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { RefresherEventDetail, InfiniteScrollCustomEvent } from '@ionic/react';
|
|
3
|
+
import { WithTranslation } from 'react-i18next';
|
|
4
|
+
import { ClientCardProps } from '../../shared/ui';
|
|
5
|
+
type ViewedClientsWidgetProps = {
|
|
6
|
+
clients: Omit<ClientCardProps, 'onClick'>[];
|
|
7
|
+
t: WithTranslation['t'];
|
|
8
|
+
onClickClientCard: (id: string) => void;
|
|
9
|
+
onIonRefresh?: (e: CustomEvent<RefresherEventDetail>) => void;
|
|
10
|
+
loadMore?: (e: InfiniteScrollCustomEvent) => void;
|
|
11
|
+
isMountLoading?: boolean;
|
|
12
|
+
isRefreshingDisabled?: boolean;
|
|
13
|
+
isInfiniteScrollDisabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const ViewedClientsWidget: FC<ViewedClientsWidgetProps>;
|
|
16
|
+
export default ViewedClientsWidget;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import ViewedClientsWidget from './ViewedClientsWidget';
|
|
3
|
+
declare const meta: Meta<typeof ViewedClientsWidget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ViewedClientsWidget>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
8
|
+
export declare const LoadingList: Story;
|
|
9
|
+
export declare const RefreshStateList: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ViewedClientsWidget } from './ViewedClientsWidget';
|