@metaboliccode-dev/widget 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -0
- package/dist/MetabolicDashboard/MetabolicDashboard.d.ts +2 -0
- package/dist/MetabolicDashboard/api/builtInReportPagesApi.d.ts +4 -0
- package/dist/MetabolicDashboard/api/createHttpDashboardContentFetchers.d.ts +10 -0
- package/dist/MetabolicDashboard/api/fetchReportPage.d.ts +10 -0
- package/dist/MetabolicDashboard/api/index.d.ts +8 -0
- package/dist/MetabolicDashboard/api/mapReportPages.d.ts +1 -0
- package/dist/MetabolicDashboard/api/mappers/index.d.ts +9 -0
- package/dist/MetabolicDashboard/api/mappers/mapAlertLabSummaryPage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/mapDashboardPage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/mapLabAnalysisPage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/mapLabResultsPage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/mapQuestionnaireAnalysisPage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/mapSuggestedProductsPage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/mapSupplementSchedulePage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/mapTotalPredictiveIndexPage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/mapWellnessIndicatorsPage.d.ts +3 -0
- package/dist/MetabolicDashboard/api/mappers/shared.d.ts +20 -0
- package/dist/MetabolicDashboard/api/metabolicDashboardApiKey.d.ts +3 -0
- package/dist/MetabolicDashboard/api/reportPageTypes.d.ts +185 -0
- package/dist/MetabolicDashboard/constants.d.ts +2 -0
- package/dist/MetabolicDashboard/dashboardContentFetchers.d.ts +2 -0
- package/dist/MetabolicDashboard/dashboardTab/DashboardTabContentCacheContext.d.ts +16 -0
- package/dist/MetabolicDashboard/dashboardTab/DashboardTabLoadError.d.ts +4 -0
- package/dist/MetabolicDashboard/dashboardTab/DashboardTabRenderErrorBoundary.d.ts +17 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/alertLabSummary.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/dashboard.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/labAnalysis.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/labResults.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/questionnaireAnalysis.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/suggestedProducts.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/supplementSchedule.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/totalPredictiveIndex.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/chunks/wellnessIndicators.d.ts +1 -0
- package/dist/MetabolicDashboard/dashboardTab/dashboardPageSubtitles.d.ts +9 -0
- package/dist/MetabolicDashboard/dashboardTab/dashboardTabDefinitions.d.ts +52 -0
- package/dist/MetabolicDashboard/dashboardTab/dashboardTabLazyRegistry.d.ts +9 -0
- package/dist/MetabolicDashboard/dashboardTab/dashboardTabModel.d.ts +24 -0
- package/dist/MetabolicDashboard/dashboardTab/useDashboardTabContent.d.ts +22 -0
- package/dist/MetabolicDashboard/index.d.ts +13 -0
- package/dist/MetabolicDashboard/metabolicDashboard/MetabolicDashboardApiKeyError.d.ts +4 -0
- package/dist/MetabolicDashboard/metabolicDashboard/MetabolicDashboardDefaultMain.d.ts +9 -0
- package/dist/MetabolicDashboard/metabolicDashboard/MetabolicDashboardMainContent.d.ts +15 -0
- package/dist/MetabolicDashboard/metabolicDashboard/MetabolicDashboardShell.d.ts +9 -0
- package/dist/MetabolicDashboard/metabolicDashboard/MetabolicDashboardSimulationBoundary.d.ts +13 -0
- package/dist/MetabolicDashboard/metabolicDashboard/MetabolicDashboardView.d.ts +18 -0
- package/dist/MetabolicDashboard/metabolicDashboard/useMetabolicDashboardBranding.d.ts +5 -0
- package/dist/MetabolicDashboard/metabolicDashboard/useMetabolicDashboardResolvedContentSources.d.ts +12 -0
- package/dist/MetabolicDashboard/sideMenuLogo.d.ts +3 -0
- package/dist/MetabolicDashboard/simulation/MetabolicDashboardSimulationPatientList.d.ts +7 -0
- package/dist/MetabolicDashboard/simulation/MetabolicDashboardSimulationPatientReportList.d.ts +7 -0
- package/dist/MetabolicDashboard/simulation/MetabolicDashboardSimulationSideMenuFooter.d.ts +7 -0
- package/dist/MetabolicDashboard/simulation/SimulationScreenShell.d.ts +7 -0
- package/dist/MetabolicDashboard/simulation/constants.d.ts +14 -0
- package/dist/MetabolicDashboard/simulation/useMetabolicDashboardSimulation.d.ts +23 -0
- package/dist/MetabolicDashboard/simulation/useSimulatedData.d.ts +3 -0
- package/dist/MetabolicDashboard/useActiveNavItem.d.ts +10 -0
- package/dist/MetabolicEmbedRoot.d.ts +5 -0
- package/dist/ag-charts.js +20 -0
- package/dist/alertLabSummary-BAIlZ2_U.js +4 -0
- package/dist/branding/LogoPlaceholder.d.ts +1 -0
- package/dist/branding/brandingToStyle.d.ts +3 -0
- package/dist/branding/defaultSidebarWidth.d.ts +1 -0
- package/dist/branding/defaults.d.ts +2 -0
- package/dist/branding/index.d.ts +5 -0
- package/dist/branding/resolveBranding.d.ts +2 -0
- package/dist/branding/types.d.ts +118 -0
- package/dist/components/AlertLabSummaryTab/AlertLabSummaryTabSkeleton.d.ts +6 -0
- package/dist/components/AlertLabSummaryTab/index.d.ts +5 -0
- package/dist/components/Button/index.d.ts +10 -0
- package/dist/components/DashboardTab/DashboardTabSkeleton.d.ts +6 -0
- package/dist/components/DashboardTab/index.d.ts +4 -0
- package/dist/components/LabAnalysisTab/LabAnalysisTabSkeleton.d.ts +6 -0
- package/dist/components/LabAnalysisTab/index.d.ts +5 -0
- package/dist/components/LabResultsTab/LabResultsTabSkeleton.d.ts +6 -0
- package/dist/components/LabResultsTab/index.d.ts +5 -0
- package/dist/components/PageHeader/index.d.ts +7 -0
- package/dist/components/QuestionnaireAnalysisTab/QuestionnaireAnalysisTabSkeleton.d.ts +6 -0
- package/dist/components/QuestionnaireAnalysisTab/index.d.ts +5 -0
- package/dist/components/SkeletonPrimitives/index.d.ts +11 -0
- package/dist/components/SuggestedProductsTab/SuggestedProductsTabSkeleton.d.ts +6 -0
- package/dist/components/SuggestedProductsTab/fallbackData.d.ts +2 -0
- package/dist/components/SuggestedProductsTab/index.d.ts +5 -0
- package/dist/components/SupplementScheduleTab/SupplementScheduleTabSkeleton.d.ts +6 -0
- package/dist/components/SupplementScheduleTab/fallbackData.d.ts +2 -0
- package/dist/components/SupplementScheduleTab/index.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts +13 -0
- package/dist/components/TotalPredictiveIndexTab/TotalPredictiveIndexTabSkeleton.d.ts +6 -0
- package/dist/components/TotalPredictiveIndexTab/index.d.ts +5 -0
- package/dist/components/WellnessIndicatorsTab/WellnessIndicatorsTabSkeleton.d.ts +6 -0
- package/dist/components/WellnessIndicatorsTab/index.d.ts +5 -0
- package/dist/components/dashboard/components/base/Badge.d.ts +7 -0
- package/dist/components/dashboard/components/base/DashboardCard.d.ts +5 -0
- package/dist/components/dashboard/components/base/TriadMarkIcon.d.ts +4 -0
- package/dist/components/dashboard/components/base/index.d.ts +6 -0
- package/dist/components/dashboard/components/composite/DashboardCardSectionHeader.d.ts +8 -0
- package/dist/components/dashboard/components/composite/MetabolicScoreBar.d.ts +4 -0
- package/dist/components/dashboard/components/composite/MetaflammationGauge.d.ts +5 -0
- package/dist/components/dashboard/components/composite/PractitionerNoteRow.d.ts +4 -0
- package/dist/components/dashboard/components/composite/SegmentedRangeBar.d.ts +16 -0
- package/dist/components/dashboard/components/composite/SegmentedRangeBarIndicator.d.ts +3 -0
- package/dist/components/dashboard/components/composite/SupplementScheduleTableRow.d.ts +5 -0
- package/dist/components/dashboard/components/composite/SupplementTriadMarkGroup.d.ts +3 -0
- package/dist/components/dashboard/components/composite/TriadRadar.d.ts +6 -0
- package/dist/components/dashboard/components/composite/index.d.ts +10 -0
- package/dist/components/dashboard/components/sections/AlertLabSummaryCard.d.ts +2 -0
- package/dist/components/dashboard/components/sections/LabAnalysisTriadCard.d.ts +2 -0
- package/dist/components/dashboard/components/sections/LabMetricRangeCard.d.ts +7 -0
- package/dist/components/dashboard/components/sections/LabResultsIntroCard.d.ts +6 -0
- package/dist/components/dashboard/components/sections/MetabolicTriadCategoryPanel/bodies.d.ts +24 -0
- package/dist/components/dashboard/components/sections/MetabolicTriadCategoryPanel/index.d.ts +3 -0
- package/dist/components/dashboard/components/sections/MetabolicTriadCategoryPanel/primitives.d.ts +22 -0
- package/dist/components/dashboard/components/sections/MetabolicTriadCategoryPanel/types.d.ts +54 -0
- package/dist/components/dashboard/components/sections/MetabolicTriadCategoryPanel.d.ts +1 -0
- package/dist/components/dashboard/components/sections/MetabolicTriadCategoryPanelSkeleton.d.ts +19 -0
- package/dist/components/dashboard/components/sections/MetabolicTriadIntroCard.d.ts +4 -0
- package/dist/components/dashboard/components/sections/MetabolicTriadSectionCard.d.ts +11 -0
- package/dist/components/dashboard/components/sections/MetaflammationGaugeCard.d.ts +2 -0
- package/dist/components/dashboard/components/sections/OverallMetabolicScoreCard.d.ts +2 -0
- package/dist/components/dashboard/components/sections/PractitionerNotesCard.d.ts +2 -0
- package/dist/components/dashboard/components/sections/ProfileSummaryCard.d.ts +5 -0
- package/dist/components/dashboard/components/sections/SupplementScheduleCard.d.ts +2 -0
- package/dist/components/dashboard/components/sections/TriadRadarReportCard.d.ts +4 -0
- package/dist/components/dashboard/components/sections/WelcomeMessageCard.d.ts +8 -0
- package/dist/components/dashboard/components/sections/WellnessIndicatorCard.d.ts +6 -0
- package/dist/components/dashboard/components/sections/index.d.ts +16 -0
- package/dist/components/dashboard/constants.d.ts +2 -0
- package/dist/components/dashboard/data/contentTypes.d.ts +301 -0
- package/dist/components/dashboard/data/index.d.ts +2 -0
- package/dist/components/dashboard/index.d.ts +3 -0
- package/dist/components/dashboard/triadTrendIndicator.d.ts +12 -0
- package/dist/components/icons/ArrowRightIcon.d.ts +3 -0
- package/dist/components/icons/CalendarIcon.d.ts +3 -0
- package/dist/components/icons/ChevronRightIcon.d.ts +3 -0
- package/dist/components/icons/ClockIcon.d.ts +3 -0
- package/dist/components/icons/DownloadIcon.d.ts +3 -0
- package/dist/components/icons/FileTextIcon.d.ts +3 -0
- package/dist/components/icons/InfoIcon.d.ts +3 -0
- package/dist/components/icons/PlayIcon.d.ts +2 -0
- package/dist/components/icons/UserIcon.d.ts +3 -0
- package/dist/components/icons/UsersIcon.d.ts +3 -0
- package/dist/components/icons/index.d.ts +10 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/dashboard-x4GA8cqi.js +4 -0
- package/dist/entry-ag-charts.d.ts +1 -0
- package/dist/hooks/useAgCharts.d.ts +2 -0
- package/dist/hooks/useBrandingChartTheme.d.ts +12 -0
- package/dist/iframe-config.d.ts +18 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +5254 -0
- package/dist/labAnalysis-CaOCpV2g.js +4 -0
- package/dist/labResults-CV9K31Os.js +4 -0
- package/dist/layout/ShellLayout.d.ts +2 -0
- package/dist/layout/SideMenu.d.ts +5 -0
- package/dist/layout/SideMenuFooter.d.ts +2 -0
- package/dist/layout/SideMenuUserProfileConfigError.d.ts +4 -0
- package/dist/layout/icons/AlertLabSummaryIcon.d.ts +1 -0
- package/dist/layout/icons/DashboardIcon.d.ts +1 -0
- package/dist/layout/icons/LabAnalysisIcon.d.ts +1 -0
- package/dist/layout/icons/LabResultsIcon.d.ts +1 -0
- package/dist/layout/icons/LogoutIcon.d.ts +1 -0
- package/dist/layout/icons/PredictiveIndexIcon.d.ts +1 -0
- package/dist/layout/icons/QuestionnaireIcon.d.ts +1 -0
- package/dist/layout/icons/SuggestedProductsIcon.d.ts +1 -0
- package/dist/layout/icons/SupplementScheduleIcon.d.ts +1 -0
- package/dist/layout/icons/WellnessIndicatorsIcon.d.ts +1 -0
- package/dist/layout/icons/iconBaseClass.d.ts +1 -0
- package/dist/layout/icons/index.d.ts +11 -0
- package/dist/layout/index.d.ts +5 -0
- package/dist/layout/sideMenuUserProfileMissingDisplayName.d.ts +2 -0
- package/dist/layout/types.d.ts +66 -0
- package/dist/mountMetabolicEmbed.d.ts +3 -0
- package/dist/questionnaireAnalysis-S3k2ZioO.js +4 -0
- package/dist/suggestedProducts-DJlYkHhQ.js +4 -0
- package/dist/supplementSchedule-D8PmXo88.js +4 -0
- package/dist/totalPredictiveIndex-DQdWbzgU.js +4 -0
- package/dist/vendor-ag-charts-BxXxUmfV.js +82654 -0
- package/dist/wellnessIndicators-CNQcbuvH.js +4 -0
- package/package.json +81 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DashboardContentFetchers, DashboardTabContentLoadErrorInfo } from "../dashboardTab/dashboardTabModel";
|
|
2
|
+
type MetabolicDashboardDefaultMainProps = {
|
|
3
|
+
activeItemId: string;
|
|
4
|
+
activeLabel: string;
|
|
5
|
+
contentFetchers: DashboardContentFetchers;
|
|
6
|
+
onDashboardTabContentLoadError?: (info: DashboardTabContentLoadErrorInfo) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function MetabolicDashboardDefaultMain({ activeItemId, activeLabel, contentFetchers, onDashboardTabContentLoadError, }: MetabolicDashboardDefaultMainProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { MetabolicDashboardProps } from "../../layout";
|
|
3
|
+
import type { DashboardContentFetchers } from "../dashboardTab/dashboardTabModel";
|
|
4
|
+
export type MetabolicDashboardMainContentProps = {
|
|
5
|
+
renderMainContent?: MetabolicDashboardProps["renderMainContent"];
|
|
6
|
+
content?: MetabolicDashboardProps["content"];
|
|
7
|
+
activeItemId: string;
|
|
8
|
+
activeLabel: string;
|
|
9
|
+
resolvedDashboardContentFetchers: DashboardContentFetchers;
|
|
10
|
+
onDashboardTabContentLoadError?: MetabolicDashboardProps["onDashboardTabContentLoadError"];
|
|
11
|
+
sideMenuUserProfile?: MetabolicDashboardProps["sideMenuUserProfile"];
|
|
12
|
+
apiKeyAccepted: boolean;
|
|
13
|
+
useDefaultTabData: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function MetabolicDashboardMainContent({ renderMainContent, content, activeItemId, activeLabel, resolvedDashboardContentFetchers, onDashboardTabContentLoadError, sideMenuUserProfile, apiKeyAccepted, useDefaultTabData, }: MetabolicDashboardMainContentProps): ReactNode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DashboardContentFetchers } from "../dashboardTab/dashboardTabModel";
|
|
2
|
+
import { type MetabolicDashboardViewProps } from "./MetabolicDashboardView";
|
|
3
|
+
export type MetabolicDashboardShellProps = {
|
|
4
|
+
wrapTabContentCache: boolean;
|
|
5
|
+
fetchers: DashboardContentFetchers;
|
|
6
|
+
cacheTtlMs: number;
|
|
7
|
+
viewProps: MetabolicDashboardViewProps;
|
|
8
|
+
};
|
|
9
|
+
export declare function MetabolicDashboardShell({ wrapTabContentCache, fetchers, cacheTtlMs, viewProps, }: MetabolicDashboardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
+
import type { SimulatedViewerRole } from "../simulation/constants";
|
|
3
|
+
export type MetabolicDashboardSimulationBoundaryProps = {
|
|
4
|
+
rootStyle: CSSProperties;
|
|
5
|
+
simulationSessionReady: boolean;
|
|
6
|
+
simRole: SimulatedViewerRole | null;
|
|
7
|
+
onSelectPatient: (patientId: string, patientLabel: string) => void;
|
|
8
|
+
onBackFromPatientPicker: () => void;
|
|
9
|
+
onSelectPatientReport: (reportId: string, reportLabel: string) => void;
|
|
10
|
+
onBackFromPatientReportPicker: () => void;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare function MetabolicDashboardSimulationBoundary({ rootStyle, simulationSessionReady, simRole, onSelectPatient, onBackFromPatientPicker, onSelectPatientReport, onBackFromPatientReportPicker, children, }: MetabolicDashboardSimulationBoundaryProps): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
+
import type { MetabolicDashboardProps } from "../../layout";
|
|
3
|
+
export type MetabolicDashboardViewProps = {
|
|
4
|
+
rootStyle: CSSProperties;
|
|
5
|
+
enableTabContentCache: boolean;
|
|
6
|
+
menuTitle?: ReactNode;
|
|
7
|
+
logo?: ReactNode;
|
|
8
|
+
sideMenuUserProfile?: MetabolicDashboardProps["sideMenuUserProfile"];
|
|
9
|
+
sideMenuFooterContent?: ReactNode;
|
|
10
|
+
sideMenuClassName?: string;
|
|
11
|
+
activeItemId: string;
|
|
12
|
+
handleNavItemClick: (id: string) => void;
|
|
13
|
+
shellClassName?: string;
|
|
14
|
+
sidebarWidthClassName?: string;
|
|
15
|
+
mainAreaClassName: string;
|
|
16
|
+
mainContent: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
export declare function MetabolicDashboardView({ rootStyle, enableTabContentCache, menuTitle, logo, sideMenuUserProfile, sideMenuFooterContent, sideMenuClassName, activeItemId, handleNavItemClick, shellClassName, sidebarWidthClassName, mainAreaClassName, mainContent, }: MetabolicDashboardViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MetabolicDashboardConfig } from "../../branding/types";
|
|
2
|
+
export declare function useMetabolicDashboardBranding(configPartial?: MetabolicDashboardConfig): {
|
|
3
|
+
resolvedBranding: import("../..").MetabolicBranding;
|
|
4
|
+
rootStyle: import("react").CSSProperties;
|
|
5
|
+
};
|
package/dist/MetabolicDashboard/metabolicDashboard/useMetabolicDashboardResolvedContentSources.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MetabolicDashboardProps } from "../../layout";
|
|
2
|
+
import type { DashboardContentFetchers } from "../dashboardTab/dashboardTabModel";
|
|
3
|
+
type UseMetabolicDashboardResolvedContentSourcesArgs = Pick<MetabolicDashboardProps, "config" | "apiKey" | "dashboardContentFetchers" | "content" | "renderMainContent" | "dashboardTabContentCacheTtlMs"> & {
|
|
4
|
+
simulationReportId: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
export declare function useMetabolicDashboardResolvedContentSources({ config: configPartial, apiKey: apiKeyProp, dashboardContentFetchers, content, renderMainContent, dashboardTabContentCacheTtlMs, simulationReportId, }: UseMetabolicDashboardResolvedContentSourcesArgs): {
|
|
7
|
+
apiKeyAccepted: boolean;
|
|
8
|
+
useDefaultTabData: boolean;
|
|
9
|
+
resolvedDashboardContentFetchers: DashboardContentFetchers;
|
|
10
|
+
resolvedCacheTtlMs: number;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export type MetabolicDashboardSimulationPatientListProps = {
|
|
3
|
+
rootStyle: CSSProperties;
|
|
4
|
+
onSelectPatient: (patientId: string, patientLabel: string) => void;
|
|
5
|
+
onBack: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function MetabolicDashboardSimulationPatientList({ rootStyle, onSelectPatient, onBack, }: MetabolicDashboardSimulationPatientListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export type MetabolicDashboardSimulationPatientReportListProps = {
|
|
3
|
+
rootStyle: CSSProperties;
|
|
4
|
+
onSelectReport: (reportId: string, reportLabel: string) => void;
|
|
5
|
+
onBack: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function MetabolicDashboardSimulationPatientReportList({ rootStyle, onSelectReport, onBack, }: MetabolicDashboardSimulationPatientReportListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SimulatedViewerRole } from "./constants";
|
|
2
|
+
export type MetabolicDashboardSimulationSideMenuFooterProps = {
|
|
3
|
+
role: SimulatedViewerRole | null;
|
|
4
|
+
patientLabel: string;
|
|
5
|
+
onChangeUser: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function MetabolicDashboardSimulationSideMenuFooter({ role, patientLabel, onChangeUser, }: MetabolicDashboardSimulationSideMenuFooterProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
+
export type SimulationScreenShellProps = {
|
|
3
|
+
rootStyle: CSSProperties;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
contentClassName?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function SimulationScreenShell({ rootStyle, children, contentClassName, }: SimulationScreenShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SimulatedViewerRole = "practitioner" | "patient";
|
|
2
|
+
export type SimulatedPatient = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export type SimulatedReportDate = {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const SIMULATED_PATIENTS: SimulatedPatient[];
|
|
11
|
+
export declare const SIMULATED_PATIENT_REPORT_DATES: SimulatedReportDate[];
|
|
12
|
+
export declare const simulationGateChoiceButtonClass = "group mb-sim-card-btn";
|
|
13
|
+
export declare const simulationPatientRowButtonClass = "mb-sim-row-btn";
|
|
14
|
+
export declare const simulationBackButtonClass = "mb-sim-animate-in mb-sim-back-btn";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { MetabolicDashboardViewerRole } from "../../layout/types";
|
|
2
|
+
import type { SimulatedViewerRole } from "./constants";
|
|
3
|
+
export declare function useMetabolicDashboardSimulation(viewerRole?: MetabolicDashboardViewerRole): {
|
|
4
|
+
simRole: SimulatedViewerRole | null;
|
|
5
|
+
setSimRole: import("react").Dispatch<import("react").SetStateAction<SimulatedViewerRole | null>>;
|
|
6
|
+
simPractitionerPatientId: string | null;
|
|
7
|
+
setSimPractitionerPatientId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
8
|
+
simPractitionerPatientLabel: string;
|
|
9
|
+
setSimPractitionerPatientLabel: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
10
|
+
simPatientReportId: string | null;
|
|
11
|
+
setSimPatientReportId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
12
|
+
simPatientReportLabel: string;
|
|
13
|
+
setSimPatientReportLabel: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
14
|
+
simulationReportId: string | undefined;
|
|
15
|
+
simulationSessionReady: boolean;
|
|
16
|
+
resetSimulationSession: () => void;
|
|
17
|
+
onChoosePractitioner: () => void;
|
|
18
|
+
onChoosePatient: () => void;
|
|
19
|
+
onBackFromPatientPicker: () => void;
|
|
20
|
+
onBackFromPatientReportPicker: () => void;
|
|
21
|
+
onSelectPatient: (patientId: string, patientLabel: string) => void;
|
|
22
|
+
onSelectPatientReport: (reportId: string, reportLabel: string) => void;
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type UseActiveNavItemOptions = {
|
|
2
|
+
activeNavItemIdProp?: string;
|
|
3
|
+
defaultActiveNavItemId: string;
|
|
4
|
+
onActiveNavItemChange?: (activeItemId: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function useActiveNavItem({ activeNavItemIdProp, defaultActiveNavItemId, onActiveNavItemChange, }: UseActiveNavItemOptions): {
|
|
7
|
+
activeItemId: string;
|
|
8
|
+
handleNavItemClick: (id: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MetabolicEmbedRootProps = {
|
|
2
|
+
allowedPostMessageOrigins?: readonly string[];
|
|
3
|
+
validatePostMessageConfig?: (event: MessageEvent) => boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare function MetabolicEmbedRoot({ allowedPostMessageOrigins, validatePostMessageConfig, }?: MetabolicEmbedRootProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { L as s, m as l, a as o, b as a, c as u } from "./vendor-ag-charts-BxXxUmfV.js";
|
|
2
|
+
let t = !1;
|
|
3
|
+
l.registerModules([o, a, u]);
|
|
4
|
+
function i(e) {
|
|
5
|
+
if (t) return;
|
|
6
|
+
let r = e == null ? void 0 : e.trim();
|
|
7
|
+
if (!r)
|
|
8
|
+
try {
|
|
9
|
+
r = "".trim();
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
r && (s.setLicenseKey(r), t = !0);
|
|
13
|
+
}
|
|
14
|
+
function m(e) {
|
|
15
|
+
i(e);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
i as ensureAgChartsModules,
|
|
19
|
+
m as useAgCharts
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LogoPlaceholder(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_SIDEBAR_WIDTH = "290px";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { metabolicBrandingToStyle } from "./brandingToStyle";
|
|
2
|
+
export { DEFAULT_METABOLIC_BRANDING } from "./defaults";
|
|
3
|
+
export { LogoPlaceholder } from "./LogoPlaceholder";
|
|
4
|
+
export { resolveMetabolicBranding } from "./resolveBranding";
|
|
5
|
+
export type { MetabolicBranding, MetabolicBrandingBadge, MetabolicBrandingButton, MetabolicBrandingColors, MetabolicBrandingFonts, MetabolicBrandingLogo, MetabolicBrandingPartial, MetabolicBrandingRadius, MetabolicBrandingSideMenu, MetabolicBrandingSizes, MetabolicDashboardConfig, } from "./types";
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export type MetabolicBrandingFonts = {
|
|
2
|
+
sans: string;
|
|
3
|
+
};
|
|
4
|
+
export type MetabolicBrandingColors = {
|
|
5
|
+
shellBackground: string;
|
|
6
|
+
shellBorder: string;
|
|
7
|
+
shellShadow: string;
|
|
8
|
+
sidebarBackground: string;
|
|
9
|
+
sidebarBorder: string;
|
|
10
|
+
navActiveBackground: string;
|
|
11
|
+
navHoverBackground: string;
|
|
12
|
+
sideMenuItemText: string;
|
|
13
|
+
sideMenuItemTextActive: string;
|
|
14
|
+
sideMenuIcon: string;
|
|
15
|
+
sideMenuIconActive: string;
|
|
16
|
+
textPrimary: string;
|
|
17
|
+
textMuted: string;
|
|
18
|
+
buttonBackground: string;
|
|
19
|
+
buttonBorder: string;
|
|
20
|
+
buttonText: string;
|
|
21
|
+
buttonHoverBackground: string;
|
|
22
|
+
cardBackground: string;
|
|
23
|
+
cardBorder: string;
|
|
24
|
+
cardShadow: string;
|
|
25
|
+
cardInlineButtonBackground: string;
|
|
26
|
+
cardInlineButtonBorder: string;
|
|
27
|
+
cardInlineButtonText: string;
|
|
28
|
+
cardInlineButtonHoverBackground: string;
|
|
29
|
+
badgeBackground: string;
|
|
30
|
+
badgeText: string;
|
|
31
|
+
badgeBorder: string;
|
|
32
|
+
badgeValueBackground: string;
|
|
33
|
+
badgeValueText: string;
|
|
34
|
+
badgeValueBorder: string;
|
|
35
|
+
};
|
|
36
|
+
export type MetabolicBrandingRadius = {
|
|
37
|
+
shell: string;
|
|
38
|
+
navItem: string;
|
|
39
|
+
button: string;
|
|
40
|
+
card: string;
|
|
41
|
+
badge: string;
|
|
42
|
+
};
|
|
43
|
+
export type MetabolicBrandingLogo = {
|
|
44
|
+
src?: string;
|
|
45
|
+
srcMobile?: string;
|
|
46
|
+
alt: string;
|
|
47
|
+
placeholder: boolean;
|
|
48
|
+
width?: string;
|
|
49
|
+
height?: string;
|
|
50
|
+
widthMobile?: string;
|
|
51
|
+
heightMobile?: string;
|
|
52
|
+
};
|
|
53
|
+
export type MetabolicBrandingSizes = {
|
|
54
|
+
sidebarWidth: string;
|
|
55
|
+
mainPadding: string;
|
|
56
|
+
cardPadding: string;
|
|
57
|
+
cardBorderWidth: string;
|
|
58
|
+
categoryPanelHeaderHeight: string;
|
|
59
|
+
};
|
|
60
|
+
export type MetabolicBrandingButton = {
|
|
61
|
+
paddingX: string;
|
|
62
|
+
paddingY: string;
|
|
63
|
+
borderRadius: string;
|
|
64
|
+
borderWidth: string;
|
|
65
|
+
fontSize: string;
|
|
66
|
+
fontWeight: string;
|
|
67
|
+
gap: string;
|
|
68
|
+
shadow: string;
|
|
69
|
+
};
|
|
70
|
+
export type MetabolicBrandingSideMenu = {
|
|
71
|
+
inset: string;
|
|
72
|
+
paddingX: string;
|
|
73
|
+
paddingY: string;
|
|
74
|
+
borderRadius: string;
|
|
75
|
+
borderWidth: string;
|
|
76
|
+
fontSize: string;
|
|
77
|
+
fontWeight: string;
|
|
78
|
+
gap: string;
|
|
79
|
+
shadow: string;
|
|
80
|
+
};
|
|
81
|
+
export type MetabolicBrandingBadge = {
|
|
82
|
+
paddingX: string;
|
|
83
|
+
paddingY: string;
|
|
84
|
+
valuePaddingX: string;
|
|
85
|
+
valuePaddingY: string;
|
|
86
|
+
borderRadius: string;
|
|
87
|
+
borderWidth: string;
|
|
88
|
+
fontSize: string;
|
|
89
|
+
fontWeight: string;
|
|
90
|
+
};
|
|
91
|
+
export type MetabolicBranding = {
|
|
92
|
+
title: string;
|
|
93
|
+
logo: MetabolicBrandingLogo;
|
|
94
|
+
fonts: MetabolicBrandingFonts;
|
|
95
|
+
colors: MetabolicBrandingColors;
|
|
96
|
+
radius: MetabolicBrandingRadius;
|
|
97
|
+
sizes: MetabolicBrandingSizes;
|
|
98
|
+
button: MetabolicBrandingButton;
|
|
99
|
+
sideMenu: MetabolicBrandingSideMenu;
|
|
100
|
+
badge: MetabolicBrandingBadge;
|
|
101
|
+
};
|
|
102
|
+
export type MetabolicBrandingPartial = {
|
|
103
|
+
title?: string;
|
|
104
|
+
logo?: Partial<MetabolicBrandingLogo>;
|
|
105
|
+
fonts?: Partial<MetabolicBrandingFonts>;
|
|
106
|
+
colors?: Partial<MetabolicBrandingColors>;
|
|
107
|
+
radius?: Partial<MetabolicBrandingRadius>;
|
|
108
|
+
sizes?: Partial<MetabolicBrandingSizes>;
|
|
109
|
+
button?: Partial<MetabolicBrandingButton>;
|
|
110
|
+
sideMenu?: Partial<MetabolicBrandingSideMenu>;
|
|
111
|
+
badge?: Partial<MetabolicBrandingBadge>;
|
|
112
|
+
card?: {
|
|
113
|
+
padding?: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export type MetabolicDashboardConfig = MetabolicBrandingPartial & {
|
|
117
|
+
apiKey?: string;
|
|
118
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AlertLabSummaryTabContent } from "../dashboard/data";
|
|
2
|
+
export type { AlertLabSummaryTabContent } from "../dashboard/data";
|
|
3
|
+
export declare function AlertLabSummaryTab({ content }: {
|
|
4
|
+
content: AlertLabSummaryTabContent;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type ButtonVariant = "default" | "soft" | "sideMenu" | "sideMenuFooter" | "trendRowStatusOptimal" | "trendRowStatusHigh" | "trendRowStatusLow";
|
|
3
|
+
export type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "className"> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
align?: "start" | "center";
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
};
|
|
10
|
+
export declare function Button({ className, fullWidth, align, variant, type, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type PageHeaderProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
subtitle?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function PageHeader({ title, subtitle, className }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { QuestionnaireAnalysisTabContent } from "../dashboard/data";
|
|
2
|
+
export type { QuestionnaireAnalysisTabContent } from "../dashboard/data";
|
|
3
|
+
export declare function QuestionnaireAnalysisTab({ content, }: {
|
|
4
|
+
content: QuestionnaireAnalysisTabContent;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare function TabSkeletonRoot({ children, className, }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function SkeletonRect({ className }: {
|
|
7
|
+
className?: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function SkeletonCircle({ className }: {
|
|
10
|
+
className?: string;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SuggestedProductsTabContent } from "../dashboard/data";
|
|
2
|
+
export type { SuggestedProductItemContent, SuggestedProductsTabContent, } from "../dashboard/data";
|
|
3
|
+
export declare function SuggestedProductsTab({ content }: {
|
|
4
|
+
content?: SuggestedProductsTabContent;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SupplementScheduleTabContent } from "../dashboard/data";
|
|
2
|
+
export type { PractitionerNotesContent, SupplementScheduleCardContent, SupplementScheduleRowContent, SupplementScheduleTabContent, } from "../dashboard/data";
|
|
3
|
+
export declare function SupplementScheduleTab({ content }: {
|
|
4
|
+
content?: SupplementScheduleTabContent;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FocusEvent, type MouseEvent, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export type TooltipProps = {
|
|
3
|
+
content: ReactNode;
|
|
4
|
+
children: ReactElement<{
|
|
5
|
+
"aria-describedby"?: string;
|
|
6
|
+
onMouseEnter?: (e: MouseEvent) => void;
|
|
7
|
+
onMouseLeave?: (e: MouseEvent) => void;
|
|
8
|
+
onFocus?: (e: FocusEvent) => void;
|
|
9
|
+
onBlur?: (e: FocusEvent) => void;
|
|
10
|
+
}>;
|
|
11
|
+
side?: "top" | "bottom";
|
|
12
|
+
};
|
|
13
|
+
export declare function Tooltip({ content, children, side }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TotalPredictiveIndexTabContent } from "../dashboard/data";
|
|
2
|
+
export type { TotalPredictiveIndexTabContent } from "../dashboard/data";
|
|
3
|
+
export declare function TotalPredictiveIndexTab({ content }: {
|
|
4
|
+
content: TotalPredictiveIndexTabContent;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WellnessIndicatorsTabContent } from "../dashboard/data";
|
|
2
|
+
export type { WellnessIndicatorsTabContent } from "../dashboard/data";
|
|
3
|
+
export declare function WellnessIndicatorsTab({ content }: {
|
|
4
|
+
content: WellnessIndicatorsTabContent;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type BadgeVariant = "default" | "value";
|
|
3
|
+
export declare function Badge({ children, className, variant, }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
variant?: BadgeVariant;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { ButtonProps } from "../../../Button";
|
|
2
|
+
export { Button } from "../../../Button";
|
|
3
|
+
export type { BadgeVariant } from "./Badge";
|
|
4
|
+
export { Badge } from "./Badge";
|
|
5
|
+
export { DashboardCard } from "./DashboardCard";
|
|
6
|
+
export { TriadMarkIcon } from "./TriadMarkIcon";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type DashboardCardSectionHeaderProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
trailing?: ReactNode;
|
|
5
|
+
trailingInline?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function DashboardCardSectionHeader({ title, trailing, trailingInline, className, }: DashboardCardSectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|