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