@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.
- package/lib/colors/Color.d.ts +11 -0
- package/lib/colors/Color.js +2 -0
- package/lib/colors/Color.js.map +1 -0
- package/lib/colors/index.d.ts +2 -0
- package/lib/colors/index.js +3 -0
- package/lib/colors/index.js.map +1 -0
- package/lib/colors/presets/black.d.ts +2 -0
- package/lib/colors/presets/black.js +12 -0
- package/lib/colors/presets/black.js.map +1 -0
- package/lib/colors/presets/blue.d.ts +2 -0
- package/lib/colors/presets/blue.js +12 -0
- package/lib/colors/presets/blue.js.map +1 -0
- package/lib/colors/presets/brinkPink.d.ts +2 -0
- package/lib/colors/presets/brinkPink.js +12 -0
- package/lib/colors/presets/brinkPink.js.map +1 -0
- package/lib/colors/presets/cyan.d.ts +2 -0
- package/lib/colors/presets/cyan.js +12 -0
- package/lib/colors/presets/cyan.js.map +1 -0
- package/lib/colors/presets/green.d.ts +2 -0
- package/lib/colors/presets/green.js +12 -0
- package/lib/colors/presets/green.js.map +1 -0
- package/lib/colors/presets/index.d.ts +14 -0
- package/lib/colors/presets/index.js +15 -0
- package/lib/colors/presets/index.js.map +1 -0
- package/lib/colors/presets/lime.d.ts +2 -0
- package/lib/colors/presets/lime.js +12 -0
- package/lib/colors/presets/lime.js.map +1 -0
- package/lib/colors/presets/orange.d.ts +2 -0
- package/lib/colors/presets/orange.js +12 -0
- package/lib/colors/presets/orange.js.map +1 -0
- package/lib/colors/presets/pink.d.ts +2 -0
- package/lib/colors/presets/pink.js +12 -0
- package/lib/colors/presets/pink.js.map +1 -0
- package/lib/colors/presets/purple.d.ts +2 -0
- package/lib/colors/presets/purple.js +12 -0
- package/lib/colors/presets/purple.js.map +1 -0
- package/lib/colors/presets/red.d.ts +2 -0
- package/lib/colors/presets/red.js +12 -0
- package/lib/colors/presets/red.js.map +1 -0
- package/lib/colors/presets/skyBlue.d.ts +2 -0
- package/lib/colors/presets/skyBlue.js +12 -0
- package/lib/colors/presets/skyBlue.js.map +1 -0
- package/lib/colors/presets/turquoise.d.ts +2 -0
- package/lib/colors/presets/turquoise.js +12 -0
- package/lib/colors/presets/turquoise.js.map +1 -0
- package/lib/colors/presets/white.d.ts +2 -0
- package/lib/colors/presets/white.js +12 -0
- package/lib/colors/presets/white.js.map +1 -0
- package/lib/colors/presets/yellow.d.ts +2 -0
- package/lib/colors/presets/yellow.js +12 -0
- package/lib/colors/presets/yellow.js.map +1 -0
- package/lib/components/ApplicationErrorFillWrapper.js +7 -0
- package/lib/components/ApplicationErrorFillWrapper.js.map +1 -0
- package/lib/components/ApplicationErrorHandlerCommon.js +30 -0
- package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -0
- package/lib/components/ErrorBoundaryCommon.js +22 -0
- package/lib/components/ErrorBoundaryCommon.js.map +1 -0
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.d.ts +1 -0
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js +83 -0
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js.map +1 -0
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -0
- package/lib/config/config.js +29 -0
- package/lib/config/config.js.map +1 -0
- package/lib/config/index.js +2 -0
- package/lib/config/index.js.map +1 -0
- package/lib/constants/constants.js +4 -0
- package/lib/constants/constants.js.map +1 -0
- package/lib/constants/error.js +6 -0
- package/lib/constants/error.js.map +1 -0
- package/lib/constants/index.js +3 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/graphql/index.js +2 -0
- package/lib/graphql/index.js.map +1 -0
- package/lib/graphql/link/error-link.js +49 -0
- package/lib/graphql/link/error-link.js.map +1 -0
- package/lib/graphql/link/index.js +2 -0
- package/lib/graphql/link/index.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -1256
- package/lib/index.js.map +1 -1
- package/lib/index.native.d.ts +7 -0
- package/lib/index.native.js +8 -0
- package/lib/index.native.js.map +1 -0
- package/lib/interfaces/default-settings.js +2 -0
- package/lib/interfaces/default-settings.js.map +1 -0
- package/lib/interfaces/error-state.js +2 -0
- package/lib/interfaces/error-state.js.map +1 -0
- package/lib/interfaces/generated/generated-models.d.ts +13 -0
- package/lib/interfaces/generated/generated-models.js +51 -0
- package/lib/interfaces/generated/generated-models.js.map +1 -0
- package/lib/interfaces/generated/index.js +2 -0
- package/lib/interfaces/generated/index.js.map +1 -0
- package/lib/interfaces/index.js +6 -0
- package/lib/interfaces/index.js.map +1 -0
- package/lib/interfaces/pure-settings.d.ts +1 -0
- package/lib/interfaces/pure-settings.js +2 -0
- package/lib/interfaces/pure-settings.js.map +1 -0
- package/lib/interfaces/typings.js +2 -0
- package/lib/interfaces/typings.js.map +1 -0
- package/lib/redux/actions/error-actions.js +22 -0
- package/lib/redux/actions/error-actions.js.map +1 -0
- package/lib/redux/actions/index.js +3 -0
- package/lib/redux/actions/index.js.map +1 -0
- package/lib/redux/actions/settings-action.d.ts +0 -0
- package/lib/redux/actions/settings-action.js +2 -0
- package/lib/redux/actions/settings-action.js.map +1 -0
- package/lib/redux/index.js +4 -0
- package/lib/redux/index.js.map +1 -0
- package/lib/redux/reducers/error.d.ts +2 -2
- package/lib/redux/reducers/error.js +32 -0
- package/lib/redux/reducers/error.js.map +1 -0
- package/lib/redux/reducers/index.js +2 -0
- package/lib/redux/reducers/index.js.map +1 -0
- package/lib/redux/selectors/index.d.ts +1 -1
- package/lib/redux/selectors/index.js +4 -0
- package/lib/redux/selectors/index.js.map +1 -0
- package/lib/redux/settings.d.ts +22 -21
- package/lib/redux/settings.js +38 -0
- package/lib/redux/settings.js.map +1 -0
- package/lib/themes/LayoutTheme.d.ts +140 -0
- package/lib/themes/LayoutTheme.js +2 -0
- package/lib/themes/LayoutTheme.js.map +1 -0
- package/lib/themes/TextStyle.d.ts +6 -0
- package/lib/themes/TextStyle.js +2 -0
- package/lib/themes/TextStyle.js.map +1 -0
- package/lib/themes/index.d.ts +4 -0
- package/lib/themes/index.js +5 -0
- package/lib/themes/index.js.map +1 -0
- package/lib/themes/systemFont/index.d.ts +1 -0
- package/lib/themes/systemFont/index.js +2 -0
- package/lib/themes/systemFont/index.js.map +1 -0
- package/lib/themes/systemFont/index.native.d.ts +1 -0
- package/lib/themes/systemFont/index.native.js +2 -0
- package/lib/themes/systemFont/index.native.js.map +1 -0
- package/lib/themes/templates/createLayoutTheme.d.ts +3 -0
- package/lib/themes/templates/createLayoutTheme.js +10 -0
- package/lib/themes/templates/createLayoutTheme.js.map +1 -0
- package/lib/themes/templates/darkLayoutTheme.d.ts +22 -0
- package/lib/themes/templates/darkLayoutTheme.js +34 -0
- package/lib/themes/templates/darkLayoutTheme.js.map +1 -0
- package/lib/themes/templates/index.d.ts +3 -0
- package/lib/themes/templates/index.js +4 -0
- package/lib/themes/templates/index.js.map +1 -0
- package/lib/themes/templates/lightLayoutTheme.d.ts +10 -0
- package/lib/themes/templates/lightLayoutTheme.js +217 -0
- package/lib/themes/templates/lightLayoutTheme.js.map +1 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/seperatedMenus.js +15 -0
- package/lib/utils/seperatedMenus.js.map +1 -0
- 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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"settings-action.js","sourceRoot":"","sources":["../../../src/redux/actions/settings-action.ts"],"names":[],"mappings":"AAAA,EAAE"}
|
|
@@ -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
|
|
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 @@
|
|
|
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"}
|
package/lib/redux/settings.d.ts
CHANGED
|
@@ -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
|
-
|
|
27
|
-
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutTheme.js","sourceRoot":"","sources":["../../src/themes/LayoutTheme.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextStyle.js","sourceRoot":"","sources":["../../src/themes/TextStyle.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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,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 @@
|
|
|
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;
|