@wakastellar/ui 1.0.12 → 2.1.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/README.md +163 -193
- package/dist/charts.cjs.js +1 -0
- package/dist/charts.es.js +16 -0
- package/dist/cli/commands/add.d.ts +7 -0
- package/dist/cli/commands/init.d.ts +6 -0
- package/dist/cli/commands/list.d.ts +5 -0
- package/dist/cli/commands/search.d.ts +1 -0
- package/dist/cli/index.cjs +4844 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/utils/config.d.ts +29 -0
- package/dist/cli/utils/logger.d.ts +20 -0
- package/dist/cli/utils/registry.d.ts +23 -0
- package/dist/cn-B-fTneHh.js +1 -0
- package/dist/cn-DzRe1GWm.mjs +21 -0
- package/dist/components/index.d.ts +122 -0
- package/dist/components/waka-3d-pie-chart/index.d.ts +67 -0
- package/dist/components/waka-achievement-unlock/index.d.ts +83 -0
- package/dist/components/waka-activity-feed/index.d.ts +78 -0
- package/dist/components/waka-address-autocomplete/index.d.ts +124 -0
- package/dist/components/waka-alert-stack/index.d.ts +58 -0
- package/dist/components/waka-allocation-matrix/index.d.ts +193 -0
- package/dist/components/waka-approval-chain/index.d.ts +43 -0
- package/dist/components/waka-audit-log/index.d.ts +142 -0
- package/dist/components/waka-badge-showcase/index.d.ts +51 -0
- package/dist/components/waka-biometric-prompt/index.d.ts +84 -0
- package/dist/components/waka-bottom-sheet/index.d.ts +61 -0
- package/dist/components/waka-breadcrumb-path/index.d.ts +46 -0
- package/dist/components/waka-budget-burn/index.d.ts +154 -0
- package/dist/components/waka-capacity-planner/index.d.ts +132 -0
- package/dist/components/waka-cart-summary/index.d.ts +154 -0
- package/dist/components/waka-challenge-timer/index.d.ts +86 -0
- package/dist/components/waka-chat-bubble/index.d.ts +127 -0
- package/dist/components/waka-checklist/index.d.ts +123 -0
- package/dist/components/waka-checkout-stepper/index.d.ts +154 -0
- package/dist/components/waka-cohort-table/index.d.ts +130 -0
- package/dist/components/waka-combo-counter/index.d.ts +53 -0
- package/dist/components/waka-command-bar/index.d.ts +45 -0
- package/dist/components/waka-compare-period/index.d.ts +122 -0
- package/dist/components/waka-connection-matrix/index.d.ts +117 -0
- package/dist/components/waka-contribution-graph/index.d.ts +34 -0
- package/dist/components/waka-cost-breakdown/index.d.ts +50 -0
- package/dist/components/waka-coupon-input/index.d.ts +105 -0
- package/dist/components/waka-credit-card-input/index.d.ts +95 -0
- package/dist/components/waka-daily-reward/index.d.ts +76 -0
- package/dist/components/waka-deployment-lane/index.d.ts +43 -0
- package/dist/components/waka-device-trust/index.d.ts +95 -0
- package/dist/components/waka-dock/index.d.ts +44 -0
- package/dist/components/waka-empty-state/index.d.ts +85 -0
- package/dist/components/waka-error-shake/index.d.ts +49 -0
- package/dist/components/waka-feature-announcement/index.d.ts +112 -0
- package/dist/components/waka-floating-nav/index.d.ts +51 -0
- package/dist/components/waka-flow-diagram/index.d.ts +71 -0
- package/dist/components/waka-funnel-chart/index.d.ts +108 -0
- package/dist/components/waka-glow-card/index.d.ts +32 -0
- package/dist/components/waka-goal-progress/index.d.ts +139 -0
- package/dist/components/waka-haptic-button/index.d.ts +45 -0
- package/dist/components/waka-health-pulse/index.d.ts +28 -0
- package/dist/components/waka-heatmap/index.d.ts +135 -0
- package/dist/components/waka-hotspot/index.d.ts +106 -0
- package/dist/components/waka-incident-timeline/index.d.ts +38 -0
- package/dist/components/waka-invoice-preview/index.d.ts +137 -0
- package/dist/components/waka-kpi-dashboard/index.d.ts +80 -0
- package/dist/components/waka-leaderboard/index.d.ts +85 -0
- package/dist/components/waka-level-progress/index.d.ts +89 -0
- package/dist/components/waka-liquid-button/index.d.ts +41 -0
- package/dist/components/waka-loading-orbit/index.d.ts +90 -0
- package/dist/components/waka-loot-box/index.d.ts +87 -0
- package/dist/components/waka-magic-link/index.d.ts +34 -0
- package/dist/components/waka-magnetic-button/index.d.ts +56 -0
- package/dist/components/waka-mention-input/index.d.ts +106 -0
- package/dist/components/waka-metric-sparkline/index.d.ts +46 -0
- package/dist/components/waka-milestone-road/index.d.ts +91 -0
- package/dist/components/waka-morph-button/index.d.ts +62 -0
- package/dist/components/waka-network-topology/index.d.ts +35 -0
- package/dist/components/waka-orbital-menu/index.d.ts +61 -0
- package/dist/components/waka-order-tracker/index.d.ts +121 -0
- package/dist/components/waka-password-strength/index.d.ts +98 -0
- package/dist/components/waka-payment-method-picker/index.d.ts +88 -0
- package/dist/components/waka-permission-matrix/index.d.ts +197 -0
- package/dist/components/waka-phone-input/index.d.ts +93 -0
- package/dist/components/waka-pipeline-view/index.d.ts +49 -0
- package/dist/components/waka-player-card/index.d.ts +36 -0
- package/dist/components/waka-points-popup/index.d.ts +75 -0
- package/dist/components/waka-power-up/index.d.ts +103 -0
- package/dist/components/waka-presence-indicator/index.d.ts +188 -0
- package/dist/components/waka-pricing-table/index.d.ts +77 -0
- package/dist/components/waka-product-card/index.d.ts +81 -0
- package/dist/components/waka-progress-onboarding/index.d.ts +97 -0
- package/dist/components/waka-pull-to-refresh/index.d.ts +45 -0
- package/dist/components/waka-quest-card/index.d.ts +110 -0
- package/dist/components/waka-quota-bar/index.d.ts +100 -0
- package/dist/components/waka-radar-score/index.d.ts +95 -0
- package/dist/components/waka-rank-badge/index.d.ts +58 -0
- package/dist/components/waka-rating-input/index.d.ts +110 -0
- package/dist/components/waka-reaction-picker/index.d.ts +77 -0
- package/dist/components/waka-region-map/index.d.ts +27 -0
- package/dist/components/waka-resource-gauge/index.d.ts +78 -0
- package/dist/components/waka-resource-pool/index.d.ts +81 -0
- package/dist/components/waka-rollback-slider/index.d.ts +79 -0
- package/dist/components/waka-sankey-diagram/index.d.ts +120 -0
- package/dist/components/waka-schedule-picker/index.d.ts +100 -0
- package/dist/components/waka-scratch-card/index.d.ts +87 -0
- package/dist/components/waka-season-pass/index.d.ts +65 -0
- package/dist/components/waka-security-score/index.d.ts +124 -0
- package/dist/components/waka-server-rack/index.d.ts +44 -0
- package/dist/components/waka-session-manager/index.d.ts +116 -0
- package/dist/components/waka-signature-pad/index.d.ts +87 -0
- package/dist/components/waka-skeleton-wave/index.d.ts +79 -0
- package/dist/components/waka-skill-tree/index.d.ts +78 -0
- package/dist/components/waka-sla-tracker/index.d.ts +65 -0
- package/dist/components/waka-slider-range/index.d.ts +88 -0
- package/dist/components/waka-spin-wheel/index.d.ts +51 -0
- package/dist/components/waka-spotlight/index.d.ts +47 -0
- package/dist/components/waka-stats-hexagon/index.d.ts +149 -0
- package/dist/components/waka-status-matrix/index.d.ts +38 -0
- package/dist/components/waka-streak-counter/index.d.ts +27 -0
- package/dist/components/waka-success-explosion/index.d.ts +51 -0
- package/dist/components/waka-swipe-card/index.d.ts +64 -0
- package/dist/components/waka-tabs-morph/index.d.ts +66 -0
- package/dist/components/waka-tag-input/index.d.ts +134 -0
- package/dist/components/waka-team-banner/index.d.ts +122 -0
- package/dist/components/waka-terminal-output/index.d.ts +48 -0
- package/dist/components/waka-thread-view/index.d.ts +101 -0
- package/dist/components/waka-tilt-card/index.d.ts +36 -0
- package/dist/components/waka-tooltip-tour/index.d.ts +118 -0
- package/dist/components/waka-tour-guide/index.d.ts +122 -0
- package/dist/components/waka-tournament-bracket/index.d.ts +101 -0
- package/dist/components/waka-treemap-chart/index.d.ts +104 -0
- package/dist/components/waka-two-factor-setup/index.d.ts +93 -0
- package/dist/components/waka-typewriter/index.d.ts +98 -0
- package/dist/components/waka-typing-indicator/index.d.ts +64 -0
- package/dist/components/waka-versus-card/index.d.ts +117 -0
- package/dist/components/waka-video-call/index.d.ts +170 -0
- package/dist/components/waka-voice-message/index.d.ts +117 -0
- package/dist/components/waka-welcome-modal/index.d.ts +120 -0
- package/dist/components/waka-xp-bar/index.d.ts +54 -0
- package/dist/export.cjs.js +1 -0
- package/dist/export.d.ts +3 -1
- package/dist/export.es.js +5 -0
- package/dist/index-B9GTFkji.js +1 -0
- package/dist/index-c0jcWyEL.mjs +466 -0
- package/dist/index.cjs.js +2530 -22
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +72081 -19512
- package/dist/rich-text.cjs.js +1 -0
- package/dist/rich-text.es.js +4 -0
- package/dist/types-BOWIoR7j.mjs +1111 -0
- package/dist/types-D2yCJ91P.js +1 -0
- package/dist/useDataTableImport-D8R2HQl6.mjs +229 -0
- package/dist/useDataTableImport-S_hhA5Wo.js +9 -0
- package/package.json +70 -22
- package/src/blocks/activity-timeline/index.tsx +586 -0
- package/src/blocks/calendar-view/index.tsx +756 -0
- package/src/blocks/chat/index.tsx +1018 -0
- package/src/blocks/chat/widget.tsx +504 -0
- package/src/blocks/dashboard/index.tsx +522 -0
- package/src/blocks/empty-states/index.tsx +452 -0
- package/src/blocks/error-pages/index.tsx +426 -0
- package/src/blocks/faq/index.tsx +479 -0
- package/src/blocks/file-manager/index.tsx +890 -0
- package/src/blocks/footer/index.tsx +133 -0
- package/src/blocks/header/index.tsx +357 -0
- package/src/blocks/headtab/index.tsx +139 -0
- package/src/blocks/i18n-editor/index.tsx +1016 -0
- package/src/blocks/index.ts +80 -0
- package/src/blocks/kanban-board/index.tsx +779 -0
- package/src/blocks/landing/index.tsx +677 -0
- package/src/blocks/language-selector/index.tsx +88 -0
- package/src/blocks/layout/index.tsx +159 -0
- package/src/blocks/login/index.tsx +339 -0
- package/src/blocks/login/types.ts +131 -0
- package/src/blocks/pricing/index.tsx +564 -0
- package/src/blocks/profile/index.tsx +746 -0
- package/src/blocks/settings/index.tsx +558 -0
- package/src/blocks/sidebar/index.tsx +713 -0
- package/src/blocks/theme-creator-block/index.tsx +835 -0
- package/src/blocks/user-management/index.tsx +1037 -0
- package/src/blocks/wizard/index.tsx +719 -0
- package/src/components/DataTable/DataTable.tsx +406 -0
- package/src/components/DataTable/DataTableAdvanced.tsx +720 -0
- package/src/components/DataTable/DataTableBody.tsx +216 -0
- package/src/components/DataTable/DataTableCell.tsx +172 -0
- package/src/components/DataTable/DataTableColumnResizer.tsx +62 -0
- package/src/components/DataTable/DataTableConflictResolver.tsx +478 -0
- package/src/components/DataTable/DataTableContextMenu.tsx +219 -0
- package/src/components/DataTable/DataTableEditCell.tsx +279 -0
- package/src/components/DataTable/DataTableFilterBuilder.tsx +519 -0
- package/src/components/DataTable/DataTableFilters.tsx +535 -0
- package/src/components/DataTable/DataTableGrouping.tsx +147 -0
- package/src/components/DataTable/DataTableHeader.tsx +172 -0
- package/src/components/DataTable/DataTablePagination.tsx +125 -0
- package/src/components/DataTable/DataTableSelection.tsx +269 -0
- package/src/components/DataTable/DataTableSyncStatus.tsx +281 -0
- package/src/components/DataTable/DataTableToolbar.tsx +262 -0
- package/src/components/DataTable/README.md +446 -0
- package/src/components/DataTable/__tests__/DataTableAdvanced.test.tsx +426 -0
- package/src/components/DataTable/__tests__/DataTableEdit.test.tsx +329 -0
- package/src/components/DataTable/__tests__/useDataTableAdvanced.test.ts +455 -0
- package/src/components/DataTable/examples/EditExample.tsx +166 -0
- package/src/components/DataTable/formatters/index.ts +335 -0
- package/src/components/DataTable/hooks/__tests__/useDataTableEdit.test.ts +239 -0
- package/src/components/DataTable/hooks/useDataTable.ts +145 -0
- package/src/components/DataTable/hooks/useDataTableAdvanced.ts +342 -0
- package/src/components/DataTable/hooks/useDataTableAdvancedFilters.ts +637 -0
- package/src/components/DataTable/hooks/useDataTableColumnTemplates.ts +186 -0
- package/src/components/DataTable/hooks/useDataTableEdit.ts +167 -0
- package/src/components/DataTable/hooks/useDataTableExport.ts +227 -0
- package/src/components/DataTable/hooks/useDataTableImport.ts +216 -0
- package/src/components/DataTable/hooks/useDataTableOffline.ts +481 -0
- package/src/components/DataTable/hooks/useDataTableTheme.ts +213 -0
- package/src/components/DataTable/hooks/useDataTableVirtualization.ts +99 -0
- package/src/components/DataTable/hooks/useTableLayout.ts +85 -0
- package/src/components/DataTable/index.ts +81 -0
- package/src/components/DataTable/services/IndexedDBService.ts +504 -0
- package/src/components/DataTable/templates/index.tsx +803 -0
- package/src/components/DataTable/types.ts +504 -0
- package/src/components/DataTable/utils.ts +164 -0
- package/src/components/DataTable/workers/exportWorker.ts +213 -0
- package/src/components/accordion/index.tsx +61 -0
- package/src/components/alert/index.tsx +61 -0
- package/src/components/alert-dialog/index.tsx +146 -0
- package/src/components/aspect-ratio/index.tsx +12 -0
- package/src/components/avatar/index.tsx +54 -0
- package/src/components/badge/Badge.stories.tsx +64 -0
- package/src/components/badge/index.tsx +38 -0
- package/src/components/button/Button.stories.tsx +173 -0
- package/src/components/button/index.tsx +56 -0
- package/src/components/calendar/index.tsx +73 -0
- package/src/components/card/index.tsx +78 -0
- package/src/components/checkbox/index.tsx +34 -0
- package/src/components/code/index.tsx +229 -0
- package/src/components/collapsible/index.tsx +16 -0
- package/src/components/command/index.tsx +162 -0
- package/src/components/context-menu/index.tsx +204 -0
- package/src/components/dialog/index.tsx +126 -0
- package/src/components/dropdown-menu/index.tsx +204 -0
- package/src/components/error-boundary/ErrorBoundary.tsx +281 -0
- package/src/components/error-boundary/index.ts +7 -0
- package/src/components/form/index.tsx +183 -0
- package/src/components/hover-card/index.tsx +33 -0
- package/src/components/index.ts +368 -0
- package/src/components/input/Input.stories.tsx +100 -0
- package/src/components/input/index.tsx +27 -0
- package/src/components/input-otp/index.tsx +277 -0
- package/src/components/label/index.tsx +30 -0
- package/src/components/language-selector/index.tsx +341 -0
- package/src/components/menubar/index.tsx +240 -0
- package/src/components/navigation-menu/index.tsx +134 -0
- package/src/components/popover/index.tsx +35 -0
- package/src/components/progress/index.tsx +32 -0
- package/src/components/radio-group/index.tsx +48 -0
- package/src/components/scroll-area/index.tsx +52 -0
- package/src/components/select/index.tsx +164 -0
- package/src/components/separator/index.tsx +35 -0
- package/src/components/sheet/index.tsx +147 -0
- package/src/components/skeleton/index.tsx +22 -0
- package/src/components/slider/index.tsx +32 -0
- package/src/components/switch/index.tsx +33 -0
- package/src/components/table/index.tsx +117 -0
- package/src/components/tabs/index.tsx +59 -0
- package/src/components/textarea/index.tsx +30 -0
- package/src/components/theme-selector/index.tsx +327 -0
- package/src/components/toast/index.tsx +133 -0
- package/src/components/toaster/index.tsx +34 -0
- package/src/components/toggle/index.tsx +49 -0
- package/src/components/tooltip/index.tsx +34 -0
- package/src/components/typography/index.tsx +276 -0
- package/src/components/waka-3d-pie-chart/index.tsx +486 -0
- package/src/components/waka-achievement-unlock/index.tsx +716 -0
- package/src/components/waka-activity-feed/index.tsx +686 -0
- package/src/components/waka-address-autocomplete/index.tsx +1202 -0
- package/src/components/waka-admincrumb/index.tsx +349 -0
- package/src/components/waka-alert-stack/index.tsx +827 -0
- package/src/components/waka-allocation-matrix/index.tsx +1278 -0
- package/src/components/waka-approval-chain/index.tsx +766 -0
- package/src/components/waka-audit-log/index.tsx +1475 -0
- package/src/components/waka-autocomplete/index.tsx +358 -0
- package/src/components/waka-badge-showcase/index.tsx +704 -0
- package/src/components/waka-barcode/index.tsx +260 -0
- package/src/components/waka-biometric-prompt/index.tsx +765 -0
- package/src/components/waka-bottom-sheet/index.tsx +495 -0
- package/src/components/waka-breadcrumb/index.tsx +376 -0
- package/src/components/waka-breadcrumb-path/index.tsx +513 -0
- package/src/components/waka-budget-burn/index.tsx +1234 -0
- package/src/components/waka-capacity-planner/index.tsx +1107 -0
- package/src/components/waka-carousel/index.tsx +893 -0
- package/src/components/waka-cart-summary/index.tsx +1055 -0
- package/src/components/waka-challenge-timer/index.tsx +1044 -0
- package/src/components/waka-charts/WakaAreaChart.tsx +251 -0
- package/src/components/waka-charts/WakaBarChart.tsx +222 -0
- package/src/components/waka-charts/WakaChart.tsx +124 -0
- package/src/components/waka-charts/WakaLineChart.tsx +219 -0
- package/src/components/waka-charts/WakaMiniChart.tsx +133 -0
- package/src/components/waka-charts/WakaPieChart.tsx +214 -0
- package/src/components/waka-charts/WakaSparkline.tsx +229 -0
- package/src/components/waka-charts/dataTableHelpers.ts +109 -0
- package/src/components/waka-charts/hooks/useChartTheme.ts +123 -0
- package/src/components/waka-charts/hooks/useRechartsLoader.ts +234 -0
- package/src/components/waka-charts/index.ts +90 -0
- package/src/components/waka-charts/types.ts +330 -0
- package/src/components/waka-chat-bubble/index.tsx +1060 -0
- package/src/components/waka-checklist/index.tsx +1067 -0
- package/src/components/waka-checkout-stepper/index.tsx +976 -0
- package/src/components/waka-cohort-table/index.tsx +1011 -0
- package/src/components/waka-color-picker/index.tsx +447 -0
- package/src/components/waka-combo-counter/index.tsx +864 -0
- package/src/components/waka-combobox/index.tsx +497 -0
- package/src/components/waka-command-bar/index.tsx +403 -0
- package/src/components/waka-compare-period/index.tsx +1230 -0
- package/src/components/waka-connection-matrix/index.tsx +1053 -0
- package/src/components/waka-contribution-graph/index.tsx +552 -0
- package/src/components/waka-cost-breakdown/index.tsx +1065 -0
- package/src/components/waka-coupon-input/index.tsx +592 -0
- package/src/components/waka-credit-card-input/index.tsx +982 -0
- package/src/components/waka-daily-reward/index.tsx +762 -0
- package/src/components/waka-date-range-picker/index.tsx +378 -0
- package/src/components/waka-datetime-picker/index.tsx +793 -0
- package/src/components/waka-datetime-picker.form-integration/index.tsx +402 -0
- package/src/components/waka-deployment-lane/index.tsx +673 -0
- package/src/components/waka-device-trust/index.tsx +1259 -0
- package/src/components/waka-dock/index.tsx +285 -0
- package/src/components/waka-drawer/index.tsx +319 -0
- package/src/components/waka-empty-state/index.tsx +545 -0
- package/src/components/waka-error-shake/index.tsx +398 -0
- package/src/components/waka-feature-announcement/index.tsx +991 -0
- package/src/components/waka-file-upload/index.tsx +437 -0
- package/src/components/waka-floating-nav/index.tsx +413 -0
- package/src/components/waka-flow-diagram/index.tsx +508 -0
- package/src/components/waka-funnel-chart/index.tsx +823 -0
- package/src/components/waka-glow-card/index.tsx +246 -0
- package/src/components/waka-goal-progress/index.tsx +1025 -0
- package/src/components/waka-haptic-button/index.tsx +388 -0
- package/src/components/waka-health-pulse/index.tsx +451 -0
- package/src/components/waka-heatmap/index.tsx +1026 -0
- package/src/components/waka-hotspot/index.tsx +682 -0
- package/src/components/waka-image/index.tsx +373 -0
- package/src/components/waka-incident-timeline/index.tsx +686 -0
- package/src/components/waka-invoice-preview/index.tsx +829 -0
- package/src/components/waka-kanban/index.tsx +646 -0
- package/src/components/waka-kpi-dashboard/index.tsx +755 -0
- package/src/components/waka-leaderboard/index.tsx +746 -0
- package/src/components/waka-level-progress/index.tsx +665 -0
- package/src/components/waka-liquid-button/index.tsx +520 -0
- package/src/components/waka-loading-orbit/index.tsx +478 -0
- package/src/components/waka-loot-box/index.tsx +1091 -0
- package/src/components/waka-magic-link/index.tsx +321 -0
- package/src/components/waka-magnetic-button/index.tsx +567 -0
- package/src/components/waka-mention-input/index.tsx +953 -0
- package/src/components/waka-metric-sparkline/index.tsx +627 -0
- package/src/components/waka-milestone-road/index.tsx +1064 -0
- package/src/components/waka-modal/index.tsx +374 -0
- package/src/components/waka-morph-button/index.tsx +495 -0
- package/src/components/waka-network-topology/index.tsx +801 -0
- package/src/components/waka-notifications/index.tsx +414 -0
- package/src/components/waka-number-input/index.tsx +373 -0
- package/src/components/waka-orbital-menu/index.tsx +445 -0
- package/src/components/waka-order-tracker/index.tsx +1041 -0
- package/src/components/waka-pagination/index.tsx +393 -0
- package/src/components/waka-password-strength/index.tsx +824 -0
- package/src/components/waka-payment-method-picker/index.tsx +715 -0
- package/src/components/waka-permission-matrix/index.tsx +1302 -0
- package/src/components/waka-phone-input/index.tsx +801 -0
- package/src/components/waka-pipeline-view/index.tsx +604 -0
- package/src/components/waka-player-card/index.tsx +691 -0
- package/src/components/waka-points-popup/index.tsx +366 -0
- package/src/components/waka-power-up/index.tsx +1155 -0
- package/src/components/waka-presence-indicator/index.tsx +1181 -0
- package/src/components/waka-pricing-table/index.tsx +755 -0
- package/src/components/waka-product-card/index.tsx +786 -0
- package/src/components/waka-progress-onboarding/index.tsx +878 -0
- package/src/components/waka-pull-to-refresh/index.tsx +451 -0
- package/src/components/waka-qrcode/index.tsx +232 -0
- package/src/components/waka-quest-card/index.tsx +1275 -0
- package/src/components/waka-quota-bar/index.tsx +693 -0
- package/src/components/waka-radar-score/index.tsx +512 -0
- package/src/components/waka-rank-badge/index.tsx +813 -0
- package/src/components/waka-rating-input/index.tsx +560 -0
- package/src/components/waka-reaction-picker/index.tsx +1062 -0
- package/src/components/waka-region-map/index.tsx +730 -0
- package/src/components/waka-resource-gauge/index.tsx +654 -0
- package/src/components/waka-resource-pool/index.tsx +1035 -0
- package/src/components/waka-rich-text-editor/index.tsx +594 -0
- package/src/components/waka-rollback-slider/index.tsx +891 -0
- package/src/components/waka-sankey-diagram/index.tsx +1032 -0
- package/src/components/waka-schedule-picker/index.tsx +1060 -0
- package/src/components/waka-scratch-card/index.tsx +914 -0
- package/src/components/waka-season-pass/index.tsx +886 -0
- package/src/components/waka-security-score/index.tsx +1126 -0
- package/src/components/waka-segmented-control/index.tsx +238 -0
- package/src/components/waka-server-rack/index.tsx +764 -0
- package/src/components/waka-session-manager/index.tsx +815 -0
- package/src/components/waka-signature-pad/index.tsx +744 -0
- package/src/components/waka-skeleton-wave/index.tsx +454 -0
- package/src/components/waka-skill-tree/index.tsx +1031 -0
- package/src/components/waka-sla-tracker/index.tsx +798 -0
- package/src/components/waka-slider-range/index.tsx +765 -0
- package/src/components/waka-spin-wheel/index.tsx +671 -0
- package/src/components/waka-spinner/index.tsx +284 -0
- package/src/components/waka-spotlight/index.tsx +410 -0
- package/src/components/waka-stat/index.tsx +428 -0
- package/src/components/waka-stats-hexagon/index.tsx +824 -0
- package/src/components/waka-status-matrix/index.tsx +565 -0
- package/src/components/waka-stepper/index.tsx +489 -0
- package/src/components/waka-streak-counter/index.tsx +334 -0
- package/src/components/waka-success-explosion/index.tsx +453 -0
- package/src/components/waka-swipe-card/index.tsx +574 -0
- package/src/components/waka-tabs-morph/index.tsx +509 -0
- package/src/components/waka-tag-input/index.tsx +877 -0
- package/src/components/waka-team-banner/index.tsx +1183 -0
- package/src/components/waka-terminal-output/index.tsx +836 -0
- package/src/components/waka-theme-creator/index.tsx +762 -0
- package/src/components/waka-theme-manager/index.tsx +654 -0
- package/src/components/waka-thread-view/index.tsx +874 -0
- package/src/components/waka-tilt-card/index.tsx +250 -0
- package/src/components/waka-time-picker/index.tsx +479 -0
- package/src/components/waka-timeline/index.tsx +385 -0
- package/src/components/waka-tooltip-tour/index.tsx +855 -0
- package/src/components/waka-tour-guide/index.tsx +920 -0
- package/src/components/waka-tournament-bracket/index.tsx +1276 -0
- package/src/components/waka-tree/index.tsx +557 -0
- package/src/components/waka-treemap-chart/index.tsx +1031 -0
- package/src/components/waka-two-factor-setup/index.tsx +995 -0
- package/src/components/waka-typewriter/index.tsx +566 -0
- package/src/components/waka-typing-indicator/index.tsx +649 -0
- package/src/components/waka-versus-card/index.tsx +1026 -0
- package/src/components/waka-video/index.tsx +557 -0
- package/src/components/waka-video-call/index.tsx +1087 -0
- package/src/components/waka-virtual-list/index.tsx +327 -0
- package/src/components/waka-voice-message/index.tsx +1019 -0
- package/src/components/waka-welcome-modal/index.tsx +790 -0
- package/src/components/waka-xp-bar/index.tsx +799 -0
- package/src/styles/base.css +108 -0
- package/src/styles/code-highlight.css +82 -86
- package/src/styles/globals-v3.css +9 -0
- package/src/styles/globals.css +57 -74
- package/src/styles/tailwind.preset.js +69 -0
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import { cn } from "../../utils"
|
|
5
|
+
import { Input } from "../../components/input"
|
|
6
|
+
import { Badge } from "../../components/badge"
|
|
7
|
+
import {
|
|
8
|
+
Accordion,
|
|
9
|
+
AccordionContent,
|
|
10
|
+
AccordionItem,
|
|
11
|
+
AccordionTrigger,
|
|
12
|
+
} from "../../components/accordion"
|
|
13
|
+
import { Search, HelpCircle, MessageCircle } from "lucide-react"
|
|
14
|
+
|
|
15
|
+
// ============================================
|
|
16
|
+
// TYPES
|
|
17
|
+
// ============================================
|
|
18
|
+
|
|
19
|
+
export interface FAQItem {
|
|
20
|
+
id: string
|
|
21
|
+
question: string
|
|
22
|
+
answer: string | React.ReactNode
|
|
23
|
+
category?: string
|
|
24
|
+
tags?: string[]
|
|
25
|
+
helpful?: number
|
|
26
|
+
notHelpful?: number
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface FAQCategory {
|
|
30
|
+
id: string
|
|
31
|
+
name: string
|
|
32
|
+
icon?: React.ReactNode
|
|
33
|
+
description?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface WakaFAQProps {
|
|
37
|
+
/** Liste des questions/réponses */
|
|
38
|
+
items: FAQItem[]
|
|
39
|
+
/** Catégories */
|
|
40
|
+
categories?: FAQCategory[]
|
|
41
|
+
/** Titre */
|
|
42
|
+
title?: string
|
|
43
|
+
/** Description */
|
|
44
|
+
description?: string
|
|
45
|
+
/** Afficher la recherche */
|
|
46
|
+
showSearch?: boolean
|
|
47
|
+
/** Placeholder de recherche */
|
|
48
|
+
searchPlaceholder?: string
|
|
49
|
+
/** Afficher les catégories comme filtres */
|
|
50
|
+
showCategoryFilter?: boolean
|
|
51
|
+
/** Catégorie active */
|
|
52
|
+
activeCategory?: string
|
|
53
|
+
/** Callback changement de catégorie */
|
|
54
|
+
onCategoryChange?: (categoryId: string | null) => void
|
|
55
|
+
/** Permettre plusieurs accordéons ouverts */
|
|
56
|
+
allowMultiple?: boolean
|
|
57
|
+
/** Éléments ouverts par défaut */
|
|
58
|
+
defaultOpen?: string[]
|
|
59
|
+
/** Afficher le feedback (utile/pas utile) */
|
|
60
|
+
showFeedback?: boolean
|
|
61
|
+
/** Callback feedback */
|
|
62
|
+
onFeedback?: (itemId: string, helpful: boolean) => void
|
|
63
|
+
/** Layout */
|
|
64
|
+
layout?: "default" | "cards" | "grouped"
|
|
65
|
+
/** Taille */
|
|
66
|
+
size?: "sm" | "md" | "lg"
|
|
67
|
+
/** Classes CSS additionnelles */
|
|
68
|
+
className?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ============================================
|
|
72
|
+
// SUB-COMPONENTS
|
|
73
|
+
// ============================================
|
|
74
|
+
|
|
75
|
+
interface FAQSearchProps {
|
|
76
|
+
value: string
|
|
77
|
+
onChange: (value: string) => void
|
|
78
|
+
placeholder: string
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function FAQSearch({ value, onChange, placeholder }: FAQSearchProps) {
|
|
82
|
+
return (
|
|
83
|
+
<div className="relative">
|
|
84
|
+
<Search className="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" />
|
|
85
|
+
<Input
|
|
86
|
+
type="text"
|
|
87
|
+
placeholder={placeholder}
|
|
88
|
+
value={value}
|
|
89
|
+
onChange={(e) => onChange(e.target.value)}
|
|
90
|
+
className="pl-10"
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface FAQCategoryFilterProps {
|
|
97
|
+
categories: FAQCategory[]
|
|
98
|
+
activeCategory: string | null
|
|
99
|
+
onCategoryChange: (categoryId: string | null) => void
|
|
100
|
+
itemCounts: Record<string, number>
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function FAQCategoryFilter({
|
|
104
|
+
categories,
|
|
105
|
+
activeCategory,
|
|
106
|
+
onCategoryChange,
|
|
107
|
+
itemCounts,
|
|
108
|
+
}: FAQCategoryFilterProps) {
|
|
109
|
+
return (
|
|
110
|
+
<div className="flex flex-wrap gap-2">
|
|
111
|
+
<button
|
|
112
|
+
type="button"
|
|
113
|
+
onClick={() => onCategoryChange(null)}
|
|
114
|
+
className={cn(
|
|
115
|
+
"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-sm font-medium transition-colors",
|
|
116
|
+
activeCategory === null
|
|
117
|
+
? "bg-primary text-primary-foreground"
|
|
118
|
+
: "bg-muted hover:bg-muted/80"
|
|
119
|
+
)}
|
|
120
|
+
>
|
|
121
|
+
Tous
|
|
122
|
+
<Badge variant="secondary" className="ml-1">
|
|
123
|
+
{Object.values(itemCounts).reduce((a, b) => a + b, 0)}
|
|
124
|
+
</Badge>
|
|
125
|
+
</button>
|
|
126
|
+
{categories.map((category) => (
|
|
127
|
+
<button
|
|
128
|
+
key={category.id}
|
|
129
|
+
type="button"
|
|
130
|
+
onClick={() => onCategoryChange(category.id)}
|
|
131
|
+
className={cn(
|
|
132
|
+
"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-sm font-medium transition-colors",
|
|
133
|
+
activeCategory === category.id
|
|
134
|
+
? "bg-primary text-primary-foreground"
|
|
135
|
+
: "bg-muted hover:bg-muted/80"
|
|
136
|
+
)}
|
|
137
|
+
>
|
|
138
|
+
{category.icon}
|
|
139
|
+
{category.name}
|
|
140
|
+
<Badge variant="secondary" className="ml-1">
|
|
141
|
+
{itemCounts[category.id] || 0}
|
|
142
|
+
</Badge>
|
|
143
|
+
</button>
|
|
144
|
+
))}
|
|
145
|
+
</div>
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface FAQFeedbackProps {
|
|
150
|
+
itemId: string
|
|
151
|
+
helpful?: number
|
|
152
|
+
notHelpful?: number
|
|
153
|
+
onFeedback: (itemId: string, helpful: boolean) => void
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function FAQFeedback({ itemId, helpful = 0, notHelpful = 0, onFeedback }: FAQFeedbackProps) {
|
|
157
|
+
const [voted, setVoted] = React.useState<boolean | null>(null)
|
|
158
|
+
|
|
159
|
+
const handleVote = (isHelpful: boolean) => {
|
|
160
|
+
if (voted === null) {
|
|
161
|
+
setVoted(isHelpful)
|
|
162
|
+
onFeedback(itemId, isHelpful)
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return (
|
|
167
|
+
<div className="flex items-center gap-4 mt-4 pt-4 border-t">
|
|
168
|
+
<span className="text-sm text-muted-foreground">Cette réponse vous a-t-elle aidé ?</span>
|
|
169
|
+
<div className="flex gap-2">
|
|
170
|
+
<button
|
|
171
|
+
type="button"
|
|
172
|
+
onClick={() => handleVote(true)}
|
|
173
|
+
disabled={voted !== null}
|
|
174
|
+
className={cn(
|
|
175
|
+
"inline-flex items-center gap-1 px-2 py-1 text-sm rounded transition-colors",
|
|
176
|
+
voted === true
|
|
177
|
+
? "bg-green-100 text-green-700"
|
|
178
|
+
: voted === null
|
|
179
|
+
? "hover:bg-muted"
|
|
180
|
+
: "opacity-50"
|
|
181
|
+
)}
|
|
182
|
+
>
|
|
183
|
+
👍 {helpful + (voted === true ? 1 : 0)}
|
|
184
|
+
</button>
|
|
185
|
+
<button
|
|
186
|
+
type="button"
|
|
187
|
+
onClick={() => handleVote(false)}
|
|
188
|
+
disabled={voted !== null}
|
|
189
|
+
className={cn(
|
|
190
|
+
"inline-flex items-center gap-1 px-2 py-1 text-sm rounded transition-colors",
|
|
191
|
+
voted === false
|
|
192
|
+
? "bg-red-100 text-red-700"
|
|
193
|
+
: voted === null
|
|
194
|
+
? "hover:bg-muted"
|
|
195
|
+
: "opacity-50"
|
|
196
|
+
)}
|
|
197
|
+
>
|
|
198
|
+
👎 {notHelpful + (voted === false ? 1 : 0)}
|
|
199
|
+
</button>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// ============================================
|
|
206
|
+
// MAIN COMPONENT
|
|
207
|
+
// ============================================
|
|
208
|
+
|
|
209
|
+
export function WakaFAQ({
|
|
210
|
+
items,
|
|
211
|
+
categories = [],
|
|
212
|
+
title = "Questions fréquentes",
|
|
213
|
+
description,
|
|
214
|
+
showSearch = true,
|
|
215
|
+
searchPlaceholder = "Rechercher une question...",
|
|
216
|
+
showCategoryFilter = true,
|
|
217
|
+
activeCategory: externalActiveCategory,
|
|
218
|
+
onCategoryChange,
|
|
219
|
+
allowMultiple = false,
|
|
220
|
+
defaultOpen = [],
|
|
221
|
+
showFeedback = false,
|
|
222
|
+
onFeedback,
|
|
223
|
+
layout = "default",
|
|
224
|
+
size = "md",
|
|
225
|
+
className,
|
|
226
|
+
}: WakaFAQProps) {
|
|
227
|
+
const [searchQuery, setSearchQuery] = React.useState("")
|
|
228
|
+
const [internalActiveCategory, setInternalActiveCategory] = React.useState<string | null>(null)
|
|
229
|
+
|
|
230
|
+
const activeCategory = externalActiveCategory ?? internalActiveCategory
|
|
231
|
+
|
|
232
|
+
const handleCategoryChange = (categoryId: string | null) => {
|
|
233
|
+
if (onCategoryChange) {
|
|
234
|
+
onCategoryChange(categoryId)
|
|
235
|
+
} else {
|
|
236
|
+
setInternalActiveCategory(categoryId)
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Filter items
|
|
241
|
+
const filteredItems = React.useMemo(() => {
|
|
242
|
+
return items.filter((item) => {
|
|
243
|
+
// Search filter
|
|
244
|
+
if (searchQuery) {
|
|
245
|
+
const query = searchQuery.toLowerCase()
|
|
246
|
+
const matchesSearch =
|
|
247
|
+
item.question.toLowerCase().includes(query) ||
|
|
248
|
+
(typeof item.answer === "string" && item.answer.toLowerCase().includes(query)) ||
|
|
249
|
+
item.tags?.some((tag) => tag.toLowerCase().includes(query))
|
|
250
|
+
if (!matchesSearch) return false
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// Category filter
|
|
254
|
+
if (activeCategory && item.category !== activeCategory) {
|
|
255
|
+
return false
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
return true
|
|
259
|
+
})
|
|
260
|
+
}, [items, searchQuery, activeCategory])
|
|
261
|
+
|
|
262
|
+
// Count items per category
|
|
263
|
+
const itemCounts = React.useMemo(() => {
|
|
264
|
+
const counts: Record<string, number> = {}
|
|
265
|
+
items.forEach((item) => {
|
|
266
|
+
if (item.category) {
|
|
267
|
+
counts[item.category] = (counts[item.category] || 0) + 1
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
return counts
|
|
271
|
+
}, [items])
|
|
272
|
+
|
|
273
|
+
// Group items by category for grouped layout
|
|
274
|
+
const groupedItems = React.useMemo(() => {
|
|
275
|
+
if (layout !== "grouped") return null
|
|
276
|
+
|
|
277
|
+
const groups: Record<string, FAQItem[]> = {}
|
|
278
|
+
filteredItems.forEach((item) => {
|
|
279
|
+
const category = item.category || "other"
|
|
280
|
+
if (!groups[category]) {
|
|
281
|
+
groups[category] = []
|
|
282
|
+
}
|
|
283
|
+
groups[category].push(item)
|
|
284
|
+
})
|
|
285
|
+
return groups
|
|
286
|
+
}, [filteredItems, layout])
|
|
287
|
+
|
|
288
|
+
const sizeClasses = {
|
|
289
|
+
sm: { title: "text-xl", question: "text-sm", answer: "text-sm" },
|
|
290
|
+
md: { title: "text-2xl", question: "text-base", answer: "text-sm" },
|
|
291
|
+
lg: { title: "text-3xl", question: "text-lg", answer: "text-base" },
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
const renderAccordionItems = (itemsToRender: FAQItem[]) => (
|
|
295
|
+
<>
|
|
296
|
+
{itemsToRender.map((item) => (
|
|
297
|
+
<AccordionItem
|
|
298
|
+
key={item.id}
|
|
299
|
+
value={item.id}
|
|
300
|
+
className={cn(
|
|
301
|
+
layout === "cards" && "border rounded-lg px-4 bg-card"
|
|
302
|
+
)}
|
|
303
|
+
>
|
|
304
|
+
<AccordionTrigger className={cn("hover:no-underline", sizeClasses[size].question)}>
|
|
305
|
+
<span className="text-left">{item.question}</span>
|
|
306
|
+
</AccordionTrigger>
|
|
307
|
+
<AccordionContent>
|
|
308
|
+
<div className={cn("text-muted-foreground", sizeClasses[size].answer)}>
|
|
309
|
+
{typeof item.answer === "string" ? (
|
|
310
|
+
<p>{item.answer}</p>
|
|
311
|
+
) : (
|
|
312
|
+
item.answer
|
|
313
|
+
)}
|
|
314
|
+
</div>
|
|
315
|
+
{item.tags && item.tags.length > 0 && (
|
|
316
|
+
<div className="flex flex-wrap gap-1 mt-3">
|
|
317
|
+
{item.tags.map((tag) => (
|
|
318
|
+
<Badge key={tag} variant="outline" className="text-xs">
|
|
319
|
+
{tag}
|
|
320
|
+
</Badge>
|
|
321
|
+
))}
|
|
322
|
+
</div>
|
|
323
|
+
)}
|
|
324
|
+
{showFeedback && onFeedback && (
|
|
325
|
+
<FAQFeedback
|
|
326
|
+
itemId={item.id}
|
|
327
|
+
helpful={item.helpful}
|
|
328
|
+
notHelpful={item.notHelpful}
|
|
329
|
+
onFeedback={onFeedback}
|
|
330
|
+
/>
|
|
331
|
+
)}
|
|
332
|
+
</AccordionContent>
|
|
333
|
+
</AccordionItem>
|
|
334
|
+
))}
|
|
335
|
+
</>
|
|
336
|
+
)
|
|
337
|
+
|
|
338
|
+
const renderAccordion = (itemsToRender: FAQItem[]) => {
|
|
339
|
+
if (allowMultiple) {
|
|
340
|
+
return (
|
|
341
|
+
<Accordion
|
|
342
|
+
type="multiple"
|
|
343
|
+
defaultValue={defaultOpen}
|
|
344
|
+
className="space-y-2"
|
|
345
|
+
>
|
|
346
|
+
{renderAccordionItems(itemsToRender)}
|
|
347
|
+
</Accordion>
|
|
348
|
+
)
|
|
349
|
+
}
|
|
350
|
+
return (
|
|
351
|
+
<Accordion
|
|
352
|
+
type="single"
|
|
353
|
+
defaultValue={defaultOpen[0]}
|
|
354
|
+
collapsible
|
|
355
|
+
className="space-y-2"
|
|
356
|
+
>
|
|
357
|
+
{renderAccordionItems(itemsToRender)}
|
|
358
|
+
</Accordion>
|
|
359
|
+
)
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
return (
|
|
363
|
+
<div className={cn("space-y-6", className)}>
|
|
364
|
+
{/* Header */}
|
|
365
|
+
<div className="text-center">
|
|
366
|
+
<h2 className={cn("font-bold tracking-tight", sizeClasses[size].title)}>
|
|
367
|
+
{title}
|
|
368
|
+
</h2>
|
|
369
|
+
{description && (
|
|
370
|
+
<p className="text-muted-foreground mt-2 max-w-2xl mx-auto">
|
|
371
|
+
{description}
|
|
372
|
+
</p>
|
|
373
|
+
)}
|
|
374
|
+
</div>
|
|
375
|
+
|
|
376
|
+
{/* Search */}
|
|
377
|
+
{showSearch && (
|
|
378
|
+
<div className="max-w-md mx-auto">
|
|
379
|
+
<FAQSearch
|
|
380
|
+
value={searchQuery}
|
|
381
|
+
onChange={setSearchQuery}
|
|
382
|
+
placeholder={searchPlaceholder}
|
|
383
|
+
/>
|
|
384
|
+
</div>
|
|
385
|
+
)}
|
|
386
|
+
|
|
387
|
+
{/* Category Filter */}
|
|
388
|
+
{showCategoryFilter && categories.length > 0 && (
|
|
389
|
+
<div className="flex justify-center">
|
|
390
|
+
<FAQCategoryFilter
|
|
391
|
+
categories={categories}
|
|
392
|
+
activeCategory={activeCategory}
|
|
393
|
+
onCategoryChange={handleCategoryChange}
|
|
394
|
+
itemCounts={itemCounts}
|
|
395
|
+
/>
|
|
396
|
+
</div>
|
|
397
|
+
)}
|
|
398
|
+
|
|
399
|
+
{/* FAQ Items */}
|
|
400
|
+
{filteredItems.length === 0 ? (
|
|
401
|
+
<div className="text-center py-12">
|
|
402
|
+
<HelpCircle className="h-12 w-12 text-muted-foreground mx-auto mb-4" />
|
|
403
|
+
<p className="text-muted-foreground">
|
|
404
|
+
Aucune question ne correspond à votre recherche.
|
|
405
|
+
</p>
|
|
406
|
+
</div>
|
|
407
|
+
) : layout === "grouped" && groupedItems ? (
|
|
408
|
+
<div className="space-y-8">
|
|
409
|
+
{Object.entries(groupedItems).map(([categoryId, categoryItems]) => {
|
|
410
|
+
const category = categories.find((c) => c.id === categoryId)
|
|
411
|
+
return (
|
|
412
|
+
<div key={categoryId}>
|
|
413
|
+
<h3 className="text-lg font-semibold mb-4 flex items-center gap-2">
|
|
414
|
+
{category?.icon}
|
|
415
|
+
{category?.name || categoryId}
|
|
416
|
+
</h3>
|
|
417
|
+
{renderAccordion(categoryItems)}
|
|
418
|
+
</div>
|
|
419
|
+
)
|
|
420
|
+
})}
|
|
421
|
+
</div>
|
|
422
|
+
) : (
|
|
423
|
+
<div className="max-w-3xl mx-auto">
|
|
424
|
+
{renderAccordion(filteredItems)}
|
|
425
|
+
</div>
|
|
426
|
+
)}
|
|
427
|
+
</div>
|
|
428
|
+
)
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// ============================================
|
|
432
|
+
// PRESETS
|
|
433
|
+
// ============================================
|
|
434
|
+
|
|
435
|
+
export const defaultFAQCategories: FAQCategory[] = [
|
|
436
|
+
{ id: "general", name: "Général", icon: <HelpCircle className="h-4 w-4" /> },
|
|
437
|
+
{ id: "billing", name: "Facturation", icon: <MessageCircle className="h-4 w-4" /> },
|
|
438
|
+
{ id: "technical", name: "Technique", icon: <MessageCircle className="h-4 w-4" /> },
|
|
439
|
+
]
|
|
440
|
+
|
|
441
|
+
export const defaultFAQItems: FAQItem[] = [
|
|
442
|
+
{
|
|
443
|
+
id: "1",
|
|
444
|
+
question: "Comment créer un compte ?",
|
|
445
|
+
answer: "Pour créer un compte, cliquez sur le bouton 'S'inscrire' en haut à droite de la page, puis remplissez le formulaire avec vos informations personnelles.",
|
|
446
|
+
category: "general",
|
|
447
|
+
tags: ["compte", "inscription"],
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
id: "2",
|
|
451
|
+
question: "Comment réinitialiser mon mot de passe ?",
|
|
452
|
+
answer: "Cliquez sur 'Mot de passe oublié' sur la page de connexion, entrez votre email et suivez les instructions envoyées par email.",
|
|
453
|
+
category: "general",
|
|
454
|
+
tags: ["mot de passe", "sécurité"],
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
id: "3",
|
|
458
|
+
question: "Quels moyens de paiement acceptez-vous ?",
|
|
459
|
+
answer: "Nous acceptons les cartes de crédit (Visa, Mastercard, Amex), PayPal et les virements bancaires pour les entreprises.",
|
|
460
|
+
category: "billing",
|
|
461
|
+
tags: ["paiement", "carte"],
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
id: "4",
|
|
465
|
+
question: "Comment annuler mon abonnement ?",
|
|
466
|
+
answer: "Vous pouvez annuler votre abonnement à tout moment depuis les paramètres de votre compte, section 'Abonnement'.",
|
|
467
|
+
category: "billing",
|
|
468
|
+
tags: ["abonnement", "annulation"],
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
id: "5",
|
|
472
|
+
question: "L'API est-elle disponible ?",
|
|
473
|
+
answer: "Oui, notre API REST est disponible pour tous les plans payants. Consultez notre documentation développeur pour plus d'informations.",
|
|
474
|
+
category: "technical",
|
|
475
|
+
tags: ["API", "développeur"],
|
|
476
|
+
},
|
|
477
|
+
]
|
|
478
|
+
|
|
479
|
+
export default WakaFAQ
|