@mdxui/cockpit 0.2.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +207 -8
- package/dist/auth/auth-layout.js +13 -53
- package/dist/auth/auth-layout.js.map +1 -1
- package/dist/auth/index.js +13 -54
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/login-page.js +13 -53
- package/dist/auth/login-page.js.map +1 -1
- package/dist/auth/otp-page.js +13 -53
- package/dist/auth/otp-page.js.map +1 -1
- package/dist/auth/password-reset-page.js +13 -53
- package/dist/auth/password-reset-page.js.map +1 -1
- package/dist/auth/signup-page.js +13 -53
- package/dist/auth/signup-page.js.map +1 -1
- package/dist/developer/index.d.ts +524 -10
- package/dist/developer/index.js +616 -308
- package/dist/developer/index.js.map +1 -1
- package/dist/developer/themes/index.d.ts +1 -1
- package/dist/developer/themes/index.js +38 -1
- package/dist/developer/themes/index.js.map +1 -1
- package/dist/index.d.ts +34 -1
- package/dist/index.js +670 -368
- package/dist/index.js.map +1 -1
- package/package.json +19 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DARK_MODE_CLASS, THEME_STORAGE_KEY, Theme, ThemeMode, ThemePreset, ThemeScript, ThemeState, ThemeStore, ThemeVariables, applyThemeToElement, applyThemeVariables, defaultThemeState, getResolvedMode, getThemeCSS, getThemeCSSPath, getThemeScriptContent, isThemePreset, parseThemeCSS, removeThemeVariables, themeCSS, themeNames, themePresets, useThemeStore } from '@mdxui/themes';
|
|
@@ -1,3 +1,40 @@
|
|
|
1
1
|
// src/developer/themes/index.ts
|
|
2
|
-
|
|
2
|
+
import {
|
|
3
|
+
applyThemeToElement,
|
|
4
|
+
applyThemeVariables,
|
|
5
|
+
DARK_MODE_CLASS,
|
|
6
|
+
defaultThemeState,
|
|
7
|
+
getResolvedMode,
|
|
8
|
+
getThemeCSS,
|
|
9
|
+
getThemeCSSPath,
|
|
10
|
+
getThemeScriptContent,
|
|
11
|
+
isThemePreset,
|
|
12
|
+
parseThemeCSS,
|
|
13
|
+
removeThemeVariables,
|
|
14
|
+
themeCSS,
|
|
15
|
+
themeNames,
|
|
16
|
+
themePresets,
|
|
17
|
+
ThemeScript,
|
|
18
|
+
THEME_STORAGE_KEY,
|
|
19
|
+
useThemeStore
|
|
20
|
+
} from "@mdxui/themes";
|
|
21
|
+
export {
|
|
22
|
+
DARK_MODE_CLASS,
|
|
23
|
+
THEME_STORAGE_KEY,
|
|
24
|
+
ThemeScript,
|
|
25
|
+
applyThemeToElement,
|
|
26
|
+
applyThemeVariables,
|
|
27
|
+
defaultThemeState,
|
|
28
|
+
getResolvedMode,
|
|
29
|
+
getThemeCSS,
|
|
30
|
+
getThemeCSSPath,
|
|
31
|
+
getThemeScriptContent,
|
|
32
|
+
isThemePreset,
|
|
33
|
+
parseThemeCSS,
|
|
34
|
+
removeThemeVariables,
|
|
35
|
+
themeCSS,
|
|
36
|
+
themeNames,
|
|
37
|
+
themePresets,
|
|
38
|
+
useThemeStore
|
|
39
|
+
};
|
|
3
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/developer/themes/index.ts"],"sourcesContent":["/**\n * Re-export all theme utilities from @mdxui/themes\n *\n * This module provides backwards compatibility for existing imports\n * from '@mdxui/cockpit/themes'. All functionality is now in the\n * dedicated @mdxui/themes package.\n */\nexport
|
|
1
|
+
{"version":3,"sources":["../../../src/developer/themes/index.ts"],"sourcesContent":["/**\n * Re-export all theme utilities from @mdxui/themes\n *\n * This module provides backwards compatibility for existing imports\n * from '@mdxui/cockpit/themes'. All functionality is now in the\n * dedicated @mdxui/themes package.\n */\nexport {\n type Theme,\n type ThemeMode,\n type ThemePreset,\n type ThemeState,\n type ThemeStore,\n type ThemeVariables,\n applyThemeToElement,\n applyThemeVariables,\n DARK_MODE_CLASS,\n defaultThemeState,\n getResolvedMode,\n getThemeCSS,\n getThemeCSSPath,\n getThemeScriptContent,\n isThemePreset,\n parseThemeCSS,\n removeThemeVariables,\n themeCSS,\n themeNames,\n themePresets,\n ThemeScript,\n THEME_STORAGE_KEY,\n useThemeStore,\n} from '@mdxui/themes'\n"],"mappings":";AAOA;AAAA,EAOE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { useAuth } from '@workos-inc/authkit-react';
|
|
2
2
|
export { Theme, ThemeMode, ThemePreset, ThemeScript, ThemeState, ThemeStore, applyThemeToElement, getResolvedMode, getThemeCSS, getThemeScriptContent, isThemePreset, themeCSS, themeNames, themePresets, useThemeStore } from '@mdxui/themes';
|
|
3
|
-
|
|
3
|
+
import { DeveloperDashboard, DashboardLayout, OverviewPage, SettingsPage, APIKeyManager, TeamManager, Billing } from './developer/index.js';
|
|
4
|
+
export { ActivityFeed, ActivityFeedProps, ActivityItem, AreaChart, AreaChartProps, BarChart, BarChartProps, BillingPage, CommandGroup, CommandItem, CommandPalette, CommandPaletteProps, CustomRoute, DashboardBranding, DashboardConfig, DashboardGrid, DashboardGridItem, DashboardGridItemProps, DashboardGridProps, DashboardIdentity, DashboardRoutes, DashboardTheme, DataTable, DataTableProps, DatabasePage, DeveloperDashboardProps, IntegrationsPage, JsonViewer, KPICard, KPICardProps, KeysPage, LandingPage, LineChart, LineChartProps, MockAuthenticationFactors, MockUserProfile, MockUserSessions, MockUsersManagement, NavItem, NavMain, NavUser, RequestsPage, SettingsProfilePage, SettingsSecurityPage, SettingsSessionsPage, SidebarAd, SortableHeader, StandaloneAPIKeys, StandaloneAPIKeysProps, StandaloneBilling, StandaloneBillingProps, StandaloneConfig, StandaloneProvider, StandaloneTeam, StandaloneTeamProps, StandaloneWebhooks, StandaloneWebhooksProps, StatusBadge, StatusDot, TeamPage, TeamSwitcher, UserProfile, VaultDeleteDialog, VaultEmptyState, VaultInputModal, VaultItemCard, VaultList, VaultPage, WebhooksActivityPage, WebhooksEndpointsPage, WebhooksEventCatalogPage, WebhooksLogsPage, dashboardIcons, getAuthToken, getDebugStatus, getEffectiveToken, getIconByName, getSDK, isAuthenticated, isDebugMode, setDebugMode, setDevToken, testSDKConnection, useCommandPalette, useCustomRoutes, useDashboard, useRoutes } from './developer/index.js';
|
|
4
5
|
export { AuthLayout, AuthLayoutProps } from './auth/auth-layout.js';
|
|
5
6
|
export { LoginPage, LoginPageProps } from './auth/login-page.js';
|
|
6
7
|
export { SignupPage, SignupPageProps } from './auth/signup-page.js';
|
|
@@ -15,3 +16,35 @@ import '@tanstack/react-table';
|
|
|
15
16
|
import 'mdxui';
|
|
16
17
|
import 'platform.do';
|
|
17
18
|
import '@mdxui/primitives/auth/onboarding-wizard';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* AppComponents implementation for @mdxui/cockpit
|
|
22
|
+
*
|
|
23
|
+
* This export provides components that implement the mdxui AppComponents interface.
|
|
24
|
+
* Not all required components are implemented yet - this is a partial implementation
|
|
25
|
+
* focused on the developer dashboard use case.
|
|
26
|
+
*
|
|
27
|
+
* Note: Some components are mapped from internal names to interface names:
|
|
28
|
+
* - DeveloperDashboard -> App (also exports DeveloperDashboard for backwards compat)
|
|
29
|
+
* - DashboardLayout -> Shell
|
|
30
|
+
* - OverviewPage -> Dashboard
|
|
31
|
+
* - SettingsPage -> Settings
|
|
32
|
+
* - APIKeyManager -> APIKeys
|
|
33
|
+
* - TeamManager -> Team
|
|
34
|
+
*
|
|
35
|
+
* Type assertions are used because the internal component props don't exactly match
|
|
36
|
+
* the mdxui interface props - this is intentional as cockpit uses its own config
|
|
37
|
+
* pattern while still providing the conceptual AppComponents structure.
|
|
38
|
+
*/
|
|
39
|
+
declare const components: {
|
|
40
|
+
App: typeof DeveloperDashboard;
|
|
41
|
+
Shell: typeof DashboardLayout;
|
|
42
|
+
Dashboard: typeof OverviewPage;
|
|
43
|
+
Settings: typeof SettingsPage;
|
|
44
|
+
DeveloperDashboard: typeof DeveloperDashboard;
|
|
45
|
+
APIKeys: typeof APIKeyManager;
|
|
46
|
+
Team: typeof TeamManager;
|
|
47
|
+
Billing: typeof Billing;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { APIKeyManager, DeveloperDashboard as App, Billing, DashboardLayout, DeveloperDashboard, OverviewPage, SettingsPage, TeamManager, components };
|