labsense-ui-kit 1.1.84 → 1.1.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,9 +4,9 @@ var React = require('react');
4
4
  var React__default = _interopDefault(React);
5
5
  var styled = require('styled-components');
6
6
  var styled__default = _interopDefault(styled);
7
+ var reactHotToast = require('react-hot-toast');
7
8
  var reactRouterDom = require('react-router-dom');
8
9
  var reactI18next = require('react-i18next');
9
- var reactHotToast = require('react-hot-toast');
10
10
 
11
11
  function _extends() {
12
12
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -21,165 +21,6 @@ function _taggedTemplateLiteralLoose(e, t) {
21
21
  return t || (t = e.slice(0)), e.raw = t, e;
22
22
  }
23
23
 
24
- var light = {
25
- brand: {
26
- primary: '#4C9EEB',
27
- secondary: '#14171A',
28
- light: '#FFFFFF'
29
- },
30
- accent: {
31
- light_1: '#E1E8ED',
32
- light_2: '#F5F8FA',
33
- light_3: '#F0F3F5',
34
- light_4: '#ECF0F4',
35
- light_5: '#F0F0F3',
36
- softBlue: '#D4EEFF',
37
- extraSoftBlue: '#E4F4FF',
38
- boldTransparent: '#5E5E5E80',
39
- transparent: '#5E5E5E4D',
40
- lightTransparent: '#5E5E5E23'
41
- },
42
- "default": {
43
- primary: '#78B6F0',
44
- secondary: '#C2C2C2',
45
- tertiary: 'transparent',
46
- error: '#F44336',
47
- success: '#4CAF50',
48
- warning: '#FF9800',
49
- info: '#2159F3'
50
- },
51
- disabled: {
52
- primary: '#B9DCF7',
53
- secondary: '#DADADA',
54
- error: '#FFEBEE',
55
- success: '#E8F5E9',
56
- warning: '#FFF3E0',
57
- info: '#E3F2FD'
58
- },
59
- hover: {
60
- primary: '#4C9EEB',
61
- secondary: '#A3A3A3',
62
- tertiary: 'transparent',
63
- error: '#D32F2F',
64
- success: '#388E3C',
65
- warning: '#F57C00',
66
- info: '#193ED2'
67
- },
68
- border: {
69
- extraBold: '#657786',
70
- bold: '#BFBFBF',
71
- medium: '#CBCED0',
72
- light: '#DCDCDC',
73
- extraLight: '#E6E3E3'
74
- },
75
- text: {
76
- dark: '#14171A',
77
- medium: '#657786',
78
- light: '#98A2AA',
79
- white: '#FFFFFF',
80
- success: '#1B5E20',
81
- error: '#B71C1C',
82
- info: '#0D30A1',
83
- warning: '#E65100'
84
- },
85
- badge: {
86
- lavender: '#E8DAFF',
87
- papayaWhip: '#FFEDD5',
88
- water: '#C7E3FF',
89
- paleBlue: '#B0F0E4',
90
- teaGreen: '#D5F7C2',
91
- lightBlue: '#ADD8E6'
92
- }
93
- };
94
- var dark = {
95
- brand: {
96
- primary: '#4C9EEB',
97
- secondary: '#E1E8ED',
98
- light: '#1A1A1A'
99
- },
100
- accent: {
101
- light_1: '#2A2E33',
102
- light_2: '#1F2327',
103
- light_3: '#F0F3F5',
104
- light_4: '#ECF0F4',
105
- light_5: '#F0F0F3',
106
- softBlue: '#2C3E50',
107
- extraSoftBlue: '#34495E',
108
- boldTransparent: '#D3D3D380',
109
- transparent: '#D3D3D34D',
110
- lightTransparent: '#D3D3D323'
111
- },
112
- "default": {
113
- primary: '#78B6F0',
114
- secondary: '#4F4F4F',
115
- tertiary: 'transparent',
116
- error: '#EF5350',
117
- success: '#66BB6A',
118
- warning: '#FFB74D',
119
- info: '#42A5F5'
120
- },
121
- disabled: {
122
- primary: '#3B4A58',
123
- secondary: '#3E3E3E',
124
- error: '#5B1B1B',
125
- success: '#1B3C1B',
126
- warning: '#5A3C1B',
127
- info: '#1A3C5A'
128
- },
129
- hover: {
130
- primary: '#5CA6F0',
131
- secondary: '#7A7A7A',
132
- tertiary: 'transparent',
133
- error: '#D32F2F',
134
- success: '#388E3C',
135
- warning: '#F57C00',
136
- info: '#1976D2'
137
- },
138
- border: {
139
- extraBold: '#8899A6',
140
- bold: '#5E5E5E',
141
- medium: '#4A4A4A',
142
- light: '#3A3A3A',
143
- extraLight: '#2B2B2B'
144
- },
145
- text: {
146
- dark: '#FFFFFF',
147
- medium: '#AAB8C2',
148
- light: '#8899A6',
149
- white: '#FFFFFF',
150
- success: '#81C784',
151
- error: '#E57373',
152
- info: '#64B5F6',
153
- warning: '#FFB74D'
154
- },
155
- badge: {
156
- lavender: '#7B5FA1',
157
- papayaWhip: '#A46A3E',
158
- water: '#5CA6F0',
159
- paleBlue: '#4BC9BC',
160
- teaGreen: '#7FBF7F',
161
- lightBlue: '#5DADE2'
162
- }
163
- };
164
- var getCurrentTheme = function getCurrentTheme() {
165
- if (typeof document !== 'undefined') {
166
- var isDarkClass = document.documentElement.classList.contains('dark');
167
- return isDarkClass ? 'dark' : 'light';
168
- }
169
- return 'light';
170
- };
171
- var colorVariables = new Proxy({}, {
172
- get: function get(_, prop) {
173
- var currentThemeName = getCurrentTheme();
174
- var currentTheme = themes[currentThemeName];
175
- return currentTheme[prop];
176
- }
177
- });
178
- var themes = {
179
- light: light,
180
- dark: dark
181
- };
182
-
183
24
  var Add = function Add(_ref) {
184
25
  var size = _ref.size,
185
26
  color = _ref.color,
@@ -3301,167 +3142,59 @@ var Zapper = function Zapper(_ref) {
3301
3142
  }));
3302
3143
  };
3303
3144
 
3304
- var _templateObject, _templateObject2, _templateObject3;
3305
- var wrapperCss = styled.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"])));
3306
- var IconWrapper = styled__default.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) {
3307
- var $clickable = _ref.$clickable;
3308
- return $clickable ? 'pointer' : 'default';
3309
- }, wrapperCss);
3310
- var IconWrapperForSVG = styled__default.g(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), wrapperCss);
3311
- var IconSVGs = {
3312
- Add_1: Add,
3313
- Add_2: Add_2,
3314
- AddProfile: AddProfile,
3315
- App: App,
3316
- AI_Web: AI_Web,
3317
- Back: Back,
3318
- Bin: Bin,
3319
- Bulb: Bulb,
3320
- Business: Business,
3321
- Calendar: Calendar,
3322
- CCTV_1: CCTV_1,
3323
- CCTV_2: CCTV_2,
3324
- Circle: Circle,
3325
- CircularEdit: CircularEdit,
3326
- CircularFilledWarning: CircularFilledWarning,
3327
- CircularPause: CircularPause,
3328
- CircularPlay: CircularPlay,
3329
- CircularWarning: CircularWarning,
3330
- Client: Client,
3331
- Close: Close,
3332
- CloseCircle: CloseCircle,
3333
- CloseEye: CloseEye,
3334
- Copy: Copy,
3335
- CPU: CPU,
3336
- Cube3D: Cube3D,
3337
- Cyber: Cyber,
3338
- DiagonalArrow: DiagonalArrow,
3339
- Directory: Directory,
3340
- Disk: Disk,
3341
- DocumentBadge: DocumentBadge,
3342
- DownArrow: DownArrow,
3343
- Download: Download,
3344
- Email: Email,
3345
- ExitFullScreen: ExitFullScreen,
3346
- FaceRecognition: FaceRecognition,
3347
- FilesBox: FilesBox,
3348
- FilledCircle: FilledCircle,
3349
- FilledCircleTick: FilledCircleTick,
3350
- FilledPin: FilledPin,
3351
- Filter_1: Filter_1,
3352
- Filter_2: Filter_2,
3353
- Forward_10_Sec: Forward_10_Sec,
3354
- Forward: Forward,
3355
- FPS: FPS,
3356
- Free: Free,
3357
- FullScreen: FullScreen,
3358
- FullVolume: FullVolume,
3359
- Grid_2x2_Hollow: Grid_2x2_Hollow,
3360
- Grid_2x2: Grid_2x2,
3361
- Grid_3x3: Grid_3x3,
3362
- Grid_4x4: Grid_4x4,
3363
- Grid_5x5: Grid_5x5,
3364
- Hazard: Hazard,
3365
- History: History,
3366
- Hexagon: Hexagon,
3367
- Information: Information,
3368
- InformationFilled: InformationFilled,
3369
- IP: IP,
3370
- Key: Key,
3371
- KeyDown: KeyDown,
3372
- KnobController: KnobController,
3373
- LedBulb: LedBulb,
3374
- LeftArrow: LeftArrow,
3375
- Letter: Letter,
3376
- Live: Live,
3377
- Lock: Lock,
3378
- Logout: Logout,
3379
- Maps: Maps,
3380
- Media: Media,
3381
- MediumVolume: MediumVolume,
3382
- Mute: Mute,
3383
- MuteVolume: MuteVolume,
3384
- Menu: Menu,
3385
- Monitor: Monitor,
3386
- MultiMonitor: MultiMonitor,
3387
- NetworkStorage: NetworkStorage,
3388
- NFS_Directory: NFS_Directory,
3389
- NoCam: NoCam,
3390
- Node: Node,
3391
- NoStorage: NoStorage,
3392
- Notifications: Notifications,
3393
- OpenBin: OpenBin,
3394
- OpenEye: OpenEye,
3395
- PasswordLock: PasswordLock,
3396
- Pause: Pause,
3397
- Phone: Phone,
3398
- Pin_2: Pin_2,
3399
- Pin: Pin,
3400
- Play_1: Play,
3401
- Play_2: Play_2,
3402
- Playback: Playback,
3403
- Power: Power,
3404
- PremiumBadge: PremiumBadge,
3405
- ProcessingBulb: ProcessingBulb,
3406
- Profile_1: Profile_1,
3407
- Profile_2: Profile_2,
3408
- Profile_3: Profile_3,
3409
- Recording_1: Recording_1,
3410
- Recording_2: KnobController$1,
3411
- Rectangle: Rectangle,
3412
- Retry: Retry,
3413
- Return: Return,
3414
- Rewind_10_Sec: Rewind_10_Sec,
3415
- Rhombus: Rhombus,
3416
- RightArrow: RightArrow,
3417
- ROI: ROI,
3418
- RunAway: RunAway,
3419
- SandTimer: SandTimer,
3420
- Search: Search,
3421
- Settings: Settings,
3422
- Shield: Shield,
3423
- SlantLine: SlantLine,
3424
- SquareEdit: SquareEdit,
3425
- SquareTick: SquareTick,
3426
- StorageDisks: StorageDisks,
3427
- Tag: Tag,
3428
- Team: Team,
3429
- ThreeDots: ThreeDots,
3430
- ThumbsUp: ThumbsUp,
3431
- Tick: Tick,
3432
- Tools: Tools,
3433
- TriangularFilledWarning: TriangularFilledWarning,
3434
- UnPinned: UnPinned,
3435
- UpArrow: UpArrow,
3436
- Video: Video,
3437
- Wallet: Wallet,
3438
- Web: Web,
3439
- WiFiCam: WiFiCam,
3440
- WiFiLaptop: WiFiLaptop,
3441
- Zapper: Zapper
3145
+ var useClickOutside = function useClickOutside(elRef, elCallback) {
3146
+ var callbackRef = React.useRef(elCallback);
3147
+ callbackRef.current = elCallback;
3148
+ React.useEffect(function () {
3149
+ var handleClickOutside = function handleClickOutside(eve) {
3150
+ var _elRef$current;
3151
+ if (!(elRef !== null && elRef !== void 0 && (_elRef$current = elRef.current) !== null && _elRef$current !== void 0 && _elRef$current.contains(eve.target))) {
3152
+ callbackRef.current(eve);
3153
+ }
3154
+ };
3155
+ document.addEventListener('click', handleClickOutside, true);
3156
+ return function () {
3157
+ document.removeEventListener('click', handleClickOutside, true);
3158
+ };
3159
+ }, [elCallback, elRef]);
3442
3160
  };
3443
- var Icon = function Icon(_ref2) {
3444
- var icon = _ref2.icon,
3445
- _ref2$color = _ref2.color,
3446
- color = _ref2$color === void 0 ? colorVariables.text.medium : _ref2$color,
3447
- _ref2$weight = _ref2.weight,
3448
- weight = _ref2$weight === void 0 ? '2px' : _ref2$weight,
3449
- _ref2$size = _ref2.size,
3450
- size = _ref2$size === void 0 ? 24 : _ref2$size,
3451
- onClick = _ref2.onClick;
3452
- var IconSVG = IconSVGs[icon];
3453
- if (!IconSVG) {
3454
- console.warn("Icon '" + icon + "' not found");
3455
- return null;
3456
- }
3457
- return React__default.createElement(IconWrapper, {
3458
- onClick: onClick,
3459
- "$clickable": !!onClick
3460
- }, React__default.createElement(IconSVG, {
3461
- size: size,
3462
- color: color,
3463
- weight: weight
3464
- }));
3161
+
3162
+ var _templateObject, _templateObject2;
3163
+ var ModalOverlay = styled__default.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"])));
3164
+ var ModalContainer = styled__default.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) {
3165
+ var theme = _ref.theme;
3166
+ return theme.accent.light_1;
3167
+ }, function (_ref2) {
3168
+ var $maxWidth = _ref2.$maxWidth;
3169
+ return $maxWidth ? $maxWidth : '400px';
3170
+ });
3171
+ var Modal = function Modal(_ref3) {
3172
+ var isOpen = _ref3.isOpen,
3173
+ maxWidth = _ref3.maxWidth,
3174
+ children = _ref3.children;
3175
+ if (!isOpen) return null;
3176
+ return React__default.createElement(ModalOverlay, null, React__default.createElement(ModalContainer, {
3177
+ "$maxWidth": maxWidth,
3178
+ onClick: function onClick(e) {
3179
+ return e.stopPropagation();
3180
+ }
3181
+ }, children));
3182
+ };
3183
+ var useCustomModal = function useCustomModal(_ref4) {
3184
+ var maxWidth = _ref4.maxWidth;
3185
+ var _useState = React.useState(false),
3186
+ isOpen = _useState[0],
3187
+ setIsOpen = _useState[1];
3188
+ var createModal = function createModal(content) {
3189
+ return React__default.createElement(Modal, {
3190
+ isOpen: isOpen,
3191
+ maxWidth: maxWidth
3192
+ }, content);
3193
+ };
3194
+ return {
3195
+ setIsOpen: setIsOpen,
3196
+ createModal: createModal
3197
+ };
3465
3198
  };
3466
3199
 
3467
3200
  var _templateObject$1, _templateObject2$1;
@@ -3634,9 +3367,254 @@ var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _tag
3634
3367
  return $overflowWrap;
3635
3368
  });
3636
3369
 
3637
- var _templateObject$2, _templateObject2$2;
3638
- var TooltipWrapper = styled__default.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n svg {\n cursor: pointer;\n }\n"])));
3639
- var TooltipText = styled__default.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) {
3370
+ var useTheme = function useTheme() {
3371
+ return styled.useTheme();
3372
+ };
3373
+
3374
+ var useNotification = function useNotification() {
3375
+ var themeColors = useTheme();
3376
+ var sendNotification = function sendNotification(_ref) {
3377
+ var type = _ref.type,
3378
+ message = _ref.message,
3379
+ promiseConfig = _ref.promiseConfig,
3380
+ customStyle = _ref.customStyle,
3381
+ _ref$clearCurrent = _ref.clearCurrent,
3382
+ clearCurrent = _ref$clearCurrent === void 0 ? false : _ref$clearCurrent;
3383
+ if (clearCurrent) {
3384
+ reactHotToast.toast.dismiss();
3385
+ }
3386
+ switch (type) {
3387
+ case 'success':
3388
+ reactHotToast.toast.success(message);
3389
+ break;
3390
+ case 'error':
3391
+ reactHotToast.toast.error(message);
3392
+ break;
3393
+ case 'info':
3394
+ reactHotToast.toast(message, {
3395
+ icon: React__default.createElement(Container, {
3396
+ "$minWidth": '20px',
3397
+ "$height": '20px',
3398
+ "$width": '20px',
3399
+ "$alignItems": 'center',
3400
+ "$justifyContent": 'center',
3401
+ "$borderRadius": '100%',
3402
+ "$background": themeColors.disabled.info
3403
+ }, React__default.createElement(Icon, {
3404
+ icon: 'InformationFilled',
3405
+ weight: '0px',
3406
+ size: 20,
3407
+ color: themeColors["default"].info
3408
+ })),
3409
+ style: {
3410
+ borderRadius: '8px',
3411
+ background: themeColors.text.white,
3412
+ color: '#363636',
3413
+ maxWidth: '648px'
3414
+ }
3415
+ });
3416
+ break;
3417
+ case 'promise':
3418
+ if (promiseConfig) {
3419
+ reactHotToast.toast.promise(promiseConfig.promise, {
3420
+ loading: promiseConfig.loading,
3421
+ success: promiseConfig.success,
3422
+ error: promiseConfig.error
3423
+ }, {
3424
+ style: {
3425
+ minWidth: '300px'
3426
+ }
3427
+ });
3428
+ }
3429
+ break;
3430
+ case 'custom':
3431
+ reactHotToast.toast(message, {
3432
+ icon: React__default.createElement(Icon, {
3433
+ icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
3434
+ size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
3435
+ weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
3436
+ }),
3437
+ style: {
3438
+ background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
3439
+ color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
3440
+ }
3441
+ });
3442
+ break;
3443
+ default:
3444
+ console.error('Invalid notification type or missing configuration!');
3445
+ }
3446
+ };
3447
+ return {
3448
+ sendNotification: sendNotification
3449
+ };
3450
+ };
3451
+
3452
+ var _templateObject$2, _templateObject2$2, _templateObject3;
3453
+ var wrapperCss = styled.css(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n svg {\n overflow: visible;\n vector-effect: non-scaling-stroke;\n line,\n path,\n circle,\n ellipse,\n foreignObject,\n polygon,\n polyline,\n rect,\n text,\n textPath,\n tspan {\n vector-effect: non-scaling-stroke;\n }\n }\n"])));
3454
+ var IconWrapper = styled__default.div(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n width: max-content;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n ", ";\n"])), function (_ref) {
3455
+ var $clickable = _ref.$clickable;
3456
+ return $clickable ? 'pointer' : 'default';
3457
+ }, wrapperCss);
3458
+ var IconWrapperForSVG = styled__default.g(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), wrapperCss);
3459
+ var IconSVGs = {
3460
+ Add_1: Add,
3461
+ Add_2: Add_2,
3462
+ AddProfile: AddProfile,
3463
+ App: App,
3464
+ AI_Web: AI_Web,
3465
+ Back: Back,
3466
+ Bin: Bin,
3467
+ Bulb: Bulb,
3468
+ Business: Business,
3469
+ Calendar: Calendar,
3470
+ CCTV_1: CCTV_1,
3471
+ CCTV_2: CCTV_2,
3472
+ Circle: Circle,
3473
+ CircularEdit: CircularEdit,
3474
+ CircularFilledWarning: CircularFilledWarning,
3475
+ CircularPause: CircularPause,
3476
+ CircularPlay: CircularPlay,
3477
+ CircularWarning: CircularWarning,
3478
+ Client: Client,
3479
+ Close: Close,
3480
+ CloseCircle: CloseCircle,
3481
+ CloseEye: CloseEye,
3482
+ Copy: Copy,
3483
+ CPU: CPU,
3484
+ Cube3D: Cube3D,
3485
+ Cyber: Cyber,
3486
+ DiagonalArrow: DiagonalArrow,
3487
+ Directory: Directory,
3488
+ Disk: Disk,
3489
+ DocumentBadge: DocumentBadge,
3490
+ DownArrow: DownArrow,
3491
+ Download: Download,
3492
+ Email: Email,
3493
+ ExitFullScreen: ExitFullScreen,
3494
+ FaceRecognition: FaceRecognition,
3495
+ FilesBox: FilesBox,
3496
+ FilledCircle: FilledCircle,
3497
+ FilledCircleTick: FilledCircleTick,
3498
+ FilledPin: FilledPin,
3499
+ Filter_1: Filter_1,
3500
+ Filter_2: Filter_2,
3501
+ Forward_10_Sec: Forward_10_Sec,
3502
+ Forward: Forward,
3503
+ FPS: FPS,
3504
+ Free: Free,
3505
+ FullScreen: FullScreen,
3506
+ FullVolume: FullVolume,
3507
+ Grid_2x2_Hollow: Grid_2x2_Hollow,
3508
+ Grid_2x2: Grid_2x2,
3509
+ Grid_3x3: Grid_3x3,
3510
+ Grid_4x4: Grid_4x4,
3511
+ Grid_5x5: Grid_5x5,
3512
+ Hazard: Hazard,
3513
+ History: History,
3514
+ Hexagon: Hexagon,
3515
+ Information: Information,
3516
+ InformationFilled: InformationFilled,
3517
+ IP: IP,
3518
+ Key: Key,
3519
+ KeyDown: KeyDown,
3520
+ KnobController: KnobController,
3521
+ LedBulb: LedBulb,
3522
+ LeftArrow: LeftArrow,
3523
+ Letter: Letter,
3524
+ Live: Live,
3525
+ Lock: Lock,
3526
+ Logout: Logout,
3527
+ Maps: Maps,
3528
+ Media: Media,
3529
+ MediumVolume: MediumVolume,
3530
+ Mute: Mute,
3531
+ MuteVolume: MuteVolume,
3532
+ Menu: Menu,
3533
+ Monitor: Monitor,
3534
+ MultiMonitor: MultiMonitor,
3535
+ NetworkStorage: NetworkStorage,
3536
+ NFS_Directory: NFS_Directory,
3537
+ NoCam: NoCam,
3538
+ Node: Node,
3539
+ NoStorage: NoStorage,
3540
+ Notifications: Notifications,
3541
+ OpenBin: OpenBin,
3542
+ OpenEye: OpenEye,
3543
+ PasswordLock: PasswordLock,
3544
+ Pause: Pause,
3545
+ Phone: Phone,
3546
+ Pin_2: Pin_2,
3547
+ Pin: Pin,
3548
+ Play_1: Play,
3549
+ Play_2: Play_2,
3550
+ Playback: Playback,
3551
+ Power: Power,
3552
+ PremiumBadge: PremiumBadge,
3553
+ ProcessingBulb: ProcessingBulb,
3554
+ Profile_1: Profile_1,
3555
+ Profile_2: Profile_2,
3556
+ Profile_3: Profile_3,
3557
+ Recording_1: Recording_1,
3558
+ Recording_2: KnobController$1,
3559
+ Rectangle: Rectangle,
3560
+ Retry: Retry,
3561
+ Return: Return,
3562
+ Rewind_10_Sec: Rewind_10_Sec,
3563
+ Rhombus: Rhombus,
3564
+ RightArrow: RightArrow,
3565
+ ROI: ROI,
3566
+ RunAway: RunAway,
3567
+ SandTimer: SandTimer,
3568
+ Search: Search,
3569
+ Settings: Settings,
3570
+ Shield: Shield,
3571
+ SlantLine: SlantLine,
3572
+ SquareEdit: SquareEdit,
3573
+ SquareTick: SquareTick,
3574
+ StorageDisks: StorageDisks,
3575
+ Tag: Tag,
3576
+ Team: Team,
3577
+ ThreeDots: ThreeDots,
3578
+ ThumbsUp: ThumbsUp,
3579
+ Tick: Tick,
3580
+ Tools: Tools,
3581
+ TriangularFilledWarning: TriangularFilledWarning,
3582
+ UnPinned: UnPinned,
3583
+ UpArrow: UpArrow,
3584
+ Video: Video,
3585
+ Wallet: Wallet,
3586
+ Web: Web,
3587
+ WiFiCam: WiFiCam,
3588
+ WiFiLaptop: WiFiLaptop,
3589
+ Zapper: Zapper
3590
+ };
3591
+ var Icon = function Icon(_ref2) {
3592
+ var icon = _ref2.icon,
3593
+ color = _ref2.color,
3594
+ _ref2$weight = _ref2.weight,
3595
+ weight = _ref2$weight === void 0 ? '2px' : _ref2$weight,
3596
+ _ref2$size = _ref2.size,
3597
+ size = _ref2$size === void 0 ? 24 : _ref2$size,
3598
+ onClick = _ref2.onClick;
3599
+ var themeColors = useTheme();
3600
+ var IconSVG = IconSVGs[icon];
3601
+ if (!IconSVG) {
3602
+ console.warn("Icon '" + icon + "' not found");
3603
+ return null;
3604
+ }
3605
+ return React__default.createElement(IconWrapper, {
3606
+ onClick: onClick,
3607
+ "$clickable": !!onClick
3608
+ }, React__default.createElement(IconSVG, {
3609
+ size: size,
3610
+ color: color || themeColors.text.medium,
3611
+ weight: weight
3612
+ }));
3613
+ };
3614
+
3615
+ var _templateObject$3, _templateObject2$3;
3616
+ var TooltipWrapper = styled__default.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n svg {\n cursor: pointer;\n }\n"])));
3617
+ var TooltipText = styled__default.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) {
3640
3618
  var $visible = _ref.$visible;
3641
3619
  return $visible ? 'visible' : 'hidden';
3642
3620
  }, function (_ref2) {
@@ -3674,11 +3652,11 @@ var Badge = function Badge(_ref8) {
3674
3652
  icon = _ref8$icon === void 0 ? {
3675
3653
  icon: 'Information',
3676
3654
  size: 10,
3677
- weight: '0.1px',
3678
- color: colorVariables.text.medium
3655
+ weight: '0.1px'
3679
3656
  } : _ref8$icon,
3680
3657
  tooltipText = _ref8.tooltipText,
3681
3658
  tooltipCSS = _ref8.tooltipCSS;
3659
+ var themeColors = useTheme();
3682
3660
  var _useState = React.useState(false),
3683
3661
  showTooltip = _useState[0],
3684
3662
  setShowTooltip = _useState[1];
@@ -3752,7 +3730,7 @@ var Badge = function Badge(_ref8) {
3752
3730
  icon: icon.icon,
3753
3731
  size: icon.size,
3754
3732
  weight: icon.weight,
3755
- color: icon.color
3733
+ color: icon.color || themeColors.text.medium
3756
3734
  }), React__default.createElement(TooltipText, {
3757
3735
  "$bgColor": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.background,
3758
3736
  "$visible": showTooltip,
@@ -3769,8 +3747,8 @@ var Badge = function Badge(_ref8) {
3769
3747
  }, text));
3770
3748
  };
3771
3749
 
3772
- var _templateObject$3, _templateObject2$3, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
3773
- var TooltipContainer = styled__default.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) {
3750
+ var _templateObject$4, _templateObject2$4, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
3751
+ var TooltipContainer = styled__default.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) {
3774
3752
  var $borderRadius = _ref.$borderRadius;
3775
3753
  return $borderRadius != null ? $borderRadius : '4px';
3776
3754
  }, function (_ref2) {
@@ -3794,7 +3772,7 @@ var TooltipContainer = styled__default.div(_templateObject$3 || (_templateObject
3794
3772
  $iconSize = _ref7.$iconSize,
3795
3773
  $tooltipTop = _ref7.$tooltipTop;
3796
3774
  var vertical = $tooltipPosition.startsWith('top') ? "bottom: " + ($tooltipTop != null ? $tooltipTop : "calc(50% + " + ($iconSize + 2) + "px)") + ";" : "top: " + ($tooltipTop != null ? $tooltipTop : "calc(50% + " + ($iconSize + 2) + "px)") + ";";
3797
- var horizontal = $tooltipPosition.endsWith('Left') ? styled.css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["left: calc(100% + 10px); transform: translateX(-99%);"]))) : $tooltipPosition.endsWith('Center') ? styled.css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["left: 50%; transform: translateX(-50%);"]))) : styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["right: calc(100% + 10px); transform: translateX(99%);"])));
3775
+ var horizontal = $tooltipPosition.endsWith('Left') ? styled.css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["left: calc(100% + 10px); transform: translateX(-99%);"]))) : $tooltipPosition.endsWith('Center') ? styled.css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["left: 50%; transform: translateX(-50%);"]))) : styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["right: calc(100% + 10px); transform: translateX(99%);"])));
3798
3776
  return styled.css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["", " ", ";"])), vertical, horizontal);
3799
3777
  }, function (_ref8) {
3800
3778
  var $background = _ref8.$background,
@@ -3815,19 +3793,18 @@ var IconTooltip = function IconTooltip(_ref10) {
3815
3793
  icon = _ref10$icon === void 0 ? {
3816
3794
  icon: 'Information',
3817
3795
  size: 12,
3818
- weight: '0px',
3819
- color: colorVariables.text.medium
3796
+ weight: '0px'
3820
3797
  } : _ref10$icon,
3821
3798
  infoIcon = _ref10.infoIcon,
3822
3799
  infoText = _ref10.infoText,
3823
3800
  _ref10$tooltipCSS = _ref10.tooltipCSS,
3824
3801
  tooltipCSS = _ref10$tooltipCSS === void 0 ? {
3825
- background: colorVariables.accent.light_1,
3826
3802
  gap: '4px',
3827
3803
  minWidth: 'max-content',
3828
3804
  position: 'bottomCenter',
3829
3805
  tooltipTop: undefined
3830
3806
  } : _ref10$tooltipCSS;
3807
+ var themeColors = useTheme();
3831
3808
  return React__default.createElement(TooltipWrapper$1, null, React__default.createElement(Icon, Object.assign({}, icon, {
3832
3809
  onClick: function onClick() {}
3833
3810
  })), React__default.createElement(TooltipContainer, {
@@ -3835,7 +3812,7 @@ var IconTooltip = function IconTooltip(_ref10) {
3835
3812
  "$minWidth": tooltipCSS.minWidth,
3836
3813
  "$maxWidth": tooltipCSS.maxWidth,
3837
3814
  "$tooltipTop": tooltipCSS.tooltipTop,
3838
- "$background": tooltipCSS.background,
3815
+ "$background": tooltipCSS.background || themeColors.accent.light_1,
3839
3816
  "$gap": tooltipCSS.gap,
3840
3817
  "$iconSize": icon.size || 17,
3841
3818
  "$border": tooltipCSS.border,
@@ -3843,8 +3820,8 @@ var IconTooltip = function IconTooltip(_ref10) {
3843
3820
  }, infoIcon && React__default.createElement(Icon, Object.assign({}, infoIcon)), infoText));
3844
3821
  };
3845
3822
 
3846
- var _templateObject$4;
3847
- var BreadCrum = styled__default.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) {
3823
+ var _templateObject$5;
3824
+ var BreadCrum = styled__default.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) {
3848
3825
  var $color = _ref.$color,
3849
3826
  theme = _ref.theme;
3850
3827
  return $color ? $color : theme.text.medium;
@@ -3872,6 +3849,7 @@ var Breadcrumbs = function Breadcrumbs(_ref6) {
3872
3849
  disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
3873
3850
  breadcrumbs = _ref6.breadcrumbs,
3874
3851
  onBackClick = _ref6.onBackClick;
3852
+ var themeColors = useTheme();
3875
3853
  var navigate = reactRouterDom.useNavigate();
3876
3854
  var _useState = React.useState(false),
3877
3855
  hovered = _useState[0],
@@ -3900,29 +3878,29 @@ var Breadcrumbs = function Breadcrumbs(_ref6) {
3900
3878
  }, React__default.createElement(Icon, {
3901
3879
  icon: 'RightArrow',
3902
3880
  size: 5,
3903
- color: colorVariables.text.medium
3881
+ color: themeColors.text.medium
3904
3882
  })), React__default.createElement(BreadCrum, {
3905
3883
  onClick: function onClick() {
3906
3884
  if (breadcrumb.navigateLink) navigate(breadcrumb.navigateLink);
3907
3885
  },
3908
3886
  "$hover": breadcrumb.navigateLink ? true : false,
3909
3887
  "$disabled": disabled,
3910
- "$color": breadcrumb.navigateLink ? colorVariables.text.dark : colorVariables.text.medium
3888
+ "$color": breadcrumb.navigateLink ? themeColors.text.dark : themeColors.text.medium
3911
3889
  }, breadcrumb.text));
3912
3890
  }));
3913
3891
  };
3914
3892
 
3915
- var _templateObject$5;
3916
- var fontFaces = styled.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"])));
3893
+ var _templateObject$6;
3894
+ var fontFaces = styled.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"])));
3917
3895
  var GlobalFonts = {
3918
3896
  bold: 'NotoSans, sans-serif',
3919
3897
  regular: 'NotoSans, sans-serif',
3920
3898
  light: 'NotoSans, sans-serif'
3921
3899
  };
3922
3900
 
3923
- var _templateObject$6, _templateObject2$4, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1;
3924
- var spin = styled.keyframes(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n to {\n transform: rotate(360deg);\n }\n"])));
3925
- var Spinner = styled__default.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) {
3901
+ var _templateObject$7, _templateObject2$5, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1;
3902
+ var spin = styled.keyframes(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n to {\n transform: rotate(360deg);\n }\n"])));
3903
+ var Spinner = styled__default.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) {
3926
3904
  var $size = _ref.$size;
3927
3905
  return $size;
3928
3906
  }, function (_ref2) {
@@ -4020,8 +3998,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
4020
3998
  text = _ref20.text,
4021
3999
  size = _ref20.size,
4022
4000
  background = _ref20.background,
4023
- _ref20$hoverColor = _ref20.hoverColor,
4024
- hoverColor = _ref20$hoverColor === void 0 ? colorVariables.text.white : _ref20$hoverColor,
4001
+ hoverColor = _ref20.hoverColor,
4025
4002
  color = _ref20.color,
4026
4003
  colorHover = _ref20.colorHover,
4027
4004
  borderDefault = _ref20.borderDefault,
@@ -4046,9 +4023,9 @@ var ButtonComponent = function ButtonComponent(_ref20) {
4046
4023
  _ref20$loaderProps = _ref20.loaderProps,
4047
4024
  loaderProps = _ref20$loaderProps === void 0 ? {
4048
4025
  loading: false,
4049
- loaderPosition: 'right',
4050
- loaderColor: colorVariables.text.white
4026
+ loaderPosition: 'right'
4051
4027
  } : _ref20$loaderProps;
4028
+ var themeColors = useTheme();
4052
4029
  var _useState = React.useState(false),
4053
4030
  isHovered = _useState[0],
4054
4031
  setIsHovered = _useState[1];
@@ -4086,7 +4063,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
4086
4063
  iconClick();
4087
4064
  }
4088
4065
  },
4089
- 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
4066
+ 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
4090
4067
  }), text && React__default.createElement(ButtonText, {
4091
4068
  "$size": size,
4092
4069
  "$fontFamily": fontFamily,
@@ -4096,18 +4073,19 @@ var ButtonComponent = function ButtonComponent(_ref20) {
4096
4073
  "$loaderPosition": loaderPos
4097
4074
  }, React__default.createElement(Spinner, {
4098
4075
  "$size": size === 'small' ? 12 : size === 'medium' ? 16 : 18,
4099
- "$color": loaderProps.loaderColor || 'color'
4076
+ "$color": loaderProps.loaderColor || themeColors.text.white
4100
4077
  })));
4101
4078
  };
4102
4079
 
4103
- var _templateObject$7;
4104
- var InnerContent = styled__default.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) {
4080
+ var _templateObject$8;
4081
+ var InnerContent = styled__default.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) {
4105
4082
  var $isScrollable = _ref.$isScrollable;
4106
4083
  return $isScrollable ? '0 12px' : '0';
4107
4084
  });
4108
4085
  var ButtonCarousel = function ButtonCarousel(_ref2) {
4109
4086
  var contentLength = _ref2.contentLength,
4110
4087
  innerNode = _ref2.innerNode;
4088
+ var themeColors = useTheme();
4111
4089
  var scrollRef = React.useRef(null);
4112
4090
  var _useState = React.useState(false),
4113
4091
  isScrollable = _useState[0],
@@ -4168,8 +4146,8 @@ var ButtonCarousel = function ButtonCarousel(_ref2) {
4168
4146
  borderRadius: '50%',
4169
4147
  onClick: scrollLeft,
4170
4148
  iconSize: 10,
4171
- borderDefault: "2px solid " + colorVariables["default"].tertiary,
4172
- borderHover: "2px solid " + colorVariables.hover.primary
4149
+ borderDefault: "2px solid " + themeColors["default"].tertiary,
4150
+ borderHover: "2px solid " + themeColors.hover.primary
4173
4151
  }), React__default.createElement(InnerContent, {
4174
4152
  "$isScrollable": isScrollable,
4175
4153
  ref: scrollRef,
@@ -4182,8 +4160,8 @@ var ButtonCarousel = function ButtonCarousel(_ref2) {
4182
4160
  borderRadius: '50%',
4183
4161
  onClick: scrollRight,
4184
4162
  iconSize: 10,
4185
- borderDefault: "2px solid " + colorVariables["default"].tertiary,
4186
- borderHover: "2px solid " + colorVariables.hover.primary
4163
+ borderDefault: "2px solid " + themeColors["default"].tertiary,
4164
+ borderHover: "2px solid " + themeColors.hover.primary
4187
4165
  }));
4188
4166
  };
4189
4167
 
@@ -4332,9 +4310,9 @@ var timeStringToSeconds = function timeStringToSeconds(timeString) {
4332
4310
  return hours * 3600 + minutes * 60 + seconds;
4333
4311
  };
4334
4312
 
4335
- 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;
4336
- var DatePickerContainer = styled__default.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n"])));
4337
- var CalendarContainer = styled__default.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) {
4313
+ 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;
4314
+ var DatePickerContainer = styled__default.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n"])));
4315
+ var CalendarContainer = styled__default.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) {
4338
4316
  var theme = _ref.theme;
4339
4317
  return "1px solid " + theme.border.medium;
4340
4318
  });
@@ -4653,9 +4631,9 @@ var DatePicker = function DatePicker(_ref20) {
4653
4631
  }))))), React__default.createElement(Line, null, React__default.createElement("hr", null)), React__default.createElement(Zones, null, React__default.createElement(CurrentTime, null, t('TimePicker_Zone')), React__default.createElement(CurrentTime, null, getSystemTimezoneAbbreviation())))));
4654
4632
  };
4655
4633
 
4656
- var _templateObject$9, _templateObject2$6, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$3;
4657
- var OptionContainer = styled__default.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose([""])));
4658
- var OptionItem = styled__default.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n"])), function (_ref) {
4634
+ var _templateObject$a, _templateObject2$7, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$3;
4635
+ var OptionContainer = styled__default.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose([""])));
4636
+ var OptionItem = styled__default.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n"])), function (_ref) {
4659
4637
  var $optionBorder = _ref.$optionBorder,
4660
4638
  $isborder = _ref.$isborder,
4661
4639
  theme = _ref.theme;
@@ -4771,212 +4749,76 @@ var OptionComponent = function OptionComponent(_ref9) {
4771
4749
  selectedOptions = _ref9.selectedOptions,
4772
4750
  onChange = _ref9.onChange,
4773
4751
  _ref9$placeholder = _ref9.placeholder,
4774
- placeholder = _ref9$placeholder === void 0 ? 'Search...' : _ref9$placeholder,
4775
- placeholderColor = _ref9.placeholderColor,
4776
- optionBorder = _ref9.optionBorder,
4777
- optionColor = _ref9.optionColor,
4778
- searchIcon = _ref9.searchIcon,
4779
- searchbarTextColor = _ref9.searchbarTextColor,
4780
- searchBoxBorder = _ref9.searchBoxBorder,
4781
- searchBoxBorderRadius = _ref9.searchBoxBorderRadius,
4782
- searchBoxBackground = _ref9.searchBoxBackground,
4783
- _ref9$searchBox = _ref9.searchBox,
4784
- searchBox = _ref9$searchBox === void 0 ? true : _ref9$searchBox,
4785
- NoOptionsText = _ref9.NoOptionsText;
4786
- var _useState = React.useState(''),
4787
- searchQuery = _useState[0],
4788
- setSearchQuery = _useState[1];
4789
- var handleSearchChange = function handleSearchChange(e) {
4790
- setSearchQuery(e.target.value);
4791
- };
4792
- var handleOptionToggle = function handleOptionToggle(currentOption) {
4793
- var newOption = selectedOptions.includes(currentOption) ? selectedOptions.filter(function (item) {
4794
- return item !== currentOption;
4795
- }) : [].concat(selectedOptions, [currentOption]);
4796
- onChange === null || onChange === void 0 ? void 0 : onChange(newOption);
4797
- };
4798
- var SortedOptions = [].concat(options).sort(function (a, b) {
4799
- return a.labelText.localeCompare(b.labelText);
4800
- }).filter(function (option) {
4801
- return option.labelText.toLowerCase().includes(searchQuery.toLowerCase());
4802
- });
4803
- return React__default.createElement(Container, {
4804
- "$flexDirection": 'column',
4805
- "$gap": '8px',
4806
- "$width": '100%'
4807
- }, searchBox && React__default.createElement(SearchContainer, {
4808
- "$borderBottom": searchBoxBorder,
4809
- "$background": searchBoxBackground,
4810
- "$borderRadius": searchBoxBorderRadius
4811
- }, React__default.createElement(Icon, {
4812
- icon: 'Search',
4813
- size: (searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.size) || 16,
4814
- color: searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.color,
4815
- weight: (searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.weight) || '0px'
4816
- }), React__default.createElement(SearchBar, {
4817
- type: 'text',
4818
- placeholder: placeholder,
4819
- value: searchQuery,
4820
- onChange: handleSearchChange,
4821
- "$inputColor": searchbarTextColor,
4822
- "$placeholderColor": placeholderColor
4823
- })), React__default.createElement(OptionContainer, null, SortedOptions.length > 0 ? SortedOptions.map(function (option, id) {
4824
- return React__default.createElement(OptionItem, {
4825
- key: option.value,
4826
- "$optionBorder": optionBorder,
4827
- "$isborder": id !== SortedOptions.length - 1
4828
- }, React__default.createElement(OptionLabel, {
4829
- htmlFor: option.value,
4830
- "$optionColor": optionColor
4831
- }, React__default.createElement("input", {
4832
- id: option.value,
4833
- type: 'checkbox',
4834
- checked: selectedOptions.includes(option.value),
4835
- onChange: function onChange() {
4836
- return handleOptionToggle(option.value);
4837
- }
4838
- }), React__default.createElement(Text, null, option.labelText)));
4839
- }) : React__default.createElement(Container, {
4840
- "$padding": '8px'
4841
- }, React__default.createElement(Span, {
4842
- "$fontSize": '14px'
4843
- }, NoOptionsText))));
4844
- };
4845
-
4846
- var useClickOutside = function useClickOutside(elRef, elCallback) {
4847
- var callbackRef = React.useRef(elCallback);
4848
- callbackRef.current = elCallback;
4849
- React.useEffect(function () {
4850
- var handleClickOutside = function handleClickOutside(eve) {
4851
- var _elRef$current;
4852
- if (!(elRef !== null && elRef !== void 0 && (_elRef$current = elRef.current) !== null && _elRef$current !== void 0 && _elRef$current.contains(eve.target))) {
4853
- callbackRef.current(eve);
4854
- }
4855
- };
4856
- document.addEventListener('click', handleClickOutside, true);
4857
- return function () {
4858
- document.removeEventListener('click', handleClickOutside, true);
4859
- };
4860
- }, [elCallback, elRef]);
4861
- };
4862
-
4863
- var _templateObject$a, _templateObject2$7;
4864
- var ModalOverlay = styled__default.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"])));
4865
- var ModalContainer = styled__default.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) {
4866
- var theme = _ref.theme;
4867
- return theme.accent.light_1;
4868
- }, function (_ref2) {
4869
- var $maxWidth = _ref2.$maxWidth;
4870
- return $maxWidth ? $maxWidth : '400px';
4871
- });
4872
- var Modal = function Modal(_ref3) {
4873
- var isOpen = _ref3.isOpen,
4874
- maxWidth = _ref3.maxWidth,
4875
- children = _ref3.children;
4876
- if (!isOpen) return null;
4877
- return React__default.createElement(ModalOverlay, null, React__default.createElement(ModalContainer, {
4878
- "$maxWidth": maxWidth,
4879
- onClick: function onClick(e) {
4880
- return e.stopPropagation();
4881
- }
4882
- }, children));
4883
- };
4884
- var useCustomModal = function useCustomModal(_ref4) {
4885
- var maxWidth = _ref4.maxWidth;
4886
- var _useState = React.useState(false),
4887
- isOpen = _useState[0],
4888
- setIsOpen = _useState[1];
4889
- var createModal = function createModal(content) {
4890
- return React__default.createElement(Modal, {
4891
- isOpen: isOpen,
4892
- maxWidth: maxWidth
4893
- }, content);
4894
- };
4895
- return {
4896
- setIsOpen: setIsOpen,
4897
- createModal: createModal
4898
- };
4899
- };
4900
-
4901
- var useNotification = function useNotification() {
4902
- var sendNotification = function sendNotification(_ref) {
4903
- var type = _ref.type,
4904
- message = _ref.message,
4905
- promiseConfig = _ref.promiseConfig,
4906
- customStyle = _ref.customStyle,
4907
- _ref$clearCurrent = _ref.clearCurrent,
4908
- clearCurrent = _ref$clearCurrent === void 0 ? false : _ref$clearCurrent;
4909
- if (clearCurrent) {
4910
- reactHotToast.toast.dismiss();
4911
- }
4912
- switch (type) {
4913
- case 'success':
4914
- reactHotToast.toast.success(message);
4915
- break;
4916
- case 'error':
4917
- reactHotToast.toast.error(message);
4918
- break;
4919
- case 'info':
4920
- reactHotToast.toast(message, {
4921
- icon: React__default.createElement(Container, {
4922
- "$minWidth": '20px',
4923
- "$height": '20px',
4924
- "$width": '20px',
4925
- "$alignItems": 'center',
4926
- "$justifyContent": 'center',
4927
- "$borderRadius": '100%',
4928
- "$background": colorVariables.disabled.info
4929
- }, React__default.createElement(Icon, {
4930
- icon: 'InformationFilled',
4931
- weight: '0px',
4932
- size: 20,
4933
- color: colorVariables["default"].info
4934
- })),
4935
- style: {
4936
- borderRadius: '8px',
4937
- background: colorVariables.text.white,
4938
- color: '#363636',
4939
- maxWidth: '648px'
4940
- }
4941
- });
4942
- break;
4943
- case 'promise':
4944
- if (promiseConfig) {
4945
- reactHotToast.toast.promise(promiseConfig.promise, {
4946
- loading: promiseConfig.loading,
4947
- success: promiseConfig.success,
4948
- error: promiseConfig.error
4949
- }, {
4950
- style: {
4951
- minWidth: '300px'
4952
- }
4953
- });
4954
- }
4955
- break;
4956
- case 'custom':
4957
- reactHotToast.toast(message, {
4958
- icon: React__default.createElement(Icon, {
4959
- icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
4960
- size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
4961
- weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
4962
- }),
4963
- style: {
4964
- background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
4965
- color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
4966
- }
4967
- });
4968
- break;
4969
- default:
4970
- console.error('Invalid notification type or missing configuration!');
4971
- }
4752
+ placeholder = _ref9$placeholder === void 0 ? 'Search...' : _ref9$placeholder,
4753
+ placeholderColor = _ref9.placeholderColor,
4754
+ optionBorder = _ref9.optionBorder,
4755
+ optionColor = _ref9.optionColor,
4756
+ searchIcon = _ref9.searchIcon,
4757
+ searchbarTextColor = _ref9.searchbarTextColor,
4758
+ searchBoxBorder = _ref9.searchBoxBorder,
4759
+ searchBoxBorderRadius = _ref9.searchBoxBorderRadius,
4760
+ searchBoxBackground = _ref9.searchBoxBackground,
4761
+ _ref9$searchBox = _ref9.searchBox,
4762
+ searchBox = _ref9$searchBox === void 0 ? true : _ref9$searchBox,
4763
+ NoOptionsText = _ref9.NoOptionsText;
4764
+ var _useState = React.useState(''),
4765
+ searchQuery = _useState[0],
4766
+ setSearchQuery = _useState[1];
4767
+ var handleSearchChange = function handleSearchChange(e) {
4768
+ setSearchQuery(e.target.value);
4972
4769
  };
4973
- return {
4974
- sendNotification: sendNotification
4770
+ var handleOptionToggle = function handleOptionToggle(currentOption) {
4771
+ var newOption = selectedOptions.includes(currentOption) ? selectedOptions.filter(function (item) {
4772
+ return item !== currentOption;
4773
+ }) : [].concat(selectedOptions, [currentOption]);
4774
+ onChange === null || onChange === void 0 ? void 0 : onChange(newOption);
4975
4775
  };
4976
- };
4977
-
4978
- var useTheme = function useTheme() {
4979
- return styled.useTheme();
4776
+ var SortedOptions = [].concat(options).sort(function (a, b) {
4777
+ return a.labelText.localeCompare(b.labelText);
4778
+ }).filter(function (option) {
4779
+ return option.labelText.toLowerCase().includes(searchQuery.toLowerCase());
4780
+ });
4781
+ return React__default.createElement(Container, {
4782
+ "$flexDirection": 'column',
4783
+ "$gap": '8px',
4784
+ "$width": '100%'
4785
+ }, searchBox && React__default.createElement(SearchContainer, {
4786
+ "$borderBottom": searchBoxBorder,
4787
+ "$background": searchBoxBackground,
4788
+ "$borderRadius": searchBoxBorderRadius
4789
+ }, React__default.createElement(Icon, {
4790
+ icon: 'Search',
4791
+ size: (searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.size) || 16,
4792
+ color: searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.color,
4793
+ weight: (searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.weight) || '0px'
4794
+ }), React__default.createElement(SearchBar, {
4795
+ type: 'text',
4796
+ placeholder: placeholder,
4797
+ value: searchQuery,
4798
+ onChange: handleSearchChange,
4799
+ "$inputColor": searchbarTextColor,
4800
+ "$placeholderColor": placeholderColor
4801
+ })), React__default.createElement(OptionContainer, null, SortedOptions.length > 0 ? SortedOptions.map(function (option, id) {
4802
+ return React__default.createElement(OptionItem, {
4803
+ key: option.value,
4804
+ "$optionBorder": optionBorder,
4805
+ "$isborder": id !== SortedOptions.length - 1
4806
+ }, React__default.createElement(OptionLabel, {
4807
+ htmlFor: option.value,
4808
+ "$optionColor": optionColor
4809
+ }, React__default.createElement("input", {
4810
+ id: option.value,
4811
+ type: 'checkbox',
4812
+ checked: selectedOptions.includes(option.value),
4813
+ onChange: function onChange() {
4814
+ return handleOptionToggle(option.value);
4815
+ }
4816
+ }), React__default.createElement(Text, null, option.labelText)));
4817
+ }) : React__default.createElement(Container, {
4818
+ "$padding": '8px'
4819
+ }, React__default.createElement(Span, {
4820
+ "$fontSize": '14px'
4821
+ }, NoOptionsText))));
4980
4822
  };
4981
4823
 
4982
4824
  var _templateObject$b, _templateObject2$8, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2;
@@ -5376,6 +5218,7 @@ var SelectedOption = function SelectedOption(_ref4) {
5376
5218
  removeIconColor = _ref4.removeIconColor,
5377
5219
  onChange = _ref4.onChange,
5378
5220
  type = _ref4.type;
5221
+ var themeColors = useTheme();
5379
5222
  var selectedOptionObjects = allOptions.filter(function (opt) {
5380
5223
  return selectedOptions.includes(opt.value);
5381
5224
  }).sort(function (a, b) {
@@ -5408,7 +5251,7 @@ var SelectedOption = function SelectedOption(_ref4) {
5408
5251
  }, React__default.createElement(Icon, {
5409
5252
  icon: 'Close',
5410
5253
  size: 6,
5411
- color: removeIconColor || type === 'remove' ? colorVariables["default"].error : colorVariables.brand.primary
5254
+ color: removeIconColor || type === 'remove' ? themeColors["default"].error : themeColors.brand.primary
5412
5255
  })));
5413
5256
  }));
5414
5257
  };
@@ -5647,8 +5490,7 @@ var SelectOption = function SelectOption(_ref36) {
5647
5490
  searchIcon = _ref36.searchIcon,
5648
5491
  _ref36$placeholderTex = _ref36.placeholderText,
5649
5492
  placeholderText = _ref36$placeholderTex === void 0 ? 'Search...' : _ref36$placeholderTex,
5650
- _ref36$iconColor = _ref36.iconColor,
5651
- iconColor = _ref36$iconColor === void 0 ? colorVariables.text.medium : _ref36$iconColor,
5493
+ iconColor = _ref36.iconColor,
5652
5494
  placeholderColor = _ref36.placeholderColor,
5653
5495
  inputColor = _ref36.inputColor,
5654
5496
  _ref36$iconSize = _ref36.iconSize,
@@ -5656,6 +5498,7 @@ var SelectOption = function SelectOption(_ref36) {
5656
5498
  _ref36$allowDeselect = _ref36.allowDeselect,
5657
5499
  allowDeselect = _ref36$allowDeselect === void 0 ? true : _ref36$allowDeselect,
5658
5500
  titleRightNode = _ref36.titleRightNode;
5501
+ var themeColors = useTheme();
5659
5502
  var _useState = React.useState(false),
5660
5503
  dropUp = _useState[0],
5661
5504
  setDropUp = _useState[1];
@@ -5763,19 +5606,19 @@ var SelectOption = function SelectOption(_ref36) {
5763
5606
  icon: icon.name,
5764
5607
  size: icon.size || 14,
5765
5608
  weight: icon.weight || '1px',
5766
- color: icon.color || colorVariables.text.medium
5609
+ color: icon.color || themeColors.text.medium
5767
5610
  }), label ? React__default.createElement(LabelText$1, {
5768
5611
  color: color,
5769
5612
  "$disabled": disabled,
5770
5613
  "$size": size
5771
5614
  }, label) : React__default.createElement(LabelText$1, {
5772
5615
  "$fontStyle": fontStyle ? fontStyle : 'italic',
5773
- color: colorVariables.text.light,
5616
+ color: themeColors.text.light,
5774
5617
  "$size": size
5775
5618
  }, labelText), React__default.createElement(Icon, {
5776
5619
  icon: isOpen ? 'UpArrow' : 'DownArrow',
5777
5620
  size: 7,
5778
- color: colorVariables.text.medium
5621
+ color: themeColors.text.medium
5779
5622
  })), isOpen && React__default.createElement(DropdownMenu$1, {
5780
5623
  "$width": width,
5781
5624
  "$menuBackground": menuBackground,
@@ -5791,7 +5634,7 @@ var SelectOption = function SelectOption(_ref36) {
5791
5634
  icon: 'Search',
5792
5635
  size: iconSize,
5793
5636
  weight: (searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.weight) || '0px',
5794
- color: iconColor
5637
+ color: iconColor || themeColors.text.medium
5795
5638
  }), React__default.createElement(SearchBar$1, {
5796
5639
  ref: searchInputRef,
5797
5640
  type: 'text',
@@ -5853,13 +5696,13 @@ var SearchBox = function SearchBox(_ref9) {
5853
5696
  placeholder = _ref9$placeholder === void 0 ? 'Search...' : _ref9$placeholder,
5854
5697
  border = _ref9.border,
5855
5698
  borderRadius = _ref9.borderRadius,
5856
- _ref9$iconColor = _ref9.iconColor,
5857
- iconColor = _ref9$iconColor === void 0 ? colorVariables.text.medium : _ref9$iconColor,
5699
+ iconColor = _ref9.iconColor,
5858
5700
  placeholderColor = _ref9.placeholderColor,
5859
5701
  inputColor = _ref9.inputColor,
5860
5702
  _ref9$iconSize = _ref9.iconSize,
5861
5703
  iconSize = _ref9$iconSize === void 0 ? 16 : _ref9$iconSize,
5862
5704
  background = _ref9.background;
5705
+ var themeColors = useTheme();
5863
5706
  var _useState = React.useState(false),
5864
5707
  isFocused = _useState[0],
5865
5708
  setIsFocused = _useState[1];
@@ -5871,7 +5714,7 @@ var SearchBox = function SearchBox(_ref9) {
5871
5714
  }, React__default.createElement(Icon, {
5872
5715
  icon: 'Search',
5873
5716
  size: iconSize,
5874
- color: iconColor,
5717
+ color: iconColor || themeColors.text.medium,
5875
5718
  weight: '0px'
5876
5719
  }), React__default.createElement(SearchBar$2, {
5877
5720
  type: 'text',
@@ -6007,12 +5850,10 @@ var TextField = function TextField(_ref14) {
6007
5850
  onChange = _ref14.onChange,
6008
5851
  _ref14$size = _ref14.size,
6009
5852
  size = _ref14$size === void 0 ? 'medium' : _ref14$size,
6010
- _ref14$color = _ref14.color,
6011
- color = _ref14$color === void 0 ? colorVariables.text.dark : _ref14$color,
5853
+ color = _ref14.color,
6012
5854
  _ref14$padding = _ref14.padding,
6013
5855
  padding = _ref14$padding === void 0 ? '0px' : _ref14$padding,
6014
- _ref14$titlecolor = _ref14.titlecolor,
6015
- titlecolor = _ref14$titlecolor === void 0 ? colorVariables.text.dark : _ref14$titlecolor,
5856
+ titlecolor = _ref14.titlecolor,
6016
5857
  icon = _ref14.icon,
6017
5858
  _ref14$iconsize = _ref14.iconsize,
6018
5859
  iconsize = _ref14$iconsize === void 0 ? 18 : _ref14$iconsize,
@@ -6020,10 +5861,10 @@ var TextField = function TextField(_ref14) {
6020
5861
  iconcolor = _ref14.iconcolor,
6021
5862
  _ref14$required = _ref14.required,
6022
5863
  required = _ref14$required === void 0 ? false : _ref14$required,
6023
- _ref14$background = _ref14.background,
6024
- background = _ref14$background === void 0 ? colorVariables["default"].tertiary : _ref14$background,
5864
+ background = _ref14.background,
6025
5865
  onEnter = _ref14.onEnter,
6026
5866
  titleRightNode = _ref14.titleRightNode;
5867
+ var themeColors = useTheme();
6027
5868
  var _useState = React.useState(disabled),
6028
5869
  isDisabled = _useState[0],
6029
5870
  setIsDisabled = _useState[1];
@@ -6054,7 +5895,7 @@ var TextField = function TextField(_ref14) {
6054
5895
  "$size": size,
6055
5896
  "$fontWeight": titleWeight,
6056
5897
  htmlFor: title,
6057
- "$titlecolor": titlecolor
5898
+ "$titlecolor": titlecolor || themeColors.text.dark
6058
5899
  }, title, required && React__default.createElement(Asterisk$1, null, "*")), titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.node), React__default.createElement(InputWrapper$1, null, React__default.createElement(Input, {
6059
5900
  type: inputType || 'text',
6060
5901
  "$type": type,
@@ -6065,8 +5906,8 @@ var TextField = function TextField(_ref14) {
6065
5906
  "$disabled": isDisabled,
6066
5907
  onChange: onChange,
6067
5908
  "$size": size,
6068
- "$color": color,
6069
- "$background": background,
5909
+ "$color": color || themeColors.text.dark,
5910
+ "$background": background || themeColors["default"].tertiary,
6070
5911
  readOnly: onChange === undefined || isDisabled ? true : false,
6071
5912
  onKeyDown: function onKeyDown(e) {
6072
5913
  if (e.key === 'Enter') {
@@ -6082,14 +5923,14 @@ var TextField = function TextField(_ref14) {
6082
5923
  icon: inputType === 'password' ? 'CloseEye' : 'OpenEye',
6083
5924
  size: iconsize,
6084
5925
  weight: iconweight,
6085
- color: iconcolor || colorVariables["default"].primary
5926
+ color: iconcolor || themeColors["default"].primary
6086
5927
  })), icon && type !== 'password' && React__default.createElement(IconWrapper$1, {
6087
5928
  onClick: handleToggleDisabled
6088
5929
  }, React__default.createElement(Icon, {
6089
5930
  icon: icon,
6090
5931
  size: iconsize,
6091
5932
  weight: iconweight,
6092
- color: iconcolor || colorVariables["default"].primary
5933
+ color: iconcolor || themeColors["default"].primary
6093
5934
  }))));
6094
5935
  };
6095
5936
 
@@ -6162,16 +6003,14 @@ var TextArea = function TextArea(_ref12) {
6162
6003
  onChange = _ref12.onChange,
6163
6004
  _ref12$size = _ref12.size,
6164
6005
  size = _ref12$size === void 0 ? 'medium' : _ref12$size,
6165
- _ref12$color = _ref12.color,
6166
- color = _ref12$color === void 0 ? colorVariables.text.dark : _ref12$color,
6006
+ color = _ref12.color,
6167
6007
  _ref12$padding = _ref12.padding,
6168
6008
  padding = _ref12$padding === void 0 ? '0px' : _ref12$padding,
6169
- _ref12$titlecolor = _ref12.titlecolor,
6170
- titlecolor = _ref12$titlecolor === void 0 ? colorVariables.text.dark : _ref12$titlecolor,
6009
+ titlecolor = _ref12.titlecolor,
6171
6010
  _ref12$required = _ref12.required,
6172
6011
  required = _ref12$required === void 0 ? false : _ref12$required,
6173
- _ref12$background = _ref12.background,
6174
- background = _ref12$background === void 0 ? colorVariables["default"].tertiary : _ref12$background;
6012
+ background = _ref12.background;
6013
+ var themeColors = useTheme();
6175
6014
  var _useState = React.useState(disabled),
6176
6015
  isDisabled = _useState[0],
6177
6016
  setIsDisabled = _useState[1];
@@ -6184,7 +6023,7 @@ var TextArea = function TextArea(_ref12) {
6184
6023
  "$size": size,
6185
6024
  "$fontWeight": titleWeight,
6186
6025
  htmlFor: title,
6187
- "$titlecolor": titlecolor
6026
+ "$titlecolor": titlecolor || themeColors.text.dark
6188
6027
  }, title, required && React__default.createElement(Asterisk$1, null, "*")), React__default.createElement(TextAreaComponent, {
6189
6028
  name: title,
6190
6029
  id: title,
@@ -6193,8 +6032,8 @@ var TextArea = function TextArea(_ref12) {
6193
6032
  "$disabled": isDisabled,
6194
6033
  onChange: onChange,
6195
6034
  "$size": size,
6196
- "$color": color,
6197
- "$background": background
6035
+ "$color": color || themeColors.text.dark,
6036
+ "$background": background || themeColors["default"].tertiary
6198
6037
  }));
6199
6038
  };
6200
6039
 
@@ -6332,6 +6171,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
6332
6171
  _ref16$searchBox = _ref16.searchBox,
6333
6172
  searchBox = _ref16$searchBox === void 0 ? true : _ref16$searchBox,
6334
6173
  NoOptionsText = _ref16.NoOptionsText;
6174
+ var themeColors = useTheme();
6335
6175
  var _useTranslation = reactI18next.useTranslation(),
6336
6176
  t = _useTranslation.t;
6337
6177
  var searchBoxRef = React.useRef(null);
@@ -6363,7 +6203,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
6363
6203
  "$position": 'relative'
6364
6204
  }, searchBox && React__default.createElement(SearchContainer$3, {
6365
6205
  "$borderBottom": searchBoxBorder,
6366
- "$background": isSearchBarEnabled ? colorVariables.text.white : colorVariables.accent.light_1,
6206
+ "$background": isSearchBarEnabled ? themeColors.text.white : themeColors.accent.light_1,
6367
6207
  "$borderRadius": searchBoxBorderRadius,
6368
6208
  ref: searchBoxRef
6369
6209
  }, React__default.createElement(Container, {
@@ -6383,7 +6223,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
6383
6223
  value: internalSearchQuery,
6384
6224
  onChange: handleSearchChange,
6385
6225
  "$inputColor": searchbarTextColor,
6386
- "$placeholderColor": isSearchBarEnabled ? colorVariables.text.light : colorVariables.text.medium,
6226
+ "$placeholderColor": isSearchBarEnabled ? themeColors.text.light : themeColors.text.medium,
6387
6227
  disabled: !!searchQuery
6388
6228
  })), (internalSearchQuery || searchQuery) && React__default.createElement(Icon, {
6389
6229
  icon: 'Close',
@@ -6400,7 +6240,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
6400
6240
  }, React__default.createElement(TotalOptionsHeader, null, React__default.createElement(Span, {
6401
6241
  "$fontSize": '12px',
6402
6242
  "$fontWeight": '400',
6403
- "$color": colorVariables.text.light
6243
+ "$color": themeColors.text.light
6404
6244
  }, t('Showing_results') + " (" + filteredArray.length + " of " + (options === null || options === void 0 ? void 0 : options.length) + ")")), React__default.createElement(OptionsWrapper$1, null, filteredArray.length > 0 ? filteredArray.map(function (option) {
6405
6245
  return React__default.createElement(OptionItem$1, {
6406
6246
  key: option.value,
@@ -6479,10 +6319,10 @@ var CheckBox = function CheckBox(_ref11) {
6479
6319
  fontSize = _ref11$fontSize === void 0 ? '14px' : _ref11$fontSize,
6480
6320
  _ref11$fontWeight = _ref11.fontWeight,
6481
6321
  fontWeight = _ref11$fontWeight === void 0 ? '500' : _ref11$fontWeight,
6482
- _ref11$color = _ref11.color,
6483
- color = _ref11$color === void 0 ? colorVariables.text.medium : _ref11$color,
6322
+ color = _ref11.color,
6484
6323
  _ref11$borderSize = _ref11.borderSize,
6485
6324
  borderSize = _ref11$borderSize === void 0 ? 1 : _ref11$borderSize;
6325
+ var themeColors = useTheme();
6486
6326
  var safeId = React.useId();
6487
6327
  return React__default.createElement(Container, {
6488
6328
  "$gap": gap,
@@ -6509,7 +6349,7 @@ var CheckBox = function CheckBox(_ref11) {
6509
6349
  "$borderSize": borderSize
6510
6350
  })), label && React__default.createElement(LabelSpan, {
6511
6351
  "$fontSize": fontSize,
6512
- "$color": color,
6352
+ "$color": color || themeColors.text.medium,
6513
6353
  "$fontWeight": fontWeight,
6514
6354
  onClick: function onClick() {
6515
6355
  if (!disabled) _onChange(!checked);
@@ -6615,10 +6455,10 @@ var Loader = function Loader(_ref4) {
6615
6455
  var title = _ref4.title,
6616
6456
  _ref4$size = _ref4.size,
6617
6457
  size = _ref4$size === void 0 ? 32 : _ref4$size,
6618
- _ref4$color = _ref4.color,
6619
- color = _ref4$color === void 0 ? colorVariables["default"].primary : _ref4$color,
6458
+ color = _ref4.color,
6620
6459
  titleColor = _ref4.titleColor,
6621
6460
  titleSize = _ref4.titleSize;
6461
+ var themeColors = useTheme();
6622
6462
  return React__default.createElement(Container, {
6623
6463
  "$alignItems": 'center',
6624
6464
  "$justifyContent": 'center',
@@ -6628,7 +6468,7 @@ var Loader = function Loader(_ref4) {
6628
6468
  "$gap": '12px'
6629
6469
  }, React__default.createElement(Container, null, React__default.createElement(Spinner$1, {
6630
6470
  "$size": size,
6631
- "$color": color
6471
+ "$color": color || themeColors["default"].primary
6632
6472
  })), title && React__default.createElement(Container, {
6633
6473
  "$flexDirection": 'column',
6634
6474
  "$gap": '12px'
@@ -6659,6 +6499,7 @@ var Pagination = function Pagination(_ref4) {
6659
6499
  itemsPerPage = _ref4.itemsPerPage,
6660
6500
  onPageChange = _ref4.onPageChange,
6661
6501
  onItemsPerPageChange = _ref4.onItemsPerPageChange;
6502
+ var themeColors = useTheme();
6662
6503
  var _useTranslation = reactI18next.useTranslation(),
6663
6504
  t = _useTranslation.t;
6664
6505
  var _useNotification = useNotification(),
@@ -6741,7 +6582,7 @@ var Pagination = function Pagination(_ref4) {
6741
6582
  padding: '7px',
6742
6583
  variant: 'secondary',
6743
6584
  borderRadius: '4px',
6744
- color: colorVariables.text.white
6585
+ color: themeColors.text.white
6745
6586
  }), React__default.createElement(ButtonComponent, {
6746
6587
  onClick: function onClick() {
6747
6588
  return handlePageChange(currentPage + 1);
@@ -6753,7 +6594,7 @@ var Pagination = function Pagination(_ref4) {
6753
6594
  padding: '7px',
6754
6595
  variant: 'secondary',
6755
6596
  borderRadius: '4px',
6756
- color: colorVariables.text.white
6597
+ color: themeColors.text.white
6757
6598
  }))), React__default.createElement(Container, {
6758
6599
  "$gap": '16px',
6759
6600
  "$justifyContent": 'center',
@@ -6792,12 +6633,11 @@ var CircularProgress = function CircularProgress(_ref) {
6792
6633
  var threshold = _ref.threshold,
6793
6634
  totalCapacity = _ref.totalCapacity,
6794
6635
  usedCapacity = _ref.usedCapacity,
6795
- _ref$progressColor = _ref.progressColor,
6796
- progressColor = _ref$progressColor === void 0 ? colorVariables["default"].primary : _ref$progressColor,
6636
+ progressColor = _ref.progressColor,
6797
6637
  _ref$thresholdColor = _ref.thresholdColor,
6798
6638
  thresholdColor = _ref$thresholdColor === void 0 ? 'rgba(255, 0, 0, 0.2)' : _ref$thresholdColor,
6799
- _ref$trackColor = _ref.trackColor,
6800
- trackColor = _ref$trackColor === void 0 ? colorVariables.accent.softBlue : _ref$trackColor;
6639
+ trackColor = _ref.trackColor;
6640
+ var themeColors = useTheme();
6801
6641
  var radius = (viewBoxSize - strokeWidth) / 2;
6802
6642
  var circumference = 2 * Math.PI * radius;
6803
6643
  var parseVolumeData = function parseVolumeData(threshold, totalCapacity, usedCapacity) {
@@ -6827,7 +6667,7 @@ var CircularProgress = function CircularProgress(_ref) {
6827
6667
  cx: viewBoxSize / 2,
6828
6668
  cy: viewBoxSize / 2,
6829
6669
  r: radius,
6830
- stroke: trackColor,
6670
+ stroke: trackColor || themeColors.accent.softBlue,
6831
6671
  strokeWidth: strokeWidth,
6832
6672
  fill: 'none'
6833
6673
  }), processedThreshold > progress && React__default.createElement("circle", {
@@ -6845,7 +6685,7 @@ var CircularProgress = function CircularProgress(_ref) {
6845
6685
  cx: viewBoxSize / 2,
6846
6686
  cy: viewBoxSize / 2,
6847
6687
  r: radius,
6848
- stroke: progressColor,
6688
+ stroke: progressColor || themeColors["default"].primary,
6849
6689
  strokeWidth: strokeWidth,
6850
6690
  fill: 'none',
6851
6691
  strokeDasharray: circumference,
@@ -6856,7 +6696,7 @@ var CircularProgress = function CircularProgress(_ref) {
6856
6696
  "$position": 'absolute',
6857
6697
  "$fontSize": '12px',
6858
6698
  "$fontWeight": '500',
6859
- "$color": progressColor
6699
+ "$color": progressColor || themeColors["default"].primary
6860
6700
  }, progress + "%"));
6861
6701
  };
6862
6702
 
@@ -6867,6 +6707,7 @@ var ProgressBar = function ProgressBar(_ref) {
6867
6707
  progressColor = _ref.progressColor,
6868
6708
  thresholdColor = _ref.thresholdColor,
6869
6709
  trackColor = _ref.trackColor;
6710
+ var themeColors = useTheme();
6870
6711
  var parseVolumeData = function parseVolumeData(threshold, totalCapacity, usedCapacity) {
6871
6712
  var totalCapacityGB = totalCapacity;
6872
6713
  var usedCapacityGB = usedCapacity;
@@ -6885,13 +6726,13 @@ var ProgressBar = function ProgressBar(_ref) {
6885
6726
  "$width": '100%',
6886
6727
  "$height": '100%',
6887
6728
  "$borderRadius": '100px',
6888
- "$background": trackColor != null ? trackColor : colorVariables.accent.softBlue,
6729
+ "$background": trackColor != null ? trackColor : themeColors.accent.softBlue,
6889
6730
  "$overflow": 'hidden',
6890
6731
  "$position": 'relative'
6891
6732
  }, React__default.createElement(Container, {
6892
6733
  "$width": progress + "%",
6893
6734
  "$height": '100%',
6894
- "$background": progressColor != null ? progressColor : colorVariables["default"].primary,
6735
+ "$background": progressColor != null ? progressColor : themeColors["default"].primary,
6895
6736
  "$transition": 'width 0.5s ease-in-out'
6896
6737
  }), Processed_threshold !== undefined && Processed_threshold > progress && React__default.createElement(Container, {
6897
6738
  "$width": thresholdWidth + "%",
@@ -7224,6 +7065,7 @@ var Table = function Table(_ref6) {
7224
7065
  loading = _ref6.loading,
7225
7066
  _ref6$noDataText = _ref6.noDataText,
7226
7067
  noDataText = _ref6$noDataText === void 0 ? 'No Data Found!' : _ref6$noDataText;
7068
+ var themeColors = useTheme();
7227
7069
  var rowconfig = tableObject.rowconfig,
7228
7070
  tableheaderconfig = tableObject.tableheaderconfig;
7229
7071
  var _useState = React.useState(new Set()),
@@ -7344,14 +7186,14 @@ var Table = function Table(_ref6) {
7344
7186
  "$padding": '9px 12px',
7345
7187
  "$minHeight": '30px',
7346
7188
  "$alignItems": 'center',
7347
- "$background": colorVariables.accent.light_1,
7189
+ "$background": themeColors.accent.light_1,
7348
7190
  onClick: function onClick() {
7349
7191
  return toggleRoleVisibility(role);
7350
7192
  },
7351
7193
  "$cursor": 'pointer',
7352
- "$border": "1px solid " + colorVariables.border.extraLight
7194
+ "$border": "1px solid " + themeColors.border.extraLight
7353
7195
  }, React__default.createElement(Span, {
7354
- "$color": colorVariables.text.medium,
7196
+ "$color": themeColors.text.medium,
7355
7197
  "$fontSize": '12px',
7356
7198
  "$lineHeight": '100%'
7357
7199
  }, role, " (", rows.length, ")"), React__default.createElement(Icon, {
@@ -7445,6 +7287,7 @@ var Tabs = function Tabs(_ref14) {
7445
7287
  overflow = _ref14.overflow,
7446
7288
  bordeBottom = _ref14.bordeBottom,
7447
7289
  tabRightNode = _ref14.tabRightNode;
7290
+ var themeColors = useTheme();
7448
7291
  return React__default.createElement(Container$4, {
7449
7292
  "$gap": gap,
7450
7293
  "$border": border,
@@ -7464,7 +7307,7 @@ var Tabs = function Tabs(_ref14) {
7464
7307
  "$active": activeTab === tab.title,
7465
7308
  "$headerHeight": headerHeight
7466
7309
  }, tab.icon && React__default.createElement(Icon, {
7467
- color: activeTab === tab.title ? tab.activeColor : colorVariables.text.medium,
7310
+ color: activeTab === tab.title ? tab.activeColor : themeColors.text.medium,
7468
7311
  icon: tab.icon,
7469
7312
  size: tab.iconSize,
7470
7313
  weight: tab.iconWeight
@@ -7482,16 +7325,14 @@ var Tabs = function Tabs(_ref14) {
7482
7325
  var InternalTabs = function InternalTabs(_ref) {
7483
7326
  var tabs = _ref.tabs,
7484
7327
  activeTab = _ref.activeTab,
7485
- _ref$backgroundColor = _ref.backgroundColor,
7486
- backgroundColor = _ref$backgroundColor === void 0 ? colorVariables.text.white : _ref$backgroundColor,
7487
- _ref$activeTabBg = _ref.activeTabBg,
7488
- activeTabBg = _ref$activeTabBg === void 0 ? colorVariables.accent.softBlue : _ref$activeTabBg,
7489
- _ref$textColor = _ref.textColor,
7490
- textColor = _ref$textColor === void 0 ? colorVariables["default"].primary : _ref$textColor,
7328
+ backgroundColor = _ref.backgroundColor,
7329
+ activeTabBg = _ref.activeTabBg,
7330
+ textColor = _ref.textColor,
7491
7331
  _ref$disabled = _ref.disabled,
7492
7332
  disabled = _ref$disabled === void 0 ? false : _ref$disabled;
7333
+ var themeColors = useTheme();
7493
7334
  return React__default.createElement(Container, {
7494
- "$background": backgroundColor,
7335
+ "$background": backgroundColor || themeColors.text.white,
7495
7336
  "$padding": '3px',
7496
7337
  "$borderRadius": '4px',
7497
7338
  "$justifyContent": 'space-between',
@@ -7505,15 +7346,174 @@ var InternalTabs = function InternalTabs(_ref) {
7505
7346
  "$alignItems": 'center',
7506
7347
  "$cursor": disabled ? 'not-allowed' : 'pointer',
7507
7348
  onClick: disabled ? undefined : tab.onClick,
7508
- "$background": activeTab === tab.value ? activeTabBg : colorVariables["default"].tertiary,
7509
- "$color": activeTab === tab.value ? textColor : colorVariables.text.medium
7349
+ "$background": activeTab === tab.value ? activeTabBg || themeColors.accent.softBlue : themeColors["default"].tertiary,
7350
+ "$color": activeTab === tab.value ? textColor || themeColors["default"].primary : themeColors.text.medium
7510
7351
  }, React__default.createElement(Span, {
7511
7352
  "$fontSize": '14px',
7512
- "$color": activeTab === tab.value ? textColor : colorVariables.text.medium
7353
+ "$color": activeTab === tab.value ? textColor || themeColors["default"].primary : themeColors.text.medium
7513
7354
  }, tab.title));
7514
7355
  }));
7515
7356
  };
7516
7357
 
7358
+ var light = {
7359
+ brand: {
7360
+ primary: '#4C9EEB',
7361
+ secondary: '#14171A',
7362
+ light: '#FFFFFF'
7363
+ },
7364
+ accent: {
7365
+ light_1: '#E1E8ED',
7366
+ light_2: '#F5F8FA',
7367
+ light_3: '#F0F3F5',
7368
+ light_4: '#ECF0F4',
7369
+ light_5: '#F0F0F3',
7370
+ softBlue: '#D4EEFF',
7371
+ extraSoftBlue: '#E4F4FF',
7372
+ boldTransparent: '#5E5E5E80',
7373
+ transparent: '#5E5E5E4D',
7374
+ lightTransparent: '#5E5E5E23'
7375
+ },
7376
+ "default": {
7377
+ primary: '#78B6F0',
7378
+ secondary: '#C2C2C2',
7379
+ tertiary: 'transparent',
7380
+ error: '#F44336',
7381
+ success: '#4CAF50',
7382
+ warning: '#FF9800',
7383
+ info: '#2159F3'
7384
+ },
7385
+ disabled: {
7386
+ primary: '#B9DCF7',
7387
+ secondary: '#DADADA',
7388
+ error: '#FFEBEE',
7389
+ success: '#E8F5E9',
7390
+ warning: '#FFF3E0',
7391
+ info: '#E3F2FD'
7392
+ },
7393
+ hover: {
7394
+ primary: '#4C9EEB',
7395
+ secondary: '#A3A3A3',
7396
+ tertiary: 'transparent',
7397
+ error: '#D32F2F',
7398
+ success: '#388E3C',
7399
+ warning: '#F57C00',
7400
+ info: '#193ED2'
7401
+ },
7402
+ border: {
7403
+ extraBold: '#657786',
7404
+ bold: '#BFBFBF',
7405
+ medium: '#CBCED0',
7406
+ light: '#DCDCDC',
7407
+ extraLight: '#E6E3E3'
7408
+ },
7409
+ text: {
7410
+ dark: '#14171A',
7411
+ medium: '#657786',
7412
+ light: '#98A2AA',
7413
+ white: '#FFFFFF',
7414
+ success: '#1B5E20',
7415
+ error: '#B71C1C',
7416
+ info: '#0D30A1',
7417
+ warning: '#E65100'
7418
+ },
7419
+ badge: {
7420
+ lavender: '#E8DAFF',
7421
+ papayaWhip: '#FFEDD5',
7422
+ water: '#C7E3FF',
7423
+ paleBlue: '#B0F0E4',
7424
+ teaGreen: '#D5F7C2',
7425
+ lightBlue: '#ADD8E6'
7426
+ }
7427
+ };
7428
+ var dark = {
7429
+ brand: {
7430
+ primary: '#4C9EEB',
7431
+ secondary: '#E1E8ED',
7432
+ light: '#1A1A1A'
7433
+ },
7434
+ accent: {
7435
+ light_1: '#2A2E33',
7436
+ light_2: '#1F2327',
7437
+ light_3: '#F0F3F5',
7438
+ light_4: '#ECF0F4',
7439
+ light_5: '#F0F0F3',
7440
+ softBlue: '#2C3E50',
7441
+ extraSoftBlue: '#34495E',
7442
+ boldTransparent: '#D3D3D380',
7443
+ transparent: '#D3D3D34D',
7444
+ lightTransparent: '#D3D3D323'
7445
+ },
7446
+ "default": {
7447
+ primary: '#78B6F0',
7448
+ secondary: '#4F4F4F',
7449
+ tertiary: 'transparent',
7450
+ error: '#EF5350',
7451
+ success: '#66BB6A',
7452
+ warning: '#FFB74D',
7453
+ info: '#42A5F5'
7454
+ },
7455
+ disabled: {
7456
+ primary: '#3B4A58',
7457
+ secondary: '#3E3E3E',
7458
+ error: '#5B1B1B',
7459
+ success: '#1B3C1B',
7460
+ warning: '#5A3C1B',
7461
+ info: '#1A3C5A'
7462
+ },
7463
+ hover: {
7464
+ primary: '#5CA6F0',
7465
+ secondary: '#7A7A7A',
7466
+ tertiary: 'transparent',
7467
+ error: '#D32F2F',
7468
+ success: '#388E3C',
7469
+ warning: '#F57C00',
7470
+ info: '#1976D2'
7471
+ },
7472
+ border: {
7473
+ extraBold: '#8899A6',
7474
+ bold: '#5E5E5E',
7475
+ medium: '#4A4A4A',
7476
+ light: '#3A3A3A',
7477
+ extraLight: '#2B2B2B'
7478
+ },
7479
+ text: {
7480
+ dark: '#FFFFFF',
7481
+ medium: '#AAB8C2',
7482
+ light: '#8899A6',
7483
+ white: '#FFFFFF',
7484
+ success: '#81C784',
7485
+ error: '#E57373',
7486
+ info: '#64B5F6',
7487
+ warning: '#FFB74D'
7488
+ },
7489
+ badge: {
7490
+ lavender: '#7B5FA1',
7491
+ papayaWhip: '#A46A3E',
7492
+ water: '#5CA6F0',
7493
+ paleBlue: '#4BC9BC',
7494
+ teaGreen: '#7FBF7F',
7495
+ lightBlue: '#5DADE2'
7496
+ }
7497
+ };
7498
+ var getCurrentTheme = function getCurrentTheme() {
7499
+ if (typeof document !== 'undefined') {
7500
+ var isDarkClass = document.documentElement.classList.contains('dark');
7501
+ return isDarkClass ? 'dark' : 'light';
7502
+ }
7503
+ return 'light';
7504
+ };
7505
+ var colorVariables = new Proxy({}, {
7506
+ get: function get(_, prop) {
7507
+ var currentThemeName = getCurrentTheme();
7508
+ var currentTheme = themes[currentThemeName];
7509
+ return currentTheme[prop];
7510
+ }
7511
+ });
7512
+ var themes = {
7513
+ light: light,
7514
+ dark: dark
7515
+ };
7516
+
7517
7517
  exports.Badge = Badge;
7518
7518
  exports.Breadcrumbs = Breadcrumbs;
7519
7519
  exports.Button = ButtonComponent;