@owlmeans/web-panel 0.1.18-rc.2 → 0.1.18-rc.20
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 +85 -2
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/web-panel/SKILL.md +157 -4
- package/build/@/components/ui/navigation-menu.d.ts +15 -0
- package/build/@/components/ui/navigation-menu.d.ts.map +1 -0
- package/build/@/components/ui/navigation-menu.js +32 -0
- package/build/@/components/ui/navigation-menu.js.map +1 -0
- package/build/auth/plugins/basic-ed25519.js +1 -1
- package/build/auth/plugins/basic-ed25519.js.map +1 -1
- package/build/components/footer/component.d.ts +12 -0
- package/build/components/footer/component.d.ts.map +1 -0
- package/build/components/footer/component.js +24 -0
- package/build/components/footer/component.js.map +1 -0
- package/build/components/footer/index.d.ts +3 -0
- package/build/components/footer/index.d.ts.map +1 -0
- package/build/components/footer/index.js +2 -0
- package/build/components/footer/index.js.map +1 -0
- package/build/components/footer/types.d.ts +11 -0
- package/build/components/footer/types.d.ts.map +1 -0
- package/build/components/footer/types.js +2 -0
- package/build/components/footer/types.js.map +1 -0
- package/build/components/index.d.ts +4 -0
- package/build/components/index.d.ts.map +1 -1
- package/build/components/index.js +4 -0
- package/build/components/index.js.map +1 -1
- package/build/components/login/append.d.ts +22 -0
- package/build/components/login/append.d.ts.map +1 -0
- package/build/components/login/append.js +21 -0
- package/build/components/login/append.js.map +1 -0
- package/build/components/login/credit.d.ts +17 -0
- package/build/components/login/credit.d.ts.map +1 -0
- package/build/components/login/credit.js +17 -0
- package/build/components/login/credit.js.map +1 -0
- package/build/components/login/icons.d.ts +14 -0
- package/build/components/login/icons.d.ts.map +1 -0
- package/build/components/login/icons.js +29 -0
- package/build/components/login/icons.js.map +1 -0
- package/build/components/login/index.d.ts +6 -0
- package/build/components/login/index.d.ts.map +1 -0
- package/build/components/login/index.js +6 -0
- package/build/components/login/index.js.map +1 -0
- package/build/components/login/screen.d.ts +23 -0
- package/build/components/login/screen.d.ts.map +1 -0
- package/build/components/login/screen.js +54 -0
- package/build/components/login/screen.js.map +1 -0
- package/build/components/login/terms.d.ts +9 -0
- package/build/components/login/terms.d.ts.map +1 -0
- package/build/components/login/terms.js +30 -0
- package/build/components/login/terms.js.map +1 -0
- package/build/components/nav/index.d.ts +5 -0
- package/build/components/nav/index.d.ts.map +1 -0
- package/build/components/nav/index.js +4 -0
- package/build/components/nav/index.js.map +1 -0
- package/build/components/nav/layout.d.ts +12 -0
- package/build/components/nav/layout.d.ts.map +1 -0
- package/build/components/nav/layout.js +40 -0
- package/build/components/nav/layout.js.map +1 -0
- package/build/components/nav/side.d.ts +11 -0
- package/build/components/nav/side.d.ts.map +1 -0
- package/build/components/nav/side.js +25 -0
- package/build/components/nav/side.js.map +1 -0
- package/build/components/nav/top.d.ts +10 -0
- package/build/components/nav/top.d.ts.map +1 -0
- package/build/components/nav/top.js +44 -0
- package/build/components/nav/top.js.map +1 -0
- package/build/components/nav/types.d.ts +55 -0
- package/build/components/nav/types.d.ts.map +1 -0
- package/build/components/nav/types.js +2 -0
- package/build/components/nav/types.js.map +1 -0
- package/build/components/toaster.d.ts +16 -0
- package/build/components/toaster.d.ts.map +1 -0
- package/build/components/toaster.js +52 -0
- package/build/components/toaster.js.map +1 -0
- package/build/consent/component.d.ts +11 -0
- package/build/consent/component.d.ts.map +1 -0
- package/build/consent/component.js +53 -0
- package/build/consent/component.js.map +1 -0
- package/build/consent/index.d.ts +4 -0
- package/build/consent/index.d.ts.map +1 -0
- package/build/consent/index.js +3 -0
- package/build/consent/index.js.map +1 -0
- package/build/context.d.ts.map +1 -1
- package/build/context.js +4 -0
- package/build/context.js.map +1 -1
- package/package.json +38 -27
- package/src/@/components/ui/navigation-menu.tsx +169 -0
- package/src/auth/plugins/basic-ed25519.tsx +1 -1
- package/src/components/footer/component.tsx +37 -0
- package/src/components/footer/index.ts +3 -0
- package/src/components/footer/types.ts +11 -0
- package/src/components/index.ts +4 -0
- package/src/components/login/append.ts +34 -0
- package/src/components/login/credit.tsx +34 -0
- package/src/components/login/icons.tsx +39 -0
- package/src/components/login/index.ts +5 -0
- package/src/components/login/screen.tsx +110 -0
- package/src/components/login/terms.tsx +71 -0
- package/src/components/nav/index.ts +5 -0
- package/src/components/nav/layout.tsx +85 -0
- package/src/components/nav/side.tsx +52 -0
- package/src/components/nav/top.tsx +62 -0
- package/src/components/nav/types.ts +56 -0
- package/src/components/toaster.tsx +68 -0
- package/src/consent/component.tsx +62 -0
- package/src/consent/index.ts +11 -0
- package/src/context.ts +5 -0
- package/tests/context.ts +43 -0
- package/tests/harness/index.html +11 -0
- package/tests/harness/mount.tsx +183 -0
- package/tests/login.spec.ts +115 -0
- package/tests/nav.spec.ts +252 -0
- package/tests/smoke.spec.ts +5 -1
- package/tests/toaster.spec.ts +59 -0
package/README.md
CHANGED
|
@@ -36,9 +36,12 @@ Generate the matching primitives in your app once. You can either copy them
|
|
|
36
36
|
from this package's `src/@/components/ui/` or use the shadcn CLI:
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
npx shadcn add button card input label progress alert separator
|
|
39
|
+
npx shadcn add button card input label progress alert separator navigation-menu
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
`navigation-menu` also needs `@radix-ui/react-navigation-menu` in your app's
|
|
43
|
+
dependencies — the `TopNav` section menu is built on it.
|
|
44
|
+
|
|
42
45
|
This package was authored against the shadcn `new-york` style with
|
|
43
46
|
`baseColor: neutral`. See `components.json` for the exact config.
|
|
44
47
|
|
|
@@ -69,6 +72,85 @@ A working set is shipped at `src/@/globals.css` (for dev/test only).
|
|
|
69
72
|
resolve: { alias: { '@': fileURLToPath(new URL('./src/@', import.meta.url)) } }
|
|
70
73
|
```
|
|
71
74
|
|
|
75
|
+
### 4. Tailwind `@source` for this package
|
|
76
|
+
|
|
77
|
+
Tailwind's scanner reads your CSS root plus its `@source` directives, and it
|
|
78
|
+
excludes `node_modules`. Classes that exist only inside this package's
|
|
79
|
+
components — the whole navigation shell and footer — therefore never reach your
|
|
80
|
+
stylesheet unless you point Tailwind at the built package:
|
|
81
|
+
|
|
82
|
+
```css
|
|
83
|
+
@import "tailwindcss";
|
|
84
|
+
|
|
85
|
+
@source "../../../node_modules/@owlmeans/web-panel/build";
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Adjust the relative depth to your own layout; the target is this package's
|
|
89
|
+
installed `build` directory.
|
|
90
|
+
|
|
91
|
+
## Navigation shell
|
|
92
|
+
|
|
93
|
+
`NavLayout` is the standard application shell — header, section menu, the active
|
|
94
|
+
section's screen menu, content, footer. A layout entrypoint elevates a component
|
|
95
|
+
that renders it and nothing else; the matched screen arrives as `children`.
|
|
96
|
+
|
|
97
|
+
```tsx
|
|
98
|
+
import { NavLayout, HOME } from '@owlmeans/web-panel'
|
|
99
|
+
import type { PanelNavConfig, PanelNavLink } from '@owlmeans/web-panel'
|
|
100
|
+
|
|
101
|
+
const navConfig: PanelNavConfig = {
|
|
102
|
+
sections: [
|
|
103
|
+
{ name: 'home', label: 'Home', items: [{ alias: HOME, label: 'Overview' }] },
|
|
104
|
+
{
|
|
105
|
+
name: 'demo', label: 'Demo', items: [
|
|
106
|
+
{ alias: web.session, label: 'Session' },
|
|
107
|
+
{ alias: web.about, label: 'About' },
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const footerLinks: PanelNavLink[] = [
|
|
114
|
+
{ alias: HOME, label: 'My App' },
|
|
115
|
+
{ href: 'https://owlmeans.com', label: 'OwlMeans', open: true },
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
export const MainLayout: FC<PropsWithChildren> = ({ children }) => (
|
|
119
|
+
<NavLayout nav={navConfig} title="My App" footer={footerLinks}>
|
|
120
|
+
{children}
|
|
121
|
+
</NavLayout>
|
|
122
|
+
)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Navigation is **two-layer**: the top menu lists sections, the side menu lists the
|
|
126
|
+
active section's screens. A section holding a single screen renders **no side
|
|
127
|
+
menu at all**. `NavLayout` mounts `SideNav` twice — a `hidden md:block` column
|
|
128
|
+
beside the content and a `md:hidden` strip under the header — so the same items
|
|
129
|
+
serve wide and narrow viewports.
|
|
130
|
+
|
|
131
|
+
| Component | Props |
|
|
132
|
+
|---|---|
|
|
133
|
+
| `NavLayout` | `nav`, `translate?`, `title?`, `home?` (brand target; defaults to the first section's first item), `actions?`, `footer?` (`PanelNavLink[]` renders the standard footer, a node replaces it), `contentClassName?`, `className?`, `style?` |
|
|
134
|
+
| `TopNav` | `config`, `translate?`, `ariaLabel?`, `className?`, `style?` |
|
|
135
|
+
| `SideNav` | the same, plus `variant?: 'side' \| 'bar'` |
|
|
136
|
+
| `Footer` | `links?`, `translate?`, `children?`, `className?`, `style?` |
|
|
137
|
+
|
|
138
|
+
The navigation model itself (`usePanelNav`, `PanelNavConfig`, `PanelNavItem`,
|
|
139
|
+
`PanelNavSection`, `PanelNavLink`, `NavTranslate`) is headless and lives in
|
|
140
|
+
[`@owlmeans/client-panel`](../client-panel); these components are its shadcn
|
|
141
|
+
rendering.
|
|
142
|
+
|
|
143
|
+
Two things to know when wiring it:
|
|
144
|
+
|
|
145
|
+
- **Labels do not use i18n unless you pass a resolver.** `translate` is a prop
|
|
146
|
+
(`NavTranslate`), defaulting to one that returns the fallback, because an app
|
|
147
|
+
rendered without an i18n provider throws if a menu reads the panel i18n
|
|
148
|
+
context. Labels resolve as literal `label` → `translate(key, humanized)` →
|
|
149
|
+
humanized alias, with default keys `nav.<section>` and `modules.<alias>`.
|
|
150
|
+
- **A parent route needs a `default: true` child.** A frontend entrypoint with
|
|
151
|
+
children but no default child renders blank at its own path — give a grouping
|
|
152
|
+
screen an index child at `'/'`.
|
|
153
|
+
|
|
72
154
|
## Breaking changes vs `@owlmeans/mui-panel`
|
|
73
155
|
|
|
74
156
|
This package keeps the same public name and re-export surface as the
|
|
@@ -103,7 +185,8 @@ Consumers that need the previous MUI behaviour should swap to
|
|
|
103
185
|
|
|
104
186
|
```ts
|
|
105
187
|
import {
|
|
106
|
-
PanelApp, Layout,
|
|
188
|
+
PanelApp, Layout, NavLayout, TopNav, SideNav, Footer,
|
|
189
|
+
Form, TextInput, SubmitButton, Button, ButtonSelector,
|
|
107
190
|
Block, Text, Link, Status, ImageUploader,
|
|
108
191
|
scalingToStyles, useBreakPoint, useMapBreakpoint,
|
|
109
192
|
render,
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/web-panel",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-08-
|
|
4
|
+
"version": "0.1.18-rc.19",
|
|
5
|
+
"generatedAt": "2026-08-30T20:53:43.839Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: web-panel
|
|
3
|
-
description: How to use @owlmeans/web-panel — base browser context factory (makeContext) with shadcn/Radix + Tailwind and the default OwlMeans router wired in, plus form/panel components. Auto-invoked when building a web app's makeContext or importing web panel components.
|
|
3
|
+
description: How to use @owlmeans/web-panel — base browser context factory (makeContext) with shadcn/Radix + Tailwind and the default OwlMeans router wired in, plus the two-layer navigation shell (NavLayout/TopNav/SideNav/Footer) and form/panel components. Auto-invoked when building a web app's makeContext, wiring its navigation or layout, or importing web panel components.
|
|
4
4
|
user-invocable: false
|
|
5
5
|
---
|
|
6
6
|
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
@@ -8,15 +8,18 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/web-panel
|
|
9
9
|
|
|
10
10
|
**Layer:** Web (React)
|
|
11
|
-
**Install:** `"@owlmeans/web-panel": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/web-panel": "^0.1.18-rc.19"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
## Key Exports
|
|
14
14
|
|
|
15
15
|
| Export | Description |
|
|
16
16
|
|--------|-------------|
|
|
17
17
|
| `makeContext<C, T>(cfg)` | Base web context factory (shadcn/Radix + default OwlMeans router) |
|
|
18
|
+
| `NavLayout` | The application shell — header, section menu, screen menu, content, footer |
|
|
19
|
+
| `TopNav` / `SideNav` / `Footer` | The shell's pieces, mountable on their own |
|
|
20
|
+
| `Toaster` | The application's toast surface — mounted once, in the layout |
|
|
18
21
|
| `components` submodule | shadcn/Radix panel/form components |
|
|
19
|
-
| Re-exports from `@owlmeans/client-panel` | Cross-platform panel primitives |
|
|
22
|
+
| Re-exports from `@owlmeans/client-panel` | Cross-platform panel primitives, incl. `usePanelNav` and the `PanelNav*` types |
|
|
20
23
|
| `main`, `exports`, `context`, `modules`, `types` | Wiring helpers |
|
|
21
24
|
|
|
22
25
|
## Subpath Exports
|
|
@@ -41,9 +44,159 @@ export const makeContext = <C extends Config, T extends Context<C>>(cfg: C): T =
|
|
|
41
44
|
}
|
|
42
45
|
```
|
|
43
46
|
|
|
47
|
+
### Navigation — `NavLayout`
|
|
48
|
+
|
|
49
|
+
`NavLayout` is the application shell. A layout entrypoint elevates a component that renders it and
|
|
50
|
+
nothing else; the matched screen arrives as `children`. Keep the navigation as data in its own
|
|
51
|
+
module (`src/nav.ts`) so screens, modules and the shell all read the same aliases.
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
import { NavLayout, HOME } from '@owlmeans/web-panel'
|
|
55
|
+
import type { PanelNavConfig, PanelNavLink } from '@owlmeans/web-panel'
|
|
56
|
+
|
|
57
|
+
export const navConfig: PanelNavConfig = {
|
|
58
|
+
sections: [
|
|
59
|
+
{ name: 'home', label: 'Home', items: [{ alias: HOME, label: 'Overview' }] },
|
|
60
|
+
{
|
|
61
|
+
name: 'demo', label: 'Demo', items: [
|
|
62
|
+
{ alias: web.session, label: 'Session' },
|
|
63
|
+
{ alias: web.about, label: 'About' },
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export const footerLinks: PanelNavLink[] = [
|
|
70
|
+
{ alias: HOME, label: 'My App' },
|
|
71
|
+
{ href: 'https://owlmeans.com', label: 'OwlMeans', open: true },
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
export const MainLayout: FC<PropsWithChildren> = ({ children }) =>
|
|
75
|
+
<NavLayout nav={navConfig} title="My App" footer={footerLinks}>{children}</NavLayout>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Navigation is two-layer.** The top menu lists **sections** — the first level; the side menu lists
|
|
79
|
+
the **active section's screens** — the second. A section holding a single screen renders **no side
|
|
80
|
+
menu at all**: the model owns that rule (`showSide`), so a section that later grows a second screen
|
|
81
|
+
gains its menu with no layout change. `NavLayout` mounts `SideNav` twice — `variant="side"` as the
|
|
82
|
+
`hidden md:block` column beside the content, `variant="bar"` as the `md:hidden` strip under the
|
|
83
|
+
header. Both render the same items; only one is visible at a time.
|
|
84
|
+
|
|
85
|
+
| Component | Props |
|
|
86
|
+
|---|---|
|
|
87
|
+
| `NavLayout` | `nav: PanelNavConfig`, `translate?`, `title?: ReactNode`, `home?: string` (brand target — defaults to the first section's first item), `actions?: ReactNode`, `footer?: PanelNavLink[] \| ReactNode`, `headerClassName?`, `contentClassName?`, `containerClassName?`, `className?`, `style?` |
|
|
88
|
+
| `TopNav` | `config: PanelNavConfig`, `translate?`, `ariaLabel?`, `className?`, `style?` |
|
|
89
|
+
| `SideNav` | the same, plus `variant?: 'side' \| 'bar'` |
|
|
90
|
+
| `Footer` | `links?: PanelNavLink[]`, `translate?`, `children?`, `className?`, `style?` |
|
|
91
|
+
|
|
92
|
+
**The style slots are REGIONS, and each region is its own SURFACE.** `className` is the root —
|
|
93
|
+
the full-height page *behind* the header, side menu and footer. `headerClassName` is the sticky
|
|
94
|
+
top bar. `contentClassName` is the content area. `containerClassName` is width and padding for
|
|
95
|
+
all three at once, never colour.
|
|
96
|
+
|
|
97
|
+
The header paints an opaque background of its own, because it is sticky and content scrolls
|
|
98
|
+
beneath it. That makes it a **different surface from the root**, so it states `text-foreground`
|
|
99
|
+
alongside its `bg-background` — not as decoration, and not redundantly. A root carrying a
|
|
100
|
+
contrasting pair (`className="bg-primary text-primary-foreground"`, an ordinary dark shell)
|
|
101
|
+
otherwise inherits its near-white foreground into a near-white bar, and every header child that
|
|
102
|
+
states no colour of its own — the brand, a ghost-variant action button — is painted in the
|
|
103
|
+
foreground of a surface it is not on. It type-checks, it builds, it renders, and the menu is
|
|
104
|
+
invisible. Pinned by `tests/nav.spec.ts` → "the header is its own surface", which measures
|
|
105
|
+
rendered lightness rather than class names; the harness root carries a dark shell permanently so
|
|
106
|
+
every navigation test runs against that case.
|
|
107
|
+
|
|
108
|
+
**Every style slot is MERGED over its default — none of them substitutes.** `className`,
|
|
109
|
+
`headerClassName`, `contentClassName` and `containerClassName` all go through `cn`, so a caller
|
|
110
|
+
names only the utility it wants to move and tailwind-merge drops just the one it conflicts with.
|
|
111
|
+
This matters most for `containerClassName`, whose default is a four-part rhythm
|
|
112
|
+
(`mx-auto w-full max-w-6xl px-4`): a design asking for a wider page writes `max-w-[1280px]` and
|
|
113
|
+
means *wider*, not *unpadded and uncentred*. Substituting there took `px-4` and `mx-auto` down
|
|
114
|
+
with the width and left the header, content and footer all flush to the window edge. Pinned by
|
|
115
|
+
`nav.spec.ts` → "a width-only rhythm override keeps the side padding"; the harness passes a
|
|
116
|
+
width-only override permanently.
|
|
117
|
+
|
|
118
|
+
**A dark top bar is asked for with `headerClassName`**, giving it both halves
|
|
119
|
+
(`bg-secondary text-secondary-foreground`) — never by colouring the root and expecting the bar
|
|
120
|
+
to follow.
|
|
121
|
+
|
|
122
|
+
**The shell reads exactly five theme variables**: `--background` (page and top bar),
|
|
123
|
+
`--foreground` (active section link), `--muted-foreground` (resting section links) and
|
|
124
|
+
`--accent`/`--accent-foreground` (active side-menu item). It reads **no `--sidebar*` variable at
|
|
125
|
+
all**. So `--muted-foreground` is not merely the text colour of the `--muted` surface — it is
|
|
126
|
+
secondary text sitting directly on `--background`, and a theme that lightens it to suit a dark
|
|
127
|
+
muted panel loses its top menu.
|
|
128
|
+
|
|
129
|
+
Rules that make the shell behave:
|
|
130
|
+
|
|
131
|
+
- **Labels never reach for i18n implicitly.** `translate` is a **prop** (`NavTranslate`), defaulting
|
|
132
|
+
to `defaultNavTranslate`, which returns the fallback. An app mounted with `renderApp` from
|
|
133
|
+
`@owlmeans/web-client` has no i18n provider, and the panel i18n hook dereferences `i18n.options`
|
|
134
|
+
on the empty object `react-i18next` returns without an instance — a throw inside render that
|
|
135
|
+
blanks the whole app. An app that does have i18n passes its own
|
|
136
|
+
`(key, defaultValue) => string` resolver. Order: literal `label` → `translate(key, humanized)` →
|
|
137
|
+
humanized alias. Default keys are
|
|
138
|
+
`nav.<section>` for sections and `modules.<alias>` for items and footer links — the same family
|
|
139
|
+
`Link` uses.
|
|
140
|
+
- **Menu entries are real links.** `TopNav` puts the resolved path on `href` and calls
|
|
141
|
+
`preventDefault()` in `onClick`, navigating in-app through `nav.press`. Never drop the `href`: an
|
|
142
|
+
`<a>` without one is not focusable, does not answer the keyboard, cannot be opened in a new tab,
|
|
143
|
+
and does not even carry the `link` role.
|
|
144
|
+
- **A parent route needs a `default: true` child.** A frontend entrypoint that has children but no
|
|
145
|
+
child declared `default: true` renders blank at its own path — give a grouping screen an index
|
|
146
|
+
child at `'/'`.
|
|
147
|
+
- **Vendor `navigation-menu`.** `SideNav` builds on the existing `Button`; `TopNav` uses the shadcn
|
|
148
|
+
`navigation-menu` primitive — see the `@` contract below.
|
|
149
|
+
|
|
150
|
+
### Toasts — `Toaster`
|
|
151
|
+
|
|
152
|
+
An action that succeeded or failed says so in a toast. The surface is `Toaster`; the messages are
|
|
153
|
+
`toast.success(...)` / `toast.error(...)` imported from **`sonner`** by whatever raised them.
|
|
154
|
+
|
|
155
|
+
```tsx
|
|
156
|
+
import { NavLayout, Toaster } from '@owlmeans/web-panel'
|
|
157
|
+
|
|
158
|
+
export const MainLayout: FC<PropsWithChildren> = ({ children }) => <>
|
|
159
|
+
<NavLayout nav={navConfig} title="My App">{children}</NavLayout>
|
|
160
|
+
<Toaster />
|
|
161
|
+
</>
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
- **Mount it exactly once, in the layout.** `toast()` writes to a module-global store, so two
|
|
165
|
+
mounted `Toaster`s render every message twice and none renders any of them — both failures are
|
|
166
|
+
silent, which is why `tests/toaster.spec.ts` asserts the count rather than the presence.
|
|
167
|
+
- **Colours come from the app's own tokens** — `--popover`, `--popover-foreground`, `--border` —
|
|
168
|
+
so a toast matches every other floating surface. A caller's `style` merges over them.
|
|
169
|
+
- **The theme follows the `.dark` class on the document element**, not a theme provider: the
|
|
170
|
+
package reads the class an app's `next-themes`, the owl theme provider, or a hand-written
|
|
171
|
+
toggle all set, and depends on none of them. Pass `theme` explicitly to override.
|
|
172
|
+
- Defaults are `richColors`, `closeButton`, `duration={5000}`, `position="top-right"`; every one
|
|
173
|
+
of them, and every other `ToasterProps` field, is overridable per app.
|
|
174
|
+
- `sonner` is a dependency of this package, so nothing is required of the consumer — but an app
|
|
175
|
+
raising its own toasts should declare `sonner` too, at a range that resolves to the same copy.
|
|
176
|
+
|
|
177
|
+
## Consumer setup — the `@` contract and Tailwind
|
|
178
|
+
|
|
179
|
+
`web-panel` emits `@/components/ui/*` and `@/lib/utils` verbatim; the app's bundler resolves `@` to
|
|
180
|
+
its own shadcn copy. Vendor every primitive the package imports: `alert`, `button`, `card`, `input`,
|
|
181
|
+
`label`, `navigation-menu`, `progress` (plus `separator` if you use it), and add
|
|
182
|
+
`@radix-ui/react-navigation-menu` alongside the other Radix peers.
|
|
183
|
+
|
|
184
|
+
Then point Tailwind at the built package. Its oxide scanner reads the CSS root plus `@source`
|
|
185
|
+
directives only, and excludes `node_modules` — so classes that exist **only** inside `web-panel`
|
|
186
|
+
components (the whole navigation shell and footer) never reach the stylesheet, and the app renders
|
|
187
|
+
an unstyled menu. In the app's Tailwind entry:
|
|
188
|
+
|
|
189
|
+
```css
|
|
190
|
+
@import "tailwindcss";
|
|
191
|
+
|
|
192
|
+
@source "../../../node_modules/@owlmeans/web-panel/build";
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Adjust the relative depth to your own layout; the target is the installed package's `build`.
|
|
196
|
+
|
|
44
197
|
## Depends On
|
|
45
198
|
|
|
46
199
|
- `@owlmeans/web-client`, `@owlmeans/client-panel`, `@owlmeans/client-i18n`, `@owlmeans/web-router`
|
|
47
200
|
- Peers (app-provided): `react`, `react-dom`, `react-hook-form`, `tailwindcss`, `tailwind-merge`,
|
|
48
201
|
`clsx`, `class-variance-authority`, `lucide-react`, `ajv`, and the `@radix-ui/react-*` primitives
|
|
49
|
-
(`label`, `progress`, `separator`, `slot`). No MUI, no react-router.
|
|
202
|
+
(`label`, `navigation-menu`, `progress`, `separator`, `slot`). No MUI, no react-router.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
3
|
+
declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
4
|
+
viewport?: boolean;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): React.JSX.Element;
|
|
7
|
+
declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): React.JSX.Element;
|
|
8
|
+
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): React.JSX.Element;
|
|
10
|
+
declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): React.JSX.Element;
|
|
11
|
+
declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): React.JSX.Element;
|
|
12
|
+
declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): React.JSX.Element;
|
|
13
|
+
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): React.JSX.Element;
|
|
14
|
+
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
|
|
15
|
+
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../../src/@/components/ui/navigation-menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAA;AAM1E,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,QAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,GAAG;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,qBAeA;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,qBAW3D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,qBAQ3D;AAED,QAAA,MAAM,0BAA0B,oFAE/B,CAAA;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,qBAc9D;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,qBAY9D;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,QAAQ,CAAC,qBAiB/D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,qBAW3D;AAED,iBAAS,uBAAuB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,SAAS,CAAC,qBAahE;AAED,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC3B,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
function NavigationMenu({ className, children, viewport = true, ...props }) {
|
|
7
|
+
return (_jsxs(NavigationMenuPrimitive.Root, { "data-slot": "navigation-menu", "data-viewport": viewport, className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className), ...props, children: [children, viewport && _jsx(NavigationMenuViewport, {})] }));
|
|
8
|
+
}
|
|
9
|
+
function NavigationMenuList({ className, ...props }) {
|
|
10
|
+
return (_jsx(NavigationMenuPrimitive.List, { "data-slot": "navigation-menu-list", className: cn("group flex flex-1 list-none items-center justify-center gap-1", className), ...props }));
|
|
11
|
+
}
|
|
12
|
+
function NavigationMenuItem({ className, ...props }) {
|
|
13
|
+
return (_jsx(NavigationMenuPrimitive.Item, { "data-slot": "navigation-menu-item", className: cn("relative", className), ...props }));
|
|
14
|
+
}
|
|
15
|
+
const navigationMenuTriggerStyle = cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
|
|
16
|
+
function NavigationMenuTrigger({ className, children, ...props }) {
|
|
17
|
+
return (_jsxs(NavigationMenuPrimitive.Trigger, { "data-slot": "navigation-menu-trigger", className: cn(navigationMenuTriggerStyle(), "group", className), ...props, children: [children, " ", _jsx(ChevronDownIcon, { className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180", "aria-hidden": "true" })] }));
|
|
18
|
+
}
|
|
19
|
+
function NavigationMenuContent({ className, ...props }) {
|
|
20
|
+
return (_jsx(NavigationMenuPrimitive.Content, { "data-slot": "navigation-menu-content", className: cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", className), ...props }));
|
|
21
|
+
}
|
|
22
|
+
function NavigationMenuViewport({ className, ...props }) {
|
|
23
|
+
return (_jsx("div", { className: cn("absolute top-full left-0 isolate z-50 flex justify-center"), children: _jsx(NavigationMenuPrimitive.Viewport, { "data-slot": "navigation-menu-viewport", className: cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", className), ...props }) }));
|
|
24
|
+
}
|
|
25
|
+
function NavigationMenuLink({ className, ...props }) {
|
|
26
|
+
return (_jsx(NavigationMenuPrimitive.Link, { "data-slot": "navigation-menu-link", className: cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", className), ...props }));
|
|
27
|
+
}
|
|
28
|
+
function NavigationMenuIndicator({ className, ...props }) {
|
|
29
|
+
return (_jsx(NavigationMenuPrimitive.Indicator, { "data-slot": "navigation-menu-indicator", className: cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", className), ...props, children: _jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" }) }));
|
|
30
|
+
}
|
|
31
|
+
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
|
|
32
|
+
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","sourceRoot":"","sources":["../../../../src/@/components/ui/navigation-menu.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EAGT;IACC,OAAO,CACL,MAAC,uBAAuB,CAAC,IAAI,iBACjB,iBAAiB,mBACZ,QAAQ,EACvB,SAAS,EAAE,EAAE,CACX,kFAAkF,EAClF,SAAS,CACV,KACG,KAAK,aAER,QAAQ,EACR,QAAQ,IAAI,KAAC,sBAAsB,KAAG,IACV,CAChC,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACkD;IAC1D,OAAO,CACL,KAAC,uBAAuB,CAAC,IAAI,iBACjB,sBAAsB,EAChC,SAAS,EAAE,EAAE,CACX,+DAA+D,EAC/D,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACkD;IAC1D,OAAO,CACL,KAAC,uBAAuB,CAAC,IAAI,iBACjB,sBAAsB,EAChC,SAAS,EAAE,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,KAChC,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,MAAM,0BAA0B,GAAG,GAAG,CACpC,8fAA8f,CAC/f,CAAA;AAED,SAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACqD;IAC7D,OAAO,CACL,MAAC,uBAAuB,CAAC,OAAO,iBACpB,yBAAyB,EACnC,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,KAC3D,KAAK,aAER,QAAQ,EAAE,GAAG,EACd,KAAC,eAAe,IACd,SAAS,EAAC,2FAA2F,iBACzF,MAAM,GAClB,IAC8B,CACnC,CAAA;AACH,CAAC;AAED,SAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,GAAG,KAAK,EACqD;IAC7D,OAAO,CACL,KAAC,uBAAuB,CAAC,OAAO,iBACpB,yBAAyB,EACnC,SAAS,EAAE,EAAE,CACX,kWAAkW,EAClW,2hCAA2hC,EAC3hC,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACsD;IAC9D,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX,2DAA2D,CAC5D,YAED,KAAC,uBAAuB,CAAC,QAAQ,iBACrB,0BAA0B,EACpC,SAAS,EAAE,EAAE,CACX,oVAAoV,EACpV,SAAS,CACV,KACG,KAAK,GACT,GACE,CACP,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACkD;IAC1D,OAAO,CACL,KAAC,uBAAuB,CAAC,IAAI,iBACjB,sBAAsB,EAChC,SAAS,EAAE,EAAE,CACX,udAAud,EACvd,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACuD;IAC/D,OAAO,CACL,KAAC,uBAAuB,CAAC,SAAS,iBACtB,2BAA2B,EACrC,SAAS,EAAE,EAAE,CACX,8LAA8L,EAC9L,SAAS,CACV,KACG,KAAK,YAET,cAAK,SAAS,EAAC,wEAAwE,GAAG,GACxD,CACrC,CAAA;AACH,CAAC;AAED,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC3B,CAAA"}
|
|
@@ -22,7 +22,7 @@ export const Ed22519BasicAuthUIPlugin = ({ type, stage, control }) => {
|
|
|
22
22
|
};
|
|
23
23
|
const createSubmit = (context, control) => async (data) => {
|
|
24
24
|
const token = await control.authenticate({
|
|
25
|
-
|
|
25
|
+
entitySlug: data.entityId,
|
|
26
26
|
userId: data.address,
|
|
27
27
|
credential: data.privateKey
|
|
28
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-ed25519.js","sourceRoot":"","sources":["../../../src/auth/plugins/basic-ed25519.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,kCAAkC,IAAI,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAClG,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAA2B,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC3F,MAAM,OAAO,GAAG,UAAU,EAAE,CAAA;IAC5B,MAAM,MAAM,GAAG,WAAW,CAAC,YAAY,CAAC,OAAgC,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IAE3F,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,mBAAmB,CAAC,YAAY;gBACnC,OAAO,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,GAAG,CAC9C,IAAI,CAAC,EAAE,CAAC,KAAC,SAAS,IAAY,IAAI,EAAE,IAAI,EAAE,KAAK,UAAvB,IAAI,CAAsB,CACnD,CAAA;YACH;gBACE,OAAO,KAAC,QAAQ,KAAG,CAAA;QACvB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,OAAO,KAAC,IAAI,IAAC,QAAQ,QAAC,IAAI,EAAC,eAAe,EAAC,UAAU,EAAE,YAAY,CAAC,IAAI,EACtE,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAClD,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,YACpC,KAAC,OAAO,KAAG,GACN,CAAA;AACT,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,OAAmB,EAAE,OAA8B,EAAE,EAAE,CAAC,KAAK,EAAE,IAAc,EAAE,EAAE;IACrG,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC;QACvC,
|
|
1
|
+
{"version":3,"file":"basic-ed25519.js","sourceRoot":"","sources":["../../../src/auth/plugins/basic-ed25519.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,kCAAkC,IAAI,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAClG,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAA2B,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC3F,MAAM,OAAO,GAAG,UAAU,EAAE,CAAA;IAC5B,MAAM,MAAM,GAAG,WAAW,CAAC,YAAY,CAAC,OAAgC,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IAE3F,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,mBAAmB,CAAC,YAAY;gBACnC,OAAO,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,GAAG,CAC9C,IAAI,CAAC,EAAE,CAAC,KAAC,SAAS,IAAY,IAAI,EAAE,IAAI,EAAE,KAAK,UAAvB,IAAI,CAAsB,CACnD,CAAA;YACH;gBACE,OAAO,KAAC,QAAQ,KAAG,CAAA;QACvB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,OAAO,KAAC,IAAI,IAAC,QAAQ,QAAC,IAAI,EAAC,eAAe,EAAC,UAAU,EAAE,YAAY,CAAC,IAAI,EACtE,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAClD,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,YACpC,KAAC,OAAO,KAAG,GACN,CAAA;AACT,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,OAAmB,EAAE,OAA8B,EAAE,EAAE,CAAC,KAAK,EAAE,IAAc,EAAE,EAAE;IACrG,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC;QACvC,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,OAAO;QACpB,UAAU,EAAE,IAAI,CAAC,UAAU;KAC5B,CAAC,CAAA;IAEF,IAAI,KAAK,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;QACvB,OAAM;IACR,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,OAAO,CAAC,MAAM,CAAwC,UAAU,CAAC;SAClF,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;IAEzB,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAA;IACrE,oEAAoE;IACpE,6CAA6C;IAC7C,+FAA+F;IAC/F,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,EAAE,GAAG,CAAC,CAAA;AACnD,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { FooterProps } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The standard footer — a row of links plus whatever the app adds as children.
|
|
5
|
+
*
|
|
6
|
+
* Labels are resolved HERE and handed to `Link` as children: `Link`'s own default label
|
|
7
|
+
* looks up `modules.<alias>` with no fallback, so an app without i18n would print the raw
|
|
8
|
+
* key. Resolving first means a literal label, a translation, or a humanized alias — never
|
|
9
|
+
* a key.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Footer: FC<FooterProps>;
|
|
12
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/components/footer/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAqBlC,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { defaultNavTranslate, resolveNavLabel } from '@owlmeans/client-panel';
|
|
3
|
+
import { cn } from '@/lib/utils';
|
|
4
|
+
import { Link } from '../link.js';
|
|
5
|
+
/**
|
|
6
|
+
* The standard footer — a row of links plus whatever the app adds as children.
|
|
7
|
+
*
|
|
8
|
+
* Labels are resolved HERE and handed to `Link` as children: `Link`'s own default label
|
|
9
|
+
* looks up `modules.<alias>` with no fallback, so an app without i18n would print the raw
|
|
10
|
+
* key. Resolving first means a literal label, a translation, or a humanized alias — never
|
|
11
|
+
* a key.
|
|
12
|
+
*/
|
|
13
|
+
export const Footer = ({ links, translate = defaultNavTranslate, children, className, style, containerClassName }) => {
|
|
14
|
+
if ((links == null || links.length < 1) && children == null) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return _jsx("footer", { className: cn('border-t py-6', className), style: style, children: _jsxs("div", { className: cn('flex flex-wrap items-center gap-4 text-sm px-4', containerClassName), children: [links?.map((link, idx) => {
|
|
18
|
+
const label = resolveNavLabel(translate, link.label, `modules.${link.alias ?? link.href ?? ''}`, link.alias ?? link.href);
|
|
19
|
+
return link.href != null
|
|
20
|
+
? _jsx(Link, { src: link.href, open: link.open, children: label }, `${link.href}:${idx}`)
|
|
21
|
+
: _jsx(Link, { module: link.alias, open: link.open, children: label }, `${link.alias}:${idx}`);
|
|
22
|
+
}), children] }) });
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/components/footer/component.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAIjC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAoB,CAAC,EACtC,KAAK,EAAE,SAAS,GAAG,mBAAmB,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,kBAAkB,EACvF,EAAE,EAAE;IACH,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QAC5D,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,iBAAQ,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,YACpE,eAAK,SAAS,EAAE,EAAE,CAAC,gDAAgD,EAAE,kBAAkB,CAAC,aACrF,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;oBACxB,MAAM,KAAK,GAAG,eAAe,CAC3B,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAC3F,CAAA;oBAED,OAAO,IAAI,CAAC,IAAI,IAAI,IAAI;wBACtB,CAAC,CAAC,KAAC,IAAI,IAA6B,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,YAAG,KAAK,IAA9D,GAAG,IAAI,CAAC,IAAI,IAAI,GAAG,EAAE,CAAiD;wBACnF,CAAC,CAAC,KAAC,IAAI,IAA8B,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,YAAG,KAAK,IAAnE,GAAG,IAAI,CAAC,KAAK,IAAI,GAAG,EAAE,CAAqD,CAAA;gBAC5F,CAAC,CAAC,EACD,QAAQ,IACL,GACC,CAAA;AACX,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/footer/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAA;AAE/B,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/footer/index.ts"],"names":[],"mappings":"AAEA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { NavTranslate, PanelNavLink } from '@owlmeans/client-panel';
|
|
3
|
+
import type { StyledProps } from '../types.js';
|
|
4
|
+
export interface FooterProps extends PropsWithChildren<StyledProps> {
|
|
5
|
+
links?: PanelNavLink[];
|
|
6
|
+
/** The shell's horizontal rhythm, so the footer row lines up with the header and the content. */
|
|
7
|
+
containerClassName?: string;
|
|
8
|
+
/** See {@link NavTranslate} — omitted, literal labels and humanized aliases are used. */
|
|
9
|
+
translate?: NavTranslate;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,WAAW,WAAY,SAAQ,iBAAiB,CAAC,WAAW,CAAC;IACjE,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;IACtB,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,yFAAyF;IACzF,SAAS,CAAC,EAAE,YAAY,CAAA;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/footer/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type * from './types.js';
|
|
2
2
|
export * from './panel-app/index.js';
|
|
3
3
|
export * from './layout/index.js';
|
|
4
|
+
export * from './nav/index.js';
|
|
5
|
+
export * from './footer/index.js';
|
|
6
|
+
export * from './login/index.js';
|
|
4
7
|
export * from './form/index.js';
|
|
5
8
|
export * from './form/text/index.js';
|
|
6
9
|
export * from './form/button/index.js';
|
|
@@ -11,4 +14,5 @@ export * from './text.js';
|
|
|
11
14
|
export * from './link.js';
|
|
12
15
|
export * from './helper.js';
|
|
13
16
|
export * from './status.js';
|
|
17
|
+
export * from './toaster.js';
|
|
14
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAA;AAE/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAA;AAE/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AAEnC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from './panel-app/index.js';
|
|
2
2
|
export * from './layout/index.js';
|
|
3
|
+
export * from './nav/index.js';
|
|
4
|
+
export * from './footer/index.js';
|
|
5
|
+
export * from './login/index.js';
|
|
3
6
|
export * from './form/index.js';
|
|
4
7
|
export * from './form/text/index.js';
|
|
5
8
|
export * from './form/button/index.js';
|
|
@@ -10,4 +13,5 @@ export * from './text.js';
|
|
|
10
13
|
export * from './link.js';
|
|
11
14
|
export * from './helper.js';
|
|
12
15
|
export * from './status.js';
|
|
16
|
+
export * from './toaster.js';
|
|
13
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AAEnC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { LoginScreenProps } from '@owlmeans/client-auth/login';
|
|
3
|
+
import type { BasicConfig, BasicContext } from '@owlmeans/context';
|
|
4
|
+
export interface LoginScreenSetup extends Omit<LoginScreenProps, 'translate'> {
|
|
5
|
+
/** The one thing an application is expected to supply. */
|
|
6
|
+
Logo?: ComponentType<{
|
|
7
|
+
className?: string;
|
|
8
|
+
}> | ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Give this context the shadcn sign-in screen, with the application's own logo and copy on it.
|
|
12
|
+
*
|
|
13
|
+
* Registered on the login SERVICE rather than imported by a dispatcher, because a relying party
|
|
14
|
+
* (`web-oidc-rp`, `mui-oidc-rp`) must never depend on a UI family — that edge would make every
|
|
15
|
+
* relying party pick one, and there are two. The dispatcher asks `login().screen()` and falls back
|
|
16
|
+
* to the plain screen `@owlmeans/client-auth` ships, so an app that never calls this still gets a
|
|
17
|
+
* chooser rather than an auto-redirect.
|
|
18
|
+
*
|
|
19
|
+
* Idempotent: called by `makeContext` with defaults, and again by the app with its own logo.
|
|
20
|
+
*/
|
|
21
|
+
export declare const appendLoginScreen: <C extends BasicConfig, T extends BasicContext<C>>(ctx: T, setup?: LoginScreenSetup) => T;
|
|
22
|
+
//# sourceMappingURL=append.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../../../src/components/login/append.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGlE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC;IAC3E,0DAA0D;IAC1D,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAA;CACzD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,OAC3E,CAAC,UAAU,gBAAgB,KAC/B,CASF,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ensureLoginService } from '@owlmeans/client-auth/login';
|
|
2
|
+
import { LocalizedLoginScreen } from './screen.js';
|
|
3
|
+
/**
|
|
4
|
+
* Give this context the shadcn sign-in screen, with the application's own logo and copy on it.
|
|
5
|
+
*
|
|
6
|
+
* Registered on the login SERVICE rather than imported by a dispatcher, because a relying party
|
|
7
|
+
* (`web-oidc-rp`, `mui-oidc-rp`) must never depend on a UI family — that edge would make every
|
|
8
|
+
* relying party pick one, and there are two. The dispatcher asks `login().screen()` and falls back
|
|
9
|
+
* to the plain screen `@owlmeans/client-auth` ships, so an app that never calls this still gets a
|
|
10
|
+
* chooser rather than an auto-redirect.
|
|
11
|
+
*
|
|
12
|
+
* Idempotent: called by `makeContext` with defaults, and again by the app with its own logo.
|
|
13
|
+
*/
|
|
14
|
+
export const appendLoginScreen = (ctx, setup) => {
|
|
15
|
+
const service = ensureLoginService(ctx);
|
|
16
|
+
service.registerScreen(setup == null || Object.keys(setup).length < 1
|
|
17
|
+
? LocalizedLoginScreen
|
|
18
|
+
: props => LocalizedLoginScreen({ ...setup, ...props }));
|
|
19
|
+
return ctx;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=append.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"append.js","sourceRoot":"","sources":["../../../src/components/login/append.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAGhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAOlD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,GAAM,EAAE,KAAwB,EAC7B,EAAE;IACL,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAA;IACvC,OAAO,CAAC,cAAc,CACpB,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC;QAC5C,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAC1D,CAAA;IAED,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { LoginCreditModel } from '@owlmeans/client-panel/auth';
|
|
3
|
+
export interface LoginCreditProps {
|
|
4
|
+
model: LoginCreditModel;
|
|
5
|
+
translate: (key: string, defaultValue: string) => string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The line at the bottom of a sign-in screen.
|
|
10
|
+
*
|
|
11
|
+
* Two halves, and each may stand alone: the platform credit, and who the application belongs to.
|
|
12
|
+
* A generated application shows both — "Powered by OwlMeans" beside its own product and
|
|
13
|
+
* organization — and an application whose owner has paid to drop the credit shows only the second.
|
|
14
|
+
* Rendering nothing at all is also correct, for an app that is neither.
|
|
15
|
+
*/
|
|
16
|
+
export declare const LoginCredit: FC<LoginCreditProps>;
|
|
17
|
+
//# sourceMappingURL=credit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../src/components/login/credit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,gBAAgB,CAAA;IACvB,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,CAAA;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAe5C,CAAA"}
|