@aslaluroba/help-center-react 3.2.8 → 3.2.9

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "dist/index.js",
4
4
  "module": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
- "version": "3.2.8",
6
+ "version": "3.2.9",
7
7
  "description": "BabylAI Help Center Widget for React and Next.js",
8
8
  "private": false,
9
9
  "exports": {
@@ -2,7 +2,7 @@ import { cn } from '../../../lib'
2
2
  import { cva, type VariantProps } from 'class-variance-authority'
3
3
 
4
4
  const buttonVariants = cva(
5
- 'babylai:border babylai:disabled:bg-black-white-300 babylai:cursor-pointer babylai:text-xl babylai:transition-all babylai:w-full babylai:disabled:border-black-white-300 babylai:disabled:cursor-not-allowed babylai:disabled:text-white babylai:duration-200 babylai:ease-out babylai:flex babylai:gap-1 babylai:items-center babylai:justify-center babylai:p-3 babylai:relative babylai:rounded-2xl',
5
+ 'babylai:border babylai:disabled:bg-black-white-300 babylai:cursor-pointer babylai:text-xl! babylai:transition-all babylai:w-full babylai:disabled:border-black-white-300 babylai:disabled:cursor-not-allowed babylai:disabled:text-white babylai:duration-200 babylai:ease-out babylai:flex babylai:gap-1 babylai:items-center babylai:justify-center babylai:p-3 babylai:relative babylai:rounded-2xl',
6
6
  {
7
7
  variants: {
8
8
  variant: {
@@ -34,7 +34,7 @@ const ChatWindowHeader: React.FC<ChatWindowHeaderProps> = ({
34
34
  />
35
35
  </div>
36
36
 
37
- <h2 className="babylai:text-lg babylai:font-semibold babylai:text-card-foreground">
37
+ <h2 className="babylai:text-lg! babylai:font-semibold! babylai:text-card-foreground">
38
38
  {optionTitle}
39
39
  </h2>
40
40
 
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { Option } from '@/lib/types';
3
3
  import HelpscreenOption from '@/ui/chatbot-popup/options-list-screen/helpscreen-option';
4
4
  import { useLocalTranslation } from '@/useLocalTranslation';
5
+ import { Button } from '@/components';
5
6
 
6
7
  interface HelpscreenListProps {
7
8
  options: Option[] | undefined;
@@ -31,13 +32,11 @@ const HelpscreenList: React.FC<HelpscreenListProps> = ({
31
32
  ))}
32
33
  </div>
33
34
  <div className="babylai:sticky babylai:bottom-0 babylai:z-10">
34
- <button
35
- className="babylai:bg-primary babylai:border babylai:border-primary babylai:cursor-pointer babylai:disabled:bg-black-white-300 babylai:disabled:border-black-white-300 babylai:disabled:cursor-not-allowed babylai:disabled:text-white babylai:duration-200 babylai:ease-out babylai:flex babylai:gap-1 babylai:items-center babylai:justify-center babylai:p-3 babylai:relative babylai:rounded-2xl babylai:text-white babylai:text-xl babylai:transition-all babylai:w-full"
35
+ <Button
36
+ variant='default'
36
37
  onClick={onStartChat}
37
38
  disabled={!selectedOption}
38
- >
39
- {t('homeSdk.chatNow')}
40
- </button>
39
+ >{t('homeSdk.chatNow')}</Button>
41
40
  </div>
42
41
  </section>
43
42
  );
@@ -57,7 +57,7 @@ const ReviewDialog: React.FC<ReviewDialogProps> = (props) => {
57
57
  <Rating value={rating} onChange={handleRatingChange} size='lg' />
58
58
  </section>
59
59
 
60
- <h2 className="babylai:text-2xl babylai:text-center babylai:font-bold babylai:mb-2! babylai:text-card-foreground">{t('homeSdk.ReviewDialog.title')}</h2>
60
+ <h2 className="babylai:text-2xl! babylai:text-center babylai:font-bold! babylai:mb-2! babylai:text-card-foreground">{t('homeSdk.ReviewDialog.title')}</h2>
61
61
 
62
62
  <p className="babylai:text-sm babylai:text-center babylai:text-muted-foreground babylai:mb-4">
63
63
  {t('homeSdk.ReviewDialog.description')}