labsense-ui-kit 1.1.96 → 1.1.97
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 +167 -178
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +167 -178
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3367,12 +3367,166 @@ var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _tag
|
|
|
3367
3367
|
return $overflowWrap;
|
|
3368
3368
|
});
|
|
3369
3369
|
|
|
3370
|
-
var
|
|
3371
|
-
|
|
3370
|
+
var light = {
|
|
3371
|
+
brand: {
|
|
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
|
|
3372
3527
|
};
|
|
3373
3528
|
|
|
3374
3529
|
var useNotification = function useNotification() {
|
|
3375
|
-
var themeColors = useTheme();
|
|
3376
3530
|
var sendNotification = function sendNotification(_ref) {
|
|
3377
3531
|
var type = _ref.type,
|
|
3378
3532
|
message = _ref.message,
|
|
@@ -3385,20 +3539,10 @@ var useNotification = function useNotification() {
|
|
|
3385
3539
|
}
|
|
3386
3540
|
switch (type) {
|
|
3387
3541
|
case 'success':
|
|
3388
|
-
reactHotToast.toast.success(message
|
|
3389
|
-
style: {
|
|
3390
|
-
background: themeColors.text.white,
|
|
3391
|
-
color: themeColors.text.dark
|
|
3392
|
-
}
|
|
3393
|
-
});
|
|
3542
|
+
reactHotToast.toast.success(message);
|
|
3394
3543
|
break;
|
|
3395
3544
|
case 'error':
|
|
3396
|
-
reactHotToast.toast.error(message
|
|
3397
|
-
style: {
|
|
3398
|
-
background: themeColors.text.white,
|
|
3399
|
-
color: themeColors.text.dark
|
|
3400
|
-
}
|
|
3401
|
-
});
|
|
3545
|
+
reactHotToast.toast.error(message);
|
|
3402
3546
|
break;
|
|
3403
3547
|
case 'info':
|
|
3404
3548
|
reactHotToast.toast(message, {
|
|
@@ -3409,17 +3553,17 @@ var useNotification = function useNotification() {
|
|
|
3409
3553
|
"$alignItems": 'center',
|
|
3410
3554
|
"$justifyContent": 'center',
|
|
3411
3555
|
"$borderRadius": '100%',
|
|
3412
|
-
"$background":
|
|
3556
|
+
"$background": colorVariables.disabled.info
|
|
3413
3557
|
}, React__default.createElement(Icon, {
|
|
3414
3558
|
icon: 'InformationFilled',
|
|
3415
3559
|
weight: '0px',
|
|
3416
3560
|
size: 20,
|
|
3417
|
-
color:
|
|
3561
|
+
color: colorVariables["default"].info
|
|
3418
3562
|
})),
|
|
3419
3563
|
style: {
|
|
3420
3564
|
borderRadius: '8px',
|
|
3421
|
-
background:
|
|
3422
|
-
color:
|
|
3565
|
+
background: colorVariables.text.white,
|
|
3566
|
+
color: '#363636',
|
|
3423
3567
|
maxWidth: '648px'
|
|
3424
3568
|
}
|
|
3425
3569
|
});
|
|
@@ -3459,6 +3603,10 @@ var useNotification = function useNotification() {
|
|
|
3459
3603
|
};
|
|
3460
3604
|
};
|
|
3461
3605
|
|
|
3606
|
+
var useTheme = function useTheme() {
|
|
3607
|
+
return styled.useTheme();
|
|
3608
|
+
};
|
|
3609
|
+
|
|
3462
3610
|
var _templateObject$2, _templateObject2$2, _templateObject3;
|
|
3463
3611
|
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"])));
|
|
3464
3612
|
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) {
|
|
@@ -7429,165 +7577,6 @@ var InternalTabs = function InternalTabs(_ref) {
|
|
|
7429
7577
|
}));
|
|
7430
7578
|
};
|
|
7431
7579
|
|
|
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
|
-
|
|
7591
7580
|
exports.Badge = Badge;
|
|
7592
7581
|
exports.Breadcrumbs = Breadcrumbs;
|
|
7593
7582
|
exports.Button = ButtonComponent;
|