sevago-sso-fe 1.0.92 → 1.0.101

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.
@@ -257,6 +257,58 @@ export declare const APP_OBJ: {
257
257
  group: AppGroup;
258
258
  color: string;
259
259
  };
260
+ TIMEKEEPING: {
261
+ path: {
262
+ local: string;
263
+ develop: string;
264
+ staging: string;
265
+ production: string;
266
+ production_vps: string;
267
+ };
268
+ icon: string;
269
+ content: string;
270
+ group: AppGroup;
271
+ color: string;
272
+ };
273
+ SALARY_CALCULATION: {
274
+ path: {
275
+ local: string;
276
+ develop: string;
277
+ staging: string;
278
+ production: string;
279
+ production_vps: string;
280
+ };
281
+ icon: string;
282
+ content: string;
283
+ group: AppGroup;
284
+ color: string;
285
+ };
286
+ ORDER_MEAL: {
287
+ path: {
288
+ local: string;
289
+ develop: string;
290
+ staging: string;
291
+ production: string;
292
+ production_vps: string;
293
+ };
294
+ icon: string;
295
+ content: string;
296
+ group: AppGroup;
297
+ color: string;
298
+ };
299
+ LEAVE_POLICY: {
300
+ path: {
301
+ local: string;
302
+ develop: string;
303
+ staging: string;
304
+ production: string;
305
+ production_vps: string;
306
+ };
307
+ icon: string;
308
+ content: string;
309
+ group: AppGroup;
310
+ color: string;
311
+ };
260
312
  };
261
313
  export declare const SIZE_EXTRA_LARGE = 36;
262
314
  export type SizeProps = 'extra_small' | 'small' | 'medium' | 'large' | 'extra_large' | 'avatar_group';
@@ -3,7 +3,7 @@ import { default as React } from 'react';
3
3
  export type TagType = 'success' | 'warning' | 'info' | 'secondary' | 'primary' | 'error';
4
4
  export type TagSize = 'large' | 'medium' | 'small';
5
5
  export type TagVariant = 'contained' | 'outlined' | 'outlined-border';
6
- export declare const lightenColor: (hex: string, percent: number) => string;
6
+ export declare const lightenColor: (hex?: string, percent?: number) => string;
7
7
  export interface TagElementProps {
8
8
  type: string;
9
9
  content: string;
package/dist/index.cjs.js CHANGED
@@ -386,6 +386,71 @@ const APP_OBJ = {
386
386
  "Khác"
387
387
  /* OTHER */
388
388
  ]
389
+ },
390
+ // HRM
391
+ TIMEKEEPING: {
392
+ path: {
393
+ local: "http://localhost:3000/dashboard/simple-dashboard",
394
+ develop: "https://dev.hrm-client.sevago.local/dashboard/simple-dashboard",
395
+ staging: "",
396
+ production: "",
397
+ production_vps: ""
398
+ },
399
+ icon: sevagoIcon,
400
+ content: "Chấm công",
401
+ group: "HRM",
402
+ color: APP_GROUP_COLOR[
403
+ "HRM"
404
+ /* HRM */
405
+ ]
406
+ },
407
+ SALARY_CALCULATION: {
408
+ path: {
409
+ local: "http://localhost:3000/dashboard/payroll-period",
410
+ develop: "https://dev.hrm-client.sevago.local/dashboard/payroll-period",
411
+ staging: "",
412
+ production: "",
413
+ production_vps: ""
414
+ },
415
+ icon: sevagoIcon,
416
+ content: "Tính lương",
417
+ group: "HRM",
418
+ color: APP_GROUP_COLOR[
419
+ "HRM"
420
+ /* HRM */
421
+ ]
422
+ },
423
+ ORDER_MEAL: {
424
+ path: {
425
+ local: "http://localhost:3000/dashboard/meal-dashboard",
426
+ develop: "https://dev.hrm-client.sevago.local/dashboard/meal-dashboard",
427
+ staging: "",
428
+ production: "",
429
+ production_vps: ""
430
+ },
431
+ icon: sevagoIcon,
432
+ content: "Đặt cơm",
433
+ group: "HRM",
434
+ color: APP_GROUP_COLOR[
435
+ "HRM"
436
+ /* HRM */
437
+ ]
438
+ },
439
+ LEAVE_POLICY: {
440
+ path: {
441
+ local: "http://localhost:3000/dashboard/maternity-leave",
442
+ develop: "https://dev.hrm-client.sevago.local/dashboard/maternity-leave",
443
+ staging: "",
444
+ production: "",
445
+ production_vps: ""
446
+ },
447
+ icon: sevagoIcon,
448
+ content: "Chế độ nghỉ phép",
449
+ group: "HRM",
450
+ color: APP_GROUP_COLOR[
451
+ "HRM"
452
+ /* HRM */
453
+ ]
389
454
  }
390
455
  };
391
456
  const SIZE_LARGE = 32;
@@ -7104,9 +7169,12 @@ const LinkWrapProductRow = material.styled(LinkElement)(({ theme }) => ({
7104
7169
  gap: PADDING_GAP_ITEM,
7105
7170
  backgroundColor: theme.palette.background.default
7106
7171
  }));
7107
- const lightenColor = (hex, percent) => {
7172
+ const lightenColor = (hex, percent = 0) => {
7173
+ if (!hex || !/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(hex)) {
7174
+ return COLOR_CONSTANT.white;
7175
+ }
7108
7176
  let r, g, b;
7109
- if (hex?.length === 7) {
7177
+ if (hex.length === 7) {
7110
7178
  r = parseInt(hex.slice(1, 3), 16);
7111
7179
  g = parseInt(hex.slice(3, 5), 16);
7112
7180
  b = parseInt(hex.slice(5, 7), 16);