labsense-ui-kit 1.1.94 → 1.1.96
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/dist/index.js +232 -215
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +232 -215
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3367,166 +3367,12 @@ var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _tag
|
|
|
3367
3367
|
return $overflowWrap;
|
|
3368
3368
|
});
|
|
3369
3369
|
|
|
3370
|
-
var
|
|
3371
|
-
|
|
3372
|
-
primary: '#4C9EEB',
|
|
3373
|
-
secondary: '#14171A',
|
|
3374
|
-
light: '#FFFFFF'
|
|
3375
|
-
},
|
|
3376
|
-
accent: {
|
|
3377
|
-
light_1: '#E1E8ED',
|
|
3378
|
-
light_2: '#F5F8FA',
|
|
3379
|
-
light_3: '#F0F3F5',
|
|
3380
|
-
light_4: '#ECF0F4',
|
|
3381
|
-
light_5: '#F0F0F3',
|
|
3382
|
-
softBlue: '#D4EEFF',
|
|
3383
|
-
extraSoftBlue: '#E4F4FF',
|
|
3384
|
-
boldTransparent: '#5E5E5E80',
|
|
3385
|
-
transparent: '#5E5E5E4D',
|
|
3386
|
-
lightTransparent: '#5E5E5E23'
|
|
3387
|
-
},
|
|
3388
|
-
"default": {
|
|
3389
|
-
primary: '#78B6F0',
|
|
3390
|
-
secondary: '#C2C2C2',
|
|
3391
|
-
tertiary: 'transparent',
|
|
3392
|
-
error: '#F44336',
|
|
3393
|
-
success: '#4CAF50',
|
|
3394
|
-
warning: '#FF9800',
|
|
3395
|
-
info: '#2159F3'
|
|
3396
|
-
},
|
|
3397
|
-
disabled: {
|
|
3398
|
-
primary: '#B9DCF7',
|
|
3399
|
-
secondary: '#DADADA',
|
|
3400
|
-
error: '#FFEBEE',
|
|
3401
|
-
success: '#E8F5E9',
|
|
3402
|
-
warning: '#FFF3E0',
|
|
3403
|
-
info: '#E3F2FD'
|
|
3404
|
-
},
|
|
3405
|
-
hover: {
|
|
3406
|
-
primary: '#4C9EEB',
|
|
3407
|
-
secondary: '#A3A3A3',
|
|
3408
|
-
tertiary: 'transparent',
|
|
3409
|
-
error: '#D32F2F',
|
|
3410
|
-
success: '#388E3C',
|
|
3411
|
-
warning: '#F57C00',
|
|
3412
|
-
info: '#193ED2'
|
|
3413
|
-
},
|
|
3414
|
-
border: {
|
|
3415
|
-
extraBold: '#657786',
|
|
3416
|
-
bold: '#BFBFBF',
|
|
3417
|
-
medium: '#CBCED0',
|
|
3418
|
-
light: '#DCDCDC',
|
|
3419
|
-
extraLight: '#E6E3E3'
|
|
3420
|
-
},
|
|
3421
|
-
text: {
|
|
3422
|
-
dark: '#14171A',
|
|
3423
|
-
medium: '#657786',
|
|
3424
|
-
light: '#98A2AA',
|
|
3425
|
-
white: '#FFFFFF',
|
|
3426
|
-
success: '#1B5E20',
|
|
3427
|
-
error: '#B71C1C',
|
|
3428
|
-
info: '#0D30A1',
|
|
3429
|
-
warning: '#E65100'
|
|
3430
|
-
},
|
|
3431
|
-
badge: {
|
|
3432
|
-
lavender: '#E8DAFF',
|
|
3433
|
-
papayaWhip: '#FFEDD5',
|
|
3434
|
-
water: '#C7E3FF',
|
|
3435
|
-
paleBlue: '#B0F0E4',
|
|
3436
|
-
teaGreen: '#D5F7C2',
|
|
3437
|
-
lightBlue: '#ADD8E6'
|
|
3438
|
-
}
|
|
3439
|
-
};
|
|
3440
|
-
var dark = {
|
|
3441
|
-
brand: {
|
|
3442
|
-
primary: '#4C9EEB',
|
|
3443
|
-
secondary: '#E1E8ED',
|
|
3444
|
-
light: '#1A1A1A'
|
|
3445
|
-
},
|
|
3446
|
-
accent: {
|
|
3447
|
-
light_1: '#2A2E33',
|
|
3448
|
-
light_2: '#1F2327',
|
|
3449
|
-
light_3: '#0F1214',
|
|
3450
|
-
light_4: '#101417',
|
|
3451
|
-
light_5: '#0F0F0C',
|
|
3452
|
-
softBlue: '#2C3E50',
|
|
3453
|
-
extraSoftBlue: '#34495E',
|
|
3454
|
-
boldTransparent: '#D3D3D380',
|
|
3455
|
-
transparent: '#D3D3D34D',
|
|
3456
|
-
lightTransparent: '#D3D3D323'
|
|
3457
|
-
},
|
|
3458
|
-
"default": {
|
|
3459
|
-
primary: '#78B6F0',
|
|
3460
|
-
secondary: '#4F4F4F',
|
|
3461
|
-
tertiary: 'transparent',
|
|
3462
|
-
error: '#EF5350',
|
|
3463
|
-
success: '#66BB6A',
|
|
3464
|
-
warning: '#FFB74D',
|
|
3465
|
-
info: '#42A5F5'
|
|
3466
|
-
},
|
|
3467
|
-
disabled: {
|
|
3468
|
-
primary: '#3B4A58',
|
|
3469
|
-
secondary: '#3E3E3E',
|
|
3470
|
-
error: '#5B1B1B',
|
|
3471
|
-
success: '#1B3C1B',
|
|
3472
|
-
warning: '#5A3C1B',
|
|
3473
|
-
info: '#1A3C5A'
|
|
3474
|
-
},
|
|
3475
|
-
hover: {
|
|
3476
|
-
primary: '#5CA6F0',
|
|
3477
|
-
secondary: '#7A7A7A',
|
|
3478
|
-
tertiary: 'transparent',
|
|
3479
|
-
error: '#D32F2F',
|
|
3480
|
-
success: '#388E3C',
|
|
3481
|
-
warning: '#F57C00',
|
|
3482
|
-
info: '#1976D2'
|
|
3483
|
-
},
|
|
3484
|
-
border: {
|
|
3485
|
-
extraBold: '#8899A6',
|
|
3486
|
-
bold: '#5E5E5E',
|
|
3487
|
-
medium: '#4A4A4A',
|
|
3488
|
-
light: '#3A3A3A',
|
|
3489
|
-
extraLight: '#2B2B2B'
|
|
3490
|
-
},
|
|
3491
|
-
text: {
|
|
3492
|
-
dark: '#FFFFFF',
|
|
3493
|
-
medium: '#AAB8C2',
|
|
3494
|
-
light: '#8899A6',
|
|
3495
|
-
white: '#14171A',
|
|
3496
|
-
success: '#81C784',
|
|
3497
|
-
error: '#E57373',
|
|
3498
|
-
info: '#64B5F6',
|
|
3499
|
-
warning: '#FFB74D'
|
|
3500
|
-
},
|
|
3501
|
-
badge: {
|
|
3502
|
-
lavender: '#7B5FA1',
|
|
3503
|
-
papayaWhip: '#A46A3E',
|
|
3504
|
-
water: '#5CA6F0',
|
|
3505
|
-
paleBlue: '#4BC9BC',
|
|
3506
|
-
teaGreen: '#7FBF7F',
|
|
3507
|
-
lightBlue: '#5DADE2'
|
|
3508
|
-
}
|
|
3509
|
-
};
|
|
3510
|
-
var getCurrentTheme = function getCurrentTheme() {
|
|
3511
|
-
if (typeof document !== 'undefined') {
|
|
3512
|
-
var isDarkClass = document.documentElement.classList.contains('dark');
|
|
3513
|
-
return isDarkClass ? 'dark' : 'light';
|
|
3514
|
-
}
|
|
3515
|
-
return 'light';
|
|
3516
|
-
};
|
|
3517
|
-
var colorVariables = new Proxy({}, {
|
|
3518
|
-
get: function get(_, prop) {
|
|
3519
|
-
var currentThemeName = getCurrentTheme();
|
|
3520
|
-
var currentTheme = themes[currentThemeName];
|
|
3521
|
-
return currentTheme[prop];
|
|
3522
|
-
}
|
|
3523
|
-
});
|
|
3524
|
-
var themes = {
|
|
3525
|
-
light: light,
|
|
3526
|
-
dark: dark
|
|
3370
|
+
var useTheme = function useTheme() {
|
|
3371
|
+
return styled.useTheme();
|
|
3527
3372
|
};
|
|
3528
3373
|
|
|
3529
3374
|
var useNotification = function useNotification() {
|
|
3375
|
+
var themeColors = useTheme();
|
|
3530
3376
|
var sendNotification = function sendNotification(_ref) {
|
|
3531
3377
|
var type = _ref.type,
|
|
3532
3378
|
message = _ref.message,
|
|
@@ -3539,10 +3385,20 @@ var useNotification = function useNotification() {
|
|
|
3539
3385
|
}
|
|
3540
3386
|
switch (type) {
|
|
3541
3387
|
case 'success':
|
|
3542
|
-
reactHotToast.toast.success(message
|
|
3388
|
+
reactHotToast.toast.success(message, {
|
|
3389
|
+
style: {
|
|
3390
|
+
background: themeColors.text.white,
|
|
3391
|
+
color: themeColors.text.dark
|
|
3392
|
+
}
|
|
3393
|
+
});
|
|
3543
3394
|
break;
|
|
3544
3395
|
case 'error':
|
|
3545
|
-
reactHotToast.toast.error(message
|
|
3396
|
+
reactHotToast.toast.error(message, {
|
|
3397
|
+
style: {
|
|
3398
|
+
background: themeColors.text.white,
|
|
3399
|
+
color: themeColors.text.dark
|
|
3400
|
+
}
|
|
3401
|
+
});
|
|
3546
3402
|
break;
|
|
3547
3403
|
case 'info':
|
|
3548
3404
|
reactHotToast.toast(message, {
|
|
@@ -3553,17 +3409,17 @@ var useNotification = function useNotification() {
|
|
|
3553
3409
|
"$alignItems": 'center',
|
|
3554
3410
|
"$justifyContent": 'center',
|
|
3555
3411
|
"$borderRadius": '100%',
|
|
3556
|
-
"$background":
|
|
3412
|
+
"$background": themeColors.disabled.info
|
|
3557
3413
|
}, React__default.createElement(Icon, {
|
|
3558
3414
|
icon: 'InformationFilled',
|
|
3559
3415
|
weight: '0px',
|
|
3560
3416
|
size: 20,
|
|
3561
|
-
color:
|
|
3417
|
+
color: themeColors["default"].info
|
|
3562
3418
|
})),
|
|
3563
3419
|
style: {
|
|
3564
3420
|
borderRadius: '8px',
|
|
3565
|
-
background:
|
|
3566
|
-
color:
|
|
3421
|
+
background: themeColors.text.white,
|
|
3422
|
+
color: themeColors.text.dark,
|
|
3567
3423
|
maxWidth: '648px'
|
|
3568
3424
|
}
|
|
3569
3425
|
});
|
|
@@ -3603,10 +3459,6 @@ var useNotification = function useNotification() {
|
|
|
3603
3459
|
};
|
|
3604
3460
|
};
|
|
3605
3461
|
|
|
3606
|
-
var useTheme = function useTheme() {
|
|
3607
|
-
return styled.useTheme();
|
|
3608
|
-
};
|
|
3609
|
-
|
|
3610
3462
|
var _templateObject$2, _templateObject2$2, _templateObject3;
|
|
3611
3463
|
var wrapperCss = styled.css(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n svg {\n overflow: visible;\n vector-effect: non-scaling-stroke;\n line,\n path,\n circle,\n ellipse,\n foreignObject,\n polygon,\n polyline,\n rect,\n text,\n textPath,\n tspan {\n vector-effect: non-scaling-stroke;\n }\n }\n"])));
|
|
3612
3464
|
var IconWrapper = styled__default.div(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n width: max-content;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n ", ";\n"])), function (_ref) {
|
|
@@ -4470,101 +4322,108 @@ var timeStringToSeconds = function timeStringToSeconds(timeString) {
|
|
|
4470
4322
|
|
|
4471
4323
|
var _templateObject$9, _templateObject2$6, _templateObject3$3, _templateObject4$2, _templateObject5$2, _templateObject6$2, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
4472
4324
|
var DatePickerContainer = styled__default.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n"])));
|
|
4473
|
-
var CalendarContainer = styled__default.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n overflow: auto;\n display: flex;\n flex-direction: row;\n background:
|
|
4325
|
+
var CalendarContainer = styled__default.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n overflow: auto;\n display: flex;\n flex-direction: row;\n background: ", ";\n position: absolute;\n border: ", ";\n height: auto;\n width: auto;\n border-radius: 10px;\n z-index: 10;\n padding: 10px;\n top: 0px;\n right: 0px;\n gap: 16px;\n"])), function (_ref) {
|
|
4474
4326
|
var theme = _ref.theme;
|
|
4327
|
+
return theme.accent.light_2;
|
|
4328
|
+
}, function (_ref2) {
|
|
4329
|
+
var theme = _ref2.theme;
|
|
4475
4330
|
return "1px solid " + theme.border.medium;
|
|
4476
4331
|
});
|
|
4477
4332
|
var Calendar$1 = styled__default.div(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose([""])));
|
|
4478
|
-
var CalendarTime = styled__default.div(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n border: ", ";\n border-radius: 4px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: 8px;\n"])), function (
|
|
4479
|
-
var theme =
|
|
4333
|
+
var CalendarTime = styled__default.div(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n border: ", ";\n border-radius: 4px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: 8px;\n"])), function (_ref3) {
|
|
4334
|
+
var theme = _ref3.theme;
|
|
4480
4335
|
return "1px solid " + theme.border.medium;
|
|
4481
4336
|
});
|
|
4482
4337
|
var StartDate = styled__default.div(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding-bottom: 4px;\n"])));
|
|
4483
|
-
var SelectedStart = styled__default.div(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n gap: 4px;\n color: ", ";\n"])), function (
|
|
4484
|
-
var theme =
|
|
4338
|
+
var SelectedStart = styled__default.div(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n gap: 4px;\n color: ", ";\n"])), function (_ref4) {
|
|
4339
|
+
var theme = _ref4.theme;
|
|
4485
4340
|
return theme.text.medium;
|
|
4486
4341
|
});
|
|
4487
4342
|
var CurrentDate = styled__default.p(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteralLoose(["\n font-family: NotoSans, sans-serif;\n font-weight: 400;\n font-size: 12px;\n"])));
|
|
4488
|
-
var CurrentTime = styled__default.div(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n font-family: NotoSans, sans-serif;\n font-weight: 500;\n font-size: 14px;\n color: ", ";\n"])), function (
|
|
4489
|
-
var theme =
|
|
4343
|
+
var CurrentTime = styled__default.div(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n font-family: NotoSans, sans-serif;\n font-weight: 500;\n font-size: 14px;\n color: ", ";\n"])), function (_ref5) {
|
|
4344
|
+
var theme = _ref5.theme;
|
|
4490
4345
|
return theme.text.medium;
|
|
4491
4346
|
});
|
|
4492
|
-
var Selectedtime = styled__default.div(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n color: ", ";\n gap: 8px;\n"])), function (
|
|
4493
|
-
var theme =
|
|
4347
|
+
var Selectedtime = styled__default.div(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n color: ", ";\n gap: 8px;\n"])), function (_ref6) {
|
|
4348
|
+
var theme = _ref6.theme;
|
|
4494
4349
|
return theme.text.medium;
|
|
4495
4350
|
});
|
|
4496
4351
|
var Line = styled__default.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding-top: 10px;\n padding-bottom: 10px;\n"])));
|
|
4497
4352
|
var Zones = styled__default.div(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
4498
4353
|
var CalendarHeader = styled__default.div(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px;\n"])));
|
|
4499
|
-
var CalendarMonthYear = styled__default.span(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n color: ", ";\n justify-content: center;\n align-items: center;\n"])), function (
|
|
4500
|
-
var theme =
|
|
4354
|
+
var CalendarMonthYear = styled__default.span(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n color: ", ";\n justify-content: center;\n align-items: center;\n"])), function (_ref7) {
|
|
4355
|
+
var theme = _ref7.theme;
|
|
4501
4356
|
return theme.text.medium;
|
|
4502
4357
|
});
|
|
4503
4358
|
var CalendarContent = styled__default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 5px;\n padding: 10px;\n"])));
|
|
4504
|
-
var Button = styled__default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n border: none;\n border-radius: 5px;\n padding: 5px 10px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n\n svg {\n cursor: pointer;\n }\n"])), function (
|
|
4505
|
-
var theme = _ref7.theme;
|
|
4506
|
-
return theme["default"].secondary;
|
|
4507
|
-
}, function (_ref8) {
|
|
4359
|
+
var Button = styled__default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n border: none;\n border-radius: 5px;\n padding: 5px 10px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n\n svg {\n cursor: pointer;\n }\n"])), function (_ref8) {
|
|
4508
4360
|
var theme = _ref8.theme;
|
|
4509
|
-
return theme.
|
|
4361
|
+
return theme["default"].secondary;
|
|
4510
4362
|
}, function (_ref9) {
|
|
4511
|
-
var
|
|
4512
|
-
return
|
|
4363
|
+
var theme = _ref9.theme;
|
|
4364
|
+
return theme.text.white;
|
|
4513
4365
|
}, function (_ref10) {
|
|
4514
4366
|
var $size = _ref10.$size;
|
|
4515
4367
|
return $size ? $size + "px" : '30px';
|
|
4516
|
-
})
|
|
4517
|
-
var CalendarDates = styled__default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n cursor: ", "; \n font-size: 12px;\n opacity: ", "; \n\n background-color: ", ";\n\n color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n"])), function (_ref11) {
|
|
4368
|
+
}, function (_ref11) {
|
|
4518
4369
|
var $size = _ref11.$size;
|
|
4519
4370
|
return $size ? $size + "px" : '30px';
|
|
4520
|
-
}
|
|
4371
|
+
});
|
|
4372
|
+
var CalendarDates = styled__default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n cursor: ", "; \n font-size: 12px;\n opacity: ", "; \n\n background-color: ", ";\n\n color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n"])), function (_ref12) {
|
|
4521
4373
|
var $size = _ref12.$size;
|
|
4522
4374
|
return $size ? $size + "px" : '30px';
|
|
4523
4375
|
}, function (_ref13) {
|
|
4524
|
-
var $
|
|
4525
|
-
|
|
4526
|
-
return !$futureDateTime && $isFuture ? 'default' : 'pointer';
|
|
4376
|
+
var $size = _ref13.$size;
|
|
4377
|
+
return $size ? $size + "px" : '30px';
|
|
4527
4378
|
}, function (_ref14) {
|
|
4528
4379
|
var $isFuture = _ref14.$isFuture,
|
|
4529
4380
|
$futureDateTime = _ref14.$futureDateTime;
|
|
4530
|
-
return !$futureDateTime && $isFuture ?
|
|
4381
|
+
return !$futureDateTime && $isFuture ? 'default' : 'pointer';
|
|
4531
4382
|
}, function (_ref15) {
|
|
4532
|
-
var $
|
|
4533
|
-
$
|
|
4534
|
-
|
|
4535
|
-
return $selected ? theme["default"].primary : $inRange ? theme["default"].primary : theme["default"].tertiary;
|
|
4383
|
+
var $isFuture = _ref15.$isFuture,
|
|
4384
|
+
$futureDateTime = _ref15.$futureDateTime;
|
|
4385
|
+
return !$futureDateTime && $isFuture ? 0.5 : 1;
|
|
4536
4386
|
}, function (_ref16) {
|
|
4537
4387
|
var $selected = _ref16.$selected,
|
|
4538
4388
|
$inRange = _ref16.$inRange,
|
|
4539
4389
|
theme = _ref16.theme;
|
|
4540
|
-
return $selected ? theme.
|
|
4390
|
+
return $selected ? theme["default"].primary : $inRange ? theme["default"].primary : theme["default"].tertiary;
|
|
4541
4391
|
}, function (_ref17) {
|
|
4542
4392
|
var $selected = _ref17.$selected,
|
|
4543
4393
|
$inRange = _ref17.$inRange,
|
|
4544
|
-
$isFuture = _ref17.$isFuture,
|
|
4545
|
-
$futureDateTime = _ref17.$futureDateTime,
|
|
4546
4394
|
theme = _ref17.theme;
|
|
4395
|
+
return $selected ? theme.text.white : $inRange ? theme.text.white : theme.text.medium;
|
|
4396
|
+
}, function (_ref18) {
|
|
4397
|
+
var $selected = _ref18.$selected,
|
|
4398
|
+
$inRange = _ref18.$inRange,
|
|
4399
|
+
$isFuture = _ref18.$isFuture,
|
|
4400
|
+
$futureDateTime = _ref18.$futureDateTime,
|
|
4401
|
+
theme = _ref18.theme;
|
|
4547
4402
|
return !$futureDateTime && $isFuture ? 'transparent' : $selected ? theme.disabled.primary : $inRange ? theme.disabled.primary : theme.disabled.primary;
|
|
4548
4403
|
});
|
|
4549
4404
|
var Year = styled__default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n font-family: NotoSans, sans-serif;\n font-weight: 500;\n font-size: 12px;\n"])));
|
|
4550
4405
|
var Month = styled__default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n font-family: NotoSans, sans-serif;\n font-weight: 600;\n font-size: 14px;\n"])));
|
|
4551
4406
|
var InputWrapper = styled__default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 24px;\n"])));
|
|
4552
4407
|
var TimeInputWrapper = styled__default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n"])));
|
|
4553
|
-
var StyledInput = styled__default.input(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n outline: none;\n width: 60px;\n height: 30px;\n text-align: center;\n font-size: 16px;\n border-radius: 5px;\n background:
|
|
4554
|
-
var theme = _ref18.theme;
|
|
4555
|
-
return "1px solid " + theme.border.extraBold;
|
|
4556
|
-
}, function (_ref19) {
|
|
4408
|
+
var StyledInput = styled__default.input(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n outline: none;\n width: 60px;\n height: 30px;\n text-align: center;\n font-size: 16px;\n border-radius: 5px;\n background: ", ";\n border: ", ";\n color: ", ";\n"])), function (_ref19) {
|
|
4557
4409
|
var theme = _ref19.theme;
|
|
4410
|
+
return theme.text.white;
|
|
4411
|
+
}, function (_ref20) {
|
|
4412
|
+
var theme = _ref20.theme;
|
|
4413
|
+
return "1px solid " + theme.border.extraBold;
|
|
4414
|
+
}, function (_ref21) {
|
|
4415
|
+
var theme = _ref21.theme;
|
|
4558
4416
|
return theme.text.dark;
|
|
4559
4417
|
});
|
|
4560
|
-
var DatePicker = function DatePicker(
|
|
4418
|
+
var DatePicker = function DatePicker(_ref22) {
|
|
4561
4419
|
var _renderState$startDat3, _renderState$startDat4;
|
|
4562
|
-
var
|
|
4563
|
-
dateSize =
|
|
4564
|
-
dateTime =
|
|
4565
|
-
setDateTime =
|
|
4566
|
-
|
|
4567
|
-
futureDateTime =
|
|
4420
|
+
var _ref22$dateSize = _ref22.dateSize,
|
|
4421
|
+
dateSize = _ref22$dateSize === void 0 ? 30 : _ref22$dateSize,
|
|
4422
|
+
dateTime = _ref22.dateTime,
|
|
4423
|
+
setDateTime = _ref22.setDateTime,
|
|
4424
|
+
_ref22$futureDateTime = _ref22.futureDateTime,
|
|
4425
|
+
futureDateTime = _ref22$futureDateTime === void 0 ? true : _ref22$futureDateTime;
|
|
4426
|
+
var themeColors = useTheme();
|
|
4568
4427
|
var _useTranslation = reactI18next.useTranslation(),
|
|
4569
4428
|
t = _useTranslation.t;
|
|
4570
4429
|
var _useState = React.useState({
|
|
@@ -4743,7 +4602,7 @@ var DatePicker = function DatePicker(_ref20) {
|
|
|
4743
4602
|
}
|
|
4744
4603
|
}, React__default.createElement(Icon, {
|
|
4745
4604
|
icon: 'LeftArrow',
|
|
4746
|
-
color:
|
|
4605
|
+
color: themeColors.text.white,
|
|
4747
4606
|
size: 12
|
|
4748
4607
|
})), React__default.createElement(CalendarMonthYear, null, React__default.createElement(Year, null, (_renderState$startDat3 = renderState.startDate) === null || _renderState$startDat3 === void 0 ? void 0 : _renderState$startDat3.getFullYear()), React__default.createElement(Month, null, (_renderState$startDat4 = renderState.startDate) === null || _renderState$startDat4 === void 0 ? void 0 : _renderState$startDat4.toLocaleDateString('default', {
|
|
4749
4608
|
month: 'long'
|
|
@@ -4760,7 +4619,7 @@ var DatePicker = function DatePicker(_ref20) {
|
|
|
4760
4619
|
}
|
|
4761
4620
|
}, React__default.createElement(Icon, {
|
|
4762
4621
|
icon: 'RightArrow',
|
|
4763
|
-
color:
|
|
4622
|
+
color: themeColors.text.white,
|
|
4764
4623
|
size: 12
|
|
4765
4624
|
}))), React__default.createElement(CalendarContent, null, renderCalendar(dateSize))), React__default.createElement(CalendarTime, null, React__default.createElement(StartDate, null, React__default.createElement(SelectedStart, null, React__default.createElement(CurrentDate, null, t('TimePicker_StartDate')), React__default.createElement(CurrentTime, null, React__default.createElement("p", null, dateTime.startDate ? formatDate1(dateTime.startDate) : '-'))), React__default.createElement(Selectedtime, null, React__default.createElement(CurrentDate, null, t('TimePicker_StartTime')), React__default.createElement(InputWrapper, null, React__default.createElement(TimeInputWrapper, null, React__default.createElement(StyledInput, {
|
|
4766
4625
|
value: dateTime.startDate ? formatTime(dateTime.startDate.getHours()) : '',
|
|
@@ -5212,8 +5071,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5212
5071
|
background = _ref31.background,
|
|
5213
5072
|
selectedOptionBackground = _ref31.selectedOptionBackground,
|
|
5214
5073
|
selectedOptionColor = _ref31.selectedOptionColor,
|
|
5215
|
-
|
|
5216
|
-
menuBackground = _ref31$menuBackground === void 0 ? 'white' : _ref31$menuBackground,
|
|
5074
|
+
menuBackground = _ref31.menuBackground,
|
|
5217
5075
|
optionsBorderRadius = _ref31.optionsBorderRadius,
|
|
5218
5076
|
borderRadius = _ref31.borderRadius,
|
|
5219
5077
|
removeIconBackground = _ref31.removeIconBackground,
|
|
@@ -5328,7 +5186,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5328
5186
|
color: themeColors.text.medium
|
|
5329
5187
|
})), isOpen && React__default.createElement(DropdownMenu, {
|
|
5330
5188
|
"$width": optionWidth,
|
|
5331
|
-
"$menuBackground": menuBackground,
|
|
5189
|
+
"$menuBackground": menuBackground || themeColors.text.white,
|
|
5332
5190
|
"$optionsBorderRadius": optionsBorderRadius
|
|
5333
5191
|
}, React__default.createElement(OptionComponent, {
|
|
5334
5192
|
options: options,
|
|
@@ -7571,6 +7429,165 @@ var InternalTabs = function InternalTabs(_ref) {
|
|
|
7571
7429
|
}));
|
|
7572
7430
|
};
|
|
7573
7431
|
|
|
7432
|
+
var light = {
|
|
7433
|
+
brand: {
|
|
7434
|
+
primary: '#4C9EEB',
|
|
7435
|
+
secondary: '#14171A',
|
|
7436
|
+
light: '#FFFFFF'
|
|
7437
|
+
},
|
|
7438
|
+
accent: {
|
|
7439
|
+
light_1: '#E1E8ED',
|
|
7440
|
+
light_2: '#F5F8FA',
|
|
7441
|
+
light_3: '#F0F3F5',
|
|
7442
|
+
light_4: '#ECF0F4',
|
|
7443
|
+
light_5: '#F0F0F3',
|
|
7444
|
+
softBlue: '#D4EEFF',
|
|
7445
|
+
extraSoftBlue: '#E4F4FF',
|
|
7446
|
+
boldTransparent: '#5E5E5E80',
|
|
7447
|
+
transparent: '#5E5E5E4D',
|
|
7448
|
+
lightTransparent: '#5E5E5E23'
|
|
7449
|
+
},
|
|
7450
|
+
"default": {
|
|
7451
|
+
primary: '#78B6F0',
|
|
7452
|
+
secondary: '#C2C2C2',
|
|
7453
|
+
tertiary: 'transparent',
|
|
7454
|
+
error: '#F44336',
|
|
7455
|
+
success: '#4CAF50',
|
|
7456
|
+
warning: '#FF9800',
|
|
7457
|
+
info: '#2159F3'
|
|
7458
|
+
},
|
|
7459
|
+
disabled: {
|
|
7460
|
+
primary: '#B9DCF7',
|
|
7461
|
+
secondary: '#DADADA',
|
|
7462
|
+
error: '#FFEBEE',
|
|
7463
|
+
success: '#E8F5E9',
|
|
7464
|
+
warning: '#FFF3E0',
|
|
7465
|
+
info: '#E3F2FD'
|
|
7466
|
+
},
|
|
7467
|
+
hover: {
|
|
7468
|
+
primary: '#4C9EEB',
|
|
7469
|
+
secondary: '#A3A3A3',
|
|
7470
|
+
tertiary: 'transparent',
|
|
7471
|
+
error: '#D32F2F',
|
|
7472
|
+
success: '#388E3C',
|
|
7473
|
+
warning: '#F57C00',
|
|
7474
|
+
info: '#193ED2'
|
|
7475
|
+
},
|
|
7476
|
+
border: {
|
|
7477
|
+
extraBold: '#657786',
|
|
7478
|
+
bold: '#BFBFBF',
|
|
7479
|
+
medium: '#CBCED0',
|
|
7480
|
+
light: '#DCDCDC',
|
|
7481
|
+
extraLight: '#E6E3E3'
|
|
7482
|
+
},
|
|
7483
|
+
text: {
|
|
7484
|
+
dark: '#14171A',
|
|
7485
|
+
medium: '#657786',
|
|
7486
|
+
light: '#98A2AA',
|
|
7487
|
+
white: '#FFFFFF',
|
|
7488
|
+
success: '#1B5E20',
|
|
7489
|
+
error: '#B71C1C',
|
|
7490
|
+
info: '#0D30A1',
|
|
7491
|
+
warning: '#E65100'
|
|
7492
|
+
},
|
|
7493
|
+
badge: {
|
|
7494
|
+
lavender: '#E8DAFF',
|
|
7495
|
+
papayaWhip: '#FFEDD5',
|
|
7496
|
+
water: '#C7E3FF',
|
|
7497
|
+
paleBlue: '#B0F0E4',
|
|
7498
|
+
teaGreen: '#D5F7C2',
|
|
7499
|
+
lightBlue: '#ADD8E6'
|
|
7500
|
+
}
|
|
7501
|
+
};
|
|
7502
|
+
var dark = {
|
|
7503
|
+
brand: {
|
|
7504
|
+
primary: '#4C9EEB',
|
|
7505
|
+
secondary: '#E1E8ED',
|
|
7506
|
+
light: '#1A1A1A'
|
|
7507
|
+
},
|
|
7508
|
+
accent: {
|
|
7509
|
+
light_1: '#2A2E33',
|
|
7510
|
+
light_2: '#1F2327',
|
|
7511
|
+
light_3: '#0F1214',
|
|
7512
|
+
light_4: '#101417',
|
|
7513
|
+
light_5: '#0F0F0C',
|
|
7514
|
+
softBlue: '#2C3E50',
|
|
7515
|
+
extraSoftBlue: '#34495E',
|
|
7516
|
+
boldTransparent: '#D3D3D380',
|
|
7517
|
+
transparent: '#D3D3D34D',
|
|
7518
|
+
lightTransparent: '#D3D3D323'
|
|
7519
|
+
},
|
|
7520
|
+
"default": {
|
|
7521
|
+
primary: '#78B6F0',
|
|
7522
|
+
secondary: '#4F4F4F',
|
|
7523
|
+
tertiary: 'transparent',
|
|
7524
|
+
error: '#EF5350',
|
|
7525
|
+
success: '#66BB6A',
|
|
7526
|
+
warning: '#FFB74D',
|
|
7527
|
+
info: '#42A5F5'
|
|
7528
|
+
},
|
|
7529
|
+
disabled: {
|
|
7530
|
+
primary: '#3B4A58',
|
|
7531
|
+
secondary: '#3E3E3E',
|
|
7532
|
+
error: '#5B1B1B',
|
|
7533
|
+
success: '#1B3C1B',
|
|
7534
|
+
warning: '#5A3C1B',
|
|
7535
|
+
info: '#1A3C5A'
|
|
7536
|
+
},
|
|
7537
|
+
hover: {
|
|
7538
|
+
primary: '#5CA6F0',
|
|
7539
|
+
secondary: '#7A7A7A',
|
|
7540
|
+
tertiary: 'transparent',
|
|
7541
|
+
error: '#D32F2F',
|
|
7542
|
+
success: '#388E3C',
|
|
7543
|
+
warning: '#F57C00',
|
|
7544
|
+
info: '#1976D2'
|
|
7545
|
+
},
|
|
7546
|
+
border: {
|
|
7547
|
+
extraBold: '#8899A6',
|
|
7548
|
+
bold: '#5E5E5E',
|
|
7549
|
+
medium: '#4A4A4A',
|
|
7550
|
+
light: '#3A3A3A',
|
|
7551
|
+
extraLight: '#2B2B2B'
|
|
7552
|
+
},
|
|
7553
|
+
text: {
|
|
7554
|
+
dark: '#FFFFFF',
|
|
7555
|
+
medium: '#AAB8C2',
|
|
7556
|
+
light: '#8899A6',
|
|
7557
|
+
white: '#14171A',
|
|
7558
|
+
success: '#81C784',
|
|
7559
|
+
error: '#E57373',
|
|
7560
|
+
info: '#64B5F6',
|
|
7561
|
+
warning: '#FFB74D'
|
|
7562
|
+
},
|
|
7563
|
+
badge: {
|
|
7564
|
+
lavender: '#7B5FA1',
|
|
7565
|
+
papayaWhip: '#A46A3E',
|
|
7566
|
+
water: '#5CA6F0',
|
|
7567
|
+
paleBlue: '#4BC9BC',
|
|
7568
|
+
teaGreen: '#7FBF7F',
|
|
7569
|
+
lightBlue: '#5DADE2'
|
|
7570
|
+
}
|
|
7571
|
+
};
|
|
7572
|
+
var getCurrentTheme = function getCurrentTheme() {
|
|
7573
|
+
if (typeof document !== 'undefined') {
|
|
7574
|
+
var isDarkClass = document.documentElement.classList.contains('dark');
|
|
7575
|
+
return isDarkClass ? 'dark' : 'light';
|
|
7576
|
+
}
|
|
7577
|
+
return 'light';
|
|
7578
|
+
};
|
|
7579
|
+
var colorVariables = new Proxy({}, {
|
|
7580
|
+
get: function get(_, prop) {
|
|
7581
|
+
var currentThemeName = getCurrentTheme();
|
|
7582
|
+
var currentTheme = themes[currentThemeName];
|
|
7583
|
+
return currentTheme[prop];
|
|
7584
|
+
}
|
|
7585
|
+
});
|
|
7586
|
+
var themes = {
|
|
7587
|
+
light: light,
|
|
7588
|
+
dark: dark
|
|
7589
|
+
};
|
|
7590
|
+
|
|
7574
7591
|
exports.Badge = Badge;
|
|
7575
7592
|
exports.Breadcrumbs = Breadcrumbs;
|
|
7576
7593
|
exports.Button = ButtonComponent;
|