@luxfi/ui 7.4.15 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/dist/3d-button.cjs +298 -0
- package/dist/3d-button.d.ts +52 -0
- package/dist/3d-button.d.ts.map +1 -0
- package/dist/3d-button.js +273 -0
- package/dist/3d-card.cjs +236 -0
- package/dist/3d-card.d.ts +29 -0
- package/dist/3d-card.d.ts.map +1 -0
- package/dist/3d-card.js +209 -0
- package/dist/3d-carousel.cjs +375 -0
- package/dist/3d-carousel.d.ts +26 -0
- package/dist/3d-carousel.d.ts.map +1 -0
- package/dist/3d-carousel.js +348 -0
- package/dist/3d-grid.cjs +360 -0
- package/dist/3d-grid.d.ts +49 -0
- package/dist/3d-grid.d.ts.map +1 -0
- package/dist/3d-grid.js +335 -0
- package/dist/3d-marquee.cjs +8669 -0
- package/dist/3d-marquee.d.ts +65 -0
- package/dist/3d-marquee.d.ts.map +1 -0
- package/dist/3d-marquee.js +8645 -0
- package/dist/3d-model-viewer.cjs +909 -0
- package/dist/3d-model-viewer.d.ts +45 -0
- package/dist/3d-model-viewer.d.ts.map +1 -0
- package/dist/3d-model-viewer.js +886 -0
- package/dist/3d-pin.cjs +46 -0
- package/dist/3d-pin.d.ts +8 -0
- package/dist/3d-pin.d.ts.map +1 -0
- package/dist/3d-pin.js +24 -0
- package/dist/3d-scene.cjs +439 -0
- package/dist/3d-scene.d.ts +76 -0
- package/dist/3d-scene.d.ts.map +1 -0
- package/dist/3d-scene.js +407 -0
- package/dist/3d-text.cjs +367 -0
- package/dist/3d-text.d.ts +62 -0
- package/dist/3d-text.d.ts.map +1 -0
- package/dist/3d-text.js +341 -0
- package/dist/accordion.d.ts +10 -12
- package/dist/accordion.d.ts.map +1 -0
- package/dist/advanced-chart.cjs +53 -0
- package/dist/advanced-chart.d.ts +6 -0
- package/dist/advanced-chart.d.ts.map +1 -0
- package/dist/advanced-chart.js +51 -0
- package/dist/advanced-navigation-bar.cjs +459 -0
- package/dist/advanced-navigation-bar.d.ts +14 -0
- package/dist/advanced-navigation-bar.d.ts.map +1 -0
- package/dist/advanced-navigation-bar.js +437 -0
- package/dist/ai-actions.cjs +57 -0
- package/dist/ai-actions.d.ts +14 -0
- package/dist/ai-actions.d.ts.map +1 -0
- package/dist/ai-actions.js +35 -0
- package/dist/ai-agents.cjs +1764 -0
- package/dist/ai-agents.d.ts +56 -0
- package/dist/ai-agents.d.ts.map +1 -0
- package/dist/ai-agents.js +1740 -0
- package/dist/ai-assistant.cjs +907 -0
- package/dist/ai-assistant.d.ts +28 -0
- package/dist/ai-assistant.d.ts.map +1 -0
- package/dist/ai-assistant.js +886 -0
- package/dist/ai-chat.cjs +1165 -0
- package/dist/ai-chat.d.ts +56 -0
- package/dist/ai-chat.d.ts.map +1 -0
- package/dist/ai-chat.js +1141 -0
- package/dist/ai-code.cjs +1866 -0
- package/dist/ai-code.d.ts +58 -0
- package/dist/ai-code.d.ts.map +1 -0
- package/dist/ai-code.js +1841 -0
- package/dist/ai-model-selector-navigation-bar.cjs +59 -0
- package/dist/ai-model-selector-navigation-bar.d.ts +15 -0
- package/dist/ai-model-selector-navigation-bar.d.ts.map +1 -0
- package/dist/ai-model-selector-navigation-bar.js +37 -0
- package/dist/ai-models.cjs +41 -0
- package/dist/ai-models.d.ts +15 -0
- package/dist/ai-models.d.ts.map +1 -0
- package/dist/ai-models.js +19 -0
- package/dist/ai-playground.cjs +1110 -0
- package/dist/ai-playground.d.ts +66 -0
- package/dist/ai-playground.d.ts.map +1 -0
- package/dist/ai-playground.js +1088 -0
- package/dist/ai-tools.cjs +1043 -0
- package/dist/ai-tools.d.ts +23 -0
- package/dist/ai-tools.d.ts.map +1 -0
- package/dist/ai-tools.js +1022 -0
- package/dist/ai-vision.cjs +1831 -0
- package/dist/ai-vision.d.ts +74 -0
- package/dist/ai-vision.d.ts.map +1 -0
- package/dist/ai-vision.js +1810 -0
- package/dist/ai-voice-settings.cjs +1511 -0
- package/dist/ai-voice-settings.d.ts +100 -0
- package/dist/ai-voice-settings.d.ts.map +1 -0
- package/dist/ai-voice-settings.js +1478 -0
- package/dist/ai-voice.cjs +1522 -0
- package/dist/ai-voice.d.ts +72 -0
- package/dist/ai-voice.d.ts.map +1 -0
- package/dist/ai-voice.js +1501 -0
- package/dist/alert.cjs +14 -147
- package/dist/alert.d.ts +4 -5
- package/dist/alert.d.ts.map +1 -0
- package/dist/alert.js +14 -147
- package/dist/android.cjs +127 -0
- package/dist/android.d.ts +19 -0
- package/dist/android.d.ts.map +1 -0
- package/dist/android.js +104 -0
- package/dist/animated-background.cjs +8830 -0
- package/dist/animated-background.d.ts +103 -0
- package/dist/animated-background.d.ts.map +1 -0
- package/dist/animated-background.js +8824 -0
- package/dist/animated-beam.cjs +8438 -0
- package/dist/animated-beam.d.ts +15 -0
- package/dist/animated-beam.d.ts.map +1 -0
- package/dist/animated-beam.js +8417 -0
- package/dist/animated-cursor.cjs +269 -0
- package/dist/animated-cursor.d.ts +70 -0
- package/dist/animated-cursor.d.ts.map +1 -0
- package/dist/animated-cursor.js +264 -0
- package/dist/animated-icon.cjs +8927 -0
- package/dist/animated-icon.d.ts +119 -0
- package/dist/animated-icon.d.ts.map +1 -0
- package/dist/animated-icon.js +8902 -0
- package/dist/animated-list.cjs +9226 -0
- package/dist/animated-list.d.ts +126 -0
- package/dist/animated-list.d.ts.map +1 -0
- package/dist/animated-list.js +9201 -0
- package/dist/animated-number.cjs +8773 -0
- package/dist/animated-number.d.ts +127 -0
- package/dist/animated-number.d.ts.map +1 -0
- package/dist/animated-number.js +8767 -0
- package/dist/animated-testimonials.cjs +8653 -0
- package/dist/animated-testimonials.d.ts +17 -0
- package/dist/animated-testimonials.d.ts.map +1 -0
- package/dist/animated-testimonials.js +8632 -0
- package/dist/animated-text.cjs +8914 -0
- package/dist/animated-text.d.ts +65 -0
- package/dist/animated-text.d.ts.map +1 -0
- package/dist/animated-text.js +8890 -0
- package/dist/animated-tooltip.cjs +8624 -0
- package/dist/animated-tooltip.d.ts +9 -0
- package/dist/animated-tooltip.d.ts.map +1 -0
- package/dist/animated-tooltip.js +8603 -0
- package/dist/announcement.cjs +465 -0
- package/dist/announcement.d.ts +9 -0
- package/dist/announcement.d.ts.map +1 -0
- package/dist/announcement.js +443 -0
- package/dist/app-switcher-navigation-bar.cjs +470 -0
- package/dist/app-switcher-navigation-bar.d.ts +15 -0
- package/dist/app-switcher-navigation-bar.d.ts.map +1 -0
- package/dist/app-switcher-navigation-bar.js +448 -0
- package/dist/apple-cards-carousel.cjs +9356 -0
- package/dist/apple-cards-carousel.d.ts +36 -0
- package/dist/apple-cards-carousel.d.ts.map +1 -0
- package/dist/apple-cards-carousel.js +9334 -0
- package/dist/apple-hello-effect.cjs +8380 -0
- package/dist/apple-hello-effect.d.ts +8 -0
- package/dist/apple-hello-effect.d.ts.map +1 -0
- package/dist/apple-hello-effect.js +8359 -0
- package/dist/auth.cjs +6 -5
- package/dist/auth.d.ts +11 -13
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +6 -5
- package/dist/avatar.d.ts +5 -6
- package/dist/avatar.d.ts.map +1 -0
- package/dist/badge.cjs +29 -169
- package/dist/badge.d.ts +9 -13
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +29 -169
- package/dist/bank.d.ts +42 -47
- package/dist/bank.d.ts.map +1 -0
- package/dist/banner.cjs +78 -0
- package/dist/banner.d.ts +20 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/banner.js +55 -0
- package/dist/breadcrumb-and-filters-navigation-bar.cjs +51 -0
- package/dist/breadcrumb-and-filters-navigation-bar.d.ts +10 -0
- package/dist/breadcrumb-and-filters-navigation-bar.d.ts.map +1 -0
- package/dist/breadcrumb-and-filters-navigation-bar.js +29 -0
- package/dist/breadcrumb-navigation-bar.cjs +37 -0
- package/dist/breadcrumb-navigation-bar.d.ts +10 -0
- package/dist/breadcrumb-navigation-bar.d.ts.map +1 -0
- package/dist/breadcrumb-navigation-bar.js +15 -0
- package/dist/button.cjs +21 -154
- package/dist/button.d.ts +9 -10
- package/dist/button.d.ts.map +1 -0
- package/dist/button.js +21 -154
- package/dist/calendar.cjs +55 -0
- package/dist/calendar.d.ts +9 -0
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.js +53 -0
- package/dist/centered-logo-navigation-bar.cjs +37 -0
- package/dist/centered-logo-navigation-bar.d.ts +15 -0
- package/dist/centered-logo-navigation-bar.d.ts.map +1 -0
- package/dist/centered-logo-navigation-bar.js +15 -0
- package/dist/chart.cjs +266 -0
- package/dist/chart.d.ts +52 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.js +238 -0
- package/dist/checkbox.d.ts +6 -7
- package/dist/checkbox.d.ts.map +1 -0
- package/dist/choicebox.cjs +77 -0
- package/dist/choicebox.d.ts +15 -0
- package/dist/choicebox.d.ts.map +1 -0
- package/dist/choicebox.js +55 -0
- package/dist/chrome.cjs +39 -37
- package/dist/chrome.d.ts +15 -19
- package/dist/chrome.d.ts.map +1 -0
- package/dist/chrome.js +37 -35
- package/dist/close-button.d.ts +3 -5
- package/dist/close-button.d.ts.map +1 -0
- package/dist/code-block.cjs +871 -0
- package/dist/code-block.d.ts +38 -0
- package/dist/code-block.d.ts.map +1 -0
- package/dist/code-block.js +849 -0
- package/dist/code-compare.cjs +1714 -0
- package/dist/code-compare.d.ts +46 -0
- package/dist/code-compare.d.ts.map +1 -0
- package/dist/code-compare.js +1692 -0
- package/dist/code-diff.cjs +1073 -0
- package/dist/code-diff.d.ts +42 -0
- package/dist/code-diff.d.ts.map +1 -0
- package/dist/code-diff.js +1051 -0
- package/dist/code-editor.cjs +641 -0
- package/dist/code-editor.d.ts +23 -0
- package/dist/code-editor.d.ts.map +1 -0
- package/dist/code-editor.js +616 -0
- package/dist/code-explorer.cjs +729 -0
- package/dist/code-explorer.d.ts +41 -0
- package/dist/code-explorer.d.ts.map +1 -0
- package/dist/code-explorer.js +707 -0
- package/dist/code-preview.cjs +1349 -0
- package/dist/code-preview.d.ts +38 -0
- package/dist/code-preview.d.ts.map +1 -0
- package/dist/code-preview.js +1327 -0
- package/dist/code-snippet.cjs +920 -0
- package/dist/code-snippet.d.ts +48 -0
- package/dist/code-snippet.d.ts.map +1 -0
- package/dist/code-snippet.js +897 -0
- package/dist/code-tabs.cjs +76 -0
- package/dist/code-tabs.d.ts +12 -0
- package/dist/code-tabs.d.ts.map +1 -0
- package/dist/code-tabs.js +54 -0
- package/dist/code-terminal.cjs +894 -0
- package/dist/code-terminal.d.ts +48 -0
- package/dist/code-terminal.d.ts.map +1 -0
- package/dist/code-terminal.js +872 -0
- package/dist/collaboration-navigation-bar.cjs +49 -0
- package/dist/collaboration-navigation-bar.d.ts +11 -0
- package/dist/collaboration-navigation-bar.d.ts.map +1 -0
- package/dist/collaboration-navigation-bar.js +27 -0
- package/dist/collapsible.cjs +45 -170
- package/dist/collapsible.d.ts +11 -13
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.js +34 -159
- package/dist/color-mode.d.ts +7 -9
- package/dist/color-mode.d.ts.map +1 -0
- package/dist/color-picker.cjs +516 -0
- package/dist/color-picker.d.ts +10 -0
- package/dist/color-picker.d.ts.map +1 -0
- package/dist/color-picker.js +495 -0
- package/dist/combobox.cjs +488 -0
- package/dist/combobox.d.ts +13 -0
- package/dist/combobox.d.ts.map +1 -0
- package/dist/combobox.js +466 -0
- package/dist/communication-navigation-bar.cjs +438 -0
- package/dist/communication-navigation-bar.d.ts +7 -0
- package/dist/communication-navigation-bar.d.ts.map +1 -0
- package/dist/communication-navigation-bar.js +416 -0
- package/dist/company-profile.cjs +46 -0
- package/dist/company-profile.d.ts +10 -0
- package/dist/company-profile.d.ts.map +1 -0
- package/dist/company-profile.js +44 -0
- package/dist/comparison.cjs +60 -0
- package/dist/comparison.d.ts +16 -0
- package/dist/comparison.d.ts.map +1 -0
- package/dist/comparison.js +38 -0
- package/dist/context-switcher-navigation-bar.cjs +51 -0
- package/dist/context-switcher-navigation-bar.d.ts +10 -0
- package/dist/context-switcher-navigation-bar.d.ts.map +1 -0
- package/dist/context-switcher-navigation-bar.js +29 -0
- package/dist/credit-card.cjs +77 -0
- package/dist/credit-card.d.ts +11 -0
- package/dist/credit-card.d.ts.map +1 -0
- package/dist/credit-card.js +55 -0
- package/dist/crypto-screener.cjs +43 -0
- package/dist/crypto-screener.d.ts +4 -0
- package/dist/crypto-screener.d.ts.map +1 -0
- package/dist/crypto-screener.js +41 -0
- package/dist/cursor.cjs +71 -0
- package/dist/cursor.d.ts +9 -0
- package/dist/cursor.d.ts.map +1 -0
- package/dist/cursor.js +49 -0
- package/dist/dashboard-navigation-bar.cjs +441 -0
- package/dist/dashboard-navigation-bar.d.ts +11 -0
- package/dist/dashboard-navigation-bar.d.ts.map +1 -0
- package/dist/dashboard-navigation-bar.js +419 -0
- package/dist/dialog-stack.cjs +460 -0
- package/dist/dialog-stack.d.ts +13 -0
- package/dist/dialog-stack.d.ts.map +1 -0
- package/dist/dialog-stack.js +438 -0
- package/dist/dialog.cjs +16 -19
- package/dist/dialog.d.ts +49 -53
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.js +12 -15
- package/dist/direction.cjs +26 -0
- package/dist/direction.d.ts +20 -0
- package/dist/direction.d.ts.map +1 -0
- package/dist/direction.js +23 -0
- package/dist/dock.cjs +8675 -0
- package/dist/dock.d.ts +20 -0
- package/dist/dock.d.ts.map +1 -0
- package/dist/dock.js +8653 -0
- package/dist/drawer.d.ts +33 -38
- package/dist/drawer.d.ts.map +1 -0
- package/dist/dropzone.cjs +116 -0
- package/dist/dropzone.d.ts +11 -0
- package/dist/dropzone.d.ts.map +1 -0
- package/dist/dropzone.js +94 -0
- package/dist/e-commerce-navigation-bar.cjs +442 -0
- package/dist/e-commerce-navigation-bar.d.ts +12 -0
- package/dist/e-commerce-navigation-bar.d.ts.map +1 -0
- package/dist/e-commerce-navigation-bar.js +420 -0
- package/dist/editor.cjs +497 -0
- package/dist/editor.d.ts +9 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +475 -0
- package/dist/empty-state.d.ts +4 -6
- package/dist/empty-state.d.ts.map +1 -0
- package/dist/empty.cjs +117 -0
- package/dist/empty.d.ts +18 -0
- package/dist/empty.d.ts.map +1 -0
- package/dist/empty.js +110 -0
- package/dist/engine.cjs +91 -0
- package/dist/engine.d.ts +35 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +86 -0
- package/dist/expiration-selector.d.ts +4 -6
- package/dist/expiration-selector.d.ts.map +1 -0
- package/dist/field.cjs +2 -1
- package/dist/field.d.ts +5 -7
- package/dist/field.d.ts.map +1 -0
- package/dist/field.js +3 -2
- package/dist/financials.cjs +66 -0
- package/dist/financials.d.ts +12 -0
- package/dist/financials.d.ts.map +1 -0
- package/dist/financials.js +64 -0
- package/dist/forex-screener.cjs +44 -0
- package/dist/forex-screener.d.ts +4 -0
- package/dist/forex-screener.d.ts.map +1 -0
- package/dist/forex-screener.js +42 -0
- package/dist/gantt.cjs +65 -0
- package/dist/gantt.d.ts +13 -0
- package/dist/gantt.d.ts.map +1 -0
- package/dist/gantt.js +43 -0
- package/dist/greeks-display.d.ts +3 -5
- package/dist/greeks-display.d.ts.map +1 -0
- package/dist/grid-pattern.cjs +327 -0
- package/dist/grid-pattern.d.ts +111 -0
- package/dist/grid-pattern.d.ts.map +1 -0
- package/dist/grid-pattern.js +304 -0
- package/dist/gui.d.ts +1 -1
- package/dist/gui.d.ts.map +1 -0
- package/dist/heading.d.ts +4 -6
- package/dist/heading.d.ts.map +1 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/iam.d.ts +10 -12
- package/dist/iam.d.ts.map +1 -0
- package/dist/icon-button.cjs +14 -147
- package/dist/icon-button.d.ts +4 -5
- package/dist/icon-button.d.ts.map +1 -0
- package/dist/icon-button.js +14 -147
- package/dist/icon-navigation-bar.cjs +48 -0
- package/dist/icon-navigation-bar.d.ts +11 -0
- package/dist/icon-navigation-bar.d.ts.map +1 -0
- package/dist/icon-navigation-bar.js +26 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/identity.d.ts +9 -11
- package/dist/identity.d.ts.map +1 -0
- package/dist/image-crop.cjs +482 -0
- package/dist/image-crop.d.ts +9 -0
- package/dist/image-crop.d.ts.map +1 -0
- package/dist/image-crop.js +460 -0
- package/dist/image-zoom.cjs +77 -0
- package/dist/image-zoom.d.ts +7 -0
- package/dist/image-zoom.d.ts.map +1 -0
- package/dist/image-zoom.js +55 -0
- package/dist/image.cjs +17 -149
- package/dist/image.d.ts +10 -11
- package/dist/image.d.ts.map +1 -0
- package/dist/image.js +16 -148
- package/dist/index.cjs +30299 -1227
- package/dist/index.d.ts +207 -60
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30009 -1226
- package/dist/ink.cjs +17 -0
- package/dist/ink.d.ts +14 -0
- package/dist/ink.d.ts.map +1 -0
- package/dist/ink.js +15 -0
- package/dist/input-group.d.ts +4 -6
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input-otp.cjs +72 -0
- package/dist/input-otp.d.ts +35 -0
- package/dist/input-otp.d.ts.map +1 -0
- package/dist/input-otp.js +47 -0
- package/dist/input.d.ts +8 -9
- package/dist/input.d.ts.map +1 -0
- package/dist/iphone-15-pro.cjs +61 -0
- package/dist/iphone-15-pro.d.ts +9 -0
- package/dist/iphone-15-pro.d.ts.map +1 -0
- package/dist/iphone-15-pro.js +39 -0
- package/dist/item.cjs +215 -0
- package/dist/item.d.ts +41 -0
- package/dist/item.d.ts.map +1 -0
- package/dist/item.js +200 -0
- package/dist/kanban.cjs +1354 -0
- package/dist/kanban.d.ts +36 -0
- package/dist/kanban.d.ts.map +1 -0
- package/dist/kanban.js +1330 -0
- package/dist/kbd.cjs +40 -0
- package/dist/kbd.d.ts +4 -0
- package/dist/kbd.d.ts.map +1 -0
- package/dist/kbd.js +37 -0
- package/dist/limelight-nav-navigation-bar.cjs +51 -0
- package/dist/limelight-nav-navigation-bar.d.ts +10 -0
- package/dist/limelight-nav-navigation-bar.d.ts.map +1 -0
- package/dist/limelight-nav-navigation-bar.js +29 -0
- package/dist/limelight-nav.cjs +570 -0
- package/dist/limelight-nav.d.ts +10 -0
- package/dist/limelight-nav.d.ts.map +1 -0
- package/dist/limelight-nav.js +549 -0
- package/dist/link.cjs +41 -168
- package/dist/link.d.ts +9 -11
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +30 -157
- package/dist/list.cjs +35 -0
- package/dist/list.d.ts +5 -0
- package/dist/list.d.ts.map +1 -0
- package/dist/list.js +12 -0
- package/dist/lux.config.d.ts +521 -524
- package/dist/lux.config.d.ts.map +1 -0
- package/dist/magnetic.cjs +63 -0
- package/dist/magnetic.d.ts +8 -0
- package/dist/magnetic.d.ts.map +1 -0
- package/dist/magnetic.js +41 -0
- package/dist/market-overview.cjs +102 -0
- package/dist/market-overview.d.ts +4 -0
- package/dist/market-overview.d.ts.map +1 -0
- package/dist/market-overview.js +100 -0
- package/dist/marquee.cjs +67 -0
- package/dist/marquee.d.ts +10 -0
- package/dist/marquee.d.ts.map +1 -0
- package/dist/marquee.js +45 -0
- package/dist/menu-dock.cjs +64 -0
- package/dist/menu-dock.d.ts +14 -0
- package/dist/menu-dock.d.ts.map +1 -0
- package/dist/menu-dock.js +42 -0
- package/dist/menu.d.ts +30 -31
- package/dist/menu.d.ts.map +1 -0
- package/dist/menubar.cjs +116 -0
- package/dist/menubar.d.ts +30 -0
- package/dist/menubar.d.ts.map +1 -0
- package/dist/menubar.js +61 -0
- package/dist/message-dock.cjs +480 -0
- package/dist/message-dock.d.ts +15 -0
- package/dist/message-dock.d.ts.map +1 -0
- package/dist/message-dock.js +458 -0
- package/dist/mini-calendar.cjs +505 -0
- package/dist/mini-calendar.d.ts +10 -0
- package/dist/mini-calendar.d.ts.map +1 -0
- package/dist/mini-calendar.js +483 -0
- package/dist/minimal-tiptap.cjs +48 -0
- package/dist/minimal-tiptap.d.ts +8 -0
- package/dist/minimal-tiptap.d.ts.map +1 -0
- package/dist/minimal-tiptap.js +26 -0
- package/dist/motion-highlight.cjs +71 -0
- package/dist/motion-highlight.d.ts +7 -0
- package/dist/motion-highlight.d.ts.map +1 -0
- package/dist/motion-highlight.js +49 -0
- package/dist/music-player.cjs +810 -0
- package/dist/music-player.d.ts +18 -0
- package/dist/music-player.d.ts.map +1 -0
- package/dist/music-player.js +788 -0
- package/dist/native-select.cjs +82 -0
- package/dist/native-select.d.ts +9 -0
- package/dist/native-select.d.ts.map +1 -0
- package/dist/native-select.js +58 -0
- package/dist/news-timeline.cjs +42 -0
- package/dist/news-timeline.d.ts +4 -0
- package/dist/news-timeline.d.ts.map +1 -0
- package/dist/news-timeline.js +40 -0
- package/dist/next.d.ts +5 -7
- package/dist/next.d.ts.map +1 -0
- package/dist/option-chain.d.ts +6 -8
- package/dist/option-chain.d.ts.map +1 -0
- package/dist/option-position.d.ts +4 -6
- package/dist/option-position.d.ts.map +1 -0
- package/dist/order-entry.cjs +141 -0
- package/dist/order-entry.d.ts +15 -0
- package/dist/order-entry.d.ts.map +1 -0
- package/dist/order-entry.js +136 -0
- package/dist/orders-history.cjs +83 -0
- package/dist/orders-history.d.ts +18 -0
- package/dist/orders-history.d.ts.map +1 -0
- package/dist/orders-history.js +78 -0
- package/dist/pagination.cjs +132 -0
- package/dist/pagination.d.ts +29 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +104 -0
- package/dist/particles-background.cjs +159 -0
- package/dist/particles-background.d.ts +18 -0
- package/dist/particles-background.d.ts.map +1 -0
- package/dist/particles-background.js +157 -0
- package/dist/pill.cjs +80 -0
- package/dist/pill.d.ts +21 -0
- package/dist/pill.d.ts.map +1 -0
- package/dist/pill.js +57 -0
- package/dist/pin-input.cjs +1 -1
- package/dist/pin-input.d.ts +3 -5
- package/dist/pin-input.d.ts.map +1 -0
- package/dist/pin-input.js +1 -1
- package/dist/pixel-image.cjs +71 -0
- package/dist/pixel-image.d.ts +8 -0
- package/dist/pixel-image.d.ts.map +1 -0
- package/dist/pixel-image.js +49 -0
- package/dist/pnl-diagram.d.ts +5 -6
- package/dist/pnl-diagram.d.ts.map +1 -0
- package/dist/popover.cjs +16 -18
- package/dist/popover.d.ts +24 -25
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.js +11 -13
- package/dist/positions-list.cjs +98 -0
- package/dist/positions-list.d.ts +13 -0
- package/dist/positions-list.d.ts.map +1 -0
- package/dist/positions-list.js +93 -0
- package/dist/progress-circle.cjs +3 -6
- package/dist/progress-circle.d.ts +8 -9
- package/dist/progress-circle.d.ts.map +1 -0
- package/dist/progress-circle.js +2 -5
- package/dist/progress.d.ts +3 -4
- package/dist/progress.d.ts.map +1 -0
- package/dist/provider.d.ts +8 -10
- package/dist/provider.d.ts.map +1 -0
- package/dist/pulse-animation.cjs +8741 -0
- package/dist/pulse-animation.d.ts +155 -0
- package/dist/pulse-animation.d.ts.map +1 -0
- package/dist/pulse-animation.js +8732 -0
- package/dist/qr-code.cjs +65 -0
- package/dist/qr-code.d.ts +21 -0
- package/dist/qr-code.d.ts.map +1 -0
- package/dist/qr-code.js +43 -0
- package/dist/radio.d.ts +6 -7
- package/dist/radio.d.ts.map +1 -0
- package/dist/rating.d.ts +3 -5
- package/dist/rating.d.ts.map +1 -0
- package/dist/relative-time.cjs +88 -0
- package/dist/relative-time.d.ts +9 -0
- package/dist/relative-time.d.ts.map +1 -0
- package/dist/relative-time.js +66 -0
- package/dist/resizable.cjs +61 -0
- package/dist/resizable.d.ts +24 -0
- package/dist/resizable.d.ts.map +1 -0
- package/dist/resizable.js +37 -0
- package/dist/reveal-animation.cjs +8791 -0
- package/dist/reveal-animation.d.ts +134 -0
- package/dist/reveal-animation.d.ts.map +1 -0
- package/dist/reveal-animation.js +8779 -0
- package/dist/safari.cjs +90 -0
- package/dist/safari.d.ts +9 -0
- package/dist/safari.d.ts.map +1 -0
- package/dist/safari.js +68 -0
- package/dist/sandbox.cjs +94 -0
- package/dist/sandbox.d.ts +9 -0
- package/dist/sandbox.d.ts.map +1 -0
- package/dist/sandbox.js +72 -0
- package/dist/search-and-toggle-navigation-bar.cjs +51 -0
- package/dist/search-and-toggle-navigation-bar.d.ts +10 -0
- package/dist/search-and-toggle-navigation-bar.d.ts.map +1 -0
- package/dist/search-and-toggle-navigation-bar.js +29 -0
- package/dist/select.cjs +38 -168
- package/dist/select.d.ts +38 -41
- package/dist/select.d.ts.map +1 -0
- package/dist/select.js +34 -164
- package/dist/separator.d.ts +5 -6
- package/dist/separator.d.ts.map +1 -0
- package/dist/sidebar.cjs +1134 -0
- package/dist/sidebar.d.ts +80 -0
- package/dist/sidebar.d.ts.map +1 -0
- package/dist/sidebar.js +1090 -0
- package/dist/simple-navigation-bar.cjs +45 -0
- package/dist/simple-navigation-bar.d.ts +11 -0
- package/dist/simple-navigation-bar.d.ts.map +1 -0
- package/dist/simple-navigation-bar.js +23 -0
- package/dist/skeleton.cjs +15 -148
- package/dist/skeleton.d.ts +11 -53
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/skeleton.js +15 -148
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +4 -5
- package/dist/slider.d.ts.map +1 -0
- package/dist/slider.js +1 -1
- package/dist/status-dashboard-navigation-bar.cjs +51 -0
- package/dist/status-dashboard-navigation-bar.d.ts +10 -0
- package/dist/status-dashboard-navigation-bar.d.ts.map +1 -0
- package/dist/status-dashboard-navigation-bar.js +29 -0
- package/dist/status.cjs +85 -0
- package/dist/status.d.ts +23 -0
- package/dist/status.d.ts.map +1 -0
- package/dist/status.js +62 -0
- package/dist/stock-screener.cjs +44 -0
- package/dist/stock-screener.d.ts +4 -0
- package/dist/stock-screener.d.ts.map +1 -0
- package/dist/stock-screener.js +42 -0
- package/dist/strategy-builder.d.ts +6 -8
- package/dist/strategy-builder.d.ts.map +1 -0
- package/dist/switch.cjs +2 -2
- package/dist/switch.d.ts +4 -8
- package/dist/switch.d.ts.map +1 -0
- package/dist/switch.js +2 -2
- package/dist/symbol-info.cjs +44 -0
- package/dist/symbol-info.d.ts +9 -0
- package/dist/symbol-info.d.ts.map +1 -0
- package/dist/symbol-info.js +42 -0
- package/dist/table.cjs +74 -192
- package/dist/table.d.ts +23 -25
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +53 -171
- package/dist/tabs.d.ts +12 -13
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tag.cjs +14 -147
- package/dist/tag.d.ts +4 -5
- package/dist/tag.d.ts.map +1 -0
- package/dist/tag.js +14 -147
- package/dist/tags.cjs +385 -0
- package/dist/tags.d.ts +13 -0
- package/dist/tags.d.ts.map +1 -0
- package/dist/tags.js +364 -0
- package/dist/team-switcher-navigation-bar.cjs +51 -0
- package/dist/team-switcher-navigation-bar.d.ts +10 -0
- package/dist/team-switcher-navigation-bar.d.ts.map +1 -0
- package/dist/team-switcher-navigation-bar.js +29 -0
- package/dist/technical-analysis.cjs +69 -0
- package/dist/technical-analysis.d.ts +13 -0
- package/dist/technical-analysis.d.ts.map +1 -0
- package/dist/technical-analysis.js +67 -0
- package/dist/terminal.cjs +372 -0
- package/dist/terminal.d.ts +21 -0
- package/dist/terminal.d.ts.map +1 -0
- package/dist/terminal.js +350 -0
- package/dist/textarea.d.ts +5 -6
- package/dist/textarea.d.ts.map +1 -0
- package/dist/ticker-tape.cjs +54 -0
- package/dist/ticker-tape.d.ts +4 -0
- package/dist/ticker-tape.d.ts.map +1 -0
- package/dist/ticker-tape.js +52 -0
- package/dist/ticker.cjs +66 -0
- package/dist/ticker.d.ts +10 -0
- package/dist/ticker.d.ts.map +1 -0
- package/dist/ticker.js +44 -0
- package/dist/timeline.cjs +317 -0
- package/dist/timeline.d.ts +20 -0
- package/dist/timeline.d.ts.map +1 -0
- package/dist/timeline.js +295 -0
- package/dist/toaster.d.ts +4 -5
- package/dist/toaster.d.ts.map +1 -0
- package/dist/toggle.cjs +62 -0
- package/dist/toggle.d.ts +26 -0
- package/dist/toggle.d.ts.map +1 -0
- package/dist/toggle.js +57 -0
- package/dist/tooltip.d.ts +3 -5
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/trading-panel.cjs +212 -0
- package/dist/trading-panel.d.ts +7 -0
- package/dist/trading-panel.d.ts.map +1 -0
- package/dist/trading-panel.js +207 -0
- package/dist/two-tier-navigation-bar.cjs +51 -0
- package/dist/two-tier-navigation-bar.d.ts +10 -0
- package/dist/two-tier-navigation-bar.d.ts.map +1 -0
- package/dist/two-tier-navigation-bar.js +29 -0
- package/dist/underline-navigation-bar.cjs +51 -0
- package/dist/underline-navigation-bar.d.ts +10 -0
- package/dist/underline-navigation-bar.d.ts.map +1 -0
- package/dist/underline-navigation-bar.js +29 -0
- package/dist/use-narrow.d.ts +6 -7
- package/dist/use-narrow.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils.cjs +6 -7
- package/dist/utils.d.ts +13 -5
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +1 -9
- package/dist/vite.d.ts +3 -3
- package/dist/vite.d.ts.map +1 -0
- package/dist/white-label.d.ts +12 -12
- package/dist/white-label.d.ts.map +1 -0
- package/dist/youtube-pip-player.cjs +489 -0
- package/dist/youtube-pip-player.d.ts +41 -0
- package/dist/youtube-pip-player.d.ts.map +1 -0
- package/dist/youtube-pip-player.js +466 -0
- package/package.json +769 -66
- package/src/3d-button.tsx +346 -0
- package/src/3d-card.tsx +271 -0
- package/src/3d-carousel.tsx +444 -0
- package/src/3d-grid.tsx +448 -0
- package/src/3d-marquee.tsx +422 -0
- package/src/3d-model-viewer.tsx +659 -0
- package/src/3d-pin.tsx +37 -0
- package/src/3d-scene.tsx +629 -0
- package/src/3d-text.tsx +442 -0
- package/src/advanced-chart.tsx +63 -0
- package/src/advanced-navigation-bar.tsx +83 -0
- package/src/ai-actions.tsx +60 -0
- package/src/ai-agents.tsx +1174 -0
- package/src/ai-assistant.tsx +227 -0
- package/src/ai-chat.tsx +554 -0
- package/src/ai-code.tsx +1331 -0
- package/src/ai-model-selector-navigation-bar.tsx +78 -0
- package/src/ai-models.tsx +58 -0
- package/src/ai-playground.tsx +429 -0
- package/src/ai-tools.tsx +383 -0
- package/src/ai-vision.tsx +1220 -0
- package/src/ai-voice-settings.tsx +726 -0
- package/src/ai-voice.tsx +735 -0
- package/src/android.tsx +92 -0
- package/src/animated-background.tsx +625 -0
- package/src/animated-beam.tsx +110 -0
- package/src/animated-cursor.tsx +406 -0
- package/src/animated-icon.tsx +520 -0
- package/src/animated-list.tsx +508 -0
- package/src/animated-number.tsx +485 -0
- package/src/animated-testimonials.tsx +119 -0
- package/src/animated-text.tsx +481 -0
- package/src/animated-tooltip.tsx +54 -0
- package/src/announcement.tsx +55 -0
- package/src/app-switcher-navigation-bar.tsx +76 -0
- package/src/apple-cards-carousel.tsx +349 -0
- package/src/apple-hello-effect.tsx +50 -0
- package/src/auth.tsx +9 -8
- package/src/avatar.tsx +1 -1
- package/src/badge.tsx +27 -30
- package/src/banner.tsx +62 -0
- package/src/breadcrumb-and-filters-navigation-bar.tsx +40 -0
- package/src/breadcrumb-navigation-bar.tsx +43 -0
- package/src/button.tsx +10 -9
- package/src/calendar.tsx +62 -0
- package/src/centered-logo-navigation-bar.tsx +43 -0
- package/src/chart.tsx +372 -0
- package/src/choicebox.tsx +89 -0
- package/src/chrome.tsx +41 -40
- package/src/code-block.tsx +278 -0
- package/src/code-compare.tsx +551 -0
- package/src/code-diff.tsx +573 -0
- package/src/code-editor.tsx +250 -0
- package/src/code-explorer.tsx +403 -0
- package/src/code-preview.tsx +488 -0
- package/src/code-snippet.tsx +336 -0
- package/src/code-tabs.tsx +78 -0
- package/src/code-terminal.tsx +530 -0
- package/src/collaboration-navigation-bar.tsx +50 -0
- package/src/collapsible.tsx +3 -2
- package/src/color-picker.tsx +68 -0
- package/src/combobox.tsx +87 -0
- package/src/communication-navigation-bar.tsx +42 -0
- package/src/company-profile.tsx +67 -0
- package/src/comparison.tsx +68 -0
- package/src/context-switcher-navigation-bar.tsx +39 -0
- package/src/credit-card.tsx +72 -0
- package/src/crypto-screener.tsx +57 -0
- package/src/cursor.tsx +61 -0
- package/src/dashboard-navigation-bar.tsx +49 -0
- package/src/dialog-stack.tsx +55 -0
- package/src/dialog.tsx +16 -15
- package/src/direction.tsx +40 -0
- package/src/dock.tsx +172 -0
- package/src/dropzone.tsx +106 -0
- package/src/e-commerce-navigation-bar.tsx +54 -0
- package/src/editor.tsx +85 -0
- package/src/empty.tsx +117 -0
- package/src/field.tsx +2 -1
- package/src/financials.tsx +85 -0
- package/src/forex-screener.tsx +58 -0
- package/src/gantt.tsx +68 -0
- package/src/grid-pattern.tsx +353 -0
- package/src/hooks/use-mobile.ts +29 -0
- package/src/icon-navigation-bar.tsx +36 -0
- package/src/image-crop.tsx +67 -0
- package/src/image-zoom.tsx +64 -0
- package/src/image.tsx +2 -1
- package/src/index.ts +123 -0
- package/src/input-otp.tsx +72 -0
- package/src/iphone-15-pro.tsx +69 -0
- package/src/item.tsx +193 -0
- package/src/kanban.tsx +772 -0
- package/src/kbd.tsx +32 -0
- package/src/limelight-nav-navigation-bar.tsx +39 -0
- package/src/limelight-nav.tsx +101 -0
- package/src/link.tsx +18 -18
- package/src/list.tsx +22 -0
- package/src/magnetic.tsx +54 -0
- package/src/market-overview.tsx +116 -0
- package/src/marquee.tsx +62 -0
- package/src/menu-dock.tsx +56 -0
- package/src/menubar.tsx +149 -0
- package/src/message-dock.tsx +89 -0
- package/src/mini-calendar.tsx +121 -0
- package/src/minimal-tiptap.tsx +32 -0
- package/src/motion-highlight.tsx +55 -0
- package/src/music-player.tsx +413 -0
- package/src/native-select.tsx +63 -0
- package/src/news-timeline.tsx +56 -0
- package/src/order-entry.tsx +162 -0
- package/src/orders-history.tsx +115 -0
- package/src/pagination.tsx +118 -0
- package/src/particles-background.tsx +225 -0
- package/src/pill.tsx +61 -0
- package/src/pin-input.tsx +1 -1
- package/src/pixel-image.tsx +64 -0
- package/src/popover.tsx +10 -9
- package/src/positions-list.tsx +108 -0
- package/src/progress-circle.tsx +2 -1
- package/src/pulse-animation.tsx +606 -0
- package/src/qr-code.tsx +64 -0
- package/src/relative-time.tsx +84 -0
- package/src/resizable.tsx +46 -0
- package/src/reveal-animation.tsx +532 -0
- package/src/safari.tsx +115 -0
- package/src/sandbox.tsx +83 -0
- package/src/search-and-toggle-navigation-bar.tsx +39 -0
- package/src/select.tsx +31 -30
- package/src/sidebar.tsx +723 -0
- package/src/simple-navigation-bar.tsx +39 -0
- package/src/skeleton.tsx +20 -168
- package/src/slider.tsx +2 -1
- package/src/status-dashboard-navigation-bar.tsx +39 -0
- package/src/status.tsx +63 -0
- package/src/stock-screener.tsx +58 -0
- package/src/switch.tsx +3 -3
- package/src/symbol-info.tsx +64 -0
- package/src/table.tsx +26 -25
- package/src/tags.tsx +62 -0
- package/src/team-switcher-navigation-bar.tsx +39 -0
- package/src/technical-analysis.tsx +99 -0
- package/src/terminal.tsx +399 -0
- package/src/ticker-tape.tsx +68 -0
- package/src/ticker.tsx +52 -0
- package/src/timeline.tsx +412 -0
- package/src/toggle.tsx +84 -0
- package/src/trading-panel.tsx +262 -0
- package/src/two-tier-navigation-bar.tsx +39 -0
- package/src/underline-navigation-bar.tsx +39 -0
- package/src/utils/cn.ts +3 -7
- package/src/utils.ts +12 -6
- package/src/youtube-pip-player.tsx +606 -0
- package/tokens.css +22 -0
- package/dist/accordion.d.cts +0 -41
- package/dist/alert.d.cts +0 -30
- package/dist/auth.d.cts +0 -80
- package/dist/avatar.d.cts +0 -25
- package/dist/badge.d.cts +0 -19
- package/dist/bank.d.cts +0 -83
- package/dist/button.d.cts +0 -51
- package/dist/checkbox.d.cts +0 -32
- package/dist/chrome.d.cts +0 -93
- package/dist/close-button.d.cts +0 -9
- package/dist/collapsible.d.cts +0 -24
- package/dist/color-mode.d.cts +0 -25
- package/dist/dialog.d.cts +0 -118
- package/dist/drawer.d.cts +0 -69
- package/dist/empty-state.d.cts +0 -13
- package/dist/expiration-selector.d.cts +0 -16
- package/dist/field.d.cts +0 -23
- package/dist/greeks-display.d.cts +0 -14
- package/dist/gui.d.cts +0 -2
- package/dist/heading.d.cts +0 -8
- package/dist/iam.d.cts +0 -65
- package/dist/icon-button.d.cts +0 -37
- package/dist/icons.d.cts +0 -1
- package/dist/identity.d.cts +0 -64
- package/dist/image.d.cts +0 -57
- package/dist/index.d.cts +0 -60
- package/dist/input-group.d.cts +0 -17
- package/dist/input.d.cts +0 -37
- package/dist/link.d.cts +0 -37
- package/dist/lux.config.d.cts +0 -981
- package/dist/menu.d.cts +0 -68
- package/dist/next.d.cts +0 -32
- package/dist/option-chain.d.cts +0 -37
- package/dist/option-position.d.cts +0 -29
- package/dist/pin-input.d.cts +0 -25
- package/dist/pnl-diagram.d.cts +0 -11
- package/dist/popover.d.cts +0 -73
- package/dist/progress-circle.d.cts +0 -47
- package/dist/progress.d.cts +0 -28
- package/dist/provider.d.cts +0 -25
- package/dist/radio.d.cts +0 -53
- package/dist/rating.d.cts +0 -14
- package/dist/select.d.cts +0 -161
- package/dist/separator.d.cts +0 -13
- package/dist/skeleton.d.cts +0 -76
- package/dist/slider.d.cts +0 -24
- package/dist/strategy-builder.d.cts +0 -26
- package/dist/switch.d.cts +0 -27
- package/dist/table.d.cts +0 -107
- package/dist/tabs.d.cts +0 -34
- package/dist/tag.d.cts +0 -21
- package/dist/textarea.d.cts +0 -13
- package/dist/toaster.d.cts +0 -28
- package/dist/tooltip.d.cts +0 -38
- package/dist/use-narrow.d.cts +0 -12
- package/dist/utils.d.cts +0 -5
- package/dist/vite.d.cts +0 -29
- package/dist/white-label.d.cts +0 -59
package/dist/alert.cjs
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
5
5
|
var React2 = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var
|
|
8
|
-
var tailwindMerge = require('tailwind-merge');
|
|
7
|
+
var ui = require('@hanzo/ui');
|
|
9
8
|
|
|
10
9
|
function _interopNamespace(e) {
|
|
11
10
|
if (e && e.__esModule) return e;
|
|
@@ -94,158 +93,26 @@ var ink = (children, Wrap = gui.Text, props = {}) => {
|
|
|
94
93
|
if (!hasText) return children;
|
|
95
94
|
return React2.Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? React2.createElement(Wrap, props, child) : child);
|
|
96
95
|
};
|
|
97
|
-
function cn(...inputs) {
|
|
98
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
99
|
-
}
|
|
100
|
-
var SHIM_PROPS = [
|
|
101
|
-
"w",
|
|
102
|
-
"h",
|
|
103
|
-
"minW",
|
|
104
|
-
"maxW",
|
|
105
|
-
"display",
|
|
106
|
-
"flexGrow",
|
|
107
|
-
"flexShrink",
|
|
108
|
-
"flexBasis",
|
|
109
|
-
"fontWeight",
|
|
110
|
-
"textStyle",
|
|
111
|
-
"borderRadius",
|
|
112
|
-
"alignSelf",
|
|
113
|
-
"alignItems",
|
|
114
|
-
"justifyContent",
|
|
115
|
-
"color",
|
|
116
|
-
"mt",
|
|
117
|
-
"mb",
|
|
118
|
-
"ml",
|
|
119
|
-
"mr",
|
|
120
|
-
"height",
|
|
121
|
-
"overflow",
|
|
122
|
-
"whiteSpace",
|
|
123
|
-
"textOverflow",
|
|
124
|
-
"textTransform",
|
|
125
|
-
"gap",
|
|
126
|
-
"gridTemplateColumns",
|
|
127
|
-
"minWidth",
|
|
128
|
-
"boxSize",
|
|
129
|
-
"py",
|
|
130
|
-
"px",
|
|
131
|
-
"p",
|
|
132
|
-
"hideBelow",
|
|
133
|
-
"fontSize",
|
|
134
|
-
"flexWrap",
|
|
135
|
-
"wordBreak",
|
|
136
|
-
"lineHeight",
|
|
137
|
-
"marginRight",
|
|
138
|
-
"position",
|
|
139
|
-
"background"
|
|
140
|
-
];
|
|
141
|
-
var S = 4;
|
|
142
|
-
function dim(v) {
|
|
143
|
-
if (v == null) return void 0;
|
|
144
|
-
if (typeof v === "number") return `${v * S}px`;
|
|
145
|
-
if (typeof v === "string") return v;
|
|
146
|
-
if (typeof v === "object") {
|
|
147
|
-
const o = v;
|
|
148
|
-
return o.base ?? o.lg ?? o.xl ?? Object.values(o)[0];
|
|
149
|
-
}
|
|
150
|
-
return void 0;
|
|
151
|
-
}
|
|
152
|
-
function sp(v) {
|
|
153
|
-
if (v === void 0) return void 0;
|
|
154
|
-
return typeof v === "number" ? `${v * S}px` : v;
|
|
155
|
-
}
|
|
156
|
-
function shimToStyle(props) {
|
|
157
|
-
const s = {};
|
|
158
|
-
if (props.w !== void 0) s.width = dim(props.w);
|
|
159
|
-
if (props.h !== void 0) s.height = dim(props.h);
|
|
160
|
-
if (props.minW !== void 0) s.minWidth = dim(props.minW);
|
|
161
|
-
if (props.maxW !== void 0) s.maxWidth = dim(props.maxW);
|
|
162
|
-
if (props.display !== void 0) s.display = props.display;
|
|
163
|
-
if (props.flexGrow !== void 0) s.flexGrow = props.flexGrow;
|
|
164
|
-
if (props.flexShrink !== void 0) s.flexShrink = props.flexShrink;
|
|
165
|
-
if (props.flexBasis !== void 0) s.flexBasis = props.flexBasis;
|
|
166
|
-
if (props.fontWeight !== void 0) s.fontWeight = props.fontWeight;
|
|
167
|
-
if (props.borderRadius !== void 0) s.borderRadius = props.borderRadius;
|
|
168
|
-
if (props.alignSelf !== void 0) s.alignSelf = props.alignSelf;
|
|
169
|
-
if (props.alignItems !== void 0) s.alignItems = props.alignItems;
|
|
170
|
-
if (props.justifyContent !== void 0) s.justifyContent = props.justifyContent;
|
|
171
|
-
if (props.color !== void 0) s.color = props.color;
|
|
172
|
-
if (props.mt !== void 0) s.marginTop = sp(props.mt);
|
|
173
|
-
if (props.mb !== void 0) s.marginBottom = sp(props.mb);
|
|
174
|
-
if (props.ml !== void 0) s.marginLeft = sp(props.ml);
|
|
175
|
-
if (props.mr !== void 0) s.marginRight = sp(props.mr);
|
|
176
|
-
if (props.height !== void 0) s.height = props.height;
|
|
177
|
-
if (props.overflow !== void 0) s.overflow = props.overflow;
|
|
178
|
-
if (props.whiteSpace !== void 0) s.whiteSpace = props.whiteSpace;
|
|
179
|
-
if (props.textOverflow !== void 0) s.textOverflow = props.textOverflow;
|
|
180
|
-
if (props.textTransform !== void 0) s.textTransform = props.textTransform;
|
|
181
|
-
if (props.gap !== void 0) s.gap = sp(props.gap);
|
|
182
|
-
if (props.gridTemplateColumns !== void 0) s.gridTemplateColumns = props.gridTemplateColumns;
|
|
183
|
-
if (props.minWidth !== void 0) s.minWidth = props.minWidth;
|
|
184
|
-
if (props.boxSize !== void 0) {
|
|
185
|
-
const v = typeof props.boxSize === "number" ? `${props.boxSize * S}px` : props.boxSize;
|
|
186
|
-
s.width = v;
|
|
187
|
-
s.height = v;
|
|
188
|
-
}
|
|
189
|
-
if (props.py !== void 0) {
|
|
190
|
-
const v = sp(props.py);
|
|
191
|
-
s.paddingTop = v;
|
|
192
|
-
s.paddingBottom = v;
|
|
193
|
-
}
|
|
194
|
-
if (props.px !== void 0) {
|
|
195
|
-
const v = sp(props.px);
|
|
196
|
-
s.paddingLeft = v;
|
|
197
|
-
s.paddingRight = v;
|
|
198
|
-
}
|
|
199
|
-
if (props.p !== void 0) s.padding = sp(props.p);
|
|
200
|
-
if (props.fontSize !== void 0) s.fontSize = props.fontSize;
|
|
201
|
-
if (props.flexWrap !== void 0) s.flexWrap = props.flexWrap;
|
|
202
|
-
if (props.wordBreak !== void 0) s.wordBreak = props.wordBreak;
|
|
203
|
-
if (props.lineHeight !== void 0) s.lineHeight = props.lineHeight;
|
|
204
|
-
if (props.marginRight !== void 0) s.marginRight = props.marginRight;
|
|
205
|
-
if (props.position !== void 0) s.position = props.position;
|
|
206
|
-
if (props.background !== void 0) s.background = props.background;
|
|
207
|
-
return s;
|
|
208
|
-
}
|
|
209
|
-
function stripShims(props) {
|
|
210
|
-
const out = { ...props };
|
|
211
|
-
for (const k of SHIM_PROPS) delete out[k];
|
|
212
|
-
return out;
|
|
213
|
-
}
|
|
214
96
|
var SKELETON_CLASSES = "lux-skeleton rounded-sm";
|
|
215
|
-
var HIDE_BELOW_MAP = { lg: "lg:hidden", md: "md:hidden", sm: "sm:hidden" };
|
|
216
97
|
var Skeleton = React2__namespace.forwardRef(
|
|
217
98
|
function Skeleton2(props, ref) {
|
|
218
|
-
const { loading =
|
|
219
|
-
const shimStyle = shimToStyle(props);
|
|
220
|
-
const mergedStyle = Object.keys(shimStyle).length > 0 || styleProp ? { ...shimStyle, ...styleProp } : void 0;
|
|
221
|
-
const hideBelowClass = props.hideBelow ? HIDE_BELOW_MAP[props.hideBelow] : void 0;
|
|
222
|
-
const cls = hideBelowClass ? cn(className, hideBelowClass) : className;
|
|
223
|
-
const htmlRest = stripShims(allRest);
|
|
99
|
+
const { loading = true, asChild, className, children, style, ...rest } = props;
|
|
224
100
|
if (!loading) {
|
|
225
101
|
if (asChild && React2__namespace.isValidElement(children)) return children;
|
|
226
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
227
|
-
}
|
|
228
|
-
if (asChild && React2__namespace.isValidElement(children)) {
|
|
229
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
-
Component,
|
|
231
|
-
{
|
|
232
|
-
ref,
|
|
233
|
-
"data-loading": true,
|
|
234
|
-
className: cn(SKELETON_CLASSES, "[&_*]:invisible", cls),
|
|
235
|
-
style: mergedStyle,
|
|
236
|
-
...htmlRest,
|
|
237
|
-
children
|
|
238
|
-
}
|
|
239
|
-
);
|
|
102
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className, style, ...rest, children });
|
|
240
103
|
}
|
|
241
104
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
242
|
-
|
|
105
|
+
"div",
|
|
243
106
|
{
|
|
244
107
|
ref,
|
|
245
108
|
"data-loading": true,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
109
|
+
...ui.sx(
|
|
110
|
+
SKELETON_CLASSES,
|
|
111
|
+
asChild || children ? "[&_*]:invisible" : "min-h-5",
|
|
112
|
+
className
|
|
113
|
+
),
|
|
114
|
+
style,
|
|
115
|
+
...rest,
|
|
249
116
|
children
|
|
250
117
|
}
|
|
251
118
|
);
|
|
@@ -260,7 +127,7 @@ React2__namespace.forwardRef(
|
|
|
260
127
|
{
|
|
261
128
|
ref,
|
|
262
129
|
loading,
|
|
263
|
-
|
|
130
|
+
...ui.sx("rounded-full shrink-0", className),
|
|
264
131
|
style: { width: dimension, height: dimension, ...rest.style },
|
|
265
132
|
...rest
|
|
266
133
|
}
|
|
@@ -270,11 +137,11 @@ React2__namespace.forwardRef(
|
|
|
270
137
|
React2__namespace.forwardRef(
|
|
271
138
|
function SkeletonText2(props, ref) {
|
|
272
139
|
const { noOfLines = 3, loading = true, className, ...rest } = props;
|
|
273
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
140
|
+
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(
|
|
274
141
|
Skeleton,
|
|
275
142
|
{
|
|
276
143
|
loading,
|
|
277
|
-
|
|
144
|
+
...ui.sx(ui.cn("h-4", index === noOfLines - 1 && "max-w-[80%]"))
|
|
278
145
|
},
|
|
279
146
|
index
|
|
280
147
|
)) });
|
package/dist/alert.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
type AlertStatus = 'info' | 'warning' | 'warning_table' | 'success' | 'error';
|
|
4
|
-
interface AlertProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
3
|
+
export interface AlertProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
5
4
|
readonly status?: AlertStatus;
|
|
6
5
|
readonly size?: 'sm' | 'md';
|
|
7
6
|
readonly inline?: boolean;
|
|
@@ -25,6 +24,6 @@ interface AlertProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'title'
|
|
|
25
24
|
readonly mb?: number | string;
|
|
26
25
|
readonly mt?: number | string;
|
|
27
26
|
}
|
|
28
|
-
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../src/alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,OAAO,CAAC;AAyC9E,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACtF,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;QAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC7B,CAAC;IACF,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAE5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B;AAMD,eAAO,MAAM,KAAK,mFAwIjB,CAAC"}
|
package/dist/alert.js
CHANGED
|
@@ -3,8 +3,7 @@ import { styled, View, XStack, YStack, Text } from '@hanzo/gui';
|
|
|
3
3
|
import * as React2 from 'react';
|
|
4
4
|
import { Children, createElement } from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
import {
|
|
7
|
-
import { twMerge } from 'tailwind-merge';
|
|
6
|
+
import { Box, sx, cn } from '@hanzo/ui';
|
|
8
7
|
|
|
9
8
|
// src/alert.tsx
|
|
10
9
|
var CLOSE_ICON_PATH = "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z";
|
|
@@ -73,158 +72,26 @@ var ink = (children, Wrap = Text, props = {}) => {
|
|
|
73
72
|
if (!hasText) return children;
|
|
74
73
|
return Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? createElement(Wrap, props, child) : child);
|
|
75
74
|
};
|
|
76
|
-
function cn(...inputs) {
|
|
77
|
-
return twMerge(clsx(inputs));
|
|
78
|
-
}
|
|
79
|
-
var SHIM_PROPS = [
|
|
80
|
-
"w",
|
|
81
|
-
"h",
|
|
82
|
-
"minW",
|
|
83
|
-
"maxW",
|
|
84
|
-
"display",
|
|
85
|
-
"flexGrow",
|
|
86
|
-
"flexShrink",
|
|
87
|
-
"flexBasis",
|
|
88
|
-
"fontWeight",
|
|
89
|
-
"textStyle",
|
|
90
|
-
"borderRadius",
|
|
91
|
-
"alignSelf",
|
|
92
|
-
"alignItems",
|
|
93
|
-
"justifyContent",
|
|
94
|
-
"color",
|
|
95
|
-
"mt",
|
|
96
|
-
"mb",
|
|
97
|
-
"ml",
|
|
98
|
-
"mr",
|
|
99
|
-
"height",
|
|
100
|
-
"overflow",
|
|
101
|
-
"whiteSpace",
|
|
102
|
-
"textOverflow",
|
|
103
|
-
"textTransform",
|
|
104
|
-
"gap",
|
|
105
|
-
"gridTemplateColumns",
|
|
106
|
-
"minWidth",
|
|
107
|
-
"boxSize",
|
|
108
|
-
"py",
|
|
109
|
-
"px",
|
|
110
|
-
"p",
|
|
111
|
-
"hideBelow",
|
|
112
|
-
"fontSize",
|
|
113
|
-
"flexWrap",
|
|
114
|
-
"wordBreak",
|
|
115
|
-
"lineHeight",
|
|
116
|
-
"marginRight",
|
|
117
|
-
"position",
|
|
118
|
-
"background"
|
|
119
|
-
];
|
|
120
|
-
var S = 4;
|
|
121
|
-
function dim(v) {
|
|
122
|
-
if (v == null) return void 0;
|
|
123
|
-
if (typeof v === "number") return `${v * S}px`;
|
|
124
|
-
if (typeof v === "string") return v;
|
|
125
|
-
if (typeof v === "object") {
|
|
126
|
-
const o = v;
|
|
127
|
-
return o.base ?? o.lg ?? o.xl ?? Object.values(o)[0];
|
|
128
|
-
}
|
|
129
|
-
return void 0;
|
|
130
|
-
}
|
|
131
|
-
function sp(v) {
|
|
132
|
-
if (v === void 0) return void 0;
|
|
133
|
-
return typeof v === "number" ? `${v * S}px` : v;
|
|
134
|
-
}
|
|
135
|
-
function shimToStyle(props) {
|
|
136
|
-
const s = {};
|
|
137
|
-
if (props.w !== void 0) s.width = dim(props.w);
|
|
138
|
-
if (props.h !== void 0) s.height = dim(props.h);
|
|
139
|
-
if (props.minW !== void 0) s.minWidth = dim(props.minW);
|
|
140
|
-
if (props.maxW !== void 0) s.maxWidth = dim(props.maxW);
|
|
141
|
-
if (props.display !== void 0) s.display = props.display;
|
|
142
|
-
if (props.flexGrow !== void 0) s.flexGrow = props.flexGrow;
|
|
143
|
-
if (props.flexShrink !== void 0) s.flexShrink = props.flexShrink;
|
|
144
|
-
if (props.flexBasis !== void 0) s.flexBasis = props.flexBasis;
|
|
145
|
-
if (props.fontWeight !== void 0) s.fontWeight = props.fontWeight;
|
|
146
|
-
if (props.borderRadius !== void 0) s.borderRadius = props.borderRadius;
|
|
147
|
-
if (props.alignSelf !== void 0) s.alignSelf = props.alignSelf;
|
|
148
|
-
if (props.alignItems !== void 0) s.alignItems = props.alignItems;
|
|
149
|
-
if (props.justifyContent !== void 0) s.justifyContent = props.justifyContent;
|
|
150
|
-
if (props.color !== void 0) s.color = props.color;
|
|
151
|
-
if (props.mt !== void 0) s.marginTop = sp(props.mt);
|
|
152
|
-
if (props.mb !== void 0) s.marginBottom = sp(props.mb);
|
|
153
|
-
if (props.ml !== void 0) s.marginLeft = sp(props.ml);
|
|
154
|
-
if (props.mr !== void 0) s.marginRight = sp(props.mr);
|
|
155
|
-
if (props.height !== void 0) s.height = props.height;
|
|
156
|
-
if (props.overflow !== void 0) s.overflow = props.overflow;
|
|
157
|
-
if (props.whiteSpace !== void 0) s.whiteSpace = props.whiteSpace;
|
|
158
|
-
if (props.textOverflow !== void 0) s.textOverflow = props.textOverflow;
|
|
159
|
-
if (props.textTransform !== void 0) s.textTransform = props.textTransform;
|
|
160
|
-
if (props.gap !== void 0) s.gap = sp(props.gap);
|
|
161
|
-
if (props.gridTemplateColumns !== void 0) s.gridTemplateColumns = props.gridTemplateColumns;
|
|
162
|
-
if (props.minWidth !== void 0) s.minWidth = props.minWidth;
|
|
163
|
-
if (props.boxSize !== void 0) {
|
|
164
|
-
const v = typeof props.boxSize === "number" ? `${props.boxSize * S}px` : props.boxSize;
|
|
165
|
-
s.width = v;
|
|
166
|
-
s.height = v;
|
|
167
|
-
}
|
|
168
|
-
if (props.py !== void 0) {
|
|
169
|
-
const v = sp(props.py);
|
|
170
|
-
s.paddingTop = v;
|
|
171
|
-
s.paddingBottom = v;
|
|
172
|
-
}
|
|
173
|
-
if (props.px !== void 0) {
|
|
174
|
-
const v = sp(props.px);
|
|
175
|
-
s.paddingLeft = v;
|
|
176
|
-
s.paddingRight = v;
|
|
177
|
-
}
|
|
178
|
-
if (props.p !== void 0) s.padding = sp(props.p);
|
|
179
|
-
if (props.fontSize !== void 0) s.fontSize = props.fontSize;
|
|
180
|
-
if (props.flexWrap !== void 0) s.flexWrap = props.flexWrap;
|
|
181
|
-
if (props.wordBreak !== void 0) s.wordBreak = props.wordBreak;
|
|
182
|
-
if (props.lineHeight !== void 0) s.lineHeight = props.lineHeight;
|
|
183
|
-
if (props.marginRight !== void 0) s.marginRight = props.marginRight;
|
|
184
|
-
if (props.position !== void 0) s.position = props.position;
|
|
185
|
-
if (props.background !== void 0) s.background = props.background;
|
|
186
|
-
return s;
|
|
187
|
-
}
|
|
188
|
-
function stripShims(props) {
|
|
189
|
-
const out = { ...props };
|
|
190
|
-
for (const k of SHIM_PROPS) delete out[k];
|
|
191
|
-
return out;
|
|
192
|
-
}
|
|
193
75
|
var SKELETON_CLASSES = "lux-skeleton rounded-sm";
|
|
194
|
-
var HIDE_BELOW_MAP = { lg: "lg:hidden", md: "md:hidden", sm: "sm:hidden" };
|
|
195
76
|
var Skeleton = React2.forwardRef(
|
|
196
77
|
function Skeleton2(props, ref) {
|
|
197
|
-
const { loading =
|
|
198
|
-
const shimStyle = shimToStyle(props);
|
|
199
|
-
const mergedStyle = Object.keys(shimStyle).length > 0 || styleProp ? { ...shimStyle, ...styleProp } : void 0;
|
|
200
|
-
const hideBelowClass = props.hideBelow ? HIDE_BELOW_MAP[props.hideBelow] : void 0;
|
|
201
|
-
const cls = hideBelowClass ? cn(className, hideBelowClass) : className;
|
|
202
|
-
const htmlRest = stripShims(allRest);
|
|
78
|
+
const { loading = true, asChild, className, children, style, ...rest } = props;
|
|
203
79
|
if (!loading) {
|
|
204
80
|
if (asChild && React2.isValidElement(children)) return children;
|
|
205
|
-
return /* @__PURE__ */ jsx(
|
|
206
|
-
}
|
|
207
|
-
if (asChild && React2.isValidElement(children)) {
|
|
208
|
-
return /* @__PURE__ */ jsx(
|
|
209
|
-
Component,
|
|
210
|
-
{
|
|
211
|
-
ref,
|
|
212
|
-
"data-loading": true,
|
|
213
|
-
className: cn(SKELETON_CLASSES, "[&_*]:invisible", cls),
|
|
214
|
-
style: mergedStyle,
|
|
215
|
-
...htmlRest,
|
|
216
|
-
children
|
|
217
|
-
}
|
|
218
|
-
);
|
|
81
|
+
return /* @__PURE__ */ jsx(Box, { ref, className, style, ...rest, children });
|
|
219
82
|
}
|
|
220
83
|
return /* @__PURE__ */ jsx(
|
|
221
|
-
|
|
84
|
+
"div",
|
|
222
85
|
{
|
|
223
86
|
ref,
|
|
224
87
|
"data-loading": true,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
88
|
+
...sx(
|
|
89
|
+
SKELETON_CLASSES,
|
|
90
|
+
asChild || children ? "[&_*]:invisible" : "min-h-5",
|
|
91
|
+
className
|
|
92
|
+
),
|
|
93
|
+
style,
|
|
94
|
+
...rest,
|
|
228
95
|
children
|
|
229
96
|
}
|
|
230
97
|
);
|
|
@@ -239,7 +106,7 @@ React2.forwardRef(
|
|
|
239
106
|
{
|
|
240
107
|
ref,
|
|
241
108
|
loading,
|
|
242
|
-
|
|
109
|
+
...sx("rounded-full shrink-0", className),
|
|
243
110
|
style: { width: dimension, height: dimension, ...rest.style },
|
|
244
111
|
...rest
|
|
245
112
|
}
|
|
@@ -249,11 +116,11 @@ React2.forwardRef(
|
|
|
249
116
|
React2.forwardRef(
|
|
250
117
|
function SkeletonText2(props, ref) {
|
|
251
118
|
const { noOfLines = 3, loading = true, className, ...rest } = props;
|
|
252
|
-
return /* @__PURE__ */ jsx(
|
|
119
|
+
return /* @__PURE__ */ jsx(Box, { ref, className: cn("flex w-full flex-col gap-2", className), ...rest, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsx(
|
|
253
120
|
Skeleton,
|
|
254
121
|
{
|
|
255
122
|
loading,
|
|
256
|
-
|
|
123
|
+
...sx(cn("h-4", index === noOfLines - 1 && "max-w-[80%]"))
|
|
257
124
|
},
|
|
258
125
|
index
|
|
259
126
|
)) });
|
package/dist/android.cjs
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var ui = require('@hanzo/ui');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
+
|
|
28
|
+
// src/android.tsx
|
|
29
|
+
var androidVariants = ui.variants("inline-flex items-center justify-center", {
|
|
30
|
+
variants: {
|
|
31
|
+
size: {
|
|
32
|
+
sm: "h-4 w-4",
|
|
33
|
+
default: "h-6 w-6",
|
|
34
|
+
lg: "h-8 w-8",
|
|
35
|
+
xl: "h-12 w-12"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
size: "default"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var Android = React__namespace.forwardRef(
|
|
43
|
+
({ className, size, color = "currentColor", ...props }, ref) => {
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
45
|
+
"svg",
|
|
46
|
+
{
|
|
47
|
+
ref,
|
|
48
|
+
className: ui.cn(androidVariants({ size, className })),
|
|
49
|
+
style: ui.css(ui.cn(androidVariants({ size, className }))),
|
|
50
|
+
viewBox: "0 0 24 24",
|
|
51
|
+
fill: "none",
|
|
52
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
+
...props,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56
|
+
"path",
|
|
57
|
+
{
|
|
58
|
+
d: "M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10z",
|
|
59
|
+
fill: color
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
63
|
+
"path",
|
|
64
|
+
{
|
|
65
|
+
d: "M15.5 6.5C15.5 5.12 14.38 4 13 4h-2c-1.38 0-2.5 1.12-2.5 2.5S9.62 9 11 9h2c1.38 0 2.5-1.12 2.5-2.5z",
|
|
66
|
+
fill: color
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
70
|
+
"path",
|
|
71
|
+
{
|
|
72
|
+
d: "M7.5 2.5L9 4",
|
|
73
|
+
stroke: color,
|
|
74
|
+
strokeWidth: "1.5",
|
|
75
|
+
strokeLinecap: "round"
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
79
|
+
"path",
|
|
80
|
+
{
|
|
81
|
+
d: "M16.5 2.5L15 4",
|
|
82
|
+
stroke: color,
|
|
83
|
+
strokeWidth: "1.5",
|
|
84
|
+
strokeLinecap: "round"
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
88
|
+
"path",
|
|
89
|
+
{
|
|
90
|
+
d: "M4 10.5c0-.83.67-1.5 1.5-1.5S7 9.67 7 10.5v3c0 .83-.67 1.5-1.5 1.5S4 14.33 4 13.5v-3z",
|
|
91
|
+
fill: color
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
95
|
+
"path",
|
|
96
|
+
{
|
|
97
|
+
d: "M17 10.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v3c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5v-3z",
|
|
98
|
+
fill: color
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
102
|
+
"circle",
|
|
103
|
+
{
|
|
104
|
+
cx: "10",
|
|
105
|
+
cy: "6.5",
|
|
106
|
+
r: "0.5",
|
|
107
|
+
fill: color === "currentColor" ? "#ffffff" : "#000000"
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
111
|
+
"circle",
|
|
112
|
+
{
|
|
113
|
+
cx: "14",
|
|
114
|
+
cy: "6.5",
|
|
115
|
+
r: "0.5",
|
|
116
|
+
fill: color === "currentColor" ? "#ffffff" : "#000000"
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
Android.displayName = "Android";
|
|
125
|
+
|
|
126
|
+
exports.Android = Android;
|
|
127
|
+
exports.androidVariants = androidVariants;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { VariantProps } from '@hanzo/ui';
|
|
3
|
+
declare const androidVariants: (choice?: (import("@hanzo/ui").Choice<{
|
|
4
|
+
size: {
|
|
5
|
+
sm: string;
|
|
6
|
+
default: string;
|
|
7
|
+
lg: string;
|
|
8
|
+
xl: string;
|
|
9
|
+
};
|
|
10
|
+
}> & {
|
|
11
|
+
class?: import("@hanzo/ui").ClassValue;
|
|
12
|
+
className?: import("@hanzo/ui").ClassValue;
|
|
13
|
+
}) | undefined) => string;
|
|
14
|
+
export interface AndroidProps extends React.SVGAttributes<SVGSVGElement>, VariantProps<typeof androidVariants> {
|
|
15
|
+
color?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const Android: React.ForwardRefExoticComponent<AndroidProps & React.RefAttributes<SVGSVGElement>>;
|
|
18
|
+
export { Android, androidVariants };
|
|
19
|
+
//# sourceMappingURL=android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../src/android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAiB,MAAM,WAAW,CAAA;AAIvD,QAAA,MAAM,eAAe;;;;;;;;;;yBAYnB,CAAA;AAEF,MAAM,WAAW,YACf,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,EACxC,YAAY,CAAC,OAAO,eAAe,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,OAAO,oFA8DZ,CAAA;AAID,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
package/dist/android.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { variants, css, cn } from '@hanzo/ui';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/android.tsx
|
|
7
|
+
var androidVariants = variants("inline-flex items-center justify-center", {
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
sm: "h-4 w-4",
|
|
11
|
+
default: "h-6 w-6",
|
|
12
|
+
lg: "h-8 w-8",
|
|
13
|
+
xl: "h-12 w-12"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
size: "default"
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var Android = React.forwardRef(
|
|
21
|
+
({ className, size, color = "currentColor", ...props }, ref) => {
|
|
22
|
+
return /* @__PURE__ */ jsxs(
|
|
23
|
+
"svg",
|
|
24
|
+
{
|
|
25
|
+
ref,
|
|
26
|
+
className: cn(androidVariants({ size, className })),
|
|
27
|
+
style: css(cn(androidVariants({ size, className }))),
|
|
28
|
+
viewBox: "0 0 24 24",
|
|
29
|
+
fill: "none",
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
...props,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
"path",
|
|
35
|
+
{
|
|
36
|
+
d: "M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10z",
|
|
37
|
+
fill: color
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
"path",
|
|
42
|
+
{
|
|
43
|
+
d: "M15.5 6.5C15.5 5.12 14.38 4 13 4h-2c-1.38 0-2.5 1.12-2.5 2.5S9.62 9 11 9h2c1.38 0 2.5-1.12 2.5-2.5z",
|
|
44
|
+
fill: color
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ jsx(
|
|
48
|
+
"path",
|
|
49
|
+
{
|
|
50
|
+
d: "M7.5 2.5L9 4",
|
|
51
|
+
stroke: color,
|
|
52
|
+
strokeWidth: "1.5",
|
|
53
|
+
strokeLinecap: "round"
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ jsx(
|
|
57
|
+
"path",
|
|
58
|
+
{
|
|
59
|
+
d: "M16.5 2.5L15 4",
|
|
60
|
+
stroke: color,
|
|
61
|
+
strokeWidth: "1.5",
|
|
62
|
+
strokeLinecap: "round"
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ jsx(
|
|
66
|
+
"path",
|
|
67
|
+
{
|
|
68
|
+
d: "M4 10.5c0-.83.67-1.5 1.5-1.5S7 9.67 7 10.5v3c0 .83-.67 1.5-1.5 1.5S4 14.33 4 13.5v-3z",
|
|
69
|
+
fill: color
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ jsx(
|
|
73
|
+
"path",
|
|
74
|
+
{
|
|
75
|
+
d: "M17 10.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v3c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5v-3z",
|
|
76
|
+
fill: color
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsx(
|
|
80
|
+
"circle",
|
|
81
|
+
{
|
|
82
|
+
cx: "10",
|
|
83
|
+
cy: "6.5",
|
|
84
|
+
r: "0.5",
|
|
85
|
+
fill: color === "currentColor" ? "#ffffff" : "#000000"
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ jsx(
|
|
89
|
+
"circle",
|
|
90
|
+
{
|
|
91
|
+
cx: "14",
|
|
92
|
+
cy: "6.5",
|
|
93
|
+
r: "0.5",
|
|
94
|
+
fill: color === "currentColor" ? "#ffffff" : "#000000"
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
Android.displayName = "Android";
|
|
103
|
+
|
|
104
|
+
export { Android, androidVariants };
|