Skip to content

Commit c206933

Browse files
vinitkhandal71712-aryandkrai04Copilot
authored
Dev to staging (#512)
* feat: added stepper component with theme provider (#369) * feat: added stepper component with theme provider * feat: added horizontal and vertical stepper * feat: added vertical stepper * feat: added onClick and status changes for stepper * fix: replaced static values * feat: added the wrapping funcationality in key value pair component (#499) * feat: added the wrapping funcationality in key value pair component * Update packages/blend/lib/components/KeyValuePair/KeyValuePair.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/blend/lib/components/KeyValuePair/KeyValuePair.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore: fixed the copilot comments * chore: fixed the copilot comments * chore: fixed the tooltip visibility issue in wrap overflow's case * chore: removed console logs * feat: enhance KeyValuePair component with key wrapping behavior --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Vinit Khandal <vinit.khandal@juspay.in> * feat: enhance DataTable to handle empty values with hyphen display (#508) * feat: add Upload component and integrate with context and demo (#485) * feat: add Upload component and integrate with context and demo * feat: enhance Upload component with file validation and drag-and-drop support * fix: correct regex for file type validation in Upload component * feat: update Upload component to handle file status and errors * refactor: remove unused className prop from AccordionItem component * fix: update Upload component styles and improve file drop handling * fix: improve accessibility features in Upload component * feat: enhance Upload with file type consistency and help icon * feat: enhance file handling in Upload component with duplicate files * feat: add Upload component states with Default, Mixed, and FileListDisplay --------- Co-authored-by: 12-aryan <aryan.pidiha@juspay.in> Co-authored-by: dkrai04 <deepanshu.kumar@juspay.in> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2 parents ad29601 + 498f675 commit c206933

37 files changed

+6068
-200
lines changed

apps/site/src/demos/KeyValuePairDemo.tsx

Lines changed: 623 additions & 11 deletions
Large diffs are not rendered by default.

apps/site/src/demos/SidebarDemo.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
Shield,
3232
Settings,
3333
TrendingUp,
34+
Upload,
3435
} from 'lucide-react'
3536
import { FOUNDATION_THEME } from '../../../../packages/blend/lib/tokens'
3637
import { Sidebar } from '../../../../packages/blend/lib/components/Sidebar'
@@ -84,10 +85,12 @@ import {
8485
} from '../../../../packages/blend/lib/main'
8586
import Text from '../../../../packages/blend/lib/components/Text/Text'
8687
import Block from '../../../../packages/blend/lib/components/Primitives/Block/Block'
88+
import StepperDemo from './StepperDemo'
8789
import KeyValuePairDemo from './KeyValuePairDemo'
8890
import AllComponentsDemo from './AllComponentsDemo'
8991
import SearchInputDemo from './SearchInputDemo'
9092
import VirtualListDemo from './VirtualListDemo'
93+
import UploadDemo from './UploadDemo'
9194
import CodeBlockDemo from './CodeBlockDemo'
9295

9396
const SidebarDemo = () => {
@@ -137,11 +140,13 @@ const SidebarDemo = () => {
137140
| 'multiValueInput'
138141
| 'topbar'
139142
| 'otpInput'
143+
| 'stepper'
140144
| 'keyValuePair'
141145
| 'card'
142146
| 'dataRangePicker'
143147
| 'allComponents'
144148
| 'virtualList'
149+
| 'upload'
145150
| 'codeBlock'
146151
>('dataRangePicker')
147152

@@ -385,6 +390,8 @@ const SidebarDemo = () => {
385390
return <PopoverDemo />
386391
case 'multiValueInput':
387392
return <MultiValueInputDemo />
393+
case 'stepper':
394+
return <StepperDemo />
388395
case 'topbar':
389396
return <TopbarDemo />
390397
case 'keyValuePair':
@@ -395,6 +402,8 @@ const SidebarDemo = () => {
395402
return <AllComponentsDemo />
396403
case 'virtualList':
397404
return <VirtualListDemo />
405+
case 'upload':
406+
return <UploadDemo />
398407
case 'codeBlock':
399408
return <CodeBlockDemo />
400409
default:
@@ -513,6 +522,13 @@ const SidebarDemo = () => {
513522
isSelected: activeComponent === 'virtualList',
514523
onClick: () => setActiveComponent('virtualList'),
515524
},
525+
{
526+
label: 'File Upload',
527+
leftSlot: (
528+
<Upload style={{ width: '16px', height: '16px' }} />
529+
),
530+
onClick: () => setActiveComponent('upload'),
531+
},
516532
],
517533
},
518534
{
@@ -696,6 +712,13 @@ const SidebarDemo = () => {
696712
isSelected: activeComponent === 'accordion',
697713
onClick: () => setActiveComponent('accordion'),
698714
},
715+
{
716+
label: 'Stepper',
717+
leftSlot: (
718+
<List style={{ width: '16px', height: '16px' }} />
719+
),
720+
onClick: () => setActiveComponent('stepper'),
721+
},
699722
],
700723
},
701724
{

0 commit comments

Comments
 (0)