@descope/flow-components 2.0.417 → 2.0.418

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,17 +1,29 @@
1
1
  type ComponentClass = {
2
2
  cssVarList: Record<string, string>;
3
3
  };
4
+ type CountryCode = {
5
+ name: string;
6
+ dialCode: string;
7
+ code: string;
8
+ };
4
9
  interface IComponentThemeManager {
5
- currentThemeName: string[];
6
- currentTheme: () => string;
10
+ currentThemeName: string;
11
+ currentTheme: Theme;
7
12
  themes: Record<string, string>;
8
- hasThemes: () => boolean;
13
+ hasThemes: boolean;
9
14
  }
15
+ type Palette = {
16
+ main: string;
17
+ light: string;
18
+ highlight: string;
19
+ dark: string;
20
+ contrast: string;
21
+ };
10
22
  declare const globalsThemeToStyle: (theme: string, themeName: string) => string;
11
23
  declare const createComponentsTheme: (componentsTheme: Record<string, string>) => Record<string, any>;
12
24
  declare const themeToStyle: (theme: Theme, themeName?: string) => Record<string, any>;
13
25
  declare const componentsThemeManager: IComponentThemeManager;
14
- declare const genColor: (val: string, theme?: string) => Record<string, string>;
26
+ declare const genColor: (val: string, theme?: string) => Palette;
15
27
  declare const themeVars: Theme;
16
28
  declare const defaultTheme: Theme;
17
29
  declare const darkTheme: Theme;
@@ -36,7 +48,9 @@ export declare const EnrichedTextClass: ComponentClass;
36
48
  export declare const TextAreaClass: ComponentClass;
37
49
  export declare const TextFieldClass: ComponentClass;
38
50
  export declare const ImageClass: ComponentClass;
39
- export declare const PhoneFieldClass: ComponentClass;
51
+ export declare const PhoneFieldClass: ComponentClass & {
52
+ CountryCodes: CountryCode[];
53
+ };
40
54
  export declare const PhoneFieldInputBoxClass: ComponentClass;
41
55
  export declare const NewPasswordClass: ComponentClass;
42
56
  export declare const RecaptchaClass: ComponentClass;
package/dist/index.d.ts CHANGED
@@ -922,17 +922,29 @@ declare const Alert: React.ForwardRefExoticComponent<Props & React.RefAttributes
922
922
  type ComponentClass = {
923
923
  cssVarList: Record<string, string>;
924
924
  };
925
+ type CountryCode = {
926
+ name: string;
927
+ dialCode: string;
928
+ code: string;
929
+ };
925
930
  interface IComponentThemeManager {
926
- currentThemeName: string[];
927
- currentTheme: () => string;
931
+ currentThemeName: string;
932
+ currentTheme: Theme;
928
933
  themes: Record<string, string>;
929
- hasThemes: () => boolean;
934
+ hasThemes: boolean;
930
935
  }
936
+ type Palette = {
937
+ main: string;
938
+ light: string;
939
+ highlight: string;
940
+ dark: string;
941
+ contrast: string;
942
+ };
931
943
  declare const globalsThemeToStyle: (theme: string, themeName: string) => string;
932
944
  declare const createComponentsTheme: (componentsTheme: Record<string, string>) => Record<string, any>;
933
945
  declare const themeToStyle: (theme: Theme, themeName?: string) => Record<string, any>;
934
946
  declare const componentsThemeManager: IComponentThemeManager;
935
- declare const genColor: (val: string, theme?: string) => Record<string, string>;
947
+ declare const genColor: (val: string, theme?: string) => Palette;
936
948
  declare const themeVars: Theme;
937
949
  declare const defaultTheme: Theme;
938
950
  declare const darkTheme: Theme;
@@ -957,7 +969,9 @@ declare const EnrichedTextClass: ComponentClass;
957
969
  declare const TextAreaClass: ComponentClass;
958
970
  declare const TextFieldClass: ComponentClass;
959
971
  declare const ImageClass: ComponentClass;
960
- declare const PhoneFieldClass: ComponentClass;
972
+ declare const PhoneFieldClass: ComponentClass & {
973
+ CountryCodes: CountryCode[];
974
+ };
961
975
  declare const PhoneFieldInputBoxClass: ComponentClass;
962
976
  declare const NewPasswordClass: ComponentClass;
963
977
  declare const RecaptchaClass: ComponentClass;
@@ -1,17 +1,29 @@
1
1
  type ComponentClass = {
2
2
  cssVarList: Record<string, string>;
3
3
  };
4
+ type CountryCode = {
5
+ name: string;
6
+ dialCode: string;
7
+ code: string;
8
+ };
4
9
  interface IComponentThemeManager {
5
- currentThemeName: string[];
6
- currentTheme: () => string;
10
+ currentThemeName: string;
11
+ currentTheme: Theme;
7
12
  themes: Record<string, string>;
8
- hasThemes: () => boolean;
13
+ hasThemes: boolean;
9
14
  }
15
+ type Palette = {
16
+ main: string;
17
+ light: string;
18
+ highlight: string;
19
+ dark: string;
20
+ contrast: string;
21
+ };
10
22
  declare const globalsThemeToStyle: (theme: string, themeName: string) => string;
11
23
  declare const createComponentsTheme: (componentsTheme: Record<string, string>) => Record<string, any>;
12
24
  declare const themeToStyle: (theme: Theme, themeName?: string) => Record<string, any>;
13
25
  declare const componentsThemeManager: IComponentThemeManager;
14
- declare const genColor: (val: string, theme?: string) => Record<string, string>;
26
+ declare const genColor: (val: string, theme?: string) => Palette;
15
27
  declare const themeVars: Theme;
16
28
  declare const defaultTheme: Theme;
17
29
  declare const darkTheme: Theme;
@@ -36,7 +48,9 @@ export declare const EnrichedTextClass: ComponentClass;
36
48
  export declare const TextAreaClass: ComponentClass;
37
49
  export declare const TextFieldClass: ComponentClass;
38
50
  export declare const ImageClass: ComponentClass;
39
- export declare const PhoneFieldClass: ComponentClass;
51
+ export declare const PhoneFieldClass: ComponentClass & {
52
+ CountryCodes: CountryCode[];
53
+ };
40
54
  export declare const PhoneFieldInputBoxClass: ComponentClass;
41
55
  export declare const NewPasswordClass: ComponentClass;
42
56
  export declare const RecaptchaClass: ComponentClass;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.417",
3
+ "version": "2.0.418",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",