Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,058 changes: 1,058 additions & 0 deletions apps/site/src/demos/ModalV2Demo.tsx

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion apps/site/src/demos/SidebarDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ import TextAreaV2Demo from './TextAreaV2Demo'
import SearchInputV2Demo from './SearchInputV2Demo'
import BadgeDemo from './BadgeDemo'
import ChatInputV2Demo from './ChatInputV2Demo'
import ModalV2Demo from './ModalV2Demo'

const SidebarDemo = () => {
const [activeComponent, setActiveComponent] = useState<
Expand Down Expand Up @@ -247,7 +248,8 @@ const SidebarDemo = () => {
| 'badge'
| 'searchInputV2'
| 'chatInputV2'
>('textInputV2')
| 'modalV2'
>('modalV2')

const [activeTenant, setActiveTenant] = useState<string>('Juspay')
const [activeMerchant, setActiveMerchant] =
Expand Down Expand Up @@ -508,6 +510,8 @@ const SidebarDemo = () => {
return <TooltipDemo />
case 'modal':
return <ModalDemo />
case 'modalV2':
return <ModalV2Demo />
case 'radio':
return <RadioDemo />
case 'radioV2':
Expand Down Expand Up @@ -1334,6 +1338,12 @@ const SidebarDemo = () => {
isSelected: activeComponent === 'modal',
onClick: () => setActiveComponent('modal'),
},
{
label: 'Modal V2',
leftSlot: <Box style={{ width: '16px', height: '16px' }} />,
isSelected: activeComponent === 'modalV2',
onClick: () => setActiveComponent('modalV2'),
},
{
label: 'Popover',
leftSlot: (
Expand Down
Loading
Loading