Skip to content

Commit 8c0f8d1

Browse files
committed
updated the example
1 parent acb5bda commit 8c0f8d1

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

example/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function App() {
2525
accentColor: '#14B8A6', // Default teal accent
2626
ctaButtonColor: '#000000', // Default black for buttons
2727
ctaButtonTextColor: '#ffffff', // Default white for button text
28-
radius: 'large',
28+
borderRadius: 'large',
2929
size: 'full',
3030
position: 'bottom-right',
3131
title: 'TALK WITH AI',
@@ -70,7 +70,7 @@ function App() {
7070
`accent-color="${config.accentColor}"`,
7171
`cta-button-color="${config.ctaButtonColor}"`,
7272
`cta-button-text-color="${config.ctaButtonTextColor}"`,
73-
`radius="${config.radius}"`,
73+
`border-radius="${config.borderRadius}"`,
7474
`size="${config.size}"`,
7575
`position="${config.position}"`,
7676
`title="${config.title}"`,
@@ -189,7 +189,7 @@ function App() {
189189
accentColor={config.accentColor}
190190
ctaButtonColor={config.ctaButtonColor}
191191
ctaButtonTextColor={config.ctaButtonTextColor}
192-
radius={config.radius}
192+
borderRadius={config.borderRadius}
193193
size={config.size}
194194
title={config.title}
195195
startButtonText={config.startButtonText}

example/src/components/WidgetPreview.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const WidgetPreview: React.FC<WidgetPreviewProps> = ({ config }) => {
7373
accentColor={config.accentColor}
7474
ctaButtonColor={config.ctaButtonColor}
7575
ctaButtonTextColor={config.ctaButtonTextColor}
76-
radius={config.radius}
76+
borderRadius={config.borderRadius}
7777
size={config.size}
7878
title={config.title}
7979
ctaTitle={config.ctaTitle}
@@ -119,8 +119,10 @@ const WidgetPreview: React.FC<WidgetPreviewProps> = ({ config }) => {
119119
</span>
120120
</div>
121121
<div className="flex justify-between py-1">
122-
<span className="text-gray-600">Radius:</span>
123-
<span className="font-medium capitalize">{config.radius}</span>
122+
<span className="text-gray-600">Border Radius:</span>
123+
<span className="font-medium capitalize">
124+
{config.borderRadius}
125+
</span>
124126
</div>
125127
<div className="flex justify-between py-1">
126128
<span className="text-gray-600">Consent:</span>

example/src/components/builder/LayoutSection.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,28 @@ const LayoutSection: React.FC<LayoutSectionProps> = ({
4141
{/* Radius */}
4242
<div className="mb-6">
4343
<label className="block text-sm font-medium mb-3 text-gray-700">
44-
Radius
44+
Border Radius
4545
</label>
4646
<div className="flex gap-3">
4747
{(['none', 'small', 'medium', 'large'] as const).map((radius) => (
4848
<div
4949
key={radius}
5050
className={`flex-1 p-4 rounded-lg border cursor-pointer transition-all ${
51-
config.radius === radius
51+
config.borderRadius === radius
5252
? 'border-gray-700 bg-gray-50'
5353
: 'border-gray-300 hover:border-gray-400 bg-white'
5454
}`}
55-
onClick={() => updateConfig('radius', radius)}
55+
onClick={() => updateConfig('borderRadius', radius)}
5656
>
5757
<div className="flex items-center gap-3">
5858
<div
5959
className={`w-5 h-5 rounded-full border-2 flex items-center justify-center ${
60-
config.radius === radius
60+
config.borderRadius === radius
6161
? 'border-teal-500'
6262
: 'border-gray-400'
6363
}`}
6464
>
65-
{config.radius === radius && (
65+
{config.borderRadius === radius && (
6666
<div className="w-3 h-3 bg-teal-500 rounded-full"></div>
6767
)}
6868
</div>

example/src/components/builder/LegalConsentSection.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ const LegalConsentSection: React.FC<LegalConsentSectionProps> = ({
4848
Terms Content
4949
</label>
5050
<div className="border rounded-md p-3 border-gray-300 bg-white">
51-
<div className="flex items-center space-x-2 mb-3">
52-
<span className="text-sm font-medium text-gray-700">
53-
#### Terms and conditions
54-
</span>
55-
</div>
5651
<textarea
5752
id="terms-content"
5853
rows={3}

example/src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface WidgetConfig {
55
accentColor: string;
66
ctaButtonColor: string;
77
ctaButtonTextColor: string;
8-
radius: 'none' | 'small' | 'medium' | 'large';
8+
borderRadius: 'none' | 'small' | 'medium' | 'large';
99
size: 'tiny' | 'compact' | 'full';
1010
position:
1111
| 'bottom-right'

0 commit comments

Comments
 (0)