@gostudent/shared-ui-library 4.1.1 → 4.2.0-DT-17190.2
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/{LineChartImpl-68Q8JDIp.js → LineChartImpl-DkLaivNz.js} +1 -1
- package/dist/{index-Bxh3qRM7.js → index-CmuZUjR8.js} +4357 -3779
- package/dist/index.js +93 -85
- package/dist/src/components/Card/Card.d.ts +9 -1
- package/dist/src/components/Card/Card.d.ts.map +1 -1
- package/dist/src/components/Disclosure/Disclosure.d.ts +35 -2
- package/dist/src/components/Disclosure/Disclosure.d.ts.map +1 -1
- package/dist/src/components/Disclosure/index.d.ts +1 -1
- package/dist/src/components/Disclosure/index.d.ts.map +1 -1
- package/dist/src/components/InputSelect/InputSelect.d.ts.map +1 -1
- package/dist/src/components/Menu/Menu.d.ts +29 -0
- package/dist/src/components/Menu/Menu.d.ts.map +1 -0
- package/dist/src/components/Menu/index.d.ts +3 -0
- package/dist/src/components/Menu/index.d.ts.map +1 -0
- package/dist/src/components/MobileSubmenu/MobileSubmenu.d.ts +42 -0
- package/dist/src/components/MobileSubmenu/MobileSubmenu.d.ts.map +1 -0
- package/dist/src/components/MobileSubmenu/index.d.ts +3 -0
- package/dist/src/components/MobileSubmenu/index.d.ts.map +1 -0
- package/dist/src/components/Radio/Radio.d.ts +5 -0
- package/dist/src/components/Radio/Radio.d.ts.map +1 -0
- package/dist/src/components/Radio/index.d.ts +3 -0
- package/dist/src/components/Radio/index.d.ts.map +1 -0
- package/dist/src/components/Submenu/Submenu.d.ts +19 -0
- package/dist/src/components/Submenu/Submenu.d.ts.map +1 -0
- package/dist/src/components/Submenu/index.d.ts +3 -0
- package/dist/src/components/Submenu/index.d.ts.map +1 -0
- package/dist/src/components/Tabs/TabList.d.ts +3 -1
- package/dist/src/components/Tabs/TabList.d.ts.map +1 -1
- package/dist/src/compositions/HistoryLessonCard/HistoryLessonCard.d.ts.map +1 -1
- package/dist/src/compositions/TopNavigation/NavItem.d.ts +9 -2
- package/dist/src/compositions/TopNavigation/NavItem.d.ts.map +1 -1
- package/dist/src/compositions/TopNavigation/TopNavigation.d.ts +39 -2
- package/dist/src/compositions/TopNavigation/TopNavigation.d.ts.map +1 -1
- package/dist/src/compositions/TopNavigation/index.d.ts +1 -1
- package/dist/src/compositions/TopNavigation/index.d.ts.map +1 -1
- package/dist/src/icons/LockIcon.d.ts +8 -0
- package/dist/src/icons/LockIcon.d.ts.map +1 -0
- package/dist/src/icons/UserIcon.d.ts +8 -0
- package/dist/src/icons/UserIcon.d.ts.map +1 -0
- package/dist/src/icons/index.d.ts +4 -0
- package/dist/src/icons/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +12 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { A as o, a as n, b as e, c
|
|
1
|
+
import { A as o, a as n, b as e, c, d as t, B as r, g as I, h as i, C as l, i as d, j as u, k as C, l as S, m as T, n as p, o as b, p as L, q as g, r as h, t as k, u as v, v as D, D as f, w as M, x as B, y as E, z as m, E as G, F as O, G as P, H as R, I as w, J as y, K as A, L as F, M as H, N, O as x, P as U, Q as _, R as K, S as W, T as j, U as q, V as J, W as Z, X as z, Y as Q, Z as V, _ as X, $ as Y, a0 as $, a1 as aa, a2 as sa, a3 as oa, a4 as na, a5 as ea, a6 as ca, a7 as ta, a8 as ra, a9 as Ia, aa as ia, ab as la, ac as da, ad as ua, ae as Ca, af as Sa, ag as Ta, ah as pa, ai as ba, aj as La, ak as ga, al as ha, am as ka, an as va, ao as Da, ap as fa, aq as Ma, ar as Ba, as as Ea, at as ma, au as Ga, av as Oa, aw as Pa, ax as Ra, ay as wa, az as ya, aA as Aa, aB as Fa, aC as Ha, aD as Na, aE as xa, aF as Ua, aG as _a, aH as Ka, aI as Wa, aJ as ja, aK as qa, aL as Ja, aM as Za, aN as za, aO as Qa, aP as Va, aQ as Xa, aR as Ya, aS as $a, aT as as, aU as ss, aV as os, aW as ns, aX as es, a6 as cs, aY as ts, aZ as rs, a_ as Is, a$ as is, b0 as ls, b1 as ds, b2 as us, b3 as Cs } from "./index-CmuZUjR8.js";
|
|
2
2
|
export {
|
|
3
3
|
o as AgainIcon,
|
|
4
4
|
n as ArrowLeftIcon,
|
|
5
5
|
e as ArrowRightIcon,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
c as Avatar,
|
|
7
|
+
t as AvatarGroup,
|
|
8
8
|
r as BookIcon,
|
|
9
9
|
I as BookStarIcon,
|
|
10
10
|
i as Button,
|
|
11
11
|
l as CakeIcon,
|
|
12
12
|
d as Calendar,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
u as CalendarSheet,
|
|
14
|
+
C as CalendarTrigger,
|
|
15
15
|
S as CancelFilledIcon,
|
|
16
16
|
T as Card,
|
|
17
17
|
p as CenterIcon,
|
|
18
|
-
|
|
18
|
+
b as Checkbox,
|
|
19
19
|
L as ChevronDownIcon,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
g as ChevronLeftIcon,
|
|
21
|
+
h as ChevronRightIcon,
|
|
22
|
+
k as ClockIcon,
|
|
23
|
+
v as CloseIcon,
|
|
24
|
+
D as ContractIcon,
|
|
25
25
|
f as DashboardIcon,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
M as DataList,
|
|
27
|
+
B as DecreaseIcon,
|
|
28
|
+
E as DeleteIcon,
|
|
29
|
+
m as Disclosure,
|
|
30
|
+
G as Divider,
|
|
31
|
+
O as Drawer,
|
|
32
|
+
P as DropdownMenu,
|
|
33
|
+
R as DropdownMenuItem,
|
|
34
|
+
w as EditIcon,
|
|
35
|
+
y as EditSquareIcon,
|
|
36
|
+
A as EnvelopeIcon,
|
|
37
|
+
F as ErrorFilledIcon,
|
|
38
|
+
H as EventBusyIcon,
|
|
39
|
+
N as EventNoteIcon,
|
|
40
40
|
x as GlobeIcon,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
U as GradeCard,
|
|
42
|
+
_ as GradeHistoryChart,
|
|
43
|
+
K as GradeIcon,
|
|
44
|
+
W as GraduationCapIcon,
|
|
45
45
|
j as Grid,
|
|
46
46
|
q as GroupIcon,
|
|
47
47
|
J as HistoryIcon,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
Z as HistoryLessonCard,
|
|
49
|
+
z as HourglassIcon,
|
|
50
|
+
Q as ICON_SIZES,
|
|
51
|
+
V as IconButton,
|
|
52
|
+
X as IncreaseIcon,
|
|
53
53
|
Y as InfoFilledIcon,
|
|
54
54
|
$ as InfoIcon,
|
|
55
55
|
aa as InlineNotification,
|
|
@@ -57,59 +57,67 @@ export {
|
|
|
57
57
|
oa as InputSelect,
|
|
58
58
|
na as InputText,
|
|
59
59
|
ea as KebabIcon,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
ca as LessonCard,
|
|
61
|
+
ta as LessonCardSkeleton,
|
|
62
62
|
ra as LessonStatusTag,
|
|
63
63
|
Ia as LineChart,
|
|
64
64
|
ia as LocationCenterIcon,
|
|
65
65
|
la as LocationIcon,
|
|
66
|
-
da as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Sa as
|
|
70
|
-
Ta as
|
|
71
|
-
pa as
|
|
72
|
-
|
|
73
|
-
La as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
fa as
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
xa as
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
ja as
|
|
100
|
-
qa as
|
|
101
|
-
Ja as
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Ya as
|
|
108
|
-
$a as
|
|
109
|
-
as as
|
|
110
|
-
ss as
|
|
111
|
-
os as
|
|
112
|
-
ns as
|
|
113
|
-
es as
|
|
114
|
-
|
|
66
|
+
da as LockIcon,
|
|
67
|
+
ua as LogoutIcon,
|
|
68
|
+
Ca as Menu,
|
|
69
|
+
Sa as MenuHeader,
|
|
70
|
+
Ta as MenuIcon,
|
|
71
|
+
pa as MenuItem,
|
|
72
|
+
ba as MetadataItem,
|
|
73
|
+
La as MobileSubmenu,
|
|
74
|
+
ga as Modal,
|
|
75
|
+
ha as MoreIcon,
|
|
76
|
+
ka as OfflineCenterIcon,
|
|
77
|
+
va as OfflineIcon,
|
|
78
|
+
Da as OnlineIcon,
|
|
79
|
+
fa as PaperIcon,
|
|
80
|
+
Ma as PendingFilledIcon,
|
|
81
|
+
Ba as PhoneIcon,
|
|
82
|
+
Ea as PlanetIcon,
|
|
83
|
+
ma as PlusIcon,
|
|
84
|
+
Ga as Radio,
|
|
85
|
+
Oa as RefreshIcon,
|
|
86
|
+
Pa as RoleTag,
|
|
87
|
+
Ra as RoomIcon,
|
|
88
|
+
wa as SUBJECT_COLOR_TOKENS,
|
|
89
|
+
ya as ScoreIndicator,
|
|
90
|
+
Aa as SearchIcon,
|
|
91
|
+
Fa as SelectionControl,
|
|
92
|
+
Ha as Skeleton,
|
|
93
|
+
Na as StarsIcon,
|
|
94
|
+
xa as Stepper,
|
|
95
|
+
Ua as StudentCard,
|
|
96
|
+
_a as StudentDetails,
|
|
97
|
+
Ka as StudentLessonCard,
|
|
98
|
+
Wa as StudentLessonCardSkeleton,
|
|
99
|
+
ja as SubjectIcon,
|
|
100
|
+
qa as Submenu,
|
|
101
|
+
Ja as Tab,
|
|
102
|
+
Za as TabList,
|
|
103
|
+
za as TabPanel,
|
|
104
|
+
Qa as Tabs,
|
|
105
|
+
Va as Tag,
|
|
106
|
+
Xa as TagIcon,
|
|
107
|
+
Ya as TickFilledIcon,
|
|
108
|
+
$a as TickIcon,
|
|
109
|
+
as as ToastProvider,
|
|
110
|
+
ss as Tooltip,
|
|
111
|
+
os as TopBanner,
|
|
112
|
+
ns as TopNavigation,
|
|
113
|
+
es as TutorDetails,
|
|
114
|
+
cs as TutorLessonCard,
|
|
115
|
+
ts as Typography,
|
|
116
|
+
rs as UploadIcon,
|
|
117
|
+
Is as UserIcon,
|
|
118
|
+
is as WarningFilledIcon,
|
|
119
|
+
ls as WarningOutlinedIcon,
|
|
120
|
+
ds as isSkBrand,
|
|
121
|
+
us as resolveBrand,
|
|
122
|
+
Cs as useToast
|
|
115
123
|
};
|
|
@@ -2,12 +2,20 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
4
4
|
export type CardRadius = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type CardBackground = 'default' | 'subtle' | 'branded' | 'blue' | 'lightSteel';
|
|
6
|
+
export type CardPaddingOverride = string | readonly [mobile: string, desktop: string];
|
|
5
7
|
export interface CardProps {
|
|
6
8
|
children: React.ReactNode;
|
|
7
9
|
padding?: CardPadding;
|
|
10
|
+
/**
|
|
11
|
+
* Overrides the `padding` prop with an explicit CSS padding value (e.g. "20px" or "12px 24px").
|
|
12
|
+
* Pass a `[mobile, desktop]` tuple to use different values below/above the tablet breakpoint.
|
|
13
|
+
*/
|
|
14
|
+
paddingOverride?: CardPaddingOverride;
|
|
8
15
|
radius?: CardRadius;
|
|
16
|
+
background?: CardBackground;
|
|
9
17
|
bordered?: boolean;
|
|
10
18
|
className?: string;
|
|
11
19
|
}
|
|
12
|
-
export declare function Card({ children, padding, radius, bordered, className, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function Card({ children, padding, paddingOverride, radius, background, bordered, className, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
13
21
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,CAAC;AACtF,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAEtF,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuBD,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,OAAc,EACd,eAAe,EACf,MAAa,EACb,UAAsB,EACtB,QAAe,EACf,SAAS,GACV,EAAE,SAAS,2CAyBX"}
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ResponsiveIconSize } from '../../icons/types';
|
|
2
3
|
|
|
3
|
-
export type DisclosureVariant = 'negative' | 'link';
|
|
4
|
+
export type DisclosureVariant = 'negative' | 'link' | 'neutral';
|
|
5
|
+
export interface DisclosureRootProps {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
onToggle?: (open: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function DisclosureRoot({ children, defaultOpen, open: controlledOpen, onToggle }: DisclosureRootProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
interface DisclosureTextTriggerProps {
|
|
13
|
+
iconOnly?: false;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
variant?: DisclosureVariant;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
interface DisclosureIconTriggerProps {
|
|
19
|
+
iconOnly: true;
|
|
20
|
+
'aria-label': string;
|
|
21
|
+
chevronSize?: ResponsiveIconSize;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export type DisclosureTriggerProps = DisclosureTextTriggerProps | DisclosureIconTriggerProps;
|
|
25
|
+
declare function DisclosureTrigger(props: DisclosureTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export interface DisclosureContentProps {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
declare function DisclosureContent({ children, className }: DisclosureContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
31
|
export interface DisclosureProps {
|
|
5
32
|
trigger: React.ReactNode;
|
|
6
33
|
children: React.ReactNode;
|
|
@@ -12,5 +39,11 @@ export interface DisclosureProps {
|
|
|
12
39
|
/** Applied to the inner trigger `<button>` (e.g. to control its width/alignment) — `className` only reaches the root wrapper. */
|
|
13
40
|
triggerClassName?: string;
|
|
14
41
|
}
|
|
15
|
-
export declare function Disclosure({ trigger, children, defaultOpen, open
|
|
42
|
+
export declare function Disclosure({ trigger, children, defaultOpen, open, onToggle, variant, className, triggerClassName, }: DisclosureProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare namespace Disclosure {
|
|
44
|
+
var Root: typeof DisclosureRoot;
|
|
45
|
+
var Trigger: typeof DisclosureTrigger;
|
|
46
|
+
var Content: typeof DisclosureContent;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
16
49
|
//# sourceMappingURL=Disclosure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../../../src/components/Disclosure/Disclosure.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../../../src/components/Disclosure/Disclosure.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAE1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAI5D,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAkBhE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAED,iBAAS,cAAc,CAAC,EAAE,QAAQ,EAAE,WAAmB,EAAE,IAAI,EAAE,cAAc,EAA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e,UAAU"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Disclosure } from './Disclosure';
|
|
2
|
-
export type { DisclosureProps, DisclosureVariant } from './Disclosure';
|
|
2
|
+
export type { DisclosureProps, DisclosureVariant, DisclosureRootProps, DisclosureTriggerProps, DisclosureContentProps, } from './Disclosure';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Disclosure/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Disclosure/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/InputSelect/InputSelect.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qHAAqH;IACrH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kFAAkF;IAClF,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,2BAA2B,CAAC;CAChD;AAcD,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAuB,EACvB,IAAI,EACJ,QAAgB,EAChB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,KAAK,EACL,UAAU,EACV,SAAgB,EAChB,IAAW,EACX,gBAAyB,GAC1B,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"InputSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/InputSelect/InputSelect.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qHAAqH;IACrH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kFAAkF;IAClF,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,2BAA2B,CAAC;CAChD;AAcD,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAuB,EACvB,IAAI,EACJ,QAAgB,EAChB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,KAAK,EACL,UAAU,EACV,SAAgB,EAChB,IAAW,EACX,gBAAyB,GAC1B,EAAE,gBAAgB,2CAiQlB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface MenuProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
'aria-label'?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface MenuHeaderProps {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface MenuItemProps {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
trailing?: React.ReactNode;
|
|
16
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
17
|
+
href?: string;
|
|
18
|
+
target?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
'data-testid'?: string;
|
|
22
|
+
/** Set by Submenu when this MenuItem is used as a flyout trigger row. */
|
|
23
|
+
'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
|
|
24
|
+
'aria-expanded'?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function Menu({ children, className, 'aria-label': ariaLabel }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function MenuHeader({ children, className }: MenuHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function MenuItem({ children, icon, trailing, onClick, href, target, disabled, className, 'data-testid': dataTestId, 'aria-haspopup': ariaHaspopup, 'aria-expanded': ariaExpanded, }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAG3E,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAeD,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,SAAS,2CAqE/E;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,eAAe,2CAElE;AAED,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAgB,EAChB,SAAS,EACT,aAAa,EAAE,UAAU,EACzB,eAAe,EAAE,YAAY,EAC7B,eAAe,EAAE,YAAY,GAC9B,EAAE,aAAa,2CA4Df"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACpD,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface MobileSubmenuRootProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function MobileSubmenuRoot({ children, className }: MobileSubmenuRootProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export interface MobileSubmenuHeaderProps {
|
|
9
|
+
title: string;
|
|
10
|
+
onBack: () => void;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
labels?: {
|
|
13
|
+
back?: string;
|
|
14
|
+
close?: string;
|
|
15
|
+
};
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function MobileSubmenuHeader({ title, onBack, onClose, labels, className }: MobileSubmenuHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export interface MobileSubmenuBodyProps {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function MobileSubmenuBody({ children, className }: MobileSubmenuBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export interface MobileSubmenuProps {
|
|
25
|
+
title: string;
|
|
26
|
+
onBack: () => void;
|
|
27
|
+
onClose: () => void;
|
|
28
|
+
labels?: {
|
|
29
|
+
back?: string;
|
|
30
|
+
close?: string;
|
|
31
|
+
};
|
|
32
|
+
className?: string;
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare function MobileSubmenu({ title, onBack, onClose, labels, className, children }: MobileSubmenuProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare namespace MobileSubmenu {
|
|
37
|
+
var Root: typeof MobileSubmenuRoot;
|
|
38
|
+
var Header: typeof MobileSubmenuHeader;
|
|
39
|
+
var Body: typeof MobileSubmenuBody;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=MobileSubmenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileSubmenu.d.ts","sourceRoot":"","sources":["../../../../src/components/MobileSubmenu/MobileSubmenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8D,MAAM,OAAO,CAAC;AAmBnF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,sBAAsB,2CAOzE;AAED,MAAM,W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AClB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
2
|
+
label?: React.ReactNode;
|
|
3
|
+
}
|
|
4
|
+
export declare const Radio: import('react').ForwardRefExoticComponent<RadioProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpG,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,KAAK,yGA0BjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SubmenuOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SubmenuProps {
|
|
8
|
+
label: React.ReactNode;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
options: SubmenuOption[];
|
|
11
|
+
value?: string;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
placement?: 'left' | 'right';
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function Submenu({ label, icon, options, value, onChange, placement, 'aria-label': ariaLabel, disabled, className, }: SubmenuProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=Submenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Submenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Submenu/Submenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAMrE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAkB,EAClB,YAAY,EAAE,SAAS,EACvB,QAAgB,EAChB,SAAS,GACV,EAAE,YAAY,2CAsJd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Submenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -7,6 +7,8 @@ export interface TabListProps {
|
|
|
7
7
|
showBorder?: boolean;
|
|
8
8
|
/** Tabs stretch to fill the full container width, with centred text. `'mobile'` applies only below the tablet breakpoint. */
|
|
9
9
|
fullWidth?: boolean | 'mobile';
|
|
10
|
+
/** Tabs keep their natural (fit-content) width but the group is centred within the container. `'mobile'` applies only below the tablet breakpoint. Ignored when combined with `fullWidth`. */
|
|
11
|
+
centered?: boolean | 'mobile';
|
|
10
12
|
}
|
|
11
|
-
export declare function TabList({ children, className, showBorder, fullWidth }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function TabList({ children, className, showBorder, fullWidth, centered }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
//# sourceMappingURL=TabList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAIlE,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6HAA6H;IAC7H,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAIlE,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6HAA6H;IAC7H,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC/B,8LAA8L;IAC9L,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC/B;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAiB,EAAE,SAAiB,EAAE,QAAgB,EAAE,EAAE,YAAY,2CA0FpH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HistoryLessonCard.d.ts","sourceRoot":"","sources":["../../../../src/compositions/HistoryLessonCard/HistoryLessonCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HistoryLessonCard.d.ts","sourceRoot":"","sources":["../../../../src/compositions/HistoryLessonCard/HistoryLessonCard.tsx"],"names":[],"mappings":"AAoBA,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,SAAS,CAAC;AACzD,MAAM,MAAM,6BAA6B,GAAG,SAAS,GAAG,QAAQ,GAAG,oBAAoB,CAAC;AAExF,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA0BD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,qBAAqB,CAAC;IAEhC,yGAAyG;IACzG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IAEjD,4GAA4G;IAC5G,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,oFAAoF;IACpF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE9B,yGAAyG;IACzG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,MAAM,EACN,SAAS,GACV,EAAE,sBAAsB,2CA6JxB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { IconSize } from '../../icons/types';
|
|
2
3
|
|
|
3
4
|
interface NavItemProps {
|
|
4
|
-
icon
|
|
5
|
+
icon?: React.ComponentType<{
|
|
5
6
|
size?: IconSize;
|
|
6
7
|
}>;
|
|
7
8
|
label: string;
|
|
@@ -11,7 +12,13 @@ interface NavItemProps {
|
|
|
11
12
|
href?: string;
|
|
12
13
|
/** Target for the anchor tag, e.g. "_blank". Only used when `href` is set. */
|
|
13
14
|
target?: string;
|
|
15
|
+
/** Optional trailing content (e.g. a chevron for rows that open a submenu). */
|
|
16
|
+
trailing?: React.ReactNode;
|
|
17
|
+
'aria-label'?: string;
|
|
18
|
+
'data-testid'?: string;
|
|
19
|
+
/** Ref to the underlying button (non-`href` items only), e.g. to restore focus. */
|
|
20
|
+
buttonRef?: React.Ref<HTMLButtonElement>;
|
|
14
21
|
}
|
|
15
|
-
export declare function NavItem({ icon: Icon, label, isSelected, onClick, href, target }: NavItemProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function NavItem({ icon: Icon, label, isSelected, onClick, href, target, trailing, 'aria-label': ariaLabel, 'data-testid': dataTestId, buttonRef, }: NavItemProps): import("react/jsx-runtime").JSX.Element;
|
|
16
23
|
export {};
|
|
17
24
|
//# sourceMappingURL=NavItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/compositions/TopNavigation/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,UAAU,YAAY;IACpB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/compositions/TopNavigation/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mFAAmF;IACnF,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC1C;AAED,wBAAgB,OAAO,CAAC,EACtB,IAAI,EAAE,IAAI,EACV,KAAK,EACL,UAAkB,EAClB,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,UAAU,EACzB,SAAS,GACV,EAAE,YAAY,2CA0Cd"}
|
|
@@ -23,6 +23,29 @@ export interface TopNavigationNavItem {
|
|
|
23
23
|
/** Target for the anchor tag, e.g. "_blank". Only used when `href` is set. */
|
|
24
24
|
target?: string;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Custom row added to the account menu (e.g. "My profile").
|
|
28
|
+
*
|
|
29
|
+
* Rendered in the desktop user dropdown (between the linked accounts and the language row) and in the
|
|
30
|
+
* mobile drawer's page list (after `navItems`), so consumers don't need to duplicate it into `navItems`.
|
|
31
|
+
*/
|
|
32
|
+
export interface TopNavigationMenuItem {
|
|
33
|
+
icon?: React.ComponentType<{
|
|
34
|
+
size?: IconSize;
|
|
35
|
+
}>;
|
|
36
|
+
label: string;
|
|
37
|
+
/** Called on click. The dropdown / drawer closes automatically afterwards. */
|
|
38
|
+
onClick?: () => void;
|
|
39
|
+
/** When set, renders the item as an anchor tag navigating to this URL. */
|
|
40
|
+
href?: string;
|
|
41
|
+
/** Target for the anchor tag, e.g. "_blank". Only used when `href` is set. */
|
|
42
|
+
target?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Test id applied to the desktop dropdown row. The mobile drawer row (always mounted) receives
|
|
45
|
+
* `${data-testid}-drawer` so the two never collide.
|
|
46
|
+
*/
|
|
47
|
+
'data-testid'?: string;
|
|
48
|
+
}
|
|
26
49
|
export interface TopNavigationLanguageOption {
|
|
27
50
|
value: string;
|
|
28
51
|
label: string;
|
|
@@ -34,6 +57,10 @@ export interface TopNavigationLabels {
|
|
|
34
57
|
logout?: string;
|
|
35
58
|
navigation?: string;
|
|
36
59
|
linkedAccounts?: string;
|
|
60
|
+
/** Accessible name of the desktop user dropdown menu. */
|
|
61
|
+
accountMenu?: string;
|
|
62
|
+
/** Back button in the mobile language submenu. */
|
|
63
|
+
back?: string;
|
|
37
64
|
}
|
|
38
65
|
export interface LinkedAccount {
|
|
39
66
|
id: string;
|
|
@@ -67,7 +94,17 @@ export interface TopNavigationProps {
|
|
|
67
94
|
onSwitchAccount?: (account: LinkedAccount) => void;
|
|
68
95
|
/** Nav items shown in the mobile drawer. */
|
|
69
96
|
navItems?: TopNavigationNavItem[];
|
|
70
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Custom account-menu rows (e.g. "My profile"). On desktop they render as `MenuItem`s in the user
|
|
99
|
+
* dropdown after the linked accounts and before the language row. On mobile they render in the
|
|
100
|
+
* drawer's page list, after `navItems` (never in the footer next to language/logout), so they
|
|
101
|
+
* don't need to be duplicated into `navItems`. Clicking one closes the dropdown / drawer.
|
|
102
|
+
*/
|
|
103
|
+
menuItems?: TopNavigationMenuItem[];
|
|
104
|
+
/**
|
|
105
|
+
* Language options. Desktop: a `Submenu` flyout row in the user dropdown. Mobile: a drawer footer
|
|
106
|
+
* row that opens a `MobileSubmenu` with one `Radio` per language.
|
|
107
|
+
*/
|
|
71
108
|
languages?: TopNavigationLanguageOption[];
|
|
72
109
|
selectedLanguage?: string;
|
|
73
110
|
onLanguageChange?: (value: string) => void;
|
|
@@ -78,5 +115,5 @@ export interface TopNavigationProps {
|
|
|
78
115
|
labels?: TopNavigationLabels;
|
|
79
116
|
className?: string;
|
|
80
117
|
}
|
|
81
|
-
export declare function TopNavigation({ logo, mobileLogo, tabs, userName, userRole, userRoleLabel, userAvatarSrc, onLogout, onProfileDropdownOpen, linkedAccounts, onSwitchAccount, navItems, languages, selectedLanguage, onLanguageChange, logoOverflowsBar, drawerWidth, labels, className, }: TopNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
export declare function TopNavigation({ logo, mobileLogo, tabs, userName, userRole, userRoleLabel, userAvatarSrc, onLogout, onProfileDropdownOpen, linkedAccounts, onSwitchAccount, navItems, menuItems, languages, selectedLanguage, onLanguageChange, logoOverflowsBar, drawerWidth, labels, className, }: TopNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
82
119
|
//# sourceMappingURL=TopNavigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavigation.d.ts","sourceRoot":"","sources":["../../../../src/compositions/TopNavigation/TopNavigation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"TopNavigation.d.ts","sourceRoot":"","sources":["../../../../src/compositions/TopNavigation/TopNavigation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAU9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAIlD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAC;IA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AQ,EACR,QAAQ,EACR,aAAa,EACb,aAAa,EACb,QAAQ,EACR,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,QAAQ,EACR,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,gBAAwB,EACxB,WAAqB,EACrB,MAAM,EACN,SAAS,GACV,EAAE,kBAAkB,2CA4VpB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { TopNavigation } from './TopNavigation';
|
|
2
|
-
export type { TopNavigationProps, TopNavigationLabels, TopNavigationTab, TopNavigationNavItem, TopNavigationLanguageOption, LinkedAccount } from './TopNavigation';
|
|
2
|
+
export type { TopNavigationProps, TopNavigationLabels, TopNavigationTab, TopNavigationNavItem, TopNavigationMenuItem, TopNavigationLanguageOption, LinkedAccount } from './TopNavigation';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|