labsense-ui-kit 1.1.85 → 1.1.87
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.d.ts +2 -1
- package/dist/index.js +165 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +165 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { Sidebar, logoDetails, SidebarItems } from './Sidebar';
|
|
|
15
15
|
import { Table, TableCell, TableRow, TableProps } from './Table';
|
|
16
16
|
import { InternalTabs, Tabs, TabContentProps } from './Tabs';
|
|
17
17
|
import { ThemeColorsInterface, ThemeMode } from './Themes';
|
|
18
|
+
import { themes } from './Themes/Colors';
|
|
18
19
|
import { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds } from './Utils/Date&Time';
|
|
19
20
|
export { Badge, IconTooltip };
|
|
20
21
|
export { Breadcrumbs, BreadcrumbDetail };
|
|
@@ -32,5 +33,5 @@ export { ProgressBar, ProgressBarProps, CircularProgress, CircularProgressProps
|
|
|
32
33
|
export { Sidebar, logoDetails, SidebarItems };
|
|
33
34
|
export { TableCell, Table, TableRow, TableProps };
|
|
34
35
|
export { InternalTabs, Tabs, TabContentProps };
|
|
35
|
-
export { ThemeColorsInterface, ThemeMode };
|
|
36
|
+
export { ThemeColorsInterface, ThemeMode, themes };
|
|
36
37
|
export { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds };
|
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: '#F0F3F5',
|
|
3450
|
+
light_4: '#ECF0F4',
|
|
3451
|
+
light_5: '#F0F0F3',
|
|
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: '#FFFFFF',
|
|
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,
|
|
@@ -3399,16 +3553,16 @@ var useNotification = function useNotification() {
|
|
|
3399
3553
|
"$alignItems": 'center',
|
|
3400
3554
|
"$justifyContent": 'center',
|
|
3401
3555
|
"$borderRadius": '100%',
|
|
3402
|
-
"$background":
|
|
3556
|
+
"$background": colorVariables.disabled.info
|
|
3403
3557
|
}, React__default.createElement(Icon, {
|
|
3404
3558
|
icon: 'InformationFilled',
|
|
3405
3559
|
weight: '0px',
|
|
3406
3560
|
size: 20,
|
|
3407
|
-
color:
|
|
3561
|
+
color: colorVariables["default"].info
|
|
3408
3562
|
})),
|
|
3409
3563
|
style: {
|
|
3410
3564
|
borderRadius: '8px',
|
|
3411
|
-
background:
|
|
3565
|
+
background: colorVariables.text.white,
|
|
3412
3566
|
color: '#363636',
|
|
3413
3567
|
maxWidth: '648px'
|
|
3414
3568
|
}
|
|
@@ -3449,6 +3603,10 @@ var useNotification = function useNotification() {
|
|
|
3449
3603
|
};
|
|
3450
3604
|
};
|
|
3451
3605
|
|
|
3606
|
+
var useTheme = function useTheme() {
|
|
3607
|
+
return styled.useTheme();
|
|
3608
|
+
};
|
|
3609
|
+
|
|
3452
3610
|
var _templateObject$2, _templateObject2$2, _templateObject3;
|
|
3453
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"])));
|
|
3454
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) {
|
|
@@ -7394,6 +7552,7 @@ exports.formatDate = formatDate;
|
|
|
7394
7552
|
exports.formatEpochToIST = formatEpochToIST;
|
|
7395
7553
|
exports.formatTimestamp = formatTimestamp;
|
|
7396
7554
|
exports.getSystemTimezoneAbbreviation = getSystemTimezoneAbbreviation;
|
|
7555
|
+
exports.themes = themes;
|
|
7397
7556
|
exports.timeAgo = timeAgo;
|
|
7398
7557
|
exports.timeStringToSeconds = timeStringToSeconds;
|
|
7399
7558
|
exports.useClickOutside = useClickOutside;
|