@mindly/ui-components 8.6.9 → 8.6.11
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 +4 -4
- package/dist/cjs/lib2/features/ActiveClientsCapacityOnboardingModal/ActiveClientsCapacityOnboardingModal.d.ts +11 -0
- package/dist/cjs/lib2/features/ActiveClientsCapacityOnboardingModal/index.d.ts +1 -0
- package/dist/cjs/lib2/features/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/assets/icons/IconLightBubble.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/IconPeople.d.ts +3 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/DrumListPicker/DrumListPicker.d.ts +4 -2
- package/dist/cjs/lib2/shared/ui/ListItems/Item.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/NoticeCard/NoticeCard.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/NoticeCard/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/NoticeCard/styles.d.ts +125 -0
- package/dist/cjs/lib2/shared/ui/NoticeCard/types.d.ts +14 -0
- package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/lib2/features/ActiveClientsCapacityOnboardingModal/ActiveClientsCapacityOnboardingModal.d.ts +11 -0
- package/dist/esm/lib2/features/ActiveClientsCapacityOnboardingModal/index.d.ts +1 -0
- package/dist/esm/lib2/features/index.d.ts +1 -0
- package/dist/esm/lib2/shared/assets/icons/IconLightBubble.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/IconPeople.d.ts +3 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/DrumListPicker/DrumListPicker.d.ts +4 -2
- package/dist/esm/lib2/shared/ui/ListItems/Item.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/NoticeCard/NoticeCard.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/NoticeCard/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/NoticeCard/styles.d.ts +125 -0
- package/dist/esm/lib2/shared/ui/NoticeCard/types.d.ts +14 -0
- package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
- package/dist/index.d.ts +35 -4
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
|
+
interface ActiveClientsCapacityOnboardingModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onDidDismiss: () => void;
|
|
6
|
+
onGoToSettings: () => void;
|
|
7
|
+
t: WithTranslation['t'];
|
|
8
|
+
imageUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ActiveClientsCapacityOnboardingModal: FC<ActiveClientsCapacityOnboardingModalProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActiveClientsCapacityOnboardingModal';
|
|
@@ -6,11 +6,13 @@ type SelectionType = {
|
|
|
6
6
|
type Props = {
|
|
7
7
|
height?: number;
|
|
8
8
|
selections: Record<string, SelectionType[]>;
|
|
9
|
-
defaults?: Record<string,
|
|
9
|
+
defaults?: Record<string, any>;
|
|
10
10
|
onChange(value: Record<string, string>): void;
|
|
11
11
|
className?: string;
|
|
12
12
|
compareBy?: 'value' | 'label';
|
|
13
13
|
presentation?: 'date' | 'month' | 'month-year';
|
|
14
|
+
mode?: 'date' | 'list';
|
|
15
|
+
columns?: Record<string, SelectionType[]>;
|
|
14
16
|
};
|
|
15
|
-
declare const DrumListPicker: ({ height, selections, defaults, onChange, className, compareBy, presentation, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const DrumListPicker: ({ height, selections, defaults, onChange, className, compareBy, presentation, mode, columns, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export default DrumListPicker;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
type ItemProps = React.HTMLAttributes<HTMLIonItemElement> & {
|
|
3
3
|
leftContent?: React.ReactNode;
|
|
4
4
|
rightContent?: React.ReactNode;
|
|
5
|
+
badge?: React.ReactNode;
|
|
5
6
|
innerItemClassName?: string;
|
|
6
7
|
withBorders?: boolean;
|
|
7
8
|
isHighlight?: boolean;
|
|
@@ -13,6 +14,7 @@ type ItemProps = React.HTMLAttributes<HTMLIonItemElement> & {
|
|
|
13
14
|
export declare const Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLIonItemElement> & {
|
|
14
15
|
leftContent?: React.ReactNode;
|
|
15
16
|
rightContent?: React.ReactNode;
|
|
17
|
+
badge?: React.ReactNode;
|
|
16
18
|
innerItemClassName?: string;
|
|
17
19
|
withBorders?: boolean;
|
|
18
20
|
isHighlight?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NoticeCard } from './NoticeCard';
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { TypographyVariantsEnum } from '../Typography';
|
|
2
|
+
export declare const noticeCardStyle: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
tone: {
|
|
4
|
+
info: {
|
|
5
|
+
root: string;
|
|
6
|
+
titleVariant: TypographyVariantsEnum;
|
|
7
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
8
|
+
closeBtn: string;
|
|
9
|
+
};
|
|
10
|
+
neutral: {
|
|
11
|
+
root: string;
|
|
12
|
+
titleVariant: TypographyVariantsEnum;
|
|
13
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
14
|
+
closeBtn: string;
|
|
15
|
+
};
|
|
16
|
+
success: {
|
|
17
|
+
root: string;
|
|
18
|
+
titleVariant: TypographyVariantsEnum;
|
|
19
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
20
|
+
closeBtn: string;
|
|
21
|
+
};
|
|
22
|
+
warning: {
|
|
23
|
+
root: string;
|
|
24
|
+
titleVariant: TypographyVariantsEnum;
|
|
25
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
26
|
+
closeBtn: string;
|
|
27
|
+
};
|
|
28
|
+
danger: {
|
|
29
|
+
root: string;
|
|
30
|
+
titleVariant: TypographyVariantsEnum;
|
|
31
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
32
|
+
closeBtn: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
root: string;
|
|
37
|
+
textWrap: string;
|
|
38
|
+
titleVariant: string;
|
|
39
|
+
descriptionVariant: string;
|
|
40
|
+
actions: string;
|
|
41
|
+
closeBtn: string;
|
|
42
|
+
ctaBtn: string;
|
|
43
|
+
}, undefined, {
|
|
44
|
+
tone: {
|
|
45
|
+
info: {
|
|
46
|
+
root: string;
|
|
47
|
+
titleVariant: TypographyVariantsEnum;
|
|
48
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
49
|
+
closeBtn: string;
|
|
50
|
+
};
|
|
51
|
+
neutral: {
|
|
52
|
+
root: string;
|
|
53
|
+
titleVariant: TypographyVariantsEnum;
|
|
54
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
55
|
+
closeBtn: string;
|
|
56
|
+
};
|
|
57
|
+
success: {
|
|
58
|
+
root: string;
|
|
59
|
+
titleVariant: TypographyVariantsEnum;
|
|
60
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
61
|
+
closeBtn: string;
|
|
62
|
+
};
|
|
63
|
+
warning: {
|
|
64
|
+
root: string;
|
|
65
|
+
titleVariant: TypographyVariantsEnum;
|
|
66
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
67
|
+
closeBtn: string;
|
|
68
|
+
};
|
|
69
|
+
danger: {
|
|
70
|
+
root: string;
|
|
71
|
+
titleVariant: TypographyVariantsEnum;
|
|
72
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
73
|
+
closeBtn: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
root: string;
|
|
78
|
+
textWrap: string;
|
|
79
|
+
titleVariant: string;
|
|
80
|
+
descriptionVariant: string;
|
|
81
|
+
actions: string;
|
|
82
|
+
closeBtn: string;
|
|
83
|
+
ctaBtn: string;
|
|
84
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
85
|
+
tone: {
|
|
86
|
+
info: {
|
|
87
|
+
root: string;
|
|
88
|
+
titleVariant: TypographyVariantsEnum;
|
|
89
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
90
|
+
closeBtn: string;
|
|
91
|
+
};
|
|
92
|
+
neutral: {
|
|
93
|
+
root: string;
|
|
94
|
+
titleVariant: TypographyVariantsEnum;
|
|
95
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
96
|
+
closeBtn: string;
|
|
97
|
+
};
|
|
98
|
+
success: {
|
|
99
|
+
root: string;
|
|
100
|
+
titleVariant: TypographyVariantsEnum;
|
|
101
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
102
|
+
closeBtn: string;
|
|
103
|
+
};
|
|
104
|
+
warning: {
|
|
105
|
+
root: string;
|
|
106
|
+
titleVariant: TypographyVariantsEnum;
|
|
107
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
108
|
+
closeBtn: string;
|
|
109
|
+
};
|
|
110
|
+
danger: {
|
|
111
|
+
root: string;
|
|
112
|
+
titleVariant: TypographyVariantsEnum;
|
|
113
|
+
descriptionVariant: TypographyVariantsEnum;
|
|
114
|
+
closeBtn: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
root: string;
|
|
119
|
+
textWrap: string;
|
|
120
|
+
titleVariant: string;
|
|
121
|
+
descriptionVariant: string;
|
|
122
|
+
actions: string;
|
|
123
|
+
closeBtn: string;
|
|
124
|
+
ctaBtn: string;
|
|
125
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
|
+
export type NoticeCardTone = 'info' | 'neutral' | 'success' | 'warning' | 'danger';
|
|
4
|
+
export type NoticeCardProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
ctaLabel?: string;
|
|
10
|
+
onCtaClick?: () => void;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
tone?: NoticeCardTone;
|
|
13
|
+
t?: WithTranslation['t'];
|
|
14
|
+
};
|