ados-rcm 1.1.743 → 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.
@@ -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;
@@ -7,10 +6,27 @@ declare global {
7
6
  includes(value: any): value is T;
8
7
  }
9
8
  }
9
+ export interface CustomTypographies {
10
+ _ignore?: never;
11
+ }
12
+ export interface DefaultTypographies {
13
+ }
10
14
  type CSSModuleClasses = {
11
15
  readonly [key: string]: string;
12
16
  };
13
- declare const keys: {
17
+ declare const classes: {
18
+ NoSelect: string;
19
+ NoTransition: string;
20
+ IsClickable: string;
21
+ IsInteractive: string;
22
+ };
23
+ declare const fontWeights: {
24
+ Regular: string;
25
+ Medium: string;
26
+ SemiBold: string;
27
+ Bold: string;
28
+ };
29
+ declare const defaultTypoData: {
14
30
  Display1: string;
15
31
  Display2: string;
16
32
  Title1: string;
@@ -24,21 +40,20 @@ declare const keys: {
24
40
  Label2: string;
25
41
  Caption1: string;
26
42
  Caption2: string;
27
- Regular: string;
28
- Medium: string;
29
- SemiBold: string;
30
- Bold: string;
31
- NoSelect: string;
32
- NoTransition: string;
33
- IsClickable: string;
34
- IsInteractive: string;
35
43
  };
36
- declare function updateKeys(): void;
37
- declare function clsx(...args: (keyof typeof keys)[] | unknown[]): string;
38
- declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T)[] | (keyof typeof keys)[] | unknown[]): string;
39
- /**
40
- * sF : Style Functions
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'>;
47
+ export type SFArg = SFKeys | (string & {
48
+ _?: never;
49
+ }) | false | undefined | null;
50
+ interface SetupOptions {
51
+ custom?: Partial<CustomTypographies> | Record<string, string>;
52
+ includeDefaults?: boolean;
53
+ }
54
+ declare function setup(options: SetupOptions): void;
55
+ declare function clsx(...args: SFArg[]): string;
56
+ declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T | SFArg)[]): string;
42
57
  export declare const sF: {
43
58
  clsx: typeof clsx;
44
59
  sclsx: typeof sclsx;
@@ -48,26 +63,6 @@ export declare const sF: {
48
63
  IsClickable: string;
49
64
  IsInteractive: string;
50
65
  };
51
- typographies: {
52
- Display1: string;
53
- Display2: string;
54
- Title1: string;
55
- Title2: string;
56
- Title3: string;
57
- Headline1: string;
58
- Headline2: string;
59
- Body1Normal: string;
60
- Body1Reading: string;
61
- Label1: string;
62
- Label2: string;
63
- Caption1: string;
64
- Caption2: string;
65
- Regular: string;
66
- Medium: string;
67
- SemiBold: string;
68
- Bold: string;
69
- };
70
- additionalClasses: IAdditionalClasses;
71
- updateKeys: typeof updateKeys;
66
+ setup: typeof setup;
72
67
  };
73
68
  export {};