@ima-jin/ui 1.0.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/README.md +36 -0
- package/dist/index.js +1937 -0
- package/dist/index.mjs +1891 -0
- package/package.json +26 -0
- package/src/BuildInfo.tsx +20 -0
- package/src/DidShareListEditor.tsx +433 -0
- package/src/MarkdownContent.tsx +70 -0
- package/src/MarkdownEditor.tsx +79 -0
- package/src/MoneyInput.tsx +103 -0
- package/src/PayoutSetupBanner.tsx +117 -0
- package/src/acting-as.ts +21 -0
- package/src/action-sheet.tsx +118 -0
- package/src/app-launcher.tsx +298 -0
- package/src/app-shell.tsx +154 -0
- package/src/balance-badge.tsx +106 -0
- package/src/brand.ts +26 -0
- package/src/button.tsx +14 -0
- package/src/connection-picker.tsx +106 -0
- package/src/footer.tsx +39 -0
- package/src/index.ts +44 -0
- package/src/nav-bar.tsx +611 -0
- package/src/notification-bell.tsx +144 -0
- package/src/notification-provider.tsx +134 -0
- package/src/theme-init.ts +10 -0
- package/src/toast.tsx +147 -0
- package/src/use-identities.ts +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @ima-jin/ui
|
|
2
|
+
|
|
3
|
+
Shared UI components for Imajin apps — NavBar, identity management, app launcher, theming, and common patterns.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @ima-jin/ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Components
|
|
12
|
+
|
|
13
|
+
- **NavBar** — Full navigation bar with identity switching, app launcher, notifications, and balance display
|
|
14
|
+
- **AppLauncher** — Grid launcher for Imajin services
|
|
15
|
+
- **BalanceBadge** — MJNx/cash balance display
|
|
16
|
+
- **AppShell** — Layout shell with header, body, footer, and split pane support
|
|
17
|
+
- **Button** — Styled button component
|
|
18
|
+
- **MarkdownEditor** — MDX editor with toolbar
|
|
19
|
+
- **MarkdownContent** — Markdown renderer
|
|
20
|
+
- **ConnectionPicker** — DID connection selector
|
|
21
|
+
- **ToastProvider / useToast** — Toast notification system
|
|
22
|
+
- **NotificationProvider / NotificationBell** — Real-time notifications
|
|
23
|
+
- **ActionSheet** — Mobile-friendly bottom sheet
|
|
24
|
+
- **MoneyInput** — Currency input with formatting
|
|
25
|
+
- **ImajinFooter** — Standard footer
|
|
26
|
+
- **BuildInfo** — Version/build info display
|
|
27
|
+
|
|
28
|
+
## Hooks & Utilities
|
|
29
|
+
|
|
30
|
+
- `useIdentities()` — Fetch and manage personal + group identities
|
|
31
|
+
- `getActingAs() / setActingAs()` — Acting-as DID cookie management
|
|
32
|
+
- `themeInitScript` — Dark/light mode initialization
|
|
33
|
+
|
|
34
|
+
## Part of Imajin
|
|
35
|
+
|
|
36
|
+
[Imajin](https://imajin.ai) — sovereign technology infrastructure. Open source.
|