@apliteni/apliteni-ui 0.141.0 → 0.142.1
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/package.json +1 -1
- package/react/dist/index.css +29 -0
- package/react/dist/index.d.ts +21 -18
- package/react/dist/index.js +325 -226
- package/src/components/account-nav.js +2 -9
- package/src/components/dropdown.js +6 -664
- package/src/components/feedback.js +4 -15
- package/src/components/index.js +1 -73
- package/src/components/topbar.js +2 -1
- package/src/logic/account-nav.js +9 -0
- package/src/logic/code.js +75 -0
- package/src/logic/dropdown-placement.js +671 -0
- package/src/logic/feedback.js +16 -0
- package/src/logic/theme.js +5 -0
- package/src/styles/topbar.css +1 -1
|
@@ -6,16 +6,9 @@
|
|
|
6
6
|
// why: docs/components.md#the-page-shell
|
|
7
7
|
import { esc } from './index.js';
|
|
8
8
|
import { avatarInitials } from '../logic/avatar.js';
|
|
9
|
+
import { ACCOUNT_NAV } from '../logic/account-nav.js';
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
// pre-escaped `&` would come out as `&`. `key` means credentials;
|
|
12
|
-
// `plug` means integration. These two are the kit's default, so each is a live
|
|
13
|
-
// link on a consumer's /account page — a screen the kit does not ship belongs
|
|
14
|
-
// in the caller's own nav, not here.
|
|
15
|
-
export const ACCOUNT_NAV = [
|
|
16
|
-
{ id: 'prefs', icon: 'gear', label: 'Preferences' },
|
|
17
|
-
{ id: 'access', icon: 'key', label: 'Access & agents' },
|
|
18
|
-
];
|
|
11
|
+
export { ACCOUNT_NAV };
|
|
19
12
|
|
|
20
13
|
// topbar()'s account menu speaks [id, icon, label, href?, target?] tuples, and
|
|
21
14
|
// it interpolates every field raw — the label, the href and the target alike.
|