@deix/rossini-core 0.1.0 → 0.2.2
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/README.md +13 -0
- package/lib/package.json +21 -21
- package/lib/src/components/buttons/Avatar/Avatar.d.ts +1 -1
- package/lib/src/components/buttons/Avatar/Avatar.d.ts.map +1 -1
- package/lib/src/components/buttons/Avatar/Avatar.js +1 -1
- package/lib/src/components/buttons/LanguageSelect/LanguageSelect.d.ts +0 -1
- package/lib/src/components/buttons/LanguageSelect/LanguageSelect.d.ts.map +1 -1
- package/lib/src/components/buttons/LanguageSelect/LanguageSelect.js +2 -2
- package/lib/src/components/buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/lib/src/components/buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -1
- package/lib/src/components/buttons/index.d.ts +3 -0
- package/lib/src/components/buttons/index.d.ts.map +1 -1
- package/lib/src/components/index.d.ts +7 -0
- package/lib/src/components/index.d.ts.map +1 -0
- package/lib/src/components/index.js +3 -0
- package/lib/src/components/layout/MinimalLayout/MinimalLayout.js +2 -1
- package/lib/src/components/layout/StandardLayout/StandardLayout.d.ts +6 -4
- package/lib/src/components/layout/StandardLayout/StandardLayout.d.ts.map +1 -1
- package/lib/src/components/layout/StandardLayout/StandardLayout.js +19 -7
- package/lib/src/components/layout/assets/deix_logo_symbol_minimal.svg +15 -0
- package/lib/src/components/layout/assets/undraw_server_down.svg +1 -0
- package/lib/src/components/layout/components/AppLogo/AppLogo.d.ts +5 -3
- package/lib/src/components/layout/components/AppLogo/AppLogo.d.ts.map +1 -1
- package/lib/src/components/layout/components/Footer/Footer.d.ts.map +1 -1
- package/lib/src/components/layout/components/Footer/Footer.js +3 -2
- package/lib/src/components/layout/components/Sidebar/Sidebar.d.ts +1 -1
- package/lib/src/components/layout/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/src/components/layout/components/Sidebar/Sidebar.js +1 -1
- package/lib/src/components/layout/components/Topbar/Topbar.d.ts +4 -4
- package/lib/src/components/layout/components/Topbar/Topbar.d.ts.map +1 -1
- package/lib/src/components/layout/components/Topbar/Topbar.js +3 -3
- package/lib/src/components/layout/components/Topbar/Topbar.styles.d.ts +3 -3
- package/lib/src/components/layout/index.d.ts +4 -1
- package/lib/src/components/layout/index.d.ts.map +1 -1
- package/lib/src/components/layout/index.js +1 -1
- package/lib/src/components/progress/CircularLoading/CircularLoading.d.ts +2 -5
- package/lib/src/components/progress/CircularLoading/CircularLoading.d.ts.map +1 -1
- package/lib/src/components/progress/DotWaveLoading/DotWaveLoading.d.ts +2 -5
- package/lib/src/components/progress/DotWaveLoading/DotWaveLoading.d.ts.map +1 -1
- package/lib/src/components/progress/index.d.ts +1 -0
- package/lib/src/components/progress/index.d.ts.map +1 -1
- package/lib/src/components/progress/types.d.ts +5 -0
- package/lib/src/components/progress/types.d.ts.map +1 -0
- package/lib/src/components/progress/types.js +1 -0
- package/lib/src/index.d.ts +7 -0
- package/lib/src/index.d.ts.map +1 -0
- package/lib/src/index.js +3 -0
- package/lib/src/types/index.d.ts +4 -0
- package/lib/src/types/index.d.ts.map +1 -0
- package/lib/src/types/index.js +1 -0
- package/lib/src/types/languages.d.ts +5 -1
- package/lib/src/types/languages.d.ts.map +1 -1
- package/lib/src/types/languages.js +6 -0
- package/lib/src/utils/helpers/colorHelpers.d.ts +5 -0
- package/lib/src/utils/helpers/colorHelpers.d.ts.map +1 -0
- package/lib/src/utils/helpers/colorHelpers.js +173 -0
- package/lib/src/utils/helpers/dateHelpers.d.ts +9 -0
- package/lib/src/utils/helpers/dateHelpers.d.ts.map +1 -0
- package/lib/src/utils/helpers/dateHelpers.js +29 -0
- package/lib/src/utils/helpers/index.d.ts +4 -0
- package/lib/src/utils/helpers/index.d.ts.map +1 -0
- package/lib/src/utils/helpers/index.js +3 -0
- package/lib/src/utils/helpers/stringHelpers.d.ts +6 -0
- package/lib/src/utils/helpers/stringHelpers.d.ts.map +1 -0
- package/lib/src/utils/helpers/stringHelpers.js +40 -0
- package/lib/src/utils/hooks/index.d.ts +6 -0
- package/lib/src/utils/hooks/index.d.ts.map +1 -0
- package/lib/src/utils/hooks/index.js +4 -0
- package/lib/src/utils/hooks/useAPI.d.ts +2 -1
- package/lib/src/utils/hooks/useAPI.d.ts.map +1 -1
- package/lib/src/utils/hooks/useAPI.js +2 -1
- package/lib/src/utils/hooks/usePersistedState.d.ts +2 -1
- package/lib/src/utils/hooks/usePersistedState.d.ts.map +1 -1
- package/lib/src/utils/hooks/usePersistedState.js +2 -1
- package/lib/src/utils/index.d.ts +5 -0
- package/lib/src/utils/index.d.ts.map +1 -0
- package/lib/src/utils/index.js +3 -0
- package/lib/src/utils/provider/PageProvider.d.ts +12 -0
- package/lib/src/utils/provider/PageProvider.d.ts.map +1 -0
- package/lib/src/utils/provider/PageProvider.js +17 -0
- package/lib/src/utils/provider/ThemeProvider.d.ts +9 -0
- package/lib/src/utils/provider/ThemeProvider.d.ts.map +1 -0
- package/lib/src/utils/provider/ThemeProvider.js +23 -0
- package/lib/src/utils/theme/components/MuiAccordion.d.ts +22 -0
- package/lib/src/utils/theme/components/MuiAccordion.d.ts.map +1 -0
- package/lib/src/utils/theme/components/MuiAccordion.js +20 -0
- package/lib/src/utils/theme/components/MuiCard.d.ts +12 -0
- package/lib/src/utils/theme/components/MuiCard.d.ts.map +1 -0
- package/lib/src/utils/theme/components/MuiCard.js +10 -0
- package/lib/src/utils/theme/components/MuiCardHeader.d.ts +17 -0
- package/lib/src/utils/theme/components/MuiCardHeader.d.ts.map +1 -0
- package/lib/src/utils/theme/components/MuiCardHeader.js +15 -0
- package/lib/src/utils/theme/components/MuiFormControl.d.ts +8 -0
- package/lib/src/utils/theme/components/MuiFormControl.d.ts.map +1 -0
- package/lib/src/utils/theme/components/MuiFormControl.js +6 -0
- package/lib/src/utils/theme/components/MuiGrid.d.ts +7 -0
- package/lib/src/utils/theme/components/MuiGrid.d.ts.map +1 -0
- package/lib/src/utils/theme/components/MuiGrid.js +5 -0
- package/lib/src/utils/theme/components/MuiPaper.d.ts +16 -0
- package/lib/src/utils/theme/components/MuiPaper.d.ts.map +1 -0
- package/lib/src/utils/theme/components/MuiPaper.js +14 -0
- package/lib/src/utils/theme/components/MuiTypography.d.ts +7 -0
- package/lib/src/utils/theme/components/MuiTypography.d.ts.map +1 -0
- package/lib/src/utils/theme/components/MuiTypography.js +5 -0
- package/lib/src/utils/theme/components/index.d.ts +79 -0
- package/lib/src/utils/theme/components/index.d.ts.map +1 -0
- package/lib/src/utils/theme/components/index.js +16 -0
- package/lib/src/utils/theme/createEmotionCache.d.ts +2 -0
- package/lib/src/utils/theme/createEmotionCache.d.ts.map +1 -0
- package/lib/src/utils/theme/createEmotionCache.js +5 -0
- package/lib/src/utils/theme/index.d.ts +6 -0
- package/lib/src/utils/theme/index.d.ts.map +1 -0
- package/lib/src/utils/theme/index.js +29 -0
- package/lib/src/utils/theme/palette/defaultColors.json +68 -0
- package/lib/src/utils/theme/palette/index.d.ts +7 -0
- package/lib/src/utils/theme/palette/index.d.ts.map +1 -0
- package/lib/src/utils/theme/palette/index.js +88 -0
- package/lib/src/utils/theme/typography.d.ts +67 -0
- package/lib/src/utils/theme/typography.d.ts.map +1 -0
- package/lib/src/utils/theme/typography.js +65 -0
- package/lib/tsconfig-lib.tsbuildinfo +1 -1
- package/package.json +21 -21
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
locale?: Locale;
|
|
5
|
-
}
|
|
6
|
-
declare const DotWaveLoading: React.FC<DotWaveLoadingProps>;
|
|
2
|
+
import { LoaderProps } from '../types';
|
|
3
|
+
declare const DotWaveLoading: React.FC<LoaderProps>;
|
|
7
4
|
export default DotWaveLoading;
|
|
8
5
|
//# sourceMappingURL=DotWaveLoading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DotWaveLoading.d.ts","sourceRoot":"","sources":["../../../../../src/components/progress/DotWaveLoading/DotWaveLoading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DotWaveLoading.d.ts","sourceRoot":"","sources":["../../../../../src/components/progress/DotWaveLoading/DotWaveLoading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAgBzC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5E,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/progress/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Avatar, CircularLoading, DotWaveLoading, LanguageSelect, MinimalLayout, StandardLayout, ToggleButtonGroup, } from './components';
|
|
2
|
+
export type { AppLogoInfo, AvatarProps, ButtonGroupOption, FooterProps, LanguageSelectProps, LoaderProps, SidebarLink, SidebarProps, ToggleButtonGroupProps, } from './components';
|
|
3
|
+
export { isStringTranslation } from './types';
|
|
4
|
+
export type { DBRow, DBRows, Locale, PaginatedResponse, Query, StringTranslation, } from './types';
|
|
5
|
+
export { camelToSnake, colorToRgb, commonStart, dateDiff, getTextColor, getTimeStr, hexToRgb, isValidDate, PageProvider, stringToColor, toTitleCase, useAPI, useLocale, usePersistedState, useUserInfo, } from './utils';
|
|
6
|
+
export type { UserInfo } from './utils';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,eAAe,EACf,cAAc,EACd,cAAc,EACd,aAAa,EACb,cAAc,EACd,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,YAAY,EACV,KAAK,EACL,MAAM,EACN,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,iBAAiB,GAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,YAAY,EACZ,UAAU,EACV,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,aAAa,EACb,WAAW,EACX,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
package/lib/src/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Avatar, CircularLoading, DotWaveLoading, LanguageSelect, MinimalLayout, StandardLayout, ToggleButtonGroup, } from './components';
|
|
2
|
+
export { isStringTranslation } from './types';
|
|
3
|
+
export { camelToSnake, colorToRgb, commonStart, dateDiff, getTextColor, getTimeStr, hexToRgb, isValidDate, PageProvider, stringToColor, toTitleCase, useAPI, useLocale, usePersistedState, useUserInfo, } from './utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isStringTranslation } from './languages';
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export type Locale = 'en' | 'de' | 'fr' | 'it';
|
|
2
|
+
export type CountryCode = 'us' | 'de' | 'fr' | 'it';
|
|
2
3
|
export type StringTranslation = {
|
|
3
4
|
[key in Locale]?: string;
|
|
4
5
|
};
|
|
5
6
|
export interface Language {
|
|
6
7
|
id: Locale;
|
|
7
8
|
label: string;
|
|
8
|
-
countryCode:
|
|
9
|
+
countryCode: CountryCode;
|
|
9
10
|
MUILocale: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const isStringTranslation: (value: unknown) => value is StringTranslation;
|
|
13
|
+
export declare const flagIcons: {
|
|
14
|
+
[key in CountryCode]: string;
|
|
15
|
+
};
|
|
12
16
|
//# sourceMappingURL=languages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../../src/types/languages.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../../src/types/languages.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/C,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;KAC7B,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM;CACzB,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB,UACvB,OAAO,+BAGf,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE;KAAG,GAAG,IAAI,WAAW,GAAG,MAAM;CAKrD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function hexToRgb(hex: string): number[] | null;
|
|
2
|
+
export declare const colorToRgb: (colour: string) => number[] | null;
|
|
3
|
+
export declare const getBrightness: (rgb: number[] | null) => number;
|
|
4
|
+
export declare const getTextColor: (background_rgb: number[] | string | null) => "black" | "white";
|
|
5
|
+
//# sourceMappingURL=colorHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorHelpers.d.ts","sourceRoot":"","sources":["../../../../src/utils/helpers/colorHelpers.ts"],"names":[],"mappings":"AAwJA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,mBASnC;AAED,eAAO,MAAM,UAAU,WAAY,MAAM,oBAIxC,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,MAAM,EAAE,GAAG,IAAI,WACyB,CAAC;AAE5E,eAAO,MAAM,YAAY,mBAAoB,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,sBAQpE,CAAC"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
function colourNameToHex(colour) {
|
|
2
|
+
var colours = {
|
|
3
|
+
aliceblue: '#f0f8ff',
|
|
4
|
+
antiquewhite: '#faebd7',
|
|
5
|
+
aqua: '#00ffff',
|
|
6
|
+
aquamarine: '#7fffd4',
|
|
7
|
+
azure: '#f0ffff',
|
|
8
|
+
beige: '#f5f5dc',
|
|
9
|
+
bisque: '#ffe4c4',
|
|
10
|
+
black: '#000000',
|
|
11
|
+
blanchedalmond: '#ffebcd',
|
|
12
|
+
blue: '#0000ff',
|
|
13
|
+
blueviolet: '#8a2be2',
|
|
14
|
+
brown: '#a52a2a',
|
|
15
|
+
burlywood: '#deb887',
|
|
16
|
+
cadetblue: '#5f9ea0',
|
|
17
|
+
chartreuse: '#7fff00',
|
|
18
|
+
chocolate: '#d2691e',
|
|
19
|
+
coral: '#ff7f50',
|
|
20
|
+
cornflowerblue: '#6495ed',
|
|
21
|
+
cornsilk: '#fff8dc',
|
|
22
|
+
crimson: '#dc143c',
|
|
23
|
+
cyan: '#00ffff',
|
|
24
|
+
darkblue: '#00008b',
|
|
25
|
+
darkcyan: '#008b8b',
|
|
26
|
+
darkgoldenrod: '#b8860b',
|
|
27
|
+
darkgray: '#a9a9a9',
|
|
28
|
+
darkgreen: '#006400',
|
|
29
|
+
darkkhaki: '#bdb76b',
|
|
30
|
+
darkmagenta: '#8b008b',
|
|
31
|
+
darkolivegreen: '#556b2f',
|
|
32
|
+
darkorange: '#ff8c00',
|
|
33
|
+
darkorchid: '#9932cc',
|
|
34
|
+
darkred: '#8b0000',
|
|
35
|
+
darksalmon: '#e9967a',
|
|
36
|
+
darkseagreen: '#8fbc8f',
|
|
37
|
+
darkslateblue: '#483d8b',
|
|
38
|
+
darkslategray: '#2f4f4f',
|
|
39
|
+
darkturquoise: '#00ced1',
|
|
40
|
+
darkviolet: '#9400d3',
|
|
41
|
+
deeppink: '#ff1493',
|
|
42
|
+
deepskyblue: '#00bfff',
|
|
43
|
+
dimgray: '#696969',
|
|
44
|
+
dodgerblue: '#1e90ff',
|
|
45
|
+
firebrick: '#b22222',
|
|
46
|
+
floralwhite: '#fffaf0',
|
|
47
|
+
forestgreen: '#228b22',
|
|
48
|
+
fuchsia: '#ff00ff',
|
|
49
|
+
gainsboro: '#dcdcdc',
|
|
50
|
+
ghostwhite: '#f8f8ff',
|
|
51
|
+
gold: '#ffd700',
|
|
52
|
+
goldenrod: '#daa520',
|
|
53
|
+
gray: '#808080',
|
|
54
|
+
green: '#008000',
|
|
55
|
+
greenyellow: '#adff2f',
|
|
56
|
+
honeydew: '#f0fff0',
|
|
57
|
+
hotpink: '#ff69b4',
|
|
58
|
+
indianred: '#cd5c5c',
|
|
59
|
+
indigo: '#4b0082',
|
|
60
|
+
ivory: '#fffff0',
|
|
61
|
+
khaki: '#f0e68c',
|
|
62
|
+
lavender: '#e6e6fa',
|
|
63
|
+
lavenderblush: '#fff0f5',
|
|
64
|
+
lawngreen: '#7cfc00',
|
|
65
|
+
lemonchiffon: '#fffacd',
|
|
66
|
+
lightblue: '#add8e6',
|
|
67
|
+
lightcoral: '#f08080',
|
|
68
|
+
lightcyan: '#e0ffff',
|
|
69
|
+
lightgoldenrodyellow: '#fafad2',
|
|
70
|
+
lightgrey: '#d3d3d3',
|
|
71
|
+
lightgreen: '#90ee90',
|
|
72
|
+
lightpink: '#ffb6c1',
|
|
73
|
+
lightsalmon: '#ffa07a',
|
|
74
|
+
lightseagreen: '#20b2aa',
|
|
75
|
+
lightskyblue: '#87cefa',
|
|
76
|
+
lightslategray: '#778899',
|
|
77
|
+
lightsteelblue: '#b0c4de',
|
|
78
|
+
lightyellow: '#ffffe0',
|
|
79
|
+
lime: '#00ff00',
|
|
80
|
+
limegreen: '#32cd32',
|
|
81
|
+
linen: '#faf0e6',
|
|
82
|
+
magenta: '#ff00ff',
|
|
83
|
+
maroon: '#800000',
|
|
84
|
+
mediumaquamarine: '#66cdaa',
|
|
85
|
+
mediumblue: '#0000cd',
|
|
86
|
+
mediumorchid: '#ba55d3',
|
|
87
|
+
mediumpurple: '#9370d8',
|
|
88
|
+
mediumseagreen: '#3cb371',
|
|
89
|
+
mediumslateblue: '#7b68ee',
|
|
90
|
+
mediumspringgreen: '#00fa9a',
|
|
91
|
+
mediumturquoise: '#48d1cc',
|
|
92
|
+
mediumvioletred: '#c71585',
|
|
93
|
+
midnightblue: '#191970',
|
|
94
|
+
mintcream: '#f5fffa',
|
|
95
|
+
mistyrose: '#ffe4e1',
|
|
96
|
+
moccasin: '#ffe4b5',
|
|
97
|
+
navajowhite: '#ffdead',
|
|
98
|
+
navy: '#000080',
|
|
99
|
+
oldlace: '#fdf5e6',
|
|
100
|
+
olive: '#808000',
|
|
101
|
+
olivedrab: '#6b8e23',
|
|
102
|
+
orange: '#ffa500',
|
|
103
|
+
orangered: '#ff4500',
|
|
104
|
+
orchid: '#da70d6',
|
|
105
|
+
palegoldenrod: '#eee8aa',
|
|
106
|
+
palegreen: '#98fb98',
|
|
107
|
+
paleturquoise: '#afeeee',
|
|
108
|
+
palevioletred: '#d87093',
|
|
109
|
+
papayawhip: '#ffefd5',
|
|
110
|
+
peachpuff: '#ffdab9',
|
|
111
|
+
peru: '#cd853f',
|
|
112
|
+
pink: '#ffc0cb',
|
|
113
|
+
plum: '#dda0dd',
|
|
114
|
+
powderblue: '#b0e0e6',
|
|
115
|
+
purple: '#800080',
|
|
116
|
+
rebeccapurple: '#663399',
|
|
117
|
+
red: '#ff0000',
|
|
118
|
+
rosybrown: '#bc8f8f',
|
|
119
|
+
royalblue: '#4169e1',
|
|
120
|
+
saddlebrown: '#8b4513',
|
|
121
|
+
salmon: '#fa8072',
|
|
122
|
+
sandybrown: '#f4a460',
|
|
123
|
+
seagreen: '#2e8b57',
|
|
124
|
+
seashell: '#fff5ee',
|
|
125
|
+
sienna: '#a0522d',
|
|
126
|
+
silver: '#c0c0c0',
|
|
127
|
+
skyblue: '#87ceeb',
|
|
128
|
+
slateblue: '#6a5acd',
|
|
129
|
+
slategray: '#708090',
|
|
130
|
+
snow: '#fffafa',
|
|
131
|
+
springgreen: '#00ff7f',
|
|
132
|
+
steelblue: '#4682b4',
|
|
133
|
+
tan: '#d2b48c',
|
|
134
|
+
teal: '#008080',
|
|
135
|
+
thistle: '#d8bfd8',
|
|
136
|
+
tomato: '#ff6347',
|
|
137
|
+
turquoise: '#40e0d0',
|
|
138
|
+
violet: '#ee82ee',
|
|
139
|
+
wheat: '#f5deb3',
|
|
140
|
+
white: '#ffffff',
|
|
141
|
+
whitesmoke: '#f5f5f5',
|
|
142
|
+
yellow: '#ffff00',
|
|
143
|
+
yellowgreen: '#9acd32',
|
|
144
|
+
};
|
|
145
|
+
if (colour.toLowerCase() in colours) {
|
|
146
|
+
return colours[colour.toLowerCase()];
|
|
147
|
+
}
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
export function hexToRgb(hex) {
|
|
151
|
+
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
152
|
+
return result
|
|
153
|
+
? [
|
|
154
|
+
parseInt(result[1], 16),
|
|
155
|
+
parseInt(result[2], 16),
|
|
156
|
+
parseInt(result[3], 16),
|
|
157
|
+
]
|
|
158
|
+
: null;
|
|
159
|
+
}
|
|
160
|
+
export var colorToRgb = function (colour) {
|
|
161
|
+
var hexColor = colour.charAt(0) === '#' ? colour : colourNameToHex(colour);
|
|
162
|
+
return hexColor ? hexToRgb(hexColor) : [0, 0, 0];
|
|
163
|
+
};
|
|
164
|
+
export var getBrightness = function (rgb) {
|
|
165
|
+
return rgb ? Math.round((rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000) : 0;
|
|
166
|
+
};
|
|
167
|
+
export var getTextColor = function (background_rgb) {
|
|
168
|
+
// it give black or white color based on background color
|
|
169
|
+
var brightness = getBrightness(typeof background_rgb === 'string'
|
|
170
|
+
? colorToRgb(background_rgb)
|
|
171
|
+
: background_rgb);
|
|
172
|
+
return brightness > 125 ? 'black' : 'white';
|
|
173
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const dateDiff: (date1: Date, date2: Date) => {
|
|
2
|
+
days: number;
|
|
3
|
+
hours: number;
|
|
4
|
+
minutes: number;
|
|
5
|
+
seconds: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const getTimeStr: (value: number) => string;
|
|
8
|
+
export declare const isValidDate: (d: string | Date) => d is Date;
|
|
9
|
+
//# sourceMappingURL=dateHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateHelpers.d.ts","sourceRoot":"","sources":["../../../../src/utils/helpers/dateHelpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,UAAW,IAAI,SAAS,IAAI;;;;;CAkBhD,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,MAAM,WASvC,CAAC;AAEF,eAAO,MAAM,WAAW,MAAO,MAAM,GAAG,IAAI,cAG3C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export var dateDiff = function (date1, date2) {
|
|
2
|
+
var elapsedSeconds = Math.abs(date2.getTime() - date1.getTime()) / 1000; // in seconds
|
|
3
|
+
var elapsedDays = Math.floor(elapsedSeconds / 86400);
|
|
4
|
+
elapsedSeconds -= elapsedDays * 86400;
|
|
5
|
+
var elapsedHours = Math.floor(elapsedSeconds / 3600) % 24;
|
|
6
|
+
elapsedSeconds -= elapsedHours * 3600;
|
|
7
|
+
var elapsedMinutes = Math.floor(elapsedSeconds / 60) % 60;
|
|
8
|
+
elapsedSeconds -= elapsedMinutes * 60;
|
|
9
|
+
return {
|
|
10
|
+
days: elapsedDays,
|
|
11
|
+
hours: elapsedHours,
|
|
12
|
+
minutes: elapsedMinutes,
|
|
13
|
+
seconds: elapsedSeconds,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export var getTimeStr = function (value) {
|
|
17
|
+
// converts hours in a string {xx}h {yy}m {zz}s
|
|
18
|
+
var hv = Math.floor(value);
|
|
19
|
+
var restv = value - hv;
|
|
20
|
+
var mv = Math.floor(restv * 60);
|
|
21
|
+
restv = restv * 60 - mv;
|
|
22
|
+
var sv = Math.floor(restv * 60);
|
|
23
|
+
var retStr = "".concat(hv, "h ").concat(mv, "m ").concat(sv, "s");
|
|
24
|
+
return retStr;
|
|
25
|
+
};
|
|
26
|
+
export var isValidDate = function (d) {
|
|
27
|
+
var date = new Date(d);
|
|
28
|
+
return date instanceof Date && !isNaN(date.getDate());
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EACH,YAAY,EACZ,WAAW,EAAE,aAAa,EAAE,WAAW,GAC1C,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const camelToSnake: (inputString: string) => string;
|
|
2
|
+
export declare const snakeToCamel: (inputString: string) => string;
|
|
3
|
+
export declare const toTitleCase: (inputString: string, sep?: string) => string;
|
|
4
|
+
export declare const stringToColor: (string: string) => string;
|
|
5
|
+
export declare const commonStart: (strings: string[]) => string;
|
|
6
|
+
//# sourceMappingURL=stringHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringHelpers.d.ts","sourceRoot":"","sources":["../../../../src/utils/helpers/stringHelpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,gBAAiB,MAAM,KAAG,MAC0B,CAAC;AAE9E,eAAO,MAAM,YAAY,gBAAiB,MAAM,KAAG,MAGhD,CAAC;AAEJ,eAAO,MAAM,WAAW,gBAAiB,MAAM,mBAAc,MAI/C,CAAC;AAEf,eAAO,MAAM,aAAa,WAAY,MAAM,WAkB3C,CAAC;AAEF,eAAO,MAAM,WAAW,YAAa,MAAM,EAAE,WAS5C,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export var camelToSnake = function (inputString) {
|
|
2
|
+
return inputString.replace(/[\w]([A-Z])/g, function (m) { return "".concat(m[0], "-").concat(m[1]); }).toLowerCase();
|
|
3
|
+
};
|
|
4
|
+
export var snakeToCamel = function (inputString) {
|
|
5
|
+
return inputString.replace(/([-_][a-z])/g, function (subStr) {
|
|
6
|
+
return subStr.toUpperCase().replace('-', '').replace('_', '');
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export var toTitleCase = function (inputString, sep) {
|
|
10
|
+
if (sep === void 0) { sep = '_'; }
|
|
11
|
+
return inputString
|
|
12
|
+
.split(sep)
|
|
13
|
+
.map(function (word) { return word[0].toUpperCase() + word.slice(1).toLowerCase(); })
|
|
14
|
+
.join(' ');
|
|
15
|
+
};
|
|
16
|
+
export var stringToColor = function (string) {
|
|
17
|
+
var hash = 0;
|
|
18
|
+
var i;
|
|
19
|
+
/* eslint-disable no-bitwise */
|
|
20
|
+
for (i = 0; i < string.length; i += 1) {
|
|
21
|
+
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
|
22
|
+
}
|
|
23
|
+
var color = '#';
|
|
24
|
+
for (i = 0; i < 3; i += 1) {
|
|
25
|
+
var value = (hash >> (i * 8)) & 0xff;
|
|
26
|
+
color += "00".concat(value.toString(16)).slice(-2);
|
|
27
|
+
}
|
|
28
|
+
/* eslint-enable no-bitwise */
|
|
29
|
+
return color;
|
|
30
|
+
};
|
|
31
|
+
export var commonStart = function (strings) {
|
|
32
|
+
var sortedList = strings.slice().sort();
|
|
33
|
+
var first = sortedList[0];
|
|
34
|
+
var last = sortedList[sortedList.length - 1];
|
|
35
|
+
var i = 0;
|
|
36
|
+
while (i < first.length && first.charAt(i) === last.charAt(i)) {
|
|
37
|
+
i++;
|
|
38
|
+
}
|
|
39
|
+
return first.substring(0, i);
|
|
40
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as useAPI } from './useAPI';
|
|
2
|
+
export { useUserInfo } from './useKeycloak';
|
|
3
|
+
export type { UserInfo } from './useKeycloak';
|
|
4
|
+
export { useLocale } from './useLocale';
|
|
5
|
+
export { default as usePersistedState } from './usePersistedState';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAPI.d.ts","sourceRoot":"","sources":["../../../../src/utils/hooks/useAPI.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,
|
|
1
|
+
{"version":3,"file":"useAPI.d.ts","sourceRoot":"","sources":["../../../../src/utils/hooks/useAPI.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,QAAA,MAAM,MAAM,aAAc,MAAM,KAAG,aAM/B,CAAC;AAEL,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
declare function usePersistedState<T>(name: string, defaultValue: T): [T, (value: T) => void];
|
|
2
|
+
export default usePersistedState;
|
|
2
3
|
//# sourceMappingURL=usePersistedState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePersistedState.d.ts","sourceRoot":"","sources":["../../../../src/utils/hooks/usePersistedState.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"usePersistedState.d.ts","sourceRoot":"","sources":["../../../../src/utils/hooks/usePersistedState.ts"],"names":[],"mappings":"AAEA,iBAAS,iBAAiB,CAAC,CAAC,EAC1B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,CAAC,GACd,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,CAyBzB;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
|
|
2
|
+
function usePersistedState(name, defaultValue) {
|
|
3
3
|
var _a = useState(function () {
|
|
4
4
|
try {
|
|
5
5
|
var value_1 = window.localStorage.getItem(name);
|
|
@@ -25,3 +25,4 @@ export function usePersistedState(name, defaultValue) {
|
|
|
25
25
|
}, [value]);
|
|
26
26
|
return [value, setValue];
|
|
27
27
|
}
|
|
28
|
+
export default usePersistedState;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { camelToSnake, colorToRgb, commonStart, dateDiff, getTextColor, getTimeStr, hexToRgb, isValidDate, stringToColor, toTitleCase, } from './helpers';
|
|
2
|
+
export { useAPI, useLocale, usePersistedState, useUserInfo } from './hooks';
|
|
3
|
+
export type { UserInfo } from './hooks';
|
|
4
|
+
export { default as PageProvider } from './provider/PageProvider';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,WAAW,EAAE,aAAa,EAAE,WAAW,GACxC,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5E,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { camelToSnake, colorToRgb, commonStart, dateDiff, getTextColor, getTimeStr, hexToRgb, isValidDate, stringToColor, toTitleCase, } from './helpers';
|
|
2
|
+
export { useAPI, useLocale, usePersistedState, useUserInfo } from './hooks';
|
|
3
|
+
export { default as PageProvider } from './provider/PageProvider';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmotionCache } from '@emotion/react';
|
|
3
|
+
import { PaletteOptions } from '@mui/material';
|
|
4
|
+
interface PageProviderProps {
|
|
5
|
+
emotionCache?: EmotionCache;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
lightPalette?: PaletteOptions;
|
|
8
|
+
darkPalette?: PaletteOptions;
|
|
9
|
+
}
|
|
10
|
+
declare const PageProvider: React.FC<PageProviderProps>;
|
|
11
|
+
export default PageProvider;
|
|
12
|
+
//# sourceMappingURL=PageProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageProvider.d.ts","sourceRoot":"","sources":["../../../../src/utils/provider/PageProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAiB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAM/C,UAAU,iBAAiB;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,WAAW,CAAC,EAAE,cAAc,CAAC;CAC9B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgB7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeProvider as NextThemeProvider } from 'next-themes';
|
|
3
|
+
import Head from 'next/head';
|
|
4
|
+
import { CacheProvider } from '@emotion/react';
|
|
5
|
+
import createEmotionCache from '../theme/createEmotionCache';
|
|
6
|
+
import ThemeProvider from './ThemeProvider';
|
|
7
|
+
// Client-side cache, shared for the whole session of the user in the browser.
|
|
8
|
+
var clientSideEmotionCache = createEmotionCache();
|
|
9
|
+
var PageProvider = function (_a) {
|
|
10
|
+
var children = _a.children, _b = _a.emotionCache, emotionCache = _b === void 0 ? clientSideEmotionCache : _b, lightPalette = _a.lightPalette, darkPalette = _a.darkPalette;
|
|
11
|
+
return (React.createElement(NextThemeProvider, null,
|
|
12
|
+
React.createElement(CacheProvider, { value: emotionCache },
|
|
13
|
+
React.createElement(Head, null,
|
|
14
|
+
React.createElement("meta", { name: 'viewport', content: 'initial-scale=1, width=device-width' })),
|
|
15
|
+
React.createElement(ThemeProvider, { lightPalette: lightPalette, darkPalette: darkPalette }, children))));
|
|
16
|
+
};
|
|
17
|
+
export default PageProvider;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaletteOptions } from '@mui/material';
|
|
3
|
+
declare const ThemeProvider: React.FC<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
lightPalette?: PaletteOptions;
|
|
6
|
+
darkPalette?: PaletteOptions;
|
|
7
|
+
}>;
|
|
8
|
+
export default ThemeProvider;
|
|
9
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/utils/provider/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAGL,cAAc,EAEf,MAAM,eAAe,CAAC;AAMvB,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,WAAW,CAAC,EAAE,cAAc,CAAC;CAC9B,CA8BA,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { useTheme } from 'next-themes';
|
|
3
|
+
import { CssBaseline, GlobalStyles, ThemeProvider as MUIThemeProvider, } from '@mui/material';
|
|
4
|
+
import { useLocale } from '../hooks/useLocale';
|
|
5
|
+
import { adaptiveTheme, globalStyles } from '../theme';
|
|
6
|
+
var ThemeProvider = function (_a) {
|
|
7
|
+
var children = _a.children, lightPalette = _a.lightPalette, darkPalette = _a.darkPalette;
|
|
8
|
+
// Dark/Light Mode
|
|
9
|
+
var resolvedTheme = useTheme().resolvedTheme;
|
|
10
|
+
var _b = useState(adaptiveTheme('light', 'en', lightPalette, darkPalette)), currentTheme = _b[0], setCurrentTheme = _b[1];
|
|
11
|
+
// Locale
|
|
12
|
+
var locale = useLocale();
|
|
13
|
+
useEffect(function () {
|
|
14
|
+
if (resolvedTheme) {
|
|
15
|
+
setCurrentTheme(adaptiveTheme(resolvedTheme, locale, lightPalette, darkPalette));
|
|
16
|
+
}
|
|
17
|
+
}, [resolvedTheme, locale]);
|
|
18
|
+
return (React.createElement(MUIThemeProvider, { theme: currentTheme },
|
|
19
|
+
React.createElement(CssBaseline, null),
|
|
20
|
+
React.createElement(GlobalStyles, { styles: globalStyles }),
|
|
21
|
+
children));
|
|
22
|
+
};
|
|
23
|
+
export default ThemeProvider;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
rounded: {
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
'&:first-of-type': {
|
|
6
|
+
borderTopLeftRadius: string;
|
|
7
|
+
borderTopRightRadius: string;
|
|
8
|
+
};
|
|
9
|
+
'&:last-of-type': {
|
|
10
|
+
borderBottomLeftRadius: string;
|
|
11
|
+
borderBottomRightRadius: string;
|
|
12
|
+
};
|
|
13
|
+
'&:before': {
|
|
14
|
+
opacity: number;
|
|
15
|
+
left: string;
|
|
16
|
+
right: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=MuiAccordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MuiAccordion.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/components/MuiAccordion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,wBAmBE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
rounded: {
|
|
4
|
+
borderRadius: '16px',
|
|
5
|
+
'&:first-of-type': {
|
|
6
|
+
borderTopLeftRadius: '16px',
|
|
7
|
+
borderTopRightRadius: '16px',
|
|
8
|
+
},
|
|
9
|
+
'&:last-of-type': {
|
|
10
|
+
borderBottomLeftRadius: '16px',
|
|
11
|
+
borderBottomRightRadius: '16px',
|
|
12
|
+
},
|
|
13
|
+
'&:before': {
|
|
14
|
+
opacity: 0.3,
|
|
15
|
+
left: '16px',
|
|
16
|
+
right: '16px',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MuiCard.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/components/MuiCard.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wBASE"}
|