@elevasis/ui 1.20.0 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.d.ts +174 -14
- package/dist/{chunk-ACD2QA6E.js → chunk-3DIU726S.js} +2 -2
- package/dist/{chunk-GH7ZO4VD.js → chunk-C7AD6N23.js} +1 -1
- package/dist/{chunk-Z2BXCFAG.js → chunk-COTI2QPO.js} +1 -1
- package/dist/{chunk-U4CHEPIL.js → chunk-JIABC3AE.js} +1 -1
- package/dist/{chunk-BX565EOK.js → chunk-OFAXUZPZ.js} +298 -808
- package/dist/{chunk-JHMJKDVU.js → chunk-R3R367QY.js} +1 -1
- package/dist/{chunk-I6EVLOP3.js → chunk-VLTVZXP6.js} +2 -2
- package/dist/components/index.d.ts +5708 -22
- package/dist/components/index.js +6 -6
- package/dist/features/auth/index.d.ts +2557 -9
- package/dist/features/dashboard/index.d.ts +244 -9
- package/dist/features/dashboard/index.js +5 -5
- package/dist/features/monitoring/index.d.ts +121 -15
- package/dist/features/monitoring/index.js +4 -4
- package/dist/features/operations/index.d.ts +1771 -29
- package/dist/features/operations/index.js +6 -6
- package/dist/features/settings/index.d.ts +2589 -23
- package/dist/features/settings/index.js +5 -5
- package/dist/hooks/index.d.ts +6611 -22
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/published.d.ts +6055 -21
- package/dist/hooks/published.js +4 -4
- package/dist/index.d.ts +8523 -15
- package/dist/index.js +5 -5
- package/dist/initialization/index.d.ts +2526 -23
- package/dist/layout/index.js +2 -2
- package/dist/organization/index.d.ts +274 -23
- package/dist/profile/index.d.ts +2477 -15
- package/dist/provider/index.d.ts +334 -11
- package/dist/provider/index.js +4 -4
- package/dist/provider/published.d.ts +309 -11
- package/dist/theme/index.d.ts +148 -10
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/__tests__/getPreset.test.js +92 -0
- package/dist/theme/presets/cyber-volt.js +70 -0
- package/dist/theme/presets/regal.js +69 -0
- package/dist/theme/presets/rose-gold.js +76 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/auth/guards/AdminGuard.d.ts +0 -32
- package/dist/auth/guards/AdminGuard.d.ts.map +0 -1
- package/dist/auth/guards/ProtectedRoute.d.ts +0 -60
- package/dist/auth/guards/ProtectedRoute.d.ts.map +0 -1
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +0 -12
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +0 -1
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +0 -14
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/components/charts/ActivityTrendChart.d.ts +0 -13
- package/dist/components/charts/ActivityTrendChart.d.ts.map +0 -1
- package/dist/components/charts/CombinedTrendChart.d.ts +0 -22
- package/dist/components/charts/CombinedTrendChart.d.ts.map +0 -1
- package/dist/components/charts/CostTrendChart.d.ts +0 -13
- package/dist/components/charts/CostTrendChart.d.ts.map +0 -1
- package/dist/components/charts/HeroStatsRow.d.ts +0 -15
- package/dist/components/charts/HeroStatsRow.d.ts.map +0 -1
- package/dist/components/charts/index.d.ts +0 -9
- package/dist/components/charts/index.d.ts.map +0 -1
- package/dist/components/command-queue/TaskCard.d.ts +0 -18
- package/dist/components/command-queue/TaskCard.d.ts.map +0 -1
- package/dist/components/command-queue/index.d.ts +0 -5
- package/dist/components/command-queue/index.d.ts.map +0 -1
- package/dist/components/display/PageNotFound.d.ts +0 -2
- package/dist/components/display/PageNotFound.d.ts.map +0 -1
- package/dist/components/display/index.d.ts +0 -26
- package/dist/components/display/index.d.ts.map +0 -1
- package/dist/components/execution/ExecutionStats.d.ts +0 -16
- package/dist/components/execution/ExecutionStats.d.ts.map +0 -1
- package/dist/components/execution/index.d.ts +0 -18
- package/dist/components/execution/index.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/AuroraBackground.d.ts +0 -16
- package/dist/components/layout/backgrounds/AuroraBackground.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/AuroraBackground.js +0 -169
- package/dist/components/layout/backgrounds/EmberBackground.d.ts +0 -16
- package/dist/components/layout/backgrounds/EmberBackground.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/EmberBackground.js +0 -169
- package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts +0 -16
- package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/RoseGoldBackground.js +0 -169
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts +0 -12
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +0 -1
- package/dist/components/monitoring/ResourceHealthPanel.d.ts +0 -8
- package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +0 -1
- package/dist/components/monitoring/index.d.ts +0 -16
- package/dist/components/monitoring/index.d.ts.map +0 -1
- package/dist/components/notifications/NotificationBell.d.ts +0 -9
- package/dist/components/notifications/NotificationBell.d.ts.map +0 -1
- package/dist/components/notifications/NotificationItem.d.ts +0 -9
- package/dist/components/notifications/NotificationItem.d.ts.map +0 -1
- package/dist/components/notifications/NotificationList.d.ts +0 -10
- package/dist/components/notifications/NotificationList.d.ts.map +0 -1
- package/dist/components/notifications/NotificationPanel.d.ts +0 -10
- package/dist/components/notifications/NotificationPanel.d.ts.map +0 -1
- package/dist/components/notifications/index.d.ts +0 -5
- package/dist/components/notifications/index.d.ts.map +0 -1
- package/dist/components/operations/calibration/CreateProjectModal.d.ts +0 -9
- package/dist/components/operations/calibration/CreateProjectModal.d.ts.map +0 -1
- package/dist/components/operations/calibration/ProjectCard.d.ts +0 -9
- package/dist/components/operations/calibration/ProjectCard.d.ts.map +0 -1
- package/dist/components/operations/command-queue/index.d.ts +0 -3
- package/dist/components/operations/command-queue/index.d.ts.map +0 -1
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +0 -17
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +0 -1
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +0 -17
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +0 -1
- package/dist/components/operations/command-queue/sidebar/index.d.ts +0 -5
- package/dist/components/operations/command-queue/sidebar/index.d.ts.map +0 -1
- package/dist/components/operations/command-view/CommandViewGraph.d.ts +0 -22
- package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +0 -1
- package/dist/components/operations/command-view/index.d.ts +0 -4
- package/dist/components/operations/command-view/index.d.ts.map +0 -1
- package/dist/components/operations/executions/AgentExecutionLogs.d.ts +0 -13
- package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +0 -1
- package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +0 -13
- package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +0 -1
- package/dist/components/operations/executions/index.d.ts +0 -4
- package/dist/components/operations/executions/index.d.ts.map +0 -1
- package/dist/components/operations/index.d.ts +0 -8
- package/dist/components/operations/index.d.ts.map +0 -1
- package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +0 -14
- package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +0 -1
- package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +0 -16
- package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +0 -1
- package/dist/components/operations/knowledge-base/index.d.ts +0 -3
- package/dist/components/operations/knowledge-base/index.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +0 -16
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +0 -12
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +0 -12
- package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +0 -7
- package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +0 -1
- package/dist/components/operations/shared/index.d.ts +0 -5
- package/dist/components/operations/shared/index.d.ts.map +0 -1
- package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +0 -11
- package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +0 -1
- package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +0 -8
- package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +0 -1
- package/dist/components/operations/shared/layouts/index.d.ts +0 -4
- package/dist/components/operations/shared/layouts/index.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +0 -7
- package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +0 -2
- package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/index.d.ts +0 -11
- package/dist/components/operations/task-scheduler/index.d.ts.map +0 -1
- package/dist/components/sdk-barrel.d.ts +0 -26
- package/dist/components/sdk-barrel.d.ts.map +0 -1
- package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +0 -9
- package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +0 -1
- package/dist/components/settings/api-keys/ApiKeyList.d.ts +0 -8
- package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +0 -1
- package/dist/components/settings/api-keys/ApiKeySettings.d.ts +0 -2
- package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +0 -1
- package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +0 -9
- package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +0 -1
- package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +0 -8
- package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +0 -1
- package/dist/components/settings/api-keys/index.d.ts +0 -6
- package/dist/components/settings/api-keys/index.d.ts.map +0 -1
- package/dist/components/settings/credentials/CreateCredentialModal.d.ts +0 -9
- package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +0 -1
- package/dist/components/settings/credentials/CredentialList.d.ts +0 -10
- package/dist/components/settings/credentials/CredentialList.d.ts.map +0 -1
- package/dist/components/settings/credentials/CredentialSettings.d.ts +0 -7
- package/dist/components/settings/credentials/CredentialSettings.d.ts.map +0 -1
- package/dist/components/settings/credentials/index.d.ts +0 -5
- package/dist/components/settings/credentials/index.d.ts.map +0 -1
- package/dist/components/settings/deployments/DeploymentList.d.ts +0 -8
- package/dist/components/settings/deployments/DeploymentList.d.ts.map +0 -1
- package/dist/components/settings/deployments/DeploymentSettings.d.ts +0 -2
- package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +0 -1
- package/dist/components/settings/deployments/index.d.ts +0 -5
- package/dist/components/settings/deployments/index.d.ts.map +0 -1
- package/dist/components/settings/index.d.ts +0 -6
- package/dist/components/settings/index.d.ts.map +0 -1
- package/dist/components/table/SortableHeader.d.ts +0 -12
- package/dist/components/table/SortableHeader.d.ts.map +0 -1
- package/dist/components/table/index.d.ts +0 -4
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/features/auth/AdminGuard.d.ts +0 -38
- package/dist/features/auth/AdminGuard.d.ts.map +0 -1
- package/dist/features/auth/FeatureGuard.d.ts +0 -45
- package/dist/features/auth/FeatureGuard.d.ts.map +0 -1
- package/dist/features/auth/ProtectedRoute.d.ts +0 -43
- package/dist/features/auth/ProtectedRoute.d.ts.map +0 -1
- package/dist/features/auth/index.d.ts.map +0 -1
- package/dist/features/auth/useUserProfile.d.ts +0 -10
- package/dist/features/auth/useUserProfile.d.ts.map +0 -1
- package/dist/features/dashboard/Dashboard.d.ts +0 -57
- package/dist/features/dashboard/Dashboard.d.ts.map +0 -1
- package/dist/features/dashboard/RecentExecutionsByResource.d.ts +0 -11
- package/dist/features/dashboard/RecentExecutionsByResource.d.ts.map +0 -1
- package/dist/features/dashboard/ResourceOverview.d.ts +0 -21
- package/dist/features/dashboard/ResourceOverview.d.ts.map +0 -1
- package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts +0 -7
- package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts.map +0 -1
- package/dist/features/dashboard/index.d.ts.map +0 -1
- package/dist/features/monitoring/ActivityFeed.d.ts +0 -37
- package/dist/features/monitoring/ActivityFeed.d.ts.map +0 -1
- package/dist/features/monitoring/ActivityLog.d.ts +0 -8
- package/dist/features/monitoring/ActivityLog.d.ts.map +0 -1
- package/dist/features/monitoring/CostAnalytics.d.ts +0 -13
- package/dist/features/monitoring/CostAnalytics.d.ts.map +0 -1
- package/dist/features/monitoring/ErrorDetailsModal.d.ts +0 -13
- package/dist/features/monitoring/ErrorDetailsModal.d.ts.map +0 -1
- package/dist/features/monitoring/ExecutionHealth.d.ts +0 -9
- package/dist/features/monitoring/ExecutionHealth.d.ts.map +0 -1
- package/dist/features/monitoring/ExecutionLogsPage.d.ts +0 -20
- package/dist/features/monitoring/ExecutionLogsPage.d.ts.map +0 -1
- package/dist/features/monitoring/NotificationCenter.d.ts +0 -5
- package/dist/features/monitoring/NotificationCenter.d.ts.map +0 -1
- package/dist/features/monitoring/index.d.ts.map +0 -1
- package/dist/features/operations/CalibrationPage.d.ts +0 -9
- package/dist/features/operations/CalibrationPage.d.ts.map +0 -1
- package/dist/features/operations/CalibrationProjectDetailPage.d.ts +0 -43
- package/dist/features/operations/CalibrationProjectDetailPage.d.ts.map +0 -1
- package/dist/features/operations/CalibrationProjectsPage.d.ts +0 -10
- package/dist/features/operations/CalibrationProjectsPage.d.ts.map +0 -1
- package/dist/features/operations/CalibrationRunDetailPage.d.ts +0 -35
- package/dist/features/operations/CalibrationRunDetailPage.d.ts.map +0 -1
- package/dist/features/operations/CommandQueueDetailPage.d.ts +0 -16
- package/dist/features/operations/CommandQueueDetailPage.d.ts.map +0 -1
- package/dist/features/operations/CommandQueuePage.d.ts +0 -13
- package/dist/features/operations/CommandQueuePage.d.ts.map +0 -1
- package/dist/features/operations/CommandViewPage.d.ts +0 -6
- package/dist/features/operations/CommandViewPage.d.ts.map +0 -1
- package/dist/features/operations/CommandViewSidebarContent.d.ts +0 -19
- package/dist/features/operations/CommandViewSidebarContent.d.ts.map +0 -1
- package/dist/features/operations/ResourceDetailPage.d.ts +0 -25
- package/dist/features/operations/ResourceDetailPage.d.ts.map +0 -1
- package/dist/features/operations/ResourcesPage.d.ts +0 -15
- package/dist/features/operations/ResourcesPage.d.ts.map +0 -1
- package/dist/features/operations/ResourcesSidebar.d.ts +0 -9
- package/dist/features/operations/ResourcesSidebar.d.ts.map +0 -1
- package/dist/features/operations/calibration-components/ComparisonTable.d.ts +0 -9
- package/dist/features/operations/calibration-components/ComparisonTable.d.ts.map +0 -1
- package/dist/features/operations/executions/AgentExecutionPanel.d.ts +0 -12
- package/dist/features/operations/executions/AgentExecutionPanel.d.ts.map +0 -1
- package/dist/features/operations/executions/ExecutionPanel.d.ts +0 -13
- package/dist/features/operations/executions/ExecutionPanel.d.ts.map +0 -1
- package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts +0 -12
- package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts.map +0 -1
- package/dist/features/operations/executions/index.d.ts +0 -7
- package/dist/features/operations/executions/index.d.ts.map +0 -1
- package/dist/features/operations/index.d.ts.map +0 -1
- package/dist/features/operations/layouts/components/ResourceHeader.d.ts +0 -11
- package/dist/features/operations/layouts/components/ResourceHeader.d.ts.map +0 -1
- package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts +0 -8
- package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts.map +0 -1
- package/dist/features/operations/layouts/components/index.d.ts +0 -4
- package/dist/features/operations/layouts/components/index.d.ts.map +0 -1
- package/dist/features/settings/AccountSettings.d.ts +0 -20
- package/dist/features/settings/AccountSettings.d.ts.map +0 -1
- package/dist/features/settings/AppearanceSettings.d.ts +0 -23
- package/dist/features/settings/AppearanceSettings.d.ts.map +0 -1
- package/dist/features/settings/CreateWebhookEndpointModal.d.ts +0 -8
- package/dist/features/settings/CreateWebhookEndpointModal.d.ts.map +0 -1
- package/dist/features/settings/EditCredentialModal.d.ts +0 -9
- package/dist/features/settings/EditCredentialModal.d.ts.map +0 -1
- package/dist/features/settings/EditWebhookEndpointModal.d.ts +0 -8
- package/dist/features/settings/EditWebhookEndpointModal.d.ts.map +0 -1
- package/dist/features/settings/MemberConfigModal.d.ts +0 -14
- package/dist/features/settings/MemberConfigModal.d.ts.map +0 -1
- package/dist/features/settings/OAuthIntegrationsCard.d.ts +0 -6
- package/dist/features/settings/OAuthIntegrationsCard.d.ts.map +0 -1
- package/dist/features/settings/OrgMembersList.d.ts +0 -5
- package/dist/features/settings/OrgMembersList.d.ts.map +0 -1
- package/dist/features/settings/OrganizationSettings.d.ts +0 -30
- package/dist/features/settings/OrganizationSettings.d.ts.map +0 -1
- package/dist/features/settings/WebhookEndpointList.d.ts +0 -9
- package/dist/features/settings/WebhookEndpointList.d.ts.map +0 -1
- package/dist/features/settings/WebhookEndpointSettings.d.ts +0 -6
- package/dist/features/settings/WebhookEndpointSettings.d.ts.map +0 -1
- package/dist/features/settings/index.d.ts.map +0 -1
- package/dist/hooks/command-queue/index.d.ts +0 -7
- package/dist/hooks/command-queue/index.d.ts.map +0 -1
- package/dist/hooks/command-queue/useCommandQueue.d.ts +0 -33
- package/dist/hooks/command-queue/useCommandQueue.d.ts.map +0 -1
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +0 -17
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +0 -1
- package/dist/hooks/command-queue/useDeleteTask.d.ts +0 -5
- package/dist/hooks/command-queue/useDeleteTask.d.ts.map +0 -1
- package/dist/hooks/command-queue/usePatchTask.d.ts +0 -6
- package/dist/hooks/command-queue/usePatchTask.d.ts.map +0 -1
- package/dist/hooks/command-queue/useSubmitAction.d.ts +0 -29
- package/dist/hooks/command-queue/useSubmitAction.d.ts.map +0 -1
- package/dist/hooks/executions/index.d.ts +0 -17
- package/dist/hooks/executions/index.d.ts.map +0 -1
- package/dist/hooks/executions/useArchivedLogs.d.ts +0 -14
- package/dist/hooks/executions/useArchivedLogs.d.ts.map +0 -1
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +0 -15
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +0 -1
- package/dist/hooks/executions/useCancelExecution.d.ts +0 -20
- package/dist/hooks/executions/useCancelExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useDeleteExecution.d.ts +0 -13
- package/dist/hooks/executions/useDeleteExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useExecuteAsync.d.ts +0 -21
- package/dist/hooks/executions/useExecuteAsync.d.ts.map +0 -1
- package/dist/hooks/executions/useExecution.d.ts +0 -10
- package/dist/hooks/executions/useExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useExecutions.d.ts +0 -16
- package/dist/hooks/executions/useExecutions.d.ts.map +0 -1
- package/dist/hooks/executions/useResourceDefinition.d.ts +0 -9
- package/dist/hooks/executions/useResourceDefinition.d.ts.map +0 -1
- package/dist/hooks/executions/useResources.d.ts +0 -15
- package/dist/hooks/executions/useResources.d.ts.map +0 -1
- package/dist/hooks/executions/useRetryExecution.d.ts +0 -16
- package/dist/hooks/executions/useRetryExecution.d.ts.map +0 -1
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +0 -41
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +0 -1
- package/dist/hooks/feature-access/index.d.ts +0 -2
- package/dist/hooks/feature-access/index.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/monitoring/index.d.ts +0 -11
- package/dist/hooks/monitoring/index.d.ts.map +0 -1
- package/dist/hooks/monitoring/useActivities.d.ts +0 -52
- package/dist/hooks/monitoring/useActivities.d.ts.map +0 -1
- package/dist/hooks/monitoring/useCostSummary.d.ts +0 -7
- package/dist/hooks/monitoring/useCostSummary.d.ts.map +0 -1
- package/dist/hooks/monitoring/useExecutionHealth.d.ts +0 -10
- package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +0 -1
- package/dist/hooks/monitoring/useExecutionLogs.d.ts +0 -56
- package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +0 -1
- package/dist/hooks/monitoring/useNotificationCount.d.ts +0 -26
- package/dist/hooks/monitoring/useNotificationCount.d.ts.map +0 -1
- package/dist/hooks/monitoring/useNotifications.d.ts +0 -11
- package/dist/hooks/monitoring/useNotifications.d.ts.map +0 -1
- package/dist/hooks/notifications/index.d.ts +0 -8
- package/dist/hooks/notifications/index.d.ts.map +0 -1
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts +0 -2
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +0 -1
- package/dist/hooks/notifications/useMarkAsRead.d.ts +0 -2
- package/dist/hooks/notifications/useMarkAsRead.d.ts.map +0 -1
- package/dist/hooks/notifications/useTestNotification.d.ts +0 -16
- package/dist/hooks/notifications/useTestNotification.d.ts.map +0 -1
- package/dist/hooks/observability/index.d.ts +0 -25
- package/dist/hooks/observability/index.d.ts.map +0 -1
- package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +0 -15
- package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +0 -1
- package/dist/hooks/observability/useBusinessImpact.d.ts +0 -9
- package/dist/hooks/observability/useBusinessImpact.d.ts.map +0 -1
- package/dist/hooks/observability/useCostBreakdown.d.ts +0 -10
- package/dist/hooks/observability/useCostBreakdown.d.ts.map +0 -1
- package/dist/hooks/observability/useCostByModel.d.ts +0 -3
- package/dist/hooks/observability/useCostByModel.d.ts.map +0 -1
- package/dist/hooks/observability/useCostTrends.d.ts +0 -3
- package/dist/hooks/observability/useCostTrends.d.ts.map +0 -1
- package/dist/hooks/observability/useDashboardMetrics.d.ts +0 -3
- package/dist/hooks/observability/useDashboardMetrics.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorAnalysis.d.ts +0 -7
- package/dist/hooks/observability/useErrorAnalysis.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorDetails.d.ts +0 -20
- package/dist/hooks/observability/useErrorDetails.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorDistribution.d.ts +0 -12
- package/dist/hooks/observability/useErrorDistribution.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorTrends.d.ts +0 -12
- package/dist/hooks/observability/useErrorTrends.d.ts.map +0 -1
- package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +0 -18
- package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +0 -1
- package/dist/hooks/observability/useResolveError.d.ts +0 -17
- package/dist/hooks/observability/useResolveError.d.ts.map +0 -1
- package/dist/hooks/observability/useResourcesHealth.d.ts +0 -13
- package/dist/hooks/observability/useResourcesHealth.d.ts.map +0 -1
- package/dist/hooks/observability/useTopFailingResources.d.ts +0 -13
- package/dist/hooks/observability/useTopFailingResources.d.ts.map +0 -1
- package/dist/hooks/observability/useUnresolvedErrors.d.ts +0 -15
- package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +0 -1
- package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts +0 -24
- package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts.map +0 -1
- package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts +0 -3
- package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts.map +0 -1
- package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts +0 -35
- package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/index.d.ts +0 -8
- package/dist/hooks/operations/command-view/index.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +0 -24
- package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useCommandViewData.d.ts +0 -11
- package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +0 -12
- package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useResourceErrors.d.ts +0 -22
- package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +0 -22
- package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +0 -1
- package/dist/hooks/operations/index.d.ts +0 -4
- package/dist/hooks/operations/index.d.ts.map +0 -1
- package/dist/hooks/operations/knowledge-base/index.d.ts +0 -3
- package/dist/hooks/operations/knowledge-base/index.d.ts.map +0 -1
- package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +0 -27
- package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +0 -1
- package/dist/hooks/operations/settings/index.d.ts +0 -4
- package/dist/hooks/operations/settings/index.d.ts.map +0 -1
- package/dist/hooks/operations/settings/useOAuthFlow.d.ts +0 -17
- package/dist/hooks/operations/settings/useOAuthFlow.d.ts.map +0 -1
- package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts +0 -17
- package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts.map +0 -1
- package/dist/hooks/operations/shared/index.d.ts +0 -6
- package/dist/hooks/operations/shared/index.d.ts.map +0 -1
- package/dist/hooks/operations/shared/queryKeys.d.ts +0 -23
- package/dist/hooks/operations/shared/queryKeys.d.ts.map +0 -1
- package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +0 -11
- package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +0 -1
- package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +0 -46
- package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +0 -1
- package/dist/hooks/published.d.ts.map +0 -1
- package/dist/hooks/scheduling/index.d.ts +0 -7
- package/dist/hooks/scheduling/index.d.ts.map +0 -1
- package/dist/hooks/scheduling/useScheduledTasks.d.ts +0 -19
- package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +0 -1
- package/dist/hooks/scheduling/useSchedules.d.ts +0 -185
- package/dist/hooks/scheduling/useSchedules.d.ts.map +0 -1
- package/dist/hooks/sessions/index.d.ts +0 -8
- package/dist/hooks/sessions/index.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessionExecutions.d.ts +0 -13
- package/dist/hooks/sessions/useSessionExecutions.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessionMessages.d.ts +0 -7
- package/dist/hooks/sessions/useSessionMessages.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessions.d.ts +0 -26
- package/dist/hooks/sessions/useSessions.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/index.d.ts +0 -7
- package/dist/hooks/settings/api-keys/index.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +0 -3
- package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +0 -2
- package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +0 -2
- package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +0 -5
- package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/index.d.ts +0 -7
- package/dist/hooks/settings/credentials/index.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/useCreateCredential.d.ts +0 -3
- package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/useCredentials.d.ts +0 -8
- package/dist/hooks/settings/credentials/useCredentials.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +0 -2
- package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +0 -10
- package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +0 -1
- package/dist/hooks/settings/deployments/index.d.ts +0 -5
- package/dist/hooks/settings/deployments/index.d.ts.map +0 -1
- package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +0 -4
- package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +0 -1
- package/dist/hooks/settings/deployments/useListDeployments.d.ts +0 -2
- package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +0 -1
- package/dist/hooks/settings/index.d.ts +0 -6
- package/dist/hooks/settings/index.d.ts.map +0 -1
- package/dist/hooks/settings/organization/index.d.ts +0 -6
- package/dist/hooks/settings/organization/index.d.ts.map +0 -1
- package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +0 -11
- package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +0 -1
- package/dist/hooks/settings/organization/useReactivateMembership.d.ts +0 -11
- package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +0 -1
- package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +0 -8
- package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +0 -1
- package/dist/hooks/settings/organization/useUserMemberships.d.ts +0 -3
- package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/index.d.ts +0 -7
- package/dist/hooks/settings/webhooks/index.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +0 -18
- package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +0 -2
- package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +0 -14
- package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +0 -18
- package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +0 -27
- package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +0 -1
- package/dist/hooks/useOrganizationMembers.d.ts +0 -18
- package/dist/hooks/useOrganizationMembers.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/initialization/InitializationProvider.d.ts +0 -48
- package/dist/initialization/InitializationProvider.d.ts.map +0 -1
- package/dist/initialization/hooks/useAppInitialization.d.ts +0 -32
- package/dist/initialization/hooks/useAppInitialization.d.ts.map +0 -1
- package/dist/initialization/index.d.ts.map +0 -1
- package/dist/organization/context/OrganizationProvider.d.ts +0 -24
- package/dist/organization/context/OrganizationProvider.d.ts.map +0 -1
- package/dist/organization/hooks/useOrgInitialization.d.ts +0 -56
- package/dist/organization/hooks/useOrgInitialization.d.ts.map +0 -1
- package/dist/organization/index.d.ts.map +0 -1
- package/dist/profile/context/ProfileProvider.d.ts +0 -31
- package/dist/profile/context/ProfileProvider.d.ts.map +0 -1
- package/dist/profile/hooks/useUserProfile.d.ts +0 -38
- package/dist/profile/hooks/useUserProfile.d.ts.map +0 -1
- package/dist/profile/index.d.ts.map +0 -1
- package/dist/provider/CoreAuthKitInner.d.ts +0 -12
- package/dist/provider/CoreAuthKitInner.d.ts.map +0 -1
- package/dist/provider/ElevasisCoreProvider.d.ts +0 -25
- package/dist/provider/ElevasisCoreProvider.d.ts.map +0 -1
- package/dist/provider/ElevasisServiceContext.d.ts +0 -31
- package/dist/provider/ElevasisServiceContext.d.ts.map +0 -1
- package/dist/provider/ElevasisUIProvider.d.ts +0 -28
- package/dist/provider/ElevasisUIProvider.d.ts.map +0 -1
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +0 -2
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +0 -1
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +0 -2
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +0 -1
- package/dist/provider/index.d.ts.map +0 -1
- package/dist/provider/published.d.ts.map +0 -1
- package/dist/provider/types.d.ts +0 -151
- package/dist/provider/types.d.ts.map +0 -1
- package/dist/sdk-barrel.d.ts +0 -20
- package/dist/sdk-barrel.d.ts.map +0 -1
- package/dist/theme/PresetsContext.d.ts +0 -4
- package/dist/theme/PresetsContext.d.ts.map +0 -1
- package/dist/theme/cssVariables.d.ts +0 -12
- package/dist/theme/cssVariables.d.ts.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/presets/abyss.d.ts +0 -3
- package/dist/theme/presets/abyss.d.ts.map +0 -1
- package/dist/theme/presets/aurora.d.ts +0 -12
- package/dist/theme/presets/aurora.d.ts.map +0 -1
- package/dist/theme/presets/canopy.d.ts +0 -12
- package/dist/theme/presets/canopy.d.ts.map +0 -1
- package/dist/theme/presets/canyon.d.ts +0 -11
- package/dist/theme/presets/canyon.d.ts.map +0 -1
- package/dist/theme/presets/cortex.d.ts +0 -3
- package/dist/theme/presets/cortex.d.ts.map +0 -1
- package/dist/theme/presets/cyber-punk.d.ts +0 -11
- package/dist/theme/presets/cyber-punk.d.ts.map +0 -1
- package/dist/theme/presets/cyber-strike.d.ts +0 -13
- package/dist/theme/presets/cyber-strike.d.ts.map +0 -1
- package/dist/theme/presets/cyber-void.d.ts +0 -12
- package/dist/theme/presets/cyber-void.d.ts.map +0 -1
- package/dist/theme/presets/default.d.ts +0 -4
- package/dist/theme/presets/default.d.ts.map +0 -1
- package/dist/theme/presets/ember.d.ts +0 -12
- package/dist/theme/presets/ember.d.ts.map +0 -1
- package/dist/theme/presets/helios.d.ts +0 -3
- package/dist/theme/presets/helios.d.ts.map +0 -1
- package/dist/theme/presets/honey.d.ts +0 -12
- package/dist/theme/presets/honey.d.ts.map +0 -1
- package/dist/theme/presets/index.d.ts +0 -8
- package/dist/theme/presets/index.d.ts.map +0 -1
- package/dist/theme/presets/midnight.d.ts +0 -12
- package/dist/theme/presets/midnight.d.ts.map +0 -1
- package/dist/theme/presets/nirvana.d.ts +0 -16
- package/dist/theme/presets/nirvana.d.ts.map +0 -1
- package/dist/theme/presets/obsidian.d.ts +0 -3
- package/dist/theme/presets/obsidian.d.ts.map +0 -1
- package/dist/theme/presets/slate.d.ts +0 -3
- package/dist/theme/presets/slate.d.ts.map +0 -1
- package/dist/theme/presets/synapse.d.ts +0 -10
- package/dist/theme/presets/synapse.d.ts.map +0 -1
- package/dist/theme/presets/tactical.d.ts +0 -8
- package/dist/theme/presets/tactical.d.ts.map +0 -1
- package/dist/theme/presets/types.d.ts +0 -43
- package/dist/theme/presets/types.d.ts.map +0 -1
- package/dist/theme/presets/verdant.d.ts +0 -3
- package/dist/theme/presets/verdant.d.ts.map +0 -1
- package/dist/theme/presets/wave.d.ts +0 -14
- package/dist/theme/presets/wave.d.ts.map +0 -1
- package/dist/theme/useAvailablePresets.d.ts +0 -16
- package/dist/theme/useAvailablePresets.d.ts.map +0 -1
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,10 +1,148 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
|
|
4
|
+
|
|
5
|
+
/** Flat + per-scheme override pattern. Flat values apply to both; `light`/`dark` win over flat. */
|
|
6
|
+
type WithSchemes<T> = T & {
|
|
7
|
+
light?: T;
|
|
8
|
+
dark?: T;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Theme token overrides. Each key maps 1:1 to a CSS variable.
|
|
12
|
+
* All optional — defaults come from Elevasis design system.
|
|
13
|
+
*/
|
|
14
|
+
interface ElevasisTokenOverrides {
|
|
15
|
+
primary?: string;
|
|
16
|
+
/** Text color that contrasts with `primary`. Defaults to '#fff'. */
|
|
17
|
+
primaryContrast?: string;
|
|
18
|
+
background?: string;
|
|
19
|
+
surface?: string;
|
|
20
|
+
surfaceHover?: string;
|
|
21
|
+
text?: string;
|
|
22
|
+
textDimmed?: string;
|
|
23
|
+
textSubtle?: string;
|
|
24
|
+
border?: string;
|
|
25
|
+
error?: string;
|
|
26
|
+
warning?: string;
|
|
27
|
+
success?: string;
|
|
28
|
+
glassBackground?: string;
|
|
29
|
+
glassBlur?: string;
|
|
30
|
+
shadow?: string;
|
|
31
|
+
cardShadow?: string;
|
|
32
|
+
durationFast?: string;
|
|
33
|
+
durationNormal?: string;
|
|
34
|
+
easing?: string;
|
|
35
|
+
/** Foreground text color for destructive/error buttons. Defaults to '#fff'. */
|
|
36
|
+
destructiveFg?: string;
|
|
37
|
+
/** Heading font family — used for titles, section headers. */
|
|
38
|
+
fontHeading?: string;
|
|
39
|
+
/** Body font family — used for general text. */
|
|
40
|
+
fontSans?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Core theme config — Mantine-free.
|
|
44
|
+
* Used by ElevasisCoreProvider and as the base for ElevasisThemeConfig.
|
|
45
|
+
*/
|
|
46
|
+
interface ElevasisCoreThemeConfig {
|
|
47
|
+
/** Color scheme: 'light', 'dark', or 'auto'. Defaults to 'dark'. */
|
|
48
|
+
colorScheme?: 'light' | 'dark' | 'auto';
|
|
49
|
+
/** Named preset — bundles light/dark token defaults. Defaults to 'default'. Accepts built-in PresetName or custom preset key. */
|
|
50
|
+
preset?: PresetName | (string & {});
|
|
51
|
+
/**
|
|
52
|
+
* Semantic token overrides fed into CSS variables.
|
|
53
|
+
* Flat values apply to both schemes. `light`/`dark` nested values win over flat.
|
|
54
|
+
*/
|
|
55
|
+
tokens?: WithSchemes<ElevasisTokenOverrides>;
|
|
56
|
+
/** Custom presets map — when provided, used instead of built-in presets. Typically `{ ...presets, ...customPresets }`. */
|
|
57
|
+
presets?: Record<string, ThemePreset>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** Framework-agnostic theme overrides bundled with a preset (fonts, radius, component styles). */
|
|
61
|
+
interface FrameworkThemeOverrides {
|
|
62
|
+
fontFamily?: string;
|
|
63
|
+
defaultRadius?: string;
|
|
64
|
+
headings?: {
|
|
65
|
+
fontFamily?: string;
|
|
66
|
+
fontWeight?: string;
|
|
67
|
+
};
|
|
68
|
+
components?: Record<string, unknown>;
|
|
69
|
+
}
|
|
70
|
+
interface ThemePreset {
|
|
71
|
+
light: Required<ElevasisTokenOverrides>;
|
|
72
|
+
dark: Required<ElevasisTokenOverrides>;
|
|
73
|
+
/** Optional framework theme overrides bundled with this preset (fonts, radius, etc.). */
|
|
74
|
+
framework?: FrameworkThemeOverrides;
|
|
75
|
+
/**
|
|
76
|
+
* Subtitle font family — used for card names, section labels, and nav items.
|
|
77
|
+
* Sits between heading and body in the typographic hierarchy.
|
|
78
|
+
*/
|
|
79
|
+
subtitleFontFamily?: string;
|
|
80
|
+
/** Google Fonts URLs to load when this preset is active. */
|
|
81
|
+
fontImports?: string[];
|
|
82
|
+
/** Display label for settings UI (e.g. "Tactical"). Built-in presets define this; custom presets must provide it. */
|
|
83
|
+
label?: string;
|
|
84
|
+
/** Short description for settings UI (e.g. "Tactical command center aesthetic"). */
|
|
85
|
+
description?: string;
|
|
86
|
+
/** Three representative hex colors for swatch display: [primary, dark-bg, light-bg]. */
|
|
87
|
+
colors?: [string, string, string];
|
|
88
|
+
/**
|
|
89
|
+
* Background layers rendered behind app content when this preset is active.
|
|
90
|
+
* Overridden by `theme.background` on the provider if both are set.
|
|
91
|
+
*/
|
|
92
|
+
background?: ReactNode;
|
|
93
|
+
/**
|
|
94
|
+
* Loader element used in loading states when this preset is active.
|
|
95
|
+
* Overridden by `theme.loader` on the provider if both are set.
|
|
96
|
+
*/
|
|
97
|
+
loader?: ReactNode;
|
|
98
|
+
}
|
|
99
|
+
type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'ember' | 'honey' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-punk' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite';
|
|
100
|
+
|
|
101
|
+
/** 10-shade color tuple (light → dark), compatible with Mantine's color format. */
|
|
102
|
+
type ColorShadesTuple = [string, string, string, string, string, string, string, string, string, string];
|
|
103
|
+
/**
|
|
104
|
+
* Generate a 10-shade Mantine color tuple from a single hex color.
|
|
105
|
+
* Input color maps to shade 6 (Mantine's default primary shade).
|
|
106
|
+
* Shades 0-5 are progressively lighter, 7-9 are progressively darker.
|
|
107
|
+
*/
|
|
108
|
+
declare function generateShades(hex: string): ColorShadesTuple;
|
|
109
|
+
|
|
110
|
+
declare const PRESETS: Record<PresetName, ThemePreset>;
|
|
111
|
+
|
|
112
|
+
/** Look up a preset by name. Falls back to default preset for unknown names. */
|
|
113
|
+
declare function getPreset(name: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): ThemePreset;
|
|
114
|
+
|
|
115
|
+
/** Token key → CSS variable name. Single source of truth for the mapping. */
|
|
116
|
+
declare const TOKEN_VAR_MAP: Record<keyof ElevasisTokenOverrides, string>;
|
|
117
|
+
/**
|
|
118
|
+
* Creates a CSS variables resolver from theme config.
|
|
119
|
+
*
|
|
120
|
+
* Merge order per scheme: PRESET_DEFAULTS → flat overrides → scheme-specific overrides
|
|
121
|
+
*/
|
|
122
|
+
declare function createCssVariablesResolver(tokens?: ElevasisCoreThemeConfig['tokens'], preset?: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): CSSVariablesResolver;
|
|
123
|
+
|
|
124
|
+
declare const mantineThemeOverride: MantineThemeOverride;
|
|
125
|
+
|
|
126
|
+
declare const componentThemes: MantineThemeOverride['components'];
|
|
127
|
+
|
|
128
|
+
declare const PresetsProvider: react.Provider<Record<string, ThemePreset>>;
|
|
129
|
+
declare function usePresetsContext(): Record<string, ThemePreset>;
|
|
130
|
+
|
|
131
|
+
/** Preset entry with display metadata for settings UI. */
|
|
132
|
+
interface PresetEntry {
|
|
133
|
+
/** Preset key (e.g. 'tactical', 'my-custom-brand'). */
|
|
134
|
+
value: string;
|
|
135
|
+
/** Display label (e.g. 'Tactical'). Falls back to titlecased key. */
|
|
136
|
+
label: string;
|
|
137
|
+
/** Short description. Falls back to empty string. */
|
|
138
|
+
description: string;
|
|
139
|
+
/** Three representative hex colors for swatch: [primary, dark-bg, light-bg]. Falls back to preset's dark/light primary + backgrounds. */
|
|
140
|
+
colors: [string, string, string];
|
|
141
|
+
/** True for presets not in the built-in PresetName union. */
|
|
142
|
+
isCustom: boolean;
|
|
143
|
+
}
|
|
144
|
+
/** Returns all available presets as UI-ready entries. */
|
|
145
|
+
declare function useAvailablePresets(): PresetEntry[];
|
|
146
|
+
|
|
147
|
+
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, useAvailablePresets, usePresetsContext };
|
|
148
|
+
export type { ColorShadesTuple, FrameworkThemeOverrides, PresetEntry, PresetName, ThemePreset };
|
package/dist/theme/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useAvailablePresets } from '../chunk-
|
|
2
|
-
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { useAvailablePresets } from '../chunk-COTI2QPO.js';
|
|
2
|
+
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-OFAXUZPZ.js';
|
|
3
|
+
import '../chunk-3DIU726S.js';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
import { getPreset } from '../index';
|
|
3
|
+
const ALL_PRESETS = [
|
|
4
|
+
'default',
|
|
5
|
+
'tactical',
|
|
6
|
+
'regal',
|
|
7
|
+
'cyber-volt',
|
|
8
|
+
'aurora',
|
|
9
|
+
'rose-gold',
|
|
10
|
+
'midnight',
|
|
11
|
+
'ember',
|
|
12
|
+
'honey',
|
|
13
|
+
'canopy',
|
|
14
|
+
'slate',
|
|
15
|
+
'cyber-strike',
|
|
16
|
+
'cyber-punk',
|
|
17
|
+
'cyber-void',
|
|
18
|
+
'nirvana',
|
|
19
|
+
'wave',
|
|
20
|
+
'synapse',
|
|
21
|
+
'cortex',
|
|
22
|
+
'helios',
|
|
23
|
+
'graphite'
|
|
24
|
+
];
|
|
25
|
+
/** Verify a preset has the required shape to prevent runtime crashes. */
|
|
26
|
+
function assertValidPreset(preset, name) {
|
|
27
|
+
expect(preset, `${name}: preset is defined`).toBeDefined();
|
|
28
|
+
expect(preset.light, `${name}: has light tokens`).toBeDefined();
|
|
29
|
+
expect(preset.dark, `${name}: has dark tokens`).toBeDefined();
|
|
30
|
+
expect(preset.light.primary, `${name}: light.primary`).toBeTruthy();
|
|
31
|
+
expect(preset.dark.primary, `${name}: dark.primary`).toBeTruthy();
|
|
32
|
+
}
|
|
33
|
+
describe('getPreset', () => {
|
|
34
|
+
it.each(ALL_PRESETS)('returns a valid preset for "%s"', (name) => {
|
|
35
|
+
const preset = getPreset(name);
|
|
36
|
+
assertValidPreset(preset, name);
|
|
37
|
+
});
|
|
38
|
+
it('falls back to default preset for unknown names', () => {
|
|
39
|
+
const fallback = getPreset('nonexistent-theme');
|
|
40
|
+
const defaultPreset = getPreset('default');
|
|
41
|
+
expect(fallback).toBe(defaultPreset);
|
|
42
|
+
});
|
|
43
|
+
it('falls back to default preset for empty string', () => {
|
|
44
|
+
const fallback = getPreset('');
|
|
45
|
+
const defaultPreset = getPreset('default');
|
|
46
|
+
expect(fallback).toBe(defaultPreset);
|
|
47
|
+
});
|
|
48
|
+
it('every preset has fontImports array (prevents fontImports crash)', () => {
|
|
49
|
+
for (const name of ALL_PRESETS) {
|
|
50
|
+
const preset = getPreset(name);
|
|
51
|
+
// fontImports is optional in the type, but every real preset should define it
|
|
52
|
+
// to avoid confusion — verify they all have it
|
|
53
|
+
expect(Array.isArray(preset.fontImports), `${name}: fontImports is array`).toBe(true);
|
|
54
|
+
expect(preset.fontImports.length, `${name}: has at least one font import`).toBeGreaterThan(0);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
it('every preset has subtitleFontFamily', () => {
|
|
58
|
+
for (const name of ALL_PRESETS) {
|
|
59
|
+
const preset = getPreset(name);
|
|
60
|
+
expect(preset.subtitleFontFamily, `${name}: subtitleFontFamily`).toBeTruthy();
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
it('all required token keys are present in light and dark', () => {
|
|
64
|
+
const requiredKeys = [
|
|
65
|
+
'primary',
|
|
66
|
+
'background',
|
|
67
|
+
'surface',
|
|
68
|
+
'surfaceHover',
|
|
69
|
+
'text',
|
|
70
|
+
'textDimmed',
|
|
71
|
+
'textSubtle',
|
|
72
|
+
'border',
|
|
73
|
+
'error',
|
|
74
|
+
'warning',
|
|
75
|
+
'success',
|
|
76
|
+
'glassBackground',
|
|
77
|
+
'glassBlur',
|
|
78
|
+
'shadow',
|
|
79
|
+
'cardShadow',
|
|
80
|
+
'durationFast',
|
|
81
|
+
'durationNormal',
|
|
82
|
+
'easing'
|
|
83
|
+
];
|
|
84
|
+
for (const name of ALL_PRESETS) {
|
|
85
|
+
const preset = getPreset(name);
|
|
86
|
+
for (const key of requiredKeys) {
|
|
87
|
+
expect(preset.light[key], `${name}.light.${key}`).toBeTruthy();
|
|
88
|
+
expect(preset.dark[key], `${name}.dark.${key}`).toBeTruthy();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import { CyberBackground } from '../../components/layout/backgrounds/CyberBackground';
|
|
3
|
+
/**
|
|
4
|
+
* Cyber-Volt preset — electric, neon-soaked, futuristic.
|
|
5
|
+
* Design: deep black base, electric cyan accent, neon micro-glow effects.
|
|
6
|
+
* Evokes: sci-fi interfaces, hacker terminals, retro-futurism.
|
|
7
|
+
*
|
|
8
|
+
* Bundled background: `CyberBackground` variant `volt` — default layers plus
|
|
9
|
+
* a circuit-board data flow (SVG traces with animated dash pulses + pulsing
|
|
10
|
+
* circuit nodes).
|
|
11
|
+
*/
|
|
12
|
+
export const cyberVoltPreset = {
|
|
13
|
+
background: createElement(CyberBackground, { variant: 'volt' }),
|
|
14
|
+
light: {
|
|
15
|
+
primary: '#0097A7',
|
|
16
|
+
primaryContrast: '#ffffff',
|
|
17
|
+
background: '#F5FAFB',
|
|
18
|
+
surface: 'transparent',
|
|
19
|
+
surfaceHover: 'rgba(0, 151, 167, 0.08)',
|
|
20
|
+
text: '#0A0E14',
|
|
21
|
+
textDimmed: '#2E3A4D',
|
|
22
|
+
textSubtle: '#556680',
|
|
23
|
+
border: 'rgba(10, 14, 20, 0.08)',
|
|
24
|
+
error: '#FF1744',
|
|
25
|
+
warning: '#FF9100',
|
|
26
|
+
success: '#00E676',
|
|
27
|
+
glassBackground: 'rgba(245, 250, 251, 0.25)',
|
|
28
|
+
glassBlur: 'blur(8px) saturate(180%)',
|
|
29
|
+
shadow: '0px 2px 6px rgba(0, 0, 0, 0.05), 0px 20px 48px -8px rgba(0, 0, 0, 0.14)',
|
|
30
|
+
cardShadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.03), 0 8px 24px -8px rgba(0, 0, 0, 0.06), 0 20px 48px -16px rgba(0, 0, 0, 0.04)',
|
|
31
|
+
durationFast: '80ms',
|
|
32
|
+
durationNormal: '160ms',
|
|
33
|
+
easing: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
34
|
+
destructiveFg: '#ffffff',
|
|
35
|
+
fontHeading: '"Chakra Petch", sans-serif',
|
|
36
|
+
fontSans: '"Chakra Petch", sans-serif'
|
|
37
|
+
},
|
|
38
|
+
dark: {
|
|
39
|
+
primary: '#00A8BD',
|
|
40
|
+
primaryContrast: '#001418',
|
|
41
|
+
background: '#030506',
|
|
42
|
+
surface: 'transparent',
|
|
43
|
+
surfaceHover: 'rgba(0, 229, 255, 0.06)',
|
|
44
|
+
text: '#E0F7FA',
|
|
45
|
+
textDimmed: '#80DEEA',
|
|
46
|
+
textSubtle: '#5E8A94',
|
|
47
|
+
border: 'rgba(0, 229, 255, 0.14)',
|
|
48
|
+
error: '#FF1744',
|
|
49
|
+
warning: '#FF9100',
|
|
50
|
+
success: '#00E676',
|
|
51
|
+
glassBackground: 'rgba(6, 14, 20, 0.4)',
|
|
52
|
+
glassBlur: 'blur(14px) saturate(200%)',
|
|
53
|
+
shadow: '0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3), 0 16px 36px -14px rgba(0, 0, 0, 0.4)',
|
|
54
|
+
cardShadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(0, 229, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.35), 0 14px 28px -10px rgba(0, 0, 0, 0.45), 0 24px 48px -18px rgba(0, 0, 0, 0.35)',
|
|
55
|
+
durationFast: '80ms',
|
|
56
|
+
durationNormal: '160ms',
|
|
57
|
+
easing: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
58
|
+
destructiveFg: '#ffffff',
|
|
59
|
+
fontHeading: '"Chakra Petch", sans-serif',
|
|
60
|
+
fontSans: '"Chakra Petch", sans-serif'
|
|
61
|
+
},
|
|
62
|
+
subtitleFontFamily: '"Chakra Petch", sans-serif',
|
|
63
|
+
framework: {
|
|
64
|
+
fontFamily: '"Chakra Petch", sans-serif',
|
|
65
|
+
headings: {
|
|
66
|
+
fontFamily: '"Chakra Petch", sans-serif'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
fontImports: ['https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&display=swap']
|
|
70
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regal preset — luxurious, commanding, distinguished.
|
|
3
|
+
* Design: deep black base, rich gold accent, elegant serif headings.
|
|
4
|
+
* Evokes: royal courts, gilt architecture, fine craftsmanship.
|
|
5
|
+
*/
|
|
6
|
+
export const regalPreset = {
|
|
7
|
+
light: {
|
|
8
|
+
primary: '#B8922F',
|
|
9
|
+
primaryContrast: '#ffffff',
|
|
10
|
+
background: '#F0F0F2',
|
|
11
|
+
surface: '#F7F7F8',
|
|
12
|
+
surfaceHover: '#E9E9EB',
|
|
13
|
+
text: '#2E2E30',
|
|
14
|
+
textDimmed: '#50505A',
|
|
15
|
+
textSubtle: '#8E8E96',
|
|
16
|
+
border: '#CCCCD2',
|
|
17
|
+
error: '#A83232',
|
|
18
|
+
warning: '#B87A1A',
|
|
19
|
+
success: '#3A7A3A',
|
|
20
|
+
glassBackground: 'rgba(247, 247, 248, 0.6)',
|
|
21
|
+
glassBlur: 'blur(12px)',
|
|
22
|
+
shadow: '0px 2px 6px -2px rgba(20, 20, 20, 0.12)',
|
|
23
|
+
cardShadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(20, 20, 20, 0.06), 0 4px 8px rgba(20, 20, 20, 0.04)',
|
|
24
|
+
durationFast: '180ms',
|
|
25
|
+
durationNormal: '320ms',
|
|
26
|
+
easing: 'cubic-bezier(0.25, 0.1, 0.25, 1)',
|
|
27
|
+
destructiveFg: '#ffffff',
|
|
28
|
+
fontHeading: '"Cinzel", serif',
|
|
29
|
+
fontSans: '"Inter", sans-serif'
|
|
30
|
+
},
|
|
31
|
+
dark: {
|
|
32
|
+
primary: '#AE8730',
|
|
33
|
+
primaryContrast: '#1A1400',
|
|
34
|
+
background: '#000000',
|
|
35
|
+
surface: '#0E0E0E',
|
|
36
|
+
surfaceHover: '#181818',
|
|
37
|
+
text: '#F5EEE0',
|
|
38
|
+
textDimmed: '#C8BA98',
|
|
39
|
+
textSubtle: '#A89880',
|
|
40
|
+
border: '#1D1D1D',
|
|
41
|
+
error: '#E05252',
|
|
42
|
+
warning: '#D4943C',
|
|
43
|
+
success: '#4AA84A',
|
|
44
|
+
glassBackground: 'rgba(14, 14, 14, 0.6)',
|
|
45
|
+
glassBlur: 'blur(14px)',
|
|
46
|
+
shadow: '0px 1px 2px rgba(0, 0, 0, 0.5), 0px 12px 32px -8px rgba(0, 0, 0, 0.6)',
|
|
47
|
+
cardShadow: 'inset 0 1px 0 rgba(212, 168, 67, 0.08), inset 0 0 0 1px rgba(212, 168, 67, 0.04), 0 2px 8px rgba(0, 0, 0, 0.4), 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 32px 64px -16px rgba(0, 0, 0, 0.4)',
|
|
48
|
+
durationFast: '180ms',
|
|
49
|
+
durationNormal: '320ms',
|
|
50
|
+
easing: 'cubic-bezier(0.25, 0.1, 0.25, 1)',
|
|
51
|
+
destructiveFg: '#ffffff',
|
|
52
|
+
fontHeading: '"Cinzel", serif',
|
|
53
|
+
fontSans: '"Inter", sans-serif'
|
|
54
|
+
},
|
|
55
|
+
subtitleFontFamily: '"Raleway", sans-serif',
|
|
56
|
+
framework: {
|
|
57
|
+
defaultRadius: 'xs',
|
|
58
|
+
fontFamily: '"Inter", sans-serif',
|
|
59
|
+
headings: {
|
|
60
|
+
fontFamily: '"Cinzel", serif',
|
|
61
|
+
fontWeight: '600'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
fontImports: [
|
|
65
|
+
'https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap',
|
|
66
|
+
'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap',
|
|
67
|
+
'https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap'
|
|
68
|
+
]
|
|
69
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import { ChromeBackground } from '../../components/layout/backgrounds/ChromeBackground';
|
|
3
|
+
/**
|
|
4
|
+
* Rose Gold preset — warm copper/rose luxury through a chrome refraction lens.
|
|
5
|
+
* - Playfair Display headings / DM Sans body
|
|
6
|
+
* - Copper-rose primary `#C8897C` on deep rose dark / muted copper `#A8695E` on pale rose light
|
|
7
|
+
* - Transparent surfaces so RoseGoldBackground's rotating copper beams bleed through cards
|
|
8
|
+
* - Heavy frosted glass (`blur(28px) saturate(180%)`) for legibility over animated beams
|
|
9
|
+
* - Pill-shaped buttons (`defaultRadius: 'xl'`)
|
|
10
|
+
* - RoseGoldBackground: eight slowly-rotating rose/copper light beams
|
|
11
|
+
*/
|
|
12
|
+
export const roseGoldPreset = {
|
|
13
|
+
subtitleFontFamily: '"Lora", serif',
|
|
14
|
+
fontImports: [
|
|
15
|
+
'https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap',
|
|
16
|
+
'https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap',
|
|
17
|
+
'https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap'
|
|
18
|
+
],
|
|
19
|
+
background: createElement(ChromeBackground, { variant: 'rose-gold' }),
|
|
20
|
+
light: {
|
|
21
|
+
primary: '#A8695E',
|
|
22
|
+
primaryContrast: '#ffffff',
|
|
23
|
+
background: '#F4F0EE',
|
|
24
|
+
surface: 'transparent',
|
|
25
|
+
surfaceHover: 'rgba(168, 105, 94, 0.08)',
|
|
26
|
+
text: '#2D1516',
|
|
27
|
+
textDimmed: '#5A4448',
|
|
28
|
+
textSubtle: '#9A848A',
|
|
29
|
+
border: 'rgba(45, 21, 22, 0.08)',
|
|
30
|
+
error: '#DC2626',
|
|
31
|
+
warning: '#F59E0B',
|
|
32
|
+
success: '#16A34A',
|
|
33
|
+
glassBackground: 'rgba(250, 246, 245, 0.55)',
|
|
34
|
+
glassBlur: 'blur(28px) saturate(180%)',
|
|
35
|
+
shadow: '0px 1px 2px rgba(45, 21, 22, 0.04), 0px 8px 24px -8px rgba(192, 122, 110, 0.16)',
|
|
36
|
+
cardShadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(45, 21, 22, 0.05), 0 10px 28px -6px rgba(45, 21, 22, 0.08), 0 30px 56px -14px rgba(192, 122, 110, 0.18)',
|
|
37
|
+
durationFast: '160ms',
|
|
38
|
+
durationNormal: '300ms',
|
|
39
|
+
easing: 'cubic-bezier(0.25, 0.1, 0.25, 1)',
|
|
40
|
+
destructiveFg: '#ffffff',
|
|
41
|
+
fontHeading: '"Playfair Display", serif',
|
|
42
|
+
fontSans: '"DM Sans", sans-serif'
|
|
43
|
+
},
|
|
44
|
+
dark: {
|
|
45
|
+
primary: '#A56B5E',
|
|
46
|
+
primaryContrast: '#2D1A16',
|
|
47
|
+
background: '#070405',
|
|
48
|
+
surface: 'transparent',
|
|
49
|
+
surfaceHover: '#221418',
|
|
50
|
+
text: '#F5E8E6',
|
|
51
|
+
textDimmed: '#D8B8B2',
|
|
52
|
+
textSubtle: '#B89A94',
|
|
53
|
+
border: 'rgba(216, 184, 178, 0.07)',
|
|
54
|
+
error: '#F87171',
|
|
55
|
+
warning: '#FBBF24',
|
|
56
|
+
success: '#4ADE80',
|
|
57
|
+
glassBackground: 'rgba(22, 14, 16, 0.35)',
|
|
58
|
+
glassBlur: 'blur(28px) saturate(180%)',
|
|
59
|
+
shadow: '0px 1px 2px rgba(0, 0, 0, 0.5), 0px 12px 32px -8px rgba(0, 0, 0, 0.6)',
|
|
60
|
+
cardShadow: 'inset 0 1px 0 rgba(216, 184, 178, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.45), 0 14px 34px -6px rgba(0, 0, 0, 0.55), 0 36px 68px -14px rgba(0, 0, 0, 0.45), 0 48px 96px -24px rgba(200, 137, 124, 0.16)',
|
|
61
|
+
durationFast: '160ms',
|
|
62
|
+
durationNormal: '300ms',
|
|
63
|
+
easing: 'cubic-bezier(0.25, 0.1, 0.25, 1)',
|
|
64
|
+
destructiveFg: '#ffffff',
|
|
65
|
+
fontHeading: '"Playfair Display", serif',
|
|
66
|
+
fontSans: '"DM Sans", sans-serif'
|
|
67
|
+
},
|
|
68
|
+
framework: {
|
|
69
|
+
fontFamily: '"DM Sans", sans-serif',
|
|
70
|
+
defaultRadius: 'xl',
|
|
71
|
+
headings: {
|
|
72
|
+
fontFamily: '"Playfair Display", serif',
|
|
73
|
+
fontWeight: '600'
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2978,7 +2978,7 @@ interface MembershipFeatureConfig {
|
|
|
2978
2978
|
*/
|
|
2979
2979
|
interface UserConfig {
|
|
2980
2980
|
theme?: {
|
|
2981
|
-
preset?: 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'ember' | 'obsidian' | 'honey' | 'abyss' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-punk' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | '
|
|
2981
|
+
preset?: 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'ember' | 'obsidian' | 'honey' | 'abyss' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-punk' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'canyon' | 'nord' | 'catppuccin' | 'tokyo-night' | 'gruvbox';
|
|
2982
2982
|
colorScheme?: 'light' | 'dark' | 'auto';
|
|
2983
2983
|
};
|
|
2984
2984
|
onboarding?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.1",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -243,9 +243,9 @@
|
|
|
243
243
|
"@microsoft/fetch-event-source": "^2.0.1"
|
|
244
244
|
},
|
|
245
245
|
"scripts": {
|
|
246
|
-
"build": "tsc",
|
|
246
|
+
"build": "tsc --noEmit",
|
|
247
247
|
"build:publish": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && node -e \"require('fs').rmSync('dist/_dts',{recursive:true,force:true})\"",
|
|
248
|
-
"dev": "tsc --watch",
|
|
248
|
+
"dev": "tsc --noEmit --watch",
|
|
249
249
|
"lint": "eslint src --max-warnings 0",
|
|
250
250
|
"check-types": "tsc --noEmit",
|
|
251
251
|
"test": "vitest run --passWithNoTests",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
export interface AdminGuardProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Path to redirect non-admin users to.
|
|
6
|
-
* @default '/'
|
|
7
|
-
*/
|
|
8
|
-
redirectTo?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Rendered while user readiness is being determined.
|
|
11
|
-
* When not provided, nothing is rendered during initialization.
|
|
12
|
-
*/
|
|
13
|
-
fallback?: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Headless route guard for platform admin pages.
|
|
17
|
-
*
|
|
18
|
-
* Reads `profile.is_platform_admin` from the nearest InitializationProvider.
|
|
19
|
-
* Non-admin users are redirected to `redirectTo` (default: '/').
|
|
20
|
-
*
|
|
21
|
-
* Must be nested inside a ProtectedRoute (or equivalent) so that
|
|
22
|
-
* `userReady` is guaranteed to be true when this guard runs.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* <ProtectedRoute>
|
|
26
|
-
* <AdminGuard fallback={<AppShellLoader />}>
|
|
27
|
-
* <AdminDashboard />
|
|
28
|
-
* </AdminGuard>
|
|
29
|
-
* </ProtectedRoute>
|
|
30
|
-
*/
|
|
31
|
-
export declare function AdminGuard({ children, redirectTo, fallback }: AdminGuardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
-
//# sourceMappingURL=AdminGuard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminGuard.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/AdminGuard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAgB,EAAE,QAAe,EAAE,EAAE,eAAe,kDA0B1F"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { InitializationError } from '../../initialization/hooks/useAppInitialization';
|
|
3
|
-
export interface ProtectedRouteProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
/**
|
|
6
|
-
* Path to redirect to when user is unauthenticated and the auth adapter
|
|
7
|
-
* does not provide a `signIn` function.
|
|
8
|
-
* @default '/login'
|
|
9
|
-
*/
|
|
10
|
-
redirectTo?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Rendered while initialization is in progress.
|
|
13
|
-
* When not provided, nothing is rendered during initialization.
|
|
14
|
-
*/
|
|
15
|
-
fallback?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Rendered when initialization fails with a non-organization error.
|
|
18
|
-
* Receives the error and a retry callback.
|
|
19
|
-
* When not provided, the error is silently swallowed (children not rendered).
|
|
20
|
-
*/
|
|
21
|
-
errorFallback?: (error: InitializationError, retry: () => void) => ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* When true (default), waits for both user AND organization to be ready
|
|
24
|
-
* before rendering children. When false, only waits for user readiness.
|
|
25
|
-
* @default true
|
|
26
|
-
*/
|
|
27
|
-
waitForOrganization?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Headless route guard for authenticated pages.
|
|
31
|
-
*
|
|
32
|
-
* Reads initialization state from the nearest InitializationProvider.
|
|
33
|
-
*
|
|
34
|
-
* When `canRecover()` returns true (refresh token exists), unauthenticated users
|
|
35
|
-
* are sent directly to WorkOS AuthKit via `signIn()`. WorkOS checks its
|
|
36
|
-
* server-side session and either signs the user in immediately (page-reload case)
|
|
37
|
-
* or shows a login form (logged-out case). Explicit logout destroys the
|
|
38
|
-
* server-side session, so the next auto-signIn correctly presents a login form
|
|
39
|
-
* rather than looping.
|
|
40
|
-
*
|
|
41
|
-
* When `canRecover()` returns false, falls back to navigating to `redirectTo`
|
|
42
|
-
* (default: '/login') with a `returnTo` search param.
|
|
43
|
-
*
|
|
44
|
-
* Organization-layer errors are allowed through -- routes like /invitations
|
|
45
|
-
* must be accessible even when the user has no org membership.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* // With custom fallback (your Mantine loader):
|
|
49
|
-
* <ProtectedRoute fallback={<AppShellLoader />}>
|
|
50
|
-
* <DashboardPage />
|
|
51
|
-
* </ProtectedRoute>
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* // Wait only for user, not org (e.g. /invitations route):
|
|
55
|
-
* <ProtectedRoute waitForOrganization={false}>
|
|
56
|
-
* <InvitationsPage />
|
|
57
|
-
* </ProtectedRoute>
|
|
58
|
-
*/
|
|
59
|
-
export declare function ProtectedRoute({ children, redirectTo, fallback, errorFallback, waitForOrganization }: ProtectedRouteProps): import("react/jsx-runtime").JSX.Element | null;
|
|
60
|
-
//# sourceMappingURL=ProtectedRoute.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProtectedRoute.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/ProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAA;AAE1F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IAC5E;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,UAAqB,EACrB,QAAe,EACf,aAAa,EACb,mBAA0B,EAC3B,EAAE,mBAAmB,kDAyDrB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AdminGuard Tests (shared @repo/ui guard)
|
|
3
|
-
*
|
|
4
|
-
* Tests role-based access control for platform admin pages:
|
|
5
|
-
* - Shows fallback while user is not ready
|
|
6
|
-
* - Renders children for platform admin users
|
|
7
|
-
* - Redirects non-admin users to redirectTo (default: '/')
|
|
8
|
-
* - Handles missing profile gracefully
|
|
9
|
-
* - Supports custom redirectTo
|
|
10
|
-
*/
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=AdminGuard.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminGuard.test.d.ts","sourceRoot":"","sources":["../../../../src/auth/guards/__tests__/AdminGuard.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProtectedRoute Tests (shared @repo/ui guard)
|
|
3
|
-
*
|
|
4
|
-
* Tests headless authentication guard behavior:
|
|
5
|
-
* - Shows fallback while initializing
|
|
6
|
-
* - Redirects unauthenticated users to login with returnTo
|
|
7
|
-
* - Renders children when user is ready
|
|
8
|
-
* - Renders children when org error (allows /invitations route pattern)
|
|
9
|
-
* - Shows errorFallback for non-organization errors
|
|
10
|
-
* - Waits for org readiness when waitForOrganization=true (default)
|
|
11
|
-
* - Renders after user ready when waitForOrganization=false
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=ProtectedRoute.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProtectedRoute.test.d.ts","sourceRoot":"","sources":["../../../../src/auth/guards/__tests__/ProtectedRoute.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
|
package/dist/auth/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC/E,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA"}
|