ados-rcm 1.1.745 → 1.1.746
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/AModule/AUtils/sF.d.ts +5 -10
- package/dist/index.cjs.js +55 -55
- package/dist/index.es.js +903 -903
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
export interface CustomTypographies {
|
|
10
10
|
_ignore?: never;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface SFTypeSettings {
|
|
13
13
|
}
|
|
14
14
|
type CSSModuleClasses = {
|
|
15
15
|
readonly [key: string]: string;
|
|
@@ -41,14 +41,15 @@ declare const defaultTypoData: {
|
|
|
41
41
|
Caption1: string;
|
|
42
42
|
Caption2: string;
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
type IsDefaultsDisabled = 'DisableDefaults' extends keyof SFTypeSettings ? true : false;
|
|
45
|
+
type ActiveDefaultKeys = IsDefaultsDisabled extends true ? never : keyof typeof defaultTypoData;
|
|
45
46
|
type BaseKeys = typeof classes & typeof fontWeights;
|
|
46
|
-
export type SFKeys = keyof BaseKeys |
|
|
47
|
+
export type SFKeys = keyof BaseKeys | ActiveDefaultKeys | Exclude<keyof CustomTypographies, '_ignore'>;
|
|
47
48
|
export type SFArg = SFKeys | (string & {
|
|
48
49
|
_?: never;
|
|
49
50
|
}) | false | undefined | null;
|
|
50
51
|
interface SetupOptions {
|
|
51
|
-
|
|
52
|
+
addProperties?: Partial<CustomTypographies> | Record<string, string>;
|
|
52
53
|
includeDefaults?: boolean;
|
|
53
54
|
}
|
|
54
55
|
declare function setup(options: SetupOptions): void;
|
|
@@ -57,12 +58,6 @@ declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T
|
|
|
57
58
|
export declare const sF: {
|
|
58
59
|
clsx: typeof clsx;
|
|
59
60
|
sclsx: typeof sclsx;
|
|
60
|
-
classes: {
|
|
61
|
-
NoSelect: string;
|
|
62
|
-
NoTransition: string;
|
|
63
|
-
IsClickable: string;
|
|
64
|
-
IsInteractive: string;
|
|
65
|
-
};
|
|
66
61
|
setup: typeof setup;
|
|
67
62
|
};
|
|
68
63
|
export {};
|