@psnext/design-system 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +3 -3
- package/dist/Header.cjs +90 -115
- package/dist/Header.cjs.map +1 -1
- package/dist/Header.js +86 -117
- package/dist/Header.js.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index10.d.cts +6 -6
- package/dist/index10.d.cts.map +1 -1
- package/dist/index10.d.ts +2 -2
- package/dist/index11.d.cts +3 -3
- package/dist/index11.d.cts.map +1 -1
- package/dist/index11.d.ts +3 -3
- package/dist/index12.d.cts +12 -12
- package/dist/index12.d.ts +11 -11
- package/dist/index13.d.cts +6 -6
- package/dist/index13.d.ts +6 -6
- package/dist/index14.d.cts +5 -5
- package/dist/index14.d.ts +5 -5
- package/dist/index15.d.cts +3 -3
- package/dist/index15.d.ts +3 -3
- package/dist/index16.d.cts +2 -2
- package/dist/index16.d.ts +2 -2
- package/dist/index17.d.cts +4 -4
- package/dist/index17.d.ts +4 -4
- package/dist/index18.d.cts +11 -11
- package/dist/index18.d.cts.map +1 -1
- package/dist/index18.d.ts +11 -11
- package/dist/index19.d.cts +10 -10
- package/dist/index19.d.ts +10 -10
- package/dist/index2.d.cts +8 -8
- package/dist/index2.d.ts +8 -8
- package/dist/index20.d.cts +16 -16
- package/dist/index20.d.ts +16 -16
- package/dist/index21.d.cts +4 -4
- package/dist/index21.d.ts +4 -4
- package/dist/index22.d.cts +11 -11
- package/dist/index22.d.ts +11 -11
- package/dist/index23.d.cts +16 -16
- package/dist/index23.d.ts +16 -16
- package/dist/index24.d.cts +10 -10
- package/dist/index24.d.cts.map +1 -1
- package/dist/index24.d.ts +10 -10
- package/dist/index25.d.cts +2 -2
- package/dist/index25.d.ts +2 -2
- package/dist/index26.d.cts +13 -13
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +13 -13
- package/dist/index27.d.cts +7 -7
- package/dist/index27.d.cts.map +1 -1
- package/dist/index27.d.ts +7 -7
- package/dist/index28.d.cts +5 -5
- package/dist/index28.d.cts.map +1 -1
- package/dist/index28.d.ts +4 -4
- package/dist/index29.d.cts +4 -4
- package/dist/index29.d.cts.map +1 -1
- package/dist/index29.d.ts +4 -4
- package/dist/index3.d.cts +13 -13
- package/dist/index3.d.ts +13 -13
- package/dist/index30.d.cts +6 -6
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +5 -5
- package/dist/index31.d.cts +4 -4
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +5 -5
- package/dist/index32.d.cts +5 -5
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +5 -5
- package/dist/index33.d.cts +10 -10
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +10 -10
- package/dist/index34.d.cts +5 -5
- package/dist/index34.d.cts.map +1 -1
- package/dist/index34.d.ts +5 -5
- package/dist/index35.d.cts +16 -16
- package/dist/index35.d.cts.map +1 -1
- package/dist/index35.d.ts +16 -16
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +3 -3
- package/dist/index36.d.cts.map +1 -1
- package/dist/index36.d.ts +3 -3
- package/dist/index37.d.cts +4 -4
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +4 -4
- package/dist/index38.d.cts +2 -2
- package/dist/index38.d.cts.map +1 -1
- package/dist/index38.d.ts +2 -2
- package/dist/index39.d.cts +17 -17
- package/dist/index39.d.ts +17 -17
- package/dist/index4.d.cts +2 -2
- package/dist/index4.d.cts.map +1 -1
- package/dist/index4.d.ts +2 -2
- package/dist/index40.d.cts +5 -5
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +5 -5
- package/dist/index41.d.cts +11 -11
- package/dist/index41.d.cts.map +1 -1
- package/dist/index41.d.ts +11 -11
- package/dist/index41.d.ts.map +1 -1
- package/dist/index42.d.cts +8 -8
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +8 -8
- package/dist/index42.d.ts.map +1 -1
- package/dist/index43.d.cts +9 -9
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +9 -9
- package/dist/index43.d.ts.map +1 -1
- package/dist/index45.d.cts +8 -8
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +8 -8
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +2 -2
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +2 -2
- package/dist/index47.d.cts +4 -4
- package/dist/index47.d.ts +4 -4
- package/dist/index48.d.cts +4 -4
- package/dist/index48.d.cts.map +1 -1
- package/dist/index48.d.ts +4 -4
- package/dist/index49.d.cts +3 -3
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +3 -3
- package/dist/index5.d.cts +7 -7
- package/dist/index5.d.ts +7 -7
- package/dist/index50.d.cts +11 -11
- package/dist/index50.d.cts.map +1 -1
- package/dist/index50.d.ts +11 -11
- package/dist/index51.d.cts +9 -9
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +9 -9
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +5 -5
- package/dist/index52.d.ts +5 -5
- package/dist/index53.d.cts +27 -27
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +27 -27
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +5 -5
- package/dist/index54.d.cts.map +1 -1
- package/dist/index54.d.ts +5 -5
- package/dist/index55.d.cts +2 -2
- package/dist/index55.d.ts +2 -2
- package/dist/index56.d.cts +2 -2
- package/dist/index56.d.ts +2 -2
- package/dist/index57.d.cts +2 -2
- package/dist/index57.d.cts.map +1 -1
- package/dist/index57.d.ts +2 -2
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +4 -4
- package/dist/index58.d.cts.map +1 -1
- package/dist/index58.d.ts +4 -4
- package/dist/index59.d.cts +9 -9
- package/dist/index59.d.ts +9 -9
- package/dist/index6.d.cts +5 -5
- package/dist/index6.d.ts +5 -5
- package/dist/index6.d.ts.map +1 -1
- package/dist/index60.d.cts +9 -9
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +9 -9
- package/dist/index61.d.cts +7 -7
- package/dist/index61.d.cts.map +1 -1
- package/dist/index61.d.ts +4 -4
- package/dist/index62.d.cts +4 -4
- package/dist/index62.d.cts.map +1 -1
- package/dist/index62.d.ts +4 -4
- package/dist/index63.d.cts +2 -2
- package/dist/index63.d.cts.map +1 -1
- package/dist/index63.d.ts +2 -2
- package/dist/index64.d.cts +5 -5
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +5 -5
- package/dist/index65.d.cts +3 -3
- package/dist/index65.d.ts +3 -3
- package/dist/index66.d.cts +4 -4
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +2 -2
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +2 -2
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +2 -2
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +7 -7
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +4 -4
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +7 -7
- package/dist/index69.d.cts.map +1 -1
- package/dist/index69.d.ts +4 -4
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.ts +8 -8
- package/dist/index71.d.cts +37 -21
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +37 -21
- package/dist/index71.d.ts.map +1 -1
- package/dist/index8.d.cts +4 -4
- package/dist/index8.d.cts.map +1 -1
- package/dist/index8.d.ts +4 -4
- package/dist/index9.d.cts +2 -2
- package/dist/index9.d.cts.map +1 -1
- package/dist/index9.d.ts +2 -2
- package/dist/index9.d.ts.map +1 -1
- package/dist/patterns/DataTable/index.d.cts +3 -3
- package/dist/patterns/DataTable/index.d.cts.map +1 -1
- package/dist/patterns/DataTable/index.d.ts +3 -3
- package/dist/patterns/Footer/index.d.cts +7 -7
- package/dist/patterns/Footer/index.d.cts.map +1 -1
- package/dist/patterns/Footer/index.d.ts +7 -7
- package/dist/patterns/Footer/index.d.ts.map +1 -1
- package/dist/patterns/Header/index.cjs +1 -0
- package/dist/patterns/Header/index.d.cts +2 -2
- package/dist/patterns/Header/index.d.ts +2 -2
- package/dist/patterns/Header/index.js +2 -2
- package/dist/patterns/MediaObject/index.d.cts +12 -12
- package/dist/patterns/MediaObject/index.d.cts.map +1 -1
- package/dist/patterns/MediaObject/index.d.ts +11 -11
- package/dist/patterns/SectionCard/index.d.cts +2 -2
- package/dist/patterns/SectionCard/index.d.cts.map +1 -1
- package/dist/patterns/SectionCard/index.d.ts +2 -2
- package/dist/patterns/SectionCard/index.d.ts.map +1 -1
- package/dist/patterns/SectionHeading/index.d.cts +2 -2
- package/dist/patterns/SectionHeading/index.d.cts.map +1 -1
- package/dist/patterns/SectionHeading/index.d.ts +2 -2
- package/dist/patterns/SectionHeading/index.d.ts.map +1 -1
- package/dist/patterns/index.cjs +1 -0
- package/dist/patterns/index.d.cts +2 -2
- package/dist/patterns/index.d.ts +2 -2
- package/dist/patterns/index.js +2 -2
- package/package.json +1 -1
package/dist/index71.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as ThemeProduct } from "./index63.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime212 from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
@@ -15,7 +15,6 @@ interface ProjectNode {
|
|
|
15
15
|
/** Fully-qualified API endpoints. Built from `apiBaseUrl`; individually overridable. */
|
|
16
16
|
interface HeaderEndpoints {
|
|
17
17
|
token: string;
|
|
18
|
-
me: string;
|
|
19
18
|
logout: string;
|
|
20
19
|
projects: (clientId: string) => string;
|
|
21
20
|
credits: string;
|
|
@@ -28,7 +27,8 @@ interface HeaderProps {
|
|
|
28
27
|
apiBaseUrl: string;
|
|
29
28
|
/**
|
|
30
29
|
* Environment id used to read the session cookie `{environmentId}-sessionId`
|
|
31
|
-
* (a JWT) — the header decodes it
|
|
30
|
+
* (a JWT) — the header decodes it for auth state and user identity
|
|
31
|
+
* (email, client id) without a network call.
|
|
32
32
|
*/
|
|
33
33
|
environmentId: string;
|
|
34
34
|
/** Logo to show. Defaults to the active product from ThemeProvider. */
|
|
@@ -40,7 +40,11 @@ interface HeaderProps {
|
|
|
40
40
|
logoHref?: string;
|
|
41
41
|
/** Show the read-only organisation pill. */
|
|
42
42
|
showOrg?: boolean;
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Show the project picker. A tab with no selection defaults to the user's
|
|
45
|
+
* last explicitly selected project (localStorage `lastSelectedProject`)
|
|
46
|
+
* when it still exists, else the first project in the tree.
|
|
47
|
+
*/
|
|
44
48
|
showProjectDropdown?: boolean;
|
|
45
49
|
/** Show the profile menu (user email + logout). */
|
|
46
50
|
showProfile?: boolean;
|
|
@@ -55,7 +59,7 @@ interface HeaderProps {
|
|
|
55
59
|
* icon is hidden; when set, the icon renders and links here.
|
|
56
60
|
*/
|
|
57
61
|
feedbackUrl?: string;
|
|
58
|
-
/** Active org id from the host session; overrides the
|
|
62
|
+
/** Active org id from the host session; overrides the session JWT's `client_id` claim. */
|
|
59
63
|
clientId?: string;
|
|
60
64
|
/**
|
|
61
65
|
* ESCAPE HATCH — avoid. Inject a pre-resolved access token to skip the header's
|
|
@@ -65,12 +69,14 @@ interface HeaderProps {
|
|
|
65
69
|
* the header to host token lifecycle/refresh and can serve stale auth.
|
|
66
70
|
*/
|
|
67
71
|
_dangerouslyInjectAccessToken?: string;
|
|
68
|
-
/** Called when the user
|
|
72
|
+
/** Called when the active project changes (user pick or automatic default). */
|
|
69
73
|
onProjectChange?: (id: string) => void;
|
|
70
|
-
/** Called when the user closes the selection overlay. */
|
|
71
|
-
onCloseProjectOverlay?: () => void;
|
|
72
74
|
/** Node rendered between the logo and the project picker. */
|
|
73
75
|
logoAddon?: ReactNode;
|
|
76
|
+
/** Node rendered at the start of the right-hand actions cluster (before the feedback icon). */
|
|
77
|
+
actionsStart?: ReactNode;
|
|
78
|
+
/** Node rendered at the end of the right-hand actions cluster (after the profile menu). */
|
|
79
|
+
actionsEnd?: ReactNode;
|
|
74
80
|
className?: string;
|
|
75
81
|
/** Override individual endpoint paths (defaults derive from `apiBaseUrl`). */
|
|
76
82
|
endpoints?: Partial<Omit<HeaderEndpoints, "projects">> & {
|
|
@@ -90,7 +96,7 @@ interface HeaderProps {
|
|
|
90
96
|
declare function HeaderBar({
|
|
91
97
|
className,
|
|
92
98
|
...props
|
|
93
|
-
}: React.ComponentProps<"header">):
|
|
99
|
+
}: React.ComponentProps<"header">): react_jsx_runtime212.JSX.Element;
|
|
94
100
|
/** Product logo linking to its home, with a Suspense-safe fallback. */
|
|
95
101
|
declare function HeaderLogo({
|
|
96
102
|
brand,
|
|
@@ -98,7 +104,7 @@ declare function HeaderLogo({
|
|
|
98
104
|
}: {
|
|
99
105
|
brand: ThemeProduct;
|
|
100
106
|
href?: string;
|
|
101
|
-
}):
|
|
107
|
+
}): react_jsx_runtime212.JSX.Element;
|
|
102
108
|
/** Read-only organisation pill. */
|
|
103
109
|
declare function OrgPill({
|
|
104
110
|
name,
|
|
@@ -106,9 +112,9 @@ declare function OrgPill({
|
|
|
106
112
|
}: {
|
|
107
113
|
name?: string;
|
|
108
114
|
loading?: boolean;
|
|
109
|
-
}):
|
|
115
|
+
}): react_jsx_runtime212.JSX.Element | null;
|
|
110
116
|
/** Light/dark toggle — defers to ThemeProvider. */
|
|
111
|
-
declare function ThemeToggle():
|
|
117
|
+
declare function ThemeToggle(): react_jsx_runtime212.JSX.Element;
|
|
112
118
|
/** Profile menu — avatar trigger with email + logout. */
|
|
113
119
|
declare function ProfileMenu({
|
|
114
120
|
email,
|
|
@@ -116,9 +122,9 @@ declare function ProfileMenu({
|
|
|
116
122
|
}: {
|
|
117
123
|
email?: string;
|
|
118
124
|
onLogout: () => void;
|
|
119
|
-
}):
|
|
125
|
+
}): react_jsx_runtime212.JSX.Element;
|
|
120
126
|
/** Drop-in global header. Must be rendered inside a <ThemeProvider>. */
|
|
121
|
-
declare function Header(props: HeaderProps):
|
|
127
|
+
declare function Header(props: HeaderProps): react_jsx_runtime212.JSX.Element;
|
|
122
128
|
//# sourceMappingURL=Header.d.ts.map
|
|
123
129
|
//#endregion
|
|
124
130
|
//#region src/patterns/Header/ProjectPicker.d.ts
|
|
@@ -143,7 +149,7 @@ declare function ProjectPicker({
|
|
|
143
149
|
searchPlaceholder,
|
|
144
150
|
emptyStateText,
|
|
145
151
|
isLoading
|
|
146
|
-
}: Readonly<ProjectPickerProps>):
|
|
152
|
+
}: Readonly<ProjectPickerProps>): react_jsx_runtime212.JSX.Element;
|
|
147
153
|
//#endregion
|
|
148
154
|
//#region src/patterns/Header/use-global-header.d.ts
|
|
149
155
|
/** Window event other modules can dispatch to show/hide the project dropdown. */
|
|
@@ -166,8 +172,6 @@ interface GlobalHeaderState {
|
|
|
166
172
|
/** Where the credits pill links to (studio-auth `/user/activity`). */
|
|
167
173
|
creditsHref: string;
|
|
168
174
|
projectDropdownVisible: boolean;
|
|
169
|
-
/** True when the dropdown is on, the user is in, but no project is chosen yet. */
|
|
170
|
-
showOverlay: boolean;
|
|
171
175
|
selectProject: (id: string) => void;
|
|
172
176
|
logout: () => void;
|
|
173
177
|
}
|
|
@@ -204,7 +208,7 @@ interface UseHeaderProjectResult {
|
|
|
204
208
|
organizationName: string | undefined;
|
|
205
209
|
/** Set the active project from outside the Header (by id). */
|
|
206
210
|
setProject: (id: string) => void;
|
|
207
|
-
/** Clear
|
|
211
|
+
/** Clear this tab's active project (the header re-defaults on next projects load). */
|
|
208
212
|
clearProject: () => void;
|
|
209
213
|
}
|
|
210
214
|
/**
|
|
@@ -222,6 +226,20 @@ declare function useHeaderCredits(): number | undefined;
|
|
|
222
226
|
declare function getSessionToken(environmentId: string): string | null;
|
|
223
227
|
/** Decode a JWT payload without verifying the signature (display/expiry only). */
|
|
224
228
|
|
|
229
|
+
/** User/session claims carried in the session JWT (the subset the header uses). */
|
|
230
|
+
interface SessionClaims {
|
|
231
|
+
email?: string;
|
|
232
|
+
name?: string;
|
|
233
|
+
userId?: string;
|
|
234
|
+
/** Active organisation id (`client_id` claim). */
|
|
235
|
+
clientId?: string;
|
|
236
|
+
exp?: number;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Decode the user claims from the session cookie's JWT — no network call.
|
|
240
|
+
* Returns null when the cookie is absent or undecodable.
|
|
241
|
+
*/
|
|
242
|
+
declare function getSessionClaims(environmentId: string): SessionClaims | null;
|
|
225
243
|
/** True when a valid, unexpired session cookie exists for the environment. */
|
|
226
244
|
declare function isSessionValid(environmentId: string): boolean;
|
|
227
245
|
//#endregion
|
|
@@ -238,12 +256,10 @@ declare const DEFAULT_LABELS: {
|
|
|
238
256
|
readonly emptyStateText: "No projects found";
|
|
239
257
|
readonly profileMenuLabel: "Profile menu";
|
|
240
258
|
readonly logoutLabel: "Logout";
|
|
241
|
-
readonly overlayTitle: "Select a Project";
|
|
242
|
-
readonly overlayDescription: "Choose a project to get started. You can change it anytime from the header.";
|
|
243
259
|
};
|
|
244
260
|
type Labels = typeof DEFAULT_LABELS;
|
|
245
261
|
//# sourceMappingURL=labels.d.ts.map
|
|
246
262
|
|
|
247
263
|
//#endregion
|
|
248
|
-
export {
|
|
264
|
+
export { Fetcher as C, ProjectNode as E, ThemeToggle as S, HeaderProps as T, Header as _, getSessionClaims as a, OrgPill as b, HeaderSelection as c, useHeaderProject as d, GlobalHeaderState as f, ProjectPicker as g, useGlobalHeader as h, SessionClaims as i, UseHeaderProjectResult as l, ToggleProjectDropdownDetail as m, Labels as n, getSessionToken as o, TOGGLE_PROJECT_DROPDOWN_EVENT as p, buildEndpoints as r, isSessionValid as s, DEFAULT_LABELS as t, useHeaderCredits as u, HeaderBar as v, HeaderEndpoints as w, ProfileMenu as x, HeaderLogo as y };
|
|
249
265
|
//# sourceMappingURL=index71.d.cts.map
|
package/dist/index71.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index71.d.cts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":";;;;;;;UAKiB,WAAA;;;EAAA,QAAA,EAGL,WAHgB,EAAA;EASX;
|
|
1
|
+
{"version":3,"file":"index71.d.cts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":";;;;;;;UAKiB,WAAA;;;EAAA,QAAA,EAGL,WAHgB,EAAA;EASX;EAQL,aAAO,CAAA,EAAA,OAAU;AAG7B;;AAWa,UAtBI,eAAA,CAsBJ;OA4CC,EAAA,MAAA;QAEG,EAAA,MAAA;UAEF,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,GAAA,MAAA;SAIY,EAAA,MAAA;;;AAIf,KAtEA,OAAA,GAsEA,OAtEiB,KAsEjB;AAAO;UAnEF,WAAA;;;ECeR;;;;;EAAiE,aAAA,EAAA,MAAA;EAejE;EAAU,QAAA,CAAA,EDnBN,YCmBM;;;;;EAAwD,QAAA,CAAA,EAAA,MAAA;EASlE;EAAO,OAAA,CAAA,EAAA,OAAA;;;;AAAwD;AAAA;EA6B/D,mBAAW,CAAA,EAAA,OAAA;EAAA;aAAG,CAAA,EAAA,OAAA;;mBAA2D,CAAA,EAAA,OAAA;EAAA;EA4ClE,WAAM,CAAA,EAAA,OAAA;EAAA;WAAQ,CAAA,EAAA,MAAA;;AA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;;;EJXA;EASA,QAAA,EAAA,MAAA,GAAe,SAAA;AAQhC;ACiCmB,UG2EF,sBAAA,CH3EE;mBAAG,EAAA,MAAA;qBAAO,EAAA,MAAA,GAAA,SAAA;kBAAiB,EAAA,MAAA,GAAA,SAAA;;EAA6B,UAAA,EAAA,CAAA,EAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EASlE;EAAO,YAAA,EAAA,GAAA,GAAA,IAAA;;;;AAAwD;AAAA;AAmBpD;AAUA,iBGoDJ,gBAAA,CAAA,CHpDI,EGoDgB,sBHpDhB;;AAAU,iBGgEd,gBAAA,CAAA,CHhEc,EAAA,MAAA,GAAA,SAAA;;;;;iBInFd,eAAA;ALLhB;;AAiBA;AAGiB,UKSA,aAAA,CLTW;EAAA,KAAA,CAAA,EAAA,MAAA;MAWf,CAAA,EAAA,MAAA;QA4CC,CAAA,EAAA,MAAA;;UAIC,CAAA,EAAA,MAAA;KAIY,CAAA,EAAA,MAAA;;;;AAIR;;iBK7CH,gBAAA,yBAAyC;;AJPhD,iBIuBO,cAAA,CJvBE,aAAA,EAAA,MAAA,CAAA,EAAA,OAAA;;;iBKpBF,cAAA,iCAEF,2BACX;;;;cCtBU;;;;;EPII,SAAA,cAAW,EAAA,mBAGL;EAMN,SAAA,gBAAe,EAAA,cAAA;EAQpB,SAAA,WAAO,EAAU,QAAK;AAGlC,CAAA;AAA4B,KOdhB,MAAA,GPcgB,OOdA,cPcA"}
|
package/dist/index71.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as ThemeProduct } from "./index63.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/patterns/Header/types.d.ts
|
|
7
7
|
/** A node in the project hierarchy returned by the projects API. */
|
|
@@ -15,7 +15,6 @@ interface ProjectNode {
|
|
|
15
15
|
/** Fully-qualified API endpoints. Built from `apiBaseUrl`; individually overridable. */
|
|
16
16
|
interface HeaderEndpoints {
|
|
17
17
|
token: string;
|
|
18
|
-
me: string;
|
|
19
18
|
logout: string;
|
|
20
19
|
projects: (clientId: string) => string;
|
|
21
20
|
credits: string;
|
|
@@ -28,7 +27,8 @@ interface HeaderProps {
|
|
|
28
27
|
apiBaseUrl: string;
|
|
29
28
|
/**
|
|
30
29
|
* Environment id used to read the session cookie `{environmentId}-sessionId`
|
|
31
|
-
* (a JWT) — the header decodes it
|
|
30
|
+
* (a JWT) — the header decodes it for auth state and user identity
|
|
31
|
+
* (email, client id) without a network call.
|
|
32
32
|
*/
|
|
33
33
|
environmentId: string;
|
|
34
34
|
/** Logo to show. Defaults to the active product from ThemeProvider. */
|
|
@@ -40,7 +40,11 @@ interface HeaderProps {
|
|
|
40
40
|
logoHref?: string;
|
|
41
41
|
/** Show the read-only organisation pill. */
|
|
42
42
|
showOrg?: boolean;
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Show the project picker. A tab with no selection defaults to the user's
|
|
45
|
+
* last explicitly selected project (localStorage `lastSelectedProject`)
|
|
46
|
+
* when it still exists, else the first project in the tree.
|
|
47
|
+
*/
|
|
44
48
|
showProjectDropdown?: boolean;
|
|
45
49
|
/** Show the profile menu (user email + logout). */
|
|
46
50
|
showProfile?: boolean;
|
|
@@ -55,7 +59,7 @@ interface HeaderProps {
|
|
|
55
59
|
* icon is hidden; when set, the icon renders and links here.
|
|
56
60
|
*/
|
|
57
61
|
feedbackUrl?: string;
|
|
58
|
-
/** Active org id from the host session; overrides the
|
|
62
|
+
/** Active org id from the host session; overrides the session JWT's `client_id` claim. */
|
|
59
63
|
clientId?: string;
|
|
60
64
|
/**
|
|
61
65
|
* ESCAPE HATCH — avoid. Inject a pre-resolved access token to skip the header's
|
|
@@ -65,12 +69,14 @@ interface HeaderProps {
|
|
|
65
69
|
* the header to host token lifecycle/refresh and can serve stale auth.
|
|
66
70
|
*/
|
|
67
71
|
_dangerouslyInjectAccessToken?: string;
|
|
68
|
-
/** Called when the user
|
|
72
|
+
/** Called when the active project changes (user pick or automatic default). */
|
|
69
73
|
onProjectChange?: (id: string) => void;
|
|
70
|
-
/** Called when the user closes the selection overlay. */
|
|
71
|
-
onCloseProjectOverlay?: () => void;
|
|
72
74
|
/** Node rendered between the logo and the project picker. */
|
|
73
75
|
logoAddon?: ReactNode;
|
|
76
|
+
/** Node rendered at the start of the right-hand actions cluster (before the feedback icon). */
|
|
77
|
+
actionsStart?: ReactNode;
|
|
78
|
+
/** Node rendered at the end of the right-hand actions cluster (after the profile menu). */
|
|
79
|
+
actionsEnd?: ReactNode;
|
|
74
80
|
className?: string;
|
|
75
81
|
/** Override individual endpoint paths (defaults derive from `apiBaseUrl`). */
|
|
76
82
|
endpoints?: Partial<Omit<HeaderEndpoints, "projects">> & {
|
|
@@ -90,7 +96,7 @@ interface HeaderProps {
|
|
|
90
96
|
declare function HeaderBar({
|
|
91
97
|
className,
|
|
92
98
|
...props
|
|
93
|
-
}: React.ComponentProps<"header">):
|
|
99
|
+
}: React.ComponentProps<"header">): react_jsx_runtime21.JSX.Element;
|
|
94
100
|
/** Product logo linking to its home, with a Suspense-safe fallback. */
|
|
95
101
|
declare function HeaderLogo({
|
|
96
102
|
brand,
|
|
@@ -98,7 +104,7 @@ declare function HeaderLogo({
|
|
|
98
104
|
}: {
|
|
99
105
|
brand: ThemeProduct;
|
|
100
106
|
href?: string;
|
|
101
|
-
}):
|
|
107
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
102
108
|
/** Read-only organisation pill. */
|
|
103
109
|
declare function OrgPill({
|
|
104
110
|
name,
|
|
@@ -106,9 +112,9 @@ declare function OrgPill({
|
|
|
106
112
|
}: {
|
|
107
113
|
name?: string;
|
|
108
114
|
loading?: boolean;
|
|
109
|
-
}):
|
|
115
|
+
}): react_jsx_runtime21.JSX.Element | null;
|
|
110
116
|
/** Light/dark toggle — defers to ThemeProvider. */
|
|
111
|
-
declare function ThemeToggle():
|
|
117
|
+
declare function ThemeToggle(): react_jsx_runtime21.JSX.Element;
|
|
112
118
|
/** Profile menu — avatar trigger with email + logout. */
|
|
113
119
|
declare function ProfileMenu({
|
|
114
120
|
email,
|
|
@@ -116,9 +122,9 @@ declare function ProfileMenu({
|
|
|
116
122
|
}: {
|
|
117
123
|
email?: string;
|
|
118
124
|
onLogout: () => void;
|
|
119
|
-
}):
|
|
125
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
120
126
|
/** Drop-in global header. Must be rendered inside a <ThemeProvider>. */
|
|
121
|
-
declare function Header(props: HeaderProps):
|
|
127
|
+
declare function Header(props: HeaderProps): react_jsx_runtime21.JSX.Element;
|
|
122
128
|
//# sourceMappingURL=Header.d.ts.map
|
|
123
129
|
//#endregion
|
|
124
130
|
//#region src/patterns/Header/ProjectPicker.d.ts
|
|
@@ -143,7 +149,7 @@ declare function ProjectPicker({
|
|
|
143
149
|
searchPlaceholder,
|
|
144
150
|
emptyStateText,
|
|
145
151
|
isLoading
|
|
146
|
-
}: Readonly<ProjectPickerProps>):
|
|
152
|
+
}: Readonly<ProjectPickerProps>): react_jsx_runtime21.JSX.Element;
|
|
147
153
|
//#endregion
|
|
148
154
|
//#region src/patterns/Header/use-global-header.d.ts
|
|
149
155
|
/** Window event other modules can dispatch to show/hide the project dropdown. */
|
|
@@ -166,8 +172,6 @@ interface GlobalHeaderState {
|
|
|
166
172
|
/** Where the credits pill links to (studio-auth `/user/activity`). */
|
|
167
173
|
creditsHref: string;
|
|
168
174
|
projectDropdownVisible: boolean;
|
|
169
|
-
/** True when the dropdown is on, the user is in, but no project is chosen yet. */
|
|
170
|
-
showOverlay: boolean;
|
|
171
175
|
selectProject: (id: string) => void;
|
|
172
176
|
logout: () => void;
|
|
173
177
|
}
|
|
@@ -204,7 +208,7 @@ interface UseHeaderProjectResult {
|
|
|
204
208
|
organizationName: string | undefined;
|
|
205
209
|
/** Set the active project from outside the Header (by id). */
|
|
206
210
|
setProject: (id: string) => void;
|
|
207
|
-
/** Clear
|
|
211
|
+
/** Clear this tab's active project (the header re-defaults on next projects load). */
|
|
208
212
|
clearProject: () => void;
|
|
209
213
|
}
|
|
210
214
|
/**
|
|
@@ -222,6 +226,20 @@ declare function useHeaderCredits(): number | undefined;
|
|
|
222
226
|
declare function getSessionToken(environmentId: string): string | null;
|
|
223
227
|
/** Decode a JWT payload without verifying the signature (display/expiry only). */
|
|
224
228
|
|
|
229
|
+
/** User/session claims carried in the session JWT (the subset the header uses). */
|
|
230
|
+
interface SessionClaims {
|
|
231
|
+
email?: string;
|
|
232
|
+
name?: string;
|
|
233
|
+
userId?: string;
|
|
234
|
+
/** Active organisation id (`client_id` claim). */
|
|
235
|
+
clientId?: string;
|
|
236
|
+
exp?: number;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Decode the user claims from the session cookie's JWT — no network call.
|
|
240
|
+
* Returns null when the cookie is absent or undecodable.
|
|
241
|
+
*/
|
|
242
|
+
declare function getSessionClaims(environmentId: string): SessionClaims | null;
|
|
225
243
|
/** True when a valid, unexpired session cookie exists for the environment. */
|
|
226
244
|
declare function isSessionValid(environmentId: string): boolean;
|
|
227
245
|
//#endregion
|
|
@@ -238,12 +256,10 @@ declare const DEFAULT_LABELS: {
|
|
|
238
256
|
readonly emptyStateText: "No projects found";
|
|
239
257
|
readonly profileMenuLabel: "Profile menu";
|
|
240
258
|
readonly logoutLabel: "Logout";
|
|
241
|
-
readonly overlayTitle: "Select a Project";
|
|
242
|
-
readonly overlayDescription: "Choose a project to get started. You can change it anytime from the header.";
|
|
243
259
|
};
|
|
244
260
|
type Labels = typeof DEFAULT_LABELS;
|
|
245
261
|
//# sourceMappingURL=labels.d.ts.map
|
|
246
262
|
|
|
247
263
|
//#endregion
|
|
248
|
-
export {
|
|
264
|
+
export { Fetcher as C, ProjectNode as E, ThemeToggle as S, HeaderProps as T, Header as _, getSessionClaims as a, OrgPill as b, HeaderSelection as c, useHeaderProject as d, GlobalHeaderState as f, ProjectPicker as g, useGlobalHeader as h, SessionClaims as i, UseHeaderProjectResult as l, ToggleProjectDropdownDetail as m, Labels as n, getSessionToken as o, TOGGLE_PROJECT_DROPDOWN_EVENT as p, buildEndpoints as r, isSessionValid as s, DEFAULT_LABELS as t, useHeaderCredits as u, HeaderBar as v, HeaderEndpoints as w, ProfileMenu as x, HeaderLogo as y };
|
|
249
265
|
//# sourceMappingURL=index71.d.ts.map
|
package/dist/index71.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index71.d.ts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":";;;;;;;UAKiB,WAAA;;;EAAA,QAAA,EAGL,WAHgB,EAAA;EASX;
|
|
1
|
+
{"version":3,"file":"index71.d.ts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":";;;;;;;UAKiB,WAAA;;;EAAA,QAAA,EAGL,WAHgB,EAAA;EASX;EAQL,aAAO,CAAA,EAAA,OAAU;AAG7B;;AAWa,UAtBI,eAAA,CAsBJ;OA4CC,EAAA,MAAA;QAEG,EAAA,MAAA;UAEF,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,GAAA,MAAA;SAIY,EAAA,MAAA;;;AAIf,KAtEA,OAAA,GAsEA,OAtEiB,KAsEjB;AAAO;UAnEF,WAAA;;;ECeR;;;;;EAAiE,aAAA,EAAA,MAAA;EAejE;EAAU,QAAA,CAAA,EDnBN,YCmBM;;;;;EAAwD,QAAA,CAAA,EAAA,MAAA;EASlE;E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Props } from "class-variance-authority";
|
|
3
3
|
import * as react0 from "react";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Button/Button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "
|
|
9
|
-
size?: "
|
|
8
|
+
variant?: "default" | "ai" | "destructive" | "outline" | "link" | "secondary" | "ghost" | "destructive-ghost" | null | undefined;
|
|
9
|
+
size?: "xs" | "sm" | "default" | "lg" | "icon-xs" | "icon-sm" | "icon" | "xl" | "icon-lg" | "icon-xl" | null | undefined;
|
|
10
10
|
shape?: "default" | "square" | null | undefined;
|
|
11
|
-
} &
|
|
11
|
+
} & class_variance_authority_types22.ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonProps = ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
13
13
|
/** Render as the child element (Radix `Slot`) instead of a native `<button>`. */
|
|
14
14
|
asChild?: boolean;
|
package/dist/index8.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.d.cts","names":[],"sources":["../src/primitives/Button/Button.tsx"],"mappings":";;;;;;cAUM,sBA4CL;;;;AApDuD,CAAA,GAoDvD
|
|
1
|
+
{"version":3,"file":"index8.d.cts","names":[],"sources":["../src/primitives/Button/Button.tsx"],"mappings":";;;;;;cAUM,sBA4CL;;;;AApDuD,CAAA,GAoDvD,gCAAA,CAAA,SAAA,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;KAEI,WAAA,GAAc,cAAH,CAAA,QAAA,CAAA,GACd,YADc,CAAA,OACM,cADN,CAAA,GAAA;EAAA;SAAG,CAAA,EAAA,OAAA;;SACjB,CAAA,EAAA,OAAA;AAAY,CAAA;AAAA;;;;;cAYR,MAAM,EAAA,MAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,WAAA,EAAA,KAAA,CAAA,GAAA,MAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,CAAA"}
|
package/dist/index8.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types25 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Button/Button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "
|
|
9
|
-
size?: "
|
|
8
|
+
variant?: "default" | "outline" | "destructive" | "ai" | "secondary" | "ghost" | "link" | "destructive-ghost" | null | undefined;
|
|
9
|
+
size?: "sm" | "lg" | "xl" | "xs" | "default" | "icon-xs" | "icon-sm" | "icon" | "icon-lg" | "icon-xl" | null | undefined;
|
|
10
10
|
shape?: "default" | "square" | null | undefined;
|
|
11
|
-
} &
|
|
11
|
+
} & class_variance_authority_types25.ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonProps = ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
13
13
|
/** Render as the child element (Radix `Slot`) instead of a native `<button>`. */
|
|
14
14
|
asChild?: boolean;
|
package/dist/index9.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime250 from "react/jsx-runtime";
|
|
2
2
|
import { Separator } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ declare function Separator$1({
|
|
|
14
14
|
}: React.ComponentProps<typeof Separator.Root> & {
|
|
15
15
|
/** Margin applied around the rule along its axis: `none`, `regular`, or `spacious`. */
|
|
16
16
|
spacing?: SeparatorSpacing;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime250.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SeparatorSpacing as n, Separator$1 as t };
|
|
20
20
|
//# sourceMappingURL=index9.d.cts.map
|
package/dist/index9.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.d.cts","names":[],"sources":["../src/primitives/Separator/Separator.tsx"],"mappings":";;;;;KAKK,gBAAA;;iBASI,WAAA;;;;;;GAMN,KAAA,CAAM,sBAAsB,SAAA,CAAmB;EAf7C;EASI,OAAA,CAAA,EAQG,gBARM;CAAA,CAAA,EASjB,
|
|
1
|
+
{"version":3,"file":"index9.d.cts","names":[],"sources":["../src/primitives/Separator/Separator.tsx"],"mappings":";;;;;KAKK,gBAAA;;iBASI,WAAA;;;;;;GAMN,KAAA,CAAM,sBAAsB,SAAA,CAAmB;EAf7C;EASI,OAAA,CAAA,EAQG,gBARM;CAAA,CAAA,EASjB,oBAAA,CAAA,GAAA,CAAA,OATiB"}
|
package/dist/index9.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Separator } from "radix-ui";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime108 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/Separator/Separator.d.ts
|
|
6
6
|
type SeparatorSpacing = "none" | "regular" | "spacious";
|
|
@@ -14,7 +14,7 @@ declare function Separator$1({
|
|
|
14
14
|
}: React.ComponentProps<typeof Separator.Root> & {
|
|
15
15
|
/** Margin applied around the rule along its axis: `none`, `regular`, or `spacious`. */
|
|
16
16
|
spacing?: SeparatorSpacing;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime108.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SeparatorSpacing as n, Separator$1 as t };
|
|
20
20
|
//# sourceMappingURL=index9.d.ts.map
|
package/dist/index9.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.d.ts","names":[],"sources":["../src/primitives/Separator/Separator.tsx"],"mappings":";;;;;KAKK,gBAAA;;iBASI,WAAA;;;;;;GAMN,KAAA,CAAM,sBAAsB,SAAA,CAAmB;EAf7C;EASI,OAAA,CAAA,EAQG,gBARM;CAAA,CAAA,EASjB,
|
|
1
|
+
{"version":3,"file":"index9.d.ts","names":[],"sources":["../src/primitives/Separator/Separator.tsx"],"mappings":";;;;;KAKK,gBAAA;;iBASI,WAAA;;;;;;GAMN,KAAA,CAAM,sBAAsB,SAAA,CAAmB;EAf7C;EASI,OAAA,CAAA,EAQG,gBARM;CAAA,CAAA,EASjB,oBAAA,CAAA,GAAA,CAAA,OATiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
2
2
|
import { Column, ColumnDef } from "@tanstack/react-table";
|
|
3
3
|
|
|
4
4
|
//#region src/patterns/DataTable/DataTable.d.ts
|
|
@@ -24,7 +24,7 @@ declare function DataTable<TData, TValue>({
|
|
|
24
24
|
striped,
|
|
25
25
|
enablePagination,
|
|
26
26
|
pageSize
|
|
27
|
-
}: DataTableProps<TData, TValue>):
|
|
27
|
+
}: DataTableProps<TData, TValue>): react_jsx_runtime32.JSX.Element;
|
|
28
28
|
/** Sortable column header — drop into a column's `header` to get click-to-sort. */
|
|
29
29
|
declare function DataTableColumnHeader<TData, TValue>({
|
|
30
30
|
column,
|
|
@@ -37,7 +37,7 @@ declare function DataTableColumnHeader<TData, TValue>({
|
|
|
37
37
|
title: string;
|
|
38
38
|
/** Optional class applied to the header button (or span when unsortable). */
|
|
39
39
|
className?: string;
|
|
40
|
-
}):
|
|
40
|
+
}): react_jsx_runtime32.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { type ColumnDef, DataTable, DataTableColumnHeader };
|
|
43
43
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/patterns/DataTable/DataTable.tsx"],"mappings":";;;;KAoBK;;WAEM,UAAU,OAAO;EAFvB;EAAc,IAAA,EAIX,KAJW,EAAA;;SAES,CAAA,EAAA,OAAA;;kBAEpB,CAAA,EAAA,OAAA;EAAK;EAaJ,QAAA,CAAA,EAAA,MAAS;CAAA;;;;;iBAAT,SAKP,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,OAAA;EAAA,IAAA;EAAA,OAAA;EAAA,gBAAA;EAAA;AAAA,CAAA,EACC,cADD,CACgB,KADhB,EACuB,MADvB,CAAA,CAAA,EAC8B,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/patterns/DataTable/DataTable.tsx"],"mappings":";;;;KAoBK;;WAEM,UAAU,OAAO;EAFvB;EAAc,IAAA,EAIX,KAJW,EAAA;;SAES,CAAA,EAAA,OAAA;;kBAEpB,CAAA,EAAA,OAAA;EAAK;EAaJ,QAAA,CAAA,EAAA,MAAS;CAAA;;;;;iBAAT,SAKP,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,OAAA;EAAA,IAAA;EAAA,OAAA;EAAA,gBAAA;EAAA;AAAA,CAAA,EACC,cADD,CACgB,KADhB,EACuB,MADvB,CAAA,CAAA,EAC8B,mBAAA,CAAA,GAAA,CAAA,OAD9B;;iBAmGO,qBAlGgB,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,MAAA;EAAA,KAAA;EAAA;CAAA,EAAA;;QAAO,EAwGtB,MAxGsB,CAwGf,KAxGe,EAwGR,MAxGQ,CAAA;EAAA;EAkGvB,KAAA,EAAA,MAAA;EAAqB;WAC5B,CAAA,EAAA,MAAA;IAUD,mBAAA,CAAA,GAAA,CAAA,OATC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
2
2
|
import { Column, ColumnDef } from "@tanstack/react-table";
|
|
3
3
|
|
|
4
4
|
//#region src/patterns/DataTable/DataTable.d.ts
|
|
@@ -24,7 +24,7 @@ declare function DataTable<TData, TValue>({
|
|
|
24
24
|
striped,
|
|
25
25
|
enablePagination,
|
|
26
26
|
pageSize
|
|
27
|
-
}: DataTableProps<TData, TValue>):
|
|
27
|
+
}: DataTableProps<TData, TValue>): react_jsx_runtime29.JSX.Element;
|
|
28
28
|
/** Sortable column header — drop into a column's `header` to get click-to-sort. */
|
|
29
29
|
declare function DataTableColumnHeader<TData, TValue>({
|
|
30
30
|
column,
|
|
@@ -37,7 +37,7 @@ declare function DataTableColumnHeader<TData, TValue>({
|
|
|
37
37
|
title: string;
|
|
38
38
|
/** Optional class applied to the header button (or span when unsortable). */
|
|
39
39
|
className?: string;
|
|
40
|
-
}):
|
|
40
|
+
}): react_jsx_runtime29.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { type ColumnDef, DataTable, DataTableColumnHeader };
|
|
43
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime196 from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/patterns/Footer/Footer.d.ts
|
|
@@ -18,22 +18,22 @@ declare function Footer({
|
|
|
18
18
|
bordered?: boolean;
|
|
19
19
|
/** Surface fill. `glass` is a translucent, blurred panel over the page background. */
|
|
20
20
|
background?: keyof typeof footerBackgrounds;
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime196.JSX.Element;
|
|
22
22
|
/** Leading region — left-aligned on md+ (e.g. an app version). */
|
|
23
23
|
declare function FooterStart({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<"div">):
|
|
26
|
+
}: React.ComponentProps<"div">): react_jsx_runtime196.JSX.Element;
|
|
27
27
|
/** Centre region — always centred (e.g. a "Powered by" lockup). */
|
|
28
28
|
declare function FooterCenter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<"div">):
|
|
31
|
+
}: React.ComponentProps<"div">): react_jsx_runtime196.JSX.Element;
|
|
32
32
|
/** Trailing region — right-aligned on md+ (e.g. legal links). Wraps on small screens. */
|
|
33
33
|
declare function FooterEnd({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"div">):
|
|
36
|
+
}: React.ComponentProps<"div">): react_jsx_runtime196.JSX.Element;
|
|
37
37
|
/** "Powered by" lockup — the label plus a slot for the brand mark (a <Logo />). */
|
|
38
38
|
declare function FooterPoweredBy({
|
|
39
39
|
className,
|
|
@@ -43,12 +43,12 @@ declare function FooterPoweredBy({
|
|
|
43
43
|
}: React.ComponentProps<"div"> & {
|
|
44
44
|
/** Override the default "Powered by" label. */
|
|
45
45
|
label?: React.ReactNode;
|
|
46
|
-
}):
|
|
46
|
+
}): react_jsx_runtime196.JSX.Element;
|
|
47
47
|
/** Visual divider between trailing links. */
|
|
48
48
|
declare function FooterSeparator({
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<"span">):
|
|
51
|
+
}: React.ComponentProps<"span">): react_jsx_runtime196.JSX.Element;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { Footer, FooterCenter, FooterEnd, FooterPoweredBy, FooterSeparator, FooterStart };
|
|
54
54
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/patterns/Footer/Footer.tsx"],"mappings":";;;;cAyBM;;;EAAA,SAAA,KAAA,EAAA,oCAII;AAAA,CAAA;;iBAGD,MAAA,CACP;EAAA,SAAA;EAAA,QAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EAIC,KAAA,CAAM,cAJP,CAAA,QAAA,CAAA,GAAA;;UAEA,CAAA,EAAA,OAAA;;YAM0B,CAAA,EAAA,MAAA,OAAA,iBAAA;IAC3B,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/patterns/Footer/Footer.tsx"],"mappings":";;;;cAyBM;;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