magnaui 0.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 +38 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/LICENSES/Libraries.dev-MIT.txt +21 -0
- package/LICENSES/Tiptap-MIT.txt +21 -0
- package/LICENSES/metal-fx-NOTICE.txt +22 -0
- package/LICENSES/three-MIT.txt +21 -0
- package/README.md +73 -0
- package/THIRD_PARTY_NOTICES.md +72 -0
- package/dist/assets/agent-studio.png +0 -0
- package/dist/assets/api-studio.png +0 -0
- package/dist/assets/app-store.png +0 -0
- package/dist/assets/approvals.png +0 -0
- package/dist/assets/assistant.png +0 -0
- package/dist/assets/brain.png +0 -0
- package/dist/assets/browser.png +0 -0
- package/dist/assets/checkbox/check.svg +3 -0
- package/dist/assets/checkbox/indeterminate.svg +3 -0
- package/dist/assets/code.png +0 -0
- package/dist/assets/connect-ai.png +0 -0
- package/dist/assets/connections.png +0 -0
- package/dist/assets/database.png +0 -0
- package/dist/assets/display/06153.svg +5 -0
- package/dist/assets/display/106a6.svg +22 -0
- package/dist/assets/display/16525.svg +5 -0
- package/dist/assets/display/18a45.svg +5 -0
- package/dist/assets/display/1c133.svg +5 -0
- package/dist/assets/display/1c6fa.svg +5 -0
- package/dist/assets/display/1db47.svg +5 -0
- package/dist/assets/display/237a6.svg +5 -0
- package/dist/assets/display/27ca8.svg +5 -0
- package/dist/assets/display/347ef.svg +22 -0
- package/dist/assets/display/35edd.svg +5 -0
- package/dist/assets/display/38def.svg +5 -0
- package/dist/assets/display/3a834.svg +5 -0
- package/dist/assets/display/3e51d.svg +5 -0
- package/dist/assets/display/3f95e.svg +5 -0
- package/dist/assets/display/400d1.svg +5 -0
- package/dist/assets/display/4239a.svg +5 -0
- package/dist/assets/display/4477e.svg +22 -0
- package/dist/assets/display/46574.svg +5 -0
- package/dist/assets/display/469e4.svg +5 -0
- package/dist/assets/display/48559.svg +22 -0
- package/dist/assets/display/4e103.svg +22 -0
- package/dist/assets/display/4ef80.svg +5 -0
- package/dist/assets/display/51b32.svg +22 -0
- package/dist/assets/display/5320a.svg +5 -0
- package/dist/assets/display/56a7a.svg +22 -0
- package/dist/assets/display/56cab.svg +5 -0
- package/dist/assets/display/5fc70.svg +22 -0
- package/dist/assets/display/60ab5.svg +22 -0
- package/dist/assets/display/60c44.svg +5 -0
- package/dist/assets/display/61721.svg +5 -0
- package/dist/assets/display/648b1.svg +5 -0
- package/dist/assets/display/65aad.svg +5 -0
- package/dist/assets/display/665bc.svg +5 -0
- package/dist/assets/display/691ac.svg +22 -0
- package/dist/assets/display/6a48e.svg +5 -0
- package/dist/assets/display/6af80.svg +22 -0
- package/dist/assets/display/6c384.svg +5 -0
- package/dist/assets/display/6c7fb.svg +5 -0
- package/dist/assets/display/6ce08.svg +22 -0
- package/dist/assets/display/76be1.svg +5 -0
- package/dist/assets/display/79287.svg +5 -0
- package/dist/assets/display/7ea85.svg +5 -0
- package/dist/assets/display/7eeaf.svg +5 -0
- package/dist/assets/display/82602.svg +5 -0
- package/dist/assets/display/8a43e.svg +5 -0
- package/dist/assets/display/8bdb8.svg +22 -0
- package/dist/assets/display/8d235.svg +5 -0
- package/dist/assets/display/90498.svg +22 -0
- package/dist/assets/display/908e9.svg +5 -0
- package/dist/assets/display/90942.svg +5 -0
- package/dist/assets/display/943fb.svg +5 -0
- package/dist/assets/display/96ddd.svg +22 -0
- package/dist/assets/display/9e5a0.svg +22 -0
- package/dist/assets/display/9e9ac.svg +5 -0
- package/dist/assets/display/a35a7.svg +22 -0
- package/dist/assets/display/af15f.svg +5 -0
- package/dist/assets/display/b04fe.svg +5 -0
- package/dist/assets/display/b0925.svg +5 -0
- package/dist/assets/display/b464b.svg +5 -0
- package/dist/assets/display/b8efe.svg +5 -0
- package/dist/assets/display/bbddb.svg +5 -0
- package/dist/assets/display/bd61c.svg +5 -0
- package/dist/assets/display/be577.svg +5 -0
- package/dist/assets/display/bf02d.svg +5 -0
- package/dist/assets/display/bf1dc.svg +5 -0
- package/dist/assets/display/c70b6.svg +5 -0
- package/dist/assets/display/c8a01.svg +5 -0
- package/dist/assets/display/cb00b.svg +22 -0
- package/dist/assets/display/cecfd.svg +5 -0
- package/dist/assets/display/d2cc2.svg +5 -0
- package/dist/assets/display/d428d.svg +22 -0
- package/dist/assets/display/d71e2.svg +22 -0
- package/dist/assets/display/d8f1d.svg +22 -0
- package/dist/assets/display/d92e5.svg +5 -0
- package/dist/assets/display/d9698.svg +5 -0
- package/dist/assets/display/e542b.svg +5 -0
- package/dist/assets/display/e59af.svg +5 -0
- package/dist/assets/display/e5a41.svg +5 -0
- package/dist/assets/display/e894a.svg +5 -0
- package/dist/assets/display/ea9e5.svg +5 -0
- package/dist/assets/display/eac01.svg +5 -0
- package/dist/assets/display/ec734.svg +5 -0
- package/dist/assets/display/edb55.svg +5 -0
- package/dist/assets/display/ee164.svg +5 -0
- package/dist/assets/display/f01d5.svg +5 -0
- package/dist/assets/display/f479a.svg +22 -0
- package/dist/assets/display/f8ebb.svg +22 -0
- package/dist/assets/display/fb8ab.svg +5 -0
- package/dist/assets/display/fbdce.svg +5 -0
- package/dist/assets/docs.png +0 -0
- package/dist/assets/editor/align-left.svg +5 -0
- package/dist/assets/editor/arrow-down.svg +5 -0
- package/dist/assets/editor/arrow-up.svg +5 -0
- package/dist/assets/editor/at.svg +5 -0
- package/dist/assets/editor/bold-active.svg +5 -0
- package/dist/assets/editor/bold-strong.svg +5 -0
- package/dist/assets/editor/bold.svg +5 -0
- package/dist/assets/editor/comment.svg +5 -0
- package/dist/assets/editor/divider-more.svg +5 -0
- package/dist/assets/editor/divider.svg +5 -0
- package/dist/assets/editor/duration-check.svg +3 -0
- package/dist/assets/editor/italic.svg +5 -0
- package/dist/assets/editor/link.svg +5 -0
- package/dist/assets/editor/more.svg +5 -0
- package/dist/assets/editor/status-available.svg +5 -0
- package/dist/assets/editor/status-busy.svg +5 -0
- package/dist/assets/editor/status-disabled.svg +5 -0
- package/dist/assets/editor/status-in-meeting.svg +5 -0
- package/dist/assets/editor/status-offline.svg +5 -0
- package/dist/assets/editor/strike.svg +5 -0
- package/dist/assets/editor/time-check.svg +3 -0
- package/dist/assets/editor/underline.svg +5 -0
- package/dist/assets/expenses.png +0 -0
- package/dist/assets/feeds/activity-more.svg +5 -0
- package/dist/assets/feeds/activity-user.svg +5 -0
- package/dist/assets/feeds/attachment.svg +5 -0
- package/dist/assets/feeds/calendar.svg +5 -0
- package/dist/assets/feeds/comment.svg +5 -0
- package/dist/assets/feeds/download-hover.svg +5 -0
- package/dist/assets/feeds/download.svg +5 -0
- package/dist/assets/feeds/filter.svg +5 -0
- package/dist/assets/feeds/header-calendar.svg +5 -0
- package/dist/assets/feeds/notification-attachment.svg +5 -0
- package/dist/assets/feeds/notification-company.svg +17 -0
- package/dist/assets/feeds/notification-filter.svg +5 -0
- package/dist/assets/feeds/notification-more.svg +5 -0
- package/dist/assets/feeds/search.svg +5 -0
- package/dist/assets/feeds/selected-filter-active.svg +5 -0
- package/dist/assets/feeds/selected-filter.svg +5 -0
- package/dist/assets/feeds/settings.svg +5 -0
- package/dist/assets/feeds/sort.svg +5 -0
- package/dist/assets/feeds/status-error.svg +5 -0
- package/dist/assets/feeds/status-pending.svg +5 -0
- package/dist/assets/feeds/status-success.svg +5 -0
- package/dist/assets/feeds/status-warning.svg +5 -0
- package/dist/assets/feeds/upload-avatar-empty56.svg +13 -0
- package/dist/assets/feeds/upload-avatar-empty64.svg +13 -0
- package/dist/assets/feeds/upload-cancel.svg +5 -0
- package/dist/assets/feeds/upload-company-empty.svg +42 -0
- package/dist/assets/feeds/upload-company.svg +17 -0
- package/dist/assets/feeds/upload-delete-error.svg +5 -0
- package/dist/assets/feeds/upload-delete.svg +5 -0
- package/dist/assets/feeds/upload-error.svg +5 -0
- package/dist/assets/feeds/upload-loading.svg +5 -0
- package/dist/assets/feeds/upload-success.svg +5 -0
- package/dist/assets/feeds/vertical-arrow.svg +5 -0
- package/dist/assets/feeds/vertical-calendar-active.svg +5 -0
- package/dist/assets/feeds/vertical-calendar-hover.svg +5 -0
- package/dist/assets/feeds/vertical-calendar.svg +5 -0
- package/dist/assets/file.png +0 -0
- package/dist/assets/folder.png +0 -0
- package/dist/assets/forms/07b3a.png +0 -0
- package/dist/assets/forms/09fe0.svg +5 -0
- package/dist/assets/forms/11a76.svg +5 -0
- package/dist/assets/forms/185ae.svg +5 -0
- package/dist/assets/forms/1f174.svg +5 -0
- package/dist/assets/forms/29541.svg +5 -0
- package/dist/assets/forms/2b6f8.svg +5 -0
- package/dist/assets/forms/36c22.svg +5 -0
- package/dist/assets/forms/4cb9a.svg +5 -0
- package/dist/assets/forms/4ff30.png +0 -0
- package/dist/assets/forms/537d2.svg +5 -0
- package/dist/assets/forms/60456.svg +5 -0
- package/dist/assets/forms/657e1.svg +5 -0
- package/dist/assets/forms/73539.svg +5 -0
- package/dist/assets/forms/76214.svg +5 -0
- package/dist/assets/forms/7bd9a.svg +5 -0
- package/dist/assets/forms/7c034.svg +5 -0
- package/dist/assets/forms/86e36.svg +5 -0
- package/dist/assets/forms/8d97b.svg +5 -0
- package/dist/assets/forms/90a18.svg +5 -0
- package/dist/assets/forms/939c2.png +0 -0
- package/dist/assets/forms/95ae4.svg +5 -0
- package/dist/assets/forms/970af.svg +5 -0
- package/dist/assets/forms/a119e.svg +5 -0
- package/dist/assets/forms/a521c.svg +5 -0
- package/dist/assets/forms/a74b0.svg +5 -0
- package/dist/assets/forms/baff4.svg +5 -0
- package/dist/assets/forms/c64ff.svg +5 -0
- package/dist/assets/forms/ca66f.svg +5 -0
- package/dist/assets/forms/e0344.svg +5 -0
- package/dist/assets/forms/e5b24.png +0 -0
- package/dist/assets/forms/e687f.svg +5 -0
- package/dist/assets/forms/eceaf.svg +5 -0
- package/dist/assets/forms/eed5c.png +0 -0
- package/dist/assets/forms/f26ce.svg +5 -0
- package/dist/assets/forms/f79d5.svg +5 -0
- package/dist/assets/habits.png +0 -0
- package/dist/assets/hackify.png +0 -0
- package/dist/assets/icons/add.svg +5 -0
- package/dist/assets/icons/apps.svg +5 -0
- package/dist/assets/icons/book.svg +5 -0
- package/dist/assets/icons/chat.svg +5 -0
- package/dist/assets/icons/folder.svg +5 -0
- package/dist/assets/icons/mic.svg +5 -0
- package/dist/assets/icons/notifications.svg +5 -0
- package/dist/assets/icons/shield.svg +5 -0
- package/dist/assets/icons/store.svg +5 -0
- package/dist/assets/icons/voice.svg +5 -0
- package/dist/assets/ledger.png +0 -0
- package/dist/assets/logos/glyph-black.svg +3 -0
- package/dist/assets/logos/glyph-color.svg +26 -0
- package/dist/assets/logos/glyph-white.svg +3 -0
- package/dist/assets/logos/horizontal-black.svg +5 -0
- package/dist/assets/logos/horizontal-color-black.svg +28 -0
- package/dist/assets/logos/horizontal-color-white.svg +28 -0
- package/dist/assets/logos/horizontal-white.svg +5 -0
- package/dist/assets/logos/stacked-black.svg +5 -0
- package/dist/assets/logos/stacked-color-black.svg +28 -0
- package/dist/assets/logos/stacked-color-white.svg +28 -0
- package/dist/assets/logos/stacked-white.svg +5 -0
- package/dist/assets/logos/tagline-horizontal-black.svg +6 -0
- package/dist/assets/logos/tagline-horizontal-color-black.svg +29 -0
- package/dist/assets/logos/tagline-horizontal-color-white.svg +29 -0
- package/dist/assets/logos/tagline-horizontal-white.svg +6 -0
- package/dist/assets/logos/tagline-inline-black.svg +7 -0
- package/dist/assets/logos/tagline-inline-color-black.svg +30 -0
- package/dist/assets/logos/tagline-inline-color-white-alt.svg +30 -0
- package/dist/assets/logos/tagline-inline-color-white.svg +30 -0
- package/dist/assets/logos/tagline-inline-white.svg +7 -0
- package/dist/assets/logos/tagline-stacked-black.svg +6 -0
- package/dist/assets/logos/tagline-stacked-color-black.svg +29 -0
- package/dist/assets/logos/tagline-stacked-color-white.svg +29 -0
- package/dist/assets/logos/tagline-stacked-white.svg +6 -0
- package/dist/assets/magna-brief.png +0 -0
- package/dist/assets/magna-ide.png +0 -0
- package/dist/assets/magna-logo-dark.svg +5 -0
- package/dist/assets/magna-logo-stacked.svg +29 -0
- package/dist/assets/magna-logo.svg +3 -0
- package/dist/assets/magna-music.png +0 -0
- package/dist/assets/magna-studio.png +0 -0
- package/dist/assets/magna-voice.png +0 -0
- package/dist/assets/mail.png +0 -0
- package/dist/assets/models.png +0 -0
- package/dist/assets/notes.png +0 -0
- package/dist/assets/notifications.png +0 -0
- package/dist/assets/salis-verify.png +0 -0
- package/dist/assets/salis.png +0 -0
- package/dist/assets/settings.png +0 -0
- package/dist/assets/sheets.png +0 -0
- package/dist/assets/sledes.png +0 -0
- package/dist/assets/spaces.png +0 -0
- package/dist/assets/task-manager.png +0 -0
- package/dist/assets/tasks.png +0 -0
- package/dist/assets/terminal.png +0 -0
- package/dist/assets/today.png +0 -0
- package/dist/assets/trajectory.png +0 -0
- package/dist/assets/vault.png +0 -0
- package/dist/assets/wafir.png +0 -0
- package/dist/assets/what-can-i-do.png +0 -0
- package/dist/assets/workflow.png +0 -0
- package/dist/components/interactions/border-beam.d.ts +5 -0
- package/dist/components/interactions/border-beam.js +15 -0
- package/dist/components/interactions/bot-avatar.d.ts +5 -0
- package/dist/components/interactions/bot-avatar.js +10 -0
- package/dist/components/interactions/image-generation.d.ts +58 -0
- package/dist/components/interactions/image-generation.js +86 -0
- package/dist/components/interactions/index.d.ts +7 -0
- package/dist/components/interactions/index.js +7 -0
- package/dist/components/interactions/liquid.d.ts +8 -0
- package/dist/components/interactions/liquid.js +19 -0
- package/dist/components/interactions/metal-fx.d.ts +6 -0
- package/dist/components/interactions/metal-fx.js +51 -0
- package/dist/components/interactions/preferences.d.ts +5 -0
- package/dist/components/interactions/preferences.js +55 -0
- package/dist/components/interactions/thinking-orb.d.ts +4 -0
- package/dist/components/interactions/thinking-orb.js +9 -0
- package/dist/components/interactions/voice-beam.d.ts +5 -0
- package/dist/components/interactions/voice-beam.js +33 -0
- package/dist/components/magna/app-icon.d.ts +13 -0
- package/dist/components/magna/app-icon.js +15 -0
- package/dist/components/magna/apps.d.ts +202 -0
- package/dist/components/magna/apps.js +243 -0
- package/dist/components/magna/chat-activity.d.ts +12 -0
- package/dist/components/magna/chat-activity.js +29 -0
- package/dist/components/magna/chat-composer.d.ts +31 -0
- package/dist/components/magna/chat-composer.js +122 -0
- package/dist/components/magna/chat-composer.module.css +36 -0
- package/dist/components/magna/desktop-button.d.ts +8 -0
- package/dist/components/magna/desktop-button.js +10 -0
- package/dist/components/magna/desktop-switch.d.ts +4 -0
- package/dist/components/magna/desktop-switch.js +8 -0
- package/dist/components/magna/file-tile.d.ts +9 -0
- package/dist/components/magna/file-tile.js +11 -0
- package/dist/components/magna/index.d.ts +11 -0
- package/dist/components/magna/index.js +11 -0
- package/dist/components/magna/logo-variants.d.ts +243 -0
- package/dist/components/magna/logo-variants.js +268 -0
- package/dist/components/magna/logo.d.ts +11 -0
- package/dist/components/magna/logo.js +42 -0
- package/dist/components/magna/navigation.d.ts +15 -0
- package/dist/components/magna/navigation.js +16 -0
- package/dist/components/magna/project-context.d.ts +11 -0
- package/dist/components/magna/project-context.js +8 -0
- package/dist/components/magna/voice-orb.d.ts +7 -0
- package/dist/components/magna/voice-orb.js +49 -0
- package/dist/components/magna/voice-orb.module.css +146 -0
- package/dist/components/theme-switch.d.ts +1 -0
- package/dist/components/theme-switch.js +14 -0
- package/dist/components/ui/accordion.d.ts +13 -0
- package/dist/components/ui/accordion.js +24 -0
- package/dist/components/ui/activity-feed.d.ts +64 -0
- package/dist/components/ui/activity-feed.js +40 -0
- package/dist/components/ui/alert.d.ts +31 -0
- package/dist/components/ui/alert.js +73 -0
- package/dist/components/ui/avatar-empty-icons.d.ts +3 -0
- package/dist/components/ui/avatar-empty-icons.js +14 -0
- package/dist/components/ui/avatar-group-compact.d.ts +140 -0
- package/dist/components/ui/avatar-group-compact.js +41 -0
- package/dist/components/ui/avatar-group.d.ts +237 -0
- package/dist/components/ui/avatar-group.js +37 -0
- package/dist/components/ui/avatar.d.ts +420 -0
- package/dist/components/ui/avatar.js +107 -0
- package/dist/components/ui/badge.d.ts +29 -0
- package/dist/components/ui/badge.js +67 -0
- package/dist/components/ui/banner.d.ts +26 -0
- package/dist/components/ui/banner.js +41 -0
- package/dist/components/ui/breadcrumb.d.ts +14 -0
- package/dist/components/ui/breadcrumb.js +23 -0
- package/dist/components/ui/button-group.d.ts +23 -0
- package/dist/components/ui/button-group.js +39 -0
- package/dist/components/ui/button.d.ts +22 -0
- package/dist/components/ui/button.js +62 -0
- package/dist/components/ui/chart-legend.d.ts +21 -0
- package/dist/components/ui/chart-legend.js +14 -0
- package/dist/components/ui/checkbox.d.ts +41 -0
- package/dist/components/ui/checkbox.js +42 -0
- package/dist/components/ui/color-picker.d.ts +13 -0
- package/dist/components/ui/color-picker.js +65 -0
- package/dist/components/ui/command-menu.d.ts +55 -0
- package/dist/components/ui/command-menu.js +33 -0
- package/dist/components/ui/compact-button.d.ts +22 -0
- package/dist/components/ui/compact-button.js +39 -0
- package/dist/components/ui/content-card.d.ts +22 -0
- package/dist/components/ui/content-card.js +11 -0
- package/dist/components/ui/content-label.d.ts +22 -0
- package/dist/components/ui/content-label.js +9 -0
- package/dist/components/ui/counter-input.d.ts +26 -0
- package/dist/components/ui/counter-input.js +47 -0
- package/dist/components/ui/datepicker.d.ts +9 -0
- package/dist/components/ui/datepicker.js +48 -0
- package/dist/components/ui/digit-input.d.ts +11 -0
- package/dist/components/ui/digit-input.js +98 -0
- package/dist/components/ui/display-asset.d.ts +3 -0
- package/dist/components/ui/display-asset.js +9 -0
- package/dist/components/ui/display-assets.d.ts +193 -0
- package/dist/components/ui/display-assets.js +195 -0
- package/dist/components/ui/divider.d.ts +13 -0
- package/dist/components/ui/divider.js +22 -0
- package/dist/components/ui/dot-stepper.d.ts +96 -0
- package/dist/components/ui/dot-stepper.js +29 -0
- package/dist/components/ui/drawer.d.ts +12 -0
- package/dist/components/ui/drawer.js +25 -0
- package/dist/components/ui/dropdown.d.ts +29 -0
- package/dist/components/ui/dropdown.js +74 -0
- package/dist/components/ui/fancy-button.d.ts +21 -0
- package/dist/components/ui/fancy-button.js +43 -0
- package/dist/components/ui/file-format-icon.d.ts +19 -0
- package/dist/components/ui/file-format-icon.js +48 -0
- package/dist/components/ui/file-upload-compositions.d.ts +32 -0
- package/dist/components/ui/file-upload-compositions.js +88 -0
- package/dist/components/ui/file-upload.d.ts +11 -0
- package/dist/components/ui/file-upload.js +20 -0
- package/dist/components/ui/filter.d.ts +53 -0
- package/dist/components/ui/filter.js +90 -0
- package/dist/components/ui/form-asset.d.ts +5 -0
- package/dist/components/ui/form-asset.js +10 -0
- package/dist/components/ui/hint.d.ts +22 -0
- package/dist/components/ui/hint.js +33 -0
- package/dist/components/ui/horizontal-stepper.d.ts +16 -0
- package/dist/components/ui/horizontal-stepper.js +28 -0
- package/dist/components/ui/inline-input.d.ts +24 -0
- package/dist/components/ui/inline-input.js +60 -0
- package/dist/components/ui/input.d.ts +205 -0
- package/dist/components/ui/input.js +69 -0
- package/dist/components/ui/kbd.d.ts +5 -0
- package/dist/components/ui/kbd.js +6 -0
- package/dist/components/ui/key-icon.d.ts +14 -0
- package/dist/components/ui/key-icon.js +35 -0
- package/dist/components/ui/label.d.ts +7 -0
- package/dist/components/ui/label.js +15 -0
- package/dist/components/ui/link-button.d.ts +22 -0
- package/dist/components/ui/link-button.js +38 -0
- package/dist/components/ui/magna-recipe.d.ts +83 -0
- package/dist/components/ui/magna-recipe.js +99 -0
- package/dist/components/ui/modal.d.ts +21 -0
- package/dist/components/ui/modal.js +35 -0
- package/dist/components/ui/notification-feed.d.ts +63 -0
- package/dist/components/ui/notification-feed.js +31 -0
- package/dist/components/ui/notification-provider.d.ts +1 -0
- package/dist/components/ui/notification-provider.js +13 -0
- package/dist/components/ui/notification.d.ts +24 -0
- package/dist/components/ui/notification.js +23 -0
- package/dist/components/ui/pagination.d.ts +19 -0
- package/dist/components/ui/pagination.js +38 -0
- package/dist/components/ui/password-strength.d.ts +16 -0
- package/dist/components/ui/password-strength.js +27 -0
- package/dist/components/ui/payment-icon.d.ts +11 -0
- package/dist/components/ui/payment-icon.js +19 -0
- package/dist/components/ui/popover.d.ts +36 -0
- package/dist/components/ui/popover.js +27 -0
- package/dist/components/ui/progress-bar.d.ts +35 -0
- package/dist/components/ui/progress-bar.js +32 -0
- package/dist/components/ui/progress-circle.d.ts +16 -0
- package/dist/components/ui/progress-circle.js +29 -0
- package/dist/components/ui/radio.d.ts +37 -0
- package/dist/components/ui/radio.js +39 -0
- package/dist/components/ui/rating.d.ts +62 -0
- package/dist/components/ui/rating.js +65 -0
- package/dist/components/ui/rich-editor.d.ts +77 -0
- package/dist/components/ui/rich-editor.js +248 -0
- package/dist/components/ui/rich-editor.module.css +58 -0
- package/dist/components/ui/scroll-area.d.ts +14 -0
- package/dist/components/ui/scroll-area.js +34 -0
- package/dist/components/ui/segmented-control.d.ts +8 -0
- package/dist/components/ui/segmented-control.js +30 -0
- package/dist/components/ui/select.d.ts +212 -0
- package/dist/components/ui/select.js +129 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.js +16 -0
- package/dist/components/ui/social-button.d.ts +22 -0
- package/dist/components/ui/social-button.js +47 -0
- package/dist/components/ui/status-badge.d.ts +25 -0
- package/dist/components/ui/status-badge.js +51 -0
- package/dist/components/ui/status-modal.d.ts +26 -0
- package/dist/components/ui/status-modal.js +21 -0
- package/dist/components/ui/svg-rating-icons.d.ts +11 -0
- package/dist/components/ui/svg-rating-icons.js +33 -0
- package/dist/components/ui/switch-compositions.d.ts +46 -0
- package/dist/components/ui/switch-compositions.js +51 -0
- package/dist/components/ui/switch.d.ts +14 -0
- package/dist/components/ui/switch.js +17 -0
- package/dist/components/ui/tab-menu-horizontal.d.ts +11 -0
- package/dist/components/ui/tab-menu-horizontal.js +49 -0
- package/dist/components/ui/tab-menu-vertical.d.ts +9 -0
- package/dist/components/ui/tab-menu-vertical.js +23 -0
- package/dist/components/ui/table.d.ts +23 -0
- package/dist/components/ui/table.js +46 -0
- package/dist/components/ui/tag-input.d.ts +18 -0
- package/dist/components/ui/tag-input.js +57 -0
- package/dist/components/ui/tag.d.ts +28 -0
- package/dist/components/ui/tag.js +67 -0
- package/dist/components/ui/textarea.d.ts +21 -0
- package/dist/components/ui/textarea.js +32 -0
- package/dist/components/ui/time-picker.d.ts +35 -0
- package/dist/components/ui/time-picker.js +46 -0
- package/dist/components/ui/tooltip.d.ts +318 -0
- package/dist/components/ui/tooltip.js +56 -0
- package/dist/components/ui/vertical-stepper.d.ts +16 -0
- package/dist/components/ui/vertical-stepper.js +30 -0
- package/dist/design/figma-styles.d.ts +2 -0
- package/dist/design/figma-styles.js +2106 -0
- package/dist/design/theme.d.ts +18 -0
- package/dist/design/theme.js +185 -0
- package/dist/fonts/DM-Mono-OFL.txt +93 -0
- package/dist/fonts/Inter-OFL.txt +93 -0
- package/dist/fonts/README.md +23 -0
- package/dist/fonts/SHA256SUMS +11 -0
- package/dist/fonts/dm-mono-400-latin-ext.woff2 +0 -0
- package/dist/fonts/dm-mono-400-latin.woff2 +0 -0
- package/dist/fonts/dm-mono-500-latin-ext.woff2 +0 -0
- package/dist/fonts/dm-mono-500-latin.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-ext.woff2 +0 -0
- package/dist/fonts/inter-cyrillic.woff2 +0 -0
- package/dist/fonts/inter-greek-ext.woff2 +0 -0
- package/dist/fonts/inter-greek.woff2 +0 -0
- package/dist/fonts/inter-latin-ext.woff2 +0 -0
- package/dist/fonts/inter-latin.woff2 +0 -0
- package/dist/fonts/inter-vietnamese.woff2 +0 -0
- package/dist/hooks/use-notification.d.ts +36 -0
- package/dist/hooks/use-notification.js +86 -0
- package/dist/hooks/use-tab-observer.d.ts +8 -0
- package/dist/hooks/use-tab-observer.js +72 -0
- package/dist/magna-assets.d.ts +2 -0
- package/dist/magna-assets.js +273 -0
- package/dist/magnaui.d.ts +77 -0
- package/dist/magnaui.js +77 -0
- package/dist/styles.css +2665 -0
- package/dist/utils/cn.d.ts +18 -0
- package/dist/utils/cn.js +14 -0
- package/dist/utils/polymorphic.d.ts +10 -0
- package/dist/utils/polymorphic.js +1 -0
- package/dist/utils/tv.d.ts +18 -0
- package/dist/utils/tv.js +5 -0
- package/dist/vendor/tailwind-variants/LICENSE +21 -0
- package/dist/vendor/tailwind-variants/config.d.ts +38 -0
- package/dist/vendor/tailwind-variants/generated.d.ts +3 -0
- package/dist/vendor/tailwind-variants/index.d.ts +370 -0
- package/docs/implementation-provenance.md +96 -0
- package/package.json +108 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { resolveMagnaAsset as __resolveMagnaAsset_1 } from "../../magna-assets.js";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
|
+
import { magnaLogoVariants } from "./logo-variants.js";
|
|
5
|
+
const themeVariants = {
|
|
6
|
+
horizontal: ['horizontal-color-black', 'horizontal-color-white'],
|
|
7
|
+
'tagline-horizontal': [
|
|
8
|
+
'tagline-horizontal-color-black',
|
|
9
|
+
'tagline-horizontal-color-white',
|
|
10
|
+
],
|
|
11
|
+
'tagline-stacked': [
|
|
12
|
+
'tagline-stacked-color-black',
|
|
13
|
+
'tagline-stacked-color-white',
|
|
14
|
+
],
|
|
15
|
+
'tagline-inline': [
|
|
16
|
+
'tagline-inline-color-black',
|
|
17
|
+
'tagline-inline-color-white',
|
|
18
|
+
],
|
|
19
|
+
};
|
|
20
|
+
/** Exact Figma SVG artwork with optional theme-aware layout aliases. */
|
|
21
|
+
export function MagnaLogo({ className, label, variant = 'stacked', ...props }) {
|
|
22
|
+
const fixedVariant = magnaLogoVariants.find((item) => item.id === variant);
|
|
23
|
+
const themePair = variant in themeVariants
|
|
24
|
+
? themeVariants[variant]
|
|
25
|
+
: undefined;
|
|
26
|
+
return (_jsx("span", { ...props, role: label ? 'img' : undefined, "aria-label": label, "aria-hidden": label ? undefined : true, className: cn('inline-flex shrink-0 items-center justify-center', variant === 'glyph' || variant.startsWith('glyph-')
|
|
27
|
+
? 'size-9'
|
|
28
|
+
: variant === 'stacked' || variant.includes('stacked')
|
|
29
|
+
? 'size-48'
|
|
30
|
+
: 'h-24 w-64', className), children: variant === 'stacked' ? (
|
|
31
|
+
// The embedded SVG inherits this color scheme, so only its wordmark
|
|
32
|
+
// switches color. The supplied red/green/blue artwork stays untouched.
|
|
33
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
34
|
+
_jsx("img", { src: __resolveMagnaAsset_1("/magna/magna-logo-stacked.svg"), width: 1200, height: 1200, alt: '', className: 'block h-auto w-full [color-scheme:light] dark:[color-scheme:dark]' })) : variant === 'glyph' ? (_jsxs(_Fragment, { children: [_jsx("img", { src: __resolveMagnaAsset_1("/magna/magna-logo.svg"), width: 625.116, height: 431.19, alt: '', className: 'block h-auto w-full dark:hidden' }), _jsx("img", { src: __resolveMagnaAsset_1("/magna/magna-logo-dark.svg"), width: 625.116, height: 431.19, alt: '', className: 'hidden h-auto w-full dark:block' })] })) : fixedVariant ? (
|
|
35
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
36
|
+
_jsx("img", { src: fixedVariant.src, width: fixedVariant.width, height: fixedVariant.height, alt: '', className: 'block h-auto max-h-full w-full object-contain' })) : (themePair?.map((id, index) => {
|
|
37
|
+
const artwork = magnaLogoVariants.find((item) => item.id === id);
|
|
38
|
+
return (
|
|
39
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
40
|
+
_jsx("img", { src: artwork.src, width: artwork.width, height: artwork.height, alt: '', className: cn('h-auto max-h-full w-full object-contain', index === 0 ? 'block dark:hidden' : 'hidden dark:block') }, id));
|
|
41
|
+
})) }));
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface MagnaNavItem {
|
|
3
|
+
label: string;
|
|
4
|
+
href: string;
|
|
5
|
+
icon: 'chat' | 'apps' | 'folder' | 'store' | 'book' | 'notifications';
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultNavItems: MagnaNavItem[];
|
|
8
|
+
/** Figma Sidebar 199714:167527 and Magan bar 199714:167174. */
|
|
9
|
+
export declare function MagnaNavigation({ orientation, items, active, className, footer, }: {
|
|
10
|
+
orientation?: 'vertical' | 'horizontal';
|
|
11
|
+
items?: MagnaNavItem[];
|
|
12
|
+
active?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
footer?: React.ReactNode;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { resolveMagnaAsset as __resolveMagnaAsset_1 } from "../../magna-assets.js";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
import { MagnaLogo } from "./logo.js";
|
|
6
|
+
export const defaultNavItems = [
|
|
7
|
+
{ label: 'Chat', href: '#chat', icon: 'chat' },
|
|
8
|
+
{ label: 'Apps', href: '#apps', icon: 'apps' },
|
|
9
|
+
{ label: 'Files', href: '#files', icon: 'folder' },
|
|
10
|
+
{ label: 'Store', href: '#components', icon: 'store' },
|
|
11
|
+
];
|
|
12
|
+
/** Figma Sidebar 199714:167527 and Magan bar 199714:167174. */
|
|
13
|
+
export function MagnaNavigation({ orientation = 'vertical', items = defaultNavItems, active, className, footer, }) {
|
|
14
|
+
const vertical = orientation === 'vertical';
|
|
15
|
+
return (_jsxs("nav", { "aria-label": 'Magna navigation', className: cn('flex shrink-0 gap-5 bg-bg-white-0 p-5', vertical ? 'w-[74px] flex-col' : 'min-h-[74px] w-full items-center', className), children: [_jsx("a", { href: '#top', "aria-label": 'MagnaUI home', className: 'flex size-[34px] shrink-0 items-center justify-center rounded-lg focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-base', children: _jsx(MagnaLogo, { variant: 'glyph', className: 'size-6' }) }), _jsx("div", { className: cn('shrink-0 bg-stroke-soft-200', vertical ? 'h-px w-full' : 'h-6 w-px') }), _jsx("div", { className: cn('flex flex-1 gap-3', vertical ? 'flex-col' : 'min-w-0 overflow-x-auto py-1'), children: items.map((item) => (_jsx("a", { href: item.href, "aria-label": item.label, title: item.label, "aria-current": active === item.label ? 'page' : undefined, className: cn('flex size-[34px] shrink-0 items-center justify-center rounded-lg hover:bg-bg-weak-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-base', active === item.label && 'bg-bg-soft-200'), children: _jsx("img", { src: __resolveMagnaAsset_1(`/magna/icons/${item.icon}.svg`), width: 22, height: 22, alt: '', className: 'size-[22px] dark:invert' }) }, item.label))) }), footer] }));
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Project context below the composer, from Figma 199719:168289. */
|
|
2
|
+
export declare function ProjectContext({ files, instructions, onAddFile, onEditInstructions, className, }: {
|
|
3
|
+
files: {
|
|
4
|
+
name: string;
|
|
5
|
+
href: string;
|
|
6
|
+
}[];
|
|
7
|
+
instructions: string;
|
|
8
|
+
onAddFile?: () => void;
|
|
9
|
+
onEditInstructions?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { resolveMagnaAsset as __resolveMagnaAsset_1 } from "../../magna-assets.js";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
/** Project context below the composer, from Figma 199719:168289. */
|
|
6
|
+
export function ProjectContext({ files, instructions, onAddFile, onEditInstructions, className, }) {
|
|
7
|
+
return (_jsxs("div", { className: cn('grid w-full max-w-[700px] gap-6 px-6 sm:grid-cols-2', className), children: [_jsxs("div", { className: 'flex min-w-0 items-center gap-4', children: [_jsxs("div", { className: 'min-w-0 flex-1 text-label-xs', children: [_jsx("p", { children: "Project files" }), _jsxs("p", { className: 'mt-1 text-text-soft-400', children: [files.length, " files"] })] }), _jsxs("div", { className: 'flex gap-2', children: [files.slice(0, 3).map((file) => (_jsx("a", { href: file.href, title: file.name, "aria-label": file.name, className: 'flex size-7 items-center justify-center rounded-full border border-stroke-soft-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-base', children: _jsx("img", { src: __resolveMagnaAsset_1("/magna/file.png"), width: 20, height: 20, alt: '', className: 'size-5 object-contain' }) }, file.name))), _jsx("button", { type: 'button', "aria-label": 'Add project file', onClick: onAddFile, disabled: !onAddFile, className: 'size-7 rounded-full border border-stroke-soft-200 text-label-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-base disabled:opacity-40', children: "+" })] })] }), _jsxs("div", { className: 'flex min-w-0 items-center gap-4 sm:border-s sm:border-stroke-soft-200 sm:ps-6', children: [_jsxs("div", { className: 'min-w-0 flex-1 text-label-xs', children: [_jsx("p", { children: "Instructions" }), _jsx("p", { className: 'mt-1 truncate text-text-soft-400', title: instructions, children: instructions })] }), _jsx("button", { type: 'button', onClick: onEditInstructions, disabled: !onEditInstructions, className: 'rounded-full border border-stroke-soft-200 px-2 py-1 text-label-xs focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-base disabled:opacity-40', children: "Edit" })] })] }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface VoiceOrbProps {
|
|
2
|
+
state: 'listening' | 'speaking';
|
|
3
|
+
level?: number | (() => number);
|
|
4
|
+
paused?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** Decorative voice activity. The surrounding panel supplies its accessible status. */
|
|
7
|
+
export declare function VoiceOrb({ state, level, paused }: VoiceOrbProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useInteractionPreferences } from "../interactions/preferences.js";
|
|
5
|
+
import styles from "./voice-orb.module.css";
|
|
6
|
+
const clampLevel = (level) => Number.isFinite(level) ? Math.max(0, Math.min(1, level)) : 0;
|
|
7
|
+
/** Decorative voice activity. The surrounding panel supplies its accessible status. */
|
|
8
|
+
export function VoiceOrb({ state, level = 0, paused = false }) {
|
|
9
|
+
const orbRef = React.useRef(null);
|
|
10
|
+
const { reducedMotion } = useInteractionPreferences();
|
|
11
|
+
const [inView, setInView] = React.useState(true);
|
|
12
|
+
const [pageVisible, setPageVisible] = React.useState(true);
|
|
13
|
+
const motionPaused = paused || reducedMotion || !inView || !pageVisible;
|
|
14
|
+
React.useEffect(() => {
|
|
15
|
+
const updateVisibility = () => setPageVisible(!document.hidden);
|
|
16
|
+
updateVisibility();
|
|
17
|
+
document.addEventListener('visibilitychange', updateVisibility);
|
|
18
|
+
const observer = typeof IntersectionObserver === 'undefined'
|
|
19
|
+
? null
|
|
20
|
+
: new IntersectionObserver(([entry]) => setInView(entry.isIntersecting));
|
|
21
|
+
if (orbRef.current)
|
|
22
|
+
observer?.observe(orbRef.current);
|
|
23
|
+
return () => {
|
|
24
|
+
document.removeEventListener('visibilitychange', updateVisibility);
|
|
25
|
+
observer?.disconnect();
|
|
26
|
+
};
|
|
27
|
+
}, []);
|
|
28
|
+
React.useEffect(() => {
|
|
29
|
+
const orb = orbRef.current;
|
|
30
|
+
if (!orb || motionPaused)
|
|
31
|
+
return;
|
|
32
|
+
if (typeof level === 'number') {
|
|
33
|
+
orb.style.setProperty('--voice-level', String(clampLevel(level)));
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
let frame = 0;
|
|
37
|
+
let lastSample = -Infinity;
|
|
38
|
+
const sample = (time) => {
|
|
39
|
+
if (time - lastSample >= 1000 / 30) {
|
|
40
|
+
orb.style.setProperty('--voice-level', String(clampLevel(level())));
|
|
41
|
+
lastSample = time;
|
|
42
|
+
}
|
|
43
|
+
frame = requestAnimationFrame(sample);
|
|
44
|
+
};
|
|
45
|
+
frame = requestAnimationFrame(sample);
|
|
46
|
+
return () => cancelAnimationFrame(frame);
|
|
47
|
+
}, [level, motionPaused]);
|
|
48
|
+
return (_jsx("div", { ref: orbRef, "aria-hidden": 'true', className: styles.orb, "data-state": state, "data-paused": motionPaused || undefined, children: _jsxs("div", { className: styles.surface, children: [_jsx("div", { className: styles.colorCloud }), _jsx("div", { className: styles.accentCloud }), _jsx("div", { className: styles.light })] }) }));
|
|
49
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
.orb {
|
|
2
|
+
--voice-level: 0;
|
|
3
|
+
--cloud-duration: 8s;
|
|
4
|
+
--breath-duration: 5s;
|
|
5
|
+
position: relative;
|
|
6
|
+
isolation: isolate;
|
|
7
|
+
width: 128px;
|
|
8
|
+
height: 128px;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
contain: paint;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
background: #d8f8e8;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.orb[data-state='speaking'] {
|
|
17
|
+
--cloud-duration: 3.2s;
|
|
18
|
+
--breath-duration: 2.4s;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.surface {
|
|
22
|
+
position: absolute;
|
|
23
|
+
inset: 0;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
border-radius: inherit;
|
|
26
|
+
background: radial-gradient(
|
|
27
|
+
ellipse at 22% 16%,
|
|
28
|
+
#fff 5%,
|
|
29
|
+
#f8fffb 28%,
|
|
30
|
+
transparent 64%
|
|
31
|
+
),
|
|
32
|
+
radial-gradient(
|
|
33
|
+
ellipse at 75% 95%,
|
|
34
|
+
#079662 8%,
|
|
35
|
+
#47cf94 34%,
|
|
36
|
+
transparent 72%
|
|
37
|
+
),
|
|
38
|
+
linear-gradient(145deg, #effff6 12%, #cbf5dc 48%, #20b77b);
|
|
39
|
+
animation: orb-breathe var(--breath-duration) ease-in-out infinite alternate;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.colorCloud {
|
|
43
|
+
position: absolute;
|
|
44
|
+
inset: -22%;
|
|
45
|
+
border-radius: 42%;
|
|
46
|
+
background: radial-gradient(
|
|
47
|
+
ellipse at 25% 76%,
|
|
48
|
+
#079b66 2%,
|
|
49
|
+
#25bf86 20%,
|
|
50
|
+
transparent 45%
|
|
51
|
+
),
|
|
52
|
+
radial-gradient(
|
|
53
|
+
ellipse at 80% 61%,
|
|
54
|
+
#18a86c 3%,
|
|
55
|
+
#48d599 22%,
|
|
56
|
+
transparent 48%
|
|
57
|
+
),
|
|
58
|
+
radial-gradient(
|
|
59
|
+
ellipse at 48% 52%,
|
|
60
|
+
#b9f5d5 6%,
|
|
61
|
+
#70dda5 26%,
|
|
62
|
+
transparent 57%
|
|
63
|
+
);
|
|
64
|
+
filter: blur(7px);
|
|
65
|
+
opacity: calc(0.82 + var(--voice-level) * 0.18);
|
|
66
|
+
animation: color-flow var(--cloud-duration) ease-in-out infinite alternate;
|
|
67
|
+
transition: opacity 120ms linear;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.accentCloud {
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: -24%;
|
|
73
|
+
background: radial-gradient(
|
|
74
|
+
ellipse at 25% 23%,
|
|
75
|
+
#fff 5%,
|
|
76
|
+
#fafffc 21%,
|
|
77
|
+
transparent 43%
|
|
78
|
+
),
|
|
79
|
+
radial-gradient(ellipse at 58% 36%, #fff 2%, #effff6 18%, transparent 40%),
|
|
80
|
+
radial-gradient(
|
|
81
|
+
ellipse at 79% 56%,
|
|
82
|
+
#e0ffed 3%,
|
|
83
|
+
#b4f1d0 16%,
|
|
84
|
+
transparent 36%
|
|
85
|
+
);
|
|
86
|
+
filter: blur(5px);
|
|
87
|
+
animation: accent-flow calc(var(--cloud-duration) * 1.3) ease-in-out infinite
|
|
88
|
+
alternate;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.light {
|
|
92
|
+
position: absolute;
|
|
93
|
+
inset: 0;
|
|
94
|
+
border-radius: inherit;
|
|
95
|
+
background: radial-gradient(
|
|
96
|
+
ellipse at 33% 7%,
|
|
97
|
+
rgb(255 255 255 / 56%),
|
|
98
|
+
transparent 54%
|
|
99
|
+
),
|
|
100
|
+
radial-gradient(ellipse at 67% 98%, rgb(0 104 67 / 19%), transparent 54%);
|
|
101
|
+
box-shadow:
|
|
102
|
+
inset 0 0 1px 1px rgb(255 255 255 / 44%),
|
|
103
|
+
inset 0 -5px 12px rgb(7 125 79 / 12%);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@keyframes orb-breathe {
|
|
107
|
+
from {
|
|
108
|
+
transform: scale(1);
|
|
109
|
+
}
|
|
110
|
+
to {
|
|
111
|
+
transform: scale(calc(1.035 + var(--voice-level) * 0.04));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@keyframes color-flow {
|
|
116
|
+
from {
|
|
117
|
+
transform: translate(-5%, 4%) rotate(-12deg)
|
|
118
|
+
scale(calc(1 + var(--voice-level) * 0.12));
|
|
119
|
+
}
|
|
120
|
+
to {
|
|
121
|
+
transform: translate(7%, -6%) rotate(14deg)
|
|
122
|
+
scale(calc(1.07 + var(--voice-level) * 0.16));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@keyframes accent-flow {
|
|
127
|
+
from {
|
|
128
|
+
transform: translate(3%, -4%) rotate(7deg);
|
|
129
|
+
}
|
|
130
|
+
to {
|
|
131
|
+
transform: translate(-6%, 7%) rotate(-12deg)
|
|
132
|
+
scale(calc(0.97 - var(--voice-level) * 0.08));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.orb[data-paused] * {
|
|
137
|
+
animation-play-state: paused;
|
|
138
|
+
transition: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (prefers-reduced-motion: reduce) {
|
|
142
|
+
.orb * {
|
|
143
|
+
animation: none;
|
|
144
|
+
transition: none;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ThemeSwitch(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useTheme } from "next-themes";
|
|
4
|
+
import { RiSunLine, RiMoonLine, RiEqualizer3Fill } from "@remixicon/react";
|
|
5
|
+
import * as Segments from "./ui/segmented-control.js";
|
|
6
|
+
const choices = [
|
|
7
|
+
{ value: 'light', label: 'Light theme', icon: RiSunLine },
|
|
8
|
+
{ value: 'dark', label: 'Dark theme', icon: RiMoonLine },
|
|
9
|
+
{ value: 'system', label: 'System theme', icon: RiEqualizer3Fill },
|
|
10
|
+
];
|
|
11
|
+
export default function ThemeSwitch() {
|
|
12
|
+
const theme = useTheme();
|
|
13
|
+
return (_jsx(Segments.Root, { value: theme.theme, onValueChange: theme.setTheme, children: _jsx(Segments.List, { children: choices.map(({ value, label, icon: Icon }) => (_jsx(Segments.Trigger, { value: value, "aria-label": label, className: 'aspect-square', children: _jsx(Icon, { className: 'size-4' }) }, value))) }) }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as Primitive from "@radix-ui/react-accordion";
|
|
3
|
+
import type { PolymorphicComponentProps } from "../../utils/polymorphic.js";
|
|
4
|
+
export declare const Root: React.ForwardRefExoticComponent<(Primitive.AccordionSingleProps | Primitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const Header: React.ForwardRefExoticComponent<Primitive.AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
6
|
+
export declare const Item: React.ForwardRefExoticComponent<Omit<Primitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const Trigger: React.ForwardRefExoticComponent<Omit<Primitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export declare function Icon<T extends React.ElementType = 'div'>({ as, className, ...props }: PolymorphicComponentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function Arrow({ openIcon: Expand, closeIcon: Collapse, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
10
|
+
openIcon?: React.ElementType;
|
|
11
|
+
closeIcon?: React.ElementType;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Content: React.ForwardRefExoticComponent<Omit<Primitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as Primitive from "@radix-ui/react-accordion";
|
|
5
|
+
import { RiAddLine, RiSubtractLine } from "@remixicon/react";
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
export const Root = Primitive.Root;
|
|
8
|
+
export const Header = Primitive.Header;
|
|
9
|
+
export const Item = React.forwardRef(function Item({ className, ...props }, ref) {
|
|
10
|
+
return (_jsx(Primitive.Item, { ...props, ref: ref, className: cn('group/accordion rounded-10 bg-bg-white-0 p-3.5 ring-1 ring-inset ring-stroke-soft-200 transition-colors duration-200 ease-out', 'hover:bg-bg-weak-50 hover:ring-transparent has-[:focus-visible]:bg-bg-weak-50 has-[:focus-visible]:ring-transparent data-[state=open]:bg-bg-weak-50 data-[state=open]:ring-transparent', className) }));
|
|
11
|
+
});
|
|
12
|
+
export const Trigger = React.forwardRef(function Trigger({ className, ...props }, ref) {
|
|
13
|
+
return (_jsx(Primitive.Trigger, { ...props, ref: ref, className: cn('-m-3.5 grid w-[calc(100%+theme(space.7))] auto-cols-auto grid-flow-col grid-cols-[auto,minmax(0,1fr)] items-center gap-2.5 p-3.5 text-left text-label-sm text-text-strong-950 outline-none', className) }));
|
|
14
|
+
});
|
|
15
|
+
export function Icon({ as, className, ...props }) {
|
|
16
|
+
const Element = as ?? 'div';
|
|
17
|
+
return (_jsx(Element, { ...props, className: cn('size-5 text-text-sub-600', className) }));
|
|
18
|
+
}
|
|
19
|
+
export function Arrow({ openIcon: Expand = RiAddLine, closeIcon: Collapse = RiSubtractLine, className, ...props }) {
|
|
20
|
+
return (_jsxs(_Fragment, { children: [_jsx(Expand, { ...props, className: cn('size-5 text-text-soft-400 transition-colors duration-200 ease-out group-hover/accordion:text-text-sub-600 group-data-[state=open]/accordion:hidden', className) }), _jsx(Collapse, { ...props, className: cn('hidden size-5 text-text-sub-600 group-data-[state=open]/accordion:block', className) })] }));
|
|
21
|
+
}
|
|
22
|
+
export const Content = React.forwardRef(function Content({ className, children, ...props }, ref) {
|
|
23
|
+
return (_jsx(Primitive.Content, { ...props, ref: ref, className: 'overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down', children: _jsx("div", { className: cn('pt-1.5 text-paragraph-sm text-text-sub-600', className), children: children }) }));
|
|
24
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as Button from "./button.js";
|
|
3
|
+
export declare const Root: React.ForwardRefExoticComponent<React.OlHTMLAttributes<HTMLOListElement> & React.RefAttributes<HTMLOListElement>>;
|
|
4
|
+
export type ItemProps = Omit<React.LiHTMLAttributes<HTMLLIElement>, 'title'> & {
|
|
5
|
+
actor: React.ReactNode;
|
|
6
|
+
action?: React.ReactNode;
|
|
7
|
+
subject?: React.ReactNode;
|
|
8
|
+
timestamp?: React.ReactNode;
|
|
9
|
+
dateTime?: string;
|
|
10
|
+
avatar?: React.ReactNode;
|
|
11
|
+
leading?: React.ReactNode;
|
|
12
|
+
onMore?: () => void;
|
|
13
|
+
moreLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const Item: React.ForwardRefExoticComponent<Omit<React.LiHTMLAttributes<HTMLLIElement>, "title"> & {
|
|
16
|
+
actor: React.ReactNode;
|
|
17
|
+
action?: React.ReactNode;
|
|
18
|
+
subject?: React.ReactNode;
|
|
19
|
+
timestamp?: React.ReactNode;
|
|
20
|
+
dateTime?: string;
|
|
21
|
+
avatar?: React.ReactNode;
|
|
22
|
+
leading?: React.ReactNode;
|
|
23
|
+
onMore?: () => void;
|
|
24
|
+
moreLabel?: string;
|
|
25
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
26
|
+
export type SelectedFilterProps = Omit<React.ComponentPropsWithoutRef<typeof Button.Root>, 'onChange'> & {
|
|
27
|
+
pressed?: boolean;
|
|
28
|
+
defaultPressed?: boolean;
|
|
29
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
30
|
+
icon?: React.ReactNode;
|
|
31
|
+
showIcon?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export declare const SelectedFilter: React.ForwardRefExoticComponent<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement> & Partial<{
|
|
34
|
+
variant: "primary" | "neutral" | "error";
|
|
35
|
+
mode: "filled" | "stroke" | "lighter" | "ghost";
|
|
36
|
+
size: "medium" | "small" | "xsmall" | "xxsmall";
|
|
37
|
+
}> & {
|
|
38
|
+
asChild?: boolean;
|
|
39
|
+
} & React.RefAttributes<HTMLButtonElement>, "ref">, "onChange"> & {
|
|
40
|
+
pressed?: boolean;
|
|
41
|
+
defaultPressed?: boolean;
|
|
42
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
43
|
+
icon?: React.ReactNode;
|
|
44
|
+
showIcon?: boolean;
|
|
45
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
46
|
+
export type FileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
47
|
+
filename: string;
|
|
48
|
+
sizeLabel?: string;
|
|
49
|
+
href?: string;
|
|
50
|
+
onDownload?: () => void;
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
downloadLabel?: string;
|
|
53
|
+
};
|
|
54
|
+
export declare function File({ filename, sizeLabel, href, onDownload, disabled, downloadLabel, className, ...props }: FileProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export type CommentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
56
|
+
onReply?: () => void;
|
|
57
|
+
replyLabel?: string;
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
};
|
|
60
|
+
export declare function Comment({ children, onReply, replyLabel, disabled, className, ...props }: CommentProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export type TaskStatusProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
62
|
+
status?: 'success' | 'warning' | 'pending' | 'error';
|
|
63
|
+
};
|
|
64
|
+
export declare function TaskStatus({ status, children, className, ...props }: TaskStatusProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { resolveMagnaAsset as __resolveMagnaAsset_1 } from "../../magna-assets.js";
|
|
4
|
+
/* eslint-disable @next/next/no-img-element */
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
import * as Button from "./button.js";
|
|
8
|
+
import * as CompactButton from "./compact-button.js";
|
|
9
|
+
import * as LinkButton from "./link-button.js";
|
|
10
|
+
const image = (name, className) => (_jsx("img", { src: __resolveMagnaAsset_1(`/magna/feeds/${name}.svg`), alt: '', "aria-hidden": 'true', className: cn('block max-w-none shrink-0', className) }));
|
|
11
|
+
export const Root = React.forwardRef(function Root({ className, ...props }, ref) {
|
|
12
|
+
return (_jsx("ol", { ref: ref, ...props, className: cn('flex w-full max-w-[640px] flex-col gap-6', className) }));
|
|
13
|
+
});
|
|
14
|
+
export const Item = React.forwardRef(function Item({ actor, action, subject, timestamp, dateTime, avatar, leading, onMore, moreLabel = 'More activity actions', children, className, ...props }, ref) {
|
|
15
|
+
return (_jsxs("li", { ref: ref, ...props, className: cn('flex w-full items-start gap-4', !children && 'items-center', className), children: [(leading || avatar) && (_jsx("div", { className: 'flex size-8 shrink-0 items-center justify-center rounded-full bg-bg-white-0', children: leading ?? avatar })), _jsxs("div", { className: 'flex min-w-0 flex-1 flex-col gap-2', children: [_jsxs("div", { className: 'flex flex-wrap items-baseline gap-x-1 text-paragraph-sm text-text-sub-600', children: [_jsx("span", { className: 'text-label-sm text-text-strong-950', children: actor }), action && _jsx("span", { children: action }), subject && (_jsx("span", { className: 'text-label-sm text-text-strong-950', children: subject })), timestamp && (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": 'true', className: 'text-text-disabled-300', children: "\u30FB" }), _jsx("time", { dateTime: dateTime, className: 'text-text-soft-400', children: timestamp })] }))] }), children && (_jsx("div", { className: 'flex min-w-0 flex-wrap items-center gap-2', children: children }))] }), onMore && (_jsx(CompactButton.Root, { type: 'button', size: 'medium', variant: 'ghost', "aria-label": moreLabel, onClick: onMore, children: image('activity-more') }))] }));
|
|
16
|
+
});
|
|
17
|
+
export const SelectedFilter = React.forwardRef(function SelectedFilter({ pressed, defaultPressed = false, onPressedChange, icon, showIcon = true, children = 'Selected', className, onClick, disabled, ...props }, ref) {
|
|
18
|
+
const [internal, setInternal] = React.useState(defaultPressed);
|
|
19
|
+
const active = pressed ?? internal;
|
|
20
|
+
return (_jsxs(Button.Root, { ...props, ref: ref, type: 'button', size: 'xxsmall', variant: active ? 'primary' : 'neutral', mode: active ? 'lighter' : 'stroke', disabled: disabled, "aria-pressed": active, className: cn('h-7 gap-1.5 px-2.5 shadow-none', className), onClick: (event) => {
|
|
21
|
+
onClick?.(event);
|
|
22
|
+
if (!event.defaultPrevented) {
|
|
23
|
+
if (pressed === undefined)
|
|
24
|
+
setInternal(!active);
|
|
25
|
+
onPressedChange?.(!active);
|
|
26
|
+
}
|
|
27
|
+
}, children: [showIcon &&
|
|
28
|
+
(icon ?? image(active ? 'selected-filter-active' : 'selected-filter')), children] }));
|
|
29
|
+
});
|
|
30
|
+
export function File({ filename, sizeLabel, href, onDownload, disabled = false, downloadLabel, className, ...props }) {
|
|
31
|
+
const label = downloadLabel ?? `Download ${filename}`;
|
|
32
|
+
const action = (_jsxs(_Fragment, { children: [image('download', 'group-hover/download:hidden'), image('download-hover', 'hidden group-hover/download:block')] }));
|
|
33
|
+
return (_jsxs("div", { ...props, className: cn('inline-flex min-w-0 max-w-full items-stretch overflow-hidden rounded-full bg-bg-white-0 shadow-regular-xs ring-1 ring-inset ring-stroke-soft-200', className), children: [_jsxs("span", { className: 'flex min-w-0 items-center gap-1.5 border-e border-stroke-soft-200 py-1 pe-[9px] ps-1.5', children: [image('attachment'), _jsx("span", { className: 'truncate text-label-sm text-text-sub-600', children: filename }), sizeLabel && (_jsx("span", { className: '-ms-0.5 shrink-0 text-paragraph-sm text-text-soft-400', children: sizeLabel }))] }), href && !disabled ? (_jsx(CompactButton.Root, { asChild: true, variant: 'ghost', className: 'group/download h-auto w-7 rounded-none', "aria-label": label, children: _jsx("a", { href: href, download: true, onClick: onDownload, children: action }) })) : (_jsx(CompactButton.Root, { type: 'button', variant: 'ghost', disabled: disabled || !onDownload, className: 'group/download h-auto w-7 rounded-none', "aria-label": label, onClick: onDownload, children: action }))] }));
|
|
34
|
+
}
|
|
35
|
+
export function Comment({ children, onReply, replyLabel = 'Reply', disabled = false, className, ...props }) {
|
|
36
|
+
return (_jsxs("div", { ...props, className: cn('flex max-w-full flex-wrap items-center gap-1.5 rounded-xl rounded-ss bg-bg-white-0 py-2 pe-3.5 ps-2 shadow-regular-xs ring-1 ring-inset ring-stroke-soft-200 transition-colors hover:bg-bg-weak-50 hover:ring-transparent', className), children: [image('comment'), _jsx("span", { className: 'min-w-0 text-label-sm text-text-sub-600', children: children }), _jsx(LinkButton.Root, { type: 'button', size: 'medium', variant: 'primary', disabled: disabled || !onReply, onClick: onReply, children: replyLabel })] }));
|
|
37
|
+
}
|
|
38
|
+
export function TaskStatus({ status = 'success', children = '12 tasks completed', className, ...props }) {
|
|
39
|
+
return (_jsxs("span", { ...props, className: cn('inline-flex max-w-full items-center gap-1.5 rounded-full bg-bg-white-0 py-1 pe-2.5 ps-1.5 text-label-sm text-text-sub-600 shadow-regular-xs ring-1 ring-inset ring-stroke-soft-200', className), children: [_jsxs("span", { className: 'sr-only', children: [status, ": "] }), image(`status-${status}`), _jsx("span", { children: children })] }));
|
|
40
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { RiCloseLine } from "@remixicon/react";
|
|
3
|
+
import type { ClassValue } from "../../utils/tv.js";
|
|
4
|
+
import type { PolymorphicComponentProps } from "../../utils/polymorphic.js";
|
|
5
|
+
type Appearance = {
|
|
6
|
+
variant: 'filled' | 'light' | 'lighter' | 'stroke';
|
|
7
|
+
status: 'error' | 'warning' | 'success' | 'information' | 'feature';
|
|
8
|
+
size: 'xsmall' | 'small' | 'large';
|
|
9
|
+
};
|
|
10
|
+
export declare const alertVariants: (options?: Partial<Appearance> & {
|
|
11
|
+
class?: ClassValue;
|
|
12
|
+
className?: ClassValue;
|
|
13
|
+
}) => Record<"closeIcon" | "root" | "wrapper" | "icon", (overrides?: (Partial<Appearance> & {
|
|
14
|
+
class?: ClassValue;
|
|
15
|
+
className?: ClassValue;
|
|
16
|
+
}) | undefined) => string>;
|
|
17
|
+
export type AlertProps = React.HTMLAttributes<HTMLDivElement> & Partial<Appearance> & {
|
|
18
|
+
wrapperClassName?: ClassValue;
|
|
19
|
+
};
|
|
20
|
+
export declare const Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & Partial<Appearance> & {
|
|
21
|
+
wrapperClassName?: ClassValue;
|
|
22
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export declare function Icon<T extends React.ElementType = 'div'>({ as, className, variant, status, size, ...props }: PolymorphicComponentProps<T, Partial<Appearance>>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare namespace Icon {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function CloseIcon<T extends React.ElementType = typeof RiCloseLine>({ as, className, variant, status, size, ...props }: PolymorphicComponentProps<T, Partial<Appearance>>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare namespace CloseIcon {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { RiCloseLine } from "@remixicon/react";
|
|
5
|
+
import { mergeOptions, slotRecipe, toneClasses } from "./magna-recipe.js";
|
|
6
|
+
const appearance = React.createContext({});
|
|
7
|
+
const tones = {
|
|
8
|
+
error: toneClasses.red,
|
|
9
|
+
warning: toneClasses.orange,
|
|
10
|
+
success: toneClasses.green,
|
|
11
|
+
information: toneClasses.blue,
|
|
12
|
+
feature: toneClasses.gray,
|
|
13
|
+
};
|
|
14
|
+
export const alertVariants = slotRecipe({ variant: 'filled', status: 'information', size: 'small' }, ({ variant, status, size }) => {
|
|
15
|
+
const filled = variant === 'filled';
|
|
16
|
+
const tone = tones[status];
|
|
17
|
+
return {
|
|
18
|
+
root: [
|
|
19
|
+
'w-full',
|
|
20
|
+
filled ? ['text-static-white', tone.solid] : 'text-text-strong-950',
|
|
21
|
+
variant === 'light' && tone.light,
|
|
22
|
+
variant === 'lighter' && tone.pale,
|
|
23
|
+
variant === 'stroke' &&
|
|
24
|
+
'bg-bg-white-0 shadow-regular-md ring-inset ring-1 ring-stroke-soft-200',
|
|
25
|
+
{
|
|
26
|
+
xsmall: 'p-2 rounded-lg text-paragraph-xs',
|
|
27
|
+
small: 'py-2 px-2.5 rounded-lg text-paragraph-sm',
|
|
28
|
+
large: 'p-3.5 pb-4 rounded-xl text-paragraph-sm',
|
|
29
|
+
}[size],
|
|
30
|
+
],
|
|
31
|
+
wrapper: [
|
|
32
|
+
'grid grid-flow-col auto-cols-auto grid-cols-[minmax(0,1fr)] items-start w-full has-[>svg:first-child]:grid-cols-[auto_minmax(0,1fr)] transition duration-200 ease-out group-data-[expanded=false]/toast:group-data-[front=false]/toast:opacity-0',
|
|
33
|
+
size === 'large' ? 'gap-3' : 'gap-2',
|
|
34
|
+
],
|
|
35
|
+
icon: [
|
|
36
|
+
'shrink-0',
|
|
37
|
+
size === 'xsmall' ? 'size-4' : 'size-5',
|
|
38
|
+
!filled && tone.ink,
|
|
39
|
+
],
|
|
40
|
+
closeIcon: [
|
|
41
|
+
size === 'xsmall' ? 'size-4' : 'size-5',
|
|
42
|
+
filled
|
|
43
|
+
? 'text-static-white opacity-[.72]'
|
|
44
|
+
: 'text-text-strong-950 opacity-40',
|
|
45
|
+
],
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
export const Root = React.forwardRef(function Alert({ variant, status, size, children, className, wrapperClassName, ...props }, ref) {
|
|
49
|
+
const options = { variant, status, size };
|
|
50
|
+
const styles = alertVariants(options);
|
|
51
|
+
return (_jsx(appearance.Provider, { value: options, children: _jsx("div", { ref: ref, className: styles.root({ className }), ...props, children: _jsx("div", { className: styles.wrapper({ class: wrapperClassName }), children: children }) }) }));
|
|
52
|
+
});
|
|
53
|
+
Root.displayName = 'AlertRoot';
|
|
54
|
+
export function Icon({ as, className, variant, status, size, ...props }) {
|
|
55
|
+
const options = mergeOptions(React.useContext(appearance), {
|
|
56
|
+
variant,
|
|
57
|
+
status,
|
|
58
|
+
size,
|
|
59
|
+
});
|
|
60
|
+
const Element = as || 'div';
|
|
61
|
+
return (_jsx(Element, { className: alertVariants(options).icon({ className }), ...props }));
|
|
62
|
+
}
|
|
63
|
+
Icon.displayName = 'AlertIcon';
|
|
64
|
+
export function CloseIcon({ as, className, variant, status, size, ...props }) {
|
|
65
|
+
const options = mergeOptions(React.useContext(appearance), {
|
|
66
|
+
variant,
|
|
67
|
+
status,
|
|
68
|
+
size,
|
|
69
|
+
});
|
|
70
|
+
const Element = as || RiCloseLine;
|
|
71
|
+
return (_jsx(Element, { className: alertVariants(options).closeIcon({ className }), ...props }));
|
|
72
|
+
}
|
|
73
|
+
CloseIcon.displayName = 'AlertCloseIcon';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// MagnaUI Avatar Empty Icons v0.0.0
|
|
2
|
+
'use client';
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export function IconEmptyUser(props) {
|
|
6
|
+
const clipPathId = React.useId();
|
|
7
|
+
return (_jsxs("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 80 80', ...props, children: [_jsxs("g", { fill: '#fff', clipPath: `url(#${clipPathId})`, children: [_jsx("ellipse", { cx: 40, cy: 78, fillOpacity: 0.72, rx: 32, ry: 24 }), _jsx("circle", { cx: 40, cy: 32, r: 16, opacity: 0.9 })] }), _jsx("defs", { children: _jsx("clipPath", { id: clipPathId, children: _jsx("rect", { width: 80, height: 80, fill: '#fff', rx: 40 }) }) })] }));
|
|
8
|
+
}
|
|
9
|
+
export function IconEmptyCompany(props) {
|
|
10
|
+
const clipPathId = React.useId();
|
|
11
|
+
const filterId1 = React.useId();
|
|
12
|
+
const filterId2 = React.useId();
|
|
13
|
+
return (_jsxs("svg", { xmlns: 'http://www.w3.org/2000/svg', width: 56, height: 56, fill: 'none', viewBox: '0 0 56 56', ...props, children: [_jsxs("g", { clipPath: `url(#${clipPathId})`, children: [_jsx("rect", { width: 56, height: 56, className: 'fill-bg-soft-200', rx: 28 }), _jsx("path", { className: 'fill-bg-soft-200', d: 'M0 0h56v56H0z' }), _jsx("g", { filter: `url(#${filterId1})`, opacity: 0.48, children: _jsx("path", { fill: '#fff', d: 'M7 24.9a2.8 2.8 0 012.8-2.8h21a2.8 2.8 0 012.8 2.8v49a2.8 2.8 0 01-2.8 2.8h-21A2.8 2.8 0 017 73.9v-49z' }) }), _jsx("path", { className: 'fill-bg-soft-200', d: 'M12.6 28.7a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm0 9.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm0 9.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2z' }), _jsx("g", { filter: `url(#${filterId2})`, children: _jsx("path", { fill: '#fff', fillOpacity: 0.8, d: 'M21 14a2.8 2.8 0 012.8-2.8h21a2.8 2.8 0 012.8 2.8v49a2.8 2.8 0 01-2.8 2.8h-21A2.8 2.8 0 0121 63V14z' }) }), _jsx("path", { className: 'fill-bg-soft-200', d: 'M26.6 17.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7V22a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm0 9.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm0 9.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm0 9.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm9.8-29.4a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7V22a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm0 9.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm0 9.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2zm0 9.8a.7.7 0 01.7-.7h4.2a.7.7 0 01.7.7v4.2a.7.7 0 01-.7.7h-4.2a.7.7 0 01-.7-.7v-4.2z' })] }), _jsxs("defs", { children: [_jsxs("filter", { id: filterId1, width: 34.6, height: 62.6, x: 3, y: 18.1, colorInterpolationFilters: 'sRGB', filterUnits: 'userSpaceOnUse', children: [_jsx("feFlood", { floodOpacity: 0, result: 'BackgroundImageFix' }), _jsx("feGaussianBlur", { in: 'BackgroundImageFix', stdDeviation: 2 }), _jsx("feComposite", { in2: 'SourceAlpha', operator: 'in', result: 'effect1_backgroundBlur_36237_4888' }), _jsx("feBlend", { in: 'SourceGraphic', in2: 'effect1_backgroundBlur_36237_4888', result: 'shape' })] }), _jsxs("filter", { id: filterId2, width: 42.6, height: 70.6, x: 13, y: 3.2, colorInterpolationFilters: 'sRGB', filterUnits: 'userSpaceOnUse', children: [_jsx("feFlood", { floodOpacity: 0, result: 'BackgroundImageFix' }), _jsx("feGaussianBlur", { in: 'BackgroundImageFix', stdDeviation: 4 }), _jsx("feComposite", { in2: 'SourceAlpha', operator: 'in', result: 'effect1_backgroundBlur_36237_4888' }), _jsx("feBlend", { in: 'SourceGraphic', in2: 'effect1_backgroundBlur_36237_4888', result: 'shape' }), _jsx("feColorMatrix", { in: 'SourceAlpha', result: 'hardAlpha', values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' }), _jsx("feOffset", { dy: 4 }), _jsx("feGaussianBlur", { stdDeviation: 2 }), _jsx("feComposite", { in2: 'hardAlpha', k2: -1, k3: 1, operator: 'arithmetic' }), _jsx("feColorMatrix", { values: '0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0' }), _jsx("feBlend", { in2: 'shape', result: 'effect2_innerShadow_36237_4888' })] }), _jsx("clipPath", { id: clipPathId, children: _jsx("rect", { width: 56, height: 56, fill: '#fff', rx: 28 }) })] })] }));
|
|
14
|
+
}
|