ados-rcm 1.1.742 → 1.1.744

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.
@@ -7,10 +7,18 @@ declare global {
7
7
  includes(value: any): value is T;
8
8
  }
9
9
  }
10
+ export interface CustomTypographies {
11
+ }
10
12
  type CSSModuleClasses = {
11
13
  readonly [key: string]: string;
12
14
  };
13
- declare const keys: {
15
+ declare const classes: {
16
+ NoSelect: string;
17
+ NoTransition: string;
18
+ IsClickable: string;
19
+ IsInteractive: string;
20
+ };
21
+ declare const typographies: {
14
22
  Display1: string;
15
23
  Display2: string;
16
24
  Title1: string;
@@ -28,14 +36,15 @@ declare const keys: {
28
36
  Medium: string;
29
37
  SemiBold: string;
30
38
  Bold: string;
31
- NoSelect: string;
32
- NoTransition: string;
33
- IsClickable: string;
34
- IsInteractive: string;
35
39
  };
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;
40
+ type DefaultKeys = typeof classes & typeof typographies;
41
+ export type SFKeys = keyof DefaultKeys | Exclude<keyof CustomTypographies, '_ignore'>;
42
+ export type SFArg = SFKeys | (string & {
43
+ _?: never;
44
+ }) | false | undefined | null;
45
+ declare function setProperties(newStyles: Partial<CustomTypographies> | Record<string, string>): void;
46
+ declare function clsx(...args: SFArg[]): string;
47
+ declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T | SFArg)[]): string;
39
48
  /**
40
49
  * sF : Style Functions
41
50
  */
@@ -68,6 +77,6 @@ export declare const sF: {
68
77
  Bold: string;
69
78
  };
70
79
  additionalClasses: IAdditionalClasses;
71
- updateKeys: typeof updateKeys;
80
+ setProperties: typeof setProperties;
72
81
  };
73
82
  export {};