@luxfi/ui 8.2.6 → 8.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/3d-button.cjs +1 -1
- package/dist/3d-button.js +1 -1
- package/dist/3d-card.cjs +1 -1
- package/dist/3d-card.js +1 -1
- package/dist/3d-carousel.cjs +1 -1
- package/dist/3d-carousel.js +1 -1
- package/dist/3d-grid.cjs +1 -1
- package/dist/3d-grid.js +1 -1
- package/dist/3d-marquee.cjs +1 -1
- package/dist/3d-marquee.js +1 -1
- package/dist/3d-model-viewer.cjs +26 -422
- package/dist/3d-model-viewer.js +21 -417
- package/dist/3d-pin.cjs +1 -1
- package/dist/3d-pin.js +1 -1
- package/dist/3d-scene.cjs +1 -1
- package/dist/3d-scene.js +1 -1
- package/dist/3d-text.cjs +1 -1
- package/dist/3d-text.js +1 -1
- package/dist/accordion.cjs +4 -12
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.js +3 -12
- package/dist/advanced-chart.cjs +1 -1
- package/dist/advanced-chart.js +1 -1
- package/dist/advanced-navigation-bar.cjs +6 -402
- package/dist/advanced-navigation-bar.js +6 -402
- package/dist/ai-actions.cjs +1 -1
- package/dist/ai-actions.js +1 -1
- package/dist/ai-agents.cjs +46 -891
- package/dist/ai-agents.js +9 -835
- package/dist/ai-assistant.cjs +14 -741
- package/dist/ai-assistant.js +11 -739
- package/dist/ai-chat.cjs +25 -771
- package/dist/ai-chat.js +19 -766
- package/dist/ai-code.cjs +68 -924
- package/dist/ai-code.js +50 -906
- package/dist/ai-model-selector-navigation-bar.cjs +1 -1
- package/dist/ai-model-selector-navigation-bar.js +1 -1
- package/dist/ai-models.cjs +1 -1
- package/dist/ai-models.js +1 -1
- package/dist/ai-playground.cjs +26 -802
- package/dist/ai-playground.js +19 -796
- package/dist/ai-tools.cjs +23 -768
- package/dist/ai-tools.js +16 -762
- package/dist/ai-vision.cjs +42 -994
- package/dist/ai-vision.js +31 -984
- package/dist/ai-voice-settings.cjs +36 -1007
- package/dist/ai-voice-settings.js +33 -1005
- package/dist/ai-voice.cjs +52 -1025
- package/dist/ai-voice.js +10 -964
- package/dist/alert.cjs +12 -131
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +9 -129
- package/dist/android.cjs +0 -1
- package/dist/android.js +0 -1
- package/dist/animated-background.cjs +1 -1
- package/dist/animated-background.js +1 -1
- package/dist/animated-beam.cjs +1 -1
- package/dist/animated-beam.js +1 -1
- package/dist/animated-cursor.cjs +1 -1
- package/dist/animated-cursor.js +1 -1
- package/dist/animated-icon.cjs +1 -1
- package/dist/animated-icon.js +1 -1
- package/dist/animated-list.cjs +1 -1
- package/dist/animated-list.js +1 -1
- package/dist/animated-number.cjs +1 -1
- package/dist/animated-number.js +1 -1
- package/dist/animated-testimonials.cjs +1 -1
- package/dist/animated-testimonials.js +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/animated-tooltip.cjs +1 -1
- package/dist/animated-tooltip.js +1 -1
- package/dist/announcement.cjs +7 -403
- package/dist/announcement.js +7 -403
- package/dist/app-switcher-navigation-bar.cjs +6 -402
- package/dist/app-switcher-navigation-bar.js +6 -402
- package/dist/apple-cards-carousel.cjs +85 -481
- package/dist/apple-cards-carousel.js +20 -416
- package/dist/apple-hello-effect.cjs +1 -1
- package/dist/apple-hello-effect.js +1 -1
- package/dist/auth.cjs +11 -388
- package/dist/auth.js +8 -386
- package/dist/avatar.cjs +3 -10
- package/dist/avatar.js +3 -11
- package/dist/badge.cjs +8 -229
- package/dist/badge.js +5 -211
- package/dist/bank.cjs +1 -1
- package/dist/bank.js +1 -1
- package/dist/banner.cjs +1 -1
- package/dist/banner.js +1 -1
- package/dist/breadcrumb-and-filters-navigation-bar.cjs +1 -1
- package/dist/breadcrumb-and-filters-navigation-bar.js +1 -1
- package/dist/breadcrumb-navigation-bar.cjs +1 -1
- package/dist/breadcrumb-navigation-bar.js +1 -1
- package/dist/button.cjs +15 -69
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +13 -67
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/centered-logo-navigation-bar.cjs +1 -1
- package/dist/centered-logo-navigation-bar.js +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.js +1 -1
- package/dist/checkbox.cjs +1 -2
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.js +1 -2
- package/dist/choicebox.cjs +1 -1
- package/dist/choicebox.js +1 -1
- package/dist/chrome.cjs +30 -494
- package/dist/chrome.js +10 -475
- package/dist/close-button.cjs +0 -1
- package/dist/close-button.js +0 -1
- package/dist/code-block.cjs +17 -665
- package/dist/code-block.js +14 -663
- package/dist/code-compare.cjs +29 -1303
- package/dist/code-compare.js +19 -1294
- package/dist/code-diff.cjs +22 -670
- package/dist/code-diff.js +18 -667
- package/dist/code-editor.cjs +14 -410
- package/dist/code-editor.js +13 -409
- package/dist/code-explorer.cjs +15 -457
- package/dist/code-explorer.js +14 -457
- package/dist/code-preview.cjs +32 -984
- package/dist/code-preview.js +24 -977
- package/dist/code-snippet.cjs +20 -668
- package/dist/code-snippet.js +15 -664
- package/dist/code-tabs.cjs +1 -1
- package/dist/code-tabs.js +1 -1
- package/dist/code-terminal.cjs +25 -486
- package/dist/code-terminal.js +20 -482
- package/dist/collaboration-navigation-bar.cjs +1 -1
- package/dist/collaboration-navigation-bar.js +1 -1
- package/dist/collapsible.cjs +14 -349
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.js +12 -332
- package/dist/color-mode.cjs +1 -1
- package/dist/color-mode.js +1 -1
- package/dist/color-picker.cjs +9 -451
- package/dist/color-picker.js +8 -451
- package/dist/combobox.cjs +7 -403
- package/dist/combobox.js +7 -403
- package/dist/communication-navigation-bar.cjs +8 -404
- package/dist/communication-navigation-bar.js +6 -402
- package/dist/company-profile.cjs +1 -1
- package/dist/company-profile.js +1 -1
- package/dist/comparison.cjs +1 -1
- package/dist/comparison.js +1 -1
- package/dist/context-switcher-navigation-bar.cjs +1 -1
- package/dist/context-switcher-navigation-bar.js +1 -1
- package/dist/credit-card.cjs +1 -1
- package/dist/credit-card.js +1 -1
- package/dist/crypto-screener.cjs +1 -1
- package/dist/crypto-screener.js +1 -1
- package/dist/cursor.cjs +1 -1
- package/dist/cursor.js +1 -1
- package/dist/dashboard-navigation-bar.cjs +7 -403
- package/dist/dashboard-navigation-bar.js +6 -402
- package/dist/dialog-stack.cjs +6 -402
- package/dist/dialog-stack.js +6 -402
- package/dist/dialog.cjs +14 -72
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +14 -72
- package/dist/direction.cjs +1 -1
- package/dist/direction.js +1 -1
- package/dist/dock.cjs +1 -1
- package/dist/dock.js +1 -1
- package/dist/drawer.cjs +24 -101
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +20 -98
- package/dist/dropzone.cjs +1 -1
- package/dist/dropzone.js +1 -1
- package/dist/e-commerce-navigation-bar.cjs +8 -404
- package/dist/e-commerce-navigation-bar.js +6 -402
- package/dist/editor.cjs +10 -406
- package/dist/editor.js +7 -403
- package/dist/empty-state.cjs +0 -1
- package/dist/empty-state.js +0 -1
- package/dist/empty.cjs +0 -1
- package/dist/empty.js +0 -1
- package/dist/engine.cjs +0 -1
- package/dist/engine.js +0 -1
- package/dist/expiration-selector.cjs +1 -1
- package/dist/expiration-selector.js +1 -1
- package/dist/field.cjs +0 -1
- package/dist/field.js +0 -1
- package/dist/financials.cjs +1 -1
- package/dist/financials.js +1 -1
- package/dist/forex-screener.cjs +1 -1
- package/dist/forex-screener.js +1 -1
- package/dist/gantt.cjs +1 -1
- package/dist/gantt.js +1 -1
- package/dist/greeks-display.cjs +1 -1
- package/dist/greeks-display.js +1 -1
- package/dist/grid-pattern.cjs +1 -1
- package/dist/grid-pattern.js +1 -1
- package/dist/gui.cjs +0 -1
- package/dist/gui.js +0 -1
- package/dist/heading.cjs +0 -1
- package/dist/heading.js +0 -1
- package/dist/hooks/use-mobile.cjs +1 -0
- package/dist/hooks/use-mobile.js +1 -0
- package/dist/iam.cjs +2 -123
- package/dist/iam.js +1 -122
- package/dist/icon-button.cjs +2 -57
- package/dist/icon-button.js +1 -56
- package/dist/icon-navigation-bar.cjs +1 -1
- package/dist/icon-navigation-bar.js +1 -1
- package/dist/identity.cjs +29 -243
- package/dist/identity.js +21 -236
- package/dist/image-crop.cjs +11 -407
- package/dist/image-crop.js +8 -404
- package/dist/image-zoom.cjs +1 -1
- package/dist/image-zoom.js +1 -1
- package/dist/image.cjs +15 -85
- package/dist/image.d.ts.map +1 -1
- package/dist/image.js +14 -69
- package/dist/index.cjs +1868 -38771
- package/dist/index.js +174 -38321
- package/dist/ink.cjs +0 -1
- package/dist/ink.js +0 -1
- package/dist/input-group.cjs +4 -12
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.js +3 -12
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +1 -1
- package/dist/input.cjs +1 -2
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +1 -2
- package/dist/iphone-15-pro.cjs +1 -1
- package/dist/iphone-15-pro.js +1 -1
- package/dist/item.cjs +2 -28
- package/dist/item.js +1 -23
- package/dist/kanban.cjs +26 -752
- package/dist/kanban.js +16 -743
- package/dist/kbd.cjs +0 -1
- package/dist/kbd.js +0 -1
- package/dist/limelight-nav-navigation-bar.cjs +1 -1
- package/dist/limelight-nav-navigation-bar.js +1 -1
- package/dist/limelight-nav.cjs +11 -453
- package/dist/limelight-nav.js +10 -453
- package/dist/link.cjs +11 -81
- package/dist/link.js +6 -61
- package/dist/list.cjs +0 -1
- package/dist/list.js +0 -1
- package/dist/lux.config.cjs +15 -33
- package/dist/lux.config.js +4 -27
- package/dist/magnetic.cjs +1 -1
- package/dist/magnetic.js +1 -1
- package/dist/market-overview.cjs +1 -1
- package/dist/market-overview.js +1 -1
- package/dist/marquee.cjs +1 -1
- package/dist/marquee.js +1 -1
- package/dist/menu-dock.cjs +1 -1
- package/dist/menu-dock.js +1 -1
- package/dist/menu.cjs +6 -14
- package/dist/menu.js +2 -10
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.js +1 -1
- package/dist/message-dock.cjs +6 -402
- package/dist/message-dock.js +6 -402
- package/dist/mini-calendar.cjs +8 -404
- package/dist/mini-calendar.js +7 -403
- package/dist/minimal-tiptap.cjs +1 -1
- package/dist/minimal-tiptap.js +1 -1
- package/dist/motion-highlight.cjs +1 -1
- package/dist/motion-highlight.js +1 -1
- package/dist/music-player.cjs +31 -529
- package/dist/music-player.js +23 -521
- package/dist/native-select.cjs +0 -1
- package/dist/native-select.js +0 -1
- package/dist/news-timeline.cjs +1 -1
- package/dist/news-timeline.js +1 -1
- package/dist/next.cjs +9 -91
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +4 -88
- package/dist/option-chain.cjs +1 -1
- package/dist/option-chain.js +1 -1
- package/dist/option-position.cjs +1 -1
- package/dist/option-position.js +1 -1
- package/dist/order-entry.cjs +1 -1
- package/dist/order-entry.js +1 -1
- package/dist/orders-history.cjs +1 -1
- package/dist/orders-history.js +1 -1
- package/dist/pagination.cjs +0 -1
- package/dist/pagination.js +0 -1
- package/dist/particles-background.cjs +1 -1
- package/dist/particles-background.js +1 -1
- package/dist/pill.cjs +0 -1
- package/dist/pill.js +0 -1
- package/dist/pin-input.cjs +1 -2
- package/dist/pin-input.d.ts.map +1 -1
- package/dist/pin-input.js +1 -2
- package/dist/pixel-image.cjs +1 -1
- package/dist/pixel-image.js +1 -1
- package/dist/pnl-diagram.cjs +1 -1
- package/dist/pnl-diagram.js +1 -1
- package/dist/popover.cjs +18 -76
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js +17 -75
- package/dist/positions-list.cjs +1 -1
- package/dist/positions-list.js +1 -1
- package/dist/progress-circle.cjs +4 -12
- package/dist/progress-circle.d.ts.map +1 -1
- package/dist/progress-circle.js +3 -12
- package/dist/progress.cjs +0 -1
- package/dist/progress.js +0 -1
- package/dist/provider.cjs +8 -177
- package/dist/provider.js +5 -175
- package/dist/pulse-animation.cjs +1 -1
- package/dist/pulse-animation.js +1 -1
- package/dist/qr-code.cjs +1 -1
- package/dist/qr-code.js +1 -1
- package/dist/radio.cjs +1 -2
- package/dist/radio.d.ts.map +1 -1
- package/dist/radio.js +1 -2
- package/dist/rating.cjs +1 -2
- package/dist/rating.d.ts.map +1 -1
- package/dist/rating.js +1 -2
- package/dist/relative-time.cjs +1 -1
- package/dist/relative-time.js +1 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.js +1 -1
- package/dist/reveal-animation.cjs +1 -1
- package/dist/reveal-animation.js +1 -1
- package/dist/safari.cjs +1 -1
- package/dist/safari.js +1 -1
- package/dist/sandbox.cjs +1 -1
- package/dist/sandbox.js +1 -1
- package/dist/search-and-toggle-navigation-bar.cjs +1 -1
- package/dist/search-and-toggle-navigation-bar.js +1 -1
- package/dist/select.cjs +37 -90
- package/dist/select.js +36 -89
- package/dist/separator.cjs +0 -1
- package/dist/separator.js +0 -1
- package/dist/sidebar.cjs +23 -494
- package/dist/sidebar.js +18 -490
- package/dist/simple-navigation-bar.cjs +1 -1
- package/dist/simple-navigation-bar.js +1 -1
- package/dist/site/commerce/ui/context.cjs +10 -214
- package/dist/site/commerce/ui/context.js +7 -215
- package/dist/site/commerce/ui/store.cjs +1 -1
- package/dist/site/commerce/ui/store.d.ts.map +1 -1
- package/dist/site/commerce/ui/store.js +1 -1
- package/dist/site/components/access-code-input.cjs +1 -0
- package/dist/site/components/access-code-input.js +1 -0
- package/dist/site/components/analytics.cjs +3 -42
- package/dist/site/components/analytics.js +2 -37
- package/dist/site/components/auth/callback.cjs +3 -8
- package/dist/site/components/auth/callback.js +2 -7
- package/dist/site/components/auth/login-panel.cjs +16 -74
- package/dist/site/components/auth/login-panel.js +13 -73
- package/dist/site/components/auth/login.cjs +3 -6
- package/dist/site/components/auth/login.js +2 -5
- package/dist/site/components/auth/provider.cjs +1 -0
- package/dist/site/components/auth/provider.js +1 -0
- package/dist/site/components/auth/widget.cjs +3 -6
- package/dist/site/components/auth/widget.js +2 -5
- package/dist/site/components/back-button.cjs +1 -0
- package/dist/site/components/back-button.js +1 -0
- package/dist/site/components/chat-widget.cjs +1 -0
- package/dist/site/components/chat-widget.js +1 -0
- package/dist/site/components/commerce/bag-button.cjs +3 -3
- package/dist/site/components/commerce/bag-button.js +3 -3
- package/dist/site/components/commerce/buy-button.cjs +3 -11
- package/dist/site/components/commerce/buy-button.js +2 -10
- package/dist/site/components/commerce/checkout-button.cjs +3 -3
- package/dist/site/components/commerce/checkout-button.js +3 -3
- package/dist/site/components/commerce/checkout-panel/cart-accordian.cjs +1 -0
- package/dist/site/components/commerce/checkout-panel/cart-accordian.js +1 -0
- package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.cjs +1 -0
- package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.js +1 -0
- package/dist/site/components/commerce/checkout-panel/desktop-cp.cjs +16 -173
- package/dist/site/components/commerce/checkout-panel/desktop-cp.js +15 -174
- package/dist/site/components/commerce/checkout-panel/index.cjs +10 -400
- package/dist/site/components/commerce/checkout-panel/index.js +11 -403
- package/dist/site/components/commerce/checkout-panel/mobile-cp.cjs +16 -236
- package/dist/site/components/commerce/checkout-panel/mobile-cp.js +14 -237
- package/dist/site/components/commerce/desktop-bag-popup.cjs +8 -8
- package/dist/site/components/commerce/desktop-bag-popup.js +4 -8
- package/dist/site/components/commerce/drawer/index.cjs +16 -289
- package/dist/site/components/commerce/drawer/index.js +11 -290
- package/dist/site/components/commerce/drawer/micro.cjs +9 -115
- package/dist/site/components/commerce/drawer/micro.js +5 -115
- package/dist/site/components/commerce/drawer/shell.cjs +3 -10
- package/dist/site/components/commerce/drawer/shell.js +3 -10
- package/dist/site/components/contact-dialog/contact-form.cjs +1 -0
- package/dist/site/components/contact-dialog/contact-form.js +1 -0
- package/dist/site/components/contact-dialog/index.cjs +7 -69
- package/dist/site/components/contact-dialog/index.js +8 -71
- package/dist/site/components/drawer-margin.cjs +3 -10
- package/dist/site/components/drawer-margin.js +3 -10
- package/dist/site/components/footer-nav.cjs +1 -0
- package/dist/site/components/footer-nav.js +1 -0
- package/dist/site/components/footer.cjs +11 -81
- package/dist/site/components/footer.js +8 -80
- package/dist/site/components/header/desktop-nav-menu.cjs +1 -0
- package/dist/site/components/header/desktop-nav-menu.js +1 -0
- package/dist/site/components/header/desktop.cjs +19 -376
- package/dist/site/components/header/desktop.d.ts.map +1 -1
- package/dist/site/components/header/desktop.js +13 -357
- package/dist/site/components/header/index.cjs +10 -674
- package/dist/site/components/header/index.js +9 -657
- package/dist/site/components/header/mobile-bag-drawer.cjs +7 -71
- package/dist/site/components/header/mobile-bag-drawer.js +6 -74
- package/dist/site/components/header/mobile-menu-toggle-button.cjs +1 -0
- package/dist/site/components/header/mobile-menu-toggle-button.js +1 -0
- package/dist/site/components/header/mobile-nav-menu-ai.cjs +26 -28
- package/dist/site/components/header/mobile-nav-menu-ai.js +25 -27
- package/dist/site/components/header/mobile-nav-menu-item.cjs +7 -61
- package/dist/site/components/header/mobile-nav-menu-item.d.ts.map +1 -1
- package/dist/site/components/header/mobile-nav-menu-item.js +7 -62
- package/dist/site/components/header/mobile-nav-menu.cjs +8 -110
- package/dist/site/components/header/mobile-nav-menu.js +8 -112
- package/dist/site/components/header/mobile.cjs +49 -330
- package/dist/site/components/header/mobile.js +43 -330
- package/dist/site/components/header/theme-toggle.cjs +1 -0
- package/dist/site/components/header/theme-toggle.js +1 -0
- package/dist/site/components/icons/index.cjs +34 -35
- package/dist/site/components/icons/index.js +5 -33
- package/dist/site/components/index.cjs +118 -1961
- package/dist/site/components/index.js +23 -1951
- package/dist/site/components/mini-chart/index.cjs +7 -90
- package/dist/site/components/mini-chart/index.js +1 -92
- package/dist/site/components/mini-chart/mini-chart.cjs +1 -0
- package/dist/site/components/mini-chart/mini-chart.js +1 -0
- package/dist/site/components/mini-chart/wrapper.cjs +7 -76
- package/dist/site/components/mini-chart/wrapper.js +4 -77
- package/dist/site/components/not-found/index.cjs +10 -820
- package/dist/site/components/not-found/index.d.ts.map +1 -1
- package/dist/site/components/not-found/index.js +9 -803
- package/dist/site/components/security/index.cjs +10 -820
- package/dist/site/components/security/index.d.ts.map +1 -1
- package/dist/site/components/security/index.js +9 -803
- package/dist/site/components/tooltip.cjs +1 -0
- package/dist/site/components/tooltip.js +1 -0
- package/dist/site/next/analytics/index.cjs +16 -49
- package/dist/site/next/analytics/index.js +3 -49
- package/dist/site/next/analytics/pixel-analytics.cjs +24 -8
- package/dist/site/next/analytics/pixel-analytics.js +5 -8
- package/dist/site/next/index.cjs +13 -140
- package/dist/site/next/index.js +2 -140
- package/dist/site/root-layout/index.cjs +13 -1437
- package/dist/site/root-layout/index.css +0 -133
- package/dist/site/root-layout/index.d.ts.map +1 -1
- package/dist/site/root-layout/index.js +13 -1418
- package/dist/site/site-def/footer/community.cjs +11 -27
- package/dist/site/site-def/footer/community.js +2 -18
- package/dist/site/site-def/footer/index.cjs +38 -218
- package/dist/site/site-def/footer/index.js +14 -215
- package/dist/site/site-def/index.cjs +28 -620
- package/dist/site/site-def/index.js +3 -624
- package/dist/skeleton.cjs +0 -1
- package/dist/skeleton.js +0 -1
- package/dist/slider.cjs +1 -2
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.js +1 -2
- package/dist/status-dashboard-navigation-bar.cjs +1 -1
- package/dist/status-dashboard-navigation-bar.js +1 -1
- package/dist/status.cjs +0 -1
- package/dist/status.js +0 -1
- package/dist/stock-screener.cjs +1 -1
- package/dist/stock-screener.js +1 -1
- package/dist/strategy-builder.cjs +1 -1
- package/dist/strategy-builder.js +1 -1
- package/dist/switch.cjs +1 -2
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.js +1 -2
- package/dist/symbol-info.cjs +1 -1
- package/dist/symbol-info.js +1 -1
- package/dist/table.cjs +21 -340
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +20 -340
- package/dist/tabs.cjs +4 -12
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +2 -11
- package/dist/tag.cjs +9 -271
- package/dist/tag.js +6 -269
- package/dist/tags.cjs +7 -315
- package/dist/tags.js +6 -315
- package/dist/team-switcher-navigation-bar.cjs +1 -1
- package/dist/team-switcher-navigation-bar.js +1 -1
- package/dist/technical-analysis.cjs +1 -1
- package/dist/technical-analysis.js +1 -1
- package/dist/terminal.cjs +1 -1
- package/dist/terminal.js +1 -1
- package/dist/textarea.cjs +5 -52
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.js +4 -51
- package/dist/ticker-tape.cjs +1 -1
- package/dist/ticker-tape.js +1 -1
- package/dist/ticker.cjs +1 -1
- package/dist/ticker.js +1 -1
- package/dist/timeline.cjs +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.js +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tooltip.cjs +16 -36
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +14 -35
- package/dist/trading-panel.cjs +1 -1
- package/dist/trading-panel.js +1 -1
- package/dist/two-tier-navigation-bar.cjs +1 -1
- package/dist/two-tier-navigation-bar.js +1 -1
- package/dist/underline-navigation-bar.cjs +1 -1
- package/dist/underline-navigation-bar.js +1 -1
- package/dist/use-narrow.cjs +1 -1
- package/dist/use-narrow.js +1 -1
- package/dist/vite.cjs +4 -82
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +2 -80
- package/dist/youtube-pip-player.cjs +1 -1
- package/dist/youtube-pip-player.js +1 -1
- package/package.json +2 -2
- package/src/accordion.tsx +1 -0
- package/src/alert.tsx +1 -0
- package/src/button.tsx +1 -0
- package/src/checkbox.tsx +1 -0
- package/src/collapsible.tsx +1 -0
- package/src/dialog.tsx +1 -0
- package/src/drawer.tsx +1 -0
- package/src/image.tsx +1 -0
- package/src/input-group.tsx +1 -0
- package/src/input.tsx +1 -0
- package/src/next.ts +1 -0
- package/src/pin-input.tsx +1 -0
- package/src/popover.tsx +1 -0
- package/src/progress-circle.tsx +1 -0
- package/src/radio.tsx +1 -0
- package/src/rating.tsx +1 -0
- package/src/site/commerce/ui/store.ts +1 -0
- package/src/site/components/header/desktop.tsx +1 -0
- package/src/site/components/header/mobile-nav-menu-item.tsx +1 -0
- package/src/site/components/not-found/index.tsx +1 -0
- package/src/site/components/security/index.tsx +1 -0
- package/src/site/root-layout/index.tsx +1 -0
- package/src/slider.tsx +1 -0
- package/src/switch.tsx +1 -0
- package/src/table.tsx +1 -0
- package/src/tabs.tsx +1 -0
- package/src/textarea.tsx +1 -0
- package/src/tooltip.tsx +1 -0
- package/src/vite.ts +1 -0
- package/dist/index.css +0 -132
- package/dist/site/components/auth/login-panel.css +0 -4
- package/dist/site/components/commerce/bag-button.css +0 -4
- package/dist/site/components/commerce/checkout-button.css +0 -4
- package/dist/site/components/commerce/checkout-panel/desktop-cp.css +0 -132
- package/dist/site/components/commerce/checkout-panel/index.css +0 -132
- package/dist/site/components/commerce/checkout-panel/mobile-cp.css +0 -132
- package/dist/site/components/commerce/desktop-bag-popup.css +0 -4
- package/dist/site/components/commerce/drawer/index.css +0 -132
- package/dist/site/components/commerce/drawer/micro.css +0 -4
- package/dist/site/components/header/desktop.css +0 -4
- package/dist/site/components/header/index.css +0 -132
- package/dist/site/components/header/mobile-bag-drawer.css +0 -4
- package/dist/site/components/header/mobile-nav-menu-ai.css +0 -132
- package/dist/site/components/header/mobile-nav-menu-item.css +0 -132
- package/dist/site/components/header/mobile-nav-menu.css +0 -132
- package/dist/site/components/header/mobile.css +0 -132
- package/dist/site/components/icons/index.css +0 -4
- package/dist/site/components/index.css +0 -132
- package/dist/site/components/not-found/index.css +0 -132
- package/dist/site/components/security/index.css +0 -132
- package/dist/site/site-def/footer/community.css +0 -4
- package/dist/site/site-def/footer/index.css +0 -4
- package/dist/site/site-def/index.css +0 -4
package/dist/provider.js
CHANGED
|
@@ -1,182 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { GuiProvider } from '@hanzo/gui';
|
|
3
3
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
4
4
|
export { QueryClient, useInfiniteQuery, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { animations } from '@hanzogui/config/v5-css';
|
|
6
|
+
import config from './lux.config.js';
|
|
7
|
+
import { resolveWhiteLabel, currentHost } from './white-label.js';
|
|
9
8
|
import { jsx } from 'react/jsx-runtime';
|
|
10
9
|
|
|
11
|
-
// src/white-label.ts
|
|
12
|
-
var LUX_BRAND = {
|
|
13
|
-
lux: "#7000FF",
|
|
14
|
-
zoo: "#6C5EFB",
|
|
15
|
-
hanzo: "#EA580C",
|
|
16
|
-
pars: "#1C3879",
|
|
17
|
-
// bootno.de is its own white label with its own IdP (id.bootno.de) — accent
|
|
18
|
-
// taken from the bootnode console's own brand default, not invented here.
|
|
19
|
-
bootnode: "#3B82F6"
|
|
20
|
-
};
|
|
21
|
-
var PARS_GOLD = "#C8A45C";
|
|
22
|
-
var ORGS = {
|
|
23
|
-
lux: {
|
|
24
|
-
org: "lux",
|
|
25
|
-
name: "Lux",
|
|
26
|
-
domain: "lux.network",
|
|
27
|
-
iamDomain: "lux.id",
|
|
28
|
-
accent: LUX_BRAND.lux,
|
|
29
|
-
accentForeground: "#FFFFFF"
|
|
30
|
-
},
|
|
31
|
-
zoo: {
|
|
32
|
-
org: "zoo",
|
|
33
|
-
name: "Zoo",
|
|
34
|
-
domain: "zoo.ngo",
|
|
35
|
-
// Zoo's issuer is `zoolabs.id` — the one row where it is not `<org>.id`,
|
|
36
|
-
// and the one every hand-rolled branding map gets wrong. `id.zoo.network`
|
|
37
|
-
// ANSWERS, which is why it keeps being copied around, but it is an alias:
|
|
38
|
-
// its own discovery document advertises
|
|
39
|
-
// issuer https://zoolabs.id
|
|
40
|
-
// authorization_endpoint https://zoolabs.id/v1/iam/oauth/authorize
|
|
41
|
-
// jwks_uri https://zoolabs.id/v1/iam/.well-known/jwks
|
|
42
|
-
// so a client configured on the alias validates `iss` against a string the
|
|
43
|
-
// IdP never emits and rejects every token it is given — the exact shape of
|
|
44
|
-
// the lux.id outage. `zoo.id` is not an IdP at all (no discovery document).
|
|
45
|
-
iamDomain: "zoolabs.id",
|
|
46
|
-
accent: LUX_BRAND.zoo,
|
|
47
|
-
accentForeground: "#FFFFFF"
|
|
48
|
-
},
|
|
49
|
-
bootnode: {
|
|
50
|
-
org: "bootnode",
|
|
51
|
-
name: "Bootnode",
|
|
52
|
-
domain: "bootno.de",
|
|
53
|
-
iamDomain: "id.bootno.de",
|
|
54
|
-
accent: LUX_BRAND.lux,
|
|
55
|
-
accentForeground: "#FFFFFF"
|
|
56
|
-
},
|
|
57
|
-
hanzo: {
|
|
58
|
-
org: "hanzo",
|
|
59
|
-
name: "Hanzo",
|
|
60
|
-
domain: "hanzo.ai",
|
|
61
|
-
iamDomain: "hanzo.id",
|
|
62
|
-
accent: LUX_BRAND.hanzo,
|
|
63
|
-
accentForeground: "#FFFFFF"
|
|
64
|
-
},
|
|
65
|
-
pars: {
|
|
66
|
-
org: "pars",
|
|
67
|
-
name: "Pars",
|
|
68
|
-
domain: "pars.id",
|
|
69
|
-
iamDomain: "pars.id",
|
|
70
|
-
accent: LUX_BRAND.pars,
|
|
71
|
-
accentForeground: PARS_GOLD
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
var DOMAIN_ORG = [
|
|
75
|
-
["lux.network", "lux"],
|
|
76
|
-
["lux.cloud", "lux"],
|
|
77
|
-
["lux.id", "lux"],
|
|
78
|
-
["lux.finance", "lux"],
|
|
79
|
-
["lux.market", "lux"],
|
|
80
|
-
["lux.exchange", "lux"],
|
|
81
|
-
["zoo.ngo", "zoo"],
|
|
82
|
-
["zoo.network", "zoo"],
|
|
83
|
-
["zoo.cloud", "zoo"],
|
|
84
|
-
["zoolabs.id", "zoo"],
|
|
85
|
-
["hanzo.ai", "hanzo"],
|
|
86
|
-
["hanzo.cloud", "hanzo"],
|
|
87
|
-
["hanzo.id", "hanzo"],
|
|
88
|
-
["pars.id", "pars", "app"],
|
|
89
|
-
["pars.network", "pars", "app"],
|
|
90
|
-
["parsdao.org", "pars", "app"],
|
|
91
|
-
["bootno.de", "bootnode", "platform"]
|
|
92
|
-
];
|
|
93
|
-
var DEFAULT_ORG = "lux";
|
|
94
|
-
function normalizeHost(host) {
|
|
95
|
-
const noPort = host.trim().toLowerCase().split(":")[0] ?? "";
|
|
96
|
-
return noPort.replace(/\.$/, "");
|
|
97
|
-
}
|
|
98
|
-
function isUnder(host, domain) {
|
|
99
|
-
return host === domain || host.endsWith(`.${domain}`);
|
|
100
|
-
}
|
|
101
|
-
function matchDomain(host) {
|
|
102
|
-
let best;
|
|
103
|
-
for (const entry of DOMAIN_ORG) {
|
|
104
|
-
if (isUnder(host, entry[0]) && (!best || entry[0].length > best[0].length)) {
|
|
105
|
-
best = entry;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return best;
|
|
109
|
-
}
|
|
110
|
-
function appSlug(host, domain, pinned) {
|
|
111
|
-
if (pinned) return pinned;
|
|
112
|
-
const sub = host === domain ? "" : host.slice(0, -(domain.length + 1));
|
|
113
|
-
const leftmost = sub.split(".")[0] ?? "";
|
|
114
|
-
if (leftmost && leftmost !== "www") return leftmost;
|
|
115
|
-
const label = domain.split(".")[0] ?? "";
|
|
116
|
-
const tld = domain.split(".").slice(1).join(".");
|
|
117
|
-
return tld.split(".")[0] || label;
|
|
118
|
-
}
|
|
119
|
-
function isLocal(host) {
|
|
120
|
-
return host === "localhost" || host.endsWith(".localhost") || host === "127.0.0.1" || host === "0.0.0.0" || host === "[::1]" || host.endsWith(".local");
|
|
121
|
-
}
|
|
122
|
-
function resolveWhiteLabel(host) {
|
|
123
|
-
const h = normalizeHost(host ?? "");
|
|
124
|
-
const match = h ? matchDomain(h) : void 0;
|
|
125
|
-
const org = match ? match[1] : DEFAULT_ORG;
|
|
126
|
-
const identity = ORGS[org];
|
|
127
|
-
const app = match ? appSlug(h, match[0], match[2]) : h && isLocal(h) ? "local" : "app";
|
|
128
|
-
return {
|
|
129
|
-
...identity,
|
|
130
|
-
host: h,
|
|
131
|
-
app,
|
|
132
|
-
theme: `dark_${org}`,
|
|
133
|
-
issuer: `https://${identity.iamDomain}`,
|
|
134
|
-
clientId: `${org}-${app}`
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
function currentHost() {
|
|
138
|
-
return typeof window === "undefined" ? "" : window.location.host;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// src/lux.config.ts
|
|
142
|
-
var TRUE_BLACK = "#000000";
|
|
143
|
-
var darkBase = {
|
|
144
|
-
...defaultConfig.themes.dark,
|
|
145
|
-
background: TRUE_BLACK,
|
|
146
|
-
backgroundHover: "#0A0A0A",
|
|
147
|
-
backgroundPress: "#141414",
|
|
148
|
-
backgroundFocus: "#0A0A0A"
|
|
149
|
-
};
|
|
150
|
-
var brandTheme = (accent, extra = {}) => ({
|
|
151
|
-
...darkBase,
|
|
152
|
-
accentBackground: accent,
|
|
153
|
-
accentColor: "#FFFFFF",
|
|
154
|
-
borderColorHover: accent,
|
|
155
|
-
colorHover: accent,
|
|
156
|
-
...extra
|
|
157
|
-
});
|
|
158
|
-
var luxThemes = {
|
|
159
|
-
dark: darkBase,
|
|
160
|
-
dark_lux: brandTheme(LUX_BRAND.lux),
|
|
161
|
-
dark_zoo: brandTheme(LUX_BRAND.zoo),
|
|
162
|
-
dark_hanzo: brandTheme(LUX_BRAND.hanzo),
|
|
163
|
-
dark_pars: brandTheme(LUX_BRAND.pars, { accentColor: PARS_GOLD }),
|
|
164
|
-
dark_bootnode: brandTheme(LUX_BRAND.bootnode)
|
|
165
|
-
};
|
|
166
|
-
var config = createGui({
|
|
167
|
-
...defaultConfig,
|
|
168
|
-
...config$1,
|
|
169
|
-
animations,
|
|
170
|
-
settings: {
|
|
171
|
-
...defaultConfig.settings,
|
|
172
|
-
onlyAllowShorthands: false
|
|
173
|
-
},
|
|
174
|
-
themes: {
|
|
175
|
-
...defaultConfig.themes,
|
|
176
|
-
...luxThemes
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
var lux_config_default = config;
|
|
180
10
|
var defaultQueryClient = new QueryClient({
|
|
181
11
|
defaultOptions: { queries: { refetchOnWindowFocus: false, retry: 1, staleTime: 3e4 } }
|
|
182
12
|
});
|
|
@@ -212,7 +42,7 @@ var AppProvider = ({
|
|
|
212
42
|
useFontBodyReset();
|
|
213
43
|
const whiteLabel = useHostWhiteLabel(host);
|
|
214
44
|
const theme = defaultTheme ?? whiteLabel.theme;
|
|
215
|
-
return /* @__PURE__ */ jsx(WhiteLabelContext.Provider, { value: whiteLabel, children: /* @__PURE__ */ jsx(GuiProvider, { config
|
|
45
|
+
return /* @__PURE__ */ jsx(WhiteLabelContext.Provider, { value: whiteLabel, children: /* @__PURE__ */ jsx(GuiProvider, { config, defaultTheme: theme, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient ?? defaultQueryClient, children }) }) });
|
|
216
46
|
};
|
|
217
47
|
|
|
218
48
|
export { AppProvider, useWhiteLabel };
|
package/dist/pulse-animation.cjs
CHANGED
package/dist/pulse-animation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
import { createContext, useState, useEffect, forwardRef, useContext, useMemo, useRef, useInsertionEffect, useLayoutEffect, Fragment, createElement, useCallback, useId, Component } from 'react';
|
|
3
3
|
import { cn, Box } from '@hanzo/ui';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
package/dist/qr-code.cjs
CHANGED
package/dist/qr-code.js
CHANGED
package/dist/radio.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
@@ -25,7 +25,6 @@ function _interopNamespace(e) {
|
|
|
25
25
|
|
|
26
26
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
27
|
|
|
28
|
-
// src/radio.tsx
|
|
29
28
|
var SIZE = {
|
|
30
29
|
xs: { rootGap: 6, control: 12, indicator: 6, label: 12 },
|
|
31
30
|
sm: { rootGap: 6, control: 14, indicator: 6, label: 12 },
|
package/dist/radio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../src/radio.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../src/radio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,IAAI;aACR,EAAE;iBAAI,OAAO,EAAE,CAAC;iBAAE,OAAO,EAAE,EAAE;iBAAE,SAAS,EAAE,CAAC;iBAAE,KAAK,EAAE,EAAE;;aACtD,EAAE;iBAAI,OAAO,EAAE,CAAC;iBAAE,OAAO,EAAE,EAAE;iBAAE,SAAS,EAAE,CAAC;iBAAE,KAAK,EAAE,EAAE;;aACtD,EAAE;iBAAI,OAAO,EAAE,CAAC;iBAAE,OAAO,EAAE,EAAE;iBAAE,SAAS,EAAE,CAAC;iBAAE,KAAK,EAAE,EAAE;;aACtD,EAAE;iBAAI,OAAO,EAAE,EAAE;iBAAE,OAAO,EAAE,EAAE;iBAAE,SAAS,EAAE,EAAE;iBAAE,KAAK,EAAE,EAAE;;CAChD,CAAC;AAEX,KAAK,SAAS,GAAG,MAAM,OAAO,IAAI,CAAC;AAUnC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,KAAK,CAAC;IACzG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,KAAK,IAAI,CAAC;IAC5D,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAqDD,eAAO,MAAM,UAAU,wFAAiB,CAAC;AAKzC,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAC3F,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACtC,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA+DD,eAAO,MAAM,KAAK,qFAAY,CAAC"}
|
package/dist/radio.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
import { RadioGroup, Label, VisuallyHidden, Text } from '@hanzo/gui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
// src/radio.tsx
|
|
7
6
|
var SIZE = {
|
|
8
7
|
xs: { rootGap: 6, control: 12, indicator: 6, label: 12 },
|
|
9
8
|
sm: { rootGap: 6, control: 14, indicator: 6, label: 12 },
|
package/dist/rating.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
@@ -25,7 +25,6 @@ function _interopNamespace(e) {
|
|
|
25
25
|
|
|
26
26
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
27
|
|
|
28
|
-
// src/rating.tsx
|
|
29
28
|
var StarFilledIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" }) });
|
|
30
29
|
var StarOutlineIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z", strokeWidth: "1.5" }) });
|
|
31
30
|
var Rating = React__namespace.forwardRef(
|
package/dist/rating.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../src/rating.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../src/rating.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;IAC1G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,oFAwDlB,CAAC"}
|
package/dist/rating.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
import { XStack, View, Text } from '@hanzo/gui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
// src/rating.tsx
|
|
7
6
|
var StarFilledIcon = () => /* @__PURE__ */ jsx("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" }) });
|
|
8
7
|
var StarOutlineIcon = () => /* @__PURE__ */ jsx("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z", strokeWidth: "1.5" }) });
|
|
9
8
|
var Rating = React.forwardRef(
|
package/dist/relative-time.cjs
CHANGED
package/dist/relative-time.js
CHANGED
package/dist/resizable.cjs
CHANGED
package/dist/resizable.js
CHANGED
package/dist/reveal-animation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
import React, { createContext, useEffect, useRef, useState, useLayoutEffect, forwardRef, useContext, useMemo, useInsertionEffect, Fragment, createElement, useCallback, useId, Component } from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import { cn } from '@hanzo/ui';
|
package/dist/safari.cjs
CHANGED
package/dist/safari.js
CHANGED
package/dist/sandbox.cjs
CHANGED
package/dist/sandbox.js
CHANGED
package/dist/select.cjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var usehooks = require('@uidotdev/usehooks');
|
|
7
|
-
var
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var skeleton_js = require('./skeleton.js');
|
|
8
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
10
|
|
|
10
11
|
function _interopNamespace(e) {
|
|
@@ -25,70 +26,16 @@ function _interopNamespace(e) {
|
|
|
25
26
|
return Object.freeze(n);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
var
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
30
|
|
|
30
|
-
var SKELETON_CLASSES = "lux-skeleton rounded-sm";
|
|
31
|
-
var Skeleton = React2__namespace.forwardRef(
|
|
32
|
-
function Skeleton2(props, ref) {
|
|
33
|
-
const { loading = true, asChild, className, children, style, ...rest } = props;
|
|
34
|
-
if (!loading) {
|
|
35
|
-
if (asChild && React2__namespace.isValidElement(children)) return children;
|
|
36
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className, style, ...rest, children });
|
|
37
|
-
}
|
|
38
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39
|
-
"div",
|
|
40
|
-
{
|
|
41
|
-
ref,
|
|
42
|
-
"data-loading": true,
|
|
43
|
-
...ui.sx(
|
|
44
|
-
SKELETON_CLASSES,
|
|
45
|
-
asChild || children ? "[&_*]:invisible" : "min-h-5",
|
|
46
|
-
className
|
|
47
|
-
),
|
|
48
|
-
style,
|
|
49
|
-
...rest,
|
|
50
|
-
children
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
React2__namespace.forwardRef(
|
|
56
|
-
function SkeletonCircle2(props, ref) {
|
|
57
|
-
const { size = 40, loading = true, className, ...rest } = props;
|
|
58
|
-
const dimension = typeof size === "number" ? `${size}px` : size;
|
|
59
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
60
|
-
Skeleton,
|
|
61
|
-
{
|
|
62
|
-
ref,
|
|
63
|
-
loading,
|
|
64
|
-
...ui.sx("rounded-full shrink-0", className),
|
|
65
|
-
style: { width: dimension, height: dimension, ...rest.style },
|
|
66
|
-
...rest
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
React2__namespace.forwardRef(
|
|
72
|
-
function SkeletonText2(props, ref) {
|
|
73
|
-
const { noOfLines = 3, loading = true, className, ...rest } = props;
|
|
74
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className: ui.cn("flex w-full flex-col gap-2", className), ...rest, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
75
|
-
Skeleton,
|
|
76
|
-
{
|
|
77
|
-
loading,
|
|
78
|
-
...ui.sx(ui.cn("h-4", index === noOfLines - 1 && "max-w-[80%]"))
|
|
79
|
-
},
|
|
80
|
-
index
|
|
81
|
-
)) });
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
31
|
function createListCollection(config) {
|
|
85
32
|
return { items: config.items };
|
|
86
33
|
}
|
|
87
34
|
var ArrowIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { ...props, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
88
35
|
var CheckIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { ...props, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16.667 5L7.5 14.167 3.333 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
89
36
|
function FilterInput({ placeholder, initialValue = "", onChange }) {
|
|
90
|
-
const [value, setValue] =
|
|
91
|
-
const handleChange =
|
|
37
|
+
const [value, setValue] = React__namespace.useState(initialValue);
|
|
38
|
+
const handleChange = React__namespace.useCallback((e) => {
|
|
92
39
|
setValue(e.target.value);
|
|
93
40
|
onChange?.(e.target.value);
|
|
94
41
|
}, [onChange]);
|
|
@@ -108,15 +55,15 @@ function FilterInput({ placeholder, initialValue = "", onChange }) {
|
|
|
108
55
|
}
|
|
109
56
|
);
|
|
110
57
|
}
|
|
111
|
-
var SelectInternalContext =
|
|
58
|
+
var SelectInternalContext = React__namespace.createContext(null);
|
|
112
59
|
function useSelectInternalContext() {
|
|
113
|
-
const ctx =
|
|
60
|
+
const ctx = React__namespace.useContext(SelectInternalContext);
|
|
114
61
|
if (!ctx) {
|
|
115
62
|
throw new Error("Select compound components must be rendered inside <SelectRoot>");
|
|
116
63
|
}
|
|
117
64
|
return ctx;
|
|
118
65
|
}
|
|
119
|
-
var SelectRoot =
|
|
66
|
+
var SelectRoot = React__namespace.forwardRef(
|
|
120
67
|
function SelectRoot2(props, ref) {
|
|
121
68
|
const {
|
|
122
69
|
children,
|
|
@@ -147,21 +94,21 @@ var SelectRoot = React2__namespace.forwardRef(
|
|
|
147
94
|
hideFrom: _hideFrom
|
|
148
95
|
} = props;
|
|
149
96
|
const collection = collectionProp ?? createListCollection({ items: [] });
|
|
150
|
-
const [internalValue, setInternalValue] =
|
|
97
|
+
const [internalValue, setInternalValue] = React__namespace.useState(defaultValueArr ?? []);
|
|
151
98
|
const currentValue = valueProp ?? internalValue;
|
|
152
|
-
const selectedItems =
|
|
99
|
+
const selectedItems = React__namespace.useMemo(() => {
|
|
153
100
|
return currentValue.map((v) => collection.items.find((item) => item.value === v)).filter(Boolean);
|
|
154
101
|
}, [currentValue, collection.items]);
|
|
155
|
-
const [open, setOpen] =
|
|
102
|
+
const [open, setOpen] = React__namespace.useState(defaultOpen ?? false);
|
|
156
103
|
const isOpen = openProp ?? open;
|
|
157
|
-
const handleOpenChange =
|
|
104
|
+
const handleOpenChange = React__namespace.useCallback((nextOpen) => {
|
|
158
105
|
setOpen(nextOpen);
|
|
159
106
|
onOpenChange?.(nextOpen);
|
|
160
107
|
if (!nextOpen) {
|
|
161
108
|
onInteractOutside?.();
|
|
162
109
|
}
|
|
163
110
|
}, [onOpenChange, onInteractOutside]);
|
|
164
|
-
const handleRadixValueChange =
|
|
111
|
+
const handleRadixValueChange = React__namespace.useCallback((radixValue) => {
|
|
165
112
|
const nextArr = [radixValue];
|
|
166
113
|
if (!valueProp) {
|
|
167
114
|
setInternalValue(nextArr);
|
|
@@ -169,7 +116,7 @@ var SelectRoot = React2__namespace.forwardRef(
|
|
|
169
116
|
const items = collection.items.filter((item) => nextArr.includes(item.value));
|
|
170
117
|
onValueChangeProp?.({ value: nextArr, items });
|
|
171
118
|
}, [valueProp, collection.items, onValueChangeProp]);
|
|
172
|
-
const ctxValue =
|
|
119
|
+
const ctxValue = React__namespace.useMemo(() => ({
|
|
173
120
|
value: currentValue,
|
|
174
121
|
selectedItems,
|
|
175
122
|
collection,
|
|
@@ -189,7 +136,7 @@ var SelectRoot = React2__namespace.forwardRef(
|
|
|
189
136
|
if (typeof v === "string") return v;
|
|
190
137
|
return v.base ?? v.lg ?? Object.values(v)[0];
|
|
191
138
|
};
|
|
192
|
-
const inlineStyle =
|
|
139
|
+
const inlineStyle = React__namespace.useMemo(() => {
|
|
193
140
|
const s = { ...style };
|
|
194
141
|
const rw = resolveVal(w);
|
|
195
142
|
if (rw) s.width = rw;
|
|
@@ -226,7 +173,7 @@ var SelectRoot = React2__namespace.forwardRef(
|
|
|
226
173
|
) });
|
|
227
174
|
}
|
|
228
175
|
);
|
|
229
|
-
var SelectControl =
|
|
176
|
+
var SelectControl = React__namespace.forwardRef(
|
|
230
177
|
function SelectControl2(props, ref) {
|
|
231
178
|
const { children, noIndicator, triggerProps, loading, defaultValue } = props;
|
|
232
179
|
const ctx = useSelectInternalContext();
|
|
@@ -259,16 +206,16 @@ var SelectControl = React2__namespace.forwardRef(
|
|
|
259
206
|
}
|
|
260
207
|
);
|
|
261
208
|
if (loading) {
|
|
262
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, asChild: true, children: trigger });
|
|
209
|
+
return /* @__PURE__ */ jsxRuntime.jsx(skeleton_js.Skeleton, { loading, asChild: true, children: trigger });
|
|
263
210
|
}
|
|
264
211
|
return trigger;
|
|
265
212
|
}
|
|
266
213
|
);
|
|
267
|
-
var SelectClearTrigger =
|
|
214
|
+
var SelectClearTrigger = React__namespace.forwardRef(
|
|
268
215
|
function SelectClearTrigger2(props, ref) {
|
|
269
216
|
const { className, ...rest } = props;
|
|
270
217
|
const ctx = useSelectInternalContext();
|
|
271
|
-
const handleClick =
|
|
218
|
+
const handleClick = React__namespace.useCallback(() => {
|
|
272
219
|
ctx.onValueChange({ value: [], items: [] });
|
|
273
220
|
}, [ctx]);
|
|
274
221
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -286,7 +233,7 @@ var SelectClearTrigger = React2__namespace.forwardRef(
|
|
|
286
233
|
);
|
|
287
234
|
}
|
|
288
235
|
);
|
|
289
|
-
var SelectContent =
|
|
236
|
+
var SelectContent = React__namespace.forwardRef(
|
|
290
237
|
function SelectContent2(props, _ref) {
|
|
291
238
|
const { portalled: _portalled, portalRef: _portalRef, children, className, ...rest } = props;
|
|
292
239
|
let n = 0;
|
|
@@ -309,13 +256,13 @@ var SelectContent = React2__namespace.forwardRef(
|
|
|
309
256
|
);
|
|
310
257
|
}
|
|
311
258
|
);
|
|
312
|
-
var stampIndices = (children, next) =>
|
|
313
|
-
if (!
|
|
314
|
-
if (child.type === SelectItem) return
|
|
259
|
+
var stampIndices = (children, next) => React__namespace.Children.map(children, (child) => {
|
|
260
|
+
if (!React__namespace.isValidElement(child)) return child;
|
|
261
|
+
if (child.type === SelectItem) return React__namespace.cloneElement(child, { index: next() });
|
|
315
262
|
const kids = child.props.children;
|
|
316
|
-
return kids === void 0 ? child :
|
|
263
|
+
return kids === void 0 ? child : React__namespace.cloneElement(child, void 0, stampIndices(kids, next));
|
|
317
264
|
});
|
|
318
|
-
var SelectItem =
|
|
265
|
+
var SelectItem = React__namespace.forwardRef(
|
|
319
266
|
function SelectItem2(props, ref) {
|
|
320
267
|
const { item, children, className, index, ...rest } = props;
|
|
321
268
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -343,7 +290,7 @@ var SelectItem = React2__namespace.forwardRef(
|
|
|
343
290
|
);
|
|
344
291
|
}
|
|
345
292
|
);
|
|
346
|
-
var SelectValueText =
|
|
293
|
+
var SelectValueText = React__namespace.forwardRef(
|
|
347
294
|
function SelectValueText2(props, ref) {
|
|
348
295
|
const { children, size, required, invalid, errorText, mode, className, style, placeholder: placeholderProp, ...rest } = props;
|
|
349
296
|
const ctx = useSelectInternalContext();
|
|
@@ -400,7 +347,7 @@ var SelectValueText = React2__namespace.forwardRef(
|
|
|
400
347
|
);
|
|
401
348
|
}
|
|
402
349
|
);
|
|
403
|
-
var SelectItemGroup =
|
|
350
|
+
var SelectItemGroup = React__namespace.forwardRef(
|
|
404
351
|
function SelectItemGroup2(props, ref) {
|
|
405
352
|
const { children, label, className, ...rest } = props;
|
|
406
353
|
return /* @__PURE__ */ jsxRuntime.jsxs(gui.Select.Group, { ref, ...ui.sx("py-1", className), ...rest, children: [
|
|
@@ -411,7 +358,7 @@ var SelectItemGroup = React2__namespace.forwardRef(
|
|
|
411
358
|
);
|
|
412
359
|
var SelectLabel = gui.Select.Label;
|
|
413
360
|
var SelectItemText = gui.Select.ItemText;
|
|
414
|
-
var Select =
|
|
361
|
+
var Select = React__namespace.forwardRef((props, ref) => {
|
|
415
362
|
const { collection, placeholder, portalled = true, loading, errorText, contentProps, contentHeader, itemFilter, mode, ...rest } = props;
|
|
416
363
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
417
364
|
SelectRoot,
|
|
@@ -433,7 +380,7 @@ var Select = React2__namespace.forwardRef((props, ref) => {
|
|
|
433
380
|
) }),
|
|
434
381
|
/* @__PURE__ */ jsxRuntime.jsxs(SelectContent, { portalled, ...contentProps, children: [
|
|
435
382
|
contentHeader,
|
|
436
|
-
collection.items.filter(itemFilter ?? (() => true)).map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
383
|
+
collection.items.filter(itemFilter ?? (() => true)).map((item) => /* @__PURE__ */ jsxRuntime.jsxs(React__namespace.Fragment, { children: [
|
|
437
384
|
/* @__PURE__ */ jsxRuntime.jsx(SelectItem, { item, children: item.renderLabel ? item.renderLabel("item") : item.label }),
|
|
438
385
|
item.afterElement
|
|
439
386
|
] }, item.value))
|
|
@@ -442,19 +389,19 @@ var Select = React2__namespace.forwardRef((props, ref) => {
|
|
|
442
389
|
}
|
|
443
390
|
);
|
|
444
391
|
});
|
|
445
|
-
var SelectAsync =
|
|
392
|
+
var SelectAsync = React__namespace.forwardRef((props, ref) => {
|
|
446
393
|
const { placeholder, portalled = true, loading, loadOptions, extraControls, onValueChange, errorText, mode, contentHeader, ...rest } = props;
|
|
447
|
-
const [collection, setCollection] =
|
|
448
|
-
const [inputValue, setInputValue] =
|
|
449
|
-
const [value, setValue] =
|
|
394
|
+
const [collection, setCollection] = React__namespace.useState(createListCollection({ items: [] }));
|
|
395
|
+
const [inputValue, setInputValue] = React__namespace.useState("");
|
|
396
|
+
const [value, setValue] = React__namespace.useState([]);
|
|
450
397
|
const debouncedInputValue = usehooks.useDebounce(inputValue, 300);
|
|
451
|
-
|
|
398
|
+
React__namespace.useEffect(() => {
|
|
452
399
|
loadOptions(debouncedInputValue, value).then(setCollection);
|
|
453
400
|
}, [debouncedInputValue, loadOptions, value]);
|
|
454
|
-
const handleFilterChange =
|
|
401
|
+
const handleFilterChange = React__namespace.useCallback((val) => {
|
|
455
402
|
setInputValue(val);
|
|
456
403
|
}, []);
|
|
457
|
-
const handleValueChange =
|
|
404
|
+
const handleValueChange = React__namespace.useCallback(({ value: v, items }) => {
|
|
458
405
|
setValue(v);
|
|
459
406
|
onValueChange?.({ value: v, items });
|
|
460
407
|
}, [onValueChange]);
|