tenjin-ui-kit 0.2.78 → 0.2.80

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.
@@ -18,7 +18,10 @@ var PageContent = function PageContent(_ref) {
18
18
  height: '100%',
19
19
  maxHeight: '100%',
20
20
  overflowY: 'auto',
21
- width: location.pathname.includes('agent') ? "100vw !important" : 'calc(100vw - 210px)'
21
+ flex: 1
22
+ // width: location.pathname.includes('agent')
23
+ // ? `100vw !important`
24
+ // : 'calc(100vw - 210px)',
22
25
  }
23
26
  }, children);
24
27
  };
@@ -42,11 +42,12 @@ var ReactSelect = function ReactSelect(props) {
42
42
  });
43
43
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.FormControl, {
44
44
  fullWidth: true
45
- }, /*#__PURE__*/_react.default.createElement(_material.FormLabel, {
45
+ }, label && /*#__PURE__*/_react.default.createElement(_material.FormLabel, {
46
46
  htmlFor: "my-input",
47
47
  sx: {
48
48
  fontSize: "0.8rem",
49
- fontWeight: 500
49
+ fontWeight: 500,
50
+ paddingBottom: "0.2rem"
50
51
  }
51
52
  }, label, isRequired ? /*#__PURE__*/_react.default.createElement("span", {
52
53
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.2.78",
3
+ "version": "0.2.80",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },
@@ -0,0 +1,250 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _material = require("@mui/material");
8
+ var getFontSize = function getFontSize() {
9
+ var devicePixelRatio = window.devicePixelRatio;
10
+ if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
11
+ return 16;
12
+ } else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
13
+ return 12;
14
+ } else if (devicePixelRatio >= 1.5) {
15
+ return 10;
16
+ } else {
17
+ return 40;
18
+ }
19
+ };
20
+ var getSpacing = function getSpacing() {
21
+ var devicePixelRatio = window.devicePixelRatio;
22
+ if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
23
+ return 8;
24
+ } else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
25
+ return 8;
26
+ } else if (devicePixelRatio >= 1.5) {
27
+ return 4;
28
+ } else {
29
+ return 8;
30
+ }
31
+ };
32
+ var _default = (0, _material.createTheme)({
33
+ spacing: getSpacing(),
34
+ components: {
35
+ MuiButton: {
36
+ defaultProps: {
37
+ variant: "contained",
38
+ disableRipple: true,
39
+ size: "small"
40
+ },
41
+ styleOverrides: {
42
+ root: {
43
+ textTransform: "initial"
44
+ }
45
+ }
46
+ },
47
+ MuiAppBar: {
48
+ styleOverrides: {
49
+ root: {
50
+ height: "60px !important"
51
+ }
52
+ }
53
+ },
54
+ MuiDivider: {
55
+ styleOverrides: {
56
+ root: {
57
+ height: "93% !important"
58
+ }
59
+ }
60
+ },
61
+ MuiOutlinedInput: {
62
+ defaultProps: {
63
+ size: "small"
64
+ }
65
+ }
66
+ // MuiInputBase: {
67
+ // styleOverrides: {
68
+ // input: {
69
+ // backgroundColor: '#ACACAC',
70
+ // },
71
+ // },
72
+ // },
73
+ },
74
+
75
+ MuiAutocomplete: {
76
+ styleOverrides: {
77
+ root: {
78
+ padding: "0.5rem 0.75rem",
79
+ border: "1px solid black !important",
80
+ borderRadius: "0.25rem",
81
+ backgroundColor: "white",
82
+ "& .MuiAutocomplete-input": {
83
+ padding: "0.5rem 0.75rem",
84
+ fontSize: "1rem",
85
+ border: "1px solid black !important"
86
+ }
87
+ }
88
+ },
89
+ MuiInputLabel: {
90
+ styleOverrides: {
91
+ asterisk: {
92
+ color: "#db3131",
93
+ "&$error": {
94
+ color: "#db3131"
95
+ }
96
+ }
97
+ }
98
+ }
99
+ },
100
+ overrides: {
101
+ MuiCssBaseline: {
102
+ "@global": {
103
+ html: {
104
+ "scroll-behavior": "smooth",
105
+ height: "100vh"
106
+ },
107
+ body: {
108
+ position: "relative",
109
+ margin: 0,
110
+ height: "100vh",
111
+ color: "#000000",
112
+ backgroundColor: "#f4f7fc"
113
+ },
114
+ "*::-webkit-scrollbar": {
115
+ width: "6px"
116
+ },
117
+ a: {
118
+ textDecoration: "none",
119
+ color: "#44409A"
120
+ },
121
+ "*::-webkit-scrollbar-thumb": {
122
+ backgroundColor: "#e4e4e4",
123
+ borderRadius: "3px",
124
+ opacity: 0.5
125
+ },
126
+ "*::-webkit-scrollbar-track": {
127
+ background: "transparent"
128
+ }
129
+ }
130
+ }
131
+ },
132
+ palette: {
133
+ //primary: {
134
+ // main: "#44409A",
135
+ // light: "#5B58A9",
136
+ // dark: "#443F99",
137
+ // white: "#FFFFFF",
138
+ // tenjinLight: "#F4F7FC",
139
+ // tenjinMLight: "#F7F8FF",
140
+ // tenjinDarkWhite: "#F8F9FD",
141
+ // tenjinBlack: "#000000",
142
+ // tenjinMBlack: "#060606",
143
+ // tenjinLightBlack: "#363636",
144
+ // tenjinLBlack: "#343438",
145
+ // tenjinDark: "#323232",
146
+ // tenjinGray: "#757575",
147
+ // tenjinFGray: "#636A74",
148
+ // tenjinMGray: "#707070",
149
+ // tenjinLightGray: "#EDF2F8",
150
+ // tenjinLBlue: "#D7E0EB",
151
+ // tenjinYellow: "#F6DA6E",
152
+ // tenjinLightGreen: "#4CE1B6",
153
+ // tenjinDarkGreen: "#2e846c",
154
+ // tenjinLightBlue: "#70BBFD",
155
+ // tenjinLMBlue: "#7688E8",
156
+ // tenjinDarkBlue: "#006AFD",
157
+ // tenjinPlaceholder: "#9CABBF",
158
+ // green: "#2C7413",
159
+ // warning: "#EB9A31",
160
+ // blue: "#433F9B",
161
+ // gray: "#7d7d7d",
162
+ // red: "#be1515",
163
+ // paperBorder: "#D6D9E0",
164
+ // defaultShadow: "#667CBC1A",
165
+ //},
166
+ // secondary: {
167
+ // main: "#BF1E1E",
168
+ // },
169
+ primary: {
170
+ main: "#44409A"
171
+ },
172
+ primary_light: {
173
+ main: "#5B58A9"
174
+ },
175
+ primary_dark: {
176
+ main: "#000050"
177
+ },
178
+ secondary: {
179
+ main: "#BF1E1E"
180
+ },
181
+ secondary_light: {
182
+ main: "#CC3F3F"
183
+ },
184
+ secondary_dark: {
185
+ main: "#951010"
186
+ },
187
+ success: {
188
+ main: "#2C7413"
189
+ },
190
+ success_light: {
191
+ main: "#5EA342"
192
+ },
193
+ success_dark: {
194
+ main: "#004700"
195
+ },
196
+ info: {
197
+ main: "#70BBFD"
198
+ },
199
+ info_light: {
200
+ main: "#A6EDFF"
201
+ },
202
+ info_dark: {
203
+ main: "#358BCA"
204
+ },
205
+ error: {
206
+ main: "#BE1515"
207
+ },
208
+ error_light: {
209
+ main: "#F8533F"
210
+ },
211
+ error_dark: {
212
+ main: "#860000"
213
+ },
214
+ warning: {
215
+ main: "#EB9A31"
216
+ },
217
+ warning_light: {
218
+ main: "#FFCB62"
219
+ },
220
+ warning_dark: {
221
+ main: "#B46C00"
222
+ },
223
+ grey: {
224
+ main: "#7D7D7D"
225
+ },
226
+ grey_light: {
227
+ main: "#ACACAC"
228
+ },
229
+ grey_dark: {
230
+ main: "#515151"
231
+ },
232
+ secondary_grey: {
233
+ main: "#D7E2F0"
234
+ },
235
+ white: {
236
+ main: "#ffffff"
237
+ },
238
+ default: {
239
+ main: "#7D7D7D"
240
+ },
241
+ text: {
242
+ main: "#000000"
243
+ }
244
+ },
245
+ typography: {
246
+ fontFamily: ["-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(","),
247
+ fontSize: getFontSize()
248
+ }
249
+ });
250
+ exports.default = _default;