labsense-ui-kit 1.1.84 → 1.1.85

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.
@@ -1,8 +1,8 @@
1
- import React, { useState, useRef, useEffect, useId } from 'react';
2
- import styled, { css, keyframes, useTheme as useTheme$1, styled as styled$1 } from 'styled-components';
1
+ import React, { useRef, useEffect, useState, useId } from 'react';
2
+ import styled, { useTheme as useTheme$1, css, keyframes, styled as styled$1 } from 'styled-components';
3
+ import { toast } from 'react-hot-toast';
3
4
  import { useNavigate, NavLink, useLocation } from 'react-router-dom';
4
5
  import { useTranslation } from 'react-i18next';
5
- import { toast } from 'react-hot-toast';
6
6
 
7
7
  function _extends() {
8
8
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -17,165 +17,6 @@ function _taggedTemplateLiteralLoose(e, t) {
17
17
  return t || (t = e.slice(0)), e.raw = t, e;
18
18
  }
19
19
 
20
- var light = {
21
- brand: {
22
- primary: '#4C9EEB',
23
- secondary: '#14171A',
24
- light: '#FFFFFF'
25
- },
26
- accent: {
27
- light_1: '#E1E8ED',
28
- light_2: '#F5F8FA',
29
- light_3: '#F0F3F5',
30
- light_4: '#ECF0F4',
31
- light_5: '#F0F0F3',
32
- softBlue: '#D4EEFF',
33
- extraSoftBlue: '#E4F4FF',
34
- boldTransparent: '#5E5E5E80',
35
- transparent: '#5E5E5E4D',
36
- lightTransparent: '#5E5E5E23'
37
- },
38
- "default": {
39
- primary: '#78B6F0',
40
- secondary: '#C2C2C2',
41
- tertiary: 'transparent',
42
- error: '#F44336',
43
- success: '#4CAF50',
44
- warning: '#FF9800',
45
- info: '#2159F3'
46
- },
47
- disabled: {
48
- primary: '#B9DCF7',
49
- secondary: '#DADADA',
50
- error: '#FFEBEE',
51
- success: '#E8F5E9',
52
- warning: '#FFF3E0',
53
- info: '#E3F2FD'
54
- },
55
- hover: {
56
- primary: '#4C9EEB',
57
- secondary: '#A3A3A3',
58
- tertiary: 'transparent',
59
- error: '#D32F2F',
60
- success: '#388E3C',
61
- warning: '#F57C00',
62
- info: '#193ED2'
63
- },
64
- border: {
65
- extraBold: '#657786',
66
- bold: '#BFBFBF',
67
- medium: '#CBCED0',
68
- light: '#DCDCDC',
69
- extraLight: '#E6E3E3'
70
- },
71
- text: {
72
- dark: '#14171A',
73
- medium: '#657786',
74
- light: '#98A2AA',
75
- white: '#FFFFFF',
76
- success: '#1B5E20',
77
- error: '#B71C1C',
78
- info: '#0D30A1',
79
- warning: '#E65100'
80
- },
81
- badge: {
82
- lavender: '#E8DAFF',
83
- papayaWhip: '#FFEDD5',
84
- water: '#C7E3FF',
85
- paleBlue: '#B0F0E4',
86
- teaGreen: '#D5F7C2',
87
- lightBlue: '#ADD8E6'
88
- }
89
- };
90
- var dark = {
91
- brand: {
92
- primary: '#4C9EEB',
93
- secondary: '#E1E8ED',
94
- light: '#1A1A1A'
95
- },
96
- accent: {
97
- light_1: '#2A2E33',
98
- light_2: '#1F2327',
99
- light_3: '#F0F3F5',
100
- light_4: '#ECF0F4',
101
- light_5: '#F0F0F3',
102
- softBlue: '#2C3E50',
103
- extraSoftBlue: '#34495E',
104
- boldTransparent: '#D3D3D380',
105
- transparent: '#D3D3D34D',
106
- lightTransparent: '#D3D3D323'
107
- },
108
- "default": {
109
- primary: '#78B6F0',
110
- secondary: '#4F4F4F',
111
- tertiary: 'transparent',
112
- error: '#EF5350',
113
- success: '#66BB6A',
114
- warning: '#FFB74D',
115
- info: '#42A5F5'
116
- },
117
- disabled: {
118
- primary: '#3B4A58',
119
- secondary: '#3E3E3E',
120
- error: '#5B1B1B',
121
- success: '#1B3C1B',
122
- warning: '#5A3C1B',
123
- info: '#1A3C5A'
124
- },
125
- hover: {
126
- primary: '#5CA6F0',
127
- secondary: '#7A7A7A',
128
- tertiary: 'transparent',
129
- error: '#D32F2F',
130
- success: '#388E3C',
131
- warning: '#F57C00',
132
- info: '#1976D2'
133
- },
134
- border: {
135
- extraBold: '#8899A6',
136
- bold: '#5E5E5E',
137
- medium: '#4A4A4A',
138
- light: '#3A3A3A',
139
- extraLight: '#2B2B2B'
140
- },
141
- text: {
142
- dark: '#FFFFFF',
143
- medium: '#AAB8C2',
144
- light: '#8899A6',
145
- white: '#FFFFFF',
146
- success: '#81C784',
147
- error: '#E57373',
148
- info: '#64B5F6',
149
- warning: '#FFB74D'
150
- },
151
- badge: {
152
- lavender: '#7B5FA1',
153
- papayaWhip: '#A46A3E',
154
- water: '#5CA6F0',
155
- paleBlue: '#4BC9BC',
156
- teaGreen: '#7FBF7F',
157
- lightBlue: '#5DADE2'
158
- }
159
- };
160
- var getCurrentTheme = function getCurrentTheme() {
161
- if (typeof document !== 'undefined') {
162
- var isDarkClass = document.documentElement.classList.contains('dark');
163
- return isDarkClass ? 'dark' : 'light';
164
- }
165
- return 'light';
166
- };
167
- var colorVariables = new Proxy({}, {
168
- get: function get(_, prop) {
169
- var currentThemeName = getCurrentTheme();
170
- var currentTheme = themes[currentThemeName];
171
- return currentTheme[prop];
172
- }
173
- });
174
- var themes = {
175
- light: light,
176
- dark: dark
177
- };
178
-
179
20
  var Add = function Add(_ref) {
180
21
  var size = _ref.size,
181
22
  color = _ref.color,
@@ -3297,167 +3138,59 @@ var Zapper = function Zapper(_ref) {
3297
3138
  }));
3298
3139
  };
3299
3140
 
3300
- var _templateObject, _templateObject2, _templateObject3;
3301
- var wrapperCss = css(_templateObject || (_templateObject = _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"])));
3302
- var IconWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n width: max-content;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n ", ";\n"])), function (_ref) {
3303
- var $clickable = _ref.$clickable;
3304
- return $clickable ? 'pointer' : 'default';
3305
- }, wrapperCss);
3306
- var IconWrapperForSVG = styled.g(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), wrapperCss);
3307
- var IconSVGs = {
3308
- Add_1: Add,
3309
- Add_2: Add_2,
3310
- AddProfile: AddProfile,
3311
- App: App,
3312
- AI_Web: AI_Web,
3313
- Back: Back,
3314
- Bin: Bin,
3315
- Bulb: Bulb,
3316
- Business: Business,
3317
- Calendar: Calendar,
3318
- CCTV_1: CCTV_1,
3319
- CCTV_2: CCTV_2,
3320
- Circle: Circle,
3321
- CircularEdit: CircularEdit,
3322
- CircularFilledWarning: CircularFilledWarning,
3323
- CircularPause: CircularPause,
3324
- CircularPlay: CircularPlay,
3325
- CircularWarning: CircularWarning,
3326
- Client: Client,
3327
- Close: Close,
3328
- CloseCircle: CloseCircle,
3329
- CloseEye: CloseEye,
3330
- Copy: Copy,
3331
- CPU: CPU,
3332
- Cube3D: Cube3D,
3333
- Cyber: Cyber,
3334
- DiagonalArrow: DiagonalArrow,
3335
- Directory: Directory,
3336
- Disk: Disk,
3337
- DocumentBadge: DocumentBadge,
3338
- DownArrow: DownArrow,
3339
- Download: Download,
3340
- Email: Email,
3341
- ExitFullScreen: ExitFullScreen,
3342
- FaceRecognition: FaceRecognition,
3343
- FilesBox: FilesBox,
3344
- FilledCircle: FilledCircle,
3345
- FilledCircleTick: FilledCircleTick,
3346
- FilledPin: FilledPin,
3347
- Filter_1: Filter_1,
3348
- Filter_2: Filter_2,
3349
- Forward_10_Sec: Forward_10_Sec,
3350
- Forward: Forward,
3351
- FPS: FPS,
3352
- Free: Free,
3353
- FullScreen: FullScreen,
3354
- FullVolume: FullVolume,
3355
- Grid_2x2_Hollow: Grid_2x2_Hollow,
3356
- Grid_2x2: Grid_2x2,
3357
- Grid_3x3: Grid_3x3,
3358
- Grid_4x4: Grid_4x4,
3359
- Grid_5x5: Grid_5x5,
3360
- Hazard: Hazard,
3361
- History: History,
3362
- Hexagon: Hexagon,
3363
- Information: Information,
3364
- InformationFilled: InformationFilled,
3365
- IP: IP,
3366
- Key: Key,
3367
- KeyDown: KeyDown,
3368
- KnobController: KnobController,
3369
- LedBulb: LedBulb,
3370
- LeftArrow: LeftArrow,
3371
- Letter: Letter,
3372
- Live: Live,
3373
- Lock: Lock,
3374
- Logout: Logout,
3375
- Maps: Maps,
3376
- Media: Media,
3377
- MediumVolume: MediumVolume,
3378
- Mute: Mute,
3379
- MuteVolume: MuteVolume,
3380
- Menu: Menu,
3381
- Monitor: Monitor,
3382
- MultiMonitor: MultiMonitor,
3383
- NetworkStorage: NetworkStorage,
3384
- NFS_Directory: NFS_Directory,
3385
- NoCam: NoCam,
3386
- Node: Node,
3387
- NoStorage: NoStorage,
3388
- Notifications: Notifications,
3389
- OpenBin: OpenBin,
3390
- OpenEye: OpenEye,
3391
- PasswordLock: PasswordLock,
3392
- Pause: Pause,
3393
- Phone: Phone,
3394
- Pin_2: Pin_2,
3395
- Pin: Pin,
3396
- Play_1: Play,
3397
- Play_2: Play_2,
3398
- Playback: Playback,
3399
- Power: Power,
3400
- PremiumBadge: PremiumBadge,
3401
- ProcessingBulb: ProcessingBulb,
3402
- Profile_1: Profile_1,
3403
- Profile_2: Profile_2,
3404
- Profile_3: Profile_3,
3405
- Recording_1: Recording_1,
3406
- Recording_2: KnobController$1,
3407
- Rectangle: Rectangle,
3408
- Retry: Retry,
3409
- Return: Return,
3410
- Rewind_10_Sec: Rewind_10_Sec,
3411
- Rhombus: Rhombus,
3412
- RightArrow: RightArrow,
3413
- ROI: ROI,
3414
- RunAway: RunAway,
3415
- SandTimer: SandTimer,
3416
- Search: Search,
3417
- Settings: Settings,
3418
- Shield: Shield,
3419
- SlantLine: SlantLine,
3420
- SquareEdit: SquareEdit,
3421
- SquareTick: SquareTick,
3422
- StorageDisks: StorageDisks,
3423
- Tag: Tag,
3424
- Team: Team,
3425
- ThreeDots: ThreeDots,
3426
- ThumbsUp: ThumbsUp,
3427
- Tick: Tick,
3428
- Tools: Tools,
3429
- TriangularFilledWarning: TriangularFilledWarning,
3430
- UnPinned: UnPinned,
3431
- UpArrow: UpArrow,
3432
- Video: Video,
3433
- Wallet: Wallet,
3434
- Web: Web,
3435
- WiFiCam: WiFiCam,
3436
- WiFiLaptop: WiFiLaptop,
3437
- Zapper: Zapper
3141
+ var useClickOutside = function useClickOutside(elRef, elCallback) {
3142
+ var callbackRef = useRef(elCallback);
3143
+ callbackRef.current = elCallback;
3144
+ useEffect(function () {
3145
+ var handleClickOutside = function handleClickOutside(eve) {
3146
+ var _elRef$current;
3147
+ if (!(elRef !== null && elRef !== void 0 && (_elRef$current = elRef.current) !== null && _elRef$current !== void 0 && _elRef$current.contains(eve.target))) {
3148
+ callbackRef.current(eve);
3149
+ }
3150
+ };
3151
+ document.addEventListener('click', handleClickOutside, true);
3152
+ return function () {
3153
+ document.removeEventListener('click', handleClickOutside, true);
3154
+ };
3155
+ }, [elCallback, elRef]);
3438
3156
  };
3439
- var Icon = function Icon(_ref2) {
3440
- var icon = _ref2.icon,
3441
- _ref2$color = _ref2.color,
3442
- color = _ref2$color === void 0 ? colorVariables.text.medium : _ref2$color,
3443
- _ref2$weight = _ref2.weight,
3444
- weight = _ref2$weight === void 0 ? '2px' : _ref2$weight,
3445
- _ref2$size = _ref2.size,
3446
- size = _ref2$size === void 0 ? 24 : _ref2$size,
3447
- onClick = _ref2.onClick;
3448
- var IconSVG = IconSVGs[icon];
3449
- if (!IconSVG) {
3450
- console.warn("Icon '" + icon + "' not found");
3451
- return null;
3452
- }
3453
- return React.createElement(IconWrapper, {
3454
- onClick: onClick,
3455
- "$clickable": !!onClick
3456
- }, React.createElement(IconSVG, {
3457
- size: size,
3458
- color: color,
3459
- weight: weight
3460
- }));
3157
+
3158
+ var _templateObject, _templateObject2;
3159
+ var ModalOverlay = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: NotoSans, sans-serif;\n z-index: 9999;\n backdrop-filter: blur(4px);\n"])));
3160
+ var ModalContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-height: 100vh;\n max-width: ", ";\n overflow: visible;\n"])), function (_ref) {
3161
+ var theme = _ref.theme;
3162
+ return theme.accent.light_1;
3163
+ }, function (_ref2) {
3164
+ var $maxWidth = _ref2.$maxWidth;
3165
+ return $maxWidth ? $maxWidth : '400px';
3166
+ });
3167
+ var Modal = function Modal(_ref3) {
3168
+ var isOpen = _ref3.isOpen,
3169
+ maxWidth = _ref3.maxWidth,
3170
+ children = _ref3.children;
3171
+ if (!isOpen) return null;
3172
+ return React.createElement(ModalOverlay, null, React.createElement(ModalContainer, {
3173
+ "$maxWidth": maxWidth,
3174
+ onClick: function onClick(e) {
3175
+ return e.stopPropagation();
3176
+ }
3177
+ }, children));
3178
+ };
3179
+ var useCustomModal = function useCustomModal(_ref4) {
3180
+ var maxWidth = _ref4.maxWidth;
3181
+ var _useState = useState(false),
3182
+ isOpen = _useState[0],
3183
+ setIsOpen = _useState[1];
3184
+ var createModal = function createModal(content) {
3185
+ return React.createElement(Modal, {
3186
+ isOpen: isOpen,
3187
+ maxWidth: maxWidth
3188
+ }, content);
3189
+ };
3190
+ return {
3191
+ setIsOpen: setIsOpen,
3192
+ createModal: createModal
3193
+ };
3461
3194
  };
3462
3195
 
3463
3196
  var _templateObject$1, _templateObject2$1;
@@ -3630,9 +3363,254 @@ var Span = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTempla
3630
3363
  return $overflowWrap;
3631
3364
  });
3632
3365
 
3633
- var _templateObject$2, _templateObject2$2;
3634
- var TooltipWrapper = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n svg {\n cursor: pointer;\n }\n"])));
3635
- var TooltipText = styled.span(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n visibility: ", ";\n opacity: ", ";\n transition: opacity 0.2s ease-in-out;\n background-color: ", ";\n color: ", ";\n border: ", ";\n border-radius: 8px;\n padding: 8px 16px;\n font-size: ", ";\n font-weight: ", ";\n max-width: 300px;\n width: max-content;\n position: fixed;\n z-index: 999;\n pointer-events: none;\n"])), function (_ref) {
3366
+ var useTheme = function useTheme() {
3367
+ return useTheme$1();
3368
+ };
3369
+
3370
+ var useNotification = function useNotification() {
3371
+ var themeColors = useTheme();
3372
+ var sendNotification = function sendNotification(_ref) {
3373
+ var type = _ref.type,
3374
+ message = _ref.message,
3375
+ promiseConfig = _ref.promiseConfig,
3376
+ customStyle = _ref.customStyle,
3377
+ _ref$clearCurrent = _ref.clearCurrent,
3378
+ clearCurrent = _ref$clearCurrent === void 0 ? false : _ref$clearCurrent;
3379
+ if (clearCurrent) {
3380
+ toast.dismiss();
3381
+ }
3382
+ switch (type) {
3383
+ case 'success':
3384
+ toast.success(message);
3385
+ break;
3386
+ case 'error':
3387
+ toast.error(message);
3388
+ break;
3389
+ case 'info':
3390
+ toast(message, {
3391
+ icon: React.createElement(Container, {
3392
+ "$minWidth": '20px',
3393
+ "$height": '20px',
3394
+ "$width": '20px',
3395
+ "$alignItems": 'center',
3396
+ "$justifyContent": 'center',
3397
+ "$borderRadius": '100%',
3398
+ "$background": themeColors.disabled.info
3399
+ }, React.createElement(Icon, {
3400
+ icon: 'InformationFilled',
3401
+ weight: '0px',
3402
+ size: 20,
3403
+ color: themeColors["default"].info
3404
+ })),
3405
+ style: {
3406
+ borderRadius: '8px',
3407
+ background: themeColors.text.white,
3408
+ color: '#363636',
3409
+ maxWidth: '648px'
3410
+ }
3411
+ });
3412
+ break;
3413
+ case 'promise':
3414
+ if (promiseConfig) {
3415
+ toast.promise(promiseConfig.promise, {
3416
+ loading: promiseConfig.loading,
3417
+ success: promiseConfig.success,
3418
+ error: promiseConfig.error
3419
+ }, {
3420
+ style: {
3421
+ minWidth: '300px'
3422
+ }
3423
+ });
3424
+ }
3425
+ break;
3426
+ case 'custom':
3427
+ toast(message, {
3428
+ icon: React.createElement(Icon, {
3429
+ icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
3430
+ size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
3431
+ weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
3432
+ }),
3433
+ style: {
3434
+ background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
3435
+ color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
3436
+ }
3437
+ });
3438
+ break;
3439
+ default:
3440
+ console.error('Invalid notification type or missing configuration!');
3441
+ }
3442
+ };
3443
+ return {
3444
+ sendNotification: sendNotification
3445
+ };
3446
+ };
3447
+
3448
+ var _templateObject$2, _templateObject2$2, _templateObject3;
3449
+ 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
+ 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) {
3451
+ var $clickable = _ref.$clickable;
3452
+ return $clickable ? 'pointer' : 'default';
3453
+ }, wrapperCss);
3454
+ var IconWrapperForSVG = styled.g(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), wrapperCss);
3455
+ var IconSVGs = {
3456
+ Add_1: Add,
3457
+ Add_2: Add_2,
3458
+ AddProfile: AddProfile,
3459
+ App: App,
3460
+ AI_Web: AI_Web,
3461
+ Back: Back,
3462
+ Bin: Bin,
3463
+ Bulb: Bulb,
3464
+ Business: Business,
3465
+ Calendar: Calendar,
3466
+ CCTV_1: CCTV_1,
3467
+ CCTV_2: CCTV_2,
3468
+ Circle: Circle,
3469
+ CircularEdit: CircularEdit,
3470
+ CircularFilledWarning: CircularFilledWarning,
3471
+ CircularPause: CircularPause,
3472
+ CircularPlay: CircularPlay,
3473
+ CircularWarning: CircularWarning,
3474
+ Client: Client,
3475
+ Close: Close,
3476
+ CloseCircle: CloseCircle,
3477
+ CloseEye: CloseEye,
3478
+ Copy: Copy,
3479
+ CPU: CPU,
3480
+ Cube3D: Cube3D,
3481
+ Cyber: Cyber,
3482
+ DiagonalArrow: DiagonalArrow,
3483
+ Directory: Directory,
3484
+ Disk: Disk,
3485
+ DocumentBadge: DocumentBadge,
3486
+ DownArrow: DownArrow,
3487
+ Download: Download,
3488
+ Email: Email,
3489
+ ExitFullScreen: ExitFullScreen,
3490
+ FaceRecognition: FaceRecognition,
3491
+ FilesBox: FilesBox,
3492
+ FilledCircle: FilledCircle,
3493
+ FilledCircleTick: FilledCircleTick,
3494
+ FilledPin: FilledPin,
3495
+ Filter_1: Filter_1,
3496
+ Filter_2: Filter_2,
3497
+ Forward_10_Sec: Forward_10_Sec,
3498
+ Forward: Forward,
3499
+ FPS: FPS,
3500
+ Free: Free,
3501
+ FullScreen: FullScreen,
3502
+ FullVolume: FullVolume,
3503
+ Grid_2x2_Hollow: Grid_2x2_Hollow,
3504
+ Grid_2x2: Grid_2x2,
3505
+ Grid_3x3: Grid_3x3,
3506
+ Grid_4x4: Grid_4x4,
3507
+ Grid_5x5: Grid_5x5,
3508
+ Hazard: Hazard,
3509
+ History: History,
3510
+ Hexagon: Hexagon,
3511
+ Information: Information,
3512
+ InformationFilled: InformationFilled,
3513
+ IP: IP,
3514
+ Key: Key,
3515
+ KeyDown: KeyDown,
3516
+ KnobController: KnobController,
3517
+ LedBulb: LedBulb,
3518
+ LeftArrow: LeftArrow,
3519
+ Letter: Letter,
3520
+ Live: Live,
3521
+ Lock: Lock,
3522
+ Logout: Logout,
3523
+ Maps: Maps,
3524
+ Media: Media,
3525
+ MediumVolume: MediumVolume,
3526
+ Mute: Mute,
3527
+ MuteVolume: MuteVolume,
3528
+ Menu: Menu,
3529
+ Monitor: Monitor,
3530
+ MultiMonitor: MultiMonitor,
3531
+ NetworkStorage: NetworkStorage,
3532
+ NFS_Directory: NFS_Directory,
3533
+ NoCam: NoCam,
3534
+ Node: Node,
3535
+ NoStorage: NoStorage,
3536
+ Notifications: Notifications,
3537
+ OpenBin: OpenBin,
3538
+ OpenEye: OpenEye,
3539
+ PasswordLock: PasswordLock,
3540
+ Pause: Pause,
3541
+ Phone: Phone,
3542
+ Pin_2: Pin_2,
3543
+ Pin: Pin,
3544
+ Play_1: Play,
3545
+ Play_2: Play_2,
3546
+ Playback: Playback,
3547
+ Power: Power,
3548
+ PremiumBadge: PremiumBadge,
3549
+ ProcessingBulb: ProcessingBulb,
3550
+ Profile_1: Profile_1,
3551
+ Profile_2: Profile_2,
3552
+ Profile_3: Profile_3,
3553
+ Recording_1: Recording_1,
3554
+ Recording_2: KnobController$1,
3555
+ Rectangle: Rectangle,
3556
+ Retry: Retry,
3557
+ Return: Return,
3558
+ Rewind_10_Sec: Rewind_10_Sec,
3559
+ Rhombus: Rhombus,
3560
+ RightArrow: RightArrow,
3561
+ ROI: ROI,
3562
+ RunAway: RunAway,
3563
+ SandTimer: SandTimer,
3564
+ Search: Search,
3565
+ Settings: Settings,
3566
+ Shield: Shield,
3567
+ SlantLine: SlantLine,
3568
+ SquareEdit: SquareEdit,
3569
+ SquareTick: SquareTick,
3570
+ StorageDisks: StorageDisks,
3571
+ Tag: Tag,
3572
+ Team: Team,
3573
+ ThreeDots: ThreeDots,
3574
+ ThumbsUp: ThumbsUp,
3575
+ Tick: Tick,
3576
+ Tools: Tools,
3577
+ TriangularFilledWarning: TriangularFilledWarning,
3578
+ UnPinned: UnPinned,
3579
+ UpArrow: UpArrow,
3580
+ Video: Video,
3581
+ Wallet: Wallet,
3582
+ Web: Web,
3583
+ WiFiCam: WiFiCam,
3584
+ WiFiLaptop: WiFiLaptop,
3585
+ Zapper: Zapper
3586
+ };
3587
+ var Icon = function Icon(_ref2) {
3588
+ var icon = _ref2.icon,
3589
+ color = _ref2.color,
3590
+ _ref2$weight = _ref2.weight,
3591
+ weight = _ref2$weight === void 0 ? '2px' : _ref2$weight,
3592
+ _ref2$size = _ref2.size,
3593
+ size = _ref2$size === void 0 ? 24 : _ref2$size,
3594
+ onClick = _ref2.onClick;
3595
+ var themeColors = useTheme();
3596
+ var IconSVG = IconSVGs[icon];
3597
+ if (!IconSVG) {
3598
+ console.warn("Icon '" + icon + "' not found");
3599
+ return null;
3600
+ }
3601
+ return React.createElement(IconWrapper, {
3602
+ onClick: onClick,
3603
+ "$clickable": !!onClick
3604
+ }, React.createElement(IconSVG, {
3605
+ size: size,
3606
+ color: color || themeColors.text.medium,
3607
+ weight: weight
3608
+ }));
3609
+ };
3610
+
3611
+ var _templateObject$3, _templateObject2$3;
3612
+ var TooltipWrapper = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n svg {\n cursor: pointer;\n }\n"])));
3613
+ var TooltipText = styled.span(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n visibility: ", ";\n opacity: ", ";\n transition: opacity 0.2s ease-in-out;\n background-color: ", ";\n color: ", ";\n border: ", ";\n border-radius: 8px;\n padding: 8px 16px;\n font-size: ", ";\n font-weight: ", ";\n max-width: 300px;\n width: max-content;\n position: fixed;\n z-index: 999;\n pointer-events: none;\n"])), function (_ref) {
3636
3614
  var $visible = _ref.$visible;
3637
3615
  return $visible ? 'visible' : 'hidden';
3638
3616
  }, function (_ref2) {
@@ -3670,11 +3648,11 @@ var Badge = function Badge(_ref8) {
3670
3648
  icon = _ref8$icon === void 0 ? {
3671
3649
  icon: 'Information',
3672
3650
  size: 10,
3673
- weight: '0.1px',
3674
- color: colorVariables.text.medium
3651
+ weight: '0.1px'
3675
3652
  } : _ref8$icon,
3676
3653
  tooltipText = _ref8.tooltipText,
3677
3654
  tooltipCSS = _ref8.tooltipCSS;
3655
+ var themeColors = useTheme();
3678
3656
  var _useState = useState(false),
3679
3657
  showTooltip = _useState[0],
3680
3658
  setShowTooltip = _useState[1];
@@ -3748,7 +3726,7 @@ var Badge = function Badge(_ref8) {
3748
3726
  icon: icon.icon,
3749
3727
  size: icon.size,
3750
3728
  weight: icon.weight,
3751
- color: icon.color
3729
+ color: icon.color || themeColors.text.medium
3752
3730
  }), React.createElement(TooltipText, {
3753
3731
  "$bgColor": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.background,
3754
3732
  "$visible": showTooltip,
@@ -3765,8 +3743,8 @@ var Badge = function Badge(_ref8) {
3765
3743
  }, text));
3766
3744
  };
3767
3745
 
3768
- var _templateObject$3, _templateObject2$3, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
3769
- var TooltipContainer = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n position: absolute;\n z-index: 10;\n align-items: center;\n justify-content: center;\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.3s;\n border-radius: ", ";\n padding: 6px 8px;\n border: ", ";\n min-width: ", ";\n min-width: ", ";\n background-color: ", ";\n gap: ", ";\n\n ", "\n\n &::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 8px;\n background-color: ", ";\n clip-path: polygon(50% 0%, 0% 100%, 100% 100%);\n\n ", "\n }\n"])), function (_ref) {
3746
+ var _templateObject$4, _templateObject2$4, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
3747
+ var TooltipContainer = styled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n position: absolute;\n z-index: 10;\n align-items: center;\n justify-content: center;\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.3s;\n border-radius: ", ";\n padding: 6px 8px;\n border: ", ";\n min-width: ", ";\n min-width: ", ";\n background-color: ", ";\n gap: ", ";\n\n ", "\n\n &::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 8px;\n background-color: ", ";\n clip-path: polygon(50% 0%, 0% 100%, 100% 100%);\n\n ", "\n }\n"])), function (_ref) {
3770
3748
  var $borderRadius = _ref.$borderRadius;
3771
3749
  return $borderRadius != null ? $borderRadius : '4px';
3772
3750
  }, function (_ref2) {
@@ -3790,7 +3768,7 @@ var TooltipContainer = styled.div(_templateObject$3 || (_templateObject$3 = _tag
3790
3768
  $iconSize = _ref7.$iconSize,
3791
3769
  $tooltipTop = _ref7.$tooltipTop;
3792
3770
  var vertical = $tooltipPosition.startsWith('top') ? "bottom: " + ($tooltipTop != null ? $tooltipTop : "calc(50% + " + ($iconSize + 2) + "px)") + ";" : "top: " + ($tooltipTop != null ? $tooltipTop : "calc(50% + " + ($iconSize + 2) + "px)") + ";";
3793
- var horizontal = $tooltipPosition.endsWith('Left') ? css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["left: calc(100% + 10px); transform: translateX(-99%);"]))) : $tooltipPosition.endsWith('Center') ? css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["left: 50%; transform: translateX(-50%);"]))) : css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["right: calc(100% + 10px); transform: translateX(99%);"])));
3771
+ var horizontal = $tooltipPosition.endsWith('Left') ? css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["left: calc(100% + 10px); transform: translateX(-99%);"]))) : $tooltipPosition.endsWith('Center') ? css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["left: 50%; transform: translateX(-50%);"]))) : css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["right: calc(100% + 10px); transform: translateX(99%);"])));
3794
3772
  return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["", " ", ";"])), vertical, horizontal);
3795
3773
  }, function (_ref8) {
3796
3774
  var $background = _ref8.$background,
@@ -3811,19 +3789,18 @@ var IconTooltip = function IconTooltip(_ref10) {
3811
3789
  icon = _ref10$icon === void 0 ? {
3812
3790
  icon: 'Information',
3813
3791
  size: 12,
3814
- weight: '0px',
3815
- color: colorVariables.text.medium
3792
+ weight: '0px'
3816
3793
  } : _ref10$icon,
3817
3794
  infoIcon = _ref10.infoIcon,
3818
3795
  infoText = _ref10.infoText,
3819
3796
  _ref10$tooltipCSS = _ref10.tooltipCSS,
3820
3797
  tooltipCSS = _ref10$tooltipCSS === void 0 ? {
3821
- background: colorVariables.accent.light_1,
3822
3798
  gap: '4px',
3823
3799
  minWidth: 'max-content',
3824
3800
  position: 'bottomCenter',
3825
3801
  tooltipTop: undefined
3826
3802
  } : _ref10$tooltipCSS;
3803
+ var themeColors = useTheme();
3827
3804
  return React.createElement(TooltipWrapper$1, null, React.createElement(Icon, Object.assign({}, icon, {
3828
3805
  onClick: function onClick() {}
3829
3806
  })), React.createElement(TooltipContainer, {
@@ -3831,7 +3808,7 @@ var IconTooltip = function IconTooltip(_ref10) {
3831
3808
  "$minWidth": tooltipCSS.minWidth,
3832
3809
  "$maxWidth": tooltipCSS.maxWidth,
3833
3810
  "$tooltipTop": tooltipCSS.tooltipTop,
3834
- "$background": tooltipCSS.background,
3811
+ "$background": tooltipCSS.background || themeColors.accent.light_1,
3835
3812
  "$gap": tooltipCSS.gap,
3836
3813
  "$iconSize": icon.size || 17,
3837
3814
  "$border": tooltipCSS.border,
@@ -3839,8 +3816,8 @@ var IconTooltip = function IconTooltip(_ref10) {
3839
3816
  }, infoIcon && React.createElement(Icon, Object.assign({}, infoIcon)), infoText));
3840
3817
  };
3841
3818
 
3842
- var _templateObject$4;
3843
- var BreadCrum = styled.span(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n font-weight: 400;\n font-size: 12px;\n color: ", ";\n line-height: 100%;\n text-align: center;\n opacity: ", ";\n \n &:hover {\n text-decoration: ", ";\n cursor: ", ";\n color: ", ";\n }\n"])), function (_ref) {
3819
+ var _templateObject$5;
3820
+ var BreadCrum = styled.span(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n font-weight: 400;\n font-size: 12px;\n color: ", ";\n line-height: 100%;\n text-align: center;\n opacity: ", ";\n \n &:hover {\n text-decoration: ", ";\n cursor: ", ";\n color: ", ";\n }\n"])), function (_ref) {
3844
3821
  var $color = _ref.$color,
3845
3822
  theme = _ref.theme;
3846
3823
  return $color ? $color : theme.text.medium;
@@ -3868,6 +3845,7 @@ var Breadcrumbs = function Breadcrumbs(_ref6) {
3868
3845
  disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
3869
3846
  breadcrumbs = _ref6.breadcrumbs,
3870
3847
  onBackClick = _ref6.onBackClick;
3848
+ var themeColors = useTheme();
3871
3849
  var navigate = useNavigate();
3872
3850
  var _useState = useState(false),
3873
3851
  hovered = _useState[0],
@@ -3896,29 +3874,29 @@ var Breadcrumbs = function Breadcrumbs(_ref6) {
3896
3874
  }, React.createElement(Icon, {
3897
3875
  icon: 'RightArrow',
3898
3876
  size: 5,
3899
- color: colorVariables.text.medium
3877
+ color: themeColors.text.medium
3900
3878
  })), React.createElement(BreadCrum, {
3901
3879
  onClick: function onClick() {
3902
3880
  if (breadcrumb.navigateLink) navigate(breadcrumb.navigateLink);
3903
3881
  },
3904
3882
  "$hover": breadcrumb.navigateLink ? true : false,
3905
3883
  "$disabled": disabled,
3906
- "$color": breadcrumb.navigateLink ? colorVariables.text.dark : colorVariables.text.medium
3884
+ "$color": breadcrumb.navigateLink ? themeColors.text.dark : themeColors.text.medium
3907
3885
  }, breadcrumb.text));
3908
3886
  }));
3909
3887
  };
3910
3888
 
3911
- var _templateObject$5;
3912
- var fontFaces = css(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n @font-face {\n font-family: 'NotoSans';\n font-weight: 200;\n font-style: normal;\n src: url('./NotoSans-ExtraLight.woff') format('woff');\n font-display: fallback;\n }\n\n @font-face {\n font-family: 'NotoSans';\n font-weight: 300;\n font-style: normal;\n src: url('./NotoSans-Light.woff') format('woff');\n font-display: fallback;\n }\n @font-face {\n font-family: 'NotoSans';\n font-weight: 400;\n font-style: normal;\n src: url('./NotoSans-Regular.woff') format('woff');\n font-display: fallback;\n }\n @font-face {\n font-family: 'NotoSans';\n font-weight: 400;\n font-style: italic;\n src: url('./NotoSans-italic.woff') format('woff');\n font-display: fallback;\n }\n\n @font-face {\n font-family: 'NotoSans';\n font-weight: 500;\n font-style: normal;\n src: url('./NotoSans-Medium.woff') format('woff');\n font-display: fallback;\n }\n\n @font-face {\n font-family: 'NotoSans';\n font-weight: 600;\n font-style: normal;\n src: url('./NotoSans-SemiBold.woff') format('woff');\n font-display: fallback;\n }\n @font-face {\n font-family: 'NotoSans';\n font-weight: 700;\n font-style: normal;\n src: url('./NotoSans-Bold.woff') format('woff');\n font-display: fallback;\n }\n @font-face {\n font-family: 'NotoSans';\n font-weight: 800;\n font-style: normal;\n src: url('./NotoSans-ExtraBold.woff') format('woff');\n font-display: fallback;\n }\n"])));
3889
+ var _templateObject$6;
3890
+ var fontFaces = css(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n @font-face {\n font-family: 'NotoSans';\n font-weight: 200;\n font-style: normal;\n src: url('./NotoSans-ExtraLight.woff') format('woff');\n font-display: fallback;\n }\n\n @font-face {\n font-family: 'NotoSans';\n font-weight: 300;\n font-style: normal;\n src: url('./NotoSans-Light.woff') format('woff');\n font-display: fallback;\n }\n @font-face {\n font-family: 'NotoSans';\n font-weight: 400;\n font-style: normal;\n src: url('./NotoSans-Regular.woff') format('woff');\n font-display: fallback;\n }\n @font-face {\n font-family: 'NotoSans';\n font-weight: 400;\n font-style: italic;\n src: url('./NotoSans-italic.woff') format('woff');\n font-display: fallback;\n }\n\n @font-face {\n font-family: 'NotoSans';\n font-weight: 500;\n font-style: normal;\n src: url('./NotoSans-Medium.woff') format('woff');\n font-display: fallback;\n }\n\n @font-face {\n font-family: 'NotoSans';\n font-weight: 600;\n font-style: normal;\n src: url('./NotoSans-SemiBold.woff') format('woff');\n font-display: fallback;\n }\n @font-face {\n font-family: 'NotoSans';\n font-weight: 700;\n font-style: normal;\n src: url('./NotoSans-Bold.woff') format('woff');\n font-display: fallback;\n }\n @font-face {\n font-family: 'NotoSans';\n font-weight: 800;\n font-style: normal;\n src: url('./NotoSans-ExtraBold.woff') format('woff');\n font-display: fallback;\n }\n"])));
3913
3891
  var GlobalFonts = {
3914
3892
  bold: 'NotoSans, sans-serif',
3915
3893
  regular: 'NotoSans, sans-serif',
3916
3894
  light: 'NotoSans, sans-serif'
3917
3895
  };
3918
3896
 
3919
- var _templateObject$6, _templateObject2$4, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1;
3920
- var spin = keyframes(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n to {\n transform: rotate(360deg);\n }\n"])));
3921
- var Spinner = styled.div(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n width: ", "px;\n height: ", "px;\n border: ", "px solid #ddd;\n border-top-color: ", ";\n border-radius: 50%;\n animation: fadeIn 0.3s ease-in-out forwards, ", " 1s linear infinite;\n"])), function (_ref) {
3897
+ var _templateObject$7, _templateObject2$5, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1;
3898
+ var spin = keyframes(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n to {\n transform: rotate(360deg);\n }\n"])));
3899
+ var Spinner = styled.div(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n width: ", "px;\n height: ", "px;\n border: ", "px solid #ddd;\n border-top-color: ", ";\n border-radius: 50%;\n animation: fadeIn 0.3s ease-in-out forwards, ", " 1s linear infinite;\n"])), function (_ref) {
3922
3900
  var $size = _ref.$size;
3923
3901
  return $size;
3924
3902
  }, function (_ref2) {
@@ -4016,8 +3994,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
4016
3994
  text = _ref20.text,
4017
3995
  size = _ref20.size,
4018
3996
  background = _ref20.background,
4019
- _ref20$hoverColor = _ref20.hoverColor,
4020
- hoverColor = _ref20$hoverColor === void 0 ? colorVariables.text.white : _ref20$hoverColor,
3997
+ hoverColor = _ref20.hoverColor,
4021
3998
  color = _ref20.color,
4022
3999
  colorHover = _ref20.colorHover,
4023
4000
  borderDefault = _ref20.borderDefault,
@@ -4042,9 +4019,9 @@ var ButtonComponent = function ButtonComponent(_ref20) {
4042
4019
  _ref20$loaderProps = _ref20.loaderProps,
4043
4020
  loaderProps = _ref20$loaderProps === void 0 ? {
4044
4021
  loading: false,
4045
- loaderPosition: 'right',
4046
- loaderColor: colorVariables.text.white
4022
+ loaderPosition: 'right'
4047
4023
  } : _ref20$loaderProps;
4024
+ var themeColors = useTheme();
4048
4025
  var _useState = useState(false),
4049
4026
  isHovered = _useState[0],
4050
4027
  setIsHovered = _useState[1];
@@ -4082,7 +4059,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
4082
4059
  iconClick();
4083
4060
  }
4084
4061
  },
4085
- color: variant === 'tertiary' && isHovered ? colorVariables.hover.primary : variant === 'tertiary' && disabled ? colorVariables.disabled.primary : variant === 'tertiary' ? colorVariables["default"].primary : variant === 'outline-primary' && isHovered ? colorVariables.text.white : variant === 'outline-primary' && disabled ? colorVariables.disabled.primary : variant === 'outline-primary' ? colorVariables["default"].primary : variant === 'outline-secondary' && isHovered ? colorVariables.text.white : variant === 'outline-secondary' && disabled ? colorVariables.disabled.secondary : variant === 'outline-secondary' ? colorVariables["default"].secondary : variant === 'outline-error' && isHovered ? colorVariables.text.white : variant === 'outline-error' && disabled ? colorVariables.disabled.error : variant === 'outline-error' ? colorVariables["default"].error : isHovered ? hoverColor : color ? color : colorVariables.text.white
4062
+ color: variant === 'tertiary' && isHovered ? themeColors.hover.primary : variant === 'tertiary' && disabled ? themeColors.disabled.primary : variant === 'tertiary' ? themeColors["default"].primary : variant === 'outline-primary' && isHovered ? themeColors.text.white : variant === 'outline-primary' && disabled ? themeColors.disabled.primary : variant === 'outline-primary' ? themeColors["default"].primary : variant === 'outline-secondary' && isHovered ? themeColors.text.white : variant === 'outline-secondary' && disabled ? themeColors.disabled.secondary : variant === 'outline-secondary' ? themeColors["default"].secondary : variant === 'outline-error' && isHovered ? themeColors.text.white : variant === 'outline-error' && disabled ? themeColors.disabled.error : variant === 'outline-error' ? themeColors["default"].error : isHovered ? hoverColor || themeColors.text.white : color ? color : themeColors.text.white
4086
4063
  }), text && React.createElement(ButtonText, {
4087
4064
  "$size": size,
4088
4065
  "$fontFamily": fontFamily,
@@ -4092,18 +4069,19 @@ var ButtonComponent = function ButtonComponent(_ref20) {
4092
4069
  "$loaderPosition": loaderPos
4093
4070
  }, React.createElement(Spinner, {
4094
4071
  "$size": size === 'small' ? 12 : size === 'medium' ? 16 : 18,
4095
- "$color": loaderProps.loaderColor || 'color'
4072
+ "$color": loaderProps.loaderColor || themeColors.text.white
4096
4073
  })));
4097
4074
  };
4098
4075
 
4099
- var _templateObject$7;
4100
- var InnerContent = styled.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 12px;\n overflow-x: auto;\n scroll-behavior: smooth;\n scrollbar-width: none;\n ms-overflow-style: none;\n white-space: nowrap;\n padding: ", "; \n margin: 0 10px;\n"])), function (_ref) {
4076
+ var _templateObject$8;
4077
+ var InnerContent = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 12px;\n overflow-x: auto;\n scroll-behavior: smooth;\n scrollbar-width: none;\n ms-overflow-style: none;\n white-space: nowrap;\n padding: ", "; \n margin: 0 10px;\n"])), function (_ref) {
4101
4078
  var $isScrollable = _ref.$isScrollable;
4102
4079
  return $isScrollable ? '0 12px' : '0';
4103
4080
  });
4104
4081
  var ButtonCarousel = function ButtonCarousel(_ref2) {
4105
4082
  var contentLength = _ref2.contentLength,
4106
4083
  innerNode = _ref2.innerNode;
4084
+ var themeColors = useTheme();
4107
4085
  var scrollRef = useRef(null);
4108
4086
  var _useState = useState(false),
4109
4087
  isScrollable = _useState[0],
@@ -4164,8 +4142,8 @@ var ButtonCarousel = function ButtonCarousel(_ref2) {
4164
4142
  borderRadius: '50%',
4165
4143
  onClick: scrollLeft,
4166
4144
  iconSize: 10,
4167
- borderDefault: "2px solid " + colorVariables["default"].tertiary,
4168
- borderHover: "2px solid " + colorVariables.hover.primary
4145
+ borderDefault: "2px solid " + themeColors["default"].tertiary,
4146
+ borderHover: "2px solid " + themeColors.hover.primary
4169
4147
  }), React.createElement(InnerContent, {
4170
4148
  "$isScrollable": isScrollable,
4171
4149
  ref: scrollRef,
@@ -4178,8 +4156,8 @@ var ButtonCarousel = function ButtonCarousel(_ref2) {
4178
4156
  borderRadius: '50%',
4179
4157
  onClick: scrollRight,
4180
4158
  iconSize: 10,
4181
- borderDefault: "2px solid " + colorVariables["default"].tertiary,
4182
- borderHover: "2px solid " + colorVariables.hover.primary
4159
+ borderDefault: "2px solid " + themeColors["default"].tertiary,
4160
+ borderHover: "2px solid " + themeColors.hover.primary
4183
4161
  }));
4184
4162
  };
4185
4163
 
@@ -4328,9 +4306,9 @@ var timeStringToSeconds = function timeStringToSeconds(timeString) {
4328
4306
  return hours * 3600 + minutes * 60 + seconds;
4329
4307
  };
4330
4308
 
4331
- var _templateObject$8, _templateObject2$5, _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;
4332
- var DatePickerContainer = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n"])));
4333
- var CalendarContainer = styled.div(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n overflow: auto;\n display: flex;\n flex-direction: row;\n background: rgba(245, 248, 250, .95); \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) {
4309
+ 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;
4310
+ var DatePickerContainer = styled.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n"])));
4311
+ var CalendarContainer = styled.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n overflow: auto;\n display: flex;\n flex-direction: row;\n background: rgba(245, 248, 250, .95); \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) {
4334
4312
  var theme = _ref.theme;
4335
4313
  return "1px solid " + theme.border.medium;
4336
4314
  });
@@ -4649,9 +4627,9 @@ var DatePicker = function DatePicker(_ref20) {
4649
4627
  }))))), React.createElement(Line, null, React.createElement("hr", null)), React.createElement(Zones, null, React.createElement(CurrentTime, null, t('TimePicker_Zone')), React.createElement(CurrentTime, null, getSystemTimezoneAbbreviation())))));
4650
4628
  };
4651
4629
 
4652
- var _templateObject$9, _templateObject2$6, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$3;
4653
- var OptionContainer = styled.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose([""])));
4654
- var OptionItem = styled.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n"])), function (_ref) {
4630
+ var _templateObject$a, _templateObject2$7, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$3;
4631
+ var OptionContainer = styled.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose([""])));
4632
+ var OptionItem = styled.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n"])), function (_ref) {
4655
4633
  var $optionBorder = _ref.$optionBorder,
4656
4634
  $isborder = _ref.$isborder,
4657
4635
  theme = _ref.theme;
@@ -4839,142 +4817,6 @@ var OptionComponent = function OptionComponent(_ref9) {
4839
4817
  }, NoOptionsText))));
4840
4818
  };
4841
4819
 
4842
- var useClickOutside = function useClickOutside(elRef, elCallback) {
4843
- var callbackRef = useRef(elCallback);
4844
- callbackRef.current = elCallback;
4845
- useEffect(function () {
4846
- var handleClickOutside = function handleClickOutside(eve) {
4847
- var _elRef$current;
4848
- if (!(elRef !== null && elRef !== void 0 && (_elRef$current = elRef.current) !== null && _elRef$current !== void 0 && _elRef$current.contains(eve.target))) {
4849
- callbackRef.current(eve);
4850
- }
4851
- };
4852
- document.addEventListener('click', handleClickOutside, true);
4853
- return function () {
4854
- document.removeEventListener('click', handleClickOutside, true);
4855
- };
4856
- }, [elCallback, elRef]);
4857
- };
4858
-
4859
- var _templateObject$a, _templateObject2$7;
4860
- var ModalOverlay = styled.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: NotoSans, sans-serif;\n z-index: 9999;\n backdrop-filter: blur(4px);\n"])));
4861
- var ModalContainer = styled.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-height: 100vh;\n max-width: ", ";\n overflow: visible;\n"])), function (_ref) {
4862
- var theme = _ref.theme;
4863
- return theme.accent.light_1;
4864
- }, function (_ref2) {
4865
- var $maxWidth = _ref2.$maxWidth;
4866
- return $maxWidth ? $maxWidth : '400px';
4867
- });
4868
- var Modal = function Modal(_ref3) {
4869
- var isOpen = _ref3.isOpen,
4870
- maxWidth = _ref3.maxWidth,
4871
- children = _ref3.children;
4872
- if (!isOpen) return null;
4873
- return React.createElement(ModalOverlay, null, React.createElement(ModalContainer, {
4874
- "$maxWidth": maxWidth,
4875
- onClick: function onClick(e) {
4876
- return e.stopPropagation();
4877
- }
4878
- }, children));
4879
- };
4880
- var useCustomModal = function useCustomModal(_ref4) {
4881
- var maxWidth = _ref4.maxWidth;
4882
- var _useState = useState(false),
4883
- isOpen = _useState[0],
4884
- setIsOpen = _useState[1];
4885
- var createModal = function createModal(content) {
4886
- return React.createElement(Modal, {
4887
- isOpen: isOpen,
4888
- maxWidth: maxWidth
4889
- }, content);
4890
- };
4891
- return {
4892
- setIsOpen: setIsOpen,
4893
- createModal: createModal
4894
- };
4895
- };
4896
-
4897
- var useNotification = function useNotification() {
4898
- var sendNotification = function sendNotification(_ref) {
4899
- var type = _ref.type,
4900
- message = _ref.message,
4901
- promiseConfig = _ref.promiseConfig,
4902
- customStyle = _ref.customStyle,
4903
- _ref$clearCurrent = _ref.clearCurrent,
4904
- clearCurrent = _ref$clearCurrent === void 0 ? false : _ref$clearCurrent;
4905
- if (clearCurrent) {
4906
- toast.dismiss();
4907
- }
4908
- switch (type) {
4909
- case 'success':
4910
- toast.success(message);
4911
- break;
4912
- case 'error':
4913
- toast.error(message);
4914
- break;
4915
- case 'info':
4916
- toast(message, {
4917
- icon: React.createElement(Container, {
4918
- "$minWidth": '20px',
4919
- "$height": '20px',
4920
- "$width": '20px',
4921
- "$alignItems": 'center',
4922
- "$justifyContent": 'center',
4923
- "$borderRadius": '100%',
4924
- "$background": colorVariables.disabled.info
4925
- }, React.createElement(Icon, {
4926
- icon: 'InformationFilled',
4927
- weight: '0px',
4928
- size: 20,
4929
- color: colorVariables["default"].info
4930
- })),
4931
- style: {
4932
- borderRadius: '8px',
4933
- background: colorVariables.text.white,
4934
- color: '#363636',
4935
- maxWidth: '648px'
4936
- }
4937
- });
4938
- break;
4939
- case 'promise':
4940
- if (promiseConfig) {
4941
- toast.promise(promiseConfig.promise, {
4942
- loading: promiseConfig.loading,
4943
- success: promiseConfig.success,
4944
- error: promiseConfig.error
4945
- }, {
4946
- style: {
4947
- minWidth: '300px'
4948
- }
4949
- });
4950
- }
4951
- break;
4952
- case 'custom':
4953
- toast(message, {
4954
- icon: React.createElement(Icon, {
4955
- icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
4956
- size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
4957
- weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
4958
- }),
4959
- style: {
4960
- background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
4961
- color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
4962
- }
4963
- });
4964
- break;
4965
- default:
4966
- console.error('Invalid notification type or missing configuration!');
4967
- }
4968
- };
4969
- return {
4970
- sendNotification: sendNotification
4971
- };
4972
- };
4973
-
4974
- var useTheme = function useTheme() {
4975
- return useTheme$1();
4976
- };
4977
-
4978
4820
  var _templateObject$b, _templateObject2$8, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2;
4979
4821
  var DropdownContainer = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n max-width: 100%;\n position: relative;\n max-height: ", ";\n"])), function (_ref) {
4980
4822
  var $width = _ref.$width;
@@ -5372,6 +5214,7 @@ var SelectedOption = function SelectedOption(_ref4) {
5372
5214
  removeIconColor = _ref4.removeIconColor,
5373
5215
  onChange = _ref4.onChange,
5374
5216
  type = _ref4.type;
5217
+ var themeColors = useTheme();
5375
5218
  var selectedOptionObjects = allOptions.filter(function (opt) {
5376
5219
  return selectedOptions.includes(opt.value);
5377
5220
  }).sort(function (a, b) {
@@ -5404,7 +5247,7 @@ var SelectedOption = function SelectedOption(_ref4) {
5404
5247
  }, React.createElement(Icon, {
5405
5248
  icon: 'Close',
5406
5249
  size: 6,
5407
- color: removeIconColor || type === 'remove' ? colorVariables["default"].error : colorVariables.brand.primary
5250
+ color: removeIconColor || type === 'remove' ? themeColors["default"].error : themeColors.brand.primary
5408
5251
  })));
5409
5252
  }));
5410
5253
  };
@@ -5643,8 +5486,7 @@ var SelectOption = function SelectOption(_ref36) {
5643
5486
  searchIcon = _ref36.searchIcon,
5644
5487
  _ref36$placeholderTex = _ref36.placeholderText,
5645
5488
  placeholderText = _ref36$placeholderTex === void 0 ? 'Search...' : _ref36$placeholderTex,
5646
- _ref36$iconColor = _ref36.iconColor,
5647
- iconColor = _ref36$iconColor === void 0 ? colorVariables.text.medium : _ref36$iconColor,
5489
+ iconColor = _ref36.iconColor,
5648
5490
  placeholderColor = _ref36.placeholderColor,
5649
5491
  inputColor = _ref36.inputColor,
5650
5492
  _ref36$iconSize = _ref36.iconSize,
@@ -5652,6 +5494,7 @@ var SelectOption = function SelectOption(_ref36) {
5652
5494
  _ref36$allowDeselect = _ref36.allowDeselect,
5653
5495
  allowDeselect = _ref36$allowDeselect === void 0 ? true : _ref36$allowDeselect,
5654
5496
  titleRightNode = _ref36.titleRightNode;
5497
+ var themeColors = useTheme();
5655
5498
  var _useState = useState(false),
5656
5499
  dropUp = _useState[0],
5657
5500
  setDropUp = _useState[1];
@@ -5759,19 +5602,19 @@ var SelectOption = function SelectOption(_ref36) {
5759
5602
  icon: icon.name,
5760
5603
  size: icon.size || 14,
5761
5604
  weight: icon.weight || '1px',
5762
- color: icon.color || colorVariables.text.medium
5605
+ color: icon.color || themeColors.text.medium
5763
5606
  }), label ? React.createElement(LabelText$1, {
5764
5607
  color: color,
5765
5608
  "$disabled": disabled,
5766
5609
  "$size": size
5767
5610
  }, label) : React.createElement(LabelText$1, {
5768
5611
  "$fontStyle": fontStyle ? fontStyle : 'italic',
5769
- color: colorVariables.text.light,
5612
+ color: themeColors.text.light,
5770
5613
  "$size": size
5771
5614
  }, labelText), React.createElement(Icon, {
5772
5615
  icon: isOpen ? 'UpArrow' : 'DownArrow',
5773
5616
  size: 7,
5774
- color: colorVariables.text.medium
5617
+ color: themeColors.text.medium
5775
5618
  })), isOpen && React.createElement(DropdownMenu$1, {
5776
5619
  "$width": width,
5777
5620
  "$menuBackground": menuBackground,
@@ -5787,7 +5630,7 @@ var SelectOption = function SelectOption(_ref36) {
5787
5630
  icon: 'Search',
5788
5631
  size: iconSize,
5789
5632
  weight: (searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.weight) || '0px',
5790
- color: iconColor
5633
+ color: iconColor || themeColors.text.medium
5791
5634
  }), React.createElement(SearchBar$1, {
5792
5635
  ref: searchInputRef,
5793
5636
  type: 'text',
@@ -5849,13 +5692,13 @@ var SearchBox = function SearchBox(_ref9) {
5849
5692
  placeholder = _ref9$placeholder === void 0 ? 'Search...' : _ref9$placeholder,
5850
5693
  border = _ref9.border,
5851
5694
  borderRadius = _ref9.borderRadius,
5852
- _ref9$iconColor = _ref9.iconColor,
5853
- iconColor = _ref9$iconColor === void 0 ? colorVariables.text.medium : _ref9$iconColor,
5695
+ iconColor = _ref9.iconColor,
5854
5696
  placeholderColor = _ref9.placeholderColor,
5855
5697
  inputColor = _ref9.inputColor,
5856
5698
  _ref9$iconSize = _ref9.iconSize,
5857
5699
  iconSize = _ref9$iconSize === void 0 ? 16 : _ref9$iconSize,
5858
5700
  background = _ref9.background;
5701
+ var themeColors = useTheme();
5859
5702
  var _useState = useState(false),
5860
5703
  isFocused = _useState[0],
5861
5704
  setIsFocused = _useState[1];
@@ -5867,7 +5710,7 @@ var SearchBox = function SearchBox(_ref9) {
5867
5710
  }, React.createElement(Icon, {
5868
5711
  icon: 'Search',
5869
5712
  size: iconSize,
5870
- color: iconColor,
5713
+ color: iconColor || themeColors.text.medium,
5871
5714
  weight: '0px'
5872
5715
  }), React.createElement(SearchBar$2, {
5873
5716
  type: 'text',
@@ -6003,12 +5846,10 @@ var TextField = function TextField(_ref14) {
6003
5846
  onChange = _ref14.onChange,
6004
5847
  _ref14$size = _ref14.size,
6005
5848
  size = _ref14$size === void 0 ? 'medium' : _ref14$size,
6006
- _ref14$color = _ref14.color,
6007
- color = _ref14$color === void 0 ? colorVariables.text.dark : _ref14$color,
5849
+ color = _ref14.color,
6008
5850
  _ref14$padding = _ref14.padding,
6009
5851
  padding = _ref14$padding === void 0 ? '0px' : _ref14$padding,
6010
- _ref14$titlecolor = _ref14.titlecolor,
6011
- titlecolor = _ref14$titlecolor === void 0 ? colorVariables.text.dark : _ref14$titlecolor,
5852
+ titlecolor = _ref14.titlecolor,
6012
5853
  icon = _ref14.icon,
6013
5854
  _ref14$iconsize = _ref14.iconsize,
6014
5855
  iconsize = _ref14$iconsize === void 0 ? 18 : _ref14$iconsize,
@@ -6016,10 +5857,10 @@ var TextField = function TextField(_ref14) {
6016
5857
  iconcolor = _ref14.iconcolor,
6017
5858
  _ref14$required = _ref14.required,
6018
5859
  required = _ref14$required === void 0 ? false : _ref14$required,
6019
- _ref14$background = _ref14.background,
6020
- background = _ref14$background === void 0 ? colorVariables["default"].tertiary : _ref14$background,
5860
+ background = _ref14.background,
6021
5861
  onEnter = _ref14.onEnter,
6022
5862
  titleRightNode = _ref14.titleRightNode;
5863
+ var themeColors = useTheme();
6023
5864
  var _useState = useState(disabled),
6024
5865
  isDisabled = _useState[0],
6025
5866
  setIsDisabled = _useState[1];
@@ -6050,7 +5891,7 @@ var TextField = function TextField(_ref14) {
6050
5891
  "$size": size,
6051
5892
  "$fontWeight": titleWeight,
6052
5893
  htmlFor: title,
6053
- "$titlecolor": titlecolor
5894
+ "$titlecolor": titlecolor || themeColors.text.dark
6054
5895
  }, title, required && React.createElement(Asterisk$1, null, "*")), titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.node), React.createElement(InputWrapper$1, null, React.createElement(Input, {
6055
5896
  type: inputType || 'text',
6056
5897
  "$type": type,
@@ -6061,8 +5902,8 @@ var TextField = function TextField(_ref14) {
6061
5902
  "$disabled": isDisabled,
6062
5903
  onChange: onChange,
6063
5904
  "$size": size,
6064
- "$color": color,
6065
- "$background": background,
5905
+ "$color": color || themeColors.text.dark,
5906
+ "$background": background || themeColors["default"].tertiary,
6066
5907
  readOnly: onChange === undefined || isDisabled ? true : false,
6067
5908
  onKeyDown: function onKeyDown(e) {
6068
5909
  if (e.key === 'Enter') {
@@ -6078,14 +5919,14 @@ var TextField = function TextField(_ref14) {
6078
5919
  icon: inputType === 'password' ? 'CloseEye' : 'OpenEye',
6079
5920
  size: iconsize,
6080
5921
  weight: iconweight,
6081
- color: iconcolor || colorVariables["default"].primary
5922
+ color: iconcolor || themeColors["default"].primary
6082
5923
  })), icon && type !== 'password' && React.createElement(IconWrapper$1, {
6083
5924
  onClick: handleToggleDisabled
6084
5925
  }, React.createElement(Icon, {
6085
5926
  icon: icon,
6086
5927
  size: iconsize,
6087
5928
  weight: iconweight,
6088
- color: iconcolor || colorVariables["default"].primary
5929
+ color: iconcolor || themeColors["default"].primary
6089
5930
  }))));
6090
5931
  };
6091
5932
 
@@ -6158,16 +5999,14 @@ var TextArea = function TextArea(_ref12) {
6158
5999
  onChange = _ref12.onChange,
6159
6000
  _ref12$size = _ref12.size,
6160
6001
  size = _ref12$size === void 0 ? 'medium' : _ref12$size,
6161
- _ref12$color = _ref12.color,
6162
- color = _ref12$color === void 0 ? colorVariables.text.dark : _ref12$color,
6002
+ color = _ref12.color,
6163
6003
  _ref12$padding = _ref12.padding,
6164
6004
  padding = _ref12$padding === void 0 ? '0px' : _ref12$padding,
6165
- _ref12$titlecolor = _ref12.titlecolor,
6166
- titlecolor = _ref12$titlecolor === void 0 ? colorVariables.text.dark : _ref12$titlecolor,
6005
+ titlecolor = _ref12.titlecolor,
6167
6006
  _ref12$required = _ref12.required,
6168
6007
  required = _ref12$required === void 0 ? false : _ref12$required,
6169
- _ref12$background = _ref12.background,
6170
- background = _ref12$background === void 0 ? colorVariables["default"].tertiary : _ref12$background;
6008
+ background = _ref12.background;
6009
+ var themeColors = useTheme();
6171
6010
  var _useState = useState(disabled),
6172
6011
  isDisabled = _useState[0],
6173
6012
  setIsDisabled = _useState[1];
@@ -6180,7 +6019,7 @@ var TextArea = function TextArea(_ref12) {
6180
6019
  "$size": size,
6181
6020
  "$fontWeight": titleWeight,
6182
6021
  htmlFor: title,
6183
- "$titlecolor": titlecolor
6022
+ "$titlecolor": titlecolor || themeColors.text.dark
6184
6023
  }, title, required && React.createElement(Asterisk$1, null, "*")), React.createElement(TextAreaComponent, {
6185
6024
  name: title,
6186
6025
  id: title,
@@ -6189,8 +6028,8 @@ var TextArea = function TextArea(_ref12) {
6189
6028
  "$disabled": isDisabled,
6190
6029
  onChange: onChange,
6191
6030
  "$size": size,
6192
- "$color": color,
6193
- "$background": background
6031
+ "$color": color || themeColors.text.dark,
6032
+ "$background": background || themeColors["default"].tertiary
6194
6033
  }));
6195
6034
  };
6196
6035
 
@@ -6328,6 +6167,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
6328
6167
  _ref16$searchBox = _ref16.searchBox,
6329
6168
  searchBox = _ref16$searchBox === void 0 ? true : _ref16$searchBox,
6330
6169
  NoOptionsText = _ref16.NoOptionsText;
6170
+ var themeColors = useTheme();
6331
6171
  var _useTranslation = useTranslation(),
6332
6172
  t = _useTranslation.t;
6333
6173
  var searchBoxRef = useRef(null);
@@ -6359,7 +6199,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
6359
6199
  "$position": 'relative'
6360
6200
  }, searchBox && React.createElement(SearchContainer$3, {
6361
6201
  "$borderBottom": searchBoxBorder,
6362
- "$background": isSearchBarEnabled ? colorVariables.text.white : colorVariables.accent.light_1,
6202
+ "$background": isSearchBarEnabled ? themeColors.text.white : themeColors.accent.light_1,
6363
6203
  "$borderRadius": searchBoxBorderRadius,
6364
6204
  ref: searchBoxRef
6365
6205
  }, React.createElement(Container, {
@@ -6379,7 +6219,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
6379
6219
  value: internalSearchQuery,
6380
6220
  onChange: handleSearchChange,
6381
6221
  "$inputColor": searchbarTextColor,
6382
- "$placeholderColor": isSearchBarEnabled ? colorVariables.text.light : colorVariables.text.medium,
6222
+ "$placeholderColor": isSearchBarEnabled ? themeColors.text.light : themeColors.text.medium,
6383
6223
  disabled: !!searchQuery
6384
6224
  })), (internalSearchQuery || searchQuery) && React.createElement(Icon, {
6385
6225
  icon: 'Close',
@@ -6396,7 +6236,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
6396
6236
  }, React.createElement(TotalOptionsHeader, null, React.createElement(Span, {
6397
6237
  "$fontSize": '12px',
6398
6238
  "$fontWeight": '400',
6399
- "$color": colorVariables.text.light
6239
+ "$color": themeColors.text.light
6400
6240
  }, t('Showing_results') + " (" + filteredArray.length + " of " + (options === null || options === void 0 ? void 0 : options.length) + ")")), React.createElement(OptionsWrapper$1, null, filteredArray.length > 0 ? filteredArray.map(function (option) {
6401
6241
  return React.createElement(OptionItem$1, {
6402
6242
  key: option.value,
@@ -6475,10 +6315,10 @@ var CheckBox = function CheckBox(_ref11) {
6475
6315
  fontSize = _ref11$fontSize === void 0 ? '14px' : _ref11$fontSize,
6476
6316
  _ref11$fontWeight = _ref11.fontWeight,
6477
6317
  fontWeight = _ref11$fontWeight === void 0 ? '500' : _ref11$fontWeight,
6478
- _ref11$color = _ref11.color,
6479
- color = _ref11$color === void 0 ? colorVariables.text.medium : _ref11$color,
6318
+ color = _ref11.color,
6480
6319
  _ref11$borderSize = _ref11.borderSize,
6481
6320
  borderSize = _ref11$borderSize === void 0 ? 1 : _ref11$borderSize;
6321
+ var themeColors = useTheme();
6482
6322
  var safeId = useId();
6483
6323
  return React.createElement(Container, {
6484
6324
  "$gap": gap,
@@ -6505,7 +6345,7 @@ var CheckBox = function CheckBox(_ref11) {
6505
6345
  "$borderSize": borderSize
6506
6346
  })), label && React.createElement(LabelSpan, {
6507
6347
  "$fontSize": fontSize,
6508
- "$color": color,
6348
+ "$color": color || themeColors.text.medium,
6509
6349
  "$fontWeight": fontWeight,
6510
6350
  onClick: function onClick() {
6511
6351
  if (!disabled) _onChange(!checked);
@@ -6611,10 +6451,10 @@ var Loader = function Loader(_ref4) {
6611
6451
  var title = _ref4.title,
6612
6452
  _ref4$size = _ref4.size,
6613
6453
  size = _ref4$size === void 0 ? 32 : _ref4$size,
6614
- _ref4$color = _ref4.color,
6615
- color = _ref4$color === void 0 ? colorVariables["default"].primary : _ref4$color,
6454
+ color = _ref4.color,
6616
6455
  titleColor = _ref4.titleColor,
6617
6456
  titleSize = _ref4.titleSize;
6457
+ var themeColors = useTheme();
6618
6458
  return React.createElement(Container, {
6619
6459
  "$alignItems": 'center',
6620
6460
  "$justifyContent": 'center',
@@ -6624,7 +6464,7 @@ var Loader = function Loader(_ref4) {
6624
6464
  "$gap": '12px'
6625
6465
  }, React.createElement(Container, null, React.createElement(Spinner$1, {
6626
6466
  "$size": size,
6627
- "$color": color
6467
+ "$color": color || themeColors["default"].primary
6628
6468
  })), title && React.createElement(Container, {
6629
6469
  "$flexDirection": 'column',
6630
6470
  "$gap": '12px'
@@ -6655,6 +6495,7 @@ var Pagination = function Pagination(_ref4) {
6655
6495
  itemsPerPage = _ref4.itemsPerPage,
6656
6496
  onPageChange = _ref4.onPageChange,
6657
6497
  onItemsPerPageChange = _ref4.onItemsPerPageChange;
6498
+ var themeColors = useTheme();
6658
6499
  var _useTranslation = useTranslation(),
6659
6500
  t = _useTranslation.t;
6660
6501
  var _useNotification = useNotification(),
@@ -6737,7 +6578,7 @@ var Pagination = function Pagination(_ref4) {
6737
6578
  padding: '7px',
6738
6579
  variant: 'secondary',
6739
6580
  borderRadius: '4px',
6740
- color: colorVariables.text.white
6581
+ color: themeColors.text.white
6741
6582
  }), React.createElement(ButtonComponent, {
6742
6583
  onClick: function onClick() {
6743
6584
  return handlePageChange(currentPage + 1);
@@ -6749,7 +6590,7 @@ var Pagination = function Pagination(_ref4) {
6749
6590
  padding: '7px',
6750
6591
  variant: 'secondary',
6751
6592
  borderRadius: '4px',
6752
- color: colorVariables.text.white
6593
+ color: themeColors.text.white
6753
6594
  }))), React.createElement(Container, {
6754
6595
  "$gap": '16px',
6755
6596
  "$justifyContent": 'center',
@@ -6788,12 +6629,11 @@ var CircularProgress = function CircularProgress(_ref) {
6788
6629
  var threshold = _ref.threshold,
6789
6630
  totalCapacity = _ref.totalCapacity,
6790
6631
  usedCapacity = _ref.usedCapacity,
6791
- _ref$progressColor = _ref.progressColor,
6792
- progressColor = _ref$progressColor === void 0 ? colorVariables["default"].primary : _ref$progressColor,
6632
+ progressColor = _ref.progressColor,
6793
6633
  _ref$thresholdColor = _ref.thresholdColor,
6794
6634
  thresholdColor = _ref$thresholdColor === void 0 ? 'rgba(255, 0, 0, 0.2)' : _ref$thresholdColor,
6795
- _ref$trackColor = _ref.trackColor,
6796
- trackColor = _ref$trackColor === void 0 ? colorVariables.accent.softBlue : _ref$trackColor;
6635
+ trackColor = _ref.trackColor;
6636
+ var themeColors = useTheme();
6797
6637
  var radius = (viewBoxSize - strokeWidth) / 2;
6798
6638
  var circumference = 2 * Math.PI * radius;
6799
6639
  var parseVolumeData = function parseVolumeData(threshold, totalCapacity, usedCapacity) {
@@ -6823,7 +6663,7 @@ var CircularProgress = function CircularProgress(_ref) {
6823
6663
  cx: viewBoxSize / 2,
6824
6664
  cy: viewBoxSize / 2,
6825
6665
  r: radius,
6826
- stroke: trackColor,
6666
+ stroke: trackColor || themeColors.accent.softBlue,
6827
6667
  strokeWidth: strokeWidth,
6828
6668
  fill: 'none'
6829
6669
  }), processedThreshold > progress && React.createElement("circle", {
@@ -6841,7 +6681,7 @@ var CircularProgress = function CircularProgress(_ref) {
6841
6681
  cx: viewBoxSize / 2,
6842
6682
  cy: viewBoxSize / 2,
6843
6683
  r: radius,
6844
- stroke: progressColor,
6684
+ stroke: progressColor || themeColors["default"].primary,
6845
6685
  strokeWidth: strokeWidth,
6846
6686
  fill: 'none',
6847
6687
  strokeDasharray: circumference,
@@ -6852,7 +6692,7 @@ var CircularProgress = function CircularProgress(_ref) {
6852
6692
  "$position": 'absolute',
6853
6693
  "$fontSize": '12px',
6854
6694
  "$fontWeight": '500',
6855
- "$color": progressColor
6695
+ "$color": progressColor || themeColors["default"].primary
6856
6696
  }, progress + "%"));
6857
6697
  };
6858
6698
 
@@ -6863,6 +6703,7 @@ var ProgressBar = function ProgressBar(_ref) {
6863
6703
  progressColor = _ref.progressColor,
6864
6704
  thresholdColor = _ref.thresholdColor,
6865
6705
  trackColor = _ref.trackColor;
6706
+ var themeColors = useTheme();
6866
6707
  var parseVolumeData = function parseVolumeData(threshold, totalCapacity, usedCapacity) {
6867
6708
  var totalCapacityGB = totalCapacity;
6868
6709
  var usedCapacityGB = usedCapacity;
@@ -6881,13 +6722,13 @@ var ProgressBar = function ProgressBar(_ref) {
6881
6722
  "$width": '100%',
6882
6723
  "$height": '100%',
6883
6724
  "$borderRadius": '100px',
6884
- "$background": trackColor != null ? trackColor : colorVariables.accent.softBlue,
6725
+ "$background": trackColor != null ? trackColor : themeColors.accent.softBlue,
6885
6726
  "$overflow": 'hidden',
6886
6727
  "$position": 'relative'
6887
6728
  }, React.createElement(Container, {
6888
6729
  "$width": progress + "%",
6889
6730
  "$height": '100%',
6890
- "$background": progressColor != null ? progressColor : colorVariables["default"].primary,
6731
+ "$background": progressColor != null ? progressColor : themeColors["default"].primary,
6891
6732
  "$transition": 'width 0.5s ease-in-out'
6892
6733
  }), Processed_threshold !== undefined && Processed_threshold > progress && React.createElement(Container, {
6893
6734
  "$width": thresholdWidth + "%",
@@ -7220,6 +7061,7 @@ var Table = function Table(_ref6) {
7220
7061
  loading = _ref6.loading,
7221
7062
  _ref6$noDataText = _ref6.noDataText,
7222
7063
  noDataText = _ref6$noDataText === void 0 ? 'No Data Found!' : _ref6$noDataText;
7064
+ var themeColors = useTheme();
7223
7065
  var rowconfig = tableObject.rowconfig,
7224
7066
  tableheaderconfig = tableObject.tableheaderconfig;
7225
7067
  var _useState = useState(new Set()),
@@ -7340,14 +7182,14 @@ var Table = function Table(_ref6) {
7340
7182
  "$padding": '9px 12px',
7341
7183
  "$minHeight": '30px',
7342
7184
  "$alignItems": 'center',
7343
- "$background": colorVariables.accent.light_1,
7185
+ "$background": themeColors.accent.light_1,
7344
7186
  onClick: function onClick() {
7345
7187
  return toggleRoleVisibility(role);
7346
7188
  },
7347
7189
  "$cursor": 'pointer',
7348
- "$border": "1px solid " + colorVariables.border.extraLight
7190
+ "$border": "1px solid " + themeColors.border.extraLight
7349
7191
  }, React.createElement(Span, {
7350
- "$color": colorVariables.text.medium,
7192
+ "$color": themeColors.text.medium,
7351
7193
  "$fontSize": '12px',
7352
7194
  "$lineHeight": '100%'
7353
7195
  }, role, " (", rows.length, ")"), React.createElement(Icon, {
@@ -7441,6 +7283,7 @@ var Tabs = function Tabs(_ref14) {
7441
7283
  overflow = _ref14.overflow,
7442
7284
  bordeBottom = _ref14.bordeBottom,
7443
7285
  tabRightNode = _ref14.tabRightNode;
7286
+ var themeColors = useTheme();
7444
7287
  return React.createElement(Container$4, {
7445
7288
  "$gap": gap,
7446
7289
  "$border": border,
@@ -7460,7 +7303,7 @@ var Tabs = function Tabs(_ref14) {
7460
7303
  "$active": activeTab === tab.title,
7461
7304
  "$headerHeight": headerHeight
7462
7305
  }, tab.icon && React.createElement(Icon, {
7463
- color: activeTab === tab.title ? tab.activeColor : colorVariables.text.medium,
7306
+ color: activeTab === tab.title ? tab.activeColor : themeColors.text.medium,
7464
7307
  icon: tab.icon,
7465
7308
  size: tab.iconSize,
7466
7309
  weight: tab.iconWeight
@@ -7478,16 +7321,14 @@ var Tabs = function Tabs(_ref14) {
7478
7321
  var InternalTabs = function InternalTabs(_ref) {
7479
7322
  var tabs = _ref.tabs,
7480
7323
  activeTab = _ref.activeTab,
7481
- _ref$backgroundColor = _ref.backgroundColor,
7482
- backgroundColor = _ref$backgroundColor === void 0 ? colorVariables.text.white : _ref$backgroundColor,
7483
- _ref$activeTabBg = _ref.activeTabBg,
7484
- activeTabBg = _ref$activeTabBg === void 0 ? colorVariables.accent.softBlue : _ref$activeTabBg,
7485
- _ref$textColor = _ref.textColor,
7486
- textColor = _ref$textColor === void 0 ? colorVariables["default"].primary : _ref$textColor,
7324
+ backgroundColor = _ref.backgroundColor,
7325
+ activeTabBg = _ref.activeTabBg,
7326
+ textColor = _ref.textColor,
7487
7327
  _ref$disabled = _ref.disabled,
7488
7328
  disabled = _ref$disabled === void 0 ? false : _ref$disabled;
7329
+ var themeColors = useTheme();
7489
7330
  return React.createElement(Container, {
7490
- "$background": backgroundColor,
7331
+ "$background": backgroundColor || themeColors.text.white,
7491
7332
  "$padding": '3px',
7492
7333
  "$borderRadius": '4px',
7493
7334
  "$justifyContent": 'space-between',
@@ -7501,14 +7342,14 @@ var InternalTabs = function InternalTabs(_ref) {
7501
7342
  "$alignItems": 'center',
7502
7343
  "$cursor": disabled ? 'not-allowed' : 'pointer',
7503
7344
  onClick: disabled ? undefined : tab.onClick,
7504
- "$background": activeTab === tab.value ? activeTabBg : colorVariables["default"].tertiary,
7505
- "$color": activeTab === tab.value ? textColor : colorVariables.text.medium
7345
+ "$background": activeTab === tab.value ? activeTabBg || themeColors.accent.softBlue : themeColors["default"].tertiary,
7346
+ "$color": activeTab === tab.value ? textColor || themeColors["default"].primary : themeColors.text.medium
7506
7347
  }, React.createElement(Span, {
7507
7348
  "$fontSize": '14px',
7508
- "$color": activeTab === tab.value ? textColor : colorVariables.text.medium
7349
+ "$color": activeTab === tab.value ? textColor || themeColors["default"].primary : themeColors.text.medium
7509
7350
  }, tab.title));
7510
7351
  }));
7511
7352
  };
7512
7353
 
7513
- 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 };
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 };
7514
7355
  //# sourceMappingURL=index.modern.js.map