|
1 | 1 | 'use client'; |
| 2 | +import { Code } from '@primeicons/react/code'; |
| 3 | +import { Times } from '@primeicons/react/times'; |
2 | 4 | import { cn } from '@primeuix/utils'; |
3 | 5 | import React from 'react'; |
4 | 6 | import DocCopyButton from './doc-copy-button'; |
5 | 7 | import { DocDemoViewerProps } from './doc-demo-viewer'; |
6 | | -import { Code } from '@primeicons/react/code'; |
7 | | -import { Times } from '@primeicons/react/times'; |
8 | 8 |
|
9 | 9 | const COMPONENT_PATH_REGEX = /'@\/components\/ui\/[a-zA-Z0-9\-_/]+'/g; |
10 | 10 |
|
@@ -39,12 +39,12 @@ export default function DocDemoWrapper({ |
39 | 39 | : (highlightedCode as string); |
40 | 40 |
|
41 | 41 | return ( |
42 | | - <div className={cn('mb-16 mt-2 p-2 space-y-2 rounded-[14px] bg-surface-100 dark:bg-surface-800/75 shadow-[0_0_0_0.5px_rgba(0,0,0,0.2)] dark:shadow-[0_0_0_0.5px_rgba(255,255,255,0.2)]', className)} {...props}> |
| 42 | + <div className={cn('mb-16 mt-2 p-2.25 space-y-2.25 rounded-[14px] bg-surface-100 dark:bg-surface-800/60 shadow-[0_0_0_0.5px_rgba(0,0,0,0.2)] dark:shadow-[0_0_0_0.5px_rgba(255,255,255,0.2)]', className)} {...props}> |
43 | 43 | {component && ( |
44 | | - <div className="flex flex-col overflow-hidden bg-surface-0 dark:bg-surface-950 rounded-[8px] shadow-[0_0_0_0.5px_rgba(0,0,0,0.2)] dark:shadow-[0_0_0_0.5px_rgba(255,255,255,0.15)]"> |
| 44 | + <div className="flex flex-col overflow-hidden bg-(--code-figure-background) rounded-[8px] shadow-[0_0_0_0.5px_rgba(0,0,0,0.2)] dark:shadow-[0_0_0_0.5px_rgba(255,255,255,0.15)]"> |
45 | 45 | <div className="flex-1 pt-8 px-8 pb-5 md:pt-10 md:px-10 md:pb-7">{component}</div> |
46 | 46 | <div className="flex items-center gap-2 pl-2.5 pr-1.5 py-1.5"> |
47 | | - <span className="px-2 py-1.5 rounded-md bg-surface-100 dark:bg-surface-900 font-mono text-sm uppercase text-surface-400 dark:text-surface-500 whitespace-nowrap leading-3 tracking-tight">{demo}</span> |
| 47 | + <span className="px-2 py-1.5 rounded-md bg-surface-100 dark:bg-surface-800/75 font-mono text-sm uppercase text-surface-400 dark:text-surface-500 whitespace-nowrap leading-3 tracking-tight">{demo}</span> |
48 | 48 | <div className="flex items-center justify-end flex-1"> |
49 | 49 | <div className="flex items-center gap-px"> |
50 | 50 | {mode === 'compact' ? ( |
|
0 commit comments