@tonyarbor/components 0.7.0 → 0.7.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/dist/AvatarLogoLockup.d.mts +41 -0
- package/dist/AvatarLogoLockup.d.ts +41 -0
- package/dist/AvatarLogoLockup.js +344 -0
- package/dist/AvatarLogoLockup.js.map +1 -0
- package/dist/AvatarLogoLockup.mjs +9 -0
- package/dist/AvatarLogoLockup.mjs.map +1 -0
- package/dist/TopNavBar.d.mts +103 -0
- package/dist/TopNavBar.d.ts +103 -0
- package/dist/TopNavBar.js +994 -0
- package/dist/TopNavBar.js.map +1 -0
- package/dist/TopNavBar.mjs +13 -0
- package/dist/TopNavBar.mjs.map +1 -0
- package/dist/TopNavItem.d.mts +33 -0
- package/dist/TopNavItem.d.ts +33 -0
- package/dist/TopNavItem.js +108 -0
- package/dist/TopNavItem.js.map +1 -0
- package/dist/TopNavItem.mjs +7 -0
- package/dist/TopNavItem.mjs.map +1 -0
- package/dist/chunk-AVYGOALO.mjs +72 -0
- package/dist/chunk-AVYGOALO.mjs.map +1 -0
- package/dist/chunk-HG2ORLLW.mjs +116 -0
- package/dist/chunk-HG2ORLLW.mjs.map +1 -0
- package/dist/chunk-YUXQQX7M.mjs +182 -0
- package/dist/chunk-YUXQQX7M.mjs.map +1 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +346 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/package.json +16 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface NavItem {
|
|
4
|
+
/**
|
|
5
|
+
* Unique identifier for the nav item
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Display label for the nav item
|
|
10
|
+
*/
|
|
11
|
+
label: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether this nav item is currently active
|
|
14
|
+
*/
|
|
15
|
+
active?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface TopNavBarProps {
|
|
18
|
+
/**
|
|
19
|
+
* School logo image source URL
|
|
20
|
+
*/
|
|
21
|
+
schoolLogoSrc?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Alt text for school logo
|
|
24
|
+
*/
|
|
25
|
+
schoolLogoAlt?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Click handler for school logo
|
|
28
|
+
*/
|
|
29
|
+
onSchoolLogoClick?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Array of navigation items
|
|
32
|
+
*/
|
|
33
|
+
navItems?: NavItem[];
|
|
34
|
+
/**
|
|
35
|
+
* Callback when a nav item is clicked
|
|
36
|
+
*/
|
|
37
|
+
onNavItemClick?: (item: NavItem) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Search value
|
|
40
|
+
*/
|
|
41
|
+
searchValue?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Search change handler
|
|
44
|
+
*/
|
|
45
|
+
onSearchChange?: (value: string) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Search submit handler
|
|
48
|
+
*/
|
|
49
|
+
onSearchSubmit?: (value: string) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Search clear handler
|
|
52
|
+
*/
|
|
53
|
+
onSearchClear?: () => void;
|
|
54
|
+
/**
|
|
55
|
+
* Action button label (e.g., "Ask Arbor")
|
|
56
|
+
*/
|
|
57
|
+
actionButtonLabel?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Action button click handler
|
|
60
|
+
*/
|
|
61
|
+
onActionButtonClick?: () => void;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to show the action button
|
|
64
|
+
*/
|
|
65
|
+
showActionButton?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* User avatar image source URL
|
|
68
|
+
*/
|
|
69
|
+
avatarSrc?: string;
|
|
70
|
+
/**
|
|
71
|
+
* User avatar initials (fallback when no image)
|
|
72
|
+
*/
|
|
73
|
+
avatarInitials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* User avatar alt text
|
|
76
|
+
*/
|
|
77
|
+
avatarAlt?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Avatar section click handler
|
|
80
|
+
*/
|
|
81
|
+
onAvatarClick?: () => void;
|
|
82
|
+
/**
|
|
83
|
+
* Logo section click handler
|
|
84
|
+
*/
|
|
85
|
+
onLogoClick?: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Custom className
|
|
88
|
+
*/
|
|
89
|
+
className?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Custom style
|
|
92
|
+
*/
|
|
93
|
+
style?: React.CSSProperties;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* TopNavBar component - Arbor Design System
|
|
97
|
+
*
|
|
98
|
+
* A full-width navigation bar fixed to the top of the page.
|
|
99
|
+
* Contains school logo, navigation items, search, action button, and avatar-logo lockup.
|
|
100
|
+
*/
|
|
101
|
+
declare const TopNavBar: React.ForwardRefExoticComponent<TopNavBarProps & React.RefAttributes<HTMLElement>>;
|
|
102
|
+
|
|
103
|
+
export { type NavItem, TopNavBar, type TopNavBarProps };
|