@aslaluroba/help-center-react 3.0.15 → 3.0.17
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/index.css +1 -1
- package/dist/index.esm.js +39 -36
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +39 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/shared/Button/button.tsx +4 -4
- package/src/globals.css +21 -7
- package/src/ui/chatbot-popup/chat-window-screen/footer.tsx +1 -1
- package/src/ui/chatbot-popup/chat-window-screen/header.tsx +2 -2
- package/src/ui/chatbot-popup/chat-window-screen/index.tsx +1 -1
- package/src/ui/chatbot-popup/error-screen/index.tsx +1 -1
- package/src/ui/chatbot-popup/home-screen/card.tsx +2 -2
- package/src/ui/chatbot-popup/home-screen/chat-now-card.tsx +2 -2
- package/src/ui/chatbot-popup/home-screen/index.tsx +1 -1
- package/src/ui/chatbot-popup/loading-screen/index.tsx +1 -1
- package/src/ui/chatbot-popup/options-list-screen/expanded-option.tsx +1 -1
- package/src/ui/chatbot-popup/options-list-screen/header.tsx +1 -1
- package/src/ui/chatbot-popup/options-list-screen/index.tsx +1 -1
- package/src/ui/chatbot-popup/options-list-screen/option-card.tsx +2 -2
- package/src/ui/confirmation-modal/index.tsx +2 -2
- package/src/ui/help-popup.tsx +2 -2
- package/src/ui/powered-by.tsx +1 -1
- package/src/ui/review-dialog/index.tsx +9 -7
package/package.json
CHANGED
|
@@ -6,17 +6,17 @@ const buttonVariants = cva(
|
|
|
6
6
|
{
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
9
|
-
default: 'babylai-bg-primary-500 babylai-p-2 babylai-text-white babylai-text-xs babylai-font-semibold hover:babylai-bg-primary-600',
|
|
9
|
+
default: 'babylai-bg-primary-500 babylai-p-2 babylai-text-white babylai-text-xs babylai-font-semibold hover:babylai-bg-primary-600 babylai-border-none',
|
|
10
10
|
destructive:
|
|
11
11
|
'babylai-bg-destructive babylai-p-2 babylai-text-destructive-foreground babylai-shadow-sm hover:babylai-bg-destructive/90',
|
|
12
12
|
outline:
|
|
13
|
-
'babylai-border babylai-border-primary-500 babylai-bg-background-transparent hover:babylai-border-primary-600 hover:babylai-text-primary-600 babylai-text-primary-500 babylai-font-bold',
|
|
13
|
+
'babylai-bg-transparent babylai-border babylai-border-primary-500 babylai-bg-background-transparent hover:babylai-border-primary-600 hover:babylai-text-primary-600 babylai-text-primary-500 babylai-font-bold',
|
|
14
14
|
secondary:
|
|
15
15
|
'babylai-bg-secondary babylai-p-2 babylai-text-secondary-foreground babylai-shadow-sm babylai-hover:babylai-bg-secondary/80',
|
|
16
16
|
ghost:
|
|
17
17
|
'babylai-bg-transparent babylai-p-2 babylai-text-secondary-foreground babylai-shadow-sm hover:babylai-bg-secondary/80',
|
|
18
|
-
link: 'babylai-text-primary babylai-underline-offset-4 hover:babylai-underline',
|
|
19
|
-
'rounded-icon': '!babylai-p-2'
|
|
18
|
+
link: 'babylai-bg-transparent babylai-text-primary babylai-underline-offset-4 hover:babylai-underline babylai-border-none',
|
|
19
|
+
'rounded-icon': '!babylai-p-2 babylai-border-none babylai-bg-transparent'
|
|
20
20
|
},
|
|
21
21
|
size: {
|
|
22
22
|
default: 'babylai-h-9 babylai-px-4 babylai-py-2',
|
package/src/globals.css
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
:host {
|
|
7
7
|
--babylai-primary-color: #AD49E1;
|
|
8
8
|
--babylai-secondary-color: #F6ECFC;
|
|
9
|
+
--babylai-storm-dust: #3d3d3d;
|
|
10
|
+
--babylai-storm-dust-950: #262626;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
*,
|
|
@@ -22,9 +24,6 @@
|
|
|
22
24
|
--tw-gradient-via-position: ;
|
|
23
25
|
--tw-gradient-to-position: ;
|
|
24
26
|
box-sizing: border-box;
|
|
25
|
-
margin: 0;
|
|
26
|
-
padding: 0;
|
|
27
|
-
border: 0 solid;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
a {
|
|
@@ -44,10 +43,6 @@ img {
|
|
|
44
43
|
height: auto;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
button {
|
|
48
|
-
background-color: transparent;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
46
|
/* Floating-message styles */
|
|
52
47
|
@keyframes float {
|
|
53
48
|
|
|
@@ -59,4 +54,23 @@ button {
|
|
|
59
54
|
50% {
|
|
60
55
|
transform: translateY(-10px);
|
|
61
56
|
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.babylai-bg-linear-to-b {
|
|
60
|
+
background: var(--babylai-primary-color);
|
|
61
|
+
background: linear-gradient(180deg, var(--babylai-primary-color) 0%, color-mix(in srgb, var(--babylai-primary-color) 0%, transparent) 100%);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Dark mode via Tailwind .dark class */
|
|
65
|
+
.dark .babylai-bg-linear-to-b {
|
|
66
|
+
background: var(--babylai-storm-dust-950);
|
|
67
|
+
background: linear-gradient(180deg, var(--babylai-storm-dust-950) 0%, color-mix(in srgb, var(--babylai-storm-dust-950) 60%, transparent) 100%);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Dark mode via browser preference */
|
|
71
|
+
@media (prefers-color-scheme: dark) {
|
|
72
|
+
.babylai-bg-linear-to-b {
|
|
73
|
+
background: var(--babylai-storm-dust-950);
|
|
74
|
+
background: linear-gradient(180deg, var(--babylai-storm-dust-950) 0%, color-mix(in srgb, var(--babylai-storm-dust-950) 60%, transparent) 100%);
|
|
75
|
+
}
|
|
62
76
|
}
|
|
@@ -21,7 +21,7 @@ const ChatWindowFooter: React.FC<ChatWindowFooterProps> = (props) => {
|
|
|
21
21
|
onChange={(e) => props.setInputMessage(e.target.value)}
|
|
22
22
|
onKeyDown={props.handleKeyDown}
|
|
23
23
|
placeholder={t('homeSdk.placeholder')}
|
|
24
|
-
className='babylai-flex-1 babylai-py-2 babylai-px-4 babylai-bg-transparent babylai-outline-none babylai-text-sm dark:babylai-text-white'
|
|
24
|
+
className='babylai-flex-1 babylai-py-2 babylai-px-4 babylai-bg-transparent babylai-outline-none babylai-text-sm dark:babylai-text-white babylai-border-none'
|
|
25
25
|
/>
|
|
26
26
|
<Button
|
|
27
27
|
variant='default'
|
|
@@ -26,7 +26,7 @@ const ChatWindowHeader: React.FC<ChatWindowHeaderProps> = (props) => {
|
|
|
26
26
|
<Button
|
|
27
27
|
variant="rounded-icon"
|
|
28
28
|
size="icon"
|
|
29
|
-
className="babylai-bg-primary-100 dark
|
|
29
|
+
className="!babylai-bg-primary-100 dark:!babylai-bg-storm-dust-950"
|
|
30
30
|
onClick={props.handleBack}
|
|
31
31
|
>
|
|
32
32
|
<ArrowRight
|
|
@@ -37,7 +37,7 @@ const ChatWindowHeader: React.FC<ChatWindowHeaderProps> = (props) => {
|
|
|
37
37
|
<Button
|
|
38
38
|
variant="rounded-icon"
|
|
39
39
|
size="icon"
|
|
40
|
-
className="babylai-bg-primary-100 dark
|
|
40
|
+
className="!babylai-bg-primary-100 dark:!babylai-bg-storm-dust-950"
|
|
41
41
|
onClick={() => setShowMenu(!showMenu)}
|
|
42
42
|
>
|
|
43
43
|
<ThreeDots className="babylai-w-3.5 babylai-h-1 babylai-text-primary-500 dark:babylai-text-white" />
|
|
@@ -85,7 +85,7 @@ const TypingIndicator = React.memo(({ firstHumanAgentIndex }: { firstHumanAgentI
|
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
<div className='babylai-max-w-[80%] babylai-rounded-2xl babylai-p-4 babylai-bg-white dark:!babylai-bg-storm-dust-900'>
|
|
88
|
-
<p className='babylai-text-sm babylai-opacity-70 dark:babylai-text-white'>...</p>
|
|
88
|
+
<p className='babylai-text-sm babylai-opacity-70 dark:babylai-text-white babylai-m-0'>...</p>
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
91
91
|
);
|
|
@@ -9,7 +9,7 @@ interface ChatBotErrorScreenProps {
|
|
|
9
9
|
const ChatBotErrorScreen: React.FC<ChatBotErrorScreenProps> = (props) => {
|
|
10
10
|
return (
|
|
11
11
|
<div className="babylai-w-full babylai-h-full babylai-bg-black-white-50 babylai-rounded-3xl babylai-shadow-lg babylai-z-50 babylai-flex babylai-flex-col">
|
|
12
|
-
<div className="babylai-h-full babylai-rounded-3xl babylai-flex babylai-flex-col babylai-
|
|
12
|
+
<div className="babylai-h-full babylai-rounded-3xl babylai-flex babylai-flex-col babylai-py-6 md:babylai-py-8 babylai-px-6 babylai-gap-4 md:babylai-gap-8 babylai-bg-linear-to-b">
|
|
13
13
|
<Header onClose={props.onClose} logoUrl={props.logoUrl} />
|
|
14
14
|
<div className="babylai-flex babylai-flex-col babylai-items-center babylai-justify-center babylai-w-full babylai-h-full babylai-px-6 babylai-py-16 md:babylai-py-28">
|
|
15
15
|
<div className="babylai-text-white babylai-text-lg">Error: {props.error}</div>
|
|
@@ -13,13 +13,13 @@ const Card: React.FC<CardProps> = (props) => {
|
|
|
13
13
|
|
|
14
14
|
return (
|
|
15
15
|
<div className="babylai-flex babylai-items-center babylai-justify-between babylai-gap-4 babylai-bg-black-white-50 babylai-rounded-3xl babylai-p-6 dark:babylai-bg-storm-dust-900">
|
|
16
|
-
<p className="babylai-text-base md:babylai-text-lg babylai-font-medium babylai-text-black-white-800 dark:babylai-text-white">
|
|
16
|
+
<p className="babylai-text-base md:babylai-text-lg babylai-font-medium babylai-text-black-white-800 dark:babylai-text-white babylai-m-0">
|
|
17
17
|
{props.text}
|
|
18
18
|
</p>
|
|
19
19
|
<Button
|
|
20
20
|
variant="rounded-icon"
|
|
21
21
|
size="icon"
|
|
22
|
-
className="babylai-bg-primary-500 babylai-text-black-white-50 hover
|
|
22
|
+
className="!babylai-bg-primary-500 babylai-text-black-white-50 hover:!babylai-bg-primary-600 md:!babylai-w-10 md:!babylai-h-10"
|
|
23
23
|
onClick={() => props.handleClick()}
|
|
24
24
|
>
|
|
25
25
|
<ArrowRight
|
|
@@ -16,8 +16,8 @@ const ChatNowCard: React.FC<ChatNowCardProps> = (props) => {
|
|
|
16
16
|
<Logo className="babylai-w-12 babylai-h-12 babylai-text-primary-500" />
|
|
17
17
|
</div>
|
|
18
18
|
<div className="babylai-flex babylai-flex-col babylai-gap-0 babylai-text-base">
|
|
19
|
-
<p className="babylai-font-semibold babylai-text-black-white-500 dark:babylai-text-white">BabylAI</p>
|
|
20
|
-
<p className="babylai-font-semibold babylai-text-black-white-800 dark:babylai-text-white">
|
|
19
|
+
<p className="babylai-font-semibold babylai-text-black-white-500 dark:babylai-text-white babylai-m-0">BabylAI</p>
|
|
20
|
+
<p className="babylai-font-semibold babylai-text-black-white-800 dark:babylai-text-white babylai-m-0">
|
|
21
21
|
{t('homeSdk.welcomeMessage')}
|
|
22
22
|
</p>
|
|
23
23
|
</div>
|
|
@@ -24,7 +24,7 @@ const HomeScreen: React.FC<HomeScreenProps> = (props) => {
|
|
|
24
24
|
<div className="babylai-h-full babylai-flex babylai-flex-col babylai-overflow-y-auto babylai-py-6 md:babylai-py-8 babylai-px-6 babylai-gap-4 md:babylai-gap-8">
|
|
25
25
|
<Header onClose={props.onClose} logoUrl={props.logoUrl} />
|
|
26
26
|
|
|
27
|
-
<h1 className="babylai-text-2xl md:babylai-text-4xl babylai-font-bold babylai-text-white">
|
|
27
|
+
<h1 className="babylai-text-2xl md:babylai-text-4xl babylai-font-bold babylai-text-white babylai-m-0">
|
|
28
28
|
{t('homeSdk.chatTitle')}
|
|
29
29
|
<br />
|
|
30
30
|
BabylAI 🚀
|
|
@@ -15,7 +15,7 @@ const ChatBotLoadingScreen: React.FC<ChatBotLoadingScreenProps> = (props) => {
|
|
|
15
15
|
className={cn(
|
|
16
16
|
'babylai-rounded-3xl babylai-h-full babylai-flex babylai-flex-col babylai-py-6 md:babylai-py-8 babylai-px-6 babylai-gap-4 md:babylai-gap-8',
|
|
17
17
|
{
|
|
18
|
-
'babylai-bg-
|
|
18
|
+
'babylai-bg-linear-to-b': !props.isShowList,
|
|
19
19
|
'babylai-bg-black-white-100 dark:babylai-bg-storm-dust-950': props.isShowList
|
|
20
20
|
}
|
|
21
21
|
)}
|
|
@@ -14,7 +14,7 @@ const ExpandedOption: React.FC<ExpandedOptionProps> = ({ option, handleStartChat
|
|
|
14
14
|
<>
|
|
15
15
|
<CardContent className="babylai-transition-all babylai-duration-300 babylai-ease-in-out babylai-flex babylai-flex-col babylai-gap-1">
|
|
16
16
|
{option.paragraphs.map((paragraph, index) => (
|
|
17
|
-
<p key={index} className="babylai-font-semibold babylai-text-base babylai-text-black-white-800 dark:babylai-text-white">
|
|
17
|
+
<p key={index} className="babylai-font-semibold babylai-text-base babylai-text-black-white-800 dark:babylai-text-white babylai-m-0">
|
|
18
18
|
{paragraph}
|
|
19
19
|
</p>
|
|
20
20
|
))}
|
|
@@ -24,7 +24,7 @@ const OptionsListHeader: React.FC<OptionsListHeaderProps> = ({
|
|
|
24
24
|
<Button
|
|
25
25
|
variant="rounded-icon"
|
|
26
26
|
size="icon"
|
|
27
|
-
className="!babylai-w-12 !babylai-h-12
|
|
27
|
+
className="!babylai-w-12 !babylai-h-12 !babylai-bg-black-white-50 dark:!babylai-bg-storm-dust-900 babylai-relative babylai-z-10"
|
|
28
28
|
onClick={handleBack}
|
|
29
29
|
>
|
|
30
30
|
{showHelpScreen ? (
|
|
@@ -33,7 +33,7 @@ const OptionsListScreen: React.FC<OptionsListScreenProps> = ({
|
|
|
33
33
|
<div className='babylai-px-8 babylai-pb-12 babylai-pt-8 babylai-overflow-y-auto babylai-h-full'>
|
|
34
34
|
<OptionsListHeader handleBack={handleBack} showHelpScreen={showHelpScreen} />
|
|
35
35
|
|
|
36
|
-
<h1 className='babylai-text-4xl babylai-font-bold babylai-mb-4 babylai-text-black-white-800 dark:babylai-text-white'>
|
|
36
|
+
<h1 className='babylai-text-4xl babylai-font-bold babylai-mb-4 babylai-text-black-white-800 dark:babylai-text-white babylai-mt-0'>
|
|
37
37
|
{helpScreen?.title}
|
|
38
38
|
</h1>
|
|
39
39
|
|
|
@@ -12,13 +12,13 @@ const OptionCard: React.FC<OptionCardProps> = (props) => {
|
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<div className="babylai-flex babylai-items-center babylai-justify-between babylai-p-2">
|
|
15
|
-
<p className="babylai-text-sm babylai-font-medium babylai-text-black-white-800 dark:babylai-text-white">
|
|
15
|
+
<p className="babylai-text-sm babylai-font-medium babylai-text-black-white-800 dark:babylai-text-white babylai-m-0">
|
|
16
16
|
{props.title}
|
|
17
17
|
</p>
|
|
18
18
|
<Button
|
|
19
19
|
variant="rounded-icon"
|
|
20
20
|
size="icon"
|
|
21
|
-
className="babylai-text-primary-500 hover
|
|
21
|
+
className="babylai-text-primary-500 hover:!babylai-bg-primary-100"
|
|
22
22
|
>
|
|
23
23
|
<ArrowRight
|
|
24
24
|
className={`babylai-w-3 babylai-h-3 ${!isRTL ? "" : "babylai-rotate-180"} babylai-text-primary-500 dark:babylai-text-white`}
|
|
@@ -15,8 +15,8 @@ const ConfirmationModal = ({ title, message, onCancel, onConfirm }: Confirmation
|
|
|
15
15
|
<div className='babylai-absolute babylai-inset-0 babylai-z-50 babylai-flex babylai-items-center babylai-justify-center babylai-rounded-3xl babylai-overflow-hidden'>
|
|
16
16
|
<div className='babylai-absolute babylai-inset-0 babylai-bg-black/60' onClick={onCancel}></div>
|
|
17
17
|
<div className='babylai-bg-black-white-100 dark:babylai-bg-storm-dust-900 babylai-rounded-3xl babylai-p-4 babylai-w-[220px] babylai-z-50 babylai-shadow-lg'>
|
|
18
|
-
<h3 className='babylai-text-black-white-900 babylai-font-bold babylai-mb-2 babylai-text-center dark:babylai-text-white'>{title}</h3>
|
|
19
|
-
<p className='babylai-text-black-white-700 babylai-text-xs babylai-mb-4 dark:babylai-text-white'>{message}</p>
|
|
18
|
+
<h3 className='babylai-text-black-white-900 babylai-font-bold babylai-text-sm babylai-mb-2 babylai-text-center babylai-mt-0 dark:babylai-text-white'>{title}</h3>
|
|
19
|
+
<p className='babylai-text-black-white-700 babylai-text-xs babylai-mb-4 dark:babylai-text-white babylai-mt-0'>{message}</p>
|
|
20
20
|
<div className='babylai-flex babylai-justify-end babylai-gap-2 babylai-w-full'>
|
|
21
21
|
<Button
|
|
22
22
|
variant='default'
|
package/src/ui/help-popup.tsx
CHANGED
|
@@ -234,7 +234,7 @@ const HelpPopup = ({
|
|
|
234
234
|
<Button
|
|
235
235
|
variant='rounded-icon'
|
|
236
236
|
size='icon'
|
|
237
|
-
className='babylai-bg-primary-500 babylai-absolute babylai-bottom-4 babylai-right-3 babylai-z-20 !babylai-w-10 !babylai-h-10 babylai-p-2'
|
|
237
|
+
className='!babylai-bg-primary-500 babylai-absolute babylai-bottom-4 babylai-right-3 babylai-z-20 !babylai-w-10 !babylai-h-10 babylai-p-2'
|
|
238
238
|
onClick={handleShowActiveChat}
|
|
239
239
|
>
|
|
240
240
|
<ChatIcon className='babylai-w-5 babylai-h-5 babylai-text-black-white-50' />
|
|
@@ -286,7 +286,7 @@ md:babylai-bottom-[6rem] md:babylai-right-4 babylai-rounded-none md:babylai-roun
|
|
|
286
286
|
className={cn(
|
|
287
287
|
'babylai-h-full babylai-rounded-none md:babylai-rounded-3xl babylai-flex babylai-flex-col babylai-relative',
|
|
288
288
|
{
|
|
289
|
-
'babylai-bg-
|
|
289
|
+
'babylai-bg-linear-to-b': !isShowList,
|
|
290
290
|
'babylai-bg-black-white-100 dark:babylai-bg-storm-dust-950': isShowList,
|
|
291
291
|
}
|
|
292
292
|
)}
|
package/src/ui/powered-by.tsx
CHANGED
|
@@ -9,7 +9,7 @@ const PoweredBy: React.FC = () => {
|
|
|
9
9
|
href="https://www.babylai.net/"
|
|
10
10
|
target="_blank"
|
|
11
11
|
rel="noopener noreferrer"
|
|
12
|
-
className="babylai-text-xs babylai-opacity-60 hover:babylai-opacity-100">
|
|
12
|
+
className="babylai-text-xs babylai-opacity-60 hover:babylai-opacity-100 babylai-transition-all">
|
|
13
13
|
{t('homeSdk.poweredBy')} BabylAI © 2025
|
|
14
14
|
</a>
|
|
15
15
|
</section>
|
|
@@ -53,21 +53,23 @@ const ReviewDialog: React.FC<ReviewDialogProps> = (props) => {
|
|
|
53
53
|
|
|
54
54
|
return (
|
|
55
55
|
<section className="babylai-p-6 babylai-gap-6 babylai-max-w-sm babylai-max-h-[calc(100vh-90px)] babylai-overflow-auto babylai-w-full babylai-bg-black-white-50 dark:babylai-bg-storm-dust-950 babylai-fixed babylai-bottom-20 babylai-right-0 md:babylai-right-4 babylai-rounded-3xl babylai-shadow-lg babylai-z-50 babylai-flex babylai-flex-col">
|
|
56
|
-
<header className='babylai-border-b babylai-pb-4 babylai-flex babylai-items-center babylai-justify-between babylai-gap-4'>
|
|
57
|
-
<h2 className="babylai-text-lg babylai-font-semibold dark:babylai-text-white">{t('homeSdk.ReviewDialog.title')}</h2>
|
|
56
|
+
<header className='babylai-border-t-0 babylai-border-x-0 babylai-border-b babylai-border-solid babylai-border-gray-400 babylai-pb-4 babylai-flex babylai-items-center babylai-justify-between babylai-gap-4'>
|
|
57
|
+
<h2 className="babylai-text-lg babylai-font-semibold dark:babylai-text-white babylai-m-0">{t('homeSdk.ReviewDialog.title')}</h2>
|
|
58
58
|
<CloseCircle
|
|
59
59
|
className="babylai-w-6 babylai-h-6 babylai-cursor-pointer babylai-text-primary-500 dark:babylai-text-white"
|
|
60
60
|
onClick={props.onClose}
|
|
61
61
|
/>
|
|
62
62
|
</header>
|
|
63
63
|
<div className="babylai-flex babylai-flex-col babylai-gap-2">
|
|
64
|
-
<p className="babylai-text-sm babylai-
|
|
64
|
+
<p className="babylai-text-sm babylai-mb-3 babylai-mt-0 babylai-text-gray-600 dark:babylai-text-white">
|
|
65
65
|
{t('homeSdk.ReviewDialog.description')}
|
|
66
66
|
</p>
|
|
67
67
|
|
|
68
|
-
<div className="babylai-flex babylai-
|
|
69
|
-
<
|
|
70
|
-
|
|
68
|
+
<div className="babylai-flex babylai-flex-col babylai-gap-2">
|
|
69
|
+
<div className="babylai-flex babylai-items-center babylai-gap-2">
|
|
70
|
+
<span className="babylai-text-base babylai-font-medium dark:babylai-text-white">{t('homeSdk.ReviewDialog.rating_label')}</span>
|
|
71
|
+
<Rating value={rating} onChange={handleRatingChange} />
|
|
72
|
+
</div>
|
|
71
73
|
<span className={`babylai-text-sm babylai-text-red-500 babylai-transition-opacity babylai-duration-300 ${error.rating ? 'babylai-opacity-100' : 'babylai-opacity-0'}`}>
|
|
72
74
|
{error.rating}
|
|
73
75
|
</span>
|
|
@@ -77,7 +79,7 @@ const ReviewDialog: React.FC<ReviewDialogProps> = (props) => {
|
|
|
77
79
|
<label htmlFor='comment' className="babylai-text-base babylai-font-medium dark:babylai-text-white">{t('homeSdk.ReviewDialog.comment_label')}</label>
|
|
78
80
|
<textarea
|
|
79
81
|
id='comment'
|
|
80
|
-
className="babylai-bg-black-white-100 babylai-p-6 babylai-rounded-xl babylai-resize-none dark:babylai-bg-storm-dust-900 dark:babylai-text-white"
|
|
82
|
+
className="babylai-bg-black-white-100 babylai-p-6 babylai-rounded-xl babylai-resize-none babylai-border-none dark:babylai-bg-storm-dust-900 dark:babylai-text-white"
|
|
81
83
|
rows={4}
|
|
82
84
|
placeholder={t('homeSdk.ReviewDialog.comment_placeholder')}
|
|
83
85
|
value={comment}
|