ados-rcm 1.1.744 → 1.1.745
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 +19 -33
- package/dist/index.cjs.js +82 -82
- package/dist/index.es.js +2912 -2910
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IAdditionalClasses } from '../AComponents/ATheme/ATheme';
|
|
2
1
|
declare global {
|
|
3
2
|
interface Array<T> {
|
|
4
3
|
includes(value: any): value is T;
|
|
@@ -8,6 +7,9 @@ declare global {
|
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
9
|
export interface CustomTypographies {
|
|
10
|
+
_ignore?: never;
|
|
11
|
+
}
|
|
12
|
+
export interface DefaultTypographies {
|
|
11
13
|
}
|
|
12
14
|
type CSSModuleClasses = {
|
|
13
15
|
readonly [key: string]: string;
|
|
@@ -18,7 +20,13 @@ declare const classes: {
|
|
|
18
20
|
IsClickable: string;
|
|
19
21
|
IsInteractive: string;
|
|
20
22
|
};
|
|
21
|
-
declare const
|
|
23
|
+
declare const fontWeights: {
|
|
24
|
+
Regular: string;
|
|
25
|
+
Medium: string;
|
|
26
|
+
SemiBold: string;
|
|
27
|
+
Bold: string;
|
|
28
|
+
};
|
|
29
|
+
declare const defaultTypoData: {
|
|
22
30
|
Display1: string;
|
|
23
31
|
Display2: string;
|
|
24
32
|
Title1: string;
|
|
@@ -32,22 +40,20 @@ declare const typographies: {
|
|
|
32
40
|
Label2: string;
|
|
33
41
|
Caption1: string;
|
|
34
42
|
Caption2: string;
|
|
35
|
-
Regular: string;
|
|
36
|
-
Medium: string;
|
|
37
|
-
SemiBold: string;
|
|
38
|
-
Bold: string;
|
|
39
43
|
};
|
|
40
|
-
type
|
|
41
|
-
|
|
44
|
+
export type BuiltInTypoKeys = keyof typeof defaultTypoData;
|
|
45
|
+
type BaseKeys = typeof classes & typeof fontWeights;
|
|
46
|
+
export type SFKeys = keyof BaseKeys | keyof DefaultTypographies | Exclude<keyof CustomTypographies, '_ignore'>;
|
|
42
47
|
export type SFArg = SFKeys | (string & {
|
|
43
48
|
_?: never;
|
|
44
49
|
}) | false | undefined | null;
|
|
45
|
-
|
|
50
|
+
interface SetupOptions {
|
|
51
|
+
custom?: Partial<CustomTypographies> | Record<string, string>;
|
|
52
|
+
includeDefaults?: boolean;
|
|
53
|
+
}
|
|
54
|
+
declare function setup(options: SetupOptions): void;
|
|
46
55
|
declare function clsx(...args: SFArg[]): string;
|
|
47
56
|
declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T | SFArg)[]): string;
|
|
48
|
-
/**
|
|
49
|
-
* sF : Style Functions
|
|
50
|
-
*/
|
|
51
57
|
export declare const sF: {
|
|
52
58
|
clsx: typeof clsx;
|
|
53
59
|
sclsx: typeof sclsx;
|
|
@@ -57,26 +63,6 @@ export declare const sF: {
|
|
|
57
63
|
IsClickable: string;
|
|
58
64
|
IsInteractive: string;
|
|
59
65
|
};
|
|
60
|
-
|
|
61
|
-
Display1: string;
|
|
62
|
-
Display2: string;
|
|
63
|
-
Title1: string;
|
|
64
|
-
Title2: string;
|
|
65
|
-
Title3: string;
|
|
66
|
-
Headline1: string;
|
|
67
|
-
Headline2: string;
|
|
68
|
-
Body1Normal: string;
|
|
69
|
-
Body1Reading: string;
|
|
70
|
-
Label1: string;
|
|
71
|
-
Label2: string;
|
|
72
|
-
Caption1: string;
|
|
73
|
-
Caption2: string;
|
|
74
|
-
Regular: string;
|
|
75
|
-
Medium: string;
|
|
76
|
-
SemiBold: string;
|
|
77
|
-
Bold: string;
|
|
78
|
-
};
|
|
79
|
-
additionalClasses: IAdditionalClasses;
|
|
80
|
-
setProperties: typeof setProperties;
|
|
66
|
+
setup: typeof setup;
|
|
81
67
|
};
|
|
82
68
|
export {};
|