@deix/rossini-core 3.0.3 → 3.0.5
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/components/layout/MinimalLayout/MinimalLayout.d.ts.map +1 -1
- package/lib/components/layout/MinimalLayout/MinimalLayout.js +0 -2
- package/lib/components/layout/StandardLayout/StandardLayout.d.ts.map +1 -1
- package/lib/components/layout/StandardLayout/StandardLayout.js +0 -2
- package/lib/components/layout/components/AppLogo/AppLogo.js +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/palette.d.ts +0 -2
- package/lib/types/palette.d.ts.map +1 -1
- package/lib/utils/helpers/stringHelpers.d.ts.map +1 -1
- package/lib/utils/helpers/stringHelpers.js +0 -2
- package/lib/utils/theme/palette/index.d.ts.map +1 -1
- package/lib/utils/theme/palette/index.js +0 -6
- package/package.json +4 -2
- package/lib/components/layout/components/Topline/TopLine.d.ts +0 -4
- package/lib/components/layout/components/Topline/TopLine.d.ts.map +0 -1
- package/lib/components/layout/components/Topline/TopLine.js +0 -14
package/lib/types/palette.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { SimplePaletteColorOptions } from '@mui/material';
|
|
2
2
|
declare module '@mui/material/styles' {
|
|
3
3
|
interface Palette {
|
|
4
|
-
gradient: SimplePaletteColorOptions;
|
|
5
4
|
linkNotActive: SimplePaletteColorOptions;
|
|
6
5
|
sidebar: Required<SimplePaletteColorOptions>;
|
|
7
6
|
topbar: SimplePaletteColorOptions;
|
|
8
7
|
}
|
|
9
8
|
interface PaletteOptions {
|
|
10
|
-
gradient: SimplePaletteColorOptions;
|
|
11
9
|
linkNotActive: SimplePaletteColorOptions;
|
|
12
10
|
sidebar: Required<SimplePaletteColorOptions>;
|
|
13
11
|
topbar: SimplePaletteColorOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/types/palette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,OAAO;QACf,
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/types/palette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,OAAO;QACf,aAAa,EAAE,yBAAyB,CAAC;QACzC,OAAO,EAAE,QAAQ,CAAC,yBAAyB,CAAC,CAAC;QAC7C,MAAM,EAAE,yBAAyB,CAAC;KACnC;IACD,UAAU,cAAc;QACtB,aAAa,EAAE,yBAAyB,CAAC;QACzC,OAAO,EAAE,QAAQ,CAAC,yBAAyB,CAAC,CAAC;QAC7C,MAAM,EAAE,yBAAyB,CAAC;KACnC;CACF;AAED,OAAO,EAAE,CAAC"}
|
|
@@ -1 +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,
|
|
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,WAgB3C,CAAC;AAEF,eAAO,MAAM,WAAW,YAAa,MAAM,EAAE,WAS5C,CAAC;AAIF,eAAO,MAAM,WAAW,aACZ,MAAM,UACR,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAO/B,CAAC"}
|
|
@@ -7,7 +7,6 @@ export const toTitleCase = (inputString, sep = '_') => inputString
|
|
|
7
7
|
export const stringToColor = (string) => {
|
|
8
8
|
let hash = 0;
|
|
9
9
|
let i;
|
|
10
|
-
/* eslint-disable no-bitwise */
|
|
11
10
|
for (i = 0; i < string.length; i += 1) {
|
|
12
11
|
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
|
13
12
|
}
|
|
@@ -16,7 +15,6 @@ export const stringToColor = (string) => {
|
|
|
16
15
|
const value = (hash >> (i * 8)) & 0xff;
|
|
17
16
|
color += `00${value.toString(16)}`.slice(-2);
|
|
18
17
|
}
|
|
19
|
-
/* eslint-enable no-bitwise */
|
|
20
18
|
return color;
|
|
21
19
|
};
|
|
22
20
|
export const commonStart = (strings) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme/palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,YAAsB,CAAC;AAEnD,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme/palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,YAAsB,CAAC;AAEnD,eAAO,MAAM,mBAAmB,EAAE,cA2CjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cA2ChC,CAAC;AAEF,eAAO,MAAM,eAAe,SACpB,YAAY,iBACH,cAAc,gBACf,cAAc,KAC3B,cAQF,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export const DEFAULT_THEME = 'light';
|
|
2
2
|
export const defaultLightPalette = {
|
|
3
3
|
mode: 'light',
|
|
4
|
-
gradient: {
|
|
5
|
-
main: 'rgb(0, 128, 128)',
|
|
6
|
-
},
|
|
7
4
|
primary: {
|
|
8
5
|
main: '#008080',
|
|
9
6
|
},
|
|
@@ -48,9 +45,6 @@ export const defaultLightPalette = {
|
|
|
48
45
|
};
|
|
49
46
|
export const defaultDarkPalette = {
|
|
50
47
|
mode: 'dark',
|
|
51
|
-
gradient: {
|
|
52
|
-
main: 'rgb(44, 178, 167)',
|
|
53
|
-
},
|
|
54
48
|
primary: {
|
|
55
49
|
main: '#2CB2A7',
|
|
56
50
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deix/rossini-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"commitizen": "^4.3.1",
|
|
61
61
|
"cz-conventional-changelog": "^3.3.0",
|
|
62
62
|
"eslint": "^9.15.0",
|
|
63
|
+
"eslint-config-prettier": "^9.1.0",
|
|
63
64
|
"eslint-plugin-prettier": "^5.2.1",
|
|
64
65
|
"react": "^18.3.1",
|
|
65
66
|
"react-docgen-typescript-plugin": "^1.0.8",
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
"@types/negotiator": "^0.6.3",
|
|
81
82
|
"negotiator": "^1.0.0",
|
|
82
83
|
"next": "^15.0.3",
|
|
83
|
-
"notistack": "^3.0.1"
|
|
84
|
+
"notistack": "^3.0.1",
|
|
85
|
+
"prettier": "^3.3.3"
|
|
84
86
|
}
|
|
85
87
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TopLine.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/Topline/TopLine.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAa5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { useTheme } from '@mui/material';
|
|
4
|
-
const TopLine = () => {
|
|
5
|
-
const theme = useTheme();
|
|
6
|
-
return (React.createElement("div", { style: {
|
|
7
|
-
height: '3px',
|
|
8
|
-
width: '100%',
|
|
9
|
-
zIndex: 9999,
|
|
10
|
-
position: 'fixed',
|
|
11
|
-
background: theme.palette.gradient.main,
|
|
12
|
-
} }));
|
|
13
|
-
};
|
|
14
|
-
export default TopLine;
|