ados-rcm 1.1.745 → 1.1.747
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 +14 -18
- package/dist/index.cjs.js +53 -53
- package/dist/index.es.js +871 -875
- package/package.json +1 -1
|
@@ -6,10 +6,12 @@ declare global {
|
|
|
6
6
|
includes(value: any): value is T;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface AddTypographies {
|
|
10
10
|
_ignore?: never;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type SFCategory = 'classes' | 'fontWeights' | 'typographies';
|
|
13
|
+
export interface SFTypeSettings {
|
|
14
|
+
excludeDefaults?: ReadonlyArray<SFCategory>;
|
|
13
15
|
}
|
|
14
16
|
type CSSModuleClasses = {
|
|
15
17
|
readonly [key: string]: string;
|
|
@@ -26,7 +28,7 @@ declare const fontWeights: {
|
|
|
26
28
|
SemiBold: string;
|
|
27
29
|
Bold: string;
|
|
28
30
|
};
|
|
29
|
-
declare const
|
|
31
|
+
declare const typographies: {
|
|
30
32
|
Display1: string;
|
|
31
33
|
Display2: string;
|
|
32
34
|
Title1: string;
|
|
@@ -41,28 +43,22 @@ declare const defaultTypoData: {
|
|
|
41
43
|
Caption1: string;
|
|
42
44
|
Caption2: string;
|
|
43
45
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
type ExcludedUnion = SFTypeSettings extends {
|
|
47
|
+
excludeDefaults: ReadonlyArray<infer U>;
|
|
48
|
+
} ? U : never;
|
|
49
|
+
type ActiveClassKeys = 'classes' extends ExcludedUnion ? never : keyof typeof classes;
|
|
50
|
+
type ActiveFontKeys = 'fontWeights' extends ExcludedUnion ? never : keyof typeof fontWeights;
|
|
51
|
+
type ActiveTypoKeys = 'typographies' extends ExcludedUnion ? never : keyof typeof typographies;
|
|
52
|
+
export type SFKeys = ActiveClassKeys | ActiveFontKeys | ActiveTypoKeys | Exclude<keyof AddTypographies, '_ignore'>;
|
|
47
53
|
export type SFArg = SFKeys | (string & {
|
|
48
54
|
_?: never;
|
|
49
55
|
}) | false | undefined | null;
|
|
50
|
-
|
|
51
|
-
custom?: Partial<CustomTypographies> | Record<string, string>;
|
|
52
|
-
includeDefaults?: boolean;
|
|
53
|
-
}
|
|
54
|
-
declare function setup(options: SetupOptions): void;
|
|
56
|
+
declare function addProperties(props: Partial<AddTypographies> | Record<string, string>): void;
|
|
55
57
|
declare function clsx(...args: SFArg[]): string;
|
|
56
58
|
declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T | SFArg)[]): string;
|
|
57
59
|
export declare const sF: {
|
|
58
60
|
clsx: typeof clsx;
|
|
59
61
|
sclsx: typeof sclsx;
|
|
60
|
-
|
|
61
|
-
NoSelect: string;
|
|
62
|
-
NoTransition: string;
|
|
63
|
-
IsClickable: string;
|
|
64
|
-
IsInteractive: string;
|
|
65
|
-
};
|
|
66
|
-
setup: typeof setup;
|
|
62
|
+
addProperties: typeof addProperties;
|
|
67
63
|
};
|
|
68
64
|
export {};
|