@admin-layout/client 1.4.0-alpha.7 → 2.0.1-alpha.13

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 (152) hide show
  1. package/lib/colors/Color.d.ts +11 -0
  2. package/lib/colors/Color.js +2 -0
  3. package/lib/colors/Color.js.map +1 -0
  4. package/lib/colors/index.d.ts +2 -0
  5. package/lib/colors/index.js +3 -0
  6. package/lib/colors/index.js.map +1 -0
  7. package/lib/colors/presets/black.d.ts +2 -0
  8. package/lib/colors/presets/black.js +12 -0
  9. package/lib/colors/presets/black.js.map +1 -0
  10. package/lib/colors/presets/blue.d.ts +2 -0
  11. package/lib/colors/presets/blue.js +12 -0
  12. package/lib/colors/presets/blue.js.map +1 -0
  13. package/lib/colors/presets/brinkPink.d.ts +2 -0
  14. package/lib/colors/presets/brinkPink.js +12 -0
  15. package/lib/colors/presets/brinkPink.js.map +1 -0
  16. package/lib/colors/presets/cyan.d.ts +2 -0
  17. package/lib/colors/presets/cyan.js +12 -0
  18. package/lib/colors/presets/cyan.js.map +1 -0
  19. package/lib/colors/presets/green.d.ts +2 -0
  20. package/lib/colors/presets/green.js +12 -0
  21. package/lib/colors/presets/green.js.map +1 -0
  22. package/lib/colors/presets/index.d.ts +14 -0
  23. package/lib/colors/presets/index.js +15 -0
  24. package/lib/colors/presets/index.js.map +1 -0
  25. package/lib/colors/presets/lime.d.ts +2 -0
  26. package/lib/colors/presets/lime.js +12 -0
  27. package/lib/colors/presets/lime.js.map +1 -0
  28. package/lib/colors/presets/orange.d.ts +2 -0
  29. package/lib/colors/presets/orange.js +12 -0
  30. package/lib/colors/presets/orange.js.map +1 -0
  31. package/lib/colors/presets/pink.d.ts +2 -0
  32. package/lib/colors/presets/pink.js +12 -0
  33. package/lib/colors/presets/pink.js.map +1 -0
  34. package/lib/colors/presets/purple.d.ts +2 -0
  35. package/lib/colors/presets/purple.js +12 -0
  36. package/lib/colors/presets/purple.js.map +1 -0
  37. package/lib/colors/presets/red.d.ts +2 -0
  38. package/lib/colors/presets/red.js +12 -0
  39. package/lib/colors/presets/red.js.map +1 -0
  40. package/lib/colors/presets/skyBlue.d.ts +2 -0
  41. package/lib/colors/presets/skyBlue.js +12 -0
  42. package/lib/colors/presets/skyBlue.js.map +1 -0
  43. package/lib/colors/presets/turquoise.d.ts +2 -0
  44. package/lib/colors/presets/turquoise.js +12 -0
  45. package/lib/colors/presets/turquoise.js.map +1 -0
  46. package/lib/colors/presets/white.d.ts +2 -0
  47. package/lib/colors/presets/white.js +12 -0
  48. package/lib/colors/presets/white.js.map +1 -0
  49. package/lib/colors/presets/yellow.d.ts +2 -0
  50. package/lib/colors/presets/yellow.js +12 -0
  51. package/lib/colors/presets/yellow.js.map +1 -0
  52. package/lib/components/ApplicationErrorFillWrapper.js +7 -0
  53. package/lib/components/ApplicationErrorFillWrapper.js.map +1 -0
  54. package/lib/components/ApplicationErrorHandlerCommon.js +30 -0
  55. package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -0
  56. package/lib/components/ErrorBoundaryCommon.js +22 -0
  57. package/lib/components/ErrorBoundaryCommon.js.map +1 -0
  58. package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.d.ts +1 -0
  59. package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js +83 -0
  60. package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js.map +1 -0
  61. package/lib/components/index.js +4 -0
  62. package/lib/components/index.js.map +1 -0
  63. package/lib/config/config.js +29 -0
  64. package/lib/config/config.js.map +1 -0
  65. package/lib/config/index.js +2 -0
  66. package/lib/config/index.js.map +1 -0
  67. package/lib/constants/constants.js +4 -0
  68. package/lib/constants/constants.js.map +1 -0
  69. package/lib/constants/error.js +6 -0
  70. package/lib/constants/error.js.map +1 -0
  71. package/lib/constants/index.js +3 -0
  72. package/lib/constants/index.js.map +1 -0
  73. package/lib/graphql/index.js +2 -0
  74. package/lib/graphql/index.js.map +1 -0
  75. package/lib/graphql/link/error-link.js +49 -0
  76. package/lib/graphql/link/error-link.js.map +1 -0
  77. package/lib/graphql/link/index.js +2 -0
  78. package/lib/graphql/link/index.js.map +1 -0
  79. package/lib/index.d.ts +1 -0
  80. package/lib/index.js +7 -1256
  81. package/lib/index.js.map +1 -1
  82. package/lib/index.native.d.ts +7 -0
  83. package/lib/index.native.js +8 -0
  84. package/lib/index.native.js.map +1 -0
  85. package/lib/interfaces/default-settings.js +2 -0
  86. package/lib/interfaces/default-settings.js.map +1 -0
  87. package/lib/interfaces/error-state.js +2 -0
  88. package/lib/interfaces/error-state.js.map +1 -0
  89. package/lib/interfaces/generated/generated-models.d.ts +13 -0
  90. package/lib/interfaces/generated/generated-models.js +51 -0
  91. package/lib/interfaces/generated/generated-models.js.map +1 -0
  92. package/lib/interfaces/generated/index.js +2 -0
  93. package/lib/interfaces/generated/index.js.map +1 -0
  94. package/lib/interfaces/index.js +6 -0
  95. package/lib/interfaces/index.js.map +1 -0
  96. package/lib/interfaces/pure-settings.d.ts +1 -0
  97. package/lib/interfaces/pure-settings.js +2 -0
  98. package/lib/interfaces/pure-settings.js.map +1 -0
  99. package/lib/interfaces/typings.js +2 -0
  100. package/lib/interfaces/typings.js.map +1 -0
  101. package/lib/redux/actions/error-actions.js +22 -0
  102. package/lib/redux/actions/error-actions.js.map +1 -0
  103. package/lib/redux/actions/index.js +3 -0
  104. package/lib/redux/actions/index.js.map +1 -0
  105. package/lib/redux/actions/settings-action.d.ts +0 -0
  106. package/lib/redux/actions/settings-action.js +2 -0
  107. package/lib/redux/actions/settings-action.js.map +1 -0
  108. package/lib/redux/index.js +4 -0
  109. package/lib/redux/index.js.map +1 -0
  110. package/lib/redux/reducers/error.d.ts +2 -2
  111. package/lib/redux/reducers/error.js +32 -0
  112. package/lib/redux/reducers/error.js.map +1 -0
  113. package/lib/redux/reducers/index.js +2 -0
  114. package/lib/redux/reducers/index.js.map +1 -0
  115. package/lib/redux/selectors/index.d.ts +1 -1
  116. package/lib/redux/selectors/index.js +4 -0
  117. package/lib/redux/selectors/index.js.map +1 -0
  118. package/lib/redux/settings.d.ts +22 -21
  119. package/lib/redux/settings.js +38 -0
  120. package/lib/redux/settings.js.map +1 -0
  121. package/lib/themes/LayoutTheme.d.ts +140 -0
  122. package/lib/themes/LayoutTheme.js +2 -0
  123. package/lib/themes/LayoutTheme.js.map +1 -0
  124. package/lib/themes/TextStyle.d.ts +6 -0
  125. package/lib/themes/TextStyle.js +2 -0
  126. package/lib/themes/TextStyle.js.map +1 -0
  127. package/lib/themes/index.d.ts +4 -0
  128. package/lib/themes/index.js +5 -0
  129. package/lib/themes/index.js.map +1 -0
  130. package/lib/themes/systemFont/index.d.ts +1 -0
  131. package/lib/themes/systemFont/index.js +2 -0
  132. package/lib/themes/systemFont/index.js.map +1 -0
  133. package/lib/themes/systemFont/index.native.d.ts +1 -0
  134. package/lib/themes/systemFont/index.native.js +2 -0
  135. package/lib/themes/systemFont/index.native.js.map +1 -0
  136. package/lib/themes/templates/createLayoutTheme.d.ts +3 -0
  137. package/lib/themes/templates/createLayoutTheme.js +10 -0
  138. package/lib/themes/templates/createLayoutTheme.js.map +1 -0
  139. package/lib/themes/templates/darkLayoutTheme.d.ts +22 -0
  140. package/lib/themes/templates/darkLayoutTheme.js +34 -0
  141. package/lib/themes/templates/darkLayoutTheme.js.map +1 -0
  142. package/lib/themes/templates/index.d.ts +3 -0
  143. package/lib/themes/templates/index.js +4 -0
  144. package/lib/themes/templates/index.js.map +1 -0
  145. package/lib/themes/templates/lightLayoutTheme.d.ts +10 -0
  146. package/lib/themes/templates/lightLayoutTheme.js +217 -0
  147. package/lib/themes/templates/lightLayoutTheme.js.map +1 -0
  148. package/lib/utils/index.js +2 -0
  149. package/lib/utils/index.js.map +1 -0
  150. package/lib/utils/seperatedMenus.js +15 -0
  151. package/lib/utils/seperatedMenus.js.map +1 -0
  152. package/package.json +4 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typings.js","sourceRoot":"","sources":["../../src/interfaces/typings.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { LOG_APPLICATION_ERROR, DISMISS_APPLICATION_ERROR, RESTORE_APPLICATION_ERRORS } from '../../constants';
2
+ export const setApplicationError = (payload) => {
3
+ return ({
4
+ type: LOG_APPLICATION_ERROR,
5
+ payload,
6
+ });
7
+ };
8
+ export function dismissApplicationError(dismissByType) {
9
+ return {
10
+ type: DISMISS_APPLICATION_ERROR,
11
+ payload: {
12
+ dismissByType
13
+ }
14
+ };
15
+ }
16
+ export const restoreApplicationError = (payload) => {
17
+ return ({
18
+ type: RESTORE_APPLICATION_ERRORS,
19
+ payload,
20
+ });
21
+ };
22
+ //# sourceMappingURL=error-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-actions.js","sourceRoot":"","sources":["../../../src/redux/actions/error-actions.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EAErB,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AAGzB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAA4C,EAAE,EAAE;IAClF,OAAO,CAAC;QACN,IAAI,EAAE,qBAAqB;QAC3B,OAAO;KACR,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,UAAU,uBAAuB,CAAC,aAAqB;IAC3D,OAAO;QACL,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE;YACP,aAAa;SACd;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,OAAgC,EAAE,EAAE;IAC1E,OAAO,CAAC;QACN,IAAI,EAAE,0BAA0B;QAChC,OAAO;KACR,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ // export * from './settings-action';
2
+ export * from './error-actions';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/actions/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,cAAc,iBAAiB,CAAC"}
File without changes
@@ -0,0 +1,2 @@
1
+ //
2
+ //# sourceMappingURL=settings-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-action.js","sourceRoot":"","sources":["../../../src/redux/actions/settings-action.ts"],"names":[],"mappings":"AAAA,EAAE"}
@@ -0,0 +1,4 @@
1
+ export * from './actions';
2
+ export * from './settings';
3
+ export * from './reducers';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/redux/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { ErrorActions } from '../actions/error-actions';
2
- export declare const initialErrorsState: any[];
3
- export declare function applicationErrors(errorState: any[], action: ErrorActions): any[];
2
+ export declare const initialErrorsState: any;
3
+ export declare function applicationErrors(errorState: any, action: ErrorActions): any;
@@ -0,0 +1,32 @@
1
+ import { CLEAR_APPLICATION_ERRORS, LOG_APPLICATION_ERROR, DISMISS_APPLICATION_ERROR, RESTORE_APPLICATION_ERRORS } from '../../constants';
2
+ export const initialErrorsState = [];
3
+ export function applicationErrors(errorState = initialErrorsState, action) {
4
+ switch (action === null || action === void 0 ? void 0 : action.type) {
5
+ case LOG_APPLICATION_ERROR: {
6
+ const { type: errorType, payload, pluginName, displayable = true } = (action === null || action === void 0 ? void 0 : action.payload) || {};
7
+ const nextState = [...errorState];
8
+ nextState.push({
9
+ type: errorType,
10
+ displayable,
11
+ payload,
12
+ pluginName,
13
+ date: new Date(Date.now()).toUTCString(),
14
+ });
15
+ return nextState;
16
+ }
17
+ case DISMISS_APPLICATION_ERROR: {
18
+ const { dismissByType } = action === null || action === void 0 ? void 0 : action.payload;
19
+ let nextState = [...errorState];
20
+ nextState = nextState.filter(({ type }) => dismissByType !== type);
21
+ return nextState;
22
+ }
23
+ case CLEAR_APPLICATION_ERRORS: {
24
+ return [];
25
+ }
26
+ case RESTORE_APPLICATION_ERRORS:
27
+ return action.payload;
28
+ default:
29
+ return errorState;
30
+ }
31
+ }
32
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/redux/reducers/error.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AAGzB,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAS,CAAC;AAE5C,MAAM,UAAU,iBAAiB,CAAC,UAAU,GAAG,kBAAkB,EAAE,MAAoB;IAErF,QAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,EAAE;QACpB,KAAK,qBAAqB,CAAC,CAAC;YAC1B,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,KAAI,EAAS,CAAC;YAClG,MAAM,SAAS,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC;YAClC,SAAS,CAAC,IAAI,CAAC;gBACb,IAAI,EAAE,SAAS;gBACf,WAAW;gBACX,OAAO;gBACP,UAAU;gBACV,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW,EAAE;aACzC,CAAC,CAAC;YACH,OAAO,SAAS,CAAC;SAClB;QACD,KAAK,yBAAyB,CAAC,CAAC;YAC9B,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAA;YACzC,IAAI,SAAS,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC;YAChC,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,aAAa,KAAK,IAAI,CAAC,CAAA;YAClE,OAAO,SAAS,CAAC;SAClB;QACD,KAAK,wBAAwB,CAAC,CAAC;YAC7B,OAAO,EAAE,CAAC;SACX;QACD,KAAK,0BAA0B;YAC7B,OAAO,MAAM,CAAC,OAAO,CAAC;QAExB;YACE,OAAO,UAAU,CAAC;KACrB;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './error';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/reducers/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { ApplicationErrorState } from '../../interfaces';
2
2
  export declare const backendErrorSelector: ((state: {
3
3
  applicationErrors: ApplicationErrorState[];
4
- }) => ApplicationErrorState) & import("reselect").OutputSelectorFields<(args_0: ApplicationErrorState[]) => ApplicationErrorState & {
4
+ }) => ApplicationErrorState | undefined) & import("reselect").OutputSelectorFields<(args_0: ApplicationErrorState[]) => ApplicationErrorState & {
5
5
  clearCache: () => void;
6
6
  }> & {
7
7
  clearCache: () => void;
@@ -0,0 +1,4 @@
1
+ import { createSelector } from 'reselect';
2
+ import { BACKEND_ERROR } from '../../constants';
3
+ export const backendErrorSelector = createSelector((state) => state.applicationErrors, (applicationErrors) => applicationErrors.find((error) => error.type === BACKEND_ERROR));
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/selectors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAO/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAChD,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB,EACzC,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC,CACvF,CAAA"}
@@ -1,29 +1,30 @@
1
1
  import { DefaultSettings } from '../interfaces';
2
- declare const settingsReducer: (state: DefaultSettings, { type, payload }: {
2
+ declare const settingsReducer: (state: DefaultSettings | undefined, { type, payload }: {
3
3
  type: string;
4
4
  payload: DefaultSettings;
5
5
  }) => DefaultSettings | {
6
6
  language: DefaultSettings;
7
- navTheme?: import("../interfaces").MenuTheme | "realDark";
8
- headerTheme?: import("../interfaces").MenuTheme;
9
- headerHeight?: number;
10
- layout?: "side" | "top" | "mix";
11
- contentWidth?: import("../interfaces").ContentWidth;
12
- fixedHeader?: boolean;
13
- fixSiderbar?: boolean;
7
+ navTheme?: import("../interfaces").MenuTheme | "realDark" | undefined;
8
+ headerTheme?: import("../interfaces").MenuTheme | undefined;
9
+ headerHeight?: number | undefined;
10
+ layout?: "side" | "top" | "mix" | undefined;
11
+ contentWidth?: import("../interfaces").ContentWidth | undefined;
12
+ fixedHeader?: boolean | undefined;
13
+ fixSiderbar?: boolean | undefined;
14
14
  menu?: {
15
- locale?: boolean;
16
- defaultOpenAll?: boolean;
17
- loading?: boolean;
18
- };
19
- title?: string | false;
20
- iconfontUrl?: string;
21
- primaryColor?: string;
22
- colorWeak?: boolean;
23
- splitMenus?: boolean;
24
- headerRender?: false;
25
- footerRender?: false;
26
- menuRender?: false;
27
- menuHeaderRender?: false;
15
+ locale?: boolean | undefined;
16
+ defaultOpenAll?: boolean | undefined;
17
+ loading?: boolean | undefined;
18
+ } | undefined;
19
+ title?: string | false | undefined;
20
+ iconfontUrl?: string | undefined;
21
+ primaryColor?: string | undefined;
22
+ colorWeak?: boolean | undefined;
23
+ splitMenus?: boolean | undefined;
24
+ headerRender?: false | undefined;
25
+ footerRender?: false | undefined;
26
+ searchBarRender?: false | undefined;
27
+ menuRender?: false | undefined;
28
+ menuHeaderRender?: false | undefined;
28
29
  };
29
30
  export { settingsReducer };
@@ -0,0 +1,38 @@
1
+ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
2
+ /* eslint-disable no-case-declarations */
3
+ import { CHANGE_SETTINGS_ACTION, CHANGE_LANGUAGE } from '../constants';
4
+ import { config } from '../config';
5
+ // Note: We customize reducer part as AntPro uses inbuild way.
6
+ const updateColorWeak = (colorWeak) => {
7
+ // @sri to avoid breaking during SSR, split into to checks
8
+ if (typeof window !== 'undefined') {
9
+ const root = document.getElementById('root');
10
+ if (root) {
11
+ root.className = colorWeak ? 'colorWeak' : '';
12
+ }
13
+ }
14
+ };
15
+ // interface SettingsActionPayload {
16
+ // colorWeak: any;
17
+ // contentWidth: any;
18
+ // }
19
+ const settingsReducer = (state = config.LAYOUT_SETTINGS, { type, payload = {} }) => {
20
+ switch (type) {
21
+ case CHANGE_SETTINGS_ACTION:
22
+ const { colorWeak, contentWidth } = payload;
23
+ // @sri to avoid breaking during SSR, split into to checks
24
+ if (state.contentWidth !== contentWidth) {
25
+ if (typeof window !== 'undefined') {
26
+ window.dispatchEvent(new Event('resize'));
27
+ }
28
+ }
29
+ updateColorWeak(!!colorWeak);
30
+ return Object.assign(Object.assign({}, state), payload);
31
+ case CHANGE_LANGUAGE:
32
+ return Object.assign(Object.assign({}, state), { language: payload });
33
+ default:
34
+ return state;
35
+ }
36
+ };
37
+ export { settingsReducer };
38
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/redux/settings.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,yCAAyC;AACzC,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,8DAA8D;AAC9D,MAAM,eAAe,GAAiC,CAAC,SAAS,EAAE,EAAE;IAChE,0DAA0D;IAC1D,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC/B,MAAM,IAAI,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;SACjD;KACJ;AACL,CAAC,CAAC;AACF,oCAAoC;AACpC,sBAAsB;AACtB,yBAAyB;AACzB,IAAI;AACJ,MAAM,eAAe,GAAG,CACpB,KAAK,GAAG,MAAM,CAAC,eAAe,EAC9B,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE,EAA8C,EACpE,EAAE;IACA,QAAQ,IAAI,EAAE;QACV,KAAK,sBAAsB;YACvB,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;YAC5C,0DAA0D;YAC1D,IAAI,KAAK,CAAC,YAAY,KAAK,YAAY,EAAE;gBACrC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;oBAC/B,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;iBAC7C;aACJ;YACD,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC7B,uCACO,KAAK,GACL,OAAO,EACZ;QACN,KAAK,eAAe;YAChB,uCACO,KAAK,KACR,QAAQ,EAAE,OAAO,IACnB;QAEN;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,140 @@
1
+ import { TextStyle } from "./TextStyle";
2
+ export interface LayoutThemeColors {
3
+ background: string;
4
+ foreground: string;
5
+ text: string;
6
+ textField: string;
7
+ placeholder: string;
8
+ label: string;
9
+ separator: string;
10
+ black: string;
11
+ white: string;
12
+ transparent: string;
13
+ mainInteractiveColor100: string;
14
+ mainInteractiveColor200: string;
15
+ mainInteractiveColor300: string;
16
+ mainInteractiveColor400: string;
17
+ mainInteractiveColor: string;
18
+ mainInteractiveColor600: string;
19
+ mainInteractiveColor700: string;
20
+ mainInteractiveColor800: string;
21
+ mainInteractiveColor900: string;
22
+ alternativeInteractiveColor100: string;
23
+ alternativeInteractiveColor200: string;
24
+ alternativeInteractiveColor300: string;
25
+ alternativeInteractiveColor400: string;
26
+ alternativeInteractiveColor: string;
27
+ alternativeInteractiveColor600: string;
28
+ alternativeInteractiveColor700: string;
29
+ alternativeInteractiveColor800: string;
30
+ alternativeInteractiveColor900: string;
31
+ successInteractiveColor100: string;
32
+ successInteractiveColor200: string;
33
+ successInteractiveColor300: string;
34
+ successInteractiveColor400: string;
35
+ successInteractiveColor: string;
36
+ successInteractiveColor600: string;
37
+ successInteractiveColor700: string;
38
+ successInteractiveColor800: string;
39
+ successInteractiveColor900: string;
40
+ warningInteractiveColor100: string;
41
+ warningInteractiveColor200: string;
42
+ warningInteractiveColor300: string;
43
+ warningInteractiveColor400: string;
44
+ warningInteractiveColor: string;
45
+ warningInteractiveColor600: string;
46
+ warningInteractiveColor700: string;
47
+ warningInteractiveColor800: string;
48
+ warningInteractiveColor900: string;
49
+ dangerInteractiveColor100: string;
50
+ dangerInteractiveColor200: string;
51
+ dangerInteractiveColor300: string;
52
+ dangerInteractiveColor400: string;
53
+ dangerInteractiveColor: string;
54
+ dangerInteractiveColor600: string;
55
+ dangerInteractiveColor700: string;
56
+ dangerInteractiveColor800: string;
57
+ dangerInteractiveColor900: string;
58
+ contentInteractiveColor100: string;
59
+ contentInteractiveColor200: string;
60
+ contentInteractiveColor300: string;
61
+ contentInteractiveColor400: string;
62
+ contentInteractiveColor: string;
63
+ contentInteractiveColor600: string;
64
+ contentInteractiveColor700: string;
65
+ contentInteractiveColor800: string;
66
+ contentInteractiveColor900: string;
67
+ }
68
+ export interface LayoutThemeSizes {
69
+ interactiveItemHeight: number;
70
+ loadingComponentHeightForButton: number;
71
+ textFieldIconSize: number;
72
+ textFieldHeight: number;
73
+ checkBoxSize: number;
74
+ radioButtonSize: number;
75
+ segmentedControlSize: number;
76
+ audioControlToggleButtonSize: number;
77
+ audioControlToggleButtonIconSize: number;
78
+ baseRowHeight: number;
79
+ colorTabListItemHeight: number;
80
+ }
81
+ export interface LayoutThemeSpacings {
82
+ xs: number;
83
+ s: number;
84
+ m: number;
85
+ lg: number;
86
+ xl: number;
87
+ }
88
+ export interface LayoutThemeBorderRadius {
89
+ xs: number;
90
+ s: number;
91
+ m: number;
92
+ lg: number;
93
+ xl: number;
94
+ }
95
+ export interface LayoutThemeNavigationBar {
96
+ title: Omit<TextStyle, 'fontFamily'>;
97
+ height: number;
98
+ shadow: string;
99
+ textButton: TextStyle;
100
+ iconButtonSize: number;
101
+ backgroundColor: string;
102
+ }
103
+ export interface LayoutThemeTabBar {
104
+ tabBarItemText: TextStyle;
105
+ verticalHeight: number;
106
+ iOSVerticalHeight: number;
107
+ iOSHorizontalWidth: number;
108
+ horizontalWidth: number;
109
+ backgroundColor: string;
110
+ shadow: string;
111
+ leftPositionShadow: string;
112
+ rightPositionShadow: string;
113
+ }
114
+ export interface LayoutThemeShadows {
115
+ mainShadow: string;
116
+ thumbShadow: string;
117
+ }
118
+ export interface LayoutThemeTextVariants {
119
+ normal: TextStyle;
120
+ title: TextStyle;
121
+ title2: TextStyle;
122
+ title3: TextStyle;
123
+ subtitle: TextStyle;
124
+ placeholder: TextStyle;
125
+ label: TextStyle;
126
+ small: TextStyle;
127
+ smallLabel: TextStyle;
128
+ button: TextStyle;
129
+ textButton: TextStyle;
130
+ }
131
+ export interface LayoutTheme {
132
+ colors: LayoutThemeColors;
133
+ spacings: LayoutThemeSpacings;
134
+ borderRadius: LayoutThemeBorderRadius;
135
+ sizes: LayoutThemeSizes;
136
+ shadows: LayoutThemeShadows;
137
+ textVariants: LayoutThemeTextVariants;
138
+ navigationBar: LayoutThemeNavigationBar;
139
+ tabBar: LayoutThemeTabBar;
140
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=LayoutTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayoutTheme.js","sourceRoot":"","sources":["../../src/themes/LayoutTheme.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface TextStyle {
2
+ fontSize: number;
3
+ fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 'bold';
4
+ color: string;
5
+ fontFamily: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextStyle.js","sourceRoot":"","sources":["../../src/themes/TextStyle.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './systemFont';
2
+ export * from './templates';
3
+ export * from './LayoutTheme';
4
+ export * from './TextStyle';
@@ -0,0 +1,5 @@
1
+ export * from './systemFont';
2
+ export * from './templates';
3
+ export * from './LayoutTheme';
4
+ export * from './TextStyle';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const systemFont = "system-ui";
@@ -0,0 +1,2 @@
1
+ export const systemFont = 'system-ui';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/themes/systemFont/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const systemFont: undefined;
@@ -0,0 +1,2 @@
1
+ export const systemFont = undefined;
2
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../src/themes/systemFont/index.native.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DeepPartial } from 'utility-types';
2
+ import { LayoutTheme } from '../LayoutTheme';
3
+ export declare function createLayoutTheme(properties: DeepPartial<LayoutTheme>, baseTheme?: LayoutTheme): LayoutTheme;
@@ -0,0 +1,10 @@
1
+ import { lightLayoutTheme } from './lightLayoutTheme';
2
+ export function createLayoutTheme(properties, baseTheme = lightLayoutTheme) {
3
+ const newTheme = JSON.parse(JSON.stringify(baseTheme));
4
+ const keys = Object.keys(baseTheme);
5
+ keys.forEach((key) => {
6
+ Object.assign(newTheme[key], properties[key]);
7
+ });
8
+ return newTheme;
9
+ }
10
+ //# sourceMappingURL=createLayoutTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createLayoutTheme.js","sourceRoot":"","sources":["../../../src/themes/templates/createLayoutTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,UAAU,iBAAiB,CAAC,UAAoC,EAAE,YAAyB,gBAAgB;IAC7G,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACjB,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AACpB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { LayoutThemeNavigationBar, LayoutThemeTabBar } from '../LayoutTheme';
2
+ export declare const darkColors: {
3
+ background: string;
4
+ foreground: string;
5
+ text: string;
6
+ textField: string;
7
+ placeholder: string;
8
+ label: string;
9
+ separator: string;
10
+ contentInteractiveColor100: string;
11
+ contentInteractiveColor200: string;
12
+ contentInteractiveColor300: string;
13
+ contentInteractiveColor400: string;
14
+ contentInteractiveColor: string;
15
+ contentInteractiveColor600: string;
16
+ contentInteractiveColor700: string;
17
+ contentInteractiveColor800: string;
18
+ contentInteractiveColor900: string;
19
+ };
20
+ export declare const darkNavigationBarTheme: LayoutThemeNavigationBar;
21
+ export declare const darkTabBarTheme: LayoutThemeTabBar;
22
+ export declare const darkLayoutTheme: import("../LayoutTheme").LayoutTheme;
@@ -0,0 +1,34 @@
1
+ import { black } from '../../colors/presets/black';
2
+ import { createLayoutTheme } from './createLayoutTheme';
3
+ import { lightNavigationBarTheme, lightTabBarTheme } from './lightLayoutTheme';
4
+ export const darkColors = {
5
+ background: black.base400,
6
+ foreground: black.base,
7
+ text: black.base900,
8
+ textField: black.base400,
9
+ placeholder: black.base300,
10
+ label: black.base200,
11
+ separator: black.base400,
12
+ // Content
13
+ contentInteractiveColor100: black.base100,
14
+ contentInteractiveColor200: black.base200,
15
+ contentInteractiveColor300: black.base300,
16
+ contentInteractiveColor400: black.base300,
17
+ contentInteractiveColor: black.base400,
18
+ contentInteractiveColor600: black.base300,
19
+ contentInteractiveColor700: black.base300,
20
+ contentInteractiveColor800: black.base200,
21
+ contentInteractiveColor900: black.base100
22
+ };
23
+ export const darkNavigationBarTheme = Object.assign(Object.assign({}, lightNavigationBarTheme), { title: {
24
+ fontSize: 16,
25
+ fontWeight: 600,
26
+ color: 'white'
27
+ }, backgroundColor: black.base });
28
+ export const darkTabBarTheme = Object.assign(Object.assign({}, lightTabBarTheme), { backgroundColor: black.base });
29
+ export const darkLayoutTheme = createLayoutTheme({
30
+ colors: Object.assign({}, darkColors),
31
+ navigationBar: darkNavigationBarTheme,
32
+ tabBar: darkTabBarTheme
33
+ });
34
+ //# sourceMappingURL=darkLayoutTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"darkLayoutTheme.js","sourceRoot":"","sources":["../../../src/themes/templates/darkLayoutTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,UAAU,EAAE,KAAK,CAAC,OAAO;IACzB,UAAU,EAAE,KAAK,CAAC,IAAI;IACtB,IAAI,EAAE,KAAK,CAAC,OAAO;IACnB,SAAS,EAAE,KAAK,CAAC,OAAO;IACxB,WAAW,EAAE,KAAK,CAAC,OAAO;IAC1B,KAAK,EAAE,KAAK,CAAC,OAAO;IACpB,SAAS,EAAE,KAAK,CAAC,OAAO;IACxB,UAAU;IACV,0BAA0B,EAAE,KAAK,CAAC,OAAO;IACzC,0BAA0B,EAAE,KAAK,CAAC,OAAO;IACzC,0BAA0B,EAAE,KAAK,CAAC,OAAO;IACzC,0BAA0B,EAAE,KAAK,CAAC,OAAO;IACzC,uBAAuB,EAAE,KAAK,CAAC,OAAO;IACtC,0BAA0B,EAAE,KAAK,CAAC,OAAO;IACzC,0BAA0B,EAAE,KAAK,CAAC,OAAO;IACzC,0BAA0B,EAAE,KAAK,CAAC,OAAO;IACzC,0BAA0B,EAAE,KAAK,CAAC,OAAO;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,mCAC5B,uBAAuB,KAC1B,KAAK,EAAE;QACH,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,KAAK,EAAE,OAAO;KACjB,EACD,eAAe,EAAE,KAAK,CAAC,IAAI,GAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,mCACrB,gBAAgB,KACnB,eAAe,EAAE,KAAK,CAAC,IAAI,GAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC7C,MAAM,oBACC,UAAU,CAChB;IACD,aAAa,EAAE,sBAAsB;IACrC,MAAM,EAAE,eAAe;CAC1B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './lightLayoutTheme';
2
+ export * from './createLayoutTheme';
3
+ export * from './darkLayoutTheme';
@@ -0,0 +1,4 @@
1
+ export * from './lightLayoutTheme';
2
+ export * from './createLayoutTheme';
3
+ export * from './darkLayoutTheme';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/themes/templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { LayoutTheme, LayoutThemeBorderRadius, LayoutThemeColors, LayoutThemeNavigationBar, LayoutThemeShadows, LayoutThemeSizes, LayoutThemeSpacings, LayoutThemeTabBar, LayoutThemeTextVariants } from '../LayoutTheme';
2
+ export declare const colors: LayoutThemeColors;
3
+ export declare const spacings: LayoutThemeSpacings;
4
+ export declare const borderRadius: LayoutThemeBorderRadius;
5
+ export declare const sizes: LayoutThemeSizes;
6
+ export declare const shadows: LayoutThemeShadows;
7
+ export declare const textVariants: LayoutThemeTextVariants;
8
+ export declare const lightNavigationBarTheme: LayoutThemeNavigationBar;
9
+ export declare const lightTabBarTheme: LayoutThemeTabBar;
10
+ export declare const lightLayoutTheme: LayoutTheme;