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,18 @@
|
|
|
1
|
+
type TypeSetting = [
|
|
2
|
+
string,
|
|
3
|
+
{
|
|
4
|
+
lineHeight: string;
|
|
5
|
+
letterSpacing: string;
|
|
6
|
+
fontWeight: string;
|
|
7
|
+
}
|
|
8
|
+
];
|
|
9
|
+
export declare const texts: Record<string, TypeSetting>;
|
|
10
|
+
export declare const shadows: Record<string, string>;
|
|
11
|
+
export declare const borderRadii: {
|
|
12
|
+
'10': string;
|
|
13
|
+
'20': string;
|
|
14
|
+
'28': string;
|
|
15
|
+
full: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const colors: Record<string, string | Record<string, string>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import specification from "./figma-styles.js";
|
|
2
|
+
const sizeNames = {
|
|
3
|
+
'X Large': 'xl',
|
|
4
|
+
Large: 'lg',
|
|
5
|
+
Medium: 'md',
|
|
6
|
+
Small: 'sm',
|
|
7
|
+
Compact: 'compact',
|
|
8
|
+
'X Small': 'xs',
|
|
9
|
+
'2X Small': '2xs',
|
|
10
|
+
};
|
|
11
|
+
export const texts = {};
|
|
12
|
+
for (const style of specification.texts) {
|
|
13
|
+
const [family, label] = style.name.split('/');
|
|
14
|
+
let key;
|
|
15
|
+
if (family === 'Title')
|
|
16
|
+
key = `title-${label.split(' ')[0].toLowerCase()}`;
|
|
17
|
+
else if (['Label', 'Paragraph', 'Subheading'].includes(family) &&
|
|
18
|
+
sizeNames[label])
|
|
19
|
+
key = `${family.toLowerCase()}-${sizeNames[label]}`;
|
|
20
|
+
else if (family === 'Docs')
|
|
21
|
+
key = `doc-${label.toLowerCase()}`;
|
|
22
|
+
if (!key)
|
|
23
|
+
continue;
|
|
24
|
+
texts[key] = [
|
|
25
|
+
`${style.size / 16}rem`,
|
|
26
|
+
{
|
|
27
|
+
lineHeight: `${style.height.value / 16}rem`,
|
|
28
|
+
letterSpacing: `${Number((style.tracking.value / 100).toFixed(4))}em`,
|
|
29
|
+
fontWeight: String(style.weight),
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
const shadow = (y, blur, spread, color, inset = false) => `${inset ? 'inset ' : ''}0 ${y}px ${blur}px ${spread}px ${color}`;
|
|
34
|
+
const neutralLayer = (y, blur, spread, opacity, inset = false) => shadow(y, blur, spread, `rgb(51 51 51 / ${opacity})`, inset);
|
|
35
|
+
const focus = (tone) => [
|
|
36
|
+
shadow(0, 0, 2, 'var(--bg-white-0)'),
|
|
37
|
+
shadow(0, 0, 4, `var(--${tone})`),
|
|
38
|
+
].join(', ');
|
|
39
|
+
const elevations = [1, 3, 6, 12, 24, 48].map((n) => neutralLayer(n, n, n === 1 ? 0.5 : -n / 2, n === 3 ? 0.02 : 0.04));
|
|
40
|
+
const edge = neutralLayer(0, 0, 1, 0.04);
|
|
41
|
+
const insetEdge = neutralLayer(-1, 1, -0.5, 0.06, true);
|
|
42
|
+
// Preserve the shipped render values where current Figma effects differ.
|
|
43
|
+
export const shadows = {
|
|
44
|
+
'regular-xs': shadow(1, 2, 0, '#0a0d1408'),
|
|
45
|
+
'regular-sm': shadow(2, 4, 0, '#1b1c1d0a'),
|
|
46
|
+
'regular-md': shadow(16, 32, -12, '#0e121b1a'),
|
|
47
|
+
'button-primary-focus': focus('primary-alpha-10'),
|
|
48
|
+
'button-important-focus': focus('neutral-alpha-16'),
|
|
49
|
+
'button-error-focus': focus('red-alpha-10'),
|
|
50
|
+
'fancy-buttons-neutral': [
|
|
51
|
+
shadow(1, 2, 0, '#1b1c1d7a'),
|
|
52
|
+
shadow(0, 0, 1, '#242628'),
|
|
53
|
+
].join(', '),
|
|
54
|
+
'fancy-buttons-primary': [
|
|
55
|
+
shadow(1, 2, 0, '#0e121b3d'),
|
|
56
|
+
shadow(0, 0, 1, 'var(--primary-base)'),
|
|
57
|
+
].join(', '),
|
|
58
|
+
'fancy-buttons-error': [
|
|
59
|
+
shadow(1, 2, 0, '#0e121b3d'),
|
|
60
|
+
shadow(0, 0, 1, 'var(--error-base)'),
|
|
61
|
+
].join(', '),
|
|
62
|
+
'fancy-buttons-stroke': [
|
|
63
|
+
shadow(1, 3, 0, '#0e121b1f'),
|
|
64
|
+
shadow(0, 0, 1, 'var(--stroke-soft-200)'),
|
|
65
|
+
].join(', '),
|
|
66
|
+
'toggle-switch': [
|
|
67
|
+
shadow(6, 10, 0, '#0e121b0f'),
|
|
68
|
+
shadow(2, 4, 0, '#0e121b08'),
|
|
69
|
+
].join(', '),
|
|
70
|
+
'switch-thumb': [
|
|
71
|
+
shadow(4, 8, 0, '#1b1c1d0f'),
|
|
72
|
+
shadow(2, 4, 0, '#0e121b14'),
|
|
73
|
+
].join(', '),
|
|
74
|
+
tooltip: [shadow(12, 24, 0, '#0e121b0f'), shadow(1, 2, 0, '#0e121b08')].join(', '),
|
|
75
|
+
'custom-xs': [
|
|
76
|
+
edge,
|
|
77
|
+
neutralLayer(4, 8, -2, 0.06),
|
|
78
|
+
neutralLayer(2, 4, 0, 0.04),
|
|
79
|
+
neutralLayer(1, 2, 0, 0.04),
|
|
80
|
+
insetEdge,
|
|
81
|
+
].join(', '),
|
|
82
|
+
'custom-sm': [
|
|
83
|
+
edge,
|
|
84
|
+
neutralLayer(16, 8, -8, 0.01),
|
|
85
|
+
neutralLayer(12, 6, -6, 0.02),
|
|
86
|
+
neutralLayer(5, 5, -2.5, 0.08),
|
|
87
|
+
neutralLayer(1, 3, -1.5, 0.16),
|
|
88
|
+
neutralLayer(-0.5, 0.5, 0, 0.08, true),
|
|
89
|
+
].join(', '),
|
|
90
|
+
'custom-md': [edge, ...elevations, insetEdge].join(', '),
|
|
91
|
+
'custom-lg': [
|
|
92
|
+
edge,
|
|
93
|
+
...elevations,
|
|
94
|
+
neutralLayer(96, 96, -32, 0.06),
|
|
95
|
+
insetEdge,
|
|
96
|
+
].join(', '),
|
|
97
|
+
};
|
|
98
|
+
export const borderRadii = {
|
|
99
|
+
'10': '.625rem',
|
|
100
|
+
'20': 'var(--radius-20)',
|
|
101
|
+
'28': 'var(--radius-28)',
|
|
102
|
+
full: 'var(--radius-full)',
|
|
103
|
+
};
|
|
104
|
+
const colorVariables = (prefix, suffixes) => Object.fromEntries(suffixes.map((suffix) => [suffix, `var(--${prefix}-${suffix})`]));
|
|
105
|
+
export const colors = {
|
|
106
|
+
transparent: 'transparent',
|
|
107
|
+
current: 'currentColor',
|
|
108
|
+
overlay: { DEFAULT: 'var(--overlay)' },
|
|
109
|
+
};
|
|
110
|
+
for (const palette of [
|
|
111
|
+
'gray',
|
|
112
|
+
'slate',
|
|
113
|
+
'neutral',
|
|
114
|
+
'blue',
|
|
115
|
+
'orange',
|
|
116
|
+
'red',
|
|
117
|
+
'green',
|
|
118
|
+
'yellow',
|
|
119
|
+
'purple',
|
|
120
|
+
'sky',
|
|
121
|
+
'pink',
|
|
122
|
+
'teal',
|
|
123
|
+
]) {
|
|
124
|
+
colors[palette] = colorVariables(palette, [
|
|
125
|
+
...(['gray', 'slate', 'neutral'].includes(palette) ? [0] : []),
|
|
126
|
+
50,
|
|
127
|
+
100,
|
|
128
|
+
200,
|
|
129
|
+
300,
|
|
130
|
+
400,
|
|
131
|
+
500,
|
|
132
|
+
600,
|
|
133
|
+
700,
|
|
134
|
+
800,
|
|
135
|
+
900,
|
|
136
|
+
950,
|
|
137
|
+
'alpha-10',
|
|
138
|
+
'alpha-16',
|
|
139
|
+
'alpha-24',
|
|
140
|
+
]);
|
|
141
|
+
}
|
|
142
|
+
for (const palette of ['white', 'black'])
|
|
143
|
+
colors[palette] = {
|
|
144
|
+
DEFAULT: palette === 'white' ? '#fff' : '#000',
|
|
145
|
+
...colorVariables(palette, ['alpha-10', 'alpha-16', 'alpha-24']),
|
|
146
|
+
};
|
|
147
|
+
const semantic = {
|
|
148
|
+
primary: ['dark', 'darker', 'base', 'alpha-10', 'alpha-16', 'alpha-24'],
|
|
149
|
+
static: ['black', 'white'],
|
|
150
|
+
bg: [
|
|
151
|
+
'strong-950',
|
|
152
|
+
'surface-800',
|
|
153
|
+
'sub-300',
|
|
154
|
+
'soft-200',
|
|
155
|
+
'weak-50',
|
|
156
|
+
'white-0',
|
|
157
|
+
],
|
|
158
|
+
text: ['strong-950', 'sub-600', 'soft-400', 'disabled-300', 'white-0'],
|
|
159
|
+
stroke: ['strong-950', 'sub-300', 'soft-200', 'white-0'],
|
|
160
|
+
social: [
|
|
161
|
+
'apple',
|
|
162
|
+
'twitter',
|
|
163
|
+
'github',
|
|
164
|
+
'notion',
|
|
165
|
+
'tidal',
|
|
166
|
+
'amazon',
|
|
167
|
+
'zendesk',
|
|
168
|
+
],
|
|
169
|
+
};
|
|
170
|
+
for (const state of [
|
|
171
|
+
'faded',
|
|
172
|
+
'information',
|
|
173
|
+
'warning',
|
|
174
|
+
'error',
|
|
175
|
+
'success',
|
|
176
|
+
'away',
|
|
177
|
+
'feature',
|
|
178
|
+
'verified',
|
|
179
|
+
'highlighted',
|
|
180
|
+
'stable',
|
|
181
|
+
])
|
|
182
|
+
semantic[state] = ['dark', 'base', 'light', 'lighter'];
|
|
183
|
+
for (const [key, suffixes] of Object.entries(semantic))
|
|
184
|
+
colors[key] = colorVariables(key, suffixes);
|
|
185
|
+
colors.primary.dark = 'var(--primary-darkest)';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The DM Mono Project Authors (https://www.github.com/googlefonts/dm-mono)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# MagnaUI fonts
|
|
2
|
+
|
|
3
|
+
These WOFF2 files are the unmodified Inter and DM Mono files used by the original
|
|
4
|
+
MagnaUI site through `next/font/google`. They were copied from its existing build
|
|
5
|
+
cache on 2026-09-28, together with the exact font-face ranges and fallback metrics.
|
|
6
|
+
The package build reads these checked-in files, so it never needs the Next.js cache
|
|
7
|
+
or a network request.
|
|
8
|
+
|
|
9
|
+
- Inter: normal, variable weight 100–900 and optical size; Cyrillic, Greek,
|
|
10
|
+
Vietnamese, Latin, and extended subsets.
|
|
11
|
+
- DM Mono: normal, weights 400 and 500; Latin and extended subsets.
|
|
12
|
+
- Only styles used by the original site are bundled. Italic glyphs or other DM
|
|
13
|
+
Mono weights use normal browser synthesis unless the application adds them.
|
|
14
|
+
- Font files remain licensed under SIL OFL 1.1. See `Inter-OFL.txt` and
|
|
15
|
+
`DM-Mono-OFL.txt`. Original projects: https://github.com/rsms/inter and
|
|
16
|
+
https://github.com/googlefonts/dm-mono.
|
|
17
|
+
- License notices were fetched from the official Google Fonts repository:
|
|
18
|
+
https://github.com/google/fonts/blob/main/ofl/inter/OFL.txt and
|
|
19
|
+
https://github.com/google/fonts/blob/main/ofl/dmmono/OFL.txt.
|
|
20
|
+
|
|
21
|
+
`fonts.css` URLs are relative to the generated package `styles.css`. Applications
|
|
22
|
+
can override `--font-sans` and `--font-dm-mono` on `:root` or a component subtree.
|
|
23
|
+
`SHA256SUMS` records the checked-in font binaries.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
7f8712cbbd64135f9e74a527475a97cd8c5a49d8e0a1de7a65f8e2c30c5214d9 dm-mono-400-latin-ext.woff2
|
|
2
|
+
fd7521f3531a5ccfc655b25c4f22e9871df3ec141ad79bb27fde20d0df347b6d dm-mono-400-latin.woff2
|
|
3
|
+
e284f2a17fc9cca89cc30f496945bd9a2903010944a9469fb357924da21b6f6c dm-mono-500-latin-ext.woff2
|
|
4
|
+
0e263db52797086e763679c54f84ded8cc1249879bc27dca2bd5dd446f6d9f36 dm-mono-500-latin.woff2
|
|
5
|
+
942b71451b22e42c9a0d94e45bf3a5feac43b73e7a1256742ccf1a78974dc706 inter-cyrillic-ext.woff2
|
|
6
|
+
a7f3e73668ccdd99ac9cccdb043e6e1238580a9fd38492c83a0e241bc6882aca inter-cyrillic.woff2
|
|
7
|
+
009e52d835e45840b76aa92601cf1778c65e224ce7ea3ae887d708c6aa536f4b inter-greek-ext.woff2
|
|
8
|
+
b6a22966401b2b8892ecdd6e670c3c98bf2fd8f97e79b138a896f0942051ee33 inter-greek.woff2
|
|
9
|
+
8bc9dee39deab5dc6599980e563c5023053387e4c391f5c419543e493e024c39 inter-latin-ext.woff2
|
|
10
|
+
dd8a4575be9806105ac3decd02805cd2782fe7c05abb02c582316bc436ce03ae inter-latin.woff2
|
|
11
|
+
07df696d36deed379a901c2867fd700fee3453f46e384424a08ee376178a81b1 inter-vietnamese.woff2
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { NotificationProps } from "../components/ui/notification.js";
|
|
2
|
+
type Entry = NotificationProps & {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
type Snapshot = {
|
|
6
|
+
notifications: Entry[];
|
|
7
|
+
};
|
|
8
|
+
type Event = {
|
|
9
|
+
type: 'ADD_NOTIFICATION';
|
|
10
|
+
notification: Entry;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'UPDATE_NOTIFICATION';
|
|
13
|
+
notification: Partial<Entry>;
|
|
14
|
+
} | {
|
|
15
|
+
type: 'DISMISS_NOTIFICATION';
|
|
16
|
+
notificationId?: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'REMOVE_NOTIFICATION';
|
|
19
|
+
notificationId?: string;
|
|
20
|
+
};
|
|
21
|
+
/** Pure state transition, also exported for integrations that manage their own store. */
|
|
22
|
+
export declare function reducer(snapshot: Snapshot, event: Event): Snapshot;
|
|
23
|
+
declare function dismiss(id?: string): void;
|
|
24
|
+
export declare function notification(props: NotificationProps & {
|
|
25
|
+
id?: string;
|
|
26
|
+
}): {
|
|
27
|
+
id: string;
|
|
28
|
+
dismiss: () => void;
|
|
29
|
+
update: (next: NotificationProps) => void;
|
|
30
|
+
};
|
|
31
|
+
export declare function useNotification(): {
|
|
32
|
+
notification: typeof notification;
|
|
33
|
+
dismiss: typeof dismiss;
|
|
34
|
+
notifications: Entry[];
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/** Pure state transition, also exported for integrations that manage their own store. */
|
|
4
|
+
export function reducer(snapshot, event) {
|
|
5
|
+
const items = snapshot.notifications;
|
|
6
|
+
if (event.type === 'ADD_NOTIFICATION')
|
|
7
|
+
return { notifications: [event.notification] };
|
|
8
|
+
if (event.type === 'UPDATE_NOTIFICATION')
|
|
9
|
+
return {
|
|
10
|
+
notifications: items.map((item) => item.id === event.notification.id
|
|
11
|
+
? { ...item, ...event.notification }
|
|
12
|
+
: item),
|
|
13
|
+
};
|
|
14
|
+
const matches = (item) => event.notificationId === undefined || item.id === event.notificationId;
|
|
15
|
+
return {
|
|
16
|
+
notifications: event.type === 'REMOVE_NOTIFICATION'
|
|
17
|
+
? items.filter((item) => !matches(item))
|
|
18
|
+
: items.map((item) => matches(item) ? { ...item, open: false } : item),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const empty = { notifications: [] };
|
|
22
|
+
let current = empty;
|
|
23
|
+
let sequence = 0;
|
|
24
|
+
const subscribers = new Set();
|
|
25
|
+
const pendingRemoval = new Map();
|
|
26
|
+
const getSnapshot = () => current;
|
|
27
|
+
const getServerSnapshot = () => empty;
|
|
28
|
+
const subscribe = (listener) => {
|
|
29
|
+
subscribers.add(listener);
|
|
30
|
+
return () => {
|
|
31
|
+
subscribers.delete(listener);
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
function cancelRemoval(id) {
|
|
35
|
+
const timeout = pendingRemoval.get(id);
|
|
36
|
+
if (timeout !== undefined)
|
|
37
|
+
clearTimeout(timeout);
|
|
38
|
+
pendingRemoval.delete(id);
|
|
39
|
+
}
|
|
40
|
+
function send(event) {
|
|
41
|
+
if (event.type === 'ADD_NOTIFICATION') {
|
|
42
|
+
if (current.notifications.some((item) => item.id === event.notification.id))
|
|
43
|
+
return;
|
|
44
|
+
current.notifications.forEach((item) => cancelRemoval(item.id));
|
|
45
|
+
}
|
|
46
|
+
current = reducer(current, event);
|
|
47
|
+
subscribers.forEach((listener) => listener());
|
|
48
|
+
}
|
|
49
|
+
function dismiss(id) {
|
|
50
|
+
const closing = current.notifications.filter((item) => id === undefined || id === item.id);
|
|
51
|
+
send({ type: 'DISMISS_NOTIFICATION', notificationId: id });
|
|
52
|
+
closing.forEach((item) => {
|
|
53
|
+
if (pendingRemoval.has(item.id))
|
|
54
|
+
return;
|
|
55
|
+
// Preserve the window in which existing handles may update or reopen a toast.
|
|
56
|
+
pendingRemoval.set(item.id, setTimeout(() => {
|
|
57
|
+
pendingRemoval.delete(item.id);
|
|
58
|
+
send({ type: 'REMOVE_NOTIFICATION', notificationId: item.id });
|
|
59
|
+
}, 1000000));
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
export function notification(props) {
|
|
63
|
+
const id = props.id || `magna-${++sequence}`;
|
|
64
|
+
const onOpenChange = (open) => {
|
|
65
|
+
props.onOpenChange?.(open);
|
|
66
|
+
if (!open)
|
|
67
|
+
dismiss(id);
|
|
68
|
+
};
|
|
69
|
+
send({
|
|
70
|
+
type: 'ADD_NOTIFICATION',
|
|
71
|
+
notification: { ...props, id, open: true, onOpenChange },
|
|
72
|
+
});
|
|
73
|
+
return {
|
|
74
|
+
id,
|
|
75
|
+
dismiss: () => dismiss(id),
|
|
76
|
+
update: (next) => {
|
|
77
|
+
if (next.open)
|
|
78
|
+
cancelRemoval(id);
|
|
79
|
+
send({ type: 'UPDATE_NOTIFICATION', notification: { ...next, id } });
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
export function useNotification() {
|
|
84
|
+
const state = React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
85
|
+
return { ...state, notification, dismiss };
|
|
86
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/** Observe only the information that can change the selected tab's geometry. */
|
|
3
|
+
export declare function useTabObserver(options?: {
|
|
4
|
+
onActiveTabChange?: (index: number, element: HTMLElement) => void;
|
|
5
|
+
}): {
|
|
6
|
+
listRef: React.RefObject<HTMLDivElement>;
|
|
7
|
+
mounted: boolean;
|
|
8
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/** Observe only the information that can change the selected tab's geometry. */
|
|
4
|
+
export function useTabObserver(options = {}) {
|
|
5
|
+
const listRef = React.useRef(null);
|
|
6
|
+
const callback = React.useRef(options.onActiveTabChange);
|
|
7
|
+
callback.current = options.onActiveTabChange;
|
|
8
|
+
const [mounted, setMounted] = React.useState(false);
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
const list = listRef.current;
|
|
11
|
+
if (!list)
|
|
12
|
+
return;
|
|
13
|
+
let frame = 0;
|
|
14
|
+
let last;
|
|
15
|
+
const measure = () => {
|
|
16
|
+
const tabs = Array.from(list.querySelectorAll('[role="tab"]'));
|
|
17
|
+
const index = tabs.findIndex((tab) => tab.dataset.state === 'active');
|
|
18
|
+
const tab = tabs[index];
|
|
19
|
+
if (!tab)
|
|
20
|
+
return;
|
|
21
|
+
const next = {
|
|
22
|
+
tab,
|
|
23
|
+
index,
|
|
24
|
+
width: tab.offsetWidth,
|
|
25
|
+
left: tab.offsetLeft,
|
|
26
|
+
height: tab.offsetHeight,
|
|
27
|
+
};
|
|
28
|
+
if (!last ||
|
|
29
|
+
Object.keys(next).some((key) => next[key] !== last?.[key])) {
|
|
30
|
+
last = next;
|
|
31
|
+
callback.current?.(index, tab);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const schedule = () => {
|
|
35
|
+
cancelAnimationFrame(frame);
|
|
36
|
+
frame = requestAnimationFrame(measure);
|
|
37
|
+
};
|
|
38
|
+
const sizes = new ResizeObserver(schedule);
|
|
39
|
+
const track = () => {
|
|
40
|
+
sizes.disconnect();
|
|
41
|
+
sizes.observe(list);
|
|
42
|
+
list
|
|
43
|
+
.querySelectorAll('[role="tab"]')
|
|
44
|
+
.forEach((tab) => sizes.observe(tab));
|
|
45
|
+
schedule();
|
|
46
|
+
};
|
|
47
|
+
const changes = new MutationObserver((records) => {
|
|
48
|
+
if (records.some((record) => record.type === 'childList'))
|
|
49
|
+
track();
|
|
50
|
+
else
|
|
51
|
+
schedule();
|
|
52
|
+
});
|
|
53
|
+
changes.observe(list, {
|
|
54
|
+
subtree: true,
|
|
55
|
+
childList: true,
|
|
56
|
+
characterData: true,
|
|
57
|
+
attributes: true,
|
|
58
|
+
attributeFilter: ['data-state', 'class', 'style', 'hidden', 'dir'],
|
|
59
|
+
});
|
|
60
|
+
window.addEventListener('resize', schedule);
|
|
61
|
+
track();
|
|
62
|
+
measure();
|
|
63
|
+
setMounted(true);
|
|
64
|
+
return () => {
|
|
65
|
+
cancelAnimationFrame(frame);
|
|
66
|
+
sizes.disconnect();
|
|
67
|
+
changes.disconnect();
|
|
68
|
+
window.removeEventListener('resize', schedule);
|
|
69
|
+
};
|
|
70
|
+
}, []);
|
|
71
|
+
return { listRef, mounted };
|
|
72
|
+
}
|