@wakastellar/ui 2.3.4 → 2.4.0
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/dist/blocks/dashboard/index.d.ts +4 -1
- package/dist/blocks/empty-states/index.d.ts +4 -1
- package/dist/blocks/error-pages/index.d.ts +4 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/landing/index.d.ts +4 -1
- package/dist/blocks/pricing/index.d.ts +5 -1
- package/dist/blocks/sidebar/index.d.ts +5 -1
- package/dist/index.cjs.js +130 -130
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +7905 -7856
- package/dist/stories/Button.d.ts +14 -0
- package/dist/stories/Button.stories.d.ts +8 -0
- package/dist/stories/Header.d.ts +11 -0
- package/dist/stories/Header.stories.d.ts +6 -0
- package/dist/stories/Page.d.ts +2 -0
- package/dist/stories/Page.stories.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/link.d.ts +23 -0
- package/package.json +11 -3
- package/src/blocks/activity-timeline/ActivityTimeline.stories.tsx +460 -0
- package/src/blocks/apm-overview/APMOverview.stories.tsx +435 -0
- package/src/blocks/auth-2fa/Auth2FA.stories.tsx +308 -0
- package/src/blocks/calendar-view/CalendarView.stories.tsx +398 -0
- package/src/blocks/chat/Chat.stories.tsx +466 -0
- package/src/blocks/chat-interface/ChatInterface.stories.tsx +412 -0
- package/src/blocks/checkout-flow/CheckoutFlow.stories.tsx +408 -0
- package/src/blocks/cicd-builder/CICDBuilder.stories.tsx +499 -0
- package/src/blocks/cloud-cost-dashboard/CloudCostDashboard.stories.tsx +356 -0
- package/src/blocks/container-orchestrator/ContainerOrchestrator.stories.tsx +461 -0
- package/src/blocks/dashboard/Dashboard.stories.tsx +559 -0
- package/src/blocks/dashboard/index.tsx +68 -27
- package/src/blocks/dashboard-kpi/DashboardKPI.stories.tsx +422 -0
- package/src/blocks/database-admin/DatabaseAdmin.stories.tsx +393 -0
- package/src/blocks/deployment-dashboard/DeploymentDashboard.stories.tsx +457 -0
- package/src/blocks/empty-states/EmptyStates.stories.tsx +467 -0
- package/src/blocks/empty-states/index.tsx +26 -8
- package/src/blocks/error-pages/ErrorPages.stories.tsx +401 -0
- package/src/blocks/error-pages/index.tsx +26 -8
- package/src/blocks/faq/FAQ.stories.tsx +416 -0
- package/src/blocks/file-manager/FileManager.stories.tsx +413 -0
- package/src/blocks/footer/Footer.stories.tsx +328 -0
- package/src/blocks/gitops-sync-status/GitOpsSyncStatus.stories.tsx +529 -0
- package/src/blocks/header/WakaHeader.stories.tsx +455 -0
- package/src/blocks/headtab/Headtab.stories.tsx +369 -0
- package/src/blocks/i18n-editor/I18nEditor.stories.tsx +451 -0
- package/src/blocks/incident-manager/IncidentManager.stories.tsx +464 -0
- package/src/blocks/index.ts +1 -1
- package/src/blocks/infrastructure-map/InfrastructureMap.stories.tsx +533 -0
- package/src/blocks/kanban-board/KanbanBoard.stories.tsx +494 -0
- package/src/blocks/landing/WakaLanding.stories.tsx +449 -0
- package/src/blocks/landing/index.tsx +125 -66
- package/src/blocks/language-selector/LanguageSelector.stories.tsx +345 -0
- package/src/blocks/layout/Layout.stories.tsx +373 -0
- package/src/blocks/login/Login.stories.tsx +443 -0
- package/src/blocks/on-call-schedule/OnCallSchedule.stories.tsx +381 -0
- package/src/blocks/player-profile/PlayerProfile.stories.tsx +316 -0
- package/src/blocks/pricing/WakaPricing.stories.tsx +530 -0
- package/src/blocks/pricing/index.tsx +38 -4
- package/src/blocks/profile/Profile.stories.tsx +371 -0
- package/src/blocks/release-notes/ReleaseNotes.stories.tsx +431 -0
- package/src/blocks/settings/Settings.stories.tsx +520 -0
- package/src/blocks/sidebar/WakaSidebar.stories.tsx +513 -0
- package/src/blocks/sidebar/index.tsx +49 -20
- package/src/blocks/theme-creator-block/ThemeCreatorBlock.stories.tsx +370 -0
- package/src/blocks/user-management/UserManagement.stories.tsx +411 -0
- package/src/blocks/wizard/Wizard.stories.tsx +683 -0
- package/src/components/accordion/Accordion.stories.tsx +93 -0
- package/src/components/alert/Alert.stories.tsx +95 -0
- package/src/components/alert-dialog/AlertDialog.stories.tsx +126 -0
- package/src/components/aspect-ratio/AspectRatio.stories.tsx +118 -0
- package/src/components/avatar/Avatar.stories.tsx +104 -0
- package/src/components/button/Button.stories.tsx +12 -1
- package/src/components/calendar/Calendar.stories.tsx +102 -0
- package/src/components/card/Card.stories.tsx +125 -0
- package/src/components/checkbox/Checkbox.stories.tsx +100 -0
- package/src/components/code/Code.stories.tsx +402 -0
- package/src/components/collapsible/Collapsible.stories.tsx +123 -0
- package/src/components/command/Command.stories.tsx +207 -0
- package/src/components/context-menu/ContextMenu.stories.tsx +220 -0
- package/src/components/dialog/Dialog.stories.tsx +157 -0
- package/src/components/dropdown-menu/DropdownMenu.stories.tsx +225 -0
- package/src/components/form/Form.stories.tsx +413 -0
- package/src/components/hover-card/HoverCard.stories.tsx +148 -0
- package/src/components/input-otp/InputOTP.stories.tsx +255 -0
- package/src/components/label/Label.stories.tsx +68 -0
- package/src/components/menubar/Menubar.stories.tsx +278 -0
- package/src/components/navigation-menu/NavigationMenu.stories.tsx +202 -0
- package/src/components/popover/Popover.stories.tsx +199 -0
- package/src/components/progress/Progress.stories.tsx +104 -0
- package/src/components/radio-group/RadioGroup.stories.tsx +138 -0
- package/src/components/scroll-area/ScrollArea.stories.tsx +153 -0
- package/src/components/select/Select.stories.tsx +146 -0
- package/src/components/separator/Separator.stories.tsx +117 -0
- package/src/components/sheet/Sheet.stories.tsx +195 -0
- package/src/components/skeleton/Skeleton.stories.tsx +114 -0
- package/src/components/slider/Slider.stories.tsx +157 -0
- package/src/components/switch/Switch.stories.tsx +114 -0
- package/src/components/table/Table.stories.tsx +153 -0
- package/src/components/tabs/Tabs.stories.tsx +155 -0
- package/src/components/textarea/Textarea.stories.tsx +116 -0
- package/src/components/toast/Toast.stories.tsx +160 -0
- package/src/components/toggle/Toggle.stories.tsx +125 -0
- package/src/components/tooltip/Tooltip.stories.tsx +133 -0
- package/src/components/typography/Typography.stories.tsx +207 -0
- package/src/components/waka-3d-pie-chart/Waka3DPieChart.stories.tsx +308 -0
- package/src/components/waka-achievement-unlock/WakaAchievementUnlock.stories.tsx +353 -0
- package/src/components/waka-artifact-list/WakaArtifactList.stories.tsx +258 -0
- package/src/components/waka-autocomplete/WakaAutocomplete.stories.tsx +224 -0
- package/src/components/waka-badge-showcase/WakaBadgeShowcase.stories.tsx +269 -0
- package/src/components/waka-barcode/WakaBarcode.stories.tsx +227 -0
- package/src/components/waka-bottom-sheet/WakaBottomSheet.stories.tsx +408 -0
- package/src/components/waka-breadcrumb/WakaBreadcrumb.stories.tsx +237 -0
- package/src/components/waka-build-matrix/WakaBuildMatrix.stories.tsx +328 -0
- package/src/components/waka-carousel/WakaCarousel.stories.tsx +296 -0
- package/src/components/waka-charts/WakaCharts.stories.tsx +519 -0
- package/src/components/waka-color-picker/WakaColorPicker.stories.tsx +200 -0
- package/src/components/waka-combobox/WakaCombobox.stories.tsx +250 -0
- package/src/components/waka-container-list/WakaContainerList.stories.tsx +315 -0
- package/src/components/waka-contribution-graph/WakaContributionGraph.stories.tsx +354 -0
- package/src/components/waka-cost-breakdown/WakaCostBreakdown.stories.tsx +348 -0
- package/src/components/waka-daily-reward/WakaDailyReward.stories.tsx +365 -0
- package/src/components/waka-database-card/WakaDatabaseCard.stories.tsx +306 -0
- package/src/components/waka-date-range-picker/WakaDateRangePicker.stories.tsx +339 -0
- package/src/components/waka-datetime-picker/WakaDateTimePicker.stories.tsx +317 -0
- package/src/components/waka-deployment-lane/WakaDeploymentLane.stories.tsx +292 -0
- package/src/components/waka-dock/WakaDock.stories.tsx +332 -0
- package/src/components/waka-drawer/WakaDrawer.stories.tsx +437 -0
- package/src/components/waka-env-var-editor/WakaEnvVarEditor.stories.tsx +263 -0
- package/src/components/waka-error-shake/WakaErrorShake.stories.tsx +410 -0
- package/src/components/waka-file-upload/WakaFileUpload.stories.tsx +239 -0
- package/src/components/waka-flow-diagram/WakaFlowDiagram.stories.tsx +365 -0
- package/src/components/waka-funnel-chart/WakaFunnelChart.stories.tsx +281 -0
- package/src/components/waka-glow-card/WakaGlowCard.stories.tsx +274 -0
- package/src/components/waka-haptic-button/WakaHapticButton.stories.tsx +349 -0
- package/src/components/waka-health-pulse/WakaHealthPulse.stories.tsx +293 -0
- package/src/components/waka-heatmap/WakaHeatmap.stories.tsx +376 -0
- package/src/components/waka-image/WakaImage.stories.tsx +255 -0
- package/src/components/waka-incident-timeline/WakaIncidentTimeline.stories.tsx +300 -0
- package/src/components/waka-kanban/WakaKanban.stories.tsx +399 -0
- package/src/components/waka-kubernetes-overview/WakaKubernetesOverview.stories.tsx +281 -0
- package/src/components/waka-leaderboard/WakaLeaderboard.stories.tsx +300 -0
- package/src/components/waka-level-progress/WakaLevelProgress.stories.tsx +313 -0
- package/src/components/waka-loading-orbit/WakaLoadingOrbit.stories.tsx +413 -0
- package/src/components/waka-log-viewer/WakaLogViewer.stories.tsx +312 -0
- package/src/components/waka-loot-box/WakaLootBox.stories.tsx +374 -0
- package/src/components/waka-metric-sparkline/WakaMetricSparkline.stories.tsx +312 -0
- package/src/components/waka-migration-list/WakaMigrationList.stories.tsx +289 -0
- package/src/components/waka-modal/WakaModal.stories.tsx +434 -0
- package/src/components/waka-morph-button/WakaMorphButton.stories.tsx +405 -0
- package/src/components/waka-network-topology/WakaNetworkTopology.stories.tsx +364 -0
- package/src/components/waka-notifications/WakaNotifications.stories.tsx +290 -0
- package/src/components/waka-number-input/WakaNumberInput.stories.tsx +282 -0
- package/src/components/waka-pagination/WakaPagination.stories.tsx +328 -0
- package/src/components/waka-password-strength/WakaPasswordStrength.stories.tsx +318 -0
- package/src/components/waka-pipeline-view/WakaPipelineView.stories.tsx +386 -0
- package/src/components/waka-player-card/WakaPlayerCard.stories.tsx +333 -0
- package/src/components/waka-pod-card/WakaPodCard.stories.tsx +435 -0
- package/src/components/waka-qrcode/WakaQRCode.stories.tsx +232 -0
- package/src/components/waka-query-explain/WakaQueryExplain.stories.tsx +407 -0
- package/src/components/waka-quest-card/WakaQuestCard.stories.tsx +394 -0
- package/src/components/waka-quota-bar/WakaQuotaBar.stories.tsx +435 -0
- package/src/components/waka-radar-score/WakaRadarScore.stories.tsx +372 -0
- package/src/components/waka-resource-gauge/WakaResourceGauge.stories.tsx +366 -0
- package/src/components/waka-rich-text-editor/WakaRichTextEditor.stories.tsx +238 -0
- package/src/components/waka-sankey-diagram/WakaSankeyDiagram.stories.tsx +389 -0
- package/src/components/waka-scratch-card/WakaScratchCard.stories.tsx +388 -0
- package/src/components/waka-secret-card/WakaSecretCard.stories.tsx +314 -0
- package/src/components/waka-segmented-control/WakaSegmentedControl.stories.tsx +309 -0
- package/src/components/waka-server-rack/WakaServerRack.stories.tsx +382 -0
- package/src/components/waka-service-graph/WakaServiceGraph.stories.tsx +262 -0
- package/src/components/waka-skeleton-wave/WakaSkeletonWave.stories.tsx +321 -0
- package/src/components/waka-skill-tree/WakaSkillTree.stories.tsx +308 -0
- package/src/components/waka-spin-wheel/WakaSpinWheel.stories.tsx +368 -0
- package/src/components/waka-spinner/WakaSpinner.stories.tsx +156 -0
- package/src/components/waka-stat/WakaStat.stories.tsx +334 -0
- package/src/components/waka-status-matrix/WakaStatusMatrix.stories.tsx +331 -0
- package/src/components/waka-stepper/WakaStepper.stories.tsx +468 -0
- package/src/components/waka-streak-counter/WakaStreakCounter.stories.tsx +235 -0
- package/src/components/waka-success-explosion/WakaSuccessExplosion.stories.tsx +389 -0
- package/src/components/waka-tabs-morph/WakaTabsMorph.stories.tsx +471 -0
- package/src/components/waka-terminal-output/WakaTerminalOutput.stories.tsx +351 -0
- package/src/components/waka-test-report/WakaTestReport.stories.tsx +322 -0
- package/src/components/waka-tilt-card/WakaTiltCard.stories.tsx +300 -0
- package/src/components/waka-time-picker/WakaTimePicker.stories.tsx +227 -0
- package/src/components/waka-timeline/WakaTimeline.stories.tsx +383 -0
- package/src/components/waka-tournament-bracket/WakaTournamentBracket.stories.tsx +375 -0
- package/src/components/waka-trace-viewer/WakaTraceViewer.stories.tsx +445 -0
- package/src/components/waka-tree/WakaTree.stories.tsx +359 -0
- package/src/components/waka-treemap-chart/WakaTreemapChart.stories.tsx +378 -0
- package/src/components/waka-typewriter/WakaTypewriter.stories.tsx +366 -0
- package/src/components/waka-versus-card/WakaVersusCard.stories.tsx +530 -0
- package/src/components/waka-video/WakaVideo.stories.tsx +203 -0
- package/src/components/waka-virtual-list/WakaVirtualList.stories.tsx +273 -0
- package/src/components/waka-xp-bar/WakaXPBar.stories.tsx +305 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import { WakaCarousel } from './index'
|
|
3
|
+
import type { CarouselImage } from './index'
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof WakaCarousel> = {
|
|
6
|
+
title: 'Components/Display/WakaCarousel',
|
|
7
|
+
component: WakaCarousel,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'centered',
|
|
10
|
+
docs: {
|
|
11
|
+
description: {
|
|
12
|
+
component: 'A feature-rich image carousel with autoplay, thumbnails, transitions, and touch support.',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
tags: ['autodocs'],
|
|
17
|
+
argTypes: {
|
|
18
|
+
autoplay: {
|
|
19
|
+
control: 'boolean',
|
|
20
|
+
description: 'Enable autoplay',
|
|
21
|
+
},
|
|
22
|
+
transition: {
|
|
23
|
+
control: 'select',
|
|
24
|
+
options: ['fade', 'slide', 'zoom', 'flip'],
|
|
25
|
+
description: 'Transition effect',
|
|
26
|
+
},
|
|
27
|
+
aspectRatio: {
|
|
28
|
+
control: 'select',
|
|
29
|
+
options: ['16/9', '4/3', '1/1', '3/2', 'auto'],
|
|
30
|
+
description: 'Aspect ratio',
|
|
31
|
+
},
|
|
32
|
+
showIndicators: {
|
|
33
|
+
control: 'boolean',
|
|
34
|
+
description: 'Show dot indicators',
|
|
35
|
+
},
|
|
36
|
+
showNavigation: {
|
|
37
|
+
control: 'boolean',
|
|
38
|
+
description: 'Show navigation arrows',
|
|
39
|
+
},
|
|
40
|
+
showThumbnails: {
|
|
41
|
+
control: 'boolean',
|
|
42
|
+
description: 'Show thumbnails',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default meta
|
|
48
|
+
type Story = StoryObj<typeof WakaCarousel>
|
|
49
|
+
|
|
50
|
+
const sampleImages: CarouselImage[] = [
|
|
51
|
+
{
|
|
52
|
+
src: 'https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?w=800&q=80',
|
|
53
|
+
alt: 'Mountain landscape',
|
|
54
|
+
title: 'Mountain View',
|
|
55
|
+
description: 'Beautiful mountain landscape at sunset',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
src: 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&q=80',
|
|
59
|
+
alt: 'Lake reflection',
|
|
60
|
+
title: 'Serene Lake',
|
|
61
|
+
description: 'Calm lake with perfect reflections',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
src: 'https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=800&q=80',
|
|
65
|
+
alt: 'Forest path',
|
|
66
|
+
title: 'Forest Trail',
|
|
67
|
+
description: 'A peaceful path through the woods',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
src: 'https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=800&q=80',
|
|
71
|
+
alt: 'Beach sunset',
|
|
72
|
+
title: 'Golden Beach',
|
|
73
|
+
description: 'Stunning sunset over the ocean',
|
|
74
|
+
},
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
export const Default: Story = {
|
|
78
|
+
args: {
|
|
79
|
+
images: sampleImages,
|
|
80
|
+
className: 'w-[600px]',
|
|
81
|
+
},
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const WithAutoplay: Story = {
|
|
85
|
+
args: {
|
|
86
|
+
images: sampleImages,
|
|
87
|
+
autoplay: true,
|
|
88
|
+
autoplayInterval: 3000,
|
|
89
|
+
className: 'w-[600px]',
|
|
90
|
+
},
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const WithThumbnails: Story = {
|
|
94
|
+
args: {
|
|
95
|
+
images: sampleImages,
|
|
96
|
+
showThumbnails: true,
|
|
97
|
+
className: 'w-[600px]',
|
|
98
|
+
},
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export const WithProgress: Story = {
|
|
102
|
+
args: {
|
|
103
|
+
images: sampleImages,
|
|
104
|
+
autoplay: true,
|
|
105
|
+
showProgress: true,
|
|
106
|
+
className: 'w-[600px]',
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export const WithCounter: Story = {
|
|
111
|
+
args: {
|
|
112
|
+
images: sampleImages,
|
|
113
|
+
showCounter: true,
|
|
114
|
+
className: 'w-[600px]',
|
|
115
|
+
},
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export const FullFeatured: Story = {
|
|
119
|
+
args: {
|
|
120
|
+
images: sampleImages,
|
|
121
|
+
autoplay: true,
|
|
122
|
+
showThumbnails: true,
|
|
123
|
+
showCounter: true,
|
|
124
|
+
showProgress: true,
|
|
125
|
+
showFullscreen: true,
|
|
126
|
+
className: 'w-[700px]',
|
|
127
|
+
},
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const AspectRatios: Story = {
|
|
131
|
+
render: () => (
|
|
132
|
+
<div className="space-y-8">
|
|
133
|
+
<div>
|
|
134
|
+
<p className="text-sm text-muted-foreground mb-2">16:9</p>
|
|
135
|
+
<WakaCarousel
|
|
136
|
+
images={sampleImages}
|
|
137
|
+
aspectRatio="16/9"
|
|
138
|
+
className="w-[500px]"
|
|
139
|
+
/>
|
|
140
|
+
</div>
|
|
141
|
+
<div>
|
|
142
|
+
<p className="text-sm text-muted-foreground mb-2">4:3</p>
|
|
143
|
+
<WakaCarousel
|
|
144
|
+
images={sampleImages}
|
|
145
|
+
aspectRatio="4/3"
|
|
146
|
+
className="w-[500px]"
|
|
147
|
+
/>
|
|
148
|
+
</div>
|
|
149
|
+
<div>
|
|
150
|
+
<p className="text-sm text-muted-foreground mb-2">1:1 (Square)</p>
|
|
151
|
+
<WakaCarousel
|
|
152
|
+
images={sampleImages}
|
|
153
|
+
aspectRatio="1/1"
|
|
154
|
+
className="w-[400px]"
|
|
155
|
+
/>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
),
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export const IndicatorStyles: Story = {
|
|
162
|
+
render: () => (
|
|
163
|
+
<div className="space-y-8">
|
|
164
|
+
<div>
|
|
165
|
+
<p className="text-sm text-muted-foreground mb-2">Circle (Default)</p>
|
|
166
|
+
<WakaCarousel
|
|
167
|
+
images={sampleImages}
|
|
168
|
+
indicatorShape="circle"
|
|
169
|
+
className="w-[500px]"
|
|
170
|
+
/>
|
|
171
|
+
</div>
|
|
172
|
+
<div>
|
|
173
|
+
<p className="text-sm text-muted-foreground mb-2">Square</p>
|
|
174
|
+
<WakaCarousel
|
|
175
|
+
images={sampleImages}
|
|
176
|
+
indicatorShape="square"
|
|
177
|
+
className="w-[500px]"
|
|
178
|
+
/>
|
|
179
|
+
</div>
|
|
180
|
+
<div>
|
|
181
|
+
<p className="text-sm text-muted-foreground mb-2">Line</p>
|
|
182
|
+
<WakaCarousel
|
|
183
|
+
images={sampleImages}
|
|
184
|
+
indicatorShape="line"
|
|
185
|
+
className="w-[500px]"
|
|
186
|
+
/>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
),
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export const NavigationSizes: Story = {
|
|
193
|
+
render: () => (
|
|
194
|
+
<div className="space-y-8">
|
|
195
|
+
<div>
|
|
196
|
+
<p className="text-sm text-muted-foreground mb-2">Small Navigation</p>
|
|
197
|
+
<WakaCarousel
|
|
198
|
+
images={sampleImages}
|
|
199
|
+
navigationSize="small"
|
|
200
|
+
className="w-[500px]"
|
|
201
|
+
/>
|
|
202
|
+
</div>
|
|
203
|
+
<div>
|
|
204
|
+
<p className="text-sm text-muted-foreground mb-2">Large Navigation</p>
|
|
205
|
+
<WakaCarousel
|
|
206
|
+
images={sampleImages}
|
|
207
|
+
navigationSize="large"
|
|
208
|
+
className="w-[500px]"
|
|
209
|
+
/>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
),
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export const NoNavigation: Story = {
|
|
216
|
+
args: {
|
|
217
|
+
images: sampleImages,
|
|
218
|
+
showNavigation: false,
|
|
219
|
+
showIndicators: true,
|
|
220
|
+
className: 'w-[600px]',
|
|
221
|
+
},
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export const MinimalCarousel: Story = {
|
|
225
|
+
args: {
|
|
226
|
+
images: sampleImages,
|
|
227
|
+
showNavigation: false,
|
|
228
|
+
showIndicators: false,
|
|
229
|
+
autoplay: true,
|
|
230
|
+
className: 'w-[600px]',
|
|
231
|
+
},
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export const ProductCarousel: Story = {
|
|
235
|
+
render: () => {
|
|
236
|
+
const productImages: CarouselImage[] = [
|
|
237
|
+
{ src: 'https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=800&q=80', alt: 'Product front' },
|
|
238
|
+
{ src: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=800&q=80', alt: 'Product side' },
|
|
239
|
+
{ src: 'https://images.unsplash.com/photo-1572569511254-d8f925fe2cbb?w=800&q=80', alt: 'Product detail' },
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
return (
|
|
243
|
+
<div className="border rounded-lg p-4 w-[400px]">
|
|
244
|
+
<WakaCarousel
|
|
245
|
+
images={productImages}
|
|
246
|
+
aspectRatio="1/1"
|
|
247
|
+
showThumbnails
|
|
248
|
+
thumbnailSize="small"
|
|
249
|
+
showNavigation={false}
|
|
250
|
+
/>
|
|
251
|
+
<div className="mt-4">
|
|
252
|
+
<h3 className="font-semibold text-lg">Premium Watch</h3>
|
|
253
|
+
<p className="text-sm text-muted-foreground">Elegant timepiece with leather strap</p>
|
|
254
|
+
<p className="text-xl font-bold mt-2">$299.99</p>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
)
|
|
258
|
+
},
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export const GalleryWithCaptions: Story = {
|
|
262
|
+
render: () => {
|
|
263
|
+
const galleryImages: CarouselImage[] = [
|
|
264
|
+
{
|
|
265
|
+
src: 'https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?w=800&q=80',
|
|
266
|
+
alt: 'Mountain',
|
|
267
|
+
title: 'Swiss Alps',
|
|
268
|
+
description: 'Majestic mountain peaks covered in snow',
|
|
269
|
+
caption: 'Photo by John Doe',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
src: 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&q=80',
|
|
273
|
+
alt: 'Lake',
|
|
274
|
+
title: 'Mirror Lake',
|
|
275
|
+
description: 'Perfect reflections on a calm morning',
|
|
276
|
+
caption: 'Photo by Jane Smith',
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
src: 'https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=800&q=80',
|
|
280
|
+
alt: 'Forest',
|
|
281
|
+
title: 'Ancient Forest',
|
|
282
|
+
description: 'Sunlight filtering through the canopy',
|
|
283
|
+
caption: 'Photo by Mike Johnson',
|
|
284
|
+
},
|
|
285
|
+
]
|
|
286
|
+
|
|
287
|
+
return (
|
|
288
|
+
<WakaCarousel
|
|
289
|
+
images={galleryImages}
|
|
290
|
+
showFullscreen
|
|
291
|
+
showCounter
|
|
292
|
+
className="w-[700px]"
|
|
293
|
+
/>
|
|
294
|
+
)
|
|
295
|
+
},
|
|
296
|
+
}
|