@wakastellar/ui 2.3.5 → 3.0.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/antivirus-dashboard/index.d.ts +44 -0
- package/dist/blocks/clamav-service-status/index.d.ts +35 -0
- package/dist/blocks/file-scan-uploader/index.d.ts +29 -0
- package/dist/blocks/index.d.ts +18 -9
- package/dist/blocks/quarantine-manager/index.d.ts +27 -0
- package/dist/blocks/scan-history-log/index.d.ts +28 -0
- package/dist/blocks/scan-policy-editor/index.d.ts +27 -0
- package/dist/blocks/scan-report-generator/index.d.ts +47 -0
- package/dist/blocks/signature-database-manager/index.d.ts +39 -0
- package/dist/blocks/threat-alert-banner/index.d.ts +26 -0
- package/dist/components/index.d.ts +4 -4
- package/dist/components/waka-signature-pad/index.d.ts +1 -1
- package/dist/exceljs.min-BcLLX0PC.js +29 -0
- package/dist/exceljs.min-KOayaaQ4.mjs +23013 -0
- package/dist/export.cjs.js +1 -1
- package/dist/export.d.ts +2 -2
- package/dist/export.es.js +1 -1
- package/dist/index.cjs.js +136 -136
- package/dist/index.es.js +29978 -27215
- 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/useDataTableImport-COVnvslz.js +9 -0
- package/dist/useDataTableImport-DAlxBY8w.mjs +237 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/logger.d.ts +9 -0
- package/package.json +14 -6
- package/src/blocks/activity-timeline/ActivityTimeline.stories.tsx +460 -0
- package/src/blocks/antivirus-dashboard/AntivirusDashboard.stories.tsx +291 -0
- package/src/blocks/antivirus-dashboard/index.tsx +525 -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/clamav-service-status/ClamAVServiceStatus.stories.tsx +195 -0
- package/src/blocks/clamav-service-status/index.tsx +370 -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-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/error-pages/ErrorPages.stories.tsx +401 -0
- package/src/blocks/faq/FAQ.stories.tsx +416 -0
- package/src/blocks/file-manager/FileManager.stories.tsx +413 -0
- package/src/blocks/file-scan-uploader/FileScanUploader.stories.tsx +257 -0
- package/src/blocks/file-scan-uploader/index.tsx +311 -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 +163 -11
- 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/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/profile/Profile.stories.tsx +371 -0
- package/src/blocks/quarantine-manager/QuarantineManager.stories.tsx +209 -0
- package/src/blocks/quarantine-manager/index.tsx +435 -0
- package/src/blocks/release-notes/ReleaseNotes.stories.tsx +431 -0
- package/src/blocks/scan-history-log/ScanHistoryLog.stories.tsx +231 -0
- package/src/blocks/scan-history-log/index.tsx +406 -0
- package/src/blocks/scan-policy-editor/ScanPolicyEditor.stories.tsx +106 -0
- package/src/blocks/scan-policy-editor/index.tsx +418 -0
- package/src/blocks/scan-report-generator/ScanReportGenerator.stories.tsx +232 -0
- package/src/blocks/scan-report-generator/index.tsx +612 -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 +2 -1
- package/src/blocks/signature-database-manager/SignatureDatabaseManager.stories.tsx +279 -0
- package/src/blocks/signature-database-manager/index.tsx +470 -0
- package/src/blocks/theme-creator-block/ThemeCreatorBlock.stories.tsx +370 -0
- package/src/blocks/theme-creator-block/index.tsx +16 -2
- package/src/blocks/threat-alert-banner/ThreatAlertBanner.stories.tsx +152 -0
- package/src/blocks/threat-alert-banner/index.tsx +320 -0
- package/src/blocks/user-management/UserManagement.stories.tsx +411 -0
- package/src/blocks/wizard/Wizard.stories.tsx +683 -0
- package/src/components/DataTable/DataTable.stories.tsx +203 -0
- package/src/components/DataTable/hooks/useDataTableExport.ts +38 -31
- package/src/components/DataTable/hooks/useDataTableImport.ts +31 -20
- 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/error-boundary/ErrorBoundary.stories.tsx +125 -0
- package/src/components/form/Form.stories.tsx +413 -0
- package/src/components/hover-card/HoverCard.stories.tsx +148 -0
- package/src/components/index.ts +45 -4
- package/src/components/input-otp/InputOTP.stories.tsx +255 -0
- package/src/components/label/Label.stories.tsx +68 -0
- package/src/components/language-selector/LanguageSelector.stories.tsx +112 -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/theme-selector/ThemeSelector.stories.tsx +77 -0
- package/src/components/toast/Toast.stories.tsx +160 -0
- package/src/components/toaster/Toaster.stories.tsx +67 -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-activity-feed/WakaActivityFeed.stories.tsx +116 -0
- package/src/components/waka-ad-banner/WakaAdBanner.stories.tsx +102 -0
- package/src/components/waka-ad-fallback/WakaAdFallback.stories.tsx +117 -0
- package/src/components/waka-ad-inline/WakaAdInline.stories.tsx +105 -0
- package/src/components/waka-ad-interstitial/WakaAdInterstitial.stories.tsx +92 -0
- package/src/components/waka-ad-placeholder/WakaAdPlaceholder.stories.tsx +89 -0
- package/src/components/waka-ad-provider/WakaAdProvider.stories.tsx +110 -0
- package/src/components/waka-ad-sidebar/WakaAdSidebar.stories.tsx +89 -0
- package/src/components/waka-ad-sidebar/index.tsx +3 -2
- package/src/components/waka-ad-sticky-footer/WakaAdStickyFooter.stories.tsx +88 -0
- package/src/components/waka-address-autocomplete/WakaAddressAutocomplete.stories.tsx +46 -0
- package/src/components/waka-admincrumb/WakaAdmincrumb.stories.tsx +166 -0
- package/src/components/waka-alert-panel/WakaAlertPanel.stories.tsx +45 -0
- package/src/components/waka-alert-stack/WakaAlertStack.stories.tsx +62 -0
- package/src/components/waka-allocation-matrix/WakaAllocationMatrix.stories.tsx +68 -0
- package/src/components/waka-approval-chain/WakaApprovalChain.stories.tsx +63 -0
- package/src/components/waka-artifact-list/WakaArtifactList.stories.tsx +258 -0
- package/src/components/waka-audit-log/WakaAuditLog.stories.tsx +73 -0
- package/src/components/waka-autocomplete/WakaAutocomplete.stories.tsx +184 -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-biometric-prompt/WakaBiometricPrompt.stories.tsx +48 -0
- package/src/components/waka-bottom-sheet/WakaBottomSheet.stories.tsx +408 -0
- package/src/components/waka-breadcrumb/WakaBreadcrumb.stories.tsx +120 -0
- package/src/components/waka-breadcrumb-path/WakaBreadcrumbPath.stories.tsx +40 -0
- package/src/components/waka-budget-burn/WakaBudgetBurn.stories.tsx +86 -0
- package/src/components/waka-build-matrix/WakaBuildMatrix.stories.tsx +328 -0
- package/src/components/waka-capacity-planner/WakaCapacityPlanner.stories.tsx +273 -0
- package/src/components/waka-carousel/WakaCarousel.stories.tsx +296 -0
- package/src/components/waka-cart-summary/WakaCartSummary.stories.tsx +176 -0
- package/src/components/waka-cart-summary/index.tsx +19 -10
- package/src/components/waka-challenge-timer/WakaChallengeTimer.stories.tsx +98 -0
- package/src/components/waka-charts/WakaCharts.stories.tsx +519 -0
- package/src/components/waka-chat-bubble/WakaChatBubble.stories.tsx +118 -0
- package/src/components/waka-checklist/WakaChecklist.stories.tsx +71 -0
- package/src/components/waka-checkout-stepper/WakaCheckoutStepper.stories.tsx +102 -0
- package/src/components/waka-cohort-table/WakaCohortTable.stories.tsx +56 -0
- package/src/components/waka-color-picker/WakaColorPicker.stories.tsx +144 -0
- package/src/components/waka-combo-counter/WakaComboCounter.stories.tsx +128 -0
- package/src/components/waka-combobox/WakaCombobox.stories.tsx +250 -0
- package/src/components/waka-command-bar/WakaCommandBar.stories.tsx +45 -0
- package/src/components/waka-compare-period/WakaComparePeriod.stories.tsx +76 -0
- package/src/components/waka-config-comparator/WakaConfigComparator.stories.tsx +143 -0
- package/src/components/waka-connection-matrix/WakaConnectionMatrix.stories.tsx +52 -0
- package/src/components/waka-container-list/WakaContainerList.stories.tsx +315 -0
- package/src/components/waka-content-recommendation/WakaContentRecommendation.stories.tsx +41 -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-coupon-input/WakaCouponInput.stories.tsx +126 -0
- package/src/components/waka-credit-card-input/WakaCreditCardInput.stories.tsx +120 -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-datetime-picker.form-integration/WakaDateTimePickerForm.stories.tsx +79 -0
- package/src/components/waka-dependency-tree/WakaDependencyTree.stories.tsx +72 -0
- package/src/components/waka-deployment-lane/WakaDeploymentLane.stories.tsx +292 -0
- package/src/components/waka-device-trust/WakaDeviceTrust.stories.tsx +109 -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-empty-state/WakaEmptyState.stories.tsx +87 -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-feature-announcement/WakaFeatureAnnouncement.stories.tsx +47 -0
- package/src/components/waka-feature-flag-row/WakaFeatureFlagRow.stories.tsx +188 -0
- package/src/components/waka-file-upload/WakaFileUpload.stories.tsx +183 -0
- package/src/components/waka-floating-nav/WakaFloatingNav.stories.tsx +53 -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-goal-progress/WakaGoalProgress.stories.tsx +137 -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-hotspot/WakaHotspot.stories.tsx +56 -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-invoice-preview/WakaInvoicePreview.stories.tsx +169 -0
- package/src/components/waka-kanban/WakaKanban.stories.tsx +399 -0
- package/src/components/waka-kpi-dashboard/WakaKpiDashboard.stories.tsx +46 -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 +332 -0
- package/src/components/waka-liquid-button/WakaLiquidButton.stories.tsx +45 -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-magic-link/WakaMagicLink.stories.tsx +61 -0
- package/src/components/waka-magnetic-button/WakaMagneticButton.stories.tsx +40 -0
- package/src/components/waka-mention-input/WakaMentionInput.stories.tsx +140 -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-milestone-road/WakaMilestoneRoad.stories.tsx +143 -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-orbital-menu/WakaOrbitalMenu.stories.tsx +54 -0
- package/src/components/waka-order-tracker/WakaOrderTracker.stories.tsx +163 -0
- package/src/components/waka-outstream-video/WakaOutstreamVideo.stories.tsx +94 -0
- package/src/components/waka-pagination/WakaPagination.stories.tsx +158 -0
- package/src/components/waka-password-strength/WakaPasswordStrength.stories.tsx +182 -0
- package/src/components/waka-payment-method-picker/WakaPaymentMethodPicker.stories.tsx +141 -0
- package/src/components/waka-permission-matrix/WakaPermissionMatrix.stories.tsx +124 -0
- package/src/components/waka-phone-input/WakaPhoneInput.stories.tsx +56 -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-points-popup/WakaPointsPopup.stories.tsx +96 -0
- package/src/components/waka-power-up/WakaPowerUp.stories.tsx +121 -0
- package/src/components/waka-presence-indicator/WakaPresenceIndicator.stories.tsx +49 -0
- package/src/components/waka-pricing-table/WakaPricingTable.stories.tsx +159 -0
- package/src/components/waka-product-card/WakaProductCard.stories.tsx +202 -0
- package/src/components/waka-progress-onboarding/WakaProgressOnboarding.stories.tsx +57 -0
- package/src/components/waka-pull-to-refresh/WakaPullToRefresh.stories.tsx +51 -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-rank-badge/WakaRankBadge.stories.tsx +108 -0
- package/src/components/waka-rating-input/WakaRatingInput.stories.tsx +51 -0
- package/src/components/waka-reaction-picker/WakaReactionPicker.stories.tsx +52 -0
- package/src/components/waka-region-map/WakaRegionMap.stories.tsx +181 -0
- package/src/components/waka-resource-gauge/WakaResourceGauge.stories.tsx +366 -0
- package/src/components/waka-resource-pool/WakaResourcePool.stories.tsx +70 -0
- package/src/components/waka-rich-text-editor/WakaRichTextEditor.stories.tsx +149 -0
- package/src/components/waka-rollback-slider/WakaRollbackSlider.stories.tsx +41 -0
- package/src/components/waka-sankey-diagram/WakaSankeyDiagram.stories.tsx +389 -0
- package/src/components/waka-schedule-picker/WakaSchedulePicker.stories.tsx +64 -0
- package/src/components/waka-scratch-card/WakaScratchCard.stories.tsx +388 -0
- package/src/components/waka-season-pass/WakaSeasonPass.stories.tsx +107 -0
- package/src/components/waka-secret-card/WakaSecretCard.stories.tsx +314 -0
- package/src/components/waka-security-scan-result/WakaSecurityScanResult.stories.tsx +146 -0
- package/src/components/waka-security-score/WakaSecurityScore.stories.tsx +63 -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-session-manager/WakaSessionManager.stories.tsx +68 -0
- package/src/components/waka-signature-pad/WakaSignaturePad.stories.tsx +159 -0
- package/src/components/waka-signature-pad/index.tsx +5 -3
- 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-sla-tracker/WakaSlaTracker.stories.tsx +65 -0
- package/src/components/waka-slider-range/WakaSliderRange.stories.tsx +66 -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-sponsored-badge/WakaSponsoredBadge.stories.tsx +60 -0
- package/src/components/waka-sponsored-card/WakaSponsoredCard.stories.tsx +64 -0
- package/src/components/waka-sponsored-feed/WakaSponsoredFeed.stories.tsx +58 -0
- package/src/components/waka-spotlight/WakaSpotlight.stories.tsx +53 -0
- package/src/components/waka-stat/WakaStat.stories.tsx +334 -0
- package/src/components/waka-stats-hexagon/WakaStatsHexagon.stories.tsx +161 -0
- package/src/components/waka-status-matrix/WakaStatusMatrix.stories.tsx +331 -0
- package/src/components/waka-stepper/WakaStepper.stories.tsx +195 -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-swipe-card/WakaSwipeCard.stories.tsx +51 -0
- package/src/components/waka-tabs-morph/WakaTabsMorph.stories.tsx +471 -0
- package/src/components/waka-tag-input/WakaTagInput.stories.tsx +224 -0
- package/src/components/waka-team-banner/WakaTeamBanner.stories.tsx +50 -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-theme-creator/WakaThemeCreator.stories.tsx +58 -0
- package/src/components/waka-theme-manager/WakaThemeManager.stories.tsx +298 -0
- package/src/components/waka-theme-manager/index.tsx +6 -11
- package/src/components/waka-thread-view/WakaThreadView.stories.tsx +143 -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 +230 -0
- package/src/components/waka-tooltip-tour/WakaTooltipTour.stories.tsx +92 -0
- package/src/components/waka-tour-guide/WakaTourGuide.stories.tsx +89 -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 +483 -0
- package/src/components/waka-treemap-chart/index.tsx +2 -2
- package/src/components/waka-two-factor-setup/WakaTwoFactorSetup.stories.tsx +142 -0
- package/src/components/waka-typewriter/WakaTypewriter.stories.tsx +366 -0
- package/src/components/waka-typing-indicator/WakaTypingIndicator.stories.tsx +134 -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-video-ad/WakaVideoAd.stories.tsx +138 -0
- package/src/components/waka-video-call/WakaVideoCall.stories.tsx +186 -0
- package/src/components/waka-video-overlay/WakaVideoOverlay.stories.tsx +100 -0
- package/src/components/waka-virtual-list/WakaVirtualList.stories.tsx +273 -0
- package/src/components/waka-voice-message/WakaVoiceMessage.stories.tsx +190 -0
- package/src/components/waka-welcome-modal/WakaWelcomeModal.stories.tsx +87 -0
- package/src/components/waka-xp-bar/WakaXPBar.stories.tsx +305 -0
- package/dist/useDataTableImport-D8R2HQl6.mjs +0 -229
- package/dist/useDataTableImport-S_hhA5Wo.js +0 -9
- package/src/components/DataTable/README.md +0 -446
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import { WakaBarChart } from './WakaBarChart'
|
|
3
|
+
import { WakaLineChart } from './WakaLineChart'
|
|
4
|
+
import { WakaAreaChart } from './WakaAreaChart'
|
|
5
|
+
import { WakaPieChart } from './WakaPieChart'
|
|
6
|
+
import { WakaSparkline } from './WakaSparkline'
|
|
7
|
+
import * as React from 'react'
|
|
8
|
+
|
|
9
|
+
// Sample data
|
|
10
|
+
const barData = [
|
|
11
|
+
{ name: 'Jan', value: 400, sales: 240, profit: 160 },
|
|
12
|
+
{ name: 'Feb', value: 300, sales: 139, profit: 221 },
|
|
13
|
+
{ name: 'Mar', value: 200, sales: 980, profit: 290 },
|
|
14
|
+
{ name: 'Apr', value: 278, sales: 390, profit: 200 },
|
|
15
|
+
{ name: 'May', value: 189, sales: 480, profit: 181 },
|
|
16
|
+
{ name: 'Jun', value: 239, sales: 380, profit: 250 },
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
const lineData = [
|
|
20
|
+
{ name: 'Mon', users: 4000, sessions: 2400, pageviews: 2400 },
|
|
21
|
+
{ name: 'Tue', users: 3000, sessions: 1398, pageviews: 2210 },
|
|
22
|
+
{ name: 'Wed', users: 2000, sessions: 9800, pageviews: 2290 },
|
|
23
|
+
{ name: 'Thu', users: 2780, sessions: 3908, pageviews: 2000 },
|
|
24
|
+
{ name: 'Fri', users: 1890, sessions: 4800, pageviews: 2181 },
|
|
25
|
+
{ name: 'Sat', users: 2390, sessions: 3800, pageviews: 2500 },
|
|
26
|
+
{ name: 'Sun', users: 3490, sessions: 4300, pageviews: 2100 },
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
const pieData = [
|
|
30
|
+
{ name: 'Chrome', value: 45 },
|
|
31
|
+
{ name: 'Firefox', value: 20 },
|
|
32
|
+
{ name: 'Safari', value: 15 },
|
|
33
|
+
{ name: 'Edge', value: 12 },
|
|
34
|
+
{ name: 'Other', value: 8 },
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
const sparklineData = [12, 19, 3, 5, 2, 3, 15, 20, 25, 18, 12, 8]
|
|
38
|
+
|
|
39
|
+
const meta: Meta = {
|
|
40
|
+
title: 'Components/Charts/WakaCharts',
|
|
41
|
+
parameters: {
|
|
42
|
+
layout: 'centered',
|
|
43
|
+
docs: {
|
|
44
|
+
description: {
|
|
45
|
+
component: 'A comprehensive charting library built on Recharts with Bar, Line, Area, Pie and Sparkline charts.',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
tags: ['autodocs'],
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default meta
|
|
53
|
+
|
|
54
|
+
// =============================================
|
|
55
|
+
// Bar Chart Stories
|
|
56
|
+
// =============================================
|
|
57
|
+
|
|
58
|
+
export const BarChartDefault: StoryObj = {
|
|
59
|
+
render: () => (
|
|
60
|
+
<div className="w-[600px]">
|
|
61
|
+
<WakaBarChart
|
|
62
|
+
data={barData}
|
|
63
|
+
dataKeys={['value']}
|
|
64
|
+
title="Monthly Revenue"
|
|
65
|
+
description="Revenue by month"
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
|
+
),
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const BarChartMultiSeries: StoryObj = {
|
|
72
|
+
render: () => (
|
|
73
|
+
<div className="w-[600px]">
|
|
74
|
+
<WakaBarChart
|
|
75
|
+
data={barData}
|
|
76
|
+
dataKeys={['sales', 'profit']}
|
|
77
|
+
title="Sales vs Profit"
|
|
78
|
+
legend
|
|
79
|
+
tooltip
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
82
|
+
),
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const BarChartStacked: StoryObj = {
|
|
86
|
+
render: () => (
|
|
87
|
+
<div className="w-[600px]">
|
|
88
|
+
<WakaBarChart
|
|
89
|
+
data={barData}
|
|
90
|
+
dataKeys={['sales', 'profit']}
|
|
91
|
+
stacked
|
|
92
|
+
title="Stacked Revenue"
|
|
93
|
+
legend
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
),
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const BarChartSizes: StoryObj = {
|
|
100
|
+
render: () => (
|
|
101
|
+
<div className="space-y-8">
|
|
102
|
+
<div className="w-[500px]">
|
|
103
|
+
<WakaBarChart data={barData} dataKeys={['value']} size="sm" title="Small" />
|
|
104
|
+
</div>
|
|
105
|
+
<div className="w-[500px]">
|
|
106
|
+
<WakaBarChart data={barData} dataKeys={['value']} size="md" title="Medium" />
|
|
107
|
+
</div>
|
|
108
|
+
<div className="w-[500px]">
|
|
109
|
+
<WakaBarChart data={barData} dataKeys={['value']} size="lg" title="Large" />
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
),
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// =============================================
|
|
116
|
+
// Line Chart Stories
|
|
117
|
+
// =============================================
|
|
118
|
+
|
|
119
|
+
export const LineChartDefault: StoryObj = {
|
|
120
|
+
render: () => (
|
|
121
|
+
<div className="w-[600px]">
|
|
122
|
+
<WakaLineChart
|
|
123
|
+
data={lineData}
|
|
124
|
+
dataKeys={['users']}
|
|
125
|
+
title="Weekly Users"
|
|
126
|
+
description="Active users over the week"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
),
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export const LineChartMultiSeries: StoryObj = {
|
|
133
|
+
render: () => (
|
|
134
|
+
<div className="w-[600px]">
|
|
135
|
+
<WakaLineChart
|
|
136
|
+
data={lineData}
|
|
137
|
+
dataKeys={['users', 'sessions', 'pageviews']}
|
|
138
|
+
title="Website Analytics"
|
|
139
|
+
legend
|
|
140
|
+
tooltip
|
|
141
|
+
/>
|
|
142
|
+
</div>
|
|
143
|
+
),
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export const LineChartCurves: StoryObj = {
|
|
147
|
+
render: () => (
|
|
148
|
+
<div className="space-y-8">
|
|
149
|
+
<div className="w-[500px]">
|
|
150
|
+
<WakaLineChart
|
|
151
|
+
data={lineData}
|
|
152
|
+
dataKeys={['users']}
|
|
153
|
+
curve="monotone"
|
|
154
|
+
title="Monotone (Smooth)"
|
|
155
|
+
/>
|
|
156
|
+
</div>
|
|
157
|
+
<div className="w-[500px]">
|
|
158
|
+
<WakaLineChart
|
|
159
|
+
data={lineData}
|
|
160
|
+
dataKeys={['users']}
|
|
161
|
+
curve="linear"
|
|
162
|
+
title="Linear"
|
|
163
|
+
/>
|
|
164
|
+
</div>
|
|
165
|
+
<div className="w-[500px]">
|
|
166
|
+
<WakaLineChart
|
|
167
|
+
data={lineData}
|
|
168
|
+
dataKeys={['users']}
|
|
169
|
+
curve="step"
|
|
170
|
+
title="Step"
|
|
171
|
+
/>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
),
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const LineChartDots: StoryObj = {
|
|
178
|
+
render: () => (
|
|
179
|
+
<div className="flex gap-8">
|
|
180
|
+
<div className="w-[400px]">
|
|
181
|
+
<WakaLineChart
|
|
182
|
+
data={lineData}
|
|
183
|
+
dataKeys={['users']}
|
|
184
|
+
dots
|
|
185
|
+
dotSize={4}
|
|
186
|
+
title="With Dots"
|
|
187
|
+
/>
|
|
188
|
+
</div>
|
|
189
|
+
<div className="w-[400px]">
|
|
190
|
+
<WakaLineChart
|
|
191
|
+
data={lineData}
|
|
192
|
+
dataKeys={['users']}
|
|
193
|
+
dots={false}
|
|
194
|
+
title="Without Dots"
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
),
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// =============================================
|
|
202
|
+
// Area Chart Stories
|
|
203
|
+
// =============================================
|
|
204
|
+
|
|
205
|
+
export const AreaChartDefault: StoryObj = {
|
|
206
|
+
render: () => (
|
|
207
|
+
<div className="w-[600px]">
|
|
208
|
+
<WakaAreaChart
|
|
209
|
+
data={lineData}
|
|
210
|
+
dataKeys={['users']}
|
|
211
|
+
title="Weekly Traffic"
|
|
212
|
+
description="User traffic with area fill"
|
|
213
|
+
/>
|
|
214
|
+
</div>
|
|
215
|
+
),
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export const AreaChartStacked: StoryObj = {
|
|
219
|
+
render: () => (
|
|
220
|
+
<div className="w-[600px]">
|
|
221
|
+
<WakaAreaChart
|
|
222
|
+
data={lineData}
|
|
223
|
+
dataKeys={['users', 'sessions']}
|
|
224
|
+
stacked
|
|
225
|
+
title="Stacked Area"
|
|
226
|
+
legend
|
|
227
|
+
/>
|
|
228
|
+
</div>
|
|
229
|
+
),
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export const AreaChartGradient: StoryObj = {
|
|
233
|
+
render: () => (
|
|
234
|
+
<div className="flex gap-8">
|
|
235
|
+
<div className="w-[400px]">
|
|
236
|
+
<WakaAreaChart
|
|
237
|
+
data={lineData}
|
|
238
|
+
dataKeys={['users']}
|
|
239
|
+
gradientDirection="vertical"
|
|
240
|
+
title="Vertical Gradient"
|
|
241
|
+
/>
|
|
242
|
+
</div>
|
|
243
|
+
<div className="w-[400px]">
|
|
244
|
+
<WakaAreaChart
|
|
245
|
+
data={lineData}
|
|
246
|
+
dataKeys={['users']}
|
|
247
|
+
gradientDirection="horizontal"
|
|
248
|
+
title="Horizontal Gradient"
|
|
249
|
+
/>
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
),
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export const AreaChartFillOpacity: StoryObj = {
|
|
256
|
+
render: () => (
|
|
257
|
+
<div className="space-y-8">
|
|
258
|
+
<div className="w-[500px]">
|
|
259
|
+
<WakaAreaChart
|
|
260
|
+
data={lineData}
|
|
261
|
+
dataKeys={['users']}
|
|
262
|
+
fillOpacity={0.1}
|
|
263
|
+
title="Light Fill (10%)"
|
|
264
|
+
/>
|
|
265
|
+
</div>
|
|
266
|
+
<div className="w-[500px]">
|
|
267
|
+
<WakaAreaChart
|
|
268
|
+
data={lineData}
|
|
269
|
+
dataKeys={['users']}
|
|
270
|
+
fillOpacity={0.5}
|
|
271
|
+
title="Medium Fill (50%)"
|
|
272
|
+
/>
|
|
273
|
+
</div>
|
|
274
|
+
<div className="w-[500px]">
|
|
275
|
+
<WakaAreaChart
|
|
276
|
+
data={lineData}
|
|
277
|
+
dataKeys={['users']}
|
|
278
|
+
fillOpacity={0.8}
|
|
279
|
+
title="Heavy Fill (80%)"
|
|
280
|
+
/>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
),
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// =============================================
|
|
287
|
+
// Pie Chart Stories
|
|
288
|
+
// =============================================
|
|
289
|
+
|
|
290
|
+
export const PieChartDefault: StoryObj = {
|
|
291
|
+
render: () => (
|
|
292
|
+
<div className="w-[400px]">
|
|
293
|
+
<WakaPieChart
|
|
294
|
+
data={pieData}
|
|
295
|
+
title="Browser Share"
|
|
296
|
+
description="Market share by browser"
|
|
297
|
+
/>
|
|
298
|
+
</div>
|
|
299
|
+
),
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export const PieChartDonut: StoryObj = {
|
|
303
|
+
render: () => (
|
|
304
|
+
<div className="flex gap-8">
|
|
305
|
+
<div className="w-[300px]">
|
|
306
|
+
<WakaPieChart data={pieData} innerRadius={0} title="Pie" />
|
|
307
|
+
</div>
|
|
308
|
+
<div className="w-[300px]">
|
|
309
|
+
<WakaPieChart data={pieData} innerRadius="50%" title="Donut" />
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
),
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export const PieChartLabels: StoryObj = {
|
|
316
|
+
render: () => (
|
|
317
|
+
<div className="space-y-8">
|
|
318
|
+
<div className="w-[400px]">
|
|
319
|
+
<WakaPieChart data={pieData} label="percent" title="With Percent Labels" />
|
|
320
|
+
</div>
|
|
321
|
+
<div className="w-[400px]">
|
|
322
|
+
<WakaPieChart data={pieData} label="value" title="With Value Labels" />
|
|
323
|
+
</div>
|
|
324
|
+
<div className="w-[400px]">
|
|
325
|
+
<WakaPieChart data={pieData} label="name" title="With Name Labels" />
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
),
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export const PieChartSizes: StoryObj = {
|
|
332
|
+
render: () => (
|
|
333
|
+
<div className="flex items-center gap-8">
|
|
334
|
+
<WakaPieChart data={pieData} size="sm" title="Small" />
|
|
335
|
+
<WakaPieChart data={pieData} size="md" title="Medium" />
|
|
336
|
+
<WakaPieChart data={pieData} size="lg" title="Large" />
|
|
337
|
+
</div>
|
|
338
|
+
),
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// =============================================
|
|
342
|
+
// Sparkline Stories
|
|
343
|
+
// =============================================
|
|
344
|
+
|
|
345
|
+
export const SparklineDefault: StoryObj = {
|
|
346
|
+
render: () => (
|
|
347
|
+
<div className="space-y-4">
|
|
348
|
+
<div className="flex items-center gap-4">
|
|
349
|
+
<span className="text-sm text-muted-foreground w-24">Line:</span>
|
|
350
|
+
<WakaSparkline data={sparklineData} type="line" />
|
|
351
|
+
</div>
|
|
352
|
+
<div className="flex items-center gap-4">
|
|
353
|
+
<span className="text-sm text-muted-foreground w-24">Area:</span>
|
|
354
|
+
<WakaSparkline data={sparklineData} type="area" />
|
|
355
|
+
</div>
|
|
356
|
+
<div className="flex items-center gap-4">
|
|
357
|
+
<span className="text-sm text-muted-foreground w-24">Bar:</span>
|
|
358
|
+
<WakaSparkline data={sparklineData} type="bar" />
|
|
359
|
+
</div>
|
|
360
|
+
</div>
|
|
361
|
+
),
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export const SparklineSizes: StoryObj = {
|
|
365
|
+
render: () => (
|
|
366
|
+
<div className="space-y-4">
|
|
367
|
+
<div className="flex items-center gap-4">
|
|
368
|
+
<WakaSparkline data={sparklineData} width={80} height={20} />
|
|
369
|
+
<span className="text-sm text-muted-foreground">80x20</span>
|
|
370
|
+
</div>
|
|
371
|
+
<div className="flex items-center gap-4">
|
|
372
|
+
<WakaSparkline data={sparklineData} width={120} height={30} />
|
|
373
|
+
<span className="text-sm text-muted-foreground">120x30</span>
|
|
374
|
+
</div>
|
|
375
|
+
<div className="flex items-center gap-4">
|
|
376
|
+
<WakaSparkline data={sparklineData} width={200} height={50} />
|
|
377
|
+
<span className="text-sm text-muted-foreground">200x50</span>
|
|
378
|
+
</div>
|
|
379
|
+
</div>
|
|
380
|
+
),
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export const SparklineColors: StoryObj = {
|
|
384
|
+
render: () => (
|
|
385
|
+
<div className="space-y-4">
|
|
386
|
+
<div className="flex items-center gap-4">
|
|
387
|
+
<WakaSparkline data={sparklineData} color="#22c55e" type="area" />
|
|
388
|
+
<span className="text-sm text-muted-foreground">Green</span>
|
|
389
|
+
</div>
|
|
390
|
+
<div className="flex items-center gap-4">
|
|
391
|
+
<WakaSparkline data={sparklineData} color="#3b82f6" type="area" />
|
|
392
|
+
<span className="text-sm text-muted-foreground">Blue</span>
|
|
393
|
+
</div>
|
|
394
|
+
<div className="flex items-center gap-4">
|
|
395
|
+
<WakaSparkline data={sparklineData} color="#ef4444" type="area" />
|
|
396
|
+
<span className="text-sm text-muted-foreground">Red</span>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
),
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export const SparklineWithMetrics: StoryObj = {
|
|
403
|
+
render: () => (
|
|
404
|
+
<div className="space-y-4">
|
|
405
|
+
<div className="flex items-center gap-4">
|
|
406
|
+
<WakaSparkline data={sparklineData} showValue />
|
|
407
|
+
<span className="text-sm text-muted-foreground">With value</span>
|
|
408
|
+
</div>
|
|
409
|
+
<div className="flex items-center gap-4">
|
|
410
|
+
<WakaSparkline data={sparklineData} showMinMax />
|
|
411
|
+
<span className="text-sm text-muted-foreground">With min/max</span>
|
|
412
|
+
</div>
|
|
413
|
+
<div className="flex items-center gap-4">
|
|
414
|
+
<WakaSparkline data={sparklineData} showValue showMinMax />
|
|
415
|
+
<span className="text-sm text-muted-foreground">Both</span>
|
|
416
|
+
</div>
|
|
417
|
+
</div>
|
|
418
|
+
),
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export const SparklineInTable: StoryObj = {
|
|
422
|
+
render: () => (
|
|
423
|
+
<table className="w-[500px] text-sm">
|
|
424
|
+
<thead>
|
|
425
|
+
<tr className="border-b">
|
|
426
|
+
<th className="text-left p-2">Metric</th>
|
|
427
|
+
<th className="text-left p-2">Trend</th>
|
|
428
|
+
<th className="text-right p-2">Value</th>
|
|
429
|
+
</tr>
|
|
430
|
+
</thead>
|
|
431
|
+
<tbody>
|
|
432
|
+
<tr className="border-b">
|
|
433
|
+
<td className="p-2">Users</td>
|
|
434
|
+
<td className="p-2">
|
|
435
|
+
<WakaSparkline data={[12, 19, 3, 5, 2, 3, 15, 20]} color="#22c55e" />
|
|
436
|
+
</td>
|
|
437
|
+
<td className="text-right p-2 font-medium">2,450</td>
|
|
438
|
+
</tr>
|
|
439
|
+
<tr className="border-b">
|
|
440
|
+
<td className="p-2">Revenue</td>
|
|
441
|
+
<td className="p-2">
|
|
442
|
+
<WakaSparkline data={[8, 12, 15, 14, 18, 22, 25, 28]} color="#3b82f6" />
|
|
443
|
+
</td>
|
|
444
|
+
<td className="text-right p-2 font-medium">$45.2k</td>
|
|
445
|
+
</tr>
|
|
446
|
+
<tr className="border-b">
|
|
447
|
+
<td className="p-2">Errors</td>
|
|
448
|
+
<td className="p-2">
|
|
449
|
+
<WakaSparkline data={[25, 20, 18, 15, 12, 8, 5, 3]} color="#ef4444" />
|
|
450
|
+
</td>
|
|
451
|
+
<td className="text-right p-2 font-medium">23</td>
|
|
452
|
+
</tr>
|
|
453
|
+
</tbody>
|
|
454
|
+
</table>
|
|
455
|
+
),
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// =============================================
|
|
459
|
+
// Combined / Dashboard Example
|
|
460
|
+
// =============================================
|
|
461
|
+
|
|
462
|
+
export const DashboardExample: StoryObj = {
|
|
463
|
+
render: () => (
|
|
464
|
+
<div className="w-[900px] space-y-8 p-6 border rounded-lg">
|
|
465
|
+
<h2 className="text-2xl font-bold">Analytics Dashboard</h2>
|
|
466
|
+
|
|
467
|
+
{/* KPI Row */}
|
|
468
|
+
<div className="grid grid-cols-4 gap-4">
|
|
469
|
+
{[
|
|
470
|
+
{ label: 'Users', value: '2,450', trend: [12, 19, 15, 25, 22, 30], color: '#22c55e' },
|
|
471
|
+
{ label: 'Revenue', value: '$45.2k', trend: [8, 12, 15, 14, 18, 22], color: '#3b82f6' },
|
|
472
|
+
{ label: 'Orders', value: '1,234', trend: [5, 8, 12, 10, 15, 18], color: '#8b5cf6' },
|
|
473
|
+
{ label: 'Conversion', value: '3.2%', trend: [2, 3, 2.5, 3.5, 4, 3.8], color: '#f59e0b' },
|
|
474
|
+
].map((kpi) => (
|
|
475
|
+
<div key={kpi.label} className="p-4 border rounded-lg">
|
|
476
|
+
<p className="text-sm text-muted-foreground">{kpi.label}</p>
|
|
477
|
+
<p className="text-2xl font-bold">{kpi.value}</p>
|
|
478
|
+
<WakaSparkline data={kpi.trend} color={kpi.color} type="area" width={120} height={30} />
|
|
479
|
+
</div>
|
|
480
|
+
))}
|
|
481
|
+
</div>
|
|
482
|
+
|
|
483
|
+
{/* Charts Row */}
|
|
484
|
+
<div className="grid grid-cols-2 gap-6">
|
|
485
|
+
<WakaAreaChart
|
|
486
|
+
data={lineData}
|
|
487
|
+
dataKeys={['users', 'sessions']}
|
|
488
|
+
title="Traffic Overview"
|
|
489
|
+
legend
|
|
490
|
+
size="md"
|
|
491
|
+
/>
|
|
492
|
+
<WakaBarChart
|
|
493
|
+
data={barData}
|
|
494
|
+
dataKeys={['sales', 'profit']}
|
|
495
|
+
title="Revenue Breakdown"
|
|
496
|
+
legend
|
|
497
|
+
size="md"
|
|
498
|
+
/>
|
|
499
|
+
</div>
|
|
500
|
+
|
|
501
|
+
{/* Bottom Row */}
|
|
502
|
+
<div className="grid grid-cols-3 gap-6">
|
|
503
|
+
<WakaPieChart
|
|
504
|
+
data={pieData}
|
|
505
|
+
title="Browser Distribution"
|
|
506
|
+
size="sm"
|
|
507
|
+
/>
|
|
508
|
+
<div className="col-span-2">
|
|
509
|
+
<WakaLineChart
|
|
510
|
+
data={lineData}
|
|
511
|
+
dataKeys={['pageviews']}
|
|
512
|
+
title="Page Views Trend"
|
|
513
|
+
size="sm"
|
|
514
|
+
/>
|
|
515
|
+
</div>
|
|
516
|
+
</div>
|
|
517
|
+
</div>
|
|
518
|
+
),
|
|
519
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import { WakaChatBubble } from "./index"
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof WakaChatBubble> = {
|
|
5
|
+
title: "Communication/WakaChatBubble",
|
|
6
|
+
component: WakaChatBubble,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: "centered",
|
|
9
|
+
},
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
argTypes: {
|
|
12
|
+
message: {
|
|
13
|
+
control: "text",
|
|
14
|
+
description: "Le contenu du message",
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
control: "select",
|
|
18
|
+
options: ["sent", "received"],
|
|
19
|
+
description: "Variante du bubble (envoyé/reçu)",
|
|
20
|
+
},
|
|
21
|
+
status: {
|
|
22
|
+
control: "select",
|
|
23
|
+
options: ["sending", "sent", "delivered", "read", "failed"],
|
|
24
|
+
description: "Statut du message",
|
|
25
|
+
},
|
|
26
|
+
timestamp: {
|
|
27
|
+
control: "date",
|
|
28
|
+
description: "Horodatage du message",
|
|
29
|
+
},
|
|
30
|
+
showAvatar: {
|
|
31
|
+
control: "boolean",
|
|
32
|
+
description: "Afficher l'avatar",
|
|
33
|
+
},
|
|
34
|
+
showStatus: {
|
|
35
|
+
control: "boolean",
|
|
36
|
+
description: "Afficher le statut",
|
|
37
|
+
},
|
|
38
|
+
showTimestamp: {
|
|
39
|
+
control: "boolean",
|
|
40
|
+
description: "Afficher l'horodatage",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default meta
|
|
46
|
+
type Story = StoryObj<typeof WakaChatBubble>
|
|
47
|
+
|
|
48
|
+
export const Default: Story = {
|
|
49
|
+
args: {
|
|
50
|
+
message: "Bonjour ! Comment ça va ?",
|
|
51
|
+
variant: "received",
|
|
52
|
+
status: "read",
|
|
53
|
+
timestamp: new Date(),
|
|
54
|
+
showAvatar: true,
|
|
55
|
+
showStatus: true,
|
|
56
|
+
showTimestamp: true,
|
|
57
|
+
sender: {
|
|
58
|
+
id: "1",
|
|
59
|
+
name: "Alice",
|
|
60
|
+
avatar: "https://i.pravatar.cc/150?u=alice",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
render: (args) => <WakaChatBubble {...args} />,
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export const Sent: Story = {
|
|
67
|
+
args: {
|
|
68
|
+
message: "Je vais bien, merci !",
|
|
69
|
+
variant: "sent",
|
|
70
|
+
status: "delivered",
|
|
71
|
+
timestamp: new Date(),
|
|
72
|
+
showStatus: true,
|
|
73
|
+
showTimestamp: true,
|
|
74
|
+
},
|
|
75
|
+
render: (args) => <WakaChatBubble {...args} />,
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const WithReactions: Story = {
|
|
79
|
+
args: {
|
|
80
|
+
message: "Super nouvelle ! 🎉",
|
|
81
|
+
variant: "received",
|
|
82
|
+
status: "read",
|
|
83
|
+
timestamp: new Date(),
|
|
84
|
+
reactions: [
|
|
85
|
+
{ emoji: "👍", count: 3, users: ["Alice", "Bob", "Charlie"], reacted: true },
|
|
86
|
+
{ emoji: "❤️", count: 2, users: ["David", "Eve"], reacted: false },
|
|
87
|
+
],
|
|
88
|
+
sender: {
|
|
89
|
+
id: "2",
|
|
90
|
+
name: "Bob",
|
|
91
|
+
avatar: "https://i.pravatar.cc/150?u=bob",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
render: (args) => <WakaChatBubble {...args} />,
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const Failed: Story = {
|
|
98
|
+
args: {
|
|
99
|
+
message: "Ce message a échoué",
|
|
100
|
+
variant: "sent",
|
|
101
|
+
status: "failed",
|
|
102
|
+
timestamp: new Date(),
|
|
103
|
+
showStatus: true,
|
|
104
|
+
},
|
|
105
|
+
render: (args) => <WakaChatBubble {...args} />,
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export const Sending: Story = {
|
|
109
|
+
args: {
|
|
110
|
+
message: "Envoi en cours...",
|
|
111
|
+
variant: "sent",
|
|
112
|
+
status: "sending",
|
|
113
|
+
timestamp: new Date(),
|
|
114
|
+
showStatus: true,
|
|
115
|
+
},
|
|
116
|
+
render: (args) => <WakaChatBubble {...args} />,
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import { WakaChecklist, type ChecklistTask } from "./index"
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof WakaChecklist> = {
|
|
5
|
+
title: "Admin/WakaChecklist",
|
|
6
|
+
component: WakaChecklist,
|
|
7
|
+
parameters: { layout: "centered" },
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
argTypes: {
|
|
10
|
+
showProgress: { control: "boolean", description: "Afficher la progression" },
|
|
11
|
+
showSkip: { control: "boolean", description: "Permettre de passer" },
|
|
12
|
+
collapsible: { control: "boolean", description: "Sections réductibles" },
|
|
13
|
+
celebrateOnComplete: { control: "boolean", description: "Animation de fin" },
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default meta
|
|
18
|
+
type Story = StoryObj<typeof WakaChecklist>
|
|
19
|
+
|
|
20
|
+
const tasks: ChecklistTask[] = [
|
|
21
|
+
{ id: "1", title: "Créer un compte", description: "Inscrivez-vous avec votre email", status: "completed" },
|
|
22
|
+
{ id: "2", title: "Configurer le profil", description: "Ajoutez votre photo et bio", status: "completed" },
|
|
23
|
+
{ id: "3", title: "Connecter un service", description: "Liez GitHub ou GitLab", status: "pending" },
|
|
24
|
+
{ id: "4", title: "Inviter des collaborateurs", description: "Ajoutez votre équipe", status: "pending" },
|
|
25
|
+
{ id: "5", title: "Créer le premier projet", description: "Démarrez votre aventure", status: "pending" },
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
export const Default: Story = {
|
|
29
|
+
args: { tasks, showProgress: true, showSkip: true },
|
|
30
|
+
render: (args) => (
|
|
31
|
+
<div style={{ width: 400 }}>
|
|
32
|
+
<WakaChecklist {...args} />
|
|
33
|
+
</div>
|
|
34
|
+
),
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const AllCompleted: Story = {
|
|
38
|
+
args: { tasks: tasks.map(t => ({ ...t, status: "completed" as const })), showProgress: true, celebrateOnComplete: true },
|
|
39
|
+
render: (args) => (
|
|
40
|
+
<div style={{ width: 400 }}>
|
|
41
|
+
<WakaChecklist {...args} />
|
|
42
|
+
</div>
|
|
43
|
+
),
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const WithSkipped: Story = {
|
|
47
|
+
args: {
|
|
48
|
+
tasks: [
|
|
49
|
+
{ ...tasks[0], status: "completed" as const },
|
|
50
|
+
{ ...tasks[1], status: "skipped" as const },
|
|
51
|
+
{ ...tasks[2], status: "pending" as const },
|
|
52
|
+
],
|
|
53
|
+
showProgress: true,
|
|
54
|
+
showSkip: true,
|
|
55
|
+
},
|
|
56
|
+
render: (args) => (
|
|
57
|
+
<div style={{ width: 400 }}>
|
|
58
|
+
<WakaChecklist {...args} />
|
|
59
|
+
</div>
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export const Compact: Story = {
|
|
64
|
+
args: { tasks: tasks.slice(0, 3), showProgress: false, showSkip: false },
|
|
65
|
+
render: (args) => (
|
|
66
|
+
<div style={{ width: 350 }}>
|
|
67
|
+
<WakaChecklist {...args} />
|
|
68
|
+
</div>
|
|
69
|
+
),
|
|
70
|
+
}
|
|
71
|
+
|