@olonjs/core 1.0.71 → 1.0.73
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/index.d.ts +14 -5
- package/dist/olonjs-core.js +2317 -2234
- package/dist/olonjs-core.umd.cjs +52 -52
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -462,6 +462,7 @@ export declare interface ThemeBorderRadius {
|
|
|
462
462
|
sm: string;
|
|
463
463
|
md: string;
|
|
464
464
|
lg: string;
|
|
465
|
+
[key: string]: string;
|
|
465
466
|
}
|
|
466
467
|
|
|
467
468
|
export declare interface ThemeColors {
|
|
@@ -474,6 +475,7 @@ export declare interface ThemeColors {
|
|
|
474
475
|
text: string;
|
|
475
476
|
textMuted: string;
|
|
476
477
|
border: string;
|
|
478
|
+
[key: string]: string;
|
|
477
479
|
}
|
|
478
480
|
|
|
479
481
|
export declare interface ThemeConfig {
|
|
@@ -487,6 +489,13 @@ export declare interface ThemeCssConfig {
|
|
|
487
489
|
admin?: string;
|
|
488
490
|
}
|
|
489
491
|
|
|
492
|
+
export declare interface ThemeFontFamily {
|
|
493
|
+
primary: string;
|
|
494
|
+
mono: string;
|
|
495
|
+
display?: string;
|
|
496
|
+
[key: string]: string | undefined;
|
|
497
|
+
}
|
|
498
|
+
|
|
490
499
|
/**
|
|
491
500
|
* Theme Loader: injects the required CSS into the <head> and removes it on unmount.
|
|
492
501
|
* CSS strings are passed as props so the Engine controls injection; Tenant does not manage Admin CSS.
|
|
@@ -507,6 +516,10 @@ export declare const themeManager: {
|
|
|
507
516
|
setTheme: (theme: ThemeConfig) => void;
|
|
508
517
|
};
|
|
509
518
|
|
|
519
|
+
export declare interface ThemeTokenMap {
|
|
520
|
+
[key: string]: string;
|
|
521
|
+
}
|
|
522
|
+
|
|
510
523
|
export declare interface ThemeTokens {
|
|
511
524
|
colors: ThemeColors;
|
|
512
525
|
typography: ThemeTypography;
|
|
@@ -514,11 +527,7 @@ export declare interface ThemeTokens {
|
|
|
514
527
|
}
|
|
515
528
|
|
|
516
529
|
export declare interface ThemeTypography {
|
|
517
|
-
fontFamily:
|
|
518
|
-
primary: string;
|
|
519
|
-
mono: string;
|
|
520
|
-
display?: string;
|
|
521
|
-
};
|
|
530
|
+
fontFamily: ThemeFontFamily;
|
|
522
531
|
}
|
|
523
532
|
|
|
524
533
|
export declare function useConfig(): ConfigContextValue;
|