@digitaldefiance/express-suite-react-components 2.1.35

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.
Files changed (92) hide show
  1. package/README.md +268 -0
  2. package/package.json +72 -0
  3. package/src/auth/Private.d.ts +8 -0
  4. package/src/auth/Private.d.ts.map +1 -0
  5. package/src/auth/PrivateRoute.d.ts +10 -0
  6. package/src/auth/PrivateRoute.d.ts.map +1 -0
  7. package/src/auth/UnAuthRoute.d.ts +10 -0
  8. package/src/auth/UnAuthRoute.d.ts.map +1 -0
  9. package/src/auth/index.d.ts +4 -0
  10. package/src/auth/index.d.ts.map +1 -0
  11. package/src/components/ApiAccess.d.ts +15 -0
  12. package/src/components/ApiAccess.d.ts.map +1 -0
  13. package/src/components/BackupCodeLoginForm.d.ts +46 -0
  14. package/src/components/BackupCodeLoginForm.d.ts.map +1 -0
  15. package/src/components/BackupCodesForm.d.ts +25 -0
  16. package/src/components/BackupCodesForm.d.ts.map +1 -0
  17. package/src/components/ChangePasswordForm.d.ts +25 -0
  18. package/src/components/ChangePasswordForm.d.ts.map +1 -0
  19. package/src/components/ConfirmationDialog.d.ts +12 -0
  20. package/src/components/ConfirmationDialog.d.ts.map +1 -0
  21. package/src/components/CurrencyCodeSelector.d.ts +8 -0
  22. package/src/components/CurrencyCodeSelector.d.ts.map +1 -0
  23. package/src/components/CurrencyInput.d.ts +11 -0
  24. package/src/components/CurrencyInput.d.ts.map +1 -0
  25. package/src/components/DashboardPage.d.ts +7 -0
  26. package/src/components/DashboardPage.d.ts.map +1 -0
  27. package/src/components/DropdownMenu.d.ts +15 -0
  28. package/src/components/DropdownMenu.d.ts.map +1 -0
  29. package/src/components/ExpirationSecondsSelector.d.ts +12 -0
  30. package/src/components/ExpirationSecondsSelector.d.ts.map +1 -0
  31. package/src/components/Flag.d.ts +9 -0
  32. package/src/components/Flag.d.ts.map +1 -0
  33. package/src/components/ForgotPasswordForm.d.ts +17 -0
  34. package/src/components/ForgotPasswordForm.d.ts.map +1 -0
  35. package/src/components/LoginForm.d.ts +43 -0
  36. package/src/components/LoginForm.d.ts.map +1 -0
  37. package/src/components/LogoutPage.d.ts +7 -0
  38. package/src/components/LogoutPage.d.ts.map +1 -0
  39. package/src/components/RegisterForm.d.ts +53 -0
  40. package/src/components/RegisterForm.d.ts.map +1 -0
  41. package/src/components/ResetPasswordForm.d.ts +22 -0
  42. package/src/components/ResetPasswordForm.d.ts.map +1 -0
  43. package/src/components/SideMenu.d.ts +13 -0
  44. package/src/components/SideMenu.d.ts.map +1 -0
  45. package/src/components/SideMenuListItem.d.ts +12 -0
  46. package/src/components/SideMenuListItem.d.ts.map +1 -0
  47. package/src/components/TopMenu.d.ts +18 -0
  48. package/src/components/TopMenu.d.ts.map +1 -0
  49. package/src/components/TranslatedTitle.d.ts +7 -0
  50. package/src/components/TranslatedTitle.d.ts.map +1 -0
  51. package/src/components/UserLanguageSelector.d.ts +14 -0
  52. package/src/components/UserLanguageSelector.d.ts.map +1 -0
  53. package/src/components/VerifyEmailPage.d.ts +22 -0
  54. package/src/components/VerifyEmailPage.d.ts.map +1 -0
  55. package/src/components/index.d.ts +23 -0
  56. package/src/components/index.d.ts.map +1 -0
  57. package/src/contexts/I18nProvider.d.ts +16 -0
  58. package/src/contexts/I18nProvider.d.ts.map +1 -0
  59. package/src/contexts/ThemeProvider.d.ts +14 -0
  60. package/src/contexts/ThemeProvider.d.ts.map +1 -0
  61. package/src/contexts/index.d.ts +3 -0
  62. package/src/contexts/index.d.ts.map +1 -0
  63. package/src/enumerations/IncludeOnMenu.d.ts +6 -0
  64. package/src/enumerations/IncludeOnMenu.d.ts.map +1 -0
  65. package/src/enumerations/index.d.ts +2 -0
  66. package/src/enumerations/index.d.ts.map +1 -0
  67. package/src/hooks/index.d.ts +3 -0
  68. package/src/hooks/index.d.ts.map +1 -0
  69. package/src/hooks/useExpiringValue.d.ts +14 -0
  70. package/src/hooks/useExpiringValue.d.ts.map +1 -0
  71. package/src/hooks/useLocalStorage.d.ts +2 -0
  72. package/src/hooks/useLocalStorage.d.ts.map +1 -0
  73. package/src/index.d.ts +9 -0
  74. package/src/index.d.ts.map +1 -0
  75. package/src/interfaces/AppConfig.d.ts +8 -0
  76. package/src/interfaces/AppConfig.d.ts.map +1 -0
  77. package/src/interfaces/IMenuOption.d.ts +57 -0
  78. package/src/interfaces/IMenuOption.d.ts.map +1 -0
  79. package/src/interfaces/index.d.ts +3 -0
  80. package/src/interfaces/index.d.ts.map +1 -0
  81. package/src/services/api.d.ts +3 -0
  82. package/src/services/api.d.ts.map +1 -0
  83. package/src/services/authenticatedApi.d.ts +3 -0
  84. package/src/services/authenticatedApi.d.ts.map +1 -0
  85. package/src/services/index.d.ts +3 -0
  86. package/src/services/index.d.ts.map +1 -0
  87. package/src/types/expirationSeconds.d.ts +3 -0
  88. package/src/types/expirationSeconds.d.ts.map +1 -0
  89. package/src/types/index.d.ts +3 -0
  90. package/src/types/index.d.ts.map +1 -0
  91. package/src/types/translation.d.ts +10 -0
  92. package/src/types/translation.d.ts.map +1 -0
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import * as Yup from 'yup';
3
+ export interface ForgotPasswordFormValues {
4
+ email: string;
5
+ }
6
+ export interface ForgotPasswordFormProps {
7
+ onSubmit: (values: ForgotPasswordFormValues) => Promise<void>;
8
+ emailValidation?: Yup.StringSchema;
9
+ labels?: {
10
+ title?: string;
11
+ email?: string;
12
+ sendResetLink?: string;
13
+ successMessage?: string;
14
+ };
15
+ }
16
+ export declare const ForgotPasswordForm: FC<ForgotPasswordFormProps>;
17
+ //# sourceMappingURL=ForgotPasswordForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForgotPasswordForm.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/ForgotPasswordForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAI3B,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,eAAe,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACnC,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA+F1D,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { useFormik } from 'formik';
2
+ import { FC } from 'react';
3
+ import * as Yup from 'yup';
4
+ export interface LoginFormValues {
5
+ email?: string;
6
+ username?: string;
7
+ password?: string;
8
+ mnemonic?: string;
9
+ [key: string]: any;
10
+ }
11
+ export interface LoginFormProps {
12
+ onSubmit: (values: LoginFormValues) => Promise<void>;
13
+ loginType?: 'email' | 'username';
14
+ authType?: 'password' | 'mnemonic';
15
+ allowLoginTypeToggle?: boolean;
16
+ allowAuthTypeToggle?: boolean;
17
+ showForgotPassword?: boolean;
18
+ showSignUp?: boolean;
19
+ forgotPasswordLink?: string;
20
+ signUpLink?: string;
21
+ emailLabel?: string;
22
+ usernameLabel?: string;
23
+ passwordLabel?: string;
24
+ mnemonicLabel?: string;
25
+ signInButtonText?: string;
26
+ forgotPasswordText?: string;
27
+ signUpText?: string;
28
+ useUsernameText?: string;
29
+ useEmailText?: string;
30
+ useMnemonicText?: string;
31
+ usePasswordText?: string;
32
+ toggleVisibilityLabel?: string;
33
+ titleText?: string;
34
+ emailValidation?: Yup.StringSchema;
35
+ usernameValidation?: Yup.StringSchema;
36
+ passwordValidation?: Yup.StringSchema;
37
+ mnemonicValidation?: Yup.StringSchema;
38
+ additionalFields?: (formik: ReturnType<typeof useFormik<LoginFormValues>>) => React.ReactNode;
39
+ additionalInitialValues?: Record<string, any>;
40
+ additionalValidation?: Record<string, Yup.Schema>;
41
+ }
42
+ export declare const LoginForm: FC<LoginFormProps>;
43
+ //# sourceMappingURL=LoginForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/LoginForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAI3B,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACjC,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACnC,kBAAkB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACtC,kBAAkB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACtC,kBAAkB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACtC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,eAAe,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAC9F,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAkOxC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface LogoutPageProps {
2
+ onLogout: () => Promise<void> | void;
3
+ onNavigate?: (path: string) => void;
4
+ redirectTo?: string;
5
+ }
6
+ export declare const LogoutPage: ({ onLogout, onNavigate, redirectTo }: LogoutPageProps) => null;
7
+ //# sourceMappingURL=LogoutPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogoutPage.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/LogoutPage.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,GAAI,sCAAiD,eAAe,SAU1F,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { FC } from 'react';
2
+ import * as Yup from 'yup';
3
+ export interface RegisterFormValues {
4
+ username: string;
5
+ email: string;
6
+ timezone: string;
7
+ password?: string;
8
+ confirmPassword?: string;
9
+ [key: string]: any;
10
+ }
11
+ export interface RegisterFormProps {
12
+ onSubmit: (values: RegisterFormValues, usePassword: boolean) => Promise<{
13
+ success: boolean;
14
+ message: string;
15
+ mnemonic?: string;
16
+ } | {
17
+ error: string;
18
+ errorType?: string;
19
+ field?: string;
20
+ errors?: Array<{
21
+ path: string;
22
+ msg: string;
23
+ }>;
24
+ }>;
25
+ timezones: string[];
26
+ getInitialTimezone: () => string;
27
+ usernameValidation?: Yup.StringSchema;
28
+ emailValidation?: Yup.StringSchema;
29
+ timezoneValidation?: Yup.StringSchema;
30
+ passwordValidation?: Yup.StringSchema;
31
+ confirmPasswordValidation?: Yup.StringSchema;
32
+ additionalFields?: (formik: any, usePassword: boolean) => React.ReactNode;
33
+ additionalInitialValues?: Record<string, any>;
34
+ additionalValidation?: Record<string, Yup.Schema>;
35
+ labels?: {
36
+ title?: string;
37
+ username?: string;
38
+ email?: string;
39
+ timezone?: string;
40
+ password?: string;
41
+ confirmPassword?: string;
42
+ useMnemonic?: string;
43
+ usePassword?: string;
44
+ registering?: string;
45
+ register?: string;
46
+ successTitle?: string;
47
+ mnemonicSuccess?: string;
48
+ proceedToLogin?: string;
49
+ loginLink?: string;
50
+ };
51
+ }
52
+ export declare const RegisterForm: FC<RegisterFormProps>;
53
+ //# sourceMappingURL=RegisterForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegisterForm.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/RegisterForm.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAI3B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,OAAO,KAAK,OAAO,CACnE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GACxD;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE,CACvG,CAAC;IACF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,kBAAkB,EAAE,MAAM,MAAM,CAAC;IACjC,kBAAkB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACtC,eAAe,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACnC,kBAAkB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACtC,kBAAkB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACtC,yBAAyB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IAC7C,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IAC1E,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4Q9C,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { FC } from 'react';
2
+ import * as Yup from 'yup';
3
+ export interface ResetPasswordFormValues {
4
+ password: string;
5
+ confirmPassword: string;
6
+ }
7
+ export interface ResetPasswordFormProps {
8
+ token: string | null;
9
+ onSubmit: (token: string, password: string) => Promise<void>;
10
+ passwordValidation?: Yup.StringSchema;
11
+ confirmPasswordValidation?: Yup.StringSchema;
12
+ labels?: {
13
+ title?: string;
14
+ password?: string;
15
+ confirmPassword?: string;
16
+ resetButton?: string;
17
+ successMessage?: string;
18
+ invalidToken?: string;
19
+ };
20
+ }
21
+ export declare const ResetPasswordForm: FC<ResetPasswordFormProps>;
22
+ //# sourceMappingURL=ResetPasswordForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResetPasswordForm.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/ResetPasswordForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAI3B,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,kBAAkB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACtC,yBAAyB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IAC7C,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAsIxD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ import { IMenuOption } from '../interfaces';
3
+ export interface SideMenuProps {
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ menuOptions: IMenuOption[];
7
+ onNavigate?: (link: string | {
8
+ pathname: string;
9
+ state?: any;
10
+ }) => void;
11
+ }
12
+ export declare const SideMenu: FC<SideMenuProps>;
13
+ //# sourceMappingURL=SideMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideMenu.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/SideMenu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;CACzE;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAUtC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { IMenuOption } from '../interfaces';
3
+ export interface SideMenuListItemProps {
4
+ menuItem: IMenuOption;
5
+ onClose: () => void;
6
+ onNavigate?: (link: string | {
7
+ pathname: string;
8
+ state?: any;
9
+ }) => void;
10
+ }
11
+ export declare const SideMenuListItem: FC<SideMenuListItemProps>;
12
+ //# sourceMappingURL=SideMenuListItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideMenuListItem.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/SideMenuListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAe,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,WAAW,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;CACzE;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA+CtD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { IMenuOption } from '../interfaces';
3
+ export interface TopMenuProps {
4
+ title: string;
5
+ logo?: string;
6
+ logoAlt?: string;
7
+ isAuthenticated?: boolean;
8
+ menuOptions: IMenuOption[];
9
+ authenticatedButtons?: ReactNode;
10
+ unauthenticatedButtons?: ReactNode;
11
+ rightContent?: ReactNode;
12
+ onNavigate?: (link: string | {
13
+ pathname: string;
14
+ state?: any;
15
+ }) => void;
16
+ }
17
+ export declare const TopMenu: FC<TopMenuProps>;
18
+ //# sourceMappingURL=TopMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopMenu.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/TopMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,sBAAsB,CAAC,EAAE,SAAS,CAAC;IACnC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;CACzE;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAkDpC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ export interface TranslatedTitleProps {
3
+ title: string;
4
+ language?: string;
5
+ }
6
+ export declare const TranslatedTitle: FC<TranslatedTitleProps>;
7
+ //# sourceMappingURL=TranslatedTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranslatedTitle.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/TranslatedTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAMpD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ export interface LanguageOption {
3
+ code: string;
4
+ name: string;
5
+ countryCode: string;
6
+ }
7
+ export interface UserLanguageSelectorProps {
8
+ currentLanguage: string;
9
+ currentCountryCode: string;
10
+ languages: LanguageOption[];
11
+ onLanguageChange: (languageCode: string) => void;
12
+ }
13
+ export declare const UserLanguageSelector: FC<UserLanguageSelectorProps>;
14
+ //# sourceMappingURL=UserLanguageSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserLanguageSelector.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/UserLanguageSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAwB,MAAM,OAAO,CAAC;AAGjD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,gBAAgB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAoC9D,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { FC } from 'react';
2
+ export interface VerifyEmailPageProps {
3
+ token: string | null;
4
+ onVerify: (token: string) => Promise<{
5
+ success: boolean;
6
+ message?: string;
7
+ }>;
8
+ labels?: {
9
+ title?: string;
10
+ verifying?: string;
11
+ success?: string;
12
+ failed?: string;
13
+ noToken?: string;
14
+ proceedToLogin?: string;
15
+ contactSupport?: string;
16
+ requestNewEmail?: string;
17
+ };
18
+ loginLink?: string;
19
+ resendLink?: string;
20
+ }
21
+ export declare const VerifyEmailPage: FC<VerifyEmailPageProps>;
22
+ //# sourceMappingURL=VerifyEmailPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyEmailPage.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/VerifyEmailPage.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AAIhD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7E,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAoGpD,CAAC"}
@@ -0,0 +1,23 @@
1
+ export * from './ApiAccess';
2
+ export * from './BackupCodeLoginForm';
3
+ export * from './BackupCodesForm';
4
+ export * from './ChangePasswordForm';
5
+ export * from './ConfirmationDialog';
6
+ export * from './CurrencyCodeSelector';
7
+ export * from './CurrencyInput';
8
+ export * from './DashboardPage';
9
+ export * from './DropdownMenu';
10
+ export * from './ExpirationSecondsSelector';
11
+ export * from './Flag';
12
+ export * from './ForgotPasswordForm';
13
+ export * from './LoginForm';
14
+ export * from './LogoutPage';
15
+ export * from './RegisterForm';
16
+ export * from './ResetPasswordForm';
17
+ export * from './SideMenu';
18
+ export * from './SideMenuListItem';
19
+ export * from './TopMenu';
20
+ export * from './TranslatedTitle';
21
+ export * from './UserLanguageSelector';
22
+ export * from './VerifyEmailPage';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { CoreLanguageCode, I18nEngine } from '@digitaldefiance/i18n-lib';
2
+ import { FC, ReactNode } from 'react';
3
+ export interface I18nProviderProps {
4
+ children: ReactNode;
5
+ i18nEngine: I18nEngine;
6
+ onLanguageChange?: (language: CoreLanguageCode) => Promise<void>;
7
+ }
8
+ export interface I18nContextType {
9
+ t: (key: string, vars?: Record<string, string | number>, language?: CoreLanguageCode) => string;
10
+ tComponent: <TStringKey extends string>(componentId: string, stringKey: TStringKey) => string;
11
+ changeLanguage: (language: CoreLanguageCode) => void;
12
+ currentLanguage: CoreLanguageCode;
13
+ }
14
+ export declare const I18nProvider: FC<I18nProviderProps>;
15
+ export declare const useI18n: () => I18nContextType;
16
+ //# sourceMappingURL=I18nProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/contexts/I18nProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAIhB,UAAU,EACX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAiB,EAAE,EAAE,SAAS,EAAqC,MAAM,OAAO,CAAC;AAExF,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE,QAAQ,CAAC,EAAE,gBAAgB,KAAK,MAAM,CAAC;IAChG,UAAU,EAAE,CAAC,UAAU,SAAS,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,KAAK,MAAM,CAAC;IAC9F,cAAc,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,gBAAgB,CAAC;CACnC;AAID,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAoD9C,CAAC;AAEF,eAAO,MAAM,OAAO,uBAMnB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { PaletteMode, Theme } from '@mui/material';
2
+ import { FC, ReactNode } from 'react';
3
+ export interface ThemeContextType {
4
+ toggleColorMode: () => void;
5
+ mode: PaletteMode;
6
+ }
7
+ export declare const useTheme: () => ThemeContextType;
8
+ export interface AppThemeProviderProps {
9
+ children: ReactNode;
10
+ customTheme?: (mode: PaletteMode) => Theme;
11
+ }
12
+ export declare const AppThemeProvider: FC<AppThemeProviderProps>;
13
+ export declare const ThemeToggleButton: FC;
14
+ //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/contexts/ThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,WAAW,EAEX,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,SAAS,EAAgD,MAAM,OAAO,CAAC;AAEpF,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,IAAI,EAAE,WAAW,CAAC;CACnB;AAID,eAAO,MAAM,QAAQ,wBAMpB,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,KAAK,CAAC;CAC5C;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAuBtD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAO/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './I18nProvider';
2
+ export * from './ThemeProvider';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare enum IncludeOnMenu {
2
+ SideMenu = 0,
3
+ TopMenu = 1,
4
+ UserMenu = 2
5
+ }
6
+ //# sourceMappingURL=IncludeOnMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IncludeOnMenu.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/enumerations/IncludeOnMenu.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,QAAQ,IAAA;IACR,OAAO,IAAA;IACP,QAAQ,IAAA;CACT"}
@@ -0,0 +1,2 @@
1
+ export * from './IncludeOnMenu';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/enumerations/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './useExpiringValue';
2
+ export * from './useLocalStorage';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export interface TimerInfo {
2
+ timeout: NodeJS.Timeout;
3
+ startTime: number;
4
+ durationMs: number;
5
+ }
6
+ export interface ExpiringValueReturn<T> {
7
+ value: T | undefined;
8
+ setValue: (newValue: T, durationSeconds?: number, saveToStorage?: boolean) => () => void;
9
+ clearValue: () => void;
10
+ getRemainingTime: () => number;
11
+ isActive: boolean;
12
+ }
13
+ export declare function useExpiringValue<T>(defaultDurationSeconds: number, localStorageKey?: string): ExpiringValueReturn<T>;
14
+ //# sourceMappingURL=useExpiringValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExpiringValue.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/hooks/useExpiringValue.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,eAAe,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,MAAM,IAAI,CAAC;IACzF,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,gBAAgB,EAAE,MAAM,MAAM,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,sBAAsB,EAAE,MAAM,EAC9B,eAAe,CAAC,EAAE,MAAM,GACvB,mBAAmB,CAAC,CAAC,CAAC,CA0DxB"}
@@ -0,0 +1,2 @@
1
+ export declare function useLocalStorage<T>(key: string, defaultValue: T): [T, (value: T) => void];
2
+ //# sourceMappingURL=useLocalStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocalStorage.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/hooks/useLocalStorage.ts"],"names":[],"mappings":"AAGA,wBAAgB,eAAe,CAAC,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,GACd,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,CAWzB"}
package/src/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ export * from './auth';
2
+ export * from './components';
3
+ export * from './contexts';
4
+ export * from './enumerations';
5
+ export * from './hooks';
6
+ export * from './interfaces';
7
+ export * from './services';
8
+ export * from './types';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/digitaldefiance-express-suite-react-components/src/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface IAppConfig {
2
+ hostname: string;
3
+ isBurnbag: boolean;
4
+ isCanary: boolean;
5
+ siteTitle: string;
6
+ server: string;
7
+ }
8
+ //# sourceMappingURL=AppConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppConfig.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/interfaces/AppConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,57 @@
1
+ import { ReactNode } from 'react';
2
+ import { IncludeOnMenu } from '../enumerations';
3
+ import { To } from 'react-router-dom';
4
+ export interface IMenuOption {
5
+ /**
6
+ * Unique identifier for the menu option
7
+ */
8
+ id: string;
9
+ /**
10
+ * Text to display for the menu option
11
+ */
12
+ label: string;
13
+ /**
14
+ * Where the menu option should be displayed
15
+ */
16
+ includeOnMenus: IncludeOnMenu[];
17
+ /**
18
+ * Display order for the menu option. Lower numbers are displayed first.
19
+ */
20
+ index: number;
21
+ /**
22
+ * Whether the menu option is a divider
23
+ */
24
+ divider?: boolean;
25
+ /**
26
+ * Icon to display for the menu option
27
+ */
28
+ icon?: ReactNode;
29
+ /**
30
+ * Link to navigate to when the menu option is clicked
31
+ * Mutually exclusive with `action`
32
+ */
33
+ link?: To | {
34
+ pathname: string;
35
+ state: any;
36
+ };
37
+ /**
38
+ * Function to execute when the menu option is clicked
39
+ * Mutually exclusive with `link`
40
+ * @returns void
41
+ */
42
+ action?: () => void;
43
+ /**
44
+ * Whether the menu option requires authentication
45
+ * true = requires authentication
46
+ * false = requires unauthenticated
47
+ * undefined = always show
48
+ */
49
+ requiresAuth: boolean | undefined;
50
+ /**
51
+ * Custom filter function to determine if the menu option should be displayed
52
+ * @param option - The menu option to filter
53
+ * @returns boolean
54
+ */
55
+ filter?: (option: IMenuOption) => boolean;
56
+ }
57
+ //# sourceMappingURL=IMenuOption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMenuOption.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/interfaces/IMenuOption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC;IAC7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;OAKG;IACH,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC;CAC3C"}
@@ -0,0 +1,3 @@
1
+ export * from './AppConfig';
2
+ export * from './IMenuOption';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import axios from 'axios';
2
+ export declare function createApiClient(baseURL: string): axios.AxiosInstance;
3
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/services/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,uBAU9C"}
@@ -0,0 +1,3 @@
1
+ import axios from 'axios';
2
+ export declare function createAuthenticatedApiClient(baseURL: string, tokenKey?: string): axios.AxiosInstance;
3
+ //# sourceMappingURL=authenticatedApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authenticatedApi.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/services/authenticatedApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAoB,uBAc3F"}
@@ -0,0 +1,3 @@
1
+ export * from './api';
2
+ export * from './authenticatedApi';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const ExpirationSecondsOptionValues: number[];
2
+ export declare function createExpirationSecondsOptionNames(secondsLabel: string, minuteLabel: string, minutesLabel: string): string[];
3
+ //# sourceMappingURL=expirationSeconds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expirationSeconds.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/types/expirationSeconds.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAAqC,CAAC;AAEhF,wBAAgB,kCAAkC,CAChD,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,MAAM,EAAE,CAWV"}
@@ -0,0 +1,3 @@
1
+ export * from './expirationSeconds';
2
+ export * from './translation';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Translation function type for components
3
+ * Accepts a key and optional variables, returns translated string
4
+ */
5
+ export type TranslationFunction = (key: string, variables?: Record<string, string | number>) => string;
6
+ /**
7
+ * Helper to get translated text or fallback to provided string
8
+ */
9
+ export declare function getTranslatedText(t: TranslationFunction | undefined, key: string, fallback: string, variables?: Record<string, string | number>): string;
10
+ //# sourceMappingURL=translation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/types/translation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,GAAG,EAAE,MAAM,EACX,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACxC,MAAM,CAAC;AAEZ;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,CAAC,EAAE,mBAAmB,GAAG,SAAS,EAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAC1C,MAAM,CAER"}