@pantheon-systems/pds-toolkit-react 1.0.0-dev.192 → 1.0.0-dev.194
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/components/LinkNewWindow/LinkNewWindow.d.ts +5 -1
- package/_dist/components/Panel/Panel.d.ts +7 -2
- package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +28 -0
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +7 -2
- package/_dist/components/buttons/ToggleButton/ToggleButton.d.ts +7 -3
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +1 -1
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +2 -2
- package/_dist/css/component-css/pds-index.css +4 -4
- package/_dist/css/component-css/pds-link-new-window.css +1 -1
- package/_dist/css/component-css/pds-panel.css +1 -1
- package/_dist/css/component-css/pds-section-message.css +1 -1
- package/_dist/css/component-css/pds-segmented-button.css +1 -1
- package/_dist/css/component-css/pds-side-nav.css +1 -1
- package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -0
- package/_dist/css/component-css/pds-tab-menu.css +2 -2
- package/_dist/css/pds-components.css +4 -4
- package/_dist/css/pds-core.css +1 -1
- package/_dist/css/pds-layouts.css +3 -2
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +3 -2
- package/_dist/index.js +2323 -2260
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/{DashboardLayout/DashboardLayout.d.ts → DashboardGlobal/DashboardGlobal.d.ts} +10 -9
- package/_dist/layouts/DashboardInner/DashboardInner.d.ts +20 -0
- package/_dist/libs/types/custom-types.d.ts +6 -0
- package/_dist/mocks/data/navigation-items.d.ts +357 -0
- package/_dist/mocks/markup/dashboard-main-content.d.ts +16 -0
- package/_dist/mocks/markup/dashboard-navigation.d.ts +11 -0
- package/_dist/mocks/markup/modal.d.ts +2 -0
- package/package.json +1 -1
- package/_dist/components/navigation/DashboardNav/dashboard-nav-sample-content.d.ts +0 -30
- package/_dist/components/navigation/UserMenu/user-menu-sample-content.d.ts +0 -2
- package/_dist/components/navigation/WorkspaceSelector/workspace-sample-content.d.ts +0 -35
- package/_dist/layouts/DashboardLayout/DemoContent.d.ts +0 -2
package/_dist/layouts/{DashboardLayout/DashboardLayout.d.ts → DashboardGlobal/DashboardGlobal.d.ts}
RENAMED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
export declare const DashboardContext: React.Context<any>;
|
|
3
|
-
import './dashboard-
|
|
3
|
+
import './dashboard-global.css';
|
|
4
4
|
/**
|
|
5
|
-
* Prop types for
|
|
5
|
+
* Prop types for DashboardGlobal
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
interface DashboardGlobalProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
8
|
/**
|
|
9
9
|
* Child elements to be assigned to named slots.
|
|
10
10
|
*/
|
|
11
11
|
children: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Is the dashboard in admin mode?
|
|
14
|
+
*/
|
|
15
|
+
isAdmin?: boolean;
|
|
12
16
|
/**
|
|
13
17
|
* Whether to include a sidebar toggle button.
|
|
14
18
|
*/
|
|
@@ -37,12 +41,9 @@ export interface DashboardLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
37
41
|
* Additional class names. Will be merged with existing component root classes.
|
|
38
42
|
*/
|
|
39
43
|
className?: string;
|
|
40
|
-
/**
|
|
41
|
-
* for admin view UI changes
|
|
42
|
-
*/
|
|
43
|
-
isAdmin?: boolean;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* DashboardGlobal UI component
|
|
47
47
|
*/
|
|
48
|
-
export declare const
|
|
48
|
+
export declare const DashboardGlobal: ({ children, hasSidebarToggle, isAdmin, logoLinkContent, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarToggleLabel, skiplinkText, className, ...props }: DashboardGlobalProps) => React.JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './dashboard-inner.css';
|
|
3
|
+
/**
|
|
4
|
+
* Prop types for DashboardInner
|
|
5
|
+
*/
|
|
6
|
+
interface DashboardInnerProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Child elements to be assigned to named slots.
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Additional class names
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* DashboardInner UI component
|
|
18
|
+
*/
|
|
19
|
+
export declare const DashboardInner: ({ children, className, ...props }: DashboardInnerProps) => React.JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PDSIcon } from '@components/Icon/Icon';
|
|
1
2
|
export type BadgeColor = 'success' | 'critical' | 'info' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond';
|
|
2
3
|
export type ButtonDisplayType = 'label-only' | 'icon-start' | 'icon-end';
|
|
3
4
|
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
@@ -11,4 +12,9 @@ export type FuiOffset = number | {
|
|
|
11
12
|
};
|
|
12
13
|
export type FuiPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
13
14
|
export type HeadingLevel = 'h2' | 'h3' | 'h4' | 'span';
|
|
15
|
+
export type SitePlanLevel = 'basic' | 'performance-small' | 'performance-medium' | 'performance-large' | 'performance-xl' | 'elite';
|
|
16
|
+
export declare const SitePlanLevelLabel: Record<SitePlanLevel, string>;
|
|
14
17
|
export type SiteStatus = 'active' | 'frozen';
|
|
18
|
+
export type SiteType = 'drupal' | 'wordpress' | 'gatsby' | 'nextjs';
|
|
19
|
+
export declare const SiteTypeLabel: Record<SiteType, string>;
|
|
20
|
+
export declare const SiteTypeIcon: Record<SiteType, PDSIcon>;
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const dialogMsgBase = "Activated menu item => ";
|
|
3
|
+
import { UserMenuItem } from '@components/navigation/UserMenu/UserMenu';
|
|
4
|
+
export declare const blogMenuItems: {
|
|
5
|
+
linkContent: React.JSX.Element;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const dashboardNavSampleMenuItems: ({
|
|
8
|
+
icon: string;
|
|
9
|
+
linkContent: React.JSX.Element;
|
|
10
|
+
links?: undefined;
|
|
11
|
+
isActive?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
icon: string;
|
|
14
|
+
linkContent: string;
|
|
15
|
+
links: {
|
|
16
|
+
linkContent: React.JSX.Element;
|
|
17
|
+
}[];
|
|
18
|
+
isActive?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
icon: string;
|
|
21
|
+
linkContent: React.JSX.Element;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
links?: undefined;
|
|
24
|
+
})[];
|
|
25
|
+
export declare const dashboardNavSampleMenuItemsRR: ({
|
|
26
|
+
icon: string;
|
|
27
|
+
linkContent: React.JSX.Element;
|
|
28
|
+
links?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
icon: string;
|
|
31
|
+
linkContent: React.JSX.Element;
|
|
32
|
+
links: {
|
|
33
|
+
linkContent: React.JSX.Element;
|
|
34
|
+
}[];
|
|
35
|
+
})[];
|
|
36
|
+
export declare const dashboardSegmentedButtonItems: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
export declare const documentationMenuItems: ({
|
|
41
|
+
label: string;
|
|
42
|
+
links: {
|
|
43
|
+
linkContent: React.JSX.Element;
|
|
44
|
+
}[];
|
|
45
|
+
linkContent?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
linkContent: React.JSX.Element;
|
|
48
|
+
label?: undefined;
|
|
49
|
+
links?: undefined;
|
|
50
|
+
})[];
|
|
51
|
+
export declare const helpMenuItems: ({
|
|
52
|
+
label: string;
|
|
53
|
+
callback: (item: any) => void;
|
|
54
|
+
isSeparator?: undefined;
|
|
55
|
+
isHeading?: undefined;
|
|
56
|
+
} | {
|
|
57
|
+
isSeparator: boolean;
|
|
58
|
+
label?: undefined;
|
|
59
|
+
callback?: undefined;
|
|
60
|
+
isHeading?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
label: string;
|
|
63
|
+
isHeading: boolean;
|
|
64
|
+
callback?: undefined;
|
|
65
|
+
isSeparator?: undefined;
|
|
66
|
+
})[];
|
|
67
|
+
export declare const micrositeMenuItems: ({
|
|
68
|
+
label: string;
|
|
69
|
+
links: {
|
|
70
|
+
linkContent: React.JSX.Element;
|
|
71
|
+
}[];
|
|
72
|
+
linkContent?: undefined;
|
|
73
|
+
} | {
|
|
74
|
+
linkContent: React.JSX.Element;
|
|
75
|
+
label?: undefined;
|
|
76
|
+
links?: undefined;
|
|
77
|
+
})[];
|
|
78
|
+
export declare const navMenuSampleMenuItems: ({
|
|
79
|
+
label: string;
|
|
80
|
+
links: ({
|
|
81
|
+
linkContent: React.JSX.Element;
|
|
82
|
+
isSeparator?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
isSeparator: boolean;
|
|
85
|
+
linkContent?: undefined;
|
|
86
|
+
})[];
|
|
87
|
+
linkContent?: undefined;
|
|
88
|
+
isActive?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
linkContent: React.JSX.Element;
|
|
91
|
+
isActive: boolean;
|
|
92
|
+
label?: undefined;
|
|
93
|
+
links?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
linkContent: React.JSX.Element;
|
|
96
|
+
label?: undefined;
|
|
97
|
+
links?: undefined;
|
|
98
|
+
isActive?: undefined;
|
|
99
|
+
})[];
|
|
100
|
+
export declare const navMenuSampleMenuItemsRR: ({
|
|
101
|
+
label: string;
|
|
102
|
+
links: ({
|
|
103
|
+
linkContent: React.JSX.Element;
|
|
104
|
+
isSeparator?: undefined;
|
|
105
|
+
} | {
|
|
106
|
+
isSeparator: boolean;
|
|
107
|
+
linkContent?: undefined;
|
|
108
|
+
})[];
|
|
109
|
+
linkContent?: undefined;
|
|
110
|
+
} | {
|
|
111
|
+
linkContent: React.JSX.Element;
|
|
112
|
+
label?: undefined;
|
|
113
|
+
links?: undefined;
|
|
114
|
+
})[];
|
|
115
|
+
export declare const sampleSites: ({
|
|
116
|
+
id: string;
|
|
117
|
+
machineName: string;
|
|
118
|
+
name: string;
|
|
119
|
+
status: string;
|
|
120
|
+
type: string;
|
|
121
|
+
} | {
|
|
122
|
+
id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
status: string;
|
|
125
|
+
type: string;
|
|
126
|
+
machineName?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
id: string;
|
|
129
|
+
machineName: string;
|
|
130
|
+
name: string;
|
|
131
|
+
status: string;
|
|
132
|
+
type?: undefined;
|
|
133
|
+
})[];
|
|
134
|
+
export declare const sideNavSampleMenuItems: ({
|
|
135
|
+
linkContent: React.JSX.Element;
|
|
136
|
+
links?: undefined;
|
|
137
|
+
} | {
|
|
138
|
+
linkContent: string;
|
|
139
|
+
links: ({
|
|
140
|
+
linkContent: React.JSX.Element;
|
|
141
|
+
isActive?: undefined;
|
|
142
|
+
} | {
|
|
143
|
+
linkContent: React.JSX.Element;
|
|
144
|
+
isActive: boolean;
|
|
145
|
+
})[];
|
|
146
|
+
})[];
|
|
147
|
+
export declare const sideNavSampleMenuItemsRR: ({
|
|
148
|
+
linkContent: React.JSX.Element;
|
|
149
|
+
links?: undefined;
|
|
150
|
+
} | {
|
|
151
|
+
linkContent: string;
|
|
152
|
+
links: {
|
|
153
|
+
linkContent: React.JSX.Element;
|
|
154
|
+
}[];
|
|
155
|
+
})[];
|
|
156
|
+
export declare const sideNavSampleMenuItemsMultidev: ({
|
|
157
|
+
linkContent: React.JSX.Element;
|
|
158
|
+
isActive: boolean;
|
|
159
|
+
} | {
|
|
160
|
+
linkContent: React.JSX.Element;
|
|
161
|
+
isActive?: undefined;
|
|
162
|
+
})[];
|
|
163
|
+
export declare const sideNavSampleMenuItemsCode: ({
|
|
164
|
+
linkContent: React.JSX.Element;
|
|
165
|
+
isActive: boolean;
|
|
166
|
+
} | {
|
|
167
|
+
linkContent: React.JSX.Element;
|
|
168
|
+
isActive?: undefined;
|
|
169
|
+
})[];
|
|
170
|
+
export declare const sideNavCompactSampleMenuItems: ({
|
|
171
|
+
linkContent: React.JSX.Element;
|
|
172
|
+
links?: undefined;
|
|
173
|
+
isActive?: undefined;
|
|
174
|
+
} | {
|
|
175
|
+
linkContent: string;
|
|
176
|
+
links: {
|
|
177
|
+
linkContent: React.JSX.Element;
|
|
178
|
+
}[];
|
|
179
|
+
isActive?: undefined;
|
|
180
|
+
} | {
|
|
181
|
+
linkContent: React.JSX.Element;
|
|
182
|
+
isActive: boolean;
|
|
183
|
+
links: ({
|
|
184
|
+
linkContent: string;
|
|
185
|
+
links: {
|
|
186
|
+
linkContent: React.JSX.Element;
|
|
187
|
+
}[];
|
|
188
|
+
} | {
|
|
189
|
+
linkContent: React.JSX.Element;
|
|
190
|
+
links?: undefined;
|
|
191
|
+
})[];
|
|
192
|
+
})[];
|
|
193
|
+
export declare const sideNavCompactSampleMenuItemsRR: ({
|
|
194
|
+
linkContent: React.JSX.Element;
|
|
195
|
+
links?: undefined;
|
|
196
|
+
} | {
|
|
197
|
+
linkContent: string;
|
|
198
|
+
links: {
|
|
199
|
+
linkContent: React.JSX.Element;
|
|
200
|
+
}[];
|
|
201
|
+
} | {
|
|
202
|
+
linkContent: React.JSX.Element;
|
|
203
|
+
links: ({
|
|
204
|
+
linkContent: string;
|
|
205
|
+
links: {
|
|
206
|
+
linkContent: React.JSX.Element;
|
|
207
|
+
}[];
|
|
208
|
+
} | {
|
|
209
|
+
linkContent: React.JSX.Element;
|
|
210
|
+
links?: undefined;
|
|
211
|
+
})[];
|
|
212
|
+
})[];
|
|
213
|
+
export declare const tabMenuSampleMenuItems: ({
|
|
214
|
+
dropdownSettings: {
|
|
215
|
+
buttonLabel: string;
|
|
216
|
+
filterLabel: string;
|
|
217
|
+
filterPlaceholder: string;
|
|
218
|
+
minFilterItems: number;
|
|
219
|
+
noResultsText: string;
|
|
220
|
+
};
|
|
221
|
+
icon: string;
|
|
222
|
+
linkContent: React.JSX.Element;
|
|
223
|
+
links: {
|
|
224
|
+
linkContent: React.JSX.Element;
|
|
225
|
+
}[];
|
|
226
|
+
isActive?: undefined;
|
|
227
|
+
} | {
|
|
228
|
+
icon: string;
|
|
229
|
+
linkContent: React.JSX.Element;
|
|
230
|
+
isActive: boolean;
|
|
231
|
+
dropdownSettings?: undefined;
|
|
232
|
+
links?: undefined;
|
|
233
|
+
} | {
|
|
234
|
+
icon: string;
|
|
235
|
+
linkContent: React.JSX.Element;
|
|
236
|
+
dropdownSettings?: undefined;
|
|
237
|
+
links?: undefined;
|
|
238
|
+
isActive?: undefined;
|
|
239
|
+
})[];
|
|
240
|
+
export declare const tabMenuSampleMenuItemsMultidev: ({
|
|
241
|
+
dropdownSettings: {
|
|
242
|
+
buttonLabel: string;
|
|
243
|
+
filterLabel: string;
|
|
244
|
+
filterPlaceholder: string;
|
|
245
|
+
minFilterItems: number;
|
|
246
|
+
noResultsText: string;
|
|
247
|
+
};
|
|
248
|
+
icon: string;
|
|
249
|
+
linkContent: React.JSX.Element;
|
|
250
|
+
links: ({
|
|
251
|
+
linkContent: React.JSX.Element;
|
|
252
|
+
isActive?: undefined;
|
|
253
|
+
} | {
|
|
254
|
+
linkContent: React.JSX.Element;
|
|
255
|
+
isActive: boolean;
|
|
256
|
+
})[];
|
|
257
|
+
promoteActiveChildLink: boolean;
|
|
258
|
+
} | {
|
|
259
|
+
icon: string;
|
|
260
|
+
linkContent: React.JSX.Element;
|
|
261
|
+
dropdownSettings?: undefined;
|
|
262
|
+
links?: undefined;
|
|
263
|
+
promoteActiveChildLink?: undefined;
|
|
264
|
+
})[];
|
|
265
|
+
export declare const userMenuSampleItems: UserMenuItem[];
|
|
266
|
+
export declare const workspaceItemsSimple: ({
|
|
267
|
+
displayName: string;
|
|
268
|
+
workspaceId: string;
|
|
269
|
+
workspaceLink: React.JSX.Element;
|
|
270
|
+
imageSrc?: undefined;
|
|
271
|
+
planTier?: undefined;
|
|
272
|
+
isUnprivileged?: undefined;
|
|
273
|
+
isActive?: undefined;
|
|
274
|
+
} | {
|
|
275
|
+
displayName: string;
|
|
276
|
+
imageSrc: string;
|
|
277
|
+
planTier: string;
|
|
278
|
+
workspaceId: string;
|
|
279
|
+
workspaceLink: React.JSX.Element;
|
|
280
|
+
isUnprivileged?: undefined;
|
|
281
|
+
isActive?: undefined;
|
|
282
|
+
} | {
|
|
283
|
+
displayName: string;
|
|
284
|
+
imageSrc: string;
|
|
285
|
+
planTier: string;
|
|
286
|
+
workspaceId: string;
|
|
287
|
+
workspaceLink: React.JSX.Element;
|
|
288
|
+
isUnprivileged: boolean;
|
|
289
|
+
isActive?: undefined;
|
|
290
|
+
} | {
|
|
291
|
+
displayName: string;
|
|
292
|
+
planTier: string;
|
|
293
|
+
workspaceId: string;
|
|
294
|
+
workspaceLink: React.JSX.Element;
|
|
295
|
+
isActive: boolean;
|
|
296
|
+
imageSrc?: undefined;
|
|
297
|
+
isUnprivileged?: undefined;
|
|
298
|
+
} | {
|
|
299
|
+
displayName: string;
|
|
300
|
+
planTier: string;
|
|
301
|
+
workspaceId: string;
|
|
302
|
+
workspaceLink: React.JSX.Element;
|
|
303
|
+
imageSrc?: undefined;
|
|
304
|
+
isUnprivileged?: undefined;
|
|
305
|
+
isActive?: undefined;
|
|
306
|
+
})[];
|
|
307
|
+
export declare const workspaceItemsPersonal: ({
|
|
308
|
+
displayName: string;
|
|
309
|
+
workspaceId: string;
|
|
310
|
+
workspaceLink: React.JSX.Element;
|
|
311
|
+
isActive: boolean;
|
|
312
|
+
imageSrc?: undefined;
|
|
313
|
+
planTier?: undefined;
|
|
314
|
+
} | {
|
|
315
|
+
displayName: string;
|
|
316
|
+
imageSrc: string;
|
|
317
|
+
planTier: string;
|
|
318
|
+
workspaceId: string;
|
|
319
|
+
workspaceLink: React.JSX.Element;
|
|
320
|
+
isActive?: undefined;
|
|
321
|
+
} | {
|
|
322
|
+
displayName: string;
|
|
323
|
+
planTier: string;
|
|
324
|
+
workspaceId: string;
|
|
325
|
+
workspaceLink: React.JSX.Element;
|
|
326
|
+
isActive?: undefined;
|
|
327
|
+
imageSrc?: undefined;
|
|
328
|
+
})[];
|
|
329
|
+
export declare const workspaceItemsLonger: ({
|
|
330
|
+
displayName: string;
|
|
331
|
+
workspaceId: string;
|
|
332
|
+
workspaceLink: React.JSX.Element;
|
|
333
|
+
imageSrc?: undefined;
|
|
334
|
+
planTier?: undefined;
|
|
335
|
+
isActive?: undefined;
|
|
336
|
+
} | {
|
|
337
|
+
displayName: string;
|
|
338
|
+
imageSrc: string;
|
|
339
|
+
planTier: string;
|
|
340
|
+
workspaceId: string;
|
|
341
|
+
workspaceLink: React.JSX.Element;
|
|
342
|
+
isActive?: undefined;
|
|
343
|
+
} | {
|
|
344
|
+
displayName: string;
|
|
345
|
+
planTier: string;
|
|
346
|
+
workspaceId: string;
|
|
347
|
+
workspaceLink: React.JSX.Element;
|
|
348
|
+
imageSrc?: undefined;
|
|
349
|
+
isActive?: undefined;
|
|
350
|
+
} | {
|
|
351
|
+
displayName: string;
|
|
352
|
+
planTier: string;
|
|
353
|
+
workspaceId: string;
|
|
354
|
+
workspaceLink: React.JSX.Element;
|
|
355
|
+
isActive: boolean;
|
|
356
|
+
imageSrc?: undefined;
|
|
357
|
+
})[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DemoDashboardInnerHeaderLeft: ({ slot: _slot, }: {
|
|
3
|
+
slot?: string;
|
|
4
|
+
}) => React.JSX.Element;
|
|
5
|
+
export declare const DemoDashboardInnerHeaderRight: ({ slot: _slot, }: {
|
|
6
|
+
slot?: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export declare const DemoDashboardInnerHeaderBelow: ({ slot: _slot, }: {
|
|
9
|
+
slot?: string;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export declare const DemoDashboardInnerSidebar: ({ slot: _slot, }: {
|
|
12
|
+
slot?: string;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
export declare const DemoDashboardMainContent: ({ slot: _slot, }: {
|
|
15
|
+
slot?: string;
|
|
16
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DemoDashboardSidebarNav: ({ slot: _slot }: {
|
|
3
|
+
slot?: string;
|
|
4
|
+
}) => React.JSX.Element;
|
|
5
|
+
export declare const DemoDashboardFooter: ({ slot: _slot }: {
|
|
6
|
+
slot?: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export declare const DemoDashboardNavbar: ({ isAdmin, slot: _slot, }: {
|
|
9
|
+
isAdmin?: boolean;
|
|
10
|
+
slot?: string;
|
|
11
|
+
}) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const dashboardNavSampleMenuItems: ({
|
|
3
|
-
icon: string;
|
|
4
|
-
linkContent: React.JSX.Element;
|
|
5
|
-
links?: undefined;
|
|
6
|
-
isActive?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
icon: string;
|
|
9
|
-
linkContent: string;
|
|
10
|
-
links: {
|
|
11
|
-
linkContent: React.JSX.Element;
|
|
12
|
-
}[];
|
|
13
|
-
isActive?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
icon: string;
|
|
16
|
-
linkContent: React.JSX.Element;
|
|
17
|
-
isActive: boolean;
|
|
18
|
-
links?: undefined;
|
|
19
|
-
})[];
|
|
20
|
-
export declare const dashboardNavSampleMenuItemsRR: ({
|
|
21
|
-
icon: string;
|
|
22
|
-
linkContent: React.JSX.Element;
|
|
23
|
-
links?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
icon: string;
|
|
26
|
-
linkContent: React.JSX.Element;
|
|
27
|
-
links: {
|
|
28
|
-
linkContent: React.JSX.Element;
|
|
29
|
-
}[];
|
|
30
|
-
})[];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
interface WorkspaceItem {
|
|
3
|
-
/**
|
|
4
|
-
* Name of the workspace.
|
|
5
|
-
*/
|
|
6
|
-
displayName?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Image src for the workspace.
|
|
9
|
-
*/
|
|
10
|
-
imageSrc?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Is this the currently selected workspace?
|
|
13
|
-
*/
|
|
14
|
-
isActive?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* This user does not have access to this workspace.
|
|
17
|
-
*/
|
|
18
|
-
isUnprivileged?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Account plan tier.
|
|
21
|
-
*/
|
|
22
|
-
planTier?: 'silver' | 'gold' | 'platinum' | 'diamond';
|
|
23
|
-
/**
|
|
24
|
-
* Id of the workspace.
|
|
25
|
-
*/
|
|
26
|
-
workspaceId?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Link to the workspace. A link element via the router of your choice.
|
|
29
|
-
*/
|
|
30
|
-
workspaceLink?: ReactElement;
|
|
31
|
-
}
|
|
32
|
-
export declare const workspaceItemsSimple: WorkspaceItem[];
|
|
33
|
-
export declare const workspaceItemsPersonal: WorkspaceItem[];
|
|
34
|
-
export declare const workspaceItemsLonger: WorkspaceItem[];
|
|
35
|
-
export {};
|