calcsuite-react 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +10 -7
- package/dist/calcsuite.js +950 -937
- package/dist/settings/SettingsContext.d.ts +3 -1
- package/package.json +1 -1
- package/src/theme.css +4 -4
|
@@ -13,8 +13,10 @@ interface SettingsCtx {
|
|
|
13
13
|
replace: (s: Settings) => void;
|
|
14
14
|
resolvedTheme: 'light' | 'dark' | 'highContrast';
|
|
15
15
|
}
|
|
16
|
-
export declare function SettingsProvider({ children }: {
|
|
16
|
+
export declare function SettingsProvider({ children, settings: initial, }: {
|
|
17
17
|
children: ReactNode;
|
|
18
|
+
/** Default settings (deep-partial). The user's in-app choices still persist and win. */
|
|
19
|
+
settings?: DeepPartial<Settings>;
|
|
18
20
|
}): import("react").JSX.Element;
|
|
19
21
|
export declare function useSettings(): SettingsCtx;
|
|
20
22
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "calcsuite-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Decimal-exact, offline-first financial calculator library for React — India (₹) & US ($). ~55 calculators, scientific calculator, live FX, export, launcher/dialog. The financial-calculator module of AceCBM (Ace Cloud Business Management).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"finance",
|
package/src/theme.css
CHANGED
|
@@ -461,7 +461,7 @@ td .in-txt { color: var(--fc-interest); }
|
|
|
461
461
|
|
|
462
462
|
/* FAB */
|
|
463
463
|
.fc-fab {
|
|
464
|
-
position: fixed; z-index:
|
|
464
|
+
position: fixed; z-index: 9000; width: 56px; height: 56px; border-radius: 50%;
|
|
465
465
|
border: 0; background: var(--fc-accent); color: #fff; cursor: pointer;
|
|
466
466
|
box-shadow: var(--fc-shadow);
|
|
467
467
|
display: flex; align-items: center; justify-content: center;
|
|
@@ -477,7 +477,7 @@ td .in-txt { color: var(--fc-interest); }
|
|
|
477
477
|
/* Dialog */
|
|
478
478
|
.dialog-backdrop {
|
|
479
479
|
position: fixed; inset: 0; background: rgba(10, 16, 20, 0.5);
|
|
480
|
-
display: flex; align-items: center; justify-content: center; z-index:
|
|
480
|
+
display: flex; align-items: center; justify-content: center; z-index: 2147483000; padding: 20px;
|
|
481
481
|
animation: fc-fade 0.12s ease;
|
|
482
482
|
}
|
|
483
483
|
.dialog {
|
|
@@ -501,7 +501,7 @@ td .in-txt { color: var(--fc-interest); }
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
/* Command palette */
|
|
504
|
-
.palette-backdrop { position: fixed; inset: 0; background: rgba(10, 16, 20, 0.4); z-index:
|
|
504
|
+
.palette-backdrop { position: fixed; inset: 0; background: rgba(10, 16, 20, 0.4); z-index: 2147483010; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
|
|
505
505
|
.palette { background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: 14px; width: min(560px, 92vw); box-shadow: var(--fc-shadow); overflow: hidden; }
|
|
506
506
|
.palette-input { width: 100%; border: 0; border-bottom: 1px solid var(--fc-line); outline: 0; background: transparent; color: var(--fc-ink); font: inherit; font-size: 16px; padding: 16px; }
|
|
507
507
|
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
|
|
@@ -577,7 +577,7 @@ td .in-txt { color: var(--fc-interest); }
|
|
|
577
577
|
bottom: 20px;
|
|
578
578
|
left: 50%;
|
|
579
579
|
transform: translateX(-50%);
|
|
580
|
-
z-index:
|
|
580
|
+
z-index: 2147483020;
|
|
581
581
|
padding: 10px 16px;
|
|
582
582
|
border-radius: 999px;
|
|
583
583
|
font-size: 13px;
|