@mindly/ui-components 7.4.0-dev.6 → 7.4.0-dev.8
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 +5 -5
- package/dist/cjs/lib2/features/AppNotSupporedFeature/AppNotSupportedFeature.d.ts +3 -2
- package/dist/cjs/lib2/features/ExploreCardSwiperFeature/types.d.ts +1 -1
- package/dist/cjs/lib2/features/PromptCardsFeature/types.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/Badge/styles.d.ts +0 -7
- package/dist/cjs/lib2/shared/ui/Badge/types.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/ExploreCard/types.d.ts +1 -1
- package/dist/cjs/lib2/shared/ui/PromptCard/types.d.ts +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/lib2/features/AppNotSupporedFeature/AppNotSupportedFeature.d.ts +3 -2
- package/dist/esm/lib2/features/ExploreCardSwiperFeature/types.d.ts +1 -1
- package/dist/esm/lib2/features/PromptCardsFeature/types.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/Badge/styles.d.ts +0 -7
- package/dist/esm/lib2/shared/ui/Badge/types.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/ExploreCard/types.d.ts +1 -1
- package/dist/esm/lib2/shared/ui/PromptCard/types.d.ts +1 -0
- package/dist/index.d.ts +8 -5
- package/package.json +1 -2
|
@@ -2,7 +2,8 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { TranslationType } from '../../shared/types';
|
|
3
3
|
type AppNotSupportedProps = {
|
|
4
4
|
isOpen: boolean;
|
|
5
|
-
|
|
5
|
+
onUpdate?: () => void;
|
|
6
|
+
redirectToWeb?: () => void;
|
|
6
7
|
} & TranslationType;
|
|
7
|
-
export declare function AppNotSupportedFeature({ isOpen,
|
|
8
|
+
export declare function AppNotSupportedFeature({ isOpen, t, children, onUpdate, redirectToWeb, }: PropsWithChildren<AppNotSupportedProps>): JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -3,7 +3,7 @@ export interface ExploreCardData {
|
|
|
3
3
|
title: string;
|
|
4
4
|
description: string;
|
|
5
5
|
badgeText?: string;
|
|
6
|
-
|
|
6
|
+
badgeColorHex?: string;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
isProgressState?: boolean;
|
|
9
9
|
currentMessageCount?: number;
|
|
@@ -7,7 +7,6 @@ export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
7
7
|
success: "";
|
|
8
8
|
brand: "";
|
|
9
9
|
info: "";
|
|
10
|
-
personalized: "";
|
|
11
10
|
};
|
|
12
11
|
size: {
|
|
13
12
|
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
@@ -26,7 +25,6 @@ export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
26
25
|
success: "";
|
|
27
26
|
brand: "";
|
|
28
27
|
info: "";
|
|
29
|
-
personalized: "";
|
|
30
28
|
};
|
|
31
29
|
size: {
|
|
32
30
|
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
@@ -45,7 +43,6 @@ export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
45
43
|
success: "";
|
|
46
44
|
brand: "";
|
|
47
45
|
info: "";
|
|
48
|
-
personalized: "";
|
|
49
46
|
};
|
|
50
47
|
size: {
|
|
51
48
|
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
@@ -64,7 +61,6 @@ export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
64
61
|
success: "";
|
|
65
62
|
brand: "";
|
|
66
63
|
info: "";
|
|
67
|
-
personalized: "";
|
|
68
64
|
};
|
|
69
65
|
size: {
|
|
70
66
|
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
@@ -83,7 +79,6 @@ export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
83
79
|
success: "";
|
|
84
80
|
brand: "";
|
|
85
81
|
info: "";
|
|
86
|
-
personalized: "";
|
|
87
82
|
};
|
|
88
83
|
size: {
|
|
89
84
|
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
@@ -102,7 +97,6 @@ export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
102
97
|
success: "";
|
|
103
98
|
brand: "";
|
|
104
99
|
info: "";
|
|
105
|
-
personalized: "";
|
|
106
100
|
};
|
|
107
101
|
size: {
|
|
108
102
|
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
@@ -121,7 +115,6 @@ export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
121
115
|
success: "";
|
|
122
116
|
brand: "";
|
|
123
117
|
info: "";
|
|
124
|
-
personalized: "";
|
|
125
118
|
};
|
|
126
119
|
size: {
|
|
127
120
|
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export type BadgeType = 'default' | 'accent';
|
|
3
|
-
export type BadgeVariants = 'attention' | 'neutral' | 'success' | 'warning' | 'brand' | 'info'
|
|
3
|
+
export type BadgeVariants = 'attention' | 'neutral' | 'success' | 'warning' | 'brand' | 'info';
|
|
4
4
|
export type BadgeProps = React.ComponentPropsWithoutRef<'span'> & {
|
|
5
5
|
variant: BadgeVariants;
|
|
6
6
|
size?: 'S' | 'M';
|
|
@@ -2,7 +2,7 @@ export interface ExploreCardProps {
|
|
|
2
2
|
title: string;
|
|
3
3
|
description: string;
|
|
4
4
|
badgeText?: string;
|
|
5
|
-
|
|
5
|
+
badgeColorHex?: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
onInputClicked?: () => void;
|
|
8
8
|
className?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1396,7 +1396,7 @@ type PictureProps = {
|
|
|
1396
1396
|
declare const _default$1b: React__default.NamedExoticComponent<PictureProps>;
|
|
1397
1397
|
|
|
1398
1398
|
type BadgeType = 'default' | 'accent';
|
|
1399
|
-
type BadgeVariants = 'attention' | 'neutral' | 'success' | 'warning' | 'brand' | 'info'
|
|
1399
|
+
type BadgeVariants = 'attention' | 'neutral' | 'success' | 'warning' | 'brand' | 'info';
|
|
1400
1400
|
type BadgeProps = React$1.ComponentPropsWithoutRef<'span'> & {
|
|
1401
1401
|
variant: BadgeVariants;
|
|
1402
1402
|
size?: 'S' | 'M';
|
|
@@ -1877,6 +1877,7 @@ type PromptCardProps = React$1.ComponentPropsWithoutRef<'div'> & {
|
|
|
1877
1877
|
badgeText?: string;
|
|
1878
1878
|
onStartConversation?: () => void;
|
|
1879
1879
|
isLoading?: boolean;
|
|
1880
|
+
badgeColorHex?: string;
|
|
1880
1881
|
};
|
|
1881
1882
|
|
|
1882
1883
|
declare const _default$Z: React$1.NamedExoticComponent<PromptCardProps>;
|
|
@@ -1885,7 +1886,7 @@ interface ExploreCardProps {
|
|
|
1885
1886
|
title: string;
|
|
1886
1887
|
description: string;
|
|
1887
1888
|
badgeText?: string;
|
|
1888
|
-
|
|
1889
|
+
badgeColorHex?: string;
|
|
1889
1890
|
placeholder?: string;
|
|
1890
1891
|
onInputClicked?: () => void;
|
|
1891
1892
|
className?: string;
|
|
@@ -2826,9 +2827,10 @@ declare const ReviewsCardFeatureSkeleton: React__default.MemoExoticComponent<()
|
|
|
2826
2827
|
|
|
2827
2828
|
type AppNotSupportedProps = {
|
|
2828
2829
|
isOpen: boolean;
|
|
2829
|
-
|
|
2830
|
+
onUpdate?: () => void;
|
|
2831
|
+
redirectToWeb?: () => void;
|
|
2830
2832
|
} & TranslationType;
|
|
2831
|
-
declare function AppNotSupportedFeature({ isOpen,
|
|
2833
|
+
declare function AppNotSupportedFeature({ isOpen, t, children, onUpdate, redirectToWeb, }: PropsWithChildren<AppNotSupportedProps>): JSX.Element;
|
|
2832
2834
|
|
|
2833
2835
|
type ScreenInputUpdateFeatureProps = {
|
|
2834
2836
|
children?: any;
|
|
@@ -3550,6 +3552,7 @@ interface PromptCardData {
|
|
|
3550
3552
|
title: string;
|
|
3551
3553
|
description: string;
|
|
3552
3554
|
badgeText?: string;
|
|
3555
|
+
badgeColorHex?: string;
|
|
3553
3556
|
}
|
|
3554
3557
|
type PromptCardsFeatureProps = React$1.ComponentPropsWithoutRef<'div'> & {
|
|
3555
3558
|
cards?: PromptCardData[];
|
|
@@ -3564,7 +3567,7 @@ interface ExploreCardData {
|
|
|
3564
3567
|
title: string;
|
|
3565
3568
|
description: string;
|
|
3566
3569
|
badgeText?: string;
|
|
3567
|
-
|
|
3570
|
+
badgeColorHex?: string;
|
|
3568
3571
|
placeholder?: string;
|
|
3569
3572
|
isProgressState?: boolean;
|
|
3570
3573
|
currentMessageCount?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "7.4.0-dev.
|
|
3
|
+
"version": "7.4.0-dev.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rimraf dist",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/polyfill": "7.12.1",
|
|
19
|
-
"@capacitor/core": "7.4.1",
|
|
20
19
|
"@capacitor/app": "7.0.1",
|
|
21
20
|
"@capacitor/clipboard": "7.0.1",
|
|
22
21
|
"@capacitor/haptics": "7.0.1",
|