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,420 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "../../utils/tv.js";
|
|
3
|
+
export declare const AVATAR_ROOT_NAME = "AvatarRoot";
|
|
4
|
+
export declare const avatarVariants: import("../../vendor/tailwind-variants/index.js").TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
'80': {
|
|
7
|
+
root: string;
|
|
8
|
+
indicator: string;
|
|
9
|
+
};
|
|
10
|
+
'72': {
|
|
11
|
+
root: string;
|
|
12
|
+
indicator: string;
|
|
13
|
+
};
|
|
14
|
+
'64': {
|
|
15
|
+
root: string;
|
|
16
|
+
indicator: string;
|
|
17
|
+
};
|
|
18
|
+
'56': {
|
|
19
|
+
root: string;
|
|
20
|
+
indicator: string;
|
|
21
|
+
};
|
|
22
|
+
'48': {
|
|
23
|
+
root: string;
|
|
24
|
+
indicator: string;
|
|
25
|
+
};
|
|
26
|
+
'40': {
|
|
27
|
+
root: string;
|
|
28
|
+
indicator: string;
|
|
29
|
+
};
|
|
30
|
+
'32': {
|
|
31
|
+
root: string;
|
|
32
|
+
indicator: string;
|
|
33
|
+
};
|
|
34
|
+
'24': {
|
|
35
|
+
root: string;
|
|
36
|
+
indicator: string;
|
|
37
|
+
};
|
|
38
|
+
'20': {
|
|
39
|
+
root: string;
|
|
40
|
+
indicator: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
color: {
|
|
44
|
+
gray: {
|
|
45
|
+
root: string;
|
|
46
|
+
};
|
|
47
|
+
yellow: {
|
|
48
|
+
root: string;
|
|
49
|
+
};
|
|
50
|
+
blue: {
|
|
51
|
+
root: string;
|
|
52
|
+
};
|
|
53
|
+
sky: {
|
|
54
|
+
root: string;
|
|
55
|
+
};
|
|
56
|
+
purple: {
|
|
57
|
+
root: string;
|
|
58
|
+
};
|
|
59
|
+
red: {
|
|
60
|
+
root: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
root: string;
|
|
65
|
+
image: string;
|
|
66
|
+
indicator: string;
|
|
67
|
+
}, undefined, {
|
|
68
|
+
responsiveVariants?: boolean | ("xl" | "lg" | "md" | "sm" | "2xl")[] | {
|
|
69
|
+
size?: boolean | ("xl" | "lg" | "md" | "sm" | "2xl")[] | undefined;
|
|
70
|
+
color?: boolean | ("xl" | "lg" | "md" | "sm" | "2xl")[] | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
} & import("../../vendor/tailwind-variants/config.js").TWMConfig & {
|
|
73
|
+
twMergeConfig: {
|
|
74
|
+
extend: {
|
|
75
|
+
classGroups: {
|
|
76
|
+
'font-size': {
|
|
77
|
+
text: string[];
|
|
78
|
+
}[];
|
|
79
|
+
shadow: {
|
|
80
|
+
shadow: string[];
|
|
81
|
+
}[];
|
|
82
|
+
rounded: {
|
|
83
|
+
rounded: string[];
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, {
|
|
89
|
+
size: {
|
|
90
|
+
'80': {
|
|
91
|
+
root: string;
|
|
92
|
+
indicator: string;
|
|
93
|
+
};
|
|
94
|
+
'72': {
|
|
95
|
+
root: string;
|
|
96
|
+
indicator: string;
|
|
97
|
+
};
|
|
98
|
+
'64': {
|
|
99
|
+
root: string;
|
|
100
|
+
indicator: string;
|
|
101
|
+
};
|
|
102
|
+
'56': {
|
|
103
|
+
root: string;
|
|
104
|
+
indicator: string;
|
|
105
|
+
};
|
|
106
|
+
'48': {
|
|
107
|
+
root: string;
|
|
108
|
+
indicator: string;
|
|
109
|
+
};
|
|
110
|
+
'40': {
|
|
111
|
+
root: string;
|
|
112
|
+
indicator: string;
|
|
113
|
+
};
|
|
114
|
+
'32': {
|
|
115
|
+
root: string;
|
|
116
|
+
indicator: string;
|
|
117
|
+
};
|
|
118
|
+
'24': {
|
|
119
|
+
root: string;
|
|
120
|
+
indicator: string;
|
|
121
|
+
};
|
|
122
|
+
'20': {
|
|
123
|
+
root: string;
|
|
124
|
+
indicator: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
color: {
|
|
128
|
+
gray: {
|
|
129
|
+
root: string;
|
|
130
|
+
};
|
|
131
|
+
yellow: {
|
|
132
|
+
root: string;
|
|
133
|
+
};
|
|
134
|
+
blue: {
|
|
135
|
+
root: string;
|
|
136
|
+
};
|
|
137
|
+
sky: {
|
|
138
|
+
root: string;
|
|
139
|
+
};
|
|
140
|
+
purple: {
|
|
141
|
+
root: string;
|
|
142
|
+
};
|
|
143
|
+
red: {
|
|
144
|
+
root: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}, {
|
|
148
|
+
root: string;
|
|
149
|
+
image: string;
|
|
150
|
+
indicator: string;
|
|
151
|
+
}, import("../../vendor/tailwind-variants/index.js").TVReturnType<{
|
|
152
|
+
size: {
|
|
153
|
+
'80': {
|
|
154
|
+
root: string;
|
|
155
|
+
indicator: string;
|
|
156
|
+
};
|
|
157
|
+
'72': {
|
|
158
|
+
root: string;
|
|
159
|
+
indicator: string;
|
|
160
|
+
};
|
|
161
|
+
'64': {
|
|
162
|
+
root: string;
|
|
163
|
+
indicator: string;
|
|
164
|
+
};
|
|
165
|
+
'56': {
|
|
166
|
+
root: string;
|
|
167
|
+
indicator: string;
|
|
168
|
+
};
|
|
169
|
+
'48': {
|
|
170
|
+
root: string;
|
|
171
|
+
indicator: string;
|
|
172
|
+
};
|
|
173
|
+
'40': {
|
|
174
|
+
root: string;
|
|
175
|
+
indicator: string;
|
|
176
|
+
};
|
|
177
|
+
'32': {
|
|
178
|
+
root: string;
|
|
179
|
+
indicator: string;
|
|
180
|
+
};
|
|
181
|
+
'24': {
|
|
182
|
+
root: string;
|
|
183
|
+
indicator: string;
|
|
184
|
+
};
|
|
185
|
+
'20': {
|
|
186
|
+
root: string;
|
|
187
|
+
indicator: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
color: {
|
|
191
|
+
gray: {
|
|
192
|
+
root: string;
|
|
193
|
+
};
|
|
194
|
+
yellow: {
|
|
195
|
+
root: string;
|
|
196
|
+
};
|
|
197
|
+
blue: {
|
|
198
|
+
root: string;
|
|
199
|
+
};
|
|
200
|
+
sky: {
|
|
201
|
+
root: string;
|
|
202
|
+
};
|
|
203
|
+
purple: {
|
|
204
|
+
root: string;
|
|
205
|
+
};
|
|
206
|
+
red: {
|
|
207
|
+
root: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
}, {
|
|
211
|
+
root: string;
|
|
212
|
+
image: string;
|
|
213
|
+
indicator: string;
|
|
214
|
+
}, undefined, import("../../vendor/tailwind-variants/config.js").TVConfig<{
|
|
215
|
+
size: {
|
|
216
|
+
'80': {
|
|
217
|
+
root: string;
|
|
218
|
+
indicator: string;
|
|
219
|
+
};
|
|
220
|
+
'72': {
|
|
221
|
+
root: string;
|
|
222
|
+
indicator: string;
|
|
223
|
+
};
|
|
224
|
+
'64': {
|
|
225
|
+
root: string;
|
|
226
|
+
indicator: string;
|
|
227
|
+
};
|
|
228
|
+
'56': {
|
|
229
|
+
root: string;
|
|
230
|
+
indicator: string;
|
|
231
|
+
};
|
|
232
|
+
'48': {
|
|
233
|
+
root: string;
|
|
234
|
+
indicator: string;
|
|
235
|
+
};
|
|
236
|
+
'40': {
|
|
237
|
+
root: string;
|
|
238
|
+
indicator: string;
|
|
239
|
+
};
|
|
240
|
+
'32': {
|
|
241
|
+
root: string;
|
|
242
|
+
indicator: string;
|
|
243
|
+
};
|
|
244
|
+
'24': {
|
|
245
|
+
root: string;
|
|
246
|
+
indicator: string;
|
|
247
|
+
};
|
|
248
|
+
'20': {
|
|
249
|
+
root: string;
|
|
250
|
+
indicator: string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
color: {
|
|
254
|
+
gray: {
|
|
255
|
+
root: string;
|
|
256
|
+
};
|
|
257
|
+
yellow: {
|
|
258
|
+
root: string;
|
|
259
|
+
};
|
|
260
|
+
blue: {
|
|
261
|
+
root: string;
|
|
262
|
+
};
|
|
263
|
+
sky: {
|
|
264
|
+
root: string;
|
|
265
|
+
};
|
|
266
|
+
purple: {
|
|
267
|
+
root: string;
|
|
268
|
+
};
|
|
269
|
+
red: {
|
|
270
|
+
root: string;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
}, {
|
|
274
|
+
size: {
|
|
275
|
+
'80': {
|
|
276
|
+
root: string;
|
|
277
|
+
indicator: string;
|
|
278
|
+
};
|
|
279
|
+
'72': {
|
|
280
|
+
root: string;
|
|
281
|
+
indicator: string;
|
|
282
|
+
};
|
|
283
|
+
'64': {
|
|
284
|
+
root: string;
|
|
285
|
+
indicator: string;
|
|
286
|
+
};
|
|
287
|
+
'56': {
|
|
288
|
+
root: string;
|
|
289
|
+
indicator: string;
|
|
290
|
+
};
|
|
291
|
+
'48': {
|
|
292
|
+
root: string;
|
|
293
|
+
indicator: string;
|
|
294
|
+
};
|
|
295
|
+
'40': {
|
|
296
|
+
root: string;
|
|
297
|
+
indicator: string;
|
|
298
|
+
};
|
|
299
|
+
'32': {
|
|
300
|
+
root: string;
|
|
301
|
+
indicator: string;
|
|
302
|
+
};
|
|
303
|
+
'24': {
|
|
304
|
+
root: string;
|
|
305
|
+
indicator: string;
|
|
306
|
+
};
|
|
307
|
+
'20': {
|
|
308
|
+
root: string;
|
|
309
|
+
indicator: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
color: {
|
|
313
|
+
gray: {
|
|
314
|
+
root: string;
|
|
315
|
+
};
|
|
316
|
+
yellow: {
|
|
317
|
+
root: string;
|
|
318
|
+
};
|
|
319
|
+
blue: {
|
|
320
|
+
root: string;
|
|
321
|
+
};
|
|
322
|
+
sky: {
|
|
323
|
+
root: string;
|
|
324
|
+
};
|
|
325
|
+
purple: {
|
|
326
|
+
root: string;
|
|
327
|
+
};
|
|
328
|
+
red: {
|
|
329
|
+
root: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
}>, unknown, unknown, undefined>>;
|
|
333
|
+
type Appearance = VariantProps<typeof avatarVariants>;
|
|
334
|
+
/** @internal Shared by the two avatar group compositions. */
|
|
335
|
+
export declare const AvatarSizeContext: React.Context<"80" | "72" | "64" | "56" | "48" | "40" | "32" | "24" | "20" | undefined>;
|
|
336
|
+
export type AvatarRootProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> & Appearance & {
|
|
337
|
+
asChild?: boolean;
|
|
338
|
+
placeholderType?: 'user' | 'company';
|
|
339
|
+
};
|
|
340
|
+
declare const Root: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & Appearance & {
|
|
341
|
+
asChild?: boolean;
|
|
342
|
+
placeholderType?: "user" | "company";
|
|
343
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
344
|
+
declare const Image: React.ForwardRefExoticComponent<Omit<React.ImgHTMLAttributes<HTMLImageElement>, "color"> & Appearance & {
|
|
345
|
+
asChild?: boolean;
|
|
346
|
+
} & React.RefAttributes<HTMLImageElement>>;
|
|
347
|
+
declare function Indicator({ size, color, className, position, ...props }: React.HTMLAttributes<HTMLDivElement> & Appearance & {
|
|
348
|
+
position?: 'top' | 'bottom';
|
|
349
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
350
|
+
declare namespace Indicator {
|
|
351
|
+
var displayName: string;
|
|
352
|
+
}
|
|
353
|
+
export declare const avatarStatusVariants: import("../../vendor/tailwind-variants/index.js").TVReturnType<{
|
|
354
|
+
status: {
|
|
355
|
+
online: string;
|
|
356
|
+
offline: string;
|
|
357
|
+
busy: string;
|
|
358
|
+
away: string;
|
|
359
|
+
};
|
|
360
|
+
}, undefined, "box-content size-3 rounded-full border-4 border-bg-white-0", {
|
|
361
|
+
responsiveVariants?: boolean | ("xl" | "lg" | "md" | "sm" | "2xl")[] | {
|
|
362
|
+
status?: boolean | ("xl" | "lg" | "md" | "sm" | "2xl")[] | undefined;
|
|
363
|
+
} | undefined;
|
|
364
|
+
} & import("../../vendor/tailwind-variants/config.js").TWMConfig & {
|
|
365
|
+
twMergeConfig: {
|
|
366
|
+
extend: {
|
|
367
|
+
classGroups: {
|
|
368
|
+
'font-size': {
|
|
369
|
+
text: string[];
|
|
370
|
+
}[];
|
|
371
|
+
shadow: {
|
|
372
|
+
shadow: string[];
|
|
373
|
+
}[];
|
|
374
|
+
rounded: {
|
|
375
|
+
rounded: string[];
|
|
376
|
+
}[];
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
}, {
|
|
381
|
+
status: {
|
|
382
|
+
online: string;
|
|
383
|
+
offline: string;
|
|
384
|
+
busy: string;
|
|
385
|
+
away: string;
|
|
386
|
+
};
|
|
387
|
+
}, undefined, import("../../vendor/tailwind-variants/index.js").TVReturnType<{
|
|
388
|
+
status: {
|
|
389
|
+
online: string;
|
|
390
|
+
offline: string;
|
|
391
|
+
busy: string;
|
|
392
|
+
away: string;
|
|
393
|
+
};
|
|
394
|
+
}, undefined, "box-content size-3 rounded-full border-4 border-bg-white-0", import("../../vendor/tailwind-variants/config.js").TVConfig<{
|
|
395
|
+
status: {
|
|
396
|
+
online: string;
|
|
397
|
+
offline: string;
|
|
398
|
+
busy: string;
|
|
399
|
+
away: string;
|
|
400
|
+
};
|
|
401
|
+
}, {
|
|
402
|
+
status: {
|
|
403
|
+
online: string;
|
|
404
|
+
offline: string;
|
|
405
|
+
busy: string;
|
|
406
|
+
away: string;
|
|
407
|
+
};
|
|
408
|
+
}>, unknown, unknown, undefined>>;
|
|
409
|
+
declare function Status({ status, className, ...props }: React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof avatarStatusVariants>): import("react/jsx-runtime").JSX.Element;
|
|
410
|
+
declare namespace Status {
|
|
411
|
+
var displayName: string;
|
|
412
|
+
}
|
|
413
|
+
declare const BrandLogo: React.ForwardRefExoticComponent<React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
414
|
+
asChild?: boolean;
|
|
415
|
+
} & React.RefAttributes<HTMLImageElement>>;
|
|
416
|
+
declare function Notification({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
417
|
+
declare namespace Notification {
|
|
418
|
+
var displayName: string;
|
|
419
|
+
}
|
|
420
|
+
export { Root, Image, Indicator, Status, BrandLogo, Notification };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { tv } from "../../utils/tv.js";
|
|
7
|
+
import { IconEmptyCompany, IconEmptyUser } from "./avatar-empty-icons.js";
|
|
8
|
+
export const AVATAR_ROOT_NAME = 'AvatarRoot';
|
|
9
|
+
export const avatarVariants = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
root: 'relative flex shrink-0 select-none items-center justify-center rounded-full text-center uppercase',
|
|
12
|
+
image: 'size-full rounded-full object-cover',
|
|
13
|
+
indicator: 'absolute flex size-8 items-center justify-center drop-shadow-[0_2px_4px_#1b1c1d0a]',
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
size: {
|
|
17
|
+
'80': { root: 'size-20 text-title-h5', indicator: '-right-2' },
|
|
18
|
+
'72': { root: 'size-[72px] text-title-h5', indicator: '-right-2' },
|
|
19
|
+
'64': {
|
|
20
|
+
root: 'size-16 text-title-h5',
|
|
21
|
+
indicator: '-right-2 scale-[.875]',
|
|
22
|
+
},
|
|
23
|
+
'56': { root: 'size-14 text-label-lg', indicator: '-right-1.5 scale-75' },
|
|
24
|
+
'48': {
|
|
25
|
+
root: 'size-12 text-label-lg',
|
|
26
|
+
indicator: '-right-1.5 scale-[.625]',
|
|
27
|
+
},
|
|
28
|
+
'40': {
|
|
29
|
+
root: 'size-10 text-label-md',
|
|
30
|
+
indicator: '-right-1.5 scale-[.5625]',
|
|
31
|
+
},
|
|
32
|
+
'32': { root: 'size-8 text-label-sm', indicator: '-right-1.5 scale-50' },
|
|
33
|
+
'24': {
|
|
34
|
+
root: 'size-6 text-label-xs',
|
|
35
|
+
indicator: '-right-1 scale-[.375]',
|
|
36
|
+
},
|
|
37
|
+
'20': {
|
|
38
|
+
root: 'size-5 text-label-xs',
|
|
39
|
+
indicator: '-right-1 scale-[.3125]',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
color: {
|
|
43
|
+
gray: { root: 'bg-bg-soft-200 text-static-black' },
|
|
44
|
+
yellow: { root: 'bg-yellow-200 text-yellow-950' },
|
|
45
|
+
blue: { root: 'bg-blue-200 text-blue-950' },
|
|
46
|
+
sky: { root: 'bg-sky-200 text-sky-950' },
|
|
47
|
+
purple: { root: 'bg-purple-200 text-purple-950' },
|
|
48
|
+
red: { root: 'bg-red-200 text-red-950' },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
defaultVariants: { size: '80', color: 'gray' },
|
|
52
|
+
});
|
|
53
|
+
/** @internal Shared by the two avatar group compositions. */
|
|
54
|
+
export const AvatarSizeContext = React.createContext(undefined);
|
|
55
|
+
const AppearanceContext = React.createContext({});
|
|
56
|
+
const Root = React.forwardRef(function Root({ size, color, asChild, placeholderType = 'user', className, children, ...props }, ref) {
|
|
57
|
+
const groupSize = React.useContext(AvatarSizeContext);
|
|
58
|
+
const appearance = { size: size ?? groupSize, color };
|
|
59
|
+
const Tag = asChild && children ? Slot : 'div';
|
|
60
|
+
const Placeholder = placeholderType === 'company' ? IconEmptyCompany : IconEmptyUser;
|
|
61
|
+
return (_jsx(AppearanceContext.Provider, { value: appearance, children: _jsx(Tag, { ...props, ref: ref, className: avatarVariants(appearance).root({ className }), children: children || (_jsx(Placeholder, { className: avatarVariants(appearance).image() })) }) }));
|
|
62
|
+
});
|
|
63
|
+
function useAppearance(own) {
|
|
64
|
+
const inherited = React.useContext(AppearanceContext);
|
|
65
|
+
return avatarVariants({
|
|
66
|
+
size: own.size ?? inherited.size,
|
|
67
|
+
color: own.color ?? inherited.color,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
const Image = React.forwardRef(function Image({ size, color, asChild, className, ...props }, ref) {
|
|
71
|
+
const Tag = asChild ? Slot : 'img';
|
|
72
|
+
return (_jsx(Tag, { ...props, ref: ref, className: useAppearance({ size, color }).image({ className }) }));
|
|
73
|
+
});
|
|
74
|
+
function Indicator({ size, color, className, position = 'bottom', ...props }) {
|
|
75
|
+
return (_jsx("div", { ...props, className: cn(useAppearance({ size, color }).indicator(), position === 'top'
|
|
76
|
+
? 'top-0 origin-top-right'
|
|
77
|
+
: 'bottom-0 origin-bottom-right', className) }));
|
|
78
|
+
}
|
|
79
|
+
export const avatarStatusVariants = tv({
|
|
80
|
+
base: 'box-content size-3 rounded-full border-4 border-bg-white-0',
|
|
81
|
+
variants: {
|
|
82
|
+
status: {
|
|
83
|
+
online: 'bg-success-base',
|
|
84
|
+
offline: 'bg-faded-base',
|
|
85
|
+
busy: 'bg-error-base',
|
|
86
|
+
away: 'bg-away-base',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
defaultVariants: { status: 'online' },
|
|
90
|
+
});
|
|
91
|
+
function Status({ status, className, ...props }) {
|
|
92
|
+
return (_jsx("div", { ...props, className: avatarStatusVariants({ status, className }) }));
|
|
93
|
+
}
|
|
94
|
+
const BrandLogo = React.forwardRef(function BrandLogo({ asChild, className, ...props }, ref) {
|
|
95
|
+
const Tag = asChild ? Slot : 'img';
|
|
96
|
+
return (_jsx(Tag, { ...props, ref: ref, className: cn('box-content size-6 rounded-full border-2 border-bg-white-0', className) }));
|
|
97
|
+
});
|
|
98
|
+
function Notification({ className, ...props }) {
|
|
99
|
+
return (_jsx("div", { ...props, className: cn('box-content size-3 rounded-full border-2 border-bg-white-0 bg-error-base', className) }));
|
|
100
|
+
}
|
|
101
|
+
Root.displayName = AVATAR_ROOT_NAME;
|
|
102
|
+
Image.displayName = 'AvatarImage';
|
|
103
|
+
Indicator.displayName = 'AvatarIndicator';
|
|
104
|
+
Status.displayName = 'AvatarStatus';
|
|
105
|
+
BrandLogo.displayName = 'AvatarBrandLogo';
|
|
106
|
+
Notification.displayName = 'AvatarNotification';
|
|
107
|
+
export { Root, Image, Indicator, Status, BrandLogo, Notification };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PolymorphicComponentProps } from "../../utils/polymorphic.js";
|
|
3
|
+
import { toneClasses } from "./magna-recipe.js";
|
|
4
|
+
type Appearance = {
|
|
5
|
+
size: 'small' | 'medium';
|
|
6
|
+
variant: 'filled' | 'light' | 'lighter' | 'stroke';
|
|
7
|
+
color: keyof typeof toneClasses;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
square: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const badgeVariants: (options?: Partial<Appearance> & {
|
|
12
|
+
class?: import("tailwind-merge").ClassNameValue;
|
|
13
|
+
className?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
}) => Record<"root" | "icon" | "dot", (overrides?: (Partial<Appearance> & {
|
|
15
|
+
class?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
className?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
}) | undefined) => string>;
|
|
18
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & Partial<Appearance> & {
|
|
19
|
+
asChild?: boolean;
|
|
20
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export declare function Icon<T extends React.ElementType = 'div'>({ as, className, size, variant, color, disabled, square, ...props }: PolymorphicComponentProps<T, Partial<Appearance>>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare namespace Icon {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function Dot({ className, size, variant, color, disabled, square, ...props }: Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> & Partial<Appearance>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare namespace Dot {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
+
import { mergeOptions, slotRecipe, toneClasses } from "./magna-recipe.js";
|
|
6
|
+
const appearance = React.createContext({});
|
|
7
|
+
export const badgeVariants = slotRecipe({
|
|
8
|
+
size: 'small',
|
|
9
|
+
variant: 'filled',
|
|
10
|
+
color: 'gray',
|
|
11
|
+
disabled: false,
|
|
12
|
+
square: false,
|
|
13
|
+
}, ({ size, variant, color, disabled, square }) => {
|
|
14
|
+
const tone = toneClasses[color];
|
|
15
|
+
const surfaces = {
|
|
16
|
+
filled: [tone.solid, 'text-static-white'],
|
|
17
|
+
light: [tone.light, tone.deep],
|
|
18
|
+
lighter: [tone.pale, tone.ink],
|
|
19
|
+
stroke: [tone.ink, 'ring-current ring-1 ring-inset'],
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
root: [
|
|
23
|
+
'inline-flex justify-center items-center gap-1.5 rounded-full leading-none transition duration-200 ease-out',
|
|
24
|
+
size === 'small'
|
|
25
|
+
? 'h-4 text-subheading-2xs uppercase has-[>.dot]:gap-2'
|
|
26
|
+
: 'h-5 text-label-xs',
|
|
27
|
+
square ? ['px-1', size === 'small' ? 'min-w-4' : 'min-w-5'] : 'px-2',
|
|
28
|
+
disabled
|
|
29
|
+
? 'pointer-events-none bg-transparent text-text-disabled-300 ring-1 ring-inset ring-stroke-soft-200'
|
|
30
|
+
: surfaces[variant],
|
|
31
|
+
],
|
|
32
|
+
icon: ['shrink-0 -mx-1', size === 'small' ? 'size-3' : 'size-4'],
|
|
33
|
+
dot: [
|
|
34
|
+
'dot grid size-4 place-items-center before:block before:size-1 before:rounded-full before:bg-current',
|
|
35
|
+
size === 'small' ? '-mx-2' : '-mx-1.5',
|
|
36
|
+
],
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
export const Root = React.forwardRef(function Badge({ size, variant, color, disabled, square, children, asChild, className, ...props }, ref) {
|
|
40
|
+
const options = { size, variant, color, disabled, square };
|
|
41
|
+
const Element = asChild ? Slot : 'div';
|
|
42
|
+
return (_jsx(appearance.Provider, { value: options, children: _jsx(Element, { ref: ref, "aria-disabled": disabled || undefined, className: badgeVariants(options).root({ className }), ...props, children: children }) }));
|
|
43
|
+
});
|
|
44
|
+
Root.displayName = 'BadgeRoot';
|
|
45
|
+
export function Icon({ as, className, size, variant, color, disabled, square, ...props }) {
|
|
46
|
+
const options = mergeOptions(React.useContext(appearance), {
|
|
47
|
+
size,
|
|
48
|
+
variant,
|
|
49
|
+
color,
|
|
50
|
+
disabled,
|
|
51
|
+
square,
|
|
52
|
+
});
|
|
53
|
+
const Element = as || 'div';
|
|
54
|
+
return (_jsx(Element, { className: badgeVariants(options).icon({ className }), ...props }));
|
|
55
|
+
}
|
|
56
|
+
Icon.displayName = 'BadgeIcon';
|
|
57
|
+
export function Dot({ className, size, variant, color, disabled, square, ...props }) {
|
|
58
|
+
const options = mergeOptions(React.useContext(appearance), {
|
|
59
|
+
size,
|
|
60
|
+
variant,
|
|
61
|
+
color,
|
|
62
|
+
disabled,
|
|
63
|
+
square,
|
|
64
|
+
});
|
|
65
|
+
return (_jsx("div", { className: badgeVariants(options).dot({ className }), ...props }));
|
|
66
|
+
}
|
|
67
|
+
Dot.displayName = 'BadgeDot';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { bannerAssets } from "./display-assets.js";
|
|
3
|
+
export type BannerStatus = keyof typeof bannerAssets;
|
|
4
|
+
export type BannerVariant = 'filled' | 'light' | 'lighter' | 'stroke';
|
|
5
|
+
export type BannerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
6
|
+
status?: BannerStatus;
|
|
7
|
+
variant?: BannerVariant;
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
action?: React.ReactNode;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
showIcon?: boolean;
|
|
13
|
+
onDismiss?: () => void;
|
|
14
|
+
dismissLabel?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
17
|
+
status?: BannerStatus;
|
|
18
|
+
variant?: BannerVariant;
|
|
19
|
+
title?: React.ReactNode;
|
|
20
|
+
description?: React.ReactNode;
|
|
21
|
+
action?: React.ReactNode;
|
|
22
|
+
icon?: React.ReactNode;
|
|
23
|
+
showIcon?: boolean;
|
|
24
|
+
onDismiss?: () => void;
|
|
25
|
+
dismissLabel?: string;
|
|
26
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
import * as CompactButton from "./compact-button.js";
|
|
6
|
+
import { DisplayAsset } from "./display-asset.js";
|
|
7
|
+
import { bannerAssets } from "./display-assets.js";
|
|
8
|
+
const backgrounds = {
|
|
9
|
+
error: {
|
|
10
|
+
filled: 'bg-error-base',
|
|
11
|
+
light: 'bg-error-light',
|
|
12
|
+
lighter: 'bg-error-lighter',
|
|
13
|
+
},
|
|
14
|
+
warning: {
|
|
15
|
+
filled: 'bg-warning-base',
|
|
16
|
+
light: 'bg-warning-light',
|
|
17
|
+
lighter: 'bg-warning-lighter',
|
|
18
|
+
},
|
|
19
|
+
success: {
|
|
20
|
+
filled: 'bg-success-base',
|
|
21
|
+
light: 'bg-success-light',
|
|
22
|
+
lighter: 'bg-success-lighter',
|
|
23
|
+
},
|
|
24
|
+
information: {
|
|
25
|
+
filled: 'bg-information-base',
|
|
26
|
+
light: 'bg-information-light',
|
|
27
|
+
lighter: 'bg-information-lighter',
|
|
28
|
+
},
|
|
29
|
+
feature: {
|
|
30
|
+
filled: 'bg-faded-base',
|
|
31
|
+
light: 'bg-faded-light',
|
|
32
|
+
lighter: 'bg-faded-lighter',
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
export const Root = React.forwardRef(function Banner({ status = 'information', variant = 'filled', title, description, action, icon, showIcon = true, onDismiss, dismissLabel = 'Dismiss banner', children, className, ...props }, ref) {
|
|
36
|
+
const filled = variant === 'filled';
|
|
37
|
+
const assets = bannerAssets[status][filled ? 'filled' : 'light'];
|
|
38
|
+
return (_jsxs("div", { ref: ref, role: 'status', ...props, className: cn('relative flex w-full items-center justify-center gap-3 px-12 py-3 text-paragraph-sm', variant === 'stroke'
|
|
39
|
+
? 'border-b border-stroke-soft-200 bg-bg-white-0'
|
|
40
|
+
: backgrounds[status][variant], filled ? 'text-static-white' : 'text-text-strong-950', className), children: [showIcon && (_jsx("span", { className: 'flex size-5 shrink-0 items-center justify-center', "aria-hidden": 'true', children: icon ?? _jsx(DisplayAsset, { src: assets.icon }) })), _jsxs("div", { className: 'flex min-w-0 flex-wrap items-center justify-center gap-x-1 gap-y-1', children: [title && _jsx("span", { className: 'text-label-sm', children: title }), title && description && _jsx("span", { "aria-hidden": 'true', children: "\u00B7" }), description && _jsx("span", { children: description }), children, action] }), onDismiss && (_jsx(CompactButton.Root, { type: 'button', size: 'medium', variant: 'ghost', "aria-label": dismissLabel, onClick: onDismiss, className: 'absolute end-3 top-1/2 -translate-y-1/2 text-inherit hover:bg-transparent hover:text-inherit', children: _jsx(DisplayAsset, { src: assets.close }) }))] }));
|
|
41
|
+
});
|