labsense-ui-kit 1.1.96 → 1.1.98

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.
@@ -3363,12 +3363,166 @@ var Span = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTempla
3363
3363
  return $overflowWrap;
3364
3364
  });
3365
3365
 
3366
- var useTheme = function useTheme() {
3367
- return useTheme$1();
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: '#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
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,
@@ -3381,20 +3535,10 @@ var useNotification = function useNotification() {
3381
3535
  }
3382
3536
  switch (type) {
3383
3537
  case 'success':
3384
- toast.success(message, {
3385
- style: {
3386
- background: themeColors.text.white,
3387
- color: themeColors.text.dark
3388
- }
3389
- });
3538
+ toast.success(message);
3390
3539
  break;
3391
3540
  case 'error':
3392
- toast.error(message, {
3393
- style: {
3394
- background: themeColors.text.white,
3395
- color: themeColors.text.dark
3396
- }
3397
- });
3541
+ toast.error(message);
3398
3542
  break;
3399
3543
  case 'info':
3400
3544
  toast(message, {
@@ -3405,17 +3549,17 @@ var useNotification = function useNotification() {
3405
3549
  "$alignItems": 'center',
3406
3550
  "$justifyContent": 'center',
3407
3551
  "$borderRadius": '100%',
3408
- "$background": themeColors.disabled.info
3552
+ "$background": colorVariables.disabled.info
3409
3553
  }, React.createElement(Icon, {
3410
3554
  icon: 'InformationFilled',
3411
3555
  weight: '0px',
3412
3556
  size: 20,
3413
- color: themeColors["default"].info
3557
+ color: colorVariables["default"].info
3414
3558
  })),
3415
3559
  style: {
3416
3560
  borderRadius: '8px',
3417
- background: themeColors.text.white,
3418
- color: themeColors.text.dark,
3561
+ background: colorVariables.text.white,
3562
+ color: '#363636',
3419
3563
  maxWidth: '648px'
3420
3564
  }
3421
3565
  });
@@ -3455,6 +3599,10 @@ var useNotification = function useNotification() {
3455
3599
  };
3456
3600
  };
3457
3601
 
3602
+ var useTheme = function useTheme() {
3603
+ return useTheme$1();
3604
+ };
3605
+
3458
3606
  var _templateObject$2, _templateObject2$2, _templateObject3;
3459
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"])));
3460
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) {
@@ -5613,7 +5761,9 @@ var ButtonDropdown = function ButtonDropdown(_ref) {
5613
5761
  _ref$variant = _ref.variant,
5614
5762
  variant = _ref$variant === void 0 ? 'outline-primary' : _ref$variant,
5615
5763
  _ref$placeholder = _ref.placeholder,
5616
- placeholder = _ref$placeholder === void 0 ? 'Select Option' : _ref$placeholder;
5764
+ placeholder = _ref$placeholder === void 0 ? 'Select Option' : _ref$placeholder,
5765
+ _ref$disabled = _ref.disabled,
5766
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
5617
5767
  var _useState = useState(false),
5618
5768
  isOpen = _useState[0],
5619
5769
  setIsOpen = _useState[1];
@@ -5640,6 +5790,7 @@ var ButtonDropdown = function ButtonDropdown(_ref) {
5640
5790
  icon: isOpen ? 'UpArrow' : 'DownArrow',
5641
5791
  size: size,
5642
5792
  variant: variant,
5793
+ disabled: disabled,
5643
5794
  onClick: function onClick() {
5644
5795
  return setIsOpen(function (prev) {
5645
5796
  return !prev;
@@ -7425,164 +7576,5 @@ var InternalTabs = function InternalTabs(_ref) {
7425
7576
  }));
7426
7577
  };
7427
7578
 
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
-
7587
7579
  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 };
7588
7580
  //# sourceMappingURL=index.modern.js.map