@mindbill/react 0.28.1 → 0.28.2
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 +4 -7
- package/dist/index.d.ts +18 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,16 +32,13 @@ Choose a complete preset, then override only the tokens your design system owns.
|
|
|
32
32
|
```tsx
|
|
33
33
|
<ConnectedBillLifecycle
|
|
34
34
|
billId={billId}
|
|
35
|
-
appearance={{
|
|
36
|
-
preset: "orange-bright",
|
|
37
|
-
accentColor: "#ff4f0a",
|
|
38
|
-
fontFamily: "Inter, sans-serif",
|
|
39
|
-
borderRadius: "8px",
|
|
40
|
-
}}
|
|
35
|
+
appearance={{ preset: "midnight-cyan" }}
|
|
41
36
|
/>
|
|
42
37
|
```
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
`midnight-cyan` gives every billing surface a spacious pale-blue canvas, crisp white panels, midnight actions and typography, cyan-compatible accents, and pill-shaped controls. No extra CSS is required.
|
|
40
|
+
|
|
41
|
+
Available presets are `mindbill`, `qme-companion`, `orange-bright`, `clinical-blue`, and `midnight-cyan`. Preset names describe visual styles rather than customer or partner brands. Supported overrides include accent, accent text, background, surface, input background, text, muted text, border, font, panel radius, control radius, shadow, danger, success, and warning colors.
|
|
45
42
|
|
|
46
43
|
Add one authenticated route to your app. It maps the signed-in user's role to billing permissions, then mints an exact-origin token for that user in your MindBill organization. The Partner API key stays on the server.
|
|
47
44
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
|
4
4
|
import { BillReviewData as BillReviewData$1, BillLifecycleDelivery, BillReviewAttachment as BillReviewAttachment$1, BrowserBillSubmissionResult, BillLifecycleSessionProvider, BillReviewPayer as BillReviewPayer$1, BrowserBillSubmissionDocument, BillRemittanceSummary, BillEorDocument, BillPaymentRecord, BillLifecycleAction, BillLifecycleData, BillLifecycleClientOptions, BillLifecycleClient } from '@mindbill/browser';
|
|
5
5
|
export { BillActivityRecord, BillClaimsAdministratorContact, BillClaimsAdministratorDirectory, BillClaimsAdministratorMailingAddress, BillClaimsAdministratorPattern, BillEorDocument, BillLifecycleAction, BillLifecycleActionId, BillLifecycleClient, BillLifecycleClientOptions, BillLifecycleData, BillLifecycleDelivery, BillLifecycleSession, BillLifecycleSessionProvider, BillLifecycleSessionRequest, BillPaymentRecord, BillRemittanceSummary, BrowserBillSubmissionResult, CloseBillInput, PostBillPaymentInput, ReopenBillInput, SubmitSecondReviewInput, createBillLifecycleClient } from '@mindbill/browser';
|
|
6
6
|
|
|
7
|
-
type MindBillThemePreset = "mindbill" | "qme-companion" | "orange-bright" | "clinical-blue";
|
|
7
|
+
type MindBillThemePreset = "mindbill" | "qme-companion" | "orange-bright" | "clinical-blue" | "midnight-cyan";
|
|
8
8
|
type MindBillReactAppearance = MindBillAppearance & {
|
|
9
9
|
/** A complete starting point. Individual tokens below always win. */
|
|
10
10
|
preset?: MindBillThemePreset;
|
|
@@ -84,6 +84,23 @@ declare const mindBillThemePresets: {
|
|
|
84
84
|
readonly warningColor: "#d48806";
|
|
85
85
|
readonly fontFamily: "Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif";
|
|
86
86
|
};
|
|
87
|
+
readonly "midnight-cyan": {
|
|
88
|
+
readonly accentColor: "#05092e";
|
|
89
|
+
readonly accentTextColor: "#ffffff";
|
|
90
|
+
readonly backgroundColor: "#edf6ff";
|
|
91
|
+
readonly surfaceColor: "#ffffff";
|
|
92
|
+
readonly inputBackgroundColor: "#ffffff";
|
|
93
|
+
readonly textColor: "#05092e";
|
|
94
|
+
readonly mutedColor: "#596078";
|
|
95
|
+
readonly borderColor: "#d9dae1";
|
|
96
|
+
readonly borderRadius: "0px";
|
|
97
|
+
readonly controlRadius: "999px";
|
|
98
|
+
readonly shadow: "0 1px 2px rgba(5,9,46,.04)";
|
|
99
|
+
readonly dangerColor: "#b42318";
|
|
100
|
+
readonly successColor: "#167a58";
|
|
101
|
+
readonly warningColor: "#9a6418";
|
|
102
|
+
readonly fontFamily: "Geist, Inter, ui-sans-serif, system-ui, sans-serif";
|
|
103
|
+
};
|
|
87
104
|
};
|
|
88
105
|
declare function resolveMindBillAppearance(appearance: MindBillReactAppearance | undefined): MindBillReactAppearance;
|
|
89
106
|
declare function mindBillAppearanceStyle(appearance: MindBillReactAppearance | undefined, style?: CSSProperties): CSSProperties;
|
package/dist/index.js
CHANGED
|
@@ -72,6 +72,23 @@ var mindBillThemePresets = {
|
|
|
72
72
|
successColor: "#389e0d",
|
|
73
73
|
warningColor: "#d48806",
|
|
74
74
|
fontFamily: "Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif"
|
|
75
|
+
},
|
|
76
|
+
"midnight-cyan": {
|
|
77
|
+
accentColor: "#05092e",
|
|
78
|
+
accentTextColor: "#ffffff",
|
|
79
|
+
backgroundColor: "#edf6ff",
|
|
80
|
+
surfaceColor: "#ffffff",
|
|
81
|
+
inputBackgroundColor: "#ffffff",
|
|
82
|
+
textColor: "#05092e",
|
|
83
|
+
mutedColor: "#596078",
|
|
84
|
+
borderColor: "#d9dae1",
|
|
85
|
+
borderRadius: "0px",
|
|
86
|
+
controlRadius: "999px",
|
|
87
|
+
shadow: "0 1px 2px rgba(5,9,46,.04)",
|
|
88
|
+
dangerColor: "#b42318",
|
|
89
|
+
successColor: "#167a58",
|
|
90
|
+
warningColor: "#9a6418",
|
|
91
|
+
fontFamily: "Geist, Inter, ui-sans-serif, system-ui, sans-serif"
|
|
75
92
|
}
|
|
76
93
|
};
|
|
77
94
|
function resolveMindBillAppearance(appearance) {
|