@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.
Files changed (49) hide show
  1. package/dist/cjs/index.js +7 -7
  2. package/dist/cjs/lib2/features/ViewedClientsListFeature/ViewedClientsListFeature.d.ts +10 -0
  3. package/dist/cjs/lib2/features/ViewedClientsListFeature/index.d.ts +1 -0
  4. package/dist/cjs/lib2/features/index.d.ts +1 -0
  5. package/dist/cjs/lib2/shared/assets/icons/IconBinoculars.d.ts +3 -0
  6. package/dist/cjs/lib2/shared/assets/icons/IconFilledHeart.d.ts +3 -0
  7. package/dist/cjs/lib2/shared/assets/icons/IconLoyalty.d.ts +3 -0
  8. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +3 -0
  9. package/dist/cjs/lib2/shared/ui/ClientCard/ClientCard.d.ts +15 -0
  10. package/dist/cjs/lib2/shared/ui/ClientCard/index.d.ts +2 -0
  11. package/dist/cjs/lib2/shared/ui/ClientCard/types.d.ts +4 -0
  12. package/dist/cjs/lib2/shared/ui/EmptyClientsList/EmptyClientsList.d.ts +8 -0
  13. package/dist/cjs/lib2/shared/ui/EmptyClientsList/EmptyClientsList.stories.d.ts +6 -0
  14. package/dist/cjs/lib2/shared/ui/EmptyClientsList/index.d.ts +1 -0
  15. package/dist/cjs/lib2/shared/ui/SpecialistProfileViewCounter/SpecialistProfileViewCounter.d.ts +10 -0
  16. package/dist/cjs/lib2/shared/ui/SpecialistProfileViewCounter/SpecialistProfileViewCounter.stories.d.ts +6 -0
  17. package/dist/cjs/lib2/shared/ui/SpecialistProfileViewCounter/index.d.ts +1 -0
  18. package/dist/cjs/lib2/shared/ui/index.d.ts +3 -0
  19. package/dist/cjs/lib2/widgets/ViewedClientsWidget/ViewedClientListSkeleton.d.ts +2 -0
  20. package/dist/cjs/lib2/widgets/ViewedClientsWidget/ViewedClientsWidget.d.ts +16 -0
  21. package/dist/cjs/lib2/widgets/ViewedClientsWidget/ViewedClientsWidget.stories.d.ts +9 -0
  22. package/dist/cjs/lib2/widgets/ViewedClientsWidget/index.d.ts +1 -0
  23. package/dist/cjs/lib2/widgets/index.d.ts +1 -0
  24. package/dist/esm/index.js +7 -7
  25. package/dist/esm/lib2/features/ViewedClientsListFeature/ViewedClientsListFeature.d.ts +10 -0
  26. package/dist/esm/lib2/features/ViewedClientsListFeature/index.d.ts +1 -0
  27. package/dist/esm/lib2/features/index.d.ts +1 -0
  28. package/dist/esm/lib2/shared/assets/icons/IconBinoculars.d.ts +3 -0
  29. package/dist/esm/lib2/shared/assets/icons/IconFilledHeart.d.ts +3 -0
  30. package/dist/esm/lib2/shared/assets/icons/IconLoyalty.d.ts +3 -0
  31. package/dist/esm/lib2/shared/assets/icons/index.d.ts +3 -0
  32. package/dist/esm/lib2/shared/ui/ClientCard/ClientCard.d.ts +15 -0
  33. package/dist/esm/lib2/shared/ui/ClientCard/index.d.ts +2 -0
  34. package/dist/esm/lib2/shared/ui/ClientCard/types.d.ts +4 -0
  35. package/dist/esm/lib2/shared/ui/EmptyClientsList/EmptyClientsList.d.ts +8 -0
  36. package/dist/esm/lib2/shared/ui/EmptyClientsList/EmptyClientsList.stories.d.ts +6 -0
  37. package/dist/esm/lib2/shared/ui/EmptyClientsList/index.d.ts +1 -0
  38. package/dist/esm/lib2/shared/ui/SpecialistProfileViewCounter/SpecialistProfileViewCounter.d.ts +10 -0
  39. package/dist/esm/lib2/shared/ui/SpecialistProfileViewCounter/SpecialistProfileViewCounter.stories.d.ts +6 -0
  40. package/dist/esm/lib2/shared/ui/SpecialistProfileViewCounter/index.d.ts +1 -0
  41. package/dist/esm/lib2/shared/ui/index.d.ts +3 -0
  42. package/dist/esm/lib2/widgets/ViewedClientsWidget/ViewedClientListSkeleton.d.ts +2 -0
  43. package/dist/esm/lib2/widgets/ViewedClientsWidget/ViewedClientsWidget.d.ts +16 -0
  44. package/dist/esm/lib2/widgets/ViewedClientsWidget/ViewedClientsWidget.stories.d.ts +9 -0
  45. package/dist/esm/lib2/widgets/ViewedClientsWidget/index.d.ts +1 -0
  46. package/dist/esm/lib2/widgets/index.d.ts +1 -0
  47. package/dist/index.d.ts +61 -2
  48. package/package.json +1 -1
  49. 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';
@@ -63,3 +63,4 @@ export * from './SessionTypeSelectorModalFeature';
63
63
  export * from './SessionManageModalFeature';
64
64
  export * from './RecurringSessionPreviewFeature';
65
65
  export * from './ReservedSessionManageModalFeature';
66
+ export * from './ViewedClientsListFeature';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconBinoculars: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from '../../types/iconProps';
3
+ export declare const IconFilledHeart: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { IconProps } from '../../types';
3
+ export declare const IconLoyalty: FC<IconProps>;
@@ -161,3 +161,6 @@ export * from './IconAccountBalance';
161
161
  export * from './IconVoiceMode';
162
162
  export * from './IconKeyboard';
163
163
  export * from './IconBusiness';
164
+ export * from './IconFilledHeart';
165
+ export * from './IconBinoculars';
166
+ export * from './IconLoyalty';
@@ -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,2 @@
1
+ export { ClientCard } from './ClientCard';
2
+ export type { ClientCardProps } from './ClientCard';
@@ -0,0 +1,4 @@
1
+ export declare enum LastEventType {
2
+ VIEW = "VIEW",
3
+ LIKE = "LIKE"
4
+ }
@@ -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';
@@ -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';
@@ -51,3 +51,6 @@ export * from './PromptCard';
51
51
  export * from './ExploreCard';
52
52
  export * from './ProgressCard';
53
53
  export * from './Slider';
54
+ export * from './EmptyClientsList';
55
+ export * from './ClientCard';
56
+ export * from './SpecialistProfileViewCounter';
@@ -0,0 +1,2 @@
1
+ declare const ViewedClientListSkeleton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ViewedClientListSkeleton;
@@ -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';
@@ -12,3 +12,4 @@ export * from './SessionPaymentsWidget';
12
12
  export * from './SpecialistPreviewWidget';
13
13
  export * from './SpecialistDetailWithTabsWidget';
14
14
  export * from './SpecialistCardWithScheduleWidget';
15
+ export * from './ViewedClientsWidget';