ados-rcm 1.1.744 → 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.
@@ -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 SFTypeSettings {
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 typographies: {
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,51 +40,24 @@ 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 DefaultKeys = typeof classes & typeof typographies;
41
- export type SFKeys = keyof DefaultKeys | Exclude<keyof CustomTypographies, '_ignore'>;
44
+ type IsDefaultsDisabled = 'DisableDefaults' extends keyof SFTypeSettings ? true : false;
45
+ type ActiveDefaultKeys = IsDefaultsDisabled extends true ? never : keyof typeof defaultTypoData;
46
+ type BaseKeys = typeof classes & typeof fontWeights;
47
+ export type SFKeys = keyof BaseKeys | ActiveDefaultKeys | Exclude<keyof CustomTypographies, '_ignore'>;
42
48
  export type SFArg = SFKeys | (string & {
43
49
  _?: never;
44
50
  }) | false | undefined | null;
45
- declare function setProperties(newStyles: Partial<CustomTypographies> | Record<string, string>): void;
51
+ interface SetupOptions {
52
+ addProperties?: Partial<CustomTypographies> | Record<string, string>;
53
+ includeDefaults?: boolean;
54
+ }
55
+ declare function setup(options: SetupOptions): void;
46
56
  declare function clsx(...args: SFArg[]): string;
47
57
  declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T | SFArg)[]): string;
48
- /**
49
- * sF : Style Functions
50
- */
51
58
  export declare const sF: {
52
59
  clsx: typeof clsx;
53
60
  sclsx: typeof sclsx;
54
- classes: {
55
- NoSelect: string;
56
- NoTransition: string;
57
- IsClickable: string;
58
- IsInteractive: string;
59
- };
60
- typographies: {
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;
61
+ setup: typeof setup;
81
62
  };
82
63
  export {};