@mindly/ui-components 8.5.4 → 8.5.6
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/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/SpecialistProfileViewCounter/SpecialistProfileViewCounter.d.ts +10 -0
- package/dist/cjs/lib2/shared/ui/SpecialistProfileViewCounter/SpecialistProfileViewCounter.stories.d.ts +6 -0
- package/dist/cjs/lib2/shared/ui/SpecialistProfileViewCounter/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/index.d.ts +3 -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/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/SpecialistProfileViewCounter/SpecialistProfileViewCounter.d.ts +10 -0
- package/dist/esm/lib2/shared/ui/SpecialistProfileViewCounter/SpecialistProfileViewCounter.stories.d.ts +6 -0
- package/dist/esm/lib2/shared/ui/SpecialistProfileViewCounter/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/index.d.ts +3 -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 +61 -2
- package/package.json +1 -1
- package/src/lib2/shared/css/variables.css +12 -10
|
@@ -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';
|
package/dist/cjs/lib2/shared/ui/SpecialistProfileViewCounter/SpecialistProfileViewCounter.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { SVGAttributes, FC } from 'react';
|
|
2
|
+
type SpecialistProfileViewCounterProps = {
|
|
3
|
+
countText: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
icon?: FC<SVGAttributes<SVGElement>>;
|
|
6
|
+
iconSize?: number;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const SpecialistProfileViewCounter: React.FC<SpecialistProfileViewCounterProps>;
|
|
10
|
+
export default SpecialistProfileViewCounter;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import SpecialistProfileViewCounter from './SpecialistProfileViewCounter';
|
|
3
|
+
declare const meta: Meta<typeof SpecialistProfileViewCounter>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SpecialistProfileViewCounter>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SpecialistProfileViewCounter } from './SpecialistProfileViewCounter';
|
|
@@ -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';
|