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.modern.js
CHANGED
|
@@ -3363,12 +3363,166 @@ var Span = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTempla
|
|
|
3363
3363
|
return $overflowWrap;
|
|
3364
3364
|
});
|
|
3365
3365
|
|
|
3366
|
-
var
|
|
3367
|
-
|
|
3366
|
+
var light = {
|
|
3367
|
+
brand: {
|
|
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: '#F0F3F5',
|
|
3446
|
+
light_4: '#ECF0F4',
|
|
3447
|
+
light_5: '#F0F0F3',
|
|
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: '#FFFFFF',
|
|
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
|
|
3368
3523
|
};
|
|
3369
3524
|
|
|
3370
3525
|
var useNotification = function useNotification() {
|
|
3371
|
-
var themeColors = useTheme();
|
|
3372
3526
|
var sendNotification = function sendNotification(_ref) {
|
|
3373
3527
|
var type = _ref.type,
|
|
3374
3528
|
message = _ref.message,
|
|
@@ -3395,16 +3549,16 @@ var useNotification = function useNotification() {
|
|
|
3395
3549
|
"$alignItems": 'center',
|
|
3396
3550
|
"$justifyContent": 'center',
|
|
3397
3551
|
"$borderRadius": '100%',
|
|
3398
|
-
"$background":
|
|
3552
|
+
"$background": colorVariables.disabled.info
|
|
3399
3553
|
}, React.createElement(Icon, {
|
|
3400
3554
|
icon: 'InformationFilled',
|
|
3401
3555
|
weight: '0px',
|
|
3402
3556
|
size: 20,
|
|
3403
|
-
color:
|
|
3557
|
+
color: colorVariables["default"].info
|
|
3404
3558
|
})),
|
|
3405
3559
|
style: {
|
|
3406
3560
|
borderRadius: '8px',
|
|
3407
|
-
background:
|
|
3561
|
+
background: colorVariables.text.white,
|
|
3408
3562
|
color: '#363636',
|
|
3409
3563
|
maxWidth: '648px'
|
|
3410
3564
|
}
|
|
@@ -3445,6 +3599,10 @@ var useNotification = function useNotification() {
|
|
|
3445
3599
|
};
|
|
3446
3600
|
};
|
|
3447
3601
|
|
|
3602
|
+
var useTheme = function useTheme() {
|
|
3603
|
+
return useTheme$1();
|
|
3604
|
+
};
|
|
3605
|
+
|
|
3448
3606
|
var _templateObject$2, _templateObject2$2, _templateObject3;
|
|
3449
3607
|
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"])));
|
|
3450
3608
|
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) {
|
|
@@ -7351,5 +7509,5 @@ var InternalTabs = function InternalTabs(_ref) {
|
|
|
7351
7509
|
}));
|
|
7352
7510
|
};
|
|
7353
7511
|
|
|
7354
|
-
export { Badge, Breadcrumbs, ButtonComponent as Button, ButtonCarousel, 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, timeAgo, timeStringToSeconds, useClickOutside, useCustomModal, useNotification, useTheme };
|
|
7512
|
+
export { Badge, Breadcrumbs, ButtonComponent as Button, ButtonCarousel, 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 };
|
|
7355
7513
|
//# sourceMappingURL=index.modern.js.map
|