@libreapps/ui 5.4.1
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 +229 -0
- package/bin/cli.js +100 -0
- package/bin/create-registry.js +108 -0
- package/bin/mcp.js +403 -0
- package/bin/npx-registry-mcp.js +15 -0
- package/bin/registry-mcp-wrapper.sh +19 -0
- package/bin/registry-mcp.js +100 -0
- package/bin/start-mcp-server.sh +22 -0
- package/bin/test-mcp.sh +52 -0
- package/bin/update-registry.js +196 -0
- package/content/index.ts +26 -0
- package/dist/3d/button.js +298 -0
- package/dist/3d/button.mjs +273 -0
- package/dist/3d/card.js +234 -0
- package/dist/3d/card.mjs +207 -0
- package/dist/3d/carousel.js +371 -0
- package/dist/3d/carousel.mjs +344 -0
- package/dist/3d/grid.js +362 -0
- package/dist/3d/grid.mjs +337 -0
- package/dist/3d/index.js +1518 -0
- package/dist/3d/index.mjs +1472 -0
- package/dist/3d/marquee.js +352 -0
- package/dist/3d/marquee.mjs +327 -0
- package/dist/3d/pin.js +46 -0
- package/dist/3d/pin.mjs +24 -0
- package/dist/accordion.js +80 -0
- package/dist/accordion.mjs +55 -0
- package/dist/alert-dialog.js +225 -0
- package/dist/alert-dialog.mjs +192 -0
- package/dist/alert.js +98 -0
- package/dist/alert.mjs +92 -0
- package/dist/animation/animated-background.js +424 -0
- package/dist/animation/animated-background.mjs +418 -0
- package/dist/animation/animated-beam.js +119 -0
- package/dist/animation/animated-beam.mjs +97 -0
- package/dist/animation/animated-cursor.js +275 -0
- package/dist/animation/animated-cursor.mjs +270 -0
- package/dist/animation/animated-icon.js +357 -0
- package/dist/animation/animated-icon.mjs +351 -0
- package/dist/animation/animated-list.js +339 -0
- package/dist/animation/animated-list.mjs +333 -0
- package/dist/animation/animated-number.js +283 -0
- package/dist/animation/animated-number.mjs +277 -0
- package/dist/animation/animated-testimonials.js +97 -0
- package/dist/animation/animated-testimonials.mjs +75 -0
- package/dist/animation/animated-tooltip.js +67 -0
- package/dist/animation/animated-tooltip.mjs +45 -0
- package/dist/animation/apple-cards-carousel.js +308 -0
- package/dist/animation/apple-cards-carousel.mjs +285 -0
- package/dist/animation/apple-hello-effect.js +60 -0
- package/dist/animation/apple-hello-effect.mjs +38 -0
- package/dist/animation/index.js +1952 -0
- package/dist/animation/index.mjs +1921 -0
- package/dist/assets/ai-icons.d.ts +27 -0
- package/dist/assets/crypto.d.ts +6 -0
- package/dist/assets/file-type-icon.d.ts +6 -0
- package/dist/assets/file.d.ts +4 -0
- package/dist/assets/general.d.ts +219 -0
- package/dist/assets/index.d.ts +6 -0
- package/dist/assets/libreapps-logo.d.ts +3 -0
- package/dist/assets/llm-provider.d.ts +63 -0
- package/dist/avatar.js +71 -0
- package/dist/avatar.mjs +47 -0
- package/dist/badge.js +61 -0
- package/dist/badge.mjs +55 -0
- package/dist/blocks/auth/__tests__/forms.test.d.ts +12 -0
- package/dist/blocks/auth/index.d.ts +3 -0
- package/dist/blocks/auth/login/index.d.ts +5 -0
- package/dist/blocks/auth/login/login-01/components/login-form.d.ts +1 -0
- package/dist/blocks/auth/login/login-01/page.d.ts +1 -0
- package/dist/blocks/auth/login/login-02/components/login-form.d.ts +1 -0
- package/dist/blocks/auth/login/login-02/page.d.ts +1 -0
- package/dist/blocks/auth/login/login-03/components/login-form.d.ts +1 -0
- package/dist/blocks/auth/login/login-03/page.d.ts +1 -0
- package/dist/blocks/auth/login/login-04/components/login-form.d.ts +1 -0
- package/dist/blocks/auth/login/login-04/page.d.ts +1 -0
- package/dist/blocks/auth/login/login-05/components/login-form.d.ts +1 -0
- package/dist/blocks/auth/login/login-05/page.d.ts +1 -0
- package/dist/blocks/auth/otp/index.d.ts +5 -0
- package/dist/blocks/auth/otp/otp-01/components/otp-form.d.ts +2 -0
- package/dist/blocks/auth/otp/otp-01/page.d.ts +1 -0
- package/dist/blocks/auth/otp/otp-02/components/otp-form.d.ts +1 -0
- package/dist/blocks/auth/otp/otp-02/page.d.ts +1 -0
- package/dist/blocks/auth/otp/otp-03/components/otp-form.d.ts +2 -0
- package/dist/blocks/auth/otp/otp-03/page.d.ts +1 -0
- package/dist/blocks/auth/otp/otp-04/components/otp-form.d.ts +1 -0
- package/dist/blocks/auth/otp/otp-04/page.d.ts +1 -0
- package/dist/blocks/auth/otp/otp-05/components/otp-form.d.ts +1 -0
- package/dist/blocks/auth/otp/otp-05/page.d.ts +1 -0
- package/dist/blocks/auth/signup/index.d.ts +5 -0
- package/dist/blocks/auth/signup/signup-01/components/signup-form.d.ts +2 -0
- package/dist/blocks/auth/signup/signup-01/page.d.ts +1 -0
- package/dist/blocks/auth/signup/signup-02/components/signup-form.d.ts +1 -0
- package/dist/blocks/auth/signup/signup-02/page.d.ts +1 -0
- package/dist/blocks/auth/signup/signup-03/components/signup-form.d.ts +1 -0
- package/dist/blocks/auth/signup/signup-03/page.d.ts +1 -0
- package/dist/blocks/auth/signup/signup-04/components/signup-form.d.ts +1 -0
- package/dist/blocks/auth/signup/signup-04/page.d.ts +1 -0
- package/dist/blocks/auth/signup/signup-05/components/signup-form.d.ts +1 -0
- package/dist/blocks/auth/signup/signup-05/page.d.ts +1 -0
- package/dist/blocks/calendar/calendar-01.d.ts +1 -0
- package/dist/blocks/calendar/calendar-02.d.ts +1 -0
- package/dist/blocks/calendar/calendar-03.d.ts +1 -0
- package/dist/blocks/calendar/calendar-04.d.ts +1 -0
- package/dist/blocks/calendar/calendar-05.d.ts +1 -0
- package/dist/blocks/calendar/calendar-06.d.ts +1 -0
- package/dist/blocks/calendar/calendar-07.d.ts +1 -0
- package/dist/blocks/calendar/calendar-08.d.ts +1 -0
- package/dist/blocks/calendar/calendar-09.d.ts +1 -0
- package/dist/blocks/calendar/calendar-10.d.ts +1 -0
- package/dist/blocks/calendar/calendar-11.d.ts +1 -0
- package/dist/blocks/calendar/calendar-12.d.ts +1 -0
- package/dist/blocks/calendar/calendar-13.d.ts +1 -0
- package/dist/blocks/calendar/calendar-14.d.ts +1 -0
- package/dist/blocks/calendar/calendar-15.d.ts +1 -0
- package/dist/blocks/calendar/calendar-16.d.ts +1 -0
- package/dist/blocks/calendar/calendar-17.d.ts +1 -0
- package/dist/blocks/calendar/calendar-18.d.ts +1 -0
- package/dist/blocks/calendar/calendar-19.d.ts +1 -0
- package/dist/blocks/calendar/calendar-20.d.ts +1 -0
- package/dist/blocks/calendar/calendar-21.d.ts +1 -0
- package/dist/blocks/calendar/calendar-22.d.ts +1 -0
- package/dist/blocks/calendar/calendar-23.d.ts +1 -0
- package/dist/blocks/calendar/calendar-24.d.ts +1 -0
- package/dist/blocks/calendar/calendar-25.d.ts +1 -0
- package/dist/blocks/calendar/calendar-26.d.ts +1 -0
- package/dist/blocks/calendar/calendar-27.d.ts +1 -0
- package/dist/blocks/calendar/calendar-28.d.ts +1 -0
- package/dist/blocks/calendar/calendar-29.d.ts +1 -0
- package/dist/blocks/calendar/calendar-30.d.ts +1 -0
- package/dist/blocks/calendar/calendar-31.d.ts +1 -0
- package/dist/blocks/calendar/calendar-32.d.ts +1 -0
- package/dist/blocks/calendar/index.d.ts +32 -0
- package/dist/blocks/components/accordian-block.d.ts +4 -0
- package/dist/blocks/components/block-component-props.d.ts +7 -0
- package/dist/blocks/components/bullet-cards-block.d.ts +4 -0
- package/dist/blocks/components/card-block/index.d.ts +6 -0
- package/dist/blocks/components/card-block/link-out-button.d.ts +6 -0
- package/dist/blocks/components/card-block/util.d.ts +4 -0
- package/dist/blocks/components/carte-blanche-block/index.d.ts +4 -0
- package/dist/blocks/components/carte-blanche-block/variant-content-left.d.ts +10 -0
- package/dist/blocks/components/content.d.ts +10 -0
- package/dist/blocks/components/cta-block.d.ts +12 -0
- package/dist/blocks/components/enh-heading-block.d.ts +7 -0
- package/dist/blocks/components/grid-block/grid-block-mutator.d.ts +5 -0
- package/dist/blocks/components/grid-block/index.d.ts +9 -0
- package/dist/blocks/components/grid-block/mutator-registry.d.ts +3 -0
- package/dist/blocks/components/grid-block/table-borders.mutator.d.ts +3 -0
- package/dist/blocks/components/group-block.d.ts +7 -0
- package/dist/blocks/components/heading-block.d.ts +4 -0
- package/dist/blocks/components/image-block.d.ts +7 -0
- package/dist/blocks/components/index.d.ts +14 -0
- package/dist/blocks/components/screenful-block/content.d.ts +8 -0
- package/dist/blocks/components/screenful-block/index.d.ts +12 -0
- package/dist/blocks/components/screenful-block/poster-background.d.ts +7 -0
- package/dist/blocks/components/screenful-block/video-background.d.ts +8 -0
- package/dist/blocks/components/space-block.d.ts +4 -0
- package/dist/blocks/components/video-block.d.ts +9 -0
- package/dist/blocks/dashboard/dashboard-01/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/dashboard/dashboard-01/components/chart-area-interactive.d.ts +2 -0
- package/dist/blocks/dashboard/dashboard-01/components/data-table.d.ts +13 -0
- package/dist/blocks/dashboard/dashboard-01/components/nav-documents.d.ts +8 -0
- package/dist/blocks/dashboard/dashboard-01/components/nav-main.d.ts +8 -0
- package/dist/blocks/dashboard/dashboard-01/components/nav-secondary.d.ts +10 -0
- package/dist/blocks/dashboard/dashboard-01/components/nav-user.d.ts +7 -0
- package/dist/blocks/dashboard/dashboard-01/components/section-cards.d.ts +1 -0
- package/dist/blocks/dashboard/dashboard-01/components/site-header.d.ts +1 -0
- package/dist/blocks/dashboard/dashboard-01/page.d.ts +1 -0
- package/dist/blocks/dashboard/index.d.ts +1 -0
- package/dist/blocks/def/accordian-block.d.ts +10 -0
- package/dist/blocks/def/block.d.ts +4 -0
- package/dist/blocks/def/bullet-cards-block.d.ts +17 -0
- package/dist/blocks/def/card-block.d.ts +17 -0
- package/dist/blocks/def/carte-blanche-block.d.ts +12 -0
- package/dist/blocks/def/cta-block.d.ts +8 -0
- package/dist/blocks/def/element-block.d.ts +7 -0
- package/dist/blocks/def/enh-heading-block.d.ts +22 -0
- package/dist/blocks/def/grid-block.d.ts +12 -0
- package/dist/blocks/def/group-block.d.ts +7 -0
- package/dist/blocks/def/heading-block.d.ts +11 -0
- package/dist/blocks/def/image-block.d.ts +26 -0
- package/dist/blocks/def/index.d.ts +17 -0
- package/dist/blocks/def/screenful-block.d.ts +41 -0
- package/dist/blocks/def/space-block.d.ts +47 -0
- package/dist/blocks/def/video-block.d.ts +5 -0
- package/dist/blocks/index-core.d.ts +2 -0
- package/dist/blocks/index.d.ts +6 -0
- package/dist/blocks/index.js +1685 -0
- package/dist/blocks/index.mjs +1646 -0
- package/dist/blocks/sidebar/index.d.ts +16 -0
- package/dist/blocks/sidebar/sidebar-01/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-01/components/search-form.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-01/components/version-switcher.d.ts +4 -0
- package/dist/blocks/sidebar/sidebar-01/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-02/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-02/components/search-form.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-02/components/version-switcher.d.ts +4 -0
- package/dist/blocks/sidebar/sidebar-02/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-03/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-03/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-04/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-04/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-05/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-05/components/search-form.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-05/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-06/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-06/components/nav-main.d.ts +13 -0
- package/dist/blocks/sidebar/sidebar-06/components/sidebar-opt-in-form.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-06/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-07/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-07/components/nav-main.d.ts +13 -0
- package/dist/blocks/sidebar/sidebar-07/components/nav-projects.d.ts +8 -0
- package/dist/blocks/sidebar/sidebar-07/components/nav-user.d.ts +7 -0
- package/dist/blocks/sidebar/sidebar-07/components/team-switcher.d.ts +8 -0
- package/dist/blocks/sidebar/sidebar-07/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-08/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-08/components/nav-main.d.ts +13 -0
- package/dist/blocks/sidebar/sidebar-08/components/nav-projects.d.ts +8 -0
- package/dist/blocks/sidebar/sidebar-08/components/nav-secondary.d.ts +10 -0
- package/dist/blocks/sidebar/sidebar-08/components/nav-user.d.ts +7 -0
- package/dist/blocks/sidebar/sidebar-08/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-09/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-09/components/nav-user.d.ts +7 -0
- package/dist/blocks/sidebar/sidebar-09/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-10/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-10/components/nav-actions.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-10/components/nav-favorites.d.ts +7 -0
- package/dist/blocks/sidebar/sidebar-10/components/nav-main.d.ts +9 -0
- package/dist/blocks/sidebar/sidebar-10/components/nav-secondary.d.ts +11 -0
- package/dist/blocks/sidebar/sidebar-10/components/nav-workspaces.d.ts +10 -0
- package/dist/blocks/sidebar/sidebar-10/components/team-switcher.d.ts +8 -0
- package/dist/blocks/sidebar/sidebar-10/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-11/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-11/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-12/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-12/components/calendars.d.ts +6 -0
- package/dist/blocks/sidebar/sidebar-12/components/date-picker.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-12/components/nav-user.d.ts +7 -0
- package/dist/blocks/sidebar/sidebar-12/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-13/components/settings-dialog.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-13/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-14/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-14/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-15/components/calendars.d.ts +6 -0
- package/dist/blocks/sidebar/sidebar-15/components/date-picker.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-15/components/nav-favorites.d.ts +7 -0
- package/dist/blocks/sidebar/sidebar-15/components/nav-main.d.ts +9 -0
- package/dist/blocks/sidebar/sidebar-15/components/nav-secondary.d.ts +11 -0
- package/dist/blocks/sidebar/sidebar-15/components/nav-user.d.ts +7 -0
- package/dist/blocks/sidebar/sidebar-15/components/nav-workspaces.d.ts +10 -0
- package/dist/blocks/sidebar/sidebar-15/components/sidebar-left.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-15/components/sidebar-right.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-15/components/team-switcher.d.ts +8 -0
- package/dist/blocks/sidebar/sidebar-15/page.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-16/components/app-sidebar.d.ts +3 -0
- package/dist/blocks/sidebar/sidebar-16/components/nav-main.d.ts +13 -0
- package/dist/blocks/sidebar/sidebar-16/components/nav-projects.d.ts +8 -0
- package/dist/blocks/sidebar/sidebar-16/components/nav-secondary.d.ts +10 -0
- package/dist/blocks/sidebar/sidebar-16/components/nav-user.d.ts +7 -0
- package/dist/blocks/sidebar/sidebar-16/components/search-form.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-16/components/site-header.d.ts +1 -0
- package/dist/blocks/sidebar/sidebar-16/page.d.ts +3 -0
- package/dist/breadcrumb.js +107 -0
- package/dist/breadcrumb.mjs +99 -0
- package/dist/calendar-ext/index.js +208 -0
- package/dist/calendar-ext/index.mjs +170 -0
- package/dist/calendar.js +194 -0
- package/dist/calendar.mjs +169 -0
- package/dist/carousel.js +283 -0
- package/dist/carousel.mjs +254 -0
- package/dist/charts/index.js +5842 -0
- package/dist/charts/index.mjs +5751 -0
- package/dist/checkbox.js +60 -0
- package/dist/checkbox.mjs +35 -0
- package/dist/code/block.js +226 -0
- package/dist/code/block.mjs +203 -0
- package/dist/code/compare.js +446 -0
- package/dist/code/compare.mjs +423 -0
- package/dist/code/diff.js +430 -0
- package/dist/code/diff.mjs +407 -0
- package/dist/code/editor.js +243 -0
- package/dist/code/editor.mjs +218 -0
- package/dist/code/explorer.js +291 -0
- package/dist/code/explorer.mjs +268 -0
- package/dist/code/index.js +2551 -0
- package/dist/code/index.mjs +2510 -0
- package/dist/code/preview.js +400 -0
- package/dist/code/preview.mjs +377 -0
- package/dist/code/snippet.js +274 -0
- package/dist/code/snippet.mjs +250 -0
- package/dist/code/tabs.js +75 -0
- package/dist/code/tabs.mjs +53 -0
- package/dist/code/terminal.js +437 -0
- package/dist/code/terminal.mjs +414 -0
- package/dist/collapsible.js +33 -0
- package/dist/collapsible.mjs +9 -0
- package/dist/command.js +283 -0
- package/dist/command.mjs +252 -0
- package/dist/components/cal-embed.d.ts +10 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/context-menu.js +207 -0
- package/dist/context-menu.mjs +171 -0
- package/dist/desktop/hooks.js +224 -0
- package/dist/desktop/hooks.mjs +199 -0
- package/dist/desktop/index.js +686 -0
- package/dist/desktop/index.mjs +658 -0
- package/dist/desktop/spotlight.js +261 -0
- package/dist/desktop/spotlight.mjs +236 -0
- package/dist/desktop/window.js +274 -0
- package/dist/desktop/window.mjs +248 -0
- package/dist/device/index.js +3 -0
- package/dist/device/index.mjs +2 -0
- package/dist/dialog.js +246 -0
- package/dist/dialog.mjs +214 -0
- package/dist/dock/basic.js +174 -0
- package/dist/dock/basic.mjs +151 -0
- package/dist/dock/index.js +648 -0
- package/dist/dock/index.mjs +621 -0
- package/dist/dock/limelight-nav.js +315 -0
- package/dist/dock/limelight-nav.mjs +294 -0
- package/dist/dock/macos.js +141 -0
- package/dist/dock/macos.mjs +118 -0
- package/dist/dock/menu.js +70 -0
- package/dist/dock/menu.mjs +48 -0
- package/dist/dock/message.js +149 -0
- package/dist/dock/message.mjs +127 -0
- package/dist/drawer.js +115 -0
- package/dist/drawer.mjs +103 -0
- package/dist/dropdown-menu.js +202 -0
- package/dist/dropdown-menu.mjs +166 -0
- package/dist/finance/AdvancedChart.js +48 -0
- package/dist/finance/AdvancedChart.mjs +46 -0
- package/dist/finance/CompanyProfile.js +48 -0
- package/dist/finance/CompanyProfile.mjs +46 -0
- package/dist/finance/CryptoScreener.js +45 -0
- package/dist/finance/CryptoScreener.mjs +43 -0
- package/dist/finance/Financials.js +52 -0
- package/dist/finance/Financials.mjs +50 -0
- package/dist/finance/ForexScreener.js +46 -0
- package/dist/finance/ForexScreener.mjs +44 -0
- package/dist/finance/MarketOverview.js +104 -0
- package/dist/finance/MarketOverview.mjs +102 -0
- package/dist/finance/NewsTimeline.js +44 -0
- package/dist/finance/NewsTimeline.mjs +42 -0
- package/dist/finance/OrderEntry.js +131 -0
- package/dist/finance/OrderEntry.mjs +129 -0
- package/dist/finance/OrdersHistory.js +64 -0
- package/dist/finance/OrdersHistory.mjs +62 -0
- package/dist/finance/PositionsList.js +80 -0
- package/dist/finance/PositionsList.mjs +78 -0
- package/dist/finance/StockScreener.js +46 -0
- package/dist/finance/StockScreener.mjs +44 -0
- package/dist/finance/SymbolInfo.js +46 -0
- package/dist/finance/SymbolInfo.mjs +44 -0
- package/dist/finance/TechnicalAnalysis.js +54 -0
- package/dist/finance/TechnicalAnalysis.mjs +52 -0
- package/dist/finance/TickerTape.js +56 -0
- package/dist/finance/TickerTape.mjs +54 -0
- package/dist/finance/TradingPanel.js +191 -0
- package/dist/finance/TradingPanel.mjs +189 -0
- package/dist/finance/index.js +930 -0
- package/dist/finance/index.mjs +914 -0
- package/dist/form/index.js +155 -0
- package/dist/form/index.mjs +125 -0
- package/dist/form.js +172 -0
- package/dist/form.mjs +142 -0
- package/dist/helpers/file.d.ts +6 -0
- package/dist/helpers/memoization.d.ts +8 -0
- package/dist/hover-card.js +58 -0
- package/dist/hover-card.mjs +34 -0
- package/dist/index.js +9650 -0
- package/dist/index.mjs +9234 -0
- package/dist/input-otp.js +79 -0
- package/dist/input-otp.mjs +54 -0
- package/dist/kanban/index.js +594 -0
- package/dist/kanban/index.mjs +572 -0
- package/dist/lib/utils.js +28 -0
- package/dist/lib/utils.mjs +24 -0
- package/dist/mermaid/index.js +281 -0
- package/dist/mermaid/index.mjs +254 -0
- package/dist/navigation/index.js +98 -0
- package/dist/navigation/index.mjs +79 -0
- package/dist/navigation-menu.js +149 -0
- package/dist/navigation-menu.mjs +116 -0
- package/dist/pattern/grid-pattern.js +333 -0
- package/dist/pattern/grid-pattern.mjs +310 -0
- package/dist/pattern/index.js +333 -0
- package/dist/pattern/index.mjs +310 -0
- package/dist/popover.js +63 -0
- package/dist/popover.mjs +37 -0
- package/dist/primitives/__tests__/core-primitives.test.d.ts +1 -0
- package/dist/primitives/accordion.d.ts +26 -0
- package/dist/primitives/action-button.d.ts +9 -0
- package/dist/primitives/alert-dialog.d.ts +56 -0
- package/dist/primitives/alert.d.ts +10 -0
- package/dist/primitives/apply-typography.d.ts +7 -0
- package/dist/primitives/aspect-ratio.d.ts +3 -0
- package/dist/primitives/avatar.d.ts +24 -0
- package/dist/primitives/background-beams.d.ts +4 -0
- package/dist/primitives/badge.d.ts +10 -0
- package/dist/primitives/breadcrumb.d.ts +50 -0
- package/dist/primitives/breakpoint-indicator.d.ts +3 -0
- package/dist/primitives/button-group.d.ts +11 -0
- package/dist/primitives/button.d.ts +13 -0
- package/dist/primitives/cal-embed.d.ts +10 -0
- package/dist/primitives/calendar.d.ts +10 -0
- package/dist/primitives/card.d.ts +9 -0
- package/dist/primitives/carousel.d.ts +18 -0
- package/dist/primitives/chart.d.ts +40 -0
- package/dist/primitives/charts/__tests__/charts.test.d.ts +9 -0
- package/dist/primitives/charts/area/chart-area-axes.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-default.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-gradient.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-icons.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-interactive.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-legend.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-linear.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-stacked-expand.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-stacked.d.ts +2 -0
- package/dist/primitives/charts/area/chart-area-step.d.ts +2 -0
- package/dist/primitives/charts/area/index.d.ts +10 -0
- package/dist/primitives/charts/bar/chart-bar-active.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-default.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-horizontal.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-interactive.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-label-custom.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-label.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-mixed.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-multiple.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-negative.d.ts +2 -0
- package/dist/primitives/charts/bar/chart-bar-stacked.d.ts +2 -0
- package/dist/primitives/charts/bar/index.d.ts +10 -0
- package/dist/primitives/charts/index.d.ts +7 -0
- package/dist/primitives/charts/line/chart-line-default.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-dots-colors.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-dots-custom.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-dots.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-interactive.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-label-custom.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-label.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-linear.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-multiple.d.ts +2 -0
- package/dist/primitives/charts/line/chart-line-step.d.ts +2 -0
- package/dist/primitives/charts/line/index.d.ts +10 -0
- package/dist/primitives/charts/pie/chart-pie-donut-active.d.ts +2 -0
- package/dist/primitives/charts/pie/chart-pie-donut-text.d.ts +2 -0
- package/dist/primitives/charts/pie/chart-pie-donut.d.ts +2 -0
- package/dist/primitives/charts/pie/chart-pie-interactive.d.ts +2 -0
- package/dist/primitives/charts/pie/chart-pie-label-custom.d.ts +2 -0
- package/dist/primitives/charts/pie/chart-pie-label-list.d.ts +2 -0
- package/dist/primitives/charts/pie/chart-pie-label.d.ts +2 -0
- package/dist/primitives/charts/pie/chart-pie-legend.d.ts +2 -0
- package/dist/primitives/charts/pie/chart-pie-separator-none.d.ts +2 -0
- package/dist/primitives/charts/pie/index.d.ts +9 -0
- package/dist/primitives/charts/radar/chart-radar-default.d.ts +2 -0
- package/dist/primitives/charts/radar/chart-radar-dots.d.ts +2 -0
- package/dist/primitives/charts/radar/chart-radar-grid-circle-fill.d.ts +2 -0
- package/dist/primitives/charts/radar/chart-radar-grid-circle-no-lines.d.ts +2 -0
- package/dist/primitives/charts/radar/chart-radar-grid-circle.d.ts +2 -0
- package/dist/primitives/charts/radar/chart-radar-grid-custom.d.ts +2 -0
- package/dist/primitives/charts/radar/chart-radar-grid-fill.d.ts +2 -0
- package/dist/primitives/charts/radar/chart-radar-grid-none.d.ts +2 -0
- package/dist/primitives/charts/radar/chart-radar-icons.d.ts +2 -0
- package/dist/primitives/charts/radar/index.d.ts +9 -0
- package/dist/primitives/charts/radial/chart-radial-grid.d.ts +2 -0
- package/dist/primitives/charts/radial/chart-radial-label.d.ts +2 -0
- package/dist/primitives/charts/radial/chart-radial-shape.d.ts +2 -0
- package/dist/primitives/charts/radial/chart-radial-simple.d.ts +2 -0
- package/dist/primitives/charts/radial/chart-radial-stacked.d.ts +2 -0
- package/dist/primitives/charts/radial/chart-radial-text.d.ts +2 -0
- package/dist/primitives/charts/radial/index.d.ts +6 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-advanced.d.ts +2 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-default.d.ts +4 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-formatter.d.ts +2 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-icons.d.ts +2 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-indicator-line.d.ts +4 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-indicator-none.d.ts +2 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-label-custom.d.ts +2 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-label-formatter.d.ts +2 -0
- package/dist/primitives/charts/tooltip/chart-tooltip-label-none.d.ts +2 -0
- package/dist/primitives/charts/tooltip/index.d.ts +9 -0
- package/dist/primitives/chat/chat-input-area.d.ts +23 -0
- package/dist/primitives/chat/chat-input.d.ts +12 -0
- package/dist/primitives/chat/files-preview.d.ts +12 -0
- package/dist/primitives/chat/index.d.ts +6 -0
- package/dist/primitives/chat/json-form.d.ts +3 -0
- package/dist/primitives/chat/message-list.d.ts +19 -0
- package/dist/primitives/chat/message.d.ts +29 -0
- package/dist/primitives/chat/sqlite-preview.d.ts +5 -0
- package/dist/primitives/checkbox.d.ts +11 -0
- package/dist/primitives/collapsible.d.ts +5 -0
- package/dist/primitives/combobox.d.ts +41 -0
- package/dist/primitives/command.d.ts +38 -0
- package/dist/primitives/context-menu.d.ts +53 -0
- package/dist/primitives/copy-to-clipboard-icon.d.ts +14 -0
- package/dist/primitives/dialog-video-controller.d.ts +3 -0
- package/dist/primitives/dialog.d.ts +17 -0
- package/dist/primitives/dot-pattern.d.ts +13 -0
- package/dist/primitives/dots-loader.d.ts +4 -0
- package/dist/primitives/drawer.d.ts +37 -0
- package/dist/primitives/dropdown-menu.d.ts +51 -0
- package/dist/primitives/empty.d.ts +11 -0
- package/dist/primitives/error-message.d.ts +6 -0
- package/dist/primitives/field.d.ts +9 -0
- package/dist/primitives/file-uploader.d.ts +19 -0
- package/dist/primitives/form.d.ts +39 -0
- package/dist/primitives/hover-card.d.ts +9 -0
- package/dist/primitives/icons/github.d.ts +4 -0
- package/dist/primitives/icons/index.d.ts +4 -0
- package/dist/primitives/icons/youtube-logo.d.ts +4 -0
- package/dist/primitives/index-blocks.d.ts +4 -0
- package/dist/primitives/index-common.d.ts +74 -0
- package/dist/primitives/index-core.d.ts +28 -0
- package/dist/primitives/index-next.d.ts +2 -0
- package/dist/primitives/index-selective.d.ts +51 -0
- package/dist/primitives/index-standard.d.ts +78 -0
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.js +9650 -0
- package/dist/primitives/index.mjs +9234 -0
- package/dist/primitives/input-group.d.ts +16 -0
- package/dist/primitives/input-otp.d.ts +34 -0
- package/dist/primitives/input.d.ts +14 -0
- package/dist/primitives/item.d.ts +23 -0
- package/dist/primitives/kbd.d.ts +4 -0
- package/dist/primitives/label.d.ts +10 -0
- package/dist/primitives/list-adaptor.d.ts +9 -0
- package/dist/primitives/list-box.d.ts +11 -0
- package/dist/primitives/loading-spinner.d.ts +5 -0
- package/dist/primitives/markdown-preview.d.ts +128 -0
- package/dist/primitives/menubar.d.ts +28 -0
- package/dist/primitives/mermaid.d.ts +7 -0
- package/dist/primitives/native-select.d.ts +8 -0
- package/dist/primitives/navigation-menu.d.ts +12 -0
- package/dist/primitives/next/image.d.ts +11 -0
- package/dist/primitives/next/index.d.ts +7 -0
- package/dist/primitives/next/inline-icon.d.ts +13 -0
- package/dist/primitives/next/link-element.d.ts +23 -0
- package/dist/primitives/next/mdx-link.d.ts +3 -0
- package/dist/primitives/next/media-stack.d.ts +8 -0
- package/dist/primitives/next/nav-items.d.ts +10 -0
- package/dist/primitives/next/youtube-embed.d.ts +11 -0
- package/dist/primitives/pagination.d.ts +34 -0
- package/dist/primitives/popover.d.ts +11 -0
- package/dist/primitives/pretty-json-print.d.ts +4 -0
- package/dist/primitives/progress.d.ts +8 -0
- package/dist/primitives/prompt-textarea.d.ts +18 -0
- package/dist/primitives/qr-code.d.ts +16 -0
- package/dist/primitives/radio-group.d.ts +11 -0
- package/dist/primitives/resizable.d.ts +23 -0
- package/dist/primitives/scroll-area.d.ts +13 -0
- package/dist/primitives/search-input.d.ts +13 -0
- package/dist/primitives/select.d.ts +26 -0
- package/dist/primitives/separator.d.ts +8 -0
- package/dist/primitives/sheet.d.ts +40 -0
- package/dist/primitives/sidebar.d.ts +69 -0
- package/dist/primitives/skeleton.d.ts +4 -0
- package/dist/primitives/slider.d.ts +5 -0
- package/dist/primitives/sonner.d.ts +5 -0
- package/dist/primitives/spinner.d.ts +2 -0
- package/dist/primitives/step-indicator.d.ts +9 -0
- package/dist/primitives/stepper.d.ts +48 -0
- package/dist/primitives/switch.d.ts +8 -0
- package/dist/primitives/table.d.ts +34 -0
- package/dist/primitives/tabs.d.ts +11 -0
- package/dist/primitives/text-area.d.ts +5 -0
- package/dist/primitives/text-link.d.ts +5 -0
- package/dist/primitives/textarea.d.ts +12 -0
- package/dist/primitives/textfield.d.ts +32 -0
- package/dist/primitives/toast.d.ts +5 -0
- package/dist/primitives/toggle-group.d.ts +13 -0
- package/dist/primitives/toggle.d.ts +12 -0
- package/dist/primitives/tooltip.d.ts +14 -0
- package/dist/primitives/video-player.d.ts +6 -0
- package/dist/primitives/youtube-pip-player.d.ts +32 -0
- package/dist/primitives-export.js +9650 -0
- package/dist/primitives-export.mjs +9234 -0
- package/dist/progress.js +62 -0
- package/dist/progress.mjs +37 -0
- package/dist/project/gantt.js +65 -0
- package/dist/project/gantt.mjs +43 -0
- package/dist/project/index.js +636 -0
- package/dist/project/index.mjs +611 -0
- package/dist/project/kanban.js +597 -0
- package/dist/project/kanban.mjs +572 -0
- package/dist/project/list.js +35 -0
- package/dist/project/list.mjs +12 -0
- package/dist/radio-group.js +68 -0
- package/dist/radio-group.mjs +45 -0
- package/dist/resizable.js +72 -0
- package/dist/resizable.mjs +48 -0
- package/dist/scroll-area.js +89 -0
- package/dist/scroll-area.mjs +66 -0
- package/dist/select.js +140 -0
- package/dist/select.mjs +111 -0
- package/dist/separator.js +59 -0
- package/dist/separator.mjs +34 -0
- package/dist/sheet.js +148 -0
- package/dist/sheet.mjs +117 -0
- package/dist/skeleton.js +32 -0
- package/dist/skeleton.mjs +27 -0
- package/dist/slider.js +99 -0
- package/dist/slider.mjs +73 -0
- package/dist/sonner.js +34 -0
- package/dist/sonner.mjs +29 -0
- package/dist/spline/index.js +211 -0
- package/dist/spline/index.mjs +202 -0
- package/dist/spline/media-stack.js +193 -0
- package/dist/spline/media-stack.mjs +185 -0
- package/dist/spline/player.js +37 -0
- package/dist/spline/player.mjs +31 -0
- package/dist/src/3d/button.d.ts +26 -0
- package/dist/src/3d/card.d.ts +28 -0
- package/dist/src/3d/carousel.d.ts +25 -0
- package/dist/src/3d/grid.d.ts +48 -0
- package/dist/src/3d/index.d.ts +6 -0
- package/dist/src/3d/marquee.d.ts +36 -0
- package/dist/src/3d/pin.d.ts +7 -0
- package/dist/src/animation/apple-cards-carousel.d.ts +35 -0
- package/dist/src/animation/apple-hello-effect.d.ts +7 -0
- package/dist/src/animation/background.d.ts +102 -0
- package/dist/src/animation/beam.d.ts +14 -0
- package/dist/src/animation/cursor.d.ts +69 -0
- package/dist/src/animation/icon.d.ts +118 -0
- package/dist/src/animation/index.d.ts +14 -0
- package/dist/src/animation/list.d.ts +125 -0
- package/dist/src/animation/number.d.ts +126 -0
- package/dist/src/animation/testimonials.d.ts +16 -0
- package/dist/src/animation/tooltip.d.ts +8 -0
- package/dist/src/avatar.d.ts +1 -0
- package/dist/src/badge.d.ts +1 -0
- package/dist/src/billing/components/index.d.ts +6 -0
- package/dist/src/billing/components/invoice-manager.d.ts +9 -0
- package/dist/src/billing/components/payment-manager.d.ts +12 -0
- package/dist/src/billing/components/subscription-portal.d.ts +14 -0
- package/dist/src/billing/index.d.ts +6 -0
- package/dist/src/billing/types/index.d.ts +99 -0
- package/dist/src/button.d.ts +1 -0
- package/dist/src/calendar-ext/index.d.ts +3 -0
- package/dist/src/charts/index.d.ts +64 -0
- package/dist/src/code/block.d.ts +21 -0
- package/dist/src/code/compare.d.ts +35 -0
- package/dist/src/code/diff.d.ts +29 -0
- package/dist/src/code/editor.d.ts +22 -0
- package/dist/src/code/explorer.d.ts +33 -0
- package/dist/src/code/index.d.ts +9 -0
- package/dist/src/code/preview.d.ts +30 -0
- package/dist/src/code/snippet.d.ts +28 -0
- package/dist/src/code/tabs.d.ts +11 -0
- package/dist/src/code/terminal.d.ts +33 -0
- package/dist/src/desktop/hooks.d.ts +74 -0
- package/dist/src/desktop/index.d.ts +6 -0
- package/dist/src/desktop/spotlight.d.ts +23 -0
- package/dist/src/desktop/window.d.ts +33 -0
- package/dist/src/device/index.d.ts +1 -0
- package/dist/src/dock/basic.d.ts +19 -0
- package/dist/src/dock/index.d.ts +5 -0
- package/dist/src/dock/limelight-nav.d.ts +9 -0
- package/dist/src/dock/macos.d.ts +16 -0
- package/dist/src/dock/menu.d.ts +13 -0
- package/dist/src/dock/message.d.ts +14 -0
- package/dist/src/form/form.d.ts +23 -0
- package/dist/src/form/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +7 -0
- package/dist/src/hooks/use-click-away.d.ts +2 -0
- package/dist/src/hooks/use-combined-refs.d.ts +3 -0
- package/dist/src/hooks/use-copy-clipboard.d.ts +9 -0
- package/dist/src/hooks/use-debounce.d.ts +1 -0
- package/dist/src/hooks/use-fill-ids.d.ts +8 -0
- package/dist/src/hooks/use-map.d.ts +1 -0
- package/dist/src/hooks/use-measure.d.ts +8 -0
- package/dist/src/hooks/use-reverse-video-playback.d.ts +1 -0
- package/dist/src/hooks/use-scroll-restoration.d.ts +8 -0
- package/dist/src/kanban/index.d.ts +2 -0
- package/dist/src/mcp/enhanced-server.d.ts +7 -0
- package/dist/src/mcp/index.d.ts +6 -0
- package/dist/src/mermaid/index.d.ts +2 -0
- package/dist/src/navigation/advanced-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/ai-model-selector-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/app-switcher-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/breadcrumb-and-filters-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/breadcrumb-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/centered-logo-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/collaboration-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/communication-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/context-switcher-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/dashboard-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/e-commerce-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/icon-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/index.d.ts +18 -0
- package/dist/src/navigation/search-and-toggle-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/simple-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/status-dashboard-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/team-switcher-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/two-tier-navigation-bar.d.ts +1 -0
- package/dist/src/navigation/underline-navigation-bar.d.ts +1 -0
- package/dist/src/pattern/grid.d.ts +110 -0
- package/dist/src/pattern/index.d.ts +2 -0
- package/dist/src/primitives-export.d.ts +8 -0
- package/dist/src/project/gantt.d.ts +12 -0
- package/dist/src/project/index.d.ts +3 -0
- package/dist/src/project/kanban.d.ts +35 -0
- package/dist/src/project/list.d.ts +4 -0
- package/dist/src/registry/api.d.ts +37 -0
- package/dist/src/registry/index.d.ts +86 -0
- package/dist/src/spline/index.d.ts +2 -0
- package/dist/src/spline/media-stack.d.ts +14 -0
- package/dist/src/spline/player.d.ts +14 -0
- package/dist/src/ui/announcement.d.ts +8 -0
- package/dist/src/ui/avatar-group.d.ts +11 -0
- package/dist/src/ui/banner.d.ts +10 -0
- package/dist/src/ui/cursor.d.ts +8 -0
- package/dist/src/ui/index.d.ts +17 -0
- package/dist/src/ui/marquee.d.ts +9 -0
- package/dist/src/ui/pill.d.ts +10 -0
- package/dist/src/ui/spinner.d.ts +2 -0
- package/dist/src/ui/tags.d.ts +12 -0
- package/dist/src/ui/ticker.d.ts +9 -0
- package/dist/src/utils.d.ts +4 -0
- package/dist/style/theme-provider.d.ts +4 -0
- package/dist/switch.js +62 -0
- package/dist/switch.mjs +37 -0
- package/dist/table.js +110 -0
- package/dist/table.mjs +101 -0
- package/dist/tabs.js +128 -0
- package/dist/tabs.mjs +102 -0
- package/dist/tailwind/fontFamily.tailwind.d.ts +8 -0
- package/dist/tailwind/fontSize.tailwind.d.ts +36 -0
- package/dist/tailwind/index.d.ts +3 -0
- package/dist/tailwind/index.js +2023 -0
- package/dist/tailwind/index.mjs +2011 -0
- package/dist/tailwind/screens.tailwind.d.ts +9 -0
- package/dist/tailwind/tw-font-desc.d.ts +6 -0
- package/dist/textarea.js +78 -0
- package/dist/textarea.mjs +56 -0
- package/dist/toggle-group.js +118 -0
- package/dist/toggle-group.mjs +93 -0
- package/dist/toggle.js +71 -0
- package/dist/toggle.mjs +48 -0
- package/dist/tooltip.js +67 -0
- package/dist/tooltip.mjs +40 -0
- package/dist/types/animation-def.d.ts +2 -0
- package/dist/types/breakpoints.d.ts +4 -0
- package/dist/types/bullet-item.d.ts +6 -0
- package/dist/types/button-def.d.ts +29 -0
- package/dist/types/dimensions.d.ts +5 -0
- package/dist/types/grid-def.d.ts +36 -0
- package/dist/types/image-def.d.ts +27 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.js +57 -0
- package/dist/types/index.mjs +51 -0
- package/dist/types/link-def.d.ts +44 -0
- package/dist/types/media-stack-def.d.ts +25 -0
- package/dist/types/t-shirt-size.d.ts +2 -0
- package/dist/types/tshirt-dimensions.d.ts +12 -0
- package/dist/types/video-def.d.ts +9 -0
- package/dist/ui/announcement.js +134 -0
- package/dist/ui/announcement.mjs +112 -0
- package/dist/ui/avatar-group.js +88 -0
- package/dist/ui/avatar-group.mjs +65 -0
- package/dist/ui/banner.js +85 -0
- package/dist/ui/banner.mjs +62 -0
- package/dist/ui/cursor.js +78 -0
- package/dist/ui/cursor.mjs +56 -0
- package/dist/ui/index.js +495 -0
- package/dist/ui/index.mjs +462 -0
- package/dist/ui/marquee.js +74 -0
- package/dist/ui/marquee.mjs +52 -0
- package/dist/ui/pill.js +85 -0
- package/dist/ui/pill.mjs +62 -0
- package/dist/ui/spinner.js +28 -0
- package/dist/ui/spinner.mjs +26 -0
- package/dist/ui/tags.js +117 -0
- package/dist/ui/tags.mjs +95 -0
- package/dist/ui/ticker.js +73 -0
- package/dist/ui/ticker.mjs +51 -0
- package/dist/util/blob.d.ts +2 -0
- package/dist/util/copy-to-clipboard.d.ts +1 -0
- package/dist/util/create-shadow-root.d.ts +7 -0
- package/dist/util/date.d.ts +28 -0
- package/dist/util/debounce.d.ts +1 -0
- package/dist/util/file.d.ts +3 -0
- package/dist/util/format-and-abbreviate-as-currency.d.ts +11 -0
- package/dist/util/format-text.d.ts +7 -0
- package/dist/util/format-to-max-char.d.ts +5 -0
- package/dist/util/index-client.d.ts +2 -0
- package/dist/util/index.d.ts +36 -0
- package/dist/util/index.js +463 -0
- package/dist/util/index.mjs +404 -0
- package/dist/util/number-abbreviate.d.ts +9 -0
- package/dist/util/specifier.d.ts +7 -0
- package/dist/util/spread-to-transform.d.ts +7 -0
- package/dist/util/step-animation.d.ts +5 -0
- package/dist/util/timing.d.ts +1 -0
- package/dist/util/toasts.d.ts +2 -0
- package/dist/util/two-way-map.d.ts +8 -0
- package/dist/util/use-mobile.d.ts +1 -0
- package/dist/utils.d.ts +3 -0
- package/docs/_registry/index.ts +426 -0
- package/docs/_registry/layout/docs-min.tsx +197 -0
- package/docs/_registry/layout/page-min.tsx +128 -0
- package/docs/components/accordion.tsx +118 -0
- package/docs/components/banner.tsx +144 -0
- package/docs/components/callout.tsx +112 -0
- package/docs/components/card.tsx +52 -0
- package/docs/components/codeblock.tsx +258 -0
- package/docs/components/dialog/search-algolia.tsx +132 -0
- package/docs/components/dialog/search-default.tsx +131 -0
- package/docs/components/dialog/search-orama.tsx +143 -0
- package/docs/components/dialog/search.tsx +529 -0
- package/docs/components/dynamic-codeblock.tsx +129 -0
- package/docs/components/files.tsx +81 -0
- package/docs/components/github-info.tsx +107 -0
- package/docs/components/heading.tsx +33 -0
- package/docs/components/image-zoom.css +77 -0
- package/docs/components/image-zoom.tsx +58 -0
- package/docs/components/index.ts +7 -0
- package/docs/components/inline-toc.tsx +48 -0
- package/docs/components/sidebar/base.tsx +451 -0
- package/docs/components/sidebar/link-item.tsx +65 -0
- package/docs/components/sidebar/page-tree.tsx +113 -0
- package/docs/components/sidebar/tabs/dropdown.tsx +109 -0
- package/docs/components/sidebar/tabs/index.tsx +89 -0
- package/docs/components/steps.tsx +9 -0
- package/docs/components/tabs.tsx +203 -0
- package/docs/components/toc/clerk.tsx +173 -0
- package/docs/components/toc/default.tsx +57 -0
- package/docs/components/toc/index.tsx +136 -0
- package/docs/components/type-table.tsx +174 -0
- package/docs/components/ui/accordion.tsx +88 -0
- package/docs/components/ui/button.tsx +28 -0
- package/docs/components/ui/collapsible.tsx +42 -0
- package/docs/components/ui/navigation-menu.tsx +83 -0
- package/docs/components/ui/popover.tsx +32 -0
- package/docs/components/ui/scroll-area.tsx +59 -0
- package/docs/components/ui/tabs.tsx +145 -0
- package/docs/contexts/i18n.tsx +56 -0
- package/docs/contexts/search.tsx +165 -0
- package/docs/contexts/tree.tsx +65 -0
- package/docs/css/aspen.css +39 -0
- package/docs/css/black.css +39 -0
- package/docs/css/catppuccin.css +49 -0
- package/docs/css/colors/index.css +51 -0
- package/docs/css/dusk.css +47 -0
- package/docs/css/emerald.css +39 -0
- package/docs/css/layouts/docs.css +1 -0
- package/docs/css/layouts/home.css +1 -0
- package/docs/css/layouts/notebook.css +1 -0
- package/docs/css/neutral.css +7 -0
- package/docs/css/ocean.css +48 -0
- package/docs/css/preset.css +305 -0
- package/docs/css/purple.css +39 -0
- package/docs/css/ruby.css +39 -0
- package/docs/css/shadcn.css +36 -0
- package/docs/css/shiki.css +90 -0
- package/docs/css/solar.css +75 -0
- package/docs/css/style.css +9 -0
- package/docs/css/vitepress.css +77 -0
- package/docs/i18n.tsx +30 -0
- package/docs/icons.tsx +354 -0
- package/docs/layouts/docs/client.tsx +129 -0
- package/docs/layouts/docs/index.tsx +321 -0
- package/docs/layouts/docs/page/client.tsx +376 -0
- package/docs/layouts/docs/page/index.tsx +251 -0
- package/docs/layouts/docs/sidebar.tsx +265 -0
- package/docs/layouts/home/client.tsx +375 -0
- package/docs/layouts/home/index.tsx +51 -0
- package/docs/layouts/home/navbar.tsx +55 -0
- package/docs/layouts/notebook/client.tsx +281 -0
- package/docs/layouts/notebook/index.tsx +461 -0
- package/docs/layouts/notebook/page/client.tsx +375 -0
- package/docs/layouts/notebook/page/index.tsx +251 -0
- package/docs/layouts/notebook/sidebar.tsx +248 -0
- package/docs/layouts/shared/index.tsx +89 -0
- package/docs/layouts/shared/language-toggle.tsx +66 -0
- package/docs/layouts/shared/link-item.tsx +119 -0
- package/docs/layouts/shared/search-toggle.tsx +78 -0
- package/docs/layouts/shared/theme-toggle.tsx +86 -0
- package/docs/mdx.server.tsx +37 -0
- package/docs/mdx.tsx +97 -0
- package/docs/og.tsx +101 -0
- package/docs/page.tsx +85 -0
- package/docs/provider/base.tsx +173 -0
- package/docs/provider/next.tsx +23 -0
- package/docs/provider/react-router.tsx +23 -0
- package/docs/provider/tanstack.tsx +23 -0
- package/docs/provider/waku.tsx +23 -0
- package/docs/source.ts +3 -0
- package/docs/theme/typography/LICENSE +21 -0
- package/docs/theme/typography/index.ts +201 -0
- package/docs/theme/typography/styles.ts +449 -0
- package/docs/utils/cn.ts +1 -0
- package/docs/utils/is-active.ts +23 -0
- package/docs/utils/merge-refs.ts +15 -0
- package/docs/utils/use-copy-button.ts +39 -0
- package/docs/utils/use-footer-items.ts +27 -0
- package/docs/utils/use-is-scroll-top.ts +21 -0
- package/finance/README.md +164 -0
- package/finance/components/AdvancedChart.tsx +58 -0
- package/finance/components/CompanyProfile.tsx +65 -0
- package/finance/components/CryptoScreener.tsx +55 -0
- package/finance/components/Financials.tsx +71 -0
- package/finance/components/ForexScreener.tsx +56 -0
- package/finance/components/MarketOverview.tsx +114 -0
- package/finance/components/NewsTimeline.tsx +54 -0
- package/finance/components/OrderEntry.tsx +157 -0
- package/finance/components/OrdersHistory.tsx +103 -0
- package/finance/components/PositionsList.tsx +85 -0
- package/finance/components/StockScreener.tsx +56 -0
- package/finance/components/SymbolInfo.tsx +62 -0
- package/finance/components/TechnicalAnalysis.tsx +74 -0
- package/finance/components/TickerTape.tsx +66 -0
- package/finance/components/TradingPanel.tsx +238 -0
- package/finance/components/index.ts +40 -0
- package/finance/index.ts +23 -0
- package/package.json +803 -0
- package/style/drawer.css +163 -0
- package/style/globals.css +146 -0
- package/style/libreapps-common.css +31 -0
- package/style/libreapps-default-colors.css +147 -0
- package/style/tailwind.css +200 -0
- package/style/theme-provider.tsx +20 -0
|
@@ -0,0 +1,1472 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React3 from 'react';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { cn } from '@libreapps/ui/lib/utils';
|
|
5
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
7
|
+
import { motion } from 'framer-motion';
|
|
8
|
+
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
11
|
+
var button3DVariants = cva(
|
|
12
|
+
[
|
|
13
|
+
"relative inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium",
|
|
14
|
+
"transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
15
|
+
"disabled:pointer-events-none disabled:opacity-50 cursor-pointer select-none",
|
|
16
|
+
"transform-gpu will-change-transform active:scale-95",
|
|
17
|
+
"before:absolute before:inset-0 before:rounded-md before:transition-all before:duration-150",
|
|
18
|
+
"after:absolute after:inset-0 after:rounded-md after:transition-all after:duration-150"
|
|
19
|
+
],
|
|
20
|
+
{
|
|
21
|
+
variants: {
|
|
22
|
+
variant: {
|
|
23
|
+
default: [
|
|
24
|
+
"bg-primary text-primary-foreground shadow-md hover:bg-primary/90",
|
|
25
|
+
"before:bg-gradient-to-t before:from-primary/80 before:to-primary before:translate-y-1 before:shadow-lg",
|
|
26
|
+
"hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
27
|
+
"after:bg-gradient-to-b after:from-white/20 after:to-transparent after:opacity-0",
|
|
28
|
+
"hover:after:opacity-100"
|
|
29
|
+
],
|
|
30
|
+
destructive: [
|
|
31
|
+
"bg-destructive text-destructive-foreground shadow-md hover:bg-destructive/90",
|
|
32
|
+
"before:bg-gradient-to-t before:from-destructive/80 before:to-destructive before:translate-y-1 before:shadow-lg",
|
|
33
|
+
"hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
34
|
+
"after:bg-gradient-to-b after:from-white/20 after:to-transparent after:opacity-0",
|
|
35
|
+
"hover:after:opacity-100"
|
|
36
|
+
],
|
|
37
|
+
outline: [
|
|
38
|
+
"border border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
39
|
+
"before:bg-gradient-to-t before:from-muted/50 before:to-background before:translate-y-1 before:border before:border-input",
|
|
40
|
+
"hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
41
|
+
"after:bg-gradient-to-b after:from-white/10 after:to-transparent after:opacity-0",
|
|
42
|
+
"hover:after:opacity-100"
|
|
43
|
+
],
|
|
44
|
+
secondary: [
|
|
45
|
+
"bg-secondary text-secondary-foreground shadow-md hover:bg-secondary/80",
|
|
46
|
+
"before:bg-gradient-to-t before:from-secondary/80 before:to-secondary before:translate-y-1 before:shadow-lg",
|
|
47
|
+
"hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
48
|
+
"after:bg-gradient-to-b after:from-white/20 after:to-transparent after:opacity-0",
|
|
49
|
+
"hover:after:opacity-100"
|
|
50
|
+
],
|
|
51
|
+
ghost: [
|
|
52
|
+
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
53
|
+
"before:bg-gradient-to-t before:from-accent/30 before:to-accent/10 before:translate-y-1 before:opacity-0",
|
|
54
|
+
"hover:before:opacity-100 hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
55
|
+
"after:bg-gradient-to-b after:from-white/10 after:to-transparent after:opacity-0",
|
|
56
|
+
"hover:after:opacity-50"
|
|
57
|
+
],
|
|
58
|
+
link: [
|
|
59
|
+
"text-primary underline-offset-4 hover:underline",
|
|
60
|
+
"before:hidden after:hidden"
|
|
61
|
+
],
|
|
62
|
+
neon: [
|
|
63
|
+
"bg-gradient-to-r from-purple-500 to-pink-500 text-white shadow-lg",
|
|
64
|
+
"before:bg-gradient-to-t before:from-purple-600 before:to-pink-600 before:translate-y-1 before:shadow-lg",
|
|
65
|
+
"hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
66
|
+
"after:bg-gradient-to-b after:from-white/30 after:to-transparent after:opacity-0",
|
|
67
|
+
"hover:after:opacity-100",
|
|
68
|
+
"hover:shadow-purple-500/25 hover:shadow-2xl"
|
|
69
|
+
],
|
|
70
|
+
glass: [
|
|
71
|
+
"bg-white/10 backdrop-blur-md border border-white/20 text-foreground shadow-lg",
|
|
72
|
+
"before:bg-gradient-to-t before:from-white/5 before:to-white/20 before:translate-y-1 before:backdrop-blur-md before:border before:border-white/20",
|
|
73
|
+
"hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
74
|
+
"after:bg-gradient-to-b after:from-white/30 after:to-transparent after:opacity-0",
|
|
75
|
+
"hover:after:opacity-100"
|
|
76
|
+
],
|
|
77
|
+
gradient: [
|
|
78
|
+
"bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500 text-white shadow-lg",
|
|
79
|
+
"before:bg-gradient-to-t before:from-blue-600 before:via-purple-600 before:to-pink-600 before:translate-y-1 before:shadow-lg",
|
|
80
|
+
"hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
81
|
+
"after:bg-gradient-to-b after:from-white/20 after:to-transparent after:opacity-0",
|
|
82
|
+
"hover:after:opacity-100",
|
|
83
|
+
"hover:bg-gradient-to-r hover:from-blue-400 hover:via-purple-400 hover:to-pink-400"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
size: {
|
|
87
|
+
default: "h-10 px-4 py-2",
|
|
88
|
+
sm: "h-9 rounded-md px-3",
|
|
89
|
+
lg: "h-11 rounded-md px-8",
|
|
90
|
+
xl: "h-12 rounded-lg px-10 text-base",
|
|
91
|
+
icon: "h-10 w-10"
|
|
92
|
+
},
|
|
93
|
+
depth: {
|
|
94
|
+
none: "before:translate-y-0",
|
|
95
|
+
sm: "before:translate-y-0.5 hover:before:translate-y-0 active:before:translate-y-0",
|
|
96
|
+
default: "before:translate-y-1 hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
97
|
+
lg: "before:translate-y-1.5 hover:before:translate-y-0.5 active:before:translate-y-0",
|
|
98
|
+
xl: "before:translate-y-2 hover:before:translate-y-1 active:before:translate-y-0"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
defaultVariants: {
|
|
102
|
+
variant: "default",
|
|
103
|
+
size: "default",
|
|
104
|
+
depth: "default"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
var Button3D = React3.forwardRef(
|
|
109
|
+
({
|
|
110
|
+
className,
|
|
111
|
+
variant,
|
|
112
|
+
size,
|
|
113
|
+
depth,
|
|
114
|
+
tiltOnHover = false,
|
|
115
|
+
glowIntensity = 0,
|
|
116
|
+
shadowColor,
|
|
117
|
+
pressAnimation = true,
|
|
118
|
+
children,
|
|
119
|
+
onMouseEnter,
|
|
120
|
+
onMouseLeave,
|
|
121
|
+
onMouseMove,
|
|
122
|
+
onMouseDown,
|
|
123
|
+
onMouseUp,
|
|
124
|
+
style,
|
|
125
|
+
...props
|
|
126
|
+
}, ref) => {
|
|
127
|
+
const buttonRef = React3.useRef(null);
|
|
128
|
+
const [isHovered, setIsHovered] = React3.useState(false);
|
|
129
|
+
const [isPressed, setIsPressed] = React3.useState(false);
|
|
130
|
+
const [tiltTransform, setTiltTransform] = React3.useState({ x: 0, y: 0 });
|
|
131
|
+
const updateTilt = React3.useCallback(
|
|
132
|
+
(e) => {
|
|
133
|
+
if (!tiltOnHover || !buttonRef.current) return;
|
|
134
|
+
const rect = buttonRef.current.getBoundingClientRect();
|
|
135
|
+
const centerX = rect.left + rect.width / 2;
|
|
136
|
+
const centerY = rect.top + rect.height / 2;
|
|
137
|
+
const deltaX = (e.clientX - centerX) / (rect.width / 2);
|
|
138
|
+
const deltaY = (e.clientY - centerY) / (rect.height / 2);
|
|
139
|
+
setTiltTransform({
|
|
140
|
+
x: deltaY * -10,
|
|
141
|
+
// Inverted for more natural feel
|
|
142
|
+
y: deltaX * 10
|
|
143
|
+
});
|
|
144
|
+
},
|
|
145
|
+
[tiltOnHover]
|
|
146
|
+
);
|
|
147
|
+
const resetTilt = React3.useCallback(() => {
|
|
148
|
+
setTiltTransform({ x: 0, y: 0 });
|
|
149
|
+
}, []);
|
|
150
|
+
const handleMouseEnter = React3.useCallback(
|
|
151
|
+
(e) => {
|
|
152
|
+
setIsHovered(true);
|
|
153
|
+
onMouseEnter?.(e);
|
|
154
|
+
},
|
|
155
|
+
[onMouseEnter]
|
|
156
|
+
);
|
|
157
|
+
const handleMouseLeave = React3.useCallback(
|
|
158
|
+
(e) => {
|
|
159
|
+
setIsHovered(false);
|
|
160
|
+
resetTilt();
|
|
161
|
+
onMouseLeave?.(e);
|
|
162
|
+
},
|
|
163
|
+
[onMouseLeave, resetTilt]
|
|
164
|
+
);
|
|
165
|
+
const handleMouseMove = React3.useCallback(
|
|
166
|
+
(e) => {
|
|
167
|
+
if (tiltOnHover) {
|
|
168
|
+
updateTilt(e);
|
|
169
|
+
}
|
|
170
|
+
onMouseMove?.(e);
|
|
171
|
+
},
|
|
172
|
+
[onMouseMove, tiltOnHover, updateTilt]
|
|
173
|
+
);
|
|
174
|
+
const handleMouseDown = React3.useCallback(
|
|
175
|
+
(e) => {
|
|
176
|
+
if (pressAnimation) {
|
|
177
|
+
setIsPressed(true);
|
|
178
|
+
}
|
|
179
|
+
onMouseDown?.(e);
|
|
180
|
+
},
|
|
181
|
+
[onMouseDown, pressAnimation]
|
|
182
|
+
);
|
|
183
|
+
const handleMouseUp = React3.useCallback(
|
|
184
|
+
(e) => {
|
|
185
|
+
setIsPressed(false);
|
|
186
|
+
onMouseUp?.(e);
|
|
187
|
+
},
|
|
188
|
+
[onMouseUp]
|
|
189
|
+
);
|
|
190
|
+
React3.useImperativeHandle(ref, () => buttonRef.current);
|
|
191
|
+
const buttonStyle = {
|
|
192
|
+
...style,
|
|
193
|
+
transform: tiltOnHover ? `perspective(1000px) rotateX(${tiltTransform.x}deg) rotateY(${tiltTransform.y}deg) ${isPressed ? "translateY(1px)" : ""}` : isPressed ? "translateY(1px)" : void 0,
|
|
194
|
+
filter: glowIntensity > 0 ? `drop-shadow(0 0 ${glowIntensity * 4}px ${shadowColor || "currentColor"})` : void 0,
|
|
195
|
+
transition: "all 150ms cubic-bezier(0.4, 0, 0.2, 1)"
|
|
196
|
+
};
|
|
197
|
+
return /* @__PURE__ */ jsx(
|
|
198
|
+
"button",
|
|
199
|
+
{
|
|
200
|
+
ref: buttonRef,
|
|
201
|
+
className: cn(button3DVariants({ variant, size, depth }), className),
|
|
202
|
+
style: buttonStyle,
|
|
203
|
+
onMouseEnter: handleMouseEnter,
|
|
204
|
+
onMouseLeave: handleMouseLeave,
|
|
205
|
+
onMouseMove: handleMouseMove,
|
|
206
|
+
onMouseDown: handleMouseDown,
|
|
207
|
+
onMouseUp: handleMouseUp,
|
|
208
|
+
...props,
|
|
209
|
+
children: /* @__PURE__ */ jsx("span", { className: "relative z-10 flex items-center justify-center gap-2", children })
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
Button3D.displayName = "Button3D";
|
|
215
|
+
var Button3DPreset = {
|
|
216
|
+
Hero: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
217
|
+
Button3D,
|
|
218
|
+
{
|
|
219
|
+
ref,
|
|
220
|
+
variant: "gradient",
|
|
221
|
+
size: "xl",
|
|
222
|
+
depth: "lg",
|
|
223
|
+
tiltOnHover: true,
|
|
224
|
+
glowIntensity: 2,
|
|
225
|
+
...props
|
|
226
|
+
}
|
|
227
|
+
)),
|
|
228
|
+
CTA: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
229
|
+
Button3D,
|
|
230
|
+
{
|
|
231
|
+
ref,
|
|
232
|
+
variant: "neon",
|
|
233
|
+
size: "lg",
|
|
234
|
+
depth: "default",
|
|
235
|
+
tiltOnHover: true,
|
|
236
|
+
glowIntensity: 1,
|
|
237
|
+
...props
|
|
238
|
+
}
|
|
239
|
+
)),
|
|
240
|
+
Glass: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
241
|
+
Button3D,
|
|
242
|
+
{
|
|
243
|
+
ref,
|
|
244
|
+
variant: "glass",
|
|
245
|
+
size: "default",
|
|
246
|
+
depth: "sm",
|
|
247
|
+
tiltOnHover: true,
|
|
248
|
+
...props
|
|
249
|
+
}
|
|
250
|
+
)),
|
|
251
|
+
Minimal: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(Button3D, { ref, variant: "ghost", size: "default", depth: "sm", ...props })),
|
|
252
|
+
Danger: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
253
|
+
Button3D,
|
|
254
|
+
{
|
|
255
|
+
ref,
|
|
256
|
+
variant: "destructive",
|
|
257
|
+
size: "default",
|
|
258
|
+
depth: "default",
|
|
259
|
+
shadowColor: "rgb(239 68 68)",
|
|
260
|
+
...props
|
|
261
|
+
}
|
|
262
|
+
))
|
|
263
|
+
};
|
|
264
|
+
Button3DPreset.Hero.displayName = "Button3DPreset.Hero";
|
|
265
|
+
Button3DPreset.CTA.displayName = "Button3DPreset.CTA";
|
|
266
|
+
Button3DPreset.Glass.displayName = "Button3DPreset.Glass";
|
|
267
|
+
Button3DPreset.Minimal.displayName = "Button3DPreset.Minimal";
|
|
268
|
+
Button3DPreset.Danger.displayName = "Button3DPreset.Danger";
|
|
269
|
+
var Button3DLoading = React3.forwardRef(({ loading = false, children, disabled, ...props }, ref) => {
|
|
270
|
+
return /* @__PURE__ */ jsxs(Button3D, { ref, disabled: disabled || loading, ...props, children: [
|
|
271
|
+
loading && /* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-4 w-4 border-2 border-current border-t-transparent" }),
|
|
272
|
+
!loading && children
|
|
273
|
+
] });
|
|
274
|
+
});
|
|
275
|
+
Button3DLoading.displayName = "Button3DLoading";
|
|
276
|
+
var Card3D = React3.forwardRef(
|
|
277
|
+
({
|
|
278
|
+
children,
|
|
279
|
+
maxTilt = 15,
|
|
280
|
+
perspective = 1e3,
|
|
281
|
+
scale = 1.05,
|
|
282
|
+
speed = 400,
|
|
283
|
+
glare = true,
|
|
284
|
+
glareMaxOpacity = 0.7,
|
|
285
|
+
className,
|
|
286
|
+
...props
|
|
287
|
+
}, ref) => {
|
|
288
|
+
const cardRef = React3.useRef(null);
|
|
289
|
+
const glareRef = React3.useRef(null);
|
|
290
|
+
const [isHovered, setIsHovered] = React3.useState(false);
|
|
291
|
+
const [transforms, setTransforms] = React3.useState({
|
|
292
|
+
rotateX: 0,
|
|
293
|
+
rotateY: 0,
|
|
294
|
+
scale: 1,
|
|
295
|
+
glareX: 50,
|
|
296
|
+
glareY: 50,
|
|
297
|
+
glareOpacity: 0
|
|
298
|
+
});
|
|
299
|
+
const updateTransforms = React3.useCallback(
|
|
300
|
+
(point, rect) => {
|
|
301
|
+
if (!point || !rect) {
|
|
302
|
+
setTransforms({
|
|
303
|
+
rotateX: 0,
|
|
304
|
+
rotateY: 0,
|
|
305
|
+
scale: 1,
|
|
306
|
+
glareX: 50,
|
|
307
|
+
glareY: 50,
|
|
308
|
+
glareOpacity: 0
|
|
309
|
+
});
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
const centerX = rect.left + rect.width / 2;
|
|
313
|
+
const centerY = rect.top + rect.height / 2;
|
|
314
|
+
const deltaX = (point.x - centerX) / (rect.width / 2);
|
|
315
|
+
const deltaY = (point.y - centerY) / (rect.height / 2);
|
|
316
|
+
const rotateX = -deltaY * maxTilt;
|
|
317
|
+
const rotateY = deltaX * maxTilt;
|
|
318
|
+
const glareX = (point.x - rect.left) / rect.width * 100;
|
|
319
|
+
const glareY = (point.y - rect.top) / rect.height * 100;
|
|
320
|
+
setTransforms({
|
|
321
|
+
rotateX,
|
|
322
|
+
rotateY,
|
|
323
|
+
scale,
|
|
324
|
+
glareX,
|
|
325
|
+
glareY,
|
|
326
|
+
glareOpacity: glare ? glareMaxOpacity : 0
|
|
327
|
+
});
|
|
328
|
+
},
|
|
329
|
+
[maxTilt, scale, glare, glareMaxOpacity]
|
|
330
|
+
);
|
|
331
|
+
const handleMouseMove = React3.useCallback(
|
|
332
|
+
(e) => {
|
|
333
|
+
if (!cardRef.current) return;
|
|
334
|
+
const rect = cardRef.current.getBoundingClientRect();
|
|
335
|
+
const point = { x: e.clientX, y: e.clientY };
|
|
336
|
+
updateTransforms(point, rect);
|
|
337
|
+
},
|
|
338
|
+
[updateTransforms]
|
|
339
|
+
);
|
|
340
|
+
const handleTouchMove = React3.useCallback(
|
|
341
|
+
(e) => {
|
|
342
|
+
if (!cardRef.current || e.touches.length === 0) return;
|
|
343
|
+
e.preventDefault();
|
|
344
|
+
const rect = cardRef.current.getBoundingClientRect();
|
|
345
|
+
const touch = e.touches[0];
|
|
346
|
+
const point = { x: touch.clientX, y: touch.clientY };
|
|
347
|
+
updateTransforms(point, rect);
|
|
348
|
+
},
|
|
349
|
+
[updateTransforms]
|
|
350
|
+
);
|
|
351
|
+
const handleMouseEnter = React3.useCallback(() => {
|
|
352
|
+
setIsHovered(true);
|
|
353
|
+
}, []);
|
|
354
|
+
const handleMouseLeave = React3.useCallback(() => {
|
|
355
|
+
setIsHovered(false);
|
|
356
|
+
updateTransforms(null, null);
|
|
357
|
+
}, [updateTransforms]);
|
|
358
|
+
const handleTouchStart = React3.useCallback(() => {
|
|
359
|
+
setIsHovered(true);
|
|
360
|
+
}, []);
|
|
361
|
+
const handleTouchEnd = React3.useCallback(() => {
|
|
362
|
+
setIsHovered(false);
|
|
363
|
+
updateTransforms(null, null);
|
|
364
|
+
}, [updateTransforms]);
|
|
365
|
+
const cardStyle = {
|
|
366
|
+
transform: `perspective(${perspective}px) rotateX(${transforms.rotateX}deg) rotateY(${transforms.rotateY}deg) scale(${transforms.scale})`,
|
|
367
|
+
transition: isHovered ? "none" : `transform ${speed}ms cubic-bezier(0.03, 0.98, 0.52, 0.99)`,
|
|
368
|
+
transformStyle: "preserve-3d"
|
|
369
|
+
};
|
|
370
|
+
const glareStyle = {
|
|
371
|
+
background: `radial-gradient(circle at ${transforms.glareX}% ${transforms.glareY}%, rgba(255,255,255,${transforms.glareOpacity}) 0%, transparent 50%)`,
|
|
372
|
+
transition: isHovered ? "none" : `opacity ${speed}ms ease-out`
|
|
373
|
+
};
|
|
374
|
+
React3.useImperativeHandle(ref, () => cardRef.current);
|
|
375
|
+
return /* @__PURE__ */ jsxs(
|
|
376
|
+
"div",
|
|
377
|
+
{
|
|
378
|
+
ref: cardRef,
|
|
379
|
+
className: cn(
|
|
380
|
+
"relative rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer",
|
|
381
|
+
"transform-gpu will-change-transform",
|
|
382
|
+
className
|
|
383
|
+
),
|
|
384
|
+
style: cardStyle,
|
|
385
|
+
onMouseMove: handleMouseMove,
|
|
386
|
+
onMouseEnter: handleMouseEnter,
|
|
387
|
+
onMouseLeave: handleMouseLeave,
|
|
388
|
+
onTouchStart: handleTouchStart,
|
|
389
|
+
onTouchMove: handleTouchMove,
|
|
390
|
+
onTouchEnd: handleTouchEnd,
|
|
391
|
+
...props,
|
|
392
|
+
children: [
|
|
393
|
+
/* @__PURE__ */ jsx("div", { className: "relative z-10", children }),
|
|
394
|
+
glare && /* @__PURE__ */ jsx(
|
|
395
|
+
"div",
|
|
396
|
+
{
|
|
397
|
+
ref: glareRef,
|
|
398
|
+
className: "absolute inset-0 rounded-lg pointer-events-none z-20",
|
|
399
|
+
style: glareStyle
|
|
400
|
+
}
|
|
401
|
+
)
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
);
|
|
407
|
+
Card3D.displayName = "Card3D";
|
|
408
|
+
var Card3DHeader = React3.forwardRef(({ className, depth = 20, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
409
|
+
"div",
|
|
410
|
+
{
|
|
411
|
+
ref,
|
|
412
|
+
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
413
|
+
style: {
|
|
414
|
+
transform: `translateZ(${depth}px)`,
|
|
415
|
+
...style
|
|
416
|
+
},
|
|
417
|
+
...props
|
|
418
|
+
}
|
|
419
|
+
));
|
|
420
|
+
Card3DHeader.displayName = "Card3DHeader";
|
|
421
|
+
var Card3DTitle = React3.forwardRef(({ className, depth = 30, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
422
|
+
"h3",
|
|
423
|
+
{
|
|
424
|
+
ref,
|
|
425
|
+
className: cn(
|
|
426
|
+
"text-2xl font-semibold leading-none tracking-tight",
|
|
427
|
+
className
|
|
428
|
+
),
|
|
429
|
+
style: {
|
|
430
|
+
transform: `translateZ(${depth}px)`,
|
|
431
|
+
...style
|
|
432
|
+
},
|
|
433
|
+
...props
|
|
434
|
+
}
|
|
435
|
+
));
|
|
436
|
+
Card3DTitle.displayName = "Card3DTitle";
|
|
437
|
+
var Card3DDescription = React3.forwardRef(({ className, depth = 10, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
438
|
+
"p",
|
|
439
|
+
{
|
|
440
|
+
ref,
|
|
441
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
442
|
+
style: {
|
|
443
|
+
transform: `translateZ(${depth}px)`,
|
|
444
|
+
...style
|
|
445
|
+
},
|
|
446
|
+
...props
|
|
447
|
+
}
|
|
448
|
+
));
|
|
449
|
+
Card3DDescription.displayName = "Card3DDescription";
|
|
450
|
+
var Card3DContent = React3.forwardRef(({ className, depth = 25, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
451
|
+
"div",
|
|
452
|
+
{
|
|
453
|
+
ref,
|
|
454
|
+
className: cn("p-6 pt-0", className),
|
|
455
|
+
style: {
|
|
456
|
+
transform: `translateZ(${depth}px)`,
|
|
457
|
+
...style
|
|
458
|
+
},
|
|
459
|
+
...props
|
|
460
|
+
}
|
|
461
|
+
));
|
|
462
|
+
Card3DContent.displayName = "Card3DContent";
|
|
463
|
+
var Card3DFooter = React3.forwardRef(({ className, depth = 15, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
464
|
+
"div",
|
|
465
|
+
{
|
|
466
|
+
ref,
|
|
467
|
+
className: cn("flex items-center p-6 pt-0", className),
|
|
468
|
+
style: {
|
|
469
|
+
transform: `translateZ(${depth}px)`,
|
|
470
|
+
...style
|
|
471
|
+
},
|
|
472
|
+
...props
|
|
473
|
+
}
|
|
474
|
+
));
|
|
475
|
+
Card3DFooter.displayName = "Card3DFooter";
|
|
476
|
+
var Carousel3D = React3.forwardRef(
|
|
477
|
+
({
|
|
478
|
+
items,
|
|
479
|
+
itemWidth = 300,
|
|
480
|
+
itemHeight = 400,
|
|
481
|
+
spacing = 80,
|
|
482
|
+
perspective = 1e3,
|
|
483
|
+
rotateY = 40,
|
|
484
|
+
autoRotate = false,
|
|
485
|
+
autoRotateSpeed = 3e3,
|
|
486
|
+
showControls = true,
|
|
487
|
+
infinite = true,
|
|
488
|
+
className,
|
|
489
|
+
...props
|
|
490
|
+
}, ref) => {
|
|
491
|
+
const containerRef = React3.useRef(null);
|
|
492
|
+
const [currentIndex, setCurrentIndex] = React3.useState(0);
|
|
493
|
+
const [isHovered, setIsHovered] = React3.useState(false);
|
|
494
|
+
const [isDragging, setIsDragging] = React3.useState(false);
|
|
495
|
+
const [dragStart, setDragStart] = React3.useState({ x: 0, y: 0 });
|
|
496
|
+
const [dragOffset, setDragOffset] = React3.useState(0);
|
|
497
|
+
const autoRotateRef = React3.useRef(void 0);
|
|
498
|
+
const totalItems = items.length;
|
|
499
|
+
const radius = (itemWidth + spacing) / 2 / Math.tan(Math.PI / totalItems);
|
|
500
|
+
React3.useEffect(() => {
|
|
501
|
+
if (autoRotate && !isHovered && !isDragging) {
|
|
502
|
+
autoRotateRef.current = setInterval(() => {
|
|
503
|
+
setCurrentIndex((prev) => (prev + 1) % totalItems);
|
|
504
|
+
}, autoRotateSpeed);
|
|
505
|
+
} else {
|
|
506
|
+
if (autoRotateRef.current) {
|
|
507
|
+
clearInterval(autoRotateRef.current);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
return () => {
|
|
511
|
+
if (autoRotateRef.current) {
|
|
512
|
+
clearInterval(autoRotateRef.current);
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
}, [autoRotate, isHovered, isDragging, autoRotateSpeed, totalItems]);
|
|
516
|
+
const goToPrevious = React3.useCallback(() => {
|
|
517
|
+
setCurrentIndex(
|
|
518
|
+
(prev) => infinite ? (prev - 1 + totalItems) % totalItems : Math.max(0, prev - 1)
|
|
519
|
+
);
|
|
520
|
+
}, [infinite, totalItems]);
|
|
521
|
+
const goToNext = React3.useCallback(() => {
|
|
522
|
+
setCurrentIndex(
|
|
523
|
+
(prev) => infinite ? (prev + 1) % totalItems : Math.min(totalItems - 1, prev + 1)
|
|
524
|
+
);
|
|
525
|
+
}, [infinite, totalItems]);
|
|
526
|
+
const goToIndex = React3.useCallback(
|
|
527
|
+
(index) => {
|
|
528
|
+
setCurrentIndex(Math.max(0, Math.min(totalItems - 1, index)));
|
|
529
|
+
},
|
|
530
|
+
[totalItems]
|
|
531
|
+
);
|
|
532
|
+
const handleDragStart = React3.useCallback(
|
|
533
|
+
(clientX, clientY) => {
|
|
534
|
+
setIsDragging(true);
|
|
535
|
+
setDragStart({ x: clientX, y: clientY });
|
|
536
|
+
setDragOffset(0);
|
|
537
|
+
},
|
|
538
|
+
[]
|
|
539
|
+
);
|
|
540
|
+
const handleDragMove = React3.useCallback(
|
|
541
|
+
(clientX, clientY) => {
|
|
542
|
+
if (!isDragging) return;
|
|
543
|
+
const deltaX = clientX - dragStart.x;
|
|
544
|
+
const sensitivity = 0.5;
|
|
545
|
+
const newOffset = deltaX * sensitivity;
|
|
546
|
+
setDragOffset(newOffset);
|
|
547
|
+
},
|
|
548
|
+
[isDragging, dragStart.x]
|
|
549
|
+
);
|
|
550
|
+
const handleDragEnd = React3.useCallback(() => {
|
|
551
|
+
if (!isDragging) return;
|
|
552
|
+
const threshold = 50;
|
|
553
|
+
if (Math.abs(dragOffset) > threshold) {
|
|
554
|
+
if (dragOffset > 0) {
|
|
555
|
+
goToPrevious();
|
|
556
|
+
} else {
|
|
557
|
+
goToNext();
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
setIsDragging(false);
|
|
561
|
+
setDragOffset(0);
|
|
562
|
+
}, [isDragging, dragOffset, goToPrevious, goToNext]);
|
|
563
|
+
const handleMouseDown = React3.useCallback(
|
|
564
|
+
(e) => {
|
|
565
|
+
e.preventDefault();
|
|
566
|
+
handleDragStart(e.clientX, e.clientY);
|
|
567
|
+
},
|
|
568
|
+
[handleDragStart]
|
|
569
|
+
);
|
|
570
|
+
const handleMouseMove = React3.useCallback(
|
|
571
|
+
(e) => {
|
|
572
|
+
handleDragMove(e.clientX, e.clientY);
|
|
573
|
+
},
|
|
574
|
+
[handleDragMove]
|
|
575
|
+
);
|
|
576
|
+
const handleMouseUp = React3.useCallback(() => {
|
|
577
|
+
handleDragEnd();
|
|
578
|
+
}, [handleDragEnd]);
|
|
579
|
+
const handleTouchStart = React3.useCallback(
|
|
580
|
+
(e) => {
|
|
581
|
+
if (e.touches.length === 1) {
|
|
582
|
+
const touch = e.touches[0];
|
|
583
|
+
handleDragStart(touch.clientX, touch.clientY);
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
[handleDragStart]
|
|
587
|
+
);
|
|
588
|
+
const handleTouchMove = React3.useCallback(
|
|
589
|
+
(e) => {
|
|
590
|
+
if (e.touches.length === 1) {
|
|
591
|
+
e.preventDefault();
|
|
592
|
+
const touch = e.touches[0];
|
|
593
|
+
handleDragMove(touch.clientX, touch.clientY);
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
[handleDragMove]
|
|
597
|
+
);
|
|
598
|
+
const handleTouchEnd = React3.useCallback(() => {
|
|
599
|
+
handleDragEnd();
|
|
600
|
+
}, [handleDragEnd]);
|
|
601
|
+
React3.useEffect(() => {
|
|
602
|
+
const handleKeyDown = /* @__PURE__ */ __name((e) => {
|
|
603
|
+
if (e.key === "ArrowLeft") {
|
|
604
|
+
e.preventDefault();
|
|
605
|
+
goToPrevious();
|
|
606
|
+
} else if (e.key === "ArrowRight") {
|
|
607
|
+
e.preventDefault();
|
|
608
|
+
goToNext();
|
|
609
|
+
} else if (e.key >= "1" && e.key <= "9") {
|
|
610
|
+
const index = parseInt(e.key) - 1;
|
|
611
|
+
if (index < totalItems) {
|
|
612
|
+
goToIndex(index);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}, "handleKeyDown");
|
|
616
|
+
if (containerRef.current) {
|
|
617
|
+
containerRef.current.addEventListener("keydown", handleKeyDown);
|
|
618
|
+
return () => {
|
|
619
|
+
containerRef.current?.removeEventListener("keydown", handleKeyDown);
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
}, [goToPrevious, goToNext, goToIndex, totalItems]);
|
|
623
|
+
React3.useImperativeHandle(ref, () => containerRef.current);
|
|
624
|
+
const containerStyle = {
|
|
625
|
+
perspective: `${perspective}px`,
|
|
626
|
+
height: `${itemHeight + 100}px`
|
|
627
|
+
};
|
|
628
|
+
const carouselStyle = {
|
|
629
|
+
transform: `translateZ(-${radius}px) rotateY(${-currentIndex * (360 / totalItems) + dragOffset / 5}deg)`,
|
|
630
|
+
transition: isDragging ? "none" : "transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1)",
|
|
631
|
+
transformStyle: "preserve-3d"
|
|
632
|
+
};
|
|
633
|
+
return /* @__PURE__ */ jsxs(
|
|
634
|
+
"div",
|
|
635
|
+
{
|
|
636
|
+
ref: containerRef,
|
|
637
|
+
className: cn(
|
|
638
|
+
"relative w-full select-none focus:outline-none",
|
|
639
|
+
className
|
|
640
|
+
),
|
|
641
|
+
style: containerStyle,
|
|
642
|
+
onMouseEnter: () => setIsHovered(true),
|
|
643
|
+
onMouseLeave: () => setIsHovered(false),
|
|
644
|
+
onMouseDown: handleMouseDown,
|
|
645
|
+
onMouseMove: handleMouseMove,
|
|
646
|
+
onMouseUp: handleMouseUp,
|
|
647
|
+
onTouchStart: handleTouchStart,
|
|
648
|
+
onTouchMove: handleTouchMove,
|
|
649
|
+
onTouchEnd: handleTouchEnd,
|
|
650
|
+
tabIndex: 0,
|
|
651
|
+
...props,
|
|
652
|
+
children: [
|
|
653
|
+
/* @__PURE__ */ jsx(
|
|
654
|
+
"div",
|
|
655
|
+
{
|
|
656
|
+
className: "relative mx-auto",
|
|
657
|
+
style: {
|
|
658
|
+
width: `${itemWidth}px`,
|
|
659
|
+
height: `${itemHeight}px`,
|
|
660
|
+
transformStyle: "preserve-3d"
|
|
661
|
+
},
|
|
662
|
+
children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0", style: carouselStyle, children: items.map((item, index) => {
|
|
663
|
+
const angle = index / totalItems * 360;
|
|
664
|
+
const isCurrent = index === currentIndex;
|
|
665
|
+
const itemStyle = {
|
|
666
|
+
transform: `rotateY(${angle}deg) translateZ(${radius}px)`,
|
|
667
|
+
width: `${itemWidth}px`,
|
|
668
|
+
height: `${itemHeight}px`,
|
|
669
|
+
position: "absolute",
|
|
670
|
+
backfaceVisibility: "hidden",
|
|
671
|
+
transformStyle: "preserve-3d"
|
|
672
|
+
};
|
|
673
|
+
return /* @__PURE__ */ jsx(
|
|
674
|
+
"div",
|
|
675
|
+
{
|
|
676
|
+
className: cn(
|
|
677
|
+
"rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer",
|
|
678
|
+
"transition-all duration-300 transform-gpu will-change-transform",
|
|
679
|
+
isCurrent && "ring-2 ring-primary ring-offset-2"
|
|
680
|
+
),
|
|
681
|
+
style: itemStyle,
|
|
682
|
+
onClick: () => goToIndex(index),
|
|
683
|
+
children: /* @__PURE__ */ jsx("div", { className: "w-full h-full overflow-hidden rounded-lg", children: item.content })
|
|
684
|
+
},
|
|
685
|
+
item.id
|
|
686
|
+
);
|
|
687
|
+
}) })
|
|
688
|
+
}
|
|
689
|
+
),
|
|
690
|
+
showControls && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
691
|
+
/* @__PURE__ */ jsx(
|
|
692
|
+
"button",
|
|
693
|
+
{
|
|
694
|
+
className: cn(
|
|
695
|
+
"absolute left-4 top-1/2 -translate-y-1/2 z-10",
|
|
696
|
+
"p-2 rounded-full bg-background/80 backdrop-blur-sm",
|
|
697
|
+
"border shadow-lg hover:bg-background transition-all",
|
|
698
|
+
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
699
|
+
),
|
|
700
|
+
onClick: goToPrevious,
|
|
701
|
+
disabled: !infinite && currentIndex === 0,
|
|
702
|
+
"aria-label": "Previous item",
|
|
703
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "w-5 h-5" })
|
|
704
|
+
}
|
|
705
|
+
),
|
|
706
|
+
/* @__PURE__ */ jsx(
|
|
707
|
+
"button",
|
|
708
|
+
{
|
|
709
|
+
className: cn(
|
|
710
|
+
"absolute right-4 top-1/2 -translate-y-1/2 z-10",
|
|
711
|
+
"p-2 rounded-full bg-background/80 backdrop-blur-sm",
|
|
712
|
+
"border shadow-lg hover:bg-background transition-all",
|
|
713
|
+
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
714
|
+
),
|
|
715
|
+
onClick: goToNext,
|
|
716
|
+
disabled: !infinite && currentIndex === totalItems - 1,
|
|
717
|
+
"aria-label": "Next item",
|
|
718
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "w-5 h-5" })
|
|
719
|
+
}
|
|
720
|
+
)
|
|
721
|
+
] }),
|
|
722
|
+
/* @__PURE__ */ jsx("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 z-10", children: /* @__PURE__ */ jsx("div", { className: "flex space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg", children: items.map((_, index) => /* @__PURE__ */ jsx(
|
|
723
|
+
"button",
|
|
724
|
+
{
|
|
725
|
+
className: cn(
|
|
726
|
+
"w-2 h-2 rounded-full transition-all",
|
|
727
|
+
index === currentIndex ? "bg-primary scale-125" : "bg-muted-foreground/50 hover:bg-muted-foreground/75"
|
|
728
|
+
),
|
|
729
|
+
onClick: () => goToIndex(index),
|
|
730
|
+
"aria-label": `Go to item ${index + 1}`
|
|
731
|
+
},
|
|
732
|
+
index
|
|
733
|
+
)) }) }),
|
|
734
|
+
autoRotate && /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-10", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-sm", children: [
|
|
735
|
+
/* @__PURE__ */ jsx(
|
|
736
|
+
"div",
|
|
737
|
+
{
|
|
738
|
+
className: cn(
|
|
739
|
+
"w-2 h-2 rounded-full transition-all",
|
|
740
|
+
isHovered || isDragging ? "bg-orange-500" : "bg-green-500 animate-pulse"
|
|
741
|
+
)
|
|
742
|
+
}
|
|
743
|
+
),
|
|
744
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: isHovered || isDragging ? "Paused" : "Auto" })
|
|
745
|
+
] }) })
|
|
746
|
+
]
|
|
747
|
+
}
|
|
748
|
+
);
|
|
749
|
+
}
|
|
750
|
+
);
|
|
751
|
+
Carousel3D.displayName = "Carousel3D";
|
|
752
|
+
var Carousel3DCard = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
753
|
+
"div",
|
|
754
|
+
{
|
|
755
|
+
ref,
|
|
756
|
+
className: cn(
|
|
757
|
+
"w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20",
|
|
758
|
+
"border rounded-lg overflow-hidden group",
|
|
759
|
+
className
|
|
760
|
+
),
|
|
761
|
+
...props,
|
|
762
|
+
children
|
|
763
|
+
}
|
|
764
|
+
));
|
|
765
|
+
Carousel3DCard.displayName = "Carousel3DCard";
|
|
766
|
+
var Carousel3DCardImage = React3.forwardRef(({ className, alt, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
767
|
+
"img",
|
|
768
|
+
{
|
|
769
|
+
ref,
|
|
770
|
+
className: cn(
|
|
771
|
+
"w-full h-48 object-cover transition-transform duration-300",
|
|
772
|
+
"group-hover:scale-105",
|
|
773
|
+
className
|
|
774
|
+
),
|
|
775
|
+
alt,
|
|
776
|
+
...props
|
|
777
|
+
}
|
|
778
|
+
));
|
|
779
|
+
Carousel3DCardImage.displayName = "Carousel3DCardImage";
|
|
780
|
+
var Carousel3DCardContent = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
781
|
+
"div",
|
|
782
|
+
{
|
|
783
|
+
ref,
|
|
784
|
+
className: cn("flex-1 p-4 flex flex-col justify-between", className),
|
|
785
|
+
...props,
|
|
786
|
+
children
|
|
787
|
+
}
|
|
788
|
+
));
|
|
789
|
+
Carousel3DCardContent.displayName = "Carousel3DCardContent";
|
|
790
|
+
var Carousel3DCardTitle = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
791
|
+
"h3",
|
|
792
|
+
{
|
|
793
|
+
ref,
|
|
794
|
+
className: cn("font-semibold text-lg mb-2 line-clamp-2", className),
|
|
795
|
+
...props,
|
|
796
|
+
children
|
|
797
|
+
}
|
|
798
|
+
));
|
|
799
|
+
Carousel3DCardTitle.displayName = "Carousel3DCardTitle";
|
|
800
|
+
var Carousel3DCardDescription = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
801
|
+
"p",
|
|
802
|
+
{
|
|
803
|
+
ref,
|
|
804
|
+
className: cn("text-sm text-muted-foreground line-clamp-3 mb-4", className),
|
|
805
|
+
...props,
|
|
806
|
+
children
|
|
807
|
+
}
|
|
808
|
+
));
|
|
809
|
+
Carousel3DCardDescription.displayName = "Carousel3DCardDescription";
|
|
810
|
+
var Grid3D = React3.forwardRef(
|
|
811
|
+
({
|
|
812
|
+
items,
|
|
813
|
+
columns = 4,
|
|
814
|
+
rows = 3,
|
|
815
|
+
gap = 16,
|
|
816
|
+
perspective = 1e3,
|
|
817
|
+
rotateX = 25,
|
|
818
|
+
rotateY = 15,
|
|
819
|
+
cellHeight = 200,
|
|
820
|
+
cellWidth = 200,
|
|
821
|
+
isometric = false,
|
|
822
|
+
tiltOnHover = true,
|
|
823
|
+
staggerAnimation = true,
|
|
824
|
+
animationDelay = 100,
|
|
825
|
+
elevationOnHover = true,
|
|
826
|
+
maxElevation = 50,
|
|
827
|
+
className,
|
|
828
|
+
...props
|
|
829
|
+
}, ref) => {
|
|
830
|
+
const gridRef = React3.useRef(null);
|
|
831
|
+
const [hoveredIndex, setHoveredIndex] = React3.useState(null);
|
|
832
|
+
const [mousePosition, setMousePosition] = React3.useState({ x: 0, y: 0 });
|
|
833
|
+
const [isGridHovered, setIsGridHovered] = React3.useState(false);
|
|
834
|
+
const gridTransform = React3.useMemo(() => {
|
|
835
|
+
if (isometric) {
|
|
836
|
+
return `perspective(${perspective}px) rotateX(45deg) rotateY(45deg)`;
|
|
837
|
+
}
|
|
838
|
+
return `perspective(${perspective}px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
|
|
839
|
+
}, [isometric, perspective, rotateX, rotateY]);
|
|
840
|
+
const handleMouseMove = React3.useCallback(
|
|
841
|
+
(e) => {
|
|
842
|
+
if (!tiltOnHover || !gridRef.current) return;
|
|
843
|
+
const rect = gridRef.current.getBoundingClientRect();
|
|
844
|
+
const centerX = rect.left + rect.width / 2;
|
|
845
|
+
const centerY = rect.top + rect.height / 2;
|
|
846
|
+
const mouseX = (e.clientX - centerX) / (rect.width / 2);
|
|
847
|
+
const mouseY = (e.clientY - centerY) / (rect.height / 2);
|
|
848
|
+
setMousePosition({ x: mouseX * 10, y: mouseY * 10 });
|
|
849
|
+
},
|
|
850
|
+
[tiltOnHover]
|
|
851
|
+
);
|
|
852
|
+
const handleMouseEnter = React3.useCallback(() => {
|
|
853
|
+
setIsGridHovered(true);
|
|
854
|
+
}, []);
|
|
855
|
+
const handleMouseLeave = React3.useCallback(() => {
|
|
856
|
+
setIsGridHovered(false);
|
|
857
|
+
setMousePosition({ x: 0, y: 0 });
|
|
858
|
+
setHoveredIndex(null);
|
|
859
|
+
}, []);
|
|
860
|
+
React3.useImperativeHandle(ref, () => gridRef.current);
|
|
861
|
+
const containerStyle = {
|
|
862
|
+
perspective: `${perspective}px`,
|
|
863
|
+
transformStyle: "preserve-3d"
|
|
864
|
+
};
|
|
865
|
+
const gridStyle = {
|
|
866
|
+
display: "grid",
|
|
867
|
+
gridTemplateColumns: `repeat(${columns}, ${cellWidth}px)`,
|
|
868
|
+
gridTemplateRows: `repeat(${rows}, ${cellHeight}px)`,
|
|
869
|
+
gap: `${gap}px`,
|
|
870
|
+
transform: tiltOnHover && isGridHovered ? `${gridTransform} rotateX(${-mousePosition.y}deg) rotateY(${mousePosition.x}deg)` : gridTransform,
|
|
871
|
+
transition: "transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
872
|
+
transformStyle: "preserve-3d"
|
|
873
|
+
};
|
|
874
|
+
const getGridPosition = /* @__PURE__ */ __name((index) => {
|
|
875
|
+
const x = index % columns;
|
|
876
|
+
const y = Math.floor(index / columns);
|
|
877
|
+
return { x, y };
|
|
878
|
+
}, "getGridPosition");
|
|
879
|
+
const getStaggerDelay = /* @__PURE__ */ __name((index) => {
|
|
880
|
+
if (!staggerAnimation) return 0;
|
|
881
|
+
const { x, y } = getGridPosition(index);
|
|
882
|
+
return (x + y) * animationDelay;
|
|
883
|
+
}, "getStaggerDelay");
|
|
884
|
+
return /* @__PURE__ */ jsxs(
|
|
885
|
+
"div",
|
|
886
|
+
{
|
|
887
|
+
ref: gridRef,
|
|
888
|
+
className: cn("w-fit mx-auto", className),
|
|
889
|
+
style: containerStyle,
|
|
890
|
+
onMouseMove: handleMouseMove,
|
|
891
|
+
onMouseEnter: handleMouseEnter,
|
|
892
|
+
onMouseLeave: handleMouseLeave,
|
|
893
|
+
...props,
|
|
894
|
+
children: [
|
|
895
|
+
/* @__PURE__ */ jsx("div", { style: gridStyle, children: items.map((item, index) => {
|
|
896
|
+
const isHovered = hoveredIndex === index;
|
|
897
|
+
const { x, y } = getGridPosition(index);
|
|
898
|
+
const staggerDelay = getStaggerDelay(index);
|
|
899
|
+
const itemStyle = {
|
|
900
|
+
gridColumn: item.span ? `span ${item.span.x}` : void 0,
|
|
901
|
+
gridRow: item.span ? `span ${item.span.y}` : void 0,
|
|
902
|
+
transform: `translateZ(${(item.elevation || 0) + (isHovered && elevationOnHover ? maxElevation : 0)}px)`,
|
|
903
|
+
transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
904
|
+
transformStyle: "preserve-3d",
|
|
905
|
+
animationDelay: `${staggerDelay}ms`
|
|
906
|
+
};
|
|
907
|
+
return /* @__PURE__ */ jsxs(
|
|
908
|
+
"div",
|
|
909
|
+
{
|
|
910
|
+
className: cn(
|
|
911
|
+
"relative rounded-lg border bg-card text-card-foreground shadow-lg",
|
|
912
|
+
"transform-gpu will-change-transform cursor-pointer",
|
|
913
|
+
"transition-all duration-300 hover:shadow-xl",
|
|
914
|
+
staggerAnimation && "animate-in fade-in slide-in-from-bottom-4",
|
|
915
|
+
isHovered && "ring-2 ring-primary ring-offset-2"
|
|
916
|
+
),
|
|
917
|
+
style: itemStyle,
|
|
918
|
+
onMouseEnter: () => setHoveredIndex(index),
|
|
919
|
+
onMouseLeave: () => setHoveredIndex(null),
|
|
920
|
+
children: [
|
|
921
|
+
/* @__PURE__ */ jsx("div", { className: "w-full h-full overflow-hidden rounded-lg", children: item.content }),
|
|
922
|
+
(item.elevation || 0) > 0 && /* @__PURE__ */ jsx(
|
|
923
|
+
"div",
|
|
924
|
+
{
|
|
925
|
+
className: "absolute inset-0 -z-10 rounded-lg bg-black/20 blur-sm",
|
|
926
|
+
style: {
|
|
927
|
+
transform: `translateY(${(item.elevation || 0) / 2}px) scale(0.95)`
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
)
|
|
931
|
+
]
|
|
932
|
+
},
|
|
933
|
+
item.id
|
|
934
|
+
);
|
|
935
|
+
}) }),
|
|
936
|
+
isometric && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 pointer-events-none opacity-20", children: /* @__PURE__ */ jsx(
|
|
937
|
+
"div",
|
|
938
|
+
{
|
|
939
|
+
className: "grid border-dashed border-muted-foreground/30",
|
|
940
|
+
style: {
|
|
941
|
+
gridTemplateColumns: `repeat(${columns}, ${cellWidth}px)`,
|
|
942
|
+
gridTemplateRows: `repeat(${rows}, ${cellHeight}px)`,
|
|
943
|
+
gap: `${gap}px`,
|
|
944
|
+
transform: gridTransform,
|
|
945
|
+
transformStyle: "preserve-3d"
|
|
946
|
+
},
|
|
947
|
+
children: Array.from({ length: columns * rows }).map((_, index) => /* @__PURE__ */ jsx(
|
|
948
|
+
"div",
|
|
949
|
+
{
|
|
950
|
+
className: "border border-dashed border-muted-foreground/20 rounded-lg"
|
|
951
|
+
},
|
|
952
|
+
index
|
|
953
|
+
))
|
|
954
|
+
}
|
|
955
|
+
) })
|
|
956
|
+
]
|
|
957
|
+
}
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
);
|
|
961
|
+
Grid3D.displayName = "Grid3D";
|
|
962
|
+
var Grid3DCard = React3.forwardRef(
|
|
963
|
+
({
|
|
964
|
+
className,
|
|
965
|
+
title,
|
|
966
|
+
description,
|
|
967
|
+
image,
|
|
968
|
+
badge,
|
|
969
|
+
elevation = 0,
|
|
970
|
+
children,
|
|
971
|
+
...props
|
|
972
|
+
}, ref) => /* @__PURE__ */ jsxs(
|
|
973
|
+
"div",
|
|
974
|
+
{
|
|
975
|
+
ref,
|
|
976
|
+
className: cn(
|
|
977
|
+
"group relative w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20",
|
|
978
|
+
"border rounded-lg overflow-hidden",
|
|
979
|
+
className
|
|
980
|
+
),
|
|
981
|
+
style: {
|
|
982
|
+
transform: `translateZ(${elevation}px)`,
|
|
983
|
+
transformStyle: "preserve-3d"
|
|
984
|
+
},
|
|
985
|
+
...props,
|
|
986
|
+
children: [
|
|
987
|
+
image && /* @__PURE__ */ jsxs("div", { className: "relative h-32 overflow-hidden", children: [
|
|
988
|
+
/* @__PURE__ */ jsx(
|
|
989
|
+
"img",
|
|
990
|
+
{
|
|
991
|
+
src: image,
|
|
992
|
+
alt: title || "",
|
|
993
|
+
className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-110"
|
|
994
|
+
}
|
|
995
|
+
),
|
|
996
|
+
badge && /* @__PURE__ */ jsx("div", { className: "absolute top-2 right-2 px-2 py-1 text-xs rounded-full bg-primary text-primary-foreground", children: badge })
|
|
997
|
+
] }),
|
|
998
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-4 flex flex-col justify-between", children: [
|
|
999
|
+
title && /* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2 line-clamp-2 group-hover:text-primary transition-colors", children: title }),
|
|
1000
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground line-clamp-3 mb-4", children: description }),
|
|
1001
|
+
children && /* @__PURE__ */ jsx("div", { className: "mt-auto", children })
|
|
1002
|
+
] }),
|
|
1003
|
+
/* @__PURE__ */ jsx(
|
|
1004
|
+
"div",
|
|
1005
|
+
{
|
|
1006
|
+
className: "absolute inset-0 -z-10 rounded-lg bg-gradient-to-br from-muted/50 to-muted",
|
|
1007
|
+
style: {
|
|
1008
|
+
transform: "translateZ(-2px) scale(0.98)",
|
|
1009
|
+
transformStyle: "preserve-3d"
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
)
|
|
1013
|
+
]
|
|
1014
|
+
}
|
|
1015
|
+
)
|
|
1016
|
+
);
|
|
1017
|
+
Grid3DCard.displayName = "Grid3DCard";
|
|
1018
|
+
var Grid3DPreset = {
|
|
1019
|
+
Dashboard: React3.forwardRef(
|
|
1020
|
+
({ children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1021
|
+
Grid3D,
|
|
1022
|
+
{
|
|
1023
|
+
ref,
|
|
1024
|
+
columns: 4,
|
|
1025
|
+
rows: 3,
|
|
1026
|
+
cellWidth: 250,
|
|
1027
|
+
cellHeight: 200,
|
|
1028
|
+
gap: 20,
|
|
1029
|
+
perspective: 1200,
|
|
1030
|
+
rotateX: 20,
|
|
1031
|
+
rotateY: 10,
|
|
1032
|
+
tiltOnHover: true,
|
|
1033
|
+
elevationOnHover: true,
|
|
1034
|
+
maxElevation: 30,
|
|
1035
|
+
items: [],
|
|
1036
|
+
...props
|
|
1037
|
+
}
|
|
1038
|
+
)
|
|
1039
|
+
),
|
|
1040
|
+
Isometric: React3.forwardRef(
|
|
1041
|
+
({ children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1042
|
+
Grid3D,
|
|
1043
|
+
{
|
|
1044
|
+
ref,
|
|
1045
|
+
columns: 3,
|
|
1046
|
+
rows: 3,
|
|
1047
|
+
cellWidth: 180,
|
|
1048
|
+
cellHeight: 180,
|
|
1049
|
+
gap: 16,
|
|
1050
|
+
isometric: true,
|
|
1051
|
+
perspective: 1e3,
|
|
1052
|
+
staggerAnimation: true,
|
|
1053
|
+
animationDelay: 50,
|
|
1054
|
+
items: [],
|
|
1055
|
+
...props
|
|
1056
|
+
}
|
|
1057
|
+
)
|
|
1058
|
+
),
|
|
1059
|
+
Gallery: React3.forwardRef(
|
|
1060
|
+
({ children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1061
|
+
Grid3D,
|
|
1062
|
+
{
|
|
1063
|
+
ref,
|
|
1064
|
+
columns: 5,
|
|
1065
|
+
rows: 2,
|
|
1066
|
+
cellWidth: 200,
|
|
1067
|
+
cellHeight: 280,
|
|
1068
|
+
gap: 24,
|
|
1069
|
+
perspective: 1500,
|
|
1070
|
+
rotateX: 15,
|
|
1071
|
+
rotateY: 5,
|
|
1072
|
+
tiltOnHover: true,
|
|
1073
|
+
elevationOnHover: true,
|
|
1074
|
+
maxElevation: 40,
|
|
1075
|
+
items: [],
|
|
1076
|
+
...props
|
|
1077
|
+
}
|
|
1078
|
+
)
|
|
1079
|
+
),
|
|
1080
|
+
Compact: React3.forwardRef(
|
|
1081
|
+
({ children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1082
|
+
Grid3D,
|
|
1083
|
+
{
|
|
1084
|
+
ref,
|
|
1085
|
+
columns: 6,
|
|
1086
|
+
rows: 4,
|
|
1087
|
+
cellWidth: 120,
|
|
1088
|
+
cellHeight: 120,
|
|
1089
|
+
gap: 8,
|
|
1090
|
+
perspective: 800,
|
|
1091
|
+
rotateX: 30,
|
|
1092
|
+
rotateY: 20,
|
|
1093
|
+
tiltOnHover: true,
|
|
1094
|
+
staggerAnimation: true,
|
|
1095
|
+
animationDelay: 30,
|
|
1096
|
+
items: [],
|
|
1097
|
+
...props
|
|
1098
|
+
}
|
|
1099
|
+
)
|
|
1100
|
+
)
|
|
1101
|
+
};
|
|
1102
|
+
Grid3DPreset.Dashboard.displayName = "Grid3DPreset.Dashboard";
|
|
1103
|
+
Grid3DPreset.Isometric.displayName = "Grid3DPreset.Isometric";
|
|
1104
|
+
Grid3DPreset.Gallery.displayName = "Grid3DPreset.Gallery";
|
|
1105
|
+
Grid3DPreset.Compact.displayName = "Grid3DPreset.Compact";
|
|
1106
|
+
var Grid3DAuto = React3.forwardRef(
|
|
1107
|
+
({
|
|
1108
|
+
items,
|
|
1109
|
+
minCellWidth = 200,
|
|
1110
|
+
maxCellWidth = 300,
|
|
1111
|
+
aspectRatio = 1,
|
|
1112
|
+
...props
|
|
1113
|
+
}, ref) => {
|
|
1114
|
+
const [dimensions, setDimensions] = React3.useState({ columns: 3, rows: 2 });
|
|
1115
|
+
React3.useEffect(() => {
|
|
1116
|
+
const itemCount = items.length;
|
|
1117
|
+
const columns = Math.ceil(Math.sqrt(itemCount));
|
|
1118
|
+
const rows = Math.ceil(itemCount / columns);
|
|
1119
|
+
setDimensions({ columns, rows });
|
|
1120
|
+
}, [items.length]);
|
|
1121
|
+
const cellWidth = Math.min(maxCellWidth, Math.max(minCellWidth, 200));
|
|
1122
|
+
const cellHeight = cellWidth / aspectRatio;
|
|
1123
|
+
return /* @__PURE__ */ jsx(
|
|
1124
|
+
Grid3D,
|
|
1125
|
+
{
|
|
1126
|
+
ref,
|
|
1127
|
+
items,
|
|
1128
|
+
columns: dimensions.columns,
|
|
1129
|
+
rows: dimensions.rows,
|
|
1130
|
+
cellWidth,
|
|
1131
|
+
cellHeight,
|
|
1132
|
+
...props
|
|
1133
|
+
}
|
|
1134
|
+
);
|
|
1135
|
+
}
|
|
1136
|
+
);
|
|
1137
|
+
Grid3DAuto.displayName = "Grid3DAuto";
|
|
1138
|
+
var marquee3DVariants = cva(
|
|
1139
|
+
[
|
|
1140
|
+
"relative overflow-hidden whitespace-nowrap",
|
|
1141
|
+
"transform-gpu will-change-transform",
|
|
1142
|
+
"[perspective:1000px]"
|
|
1143
|
+
],
|
|
1144
|
+
{
|
|
1145
|
+
variants: {
|
|
1146
|
+
variant: {
|
|
1147
|
+
default: [
|
|
1148
|
+
"bg-background text-foreground",
|
|
1149
|
+
"[&_.marquee-content]:text-current"
|
|
1150
|
+
],
|
|
1151
|
+
neon: [
|
|
1152
|
+
"bg-black text-cyan-400",
|
|
1153
|
+
"[&_.marquee-content]:text-cyan-400",
|
|
1154
|
+
"[&_.marquee-content]:drop-shadow-[0_0_10px_currentColor]",
|
|
1155
|
+
"[&_.marquee-content]:animate-pulse"
|
|
1156
|
+
],
|
|
1157
|
+
rainbow: [
|
|
1158
|
+
"bg-black",
|
|
1159
|
+
"[&_.marquee-content]:bg-gradient-to-r [&_.marquee-content]:from-red-500 [&_.marquee-content]:via-yellow-500 [&_.marquee-content]:via-green-500 [&_.marquee-content]:via-blue-500 [&_.marquee-content]:to-purple-500",
|
|
1160
|
+
"[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"
|
|
1161
|
+
],
|
|
1162
|
+
metallic: [
|
|
1163
|
+
"bg-slate-900",
|
|
1164
|
+
"[&_.marquee-content]:bg-gradient-to-b [&_.marquee-content]:from-gray-200 [&_.marquee-content]:via-gray-400 [&_.marquee-content]:to-gray-600",
|
|
1165
|
+
"[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"
|
|
1166
|
+
],
|
|
1167
|
+
fire: [
|
|
1168
|
+
"bg-black",
|
|
1169
|
+
"[&_.marquee-content]:bg-gradient-to-t [&_.marquee-content]:from-red-600 [&_.marquee-content]:via-orange-500 [&_.marquee-content]:to-yellow-400",
|
|
1170
|
+
"[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent",
|
|
1171
|
+
"[&_.marquee-content]:drop-shadow-[0_0_20px_#ff6600]"
|
|
1172
|
+
],
|
|
1173
|
+
glass: [
|
|
1174
|
+
"bg-white/10 backdrop-blur-sm",
|
|
1175
|
+
"[&_.marquee-content]:text-white/90",
|
|
1176
|
+
"[&_.marquee-content]:drop-shadow-[0_0_10px_rgba(255,255,255,0.3)]"
|
|
1177
|
+
]
|
|
1178
|
+
},
|
|
1179
|
+
size: {
|
|
1180
|
+
sm: "h-8 text-sm [&_.marquee-content]:py-1",
|
|
1181
|
+
default: "h-12 text-base [&_.marquee-content]:py-2",
|
|
1182
|
+
lg: "h-16 text-lg [&_.marquee-content]:py-3",
|
|
1183
|
+
xl: "h-20 text-xl [&_.marquee-content]:py-4",
|
|
1184
|
+
"2xl": "h-24 text-2xl [&_.marquee-content]:py-5",
|
|
1185
|
+
"3xl": "h-32 text-3xl [&_.marquee-content]:py-6"
|
|
1186
|
+
},
|
|
1187
|
+
direction: {
|
|
1188
|
+
left: "",
|
|
1189
|
+
right: "",
|
|
1190
|
+
up: "flex-col",
|
|
1191
|
+
down: "flex-col"
|
|
1192
|
+
},
|
|
1193
|
+
perspective: {
|
|
1194
|
+
none: "[perspective:none]",
|
|
1195
|
+
sm: "[perspective:500px]",
|
|
1196
|
+
default: "[perspective:1000px]",
|
|
1197
|
+
lg: "[perspective:1500px]",
|
|
1198
|
+
xl: "[perspective:2000px]"
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
defaultVariants: {
|
|
1202
|
+
variant: "default",
|
|
1203
|
+
size: "default",
|
|
1204
|
+
direction: "left",
|
|
1205
|
+
perspective: "default"
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
);
|
|
1209
|
+
var Marquee3D = React3.forwardRef(
|
|
1210
|
+
({
|
|
1211
|
+
className,
|
|
1212
|
+
variant,
|
|
1213
|
+
size,
|
|
1214
|
+
direction = "left",
|
|
1215
|
+
perspective,
|
|
1216
|
+
children,
|
|
1217
|
+
speed = 50,
|
|
1218
|
+
pauseOnHover = false,
|
|
1219
|
+
reverse = false,
|
|
1220
|
+
repeat = 5,
|
|
1221
|
+
gap = 0,
|
|
1222
|
+
rotateX = 0,
|
|
1223
|
+
rotateY = 0,
|
|
1224
|
+
rotateZ = 0,
|
|
1225
|
+
autoFill = false,
|
|
1226
|
+
gradient = false,
|
|
1227
|
+
gradientColor = "#ffffff",
|
|
1228
|
+
gradientWidth = 200,
|
|
1229
|
+
style,
|
|
1230
|
+
...props
|
|
1231
|
+
}, ref) => {
|
|
1232
|
+
const [containerWidth, setContainerWidth] = React3.useState(0);
|
|
1233
|
+
const [contentWidth, setContentWidth] = React3.useState(0);
|
|
1234
|
+
const containerRef = React3.useRef(null);
|
|
1235
|
+
const contentRef = React3.useRef(null);
|
|
1236
|
+
React3.useEffect(() => {
|
|
1237
|
+
const measureDimensions = /* @__PURE__ */ __name(() => {
|
|
1238
|
+
if (containerRef.current && contentRef.current) {
|
|
1239
|
+
const containerRect = containerRef.current.getBoundingClientRect();
|
|
1240
|
+
const contentRect = contentRef.current.getBoundingClientRect();
|
|
1241
|
+
if (direction === "left" || direction === "right") {
|
|
1242
|
+
setContainerWidth(containerRect.width);
|
|
1243
|
+
setContentWidth(contentRect.width);
|
|
1244
|
+
} else {
|
|
1245
|
+
setContainerWidth(containerRect.height);
|
|
1246
|
+
setContentWidth(contentRect.height);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}, "measureDimensions");
|
|
1250
|
+
measureDimensions();
|
|
1251
|
+
window.addEventListener("resize", measureDimensions);
|
|
1252
|
+
return () => window.removeEventListener("resize", measureDimensions);
|
|
1253
|
+
}, [direction, children]);
|
|
1254
|
+
const duration = React3.useMemo(() => {
|
|
1255
|
+
if (contentWidth === 0) return 20;
|
|
1256
|
+
return contentWidth / speed;
|
|
1257
|
+
}, [contentWidth, speed]);
|
|
1258
|
+
const actualRepeat = React3.useMemo(() => {
|
|
1259
|
+
if (autoFill && containerWidth > 0 && contentWidth > 0) {
|
|
1260
|
+
return Math.ceil(containerWidth / contentWidth) + 2;
|
|
1261
|
+
}
|
|
1262
|
+
return repeat;
|
|
1263
|
+
}, [autoFill, containerWidth, contentWidth, repeat]);
|
|
1264
|
+
const getAnimationProps = /* @__PURE__ */ __name(() => {
|
|
1265
|
+
const distance = contentWidth + gap;
|
|
1266
|
+
let animateProps = {};
|
|
1267
|
+
if (direction === "left") {
|
|
1268
|
+
animateProps = {
|
|
1269
|
+
x: reverse ? [distance, -distance] : [-distance, distance]
|
|
1270
|
+
};
|
|
1271
|
+
} else if (direction === "right") {
|
|
1272
|
+
animateProps = {
|
|
1273
|
+
x: reverse ? [-distance, distance] : [distance, -distance]
|
|
1274
|
+
};
|
|
1275
|
+
} else if (direction === "up") {
|
|
1276
|
+
animateProps = {
|
|
1277
|
+
y: reverse ? [distance, -distance] : [-distance, distance]
|
|
1278
|
+
};
|
|
1279
|
+
} else if (direction === "down") {
|
|
1280
|
+
animateProps = {
|
|
1281
|
+
y: reverse ? [-distance, distance] : [distance, -distance]
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
return {
|
|
1285
|
+
animate: animateProps,
|
|
1286
|
+
transition: {
|
|
1287
|
+
duration,
|
|
1288
|
+
ease: "linear",
|
|
1289
|
+
repeat: Infinity
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
}, "getAnimationProps");
|
|
1293
|
+
const transform3D = `perspective(1000px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) rotateZ(${rotateZ}deg)`;
|
|
1294
|
+
const gradientMask = gradient ? {
|
|
1295
|
+
maskImage: `linear-gradient(to right, transparent, ${gradientColor} ${gradientWidth}px, ${gradientColor} calc(100% - ${gradientWidth}px), transparent)`,
|
|
1296
|
+
WebkitMaskImage: `linear-gradient(to right, transparent, ${gradientColor} ${gradientWidth}px, ${gradientColor} calc(100% - ${gradientWidth}px), transparent)`
|
|
1297
|
+
} : {};
|
|
1298
|
+
return /* @__PURE__ */ jsx(
|
|
1299
|
+
"div",
|
|
1300
|
+
{
|
|
1301
|
+
ref: containerRef,
|
|
1302
|
+
className: cn(
|
|
1303
|
+
marquee3DVariants({ variant, size, direction, perspective }),
|
|
1304
|
+
"flex items-center",
|
|
1305
|
+
direction === "up" || direction === "down" ? "flex-col" : "flex-row",
|
|
1306
|
+
className
|
|
1307
|
+
),
|
|
1308
|
+
style: {
|
|
1309
|
+
...style,
|
|
1310
|
+
transform: transform3D,
|
|
1311
|
+
...gradientMask
|
|
1312
|
+
},
|
|
1313
|
+
...props,
|
|
1314
|
+
children: /* @__PURE__ */ jsx(
|
|
1315
|
+
motion.div,
|
|
1316
|
+
{
|
|
1317
|
+
ref: contentRef,
|
|
1318
|
+
className: cn(
|
|
1319
|
+
"marquee-content flex shrink-0 font-bold",
|
|
1320
|
+
direction === "up" || direction === "down" ? "flex-col" : "flex-row",
|
|
1321
|
+
pauseOnHover && "hover:[animation-play-state:paused]"
|
|
1322
|
+
),
|
|
1323
|
+
style: {
|
|
1324
|
+
gap: `${gap}px`
|
|
1325
|
+
},
|
|
1326
|
+
...getAnimationProps(),
|
|
1327
|
+
children: Array.from({ length: actualRepeat }).map((_, index) => /* @__PURE__ */ jsxs(React3.Fragment, { children: [
|
|
1328
|
+
/* @__PURE__ */ jsx(
|
|
1329
|
+
"div",
|
|
1330
|
+
{
|
|
1331
|
+
className: cn(
|
|
1332
|
+
"flex shrink-0 items-center justify-center",
|
|
1333
|
+
direction === "up" || direction === "down" ? "flex-col" : "flex-row"
|
|
1334
|
+
),
|
|
1335
|
+
style: {
|
|
1336
|
+
transform: `rotateX(${rotateX}deg) rotateY(${rotateY}deg) rotateZ(${rotateZ}deg)`,
|
|
1337
|
+
transformStyle: "preserve-3d"
|
|
1338
|
+
},
|
|
1339
|
+
children
|
|
1340
|
+
}
|
|
1341
|
+
),
|
|
1342
|
+
index < actualRepeat - 1 && gap > 0 && /* @__PURE__ */ jsx(
|
|
1343
|
+
"div",
|
|
1344
|
+
{
|
|
1345
|
+
style: {
|
|
1346
|
+
width: direction === "up" || direction === "down" ? "100%" : `${gap}px`,
|
|
1347
|
+
height: direction === "up" || direction === "down" ? `${gap}px` : "100%"
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
)
|
|
1351
|
+
] }, index))
|
|
1352
|
+
}
|
|
1353
|
+
)
|
|
1354
|
+
}
|
|
1355
|
+
);
|
|
1356
|
+
}
|
|
1357
|
+
);
|
|
1358
|
+
Marquee3D.displayName = "Marquee3D";
|
|
1359
|
+
var Marquee3DPreset = {
|
|
1360
|
+
Hero: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
1361
|
+
Marquee3D,
|
|
1362
|
+
{
|
|
1363
|
+
ref,
|
|
1364
|
+
variant: "rainbow",
|
|
1365
|
+
size: "3xl",
|
|
1366
|
+
speed: 30,
|
|
1367
|
+
rotateX: -10,
|
|
1368
|
+
gradient: true,
|
|
1369
|
+
...props
|
|
1370
|
+
}
|
|
1371
|
+
)),
|
|
1372
|
+
Neon: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
1373
|
+
Marquee3D,
|
|
1374
|
+
{
|
|
1375
|
+
ref,
|
|
1376
|
+
variant: "neon",
|
|
1377
|
+
size: "xl",
|
|
1378
|
+
speed: 40,
|
|
1379
|
+
rotateY: 5,
|
|
1380
|
+
pauseOnHover: true,
|
|
1381
|
+
...props
|
|
1382
|
+
}
|
|
1383
|
+
)),
|
|
1384
|
+
Metallic: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
1385
|
+
Marquee3D,
|
|
1386
|
+
{
|
|
1387
|
+
ref,
|
|
1388
|
+
variant: "metallic",
|
|
1389
|
+
size: "lg",
|
|
1390
|
+
speed: 35,
|
|
1391
|
+
rotateX: -5,
|
|
1392
|
+
rotateY: 2,
|
|
1393
|
+
gradient: true,
|
|
1394
|
+
gradientColor: "#c4c4c4",
|
|
1395
|
+
...props
|
|
1396
|
+
}
|
|
1397
|
+
)),
|
|
1398
|
+
Fire: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
1399
|
+
Marquee3D,
|
|
1400
|
+
{
|
|
1401
|
+
ref,
|
|
1402
|
+
variant: "fire",
|
|
1403
|
+
size: "2xl",
|
|
1404
|
+
speed: 60,
|
|
1405
|
+
rotateZ: 1,
|
|
1406
|
+
gradient: true,
|
|
1407
|
+
gradientColor: "#ff6600",
|
|
1408
|
+
...props
|
|
1409
|
+
}
|
|
1410
|
+
)),
|
|
1411
|
+
Glass: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
1412
|
+
Marquee3D,
|
|
1413
|
+
{
|
|
1414
|
+
ref,
|
|
1415
|
+
variant: "glass",
|
|
1416
|
+
size: "lg",
|
|
1417
|
+
speed: 25,
|
|
1418
|
+
rotateX: -8,
|
|
1419
|
+
pauseOnHover: true,
|
|
1420
|
+
gradient: true,
|
|
1421
|
+
gradientColor: "rgba(255,255,255,0.9)",
|
|
1422
|
+
...props
|
|
1423
|
+
}
|
|
1424
|
+
))
|
|
1425
|
+
};
|
|
1426
|
+
Marquee3DPreset.Hero.displayName = "Marquee3DPreset.Hero";
|
|
1427
|
+
Marquee3DPreset.Neon.displayName = "Marquee3DPreset.Neon";
|
|
1428
|
+
Marquee3DPreset.Metallic.displayName = "Marquee3DPreset.Metallic";
|
|
1429
|
+
Marquee3DPreset.Fire.displayName = "Marquee3DPreset.Fire";
|
|
1430
|
+
Marquee3DPreset.Glass.displayName = "Marquee3DPreset.Glass";
|
|
1431
|
+
var Marquee3DFloating = React3.forwardRef(({ children, floatIntensity = 10, floatSpeed = 3, ...props }, ref) => {
|
|
1432
|
+
const text = typeof children === "string" ? children : "";
|
|
1433
|
+
return /* @__PURE__ */ jsx(Marquee3D, { ref, ...props, children: text ? /* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: text.split("").map((char, index) => /* @__PURE__ */ jsx(
|
|
1434
|
+
motion.span,
|
|
1435
|
+
{
|
|
1436
|
+
className: "inline-block",
|
|
1437
|
+
animate: {
|
|
1438
|
+
y: [0, -floatIntensity, 0],
|
|
1439
|
+
rotateX: [0, 5, 0],
|
|
1440
|
+
rotateY: [0, 2, 0]
|
|
1441
|
+
},
|
|
1442
|
+
transition: {
|
|
1443
|
+
duration: floatSpeed,
|
|
1444
|
+
ease: "easeInOut",
|
|
1445
|
+
repeat: Infinity,
|
|
1446
|
+
delay: index * 0.1
|
|
1447
|
+
},
|
|
1448
|
+
children: char === " " ? "\xA0" : char
|
|
1449
|
+
},
|
|
1450
|
+
index
|
|
1451
|
+
)) }) : children });
|
|
1452
|
+
});
|
|
1453
|
+
Marquee3DFloating.displayName = "Marquee3DFloating";
|
|
1454
|
+
var Pin3D = React3.forwardRef(
|
|
1455
|
+
({ className, title, href, children, ...props }, ref) => {
|
|
1456
|
+
return /* @__PURE__ */ jsxs(
|
|
1457
|
+
"div",
|
|
1458
|
+
{
|
|
1459
|
+
ref,
|
|
1460
|
+
className: cn("group/pin relative cursor-pointer", className),
|
|
1461
|
+
...props,
|
|
1462
|
+
children: [
|
|
1463
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 z-10 flex h-full w-full items-center justify-center opacity-0 transition duration-500 group-hover/pin:opacity-100", children: /* @__PURE__ */ jsx("div", { className: "relative flex h-full w-full items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-white opacity-0 transition duration-500 group-hover/pin:opacity-50" }) }) }),
|
|
1464
|
+
/* @__PURE__ */ jsx("div", { className: "transform-gpu transition duration-500 group-hover/pin:scale-95", children })
|
|
1465
|
+
]
|
|
1466
|
+
}
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1469
|
+
);
|
|
1470
|
+
Pin3D.displayName = "Pin3D";
|
|
1471
|
+
|
|
1472
|
+
export { Button3D, Button3DLoading, Button3DPreset, Card3D, Card3DContent, Card3DDescription, Card3DFooter, Card3DHeader, Card3DTitle, Carousel3D, Carousel3DCard, Carousel3DCardContent, Carousel3DCardDescription, Carousel3DCardImage, Carousel3DCardTitle, Grid3D, Grid3DAuto, Grid3DCard, Grid3DPreset, Marquee3D, Marquee3DFloating, Marquee3DPreset, Pin3D, button3DVariants, marquee3DVariants };
|