@dartech/arsenal-ui 1.2.6 → 1.3.0
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/package.json +1 -1
- package/project.json +0 -5
- package/src/theme/baseTheme.ts +4 -91
- package/src/utils/ui-utils.tsx +11 -9
- package/src/assets/fonts/Euclid/EuclidCircularB-Bold.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-Light.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-LightItalic.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-Medium.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-Regular.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-RegularItalic.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-Semibold.woff2 +0 -0
- package/src/assets/fonts/Euclid/EuclidCircularB-SemiboldItalic.woff2 +0 -0
package/package.json
CHANGED
package/project.json
CHANGED
package/src/theme/baseTheme.ts
CHANGED
@@ -1,14 +1,4 @@
|
|
1
1
|
import { createTheme } from '@mui/material/styles';
|
2
|
-
import Euclid from '../assets/fonts/Euclid/EuclidCircularB-Regular.woff2';
|
3
|
-
import EuclidItalic from '../assets/fonts/Euclid/EuclidCircularB-RegularItalic.woff2';
|
4
|
-
import EuclidBold from '../assets/fonts/Euclid/EuclidCircularB-Bold.woff2';
|
5
|
-
import EuclidBoldItalic from '../assets/fonts/Euclid/EuclidCircularB-BoldItalic.woff2';
|
6
|
-
import EuclidLight from '../assets/fonts/Euclid/EuclidCircularB-Light.woff2';
|
7
|
-
import EuclidLightItalic from '../assets/fonts/Euclid/EuclidCircularB-LightItalic.woff2';
|
8
|
-
import EuclidMedium from '../assets/fonts/Euclid/EuclidCircularB-Medium.woff2';
|
9
|
-
import EuclidMediumItalic from '../assets/fonts/Euclid/EuclidCircularB-MediumItalic.woff2';
|
10
|
-
import EuclidSemiBold from '../assets/fonts/Euclid/EuclidCircularB-Semibold.woff2';
|
11
|
-
import EuclidSemiBoldItalic from '../assets/fonts/Euclid/EuclidCircularB-SemiboldItalic.woff2';
|
12
2
|
|
13
3
|
const baseThemeOptions = {
|
14
4
|
spacing: 4,
|
@@ -24,20 +14,17 @@ const baseThemeOptions = {
|
|
24
14
|
light: '#cbe8ee',
|
25
15
|
},
|
26
16
|
text: {
|
27
|
-
disabled: '#A9A9B8'
|
28
|
-
|
17
|
+
disabled: '#A9A9B8',
|
29
18
|
},
|
30
19
|
success: {
|
31
20
|
main: '#2DB77B',
|
32
21
|
light: '#DBFCEE',
|
33
22
|
},
|
34
23
|
grey: {
|
35
|
-
700: '#101F2B'
|
36
|
-
}
|
37
|
-
|
24
|
+
700: '#101F2B',
|
25
|
+
},
|
38
26
|
},
|
39
27
|
typography: {
|
40
|
-
fontFamily: 'Euclid,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"',
|
41
28
|
fontSize: 14,
|
42
29
|
h1: {
|
43
30
|
fontWeight: 400,
|
@@ -47,82 +34,8 @@ const baseThemeOptions = {
|
|
47
34
|
},
|
48
35
|
h4: {
|
49
36
|
fontWeight: 500,
|
50
|
-
}
|
37
|
+
},
|
51
38
|
},
|
52
|
-
components: {
|
53
|
-
MuiCssBaseline: {
|
54
|
-
styleOverrides: `
|
55
|
-
@font-face {
|
56
|
-
font-family: 'Euclid';
|
57
|
-
font-display: swap;
|
58
|
-
src: url(${EuclidLight}) format('woff2');
|
59
|
-
font-weight: 300;
|
60
|
-
}
|
61
|
-
@font-face {
|
62
|
-
font-family: 'Euclid';
|
63
|
-
font-display: swap;
|
64
|
-
src: url(${EuclidLightItalic}) format('woff2');
|
65
|
-
font-weight: 300;
|
66
|
-
font-style: italic;
|
67
|
-
}
|
68
|
-
@font-face {
|
69
|
-
font-family: 'Euclid';
|
70
|
-
font-display: swap;
|
71
|
-
src: url(${Euclid}) format('woff2');
|
72
|
-
font-weight: 400;
|
73
|
-
}
|
74
|
-
@font-face {
|
75
|
-
font-family: 'Euclid';
|
76
|
-
font-display: swap;
|
77
|
-
src: url(${EuclidItalic}) format('woff2');
|
78
|
-
font-weight: 400;
|
79
|
-
font-style: italic;
|
80
|
-
}
|
81
|
-
@font-face {
|
82
|
-
font-family: 'Euclid';
|
83
|
-
font-display: swap;
|
84
|
-
src: url(${EuclidMedium}) format('woff2');
|
85
|
-
font-weight: 500;
|
86
|
-
}
|
87
|
-
|
88
|
-
@font-face {
|
89
|
-
font-family: 'Euclid';
|
90
|
-
font-display: swap;
|
91
|
-
src: url(${EuclidMediumItalic}) format('woff2');
|
92
|
-
font-style: italic;
|
93
|
-
font-weight: 500;
|
94
|
-
}
|
95
|
-
@font-face {
|
96
|
-
font-family: 'Euclid';
|
97
|
-
font-display: swap;
|
98
|
-
src: url(${EuclidSemiBold}) format('woff2');
|
99
|
-
font-weight: 600;
|
100
|
-
}
|
101
|
-
@font-face {
|
102
|
-
font-family: 'Euclid';
|
103
|
-
font-display: swap;
|
104
|
-
src: url(${EuclidSemiBoldItalic}) format('woff2');
|
105
|
-
font-style: italic;
|
106
|
-
font-weight: 600;
|
107
|
-
}
|
108
|
-
@font-face {
|
109
|
-
font-family: 'Euclid';
|
110
|
-
font-display: swap;
|
111
|
-
src: url(${EuclidBold}) format('woff2');
|
112
|
-
font-weight: 700;
|
113
|
-
}
|
114
|
-
|
115
|
-
@font-face {
|
116
|
-
font-family: 'Euclid';
|
117
|
-
font-display: swap;
|
118
|
-
src: url(${EuclidBoldItalic}) format('woff2');
|
119
|
-
font-style: italic;
|
120
|
-
font-weight: 700;
|
121
|
-
}
|
122
|
-
|
123
|
-
`
|
124
|
-
}
|
125
|
-
}
|
126
39
|
};
|
127
40
|
|
128
41
|
export default createTheme(baseThemeOptions);
|
package/src/utils/ui-utils.tsx
CHANGED
@@ -6,14 +6,7 @@ import { format } from 'date-fns';
|
|
6
6
|
import { StatusVariant } from '../interfaces';
|
7
7
|
import JsonTypeCell from '../lib/Table/DataGrid/JsonTypeCell';
|
8
8
|
|
9
|
-
|
10
|
-
value,
|
11
|
-
canCopy,
|
12
|
-
copyValue,
|
13
|
-
shortId,
|
14
|
-
fullText,
|
15
|
-
textParams: { displayAs = 'text', dateFormat, statusVariant },
|
16
|
-
}: {
|
9
|
+
type TableFormatProps = {
|
17
10
|
value: any;
|
18
11
|
canCopy?: boolean;
|
19
12
|
copyValue?: string;
|
@@ -32,7 +25,16 @@ export const formatTableRowValue = ({
|
|
32
25
|
dateFormat?: string[];
|
33
26
|
statusVariant?: StatusVariant;
|
34
27
|
};
|
35
|
-
}
|
28
|
+
};
|
29
|
+
|
30
|
+
export const formatTableRowValue = ({
|
31
|
+
value,
|
32
|
+
canCopy,
|
33
|
+
copyValue,
|
34
|
+
shortId,
|
35
|
+
fullText,
|
36
|
+
textParams: { displayAs = 'text', dateFormat, statusVariant },
|
37
|
+
}: TableFormatProps) => {
|
36
38
|
switch (displayAs) {
|
37
39
|
case 'boolean':
|
38
40
|
return value ? (
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|