labsense-ui-kit 1.1.83 → 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.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +419 -577
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +422 -579
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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
|
|
3305
|
-
var
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
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
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
"$
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
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
|
|
3638
|
-
|
|
3639
|
-
|
|
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$
|
|
3773
|
-
var TooltipContainer = styled__default.div(_templateObject$
|
|
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$
|
|
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$
|
|
3847
|
-
var BreadCrum = styled__default.span(_templateObject$
|
|
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:
|
|
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 ?
|
|
3888
|
+
"$color": breadcrumb.navigateLink ? themeColors.text.dark : themeColors.text.medium
|
|
3911
3889
|
}, breadcrumb.text));
|
|
3912
3890
|
}));
|
|
3913
3891
|
};
|
|
3914
3892
|
|
|
3915
|
-
var _templateObject$
|
|
3916
|
-
var fontFaces = styled.css(_templateObject$
|
|
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$
|
|
3924
|
-
var spin = styled.keyframes(_templateObject$
|
|
3925
|
-
var Spinner = styled__default.div(_templateObject2$
|
|
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
|
-
|
|
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 ?
|
|
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 ||
|
|
4076
|
+
"$color": loaderProps.loaderColor || themeColors.text.white
|
|
4100
4077
|
})));
|
|
4101
4078
|
};
|
|
4102
4079
|
|
|
4103
|
-
var _templateObject$
|
|
4104
|
-
var InnerContent = styled__default.div(_templateObject$
|
|
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 " +
|
|
4172
|
-
borderHover: "2px solid " +
|
|
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 " +
|
|
4186
|
-
borderHover: "2px solid " +
|
|
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$
|
|
4336
|
-
var DatePickerContainer = styled__default.div(_templateObject$
|
|
4337
|
-
var CalendarContainer = styled__default.div(_templateObject2$
|
|
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$
|
|
4657
|
-
var OptionContainer = styled__default.div(_templateObject$
|
|
4658
|
-
var OptionItem = styled__default.div(_templateObject2$
|
|
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;
|
|
@@ -4843,8 +4821,8 @@ var OptionComponent = function OptionComponent(_ref9) {
|
|
|
4843
4821
|
}, NoOptionsText))));
|
|
4844
4822
|
};
|
|
4845
4823
|
|
|
4846
|
-
var _templateObject$
|
|
4847
|
-
var DropdownContainer = styled__default.div(_templateObject$
|
|
4824
|
+
var _templateObject$b, _templateObject2$8, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2;
|
|
4825
|
+
var DropdownContainer = styled__default.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n max-width: 100%;\n position: relative;\n max-height: ", ";\n"])), function (_ref) {
|
|
4848
4826
|
var $width = _ref.$width;
|
|
4849
4827
|
return $width || '100%';
|
|
4850
4828
|
}, function (_ref2) {
|
|
@@ -4854,7 +4832,7 @@ var DropdownContainer = styled__default.div(_templateObject$a || (_templateObjec
|
|
|
4854
4832
|
var $replaceLabel = _ref3.$replaceLabel;
|
|
4855
4833
|
return $replaceLabel ? 'calc(100% - 22px)' : '';
|
|
4856
4834
|
});
|
|
4857
|
-
var DropdownButton = styled__default.div(_templateObject2$
|
|
4835
|
+
var DropdownButton = styled__default.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n overflow: ", ";\n padding: ", ";\n gap: 8px;\n box-sizing: border-box;\n transition: all 0.3s ease;\n width: ", ";\n height: ", ";\n border: ", ";\n border-radius: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n background: ", ";\n color: ", ";\n font-family: NotoSans, sans-serif;\n font-weight: 400;\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref4) {
|
|
4858
4836
|
var $replaceLabel = _ref4.$replaceLabel;
|
|
4859
4837
|
return $replaceLabel ? 'auto' : '';
|
|
4860
4838
|
}, function (_ref5) {
|
|
@@ -5060,8 +5038,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5060
5038
|
var title = _ref31.title,
|
|
5061
5039
|
titleWeight = _ref31.titleWeight,
|
|
5062
5040
|
titleSize = _ref31.titleSize,
|
|
5063
|
-
|
|
5064
|
-
titleColor = _ref31$titleColor === void 0 ? colorVariables.text.dark : _ref31$titleColor,
|
|
5041
|
+
titleColor = _ref31.titleColor,
|
|
5065
5042
|
_ref31$labelText = _ref31.labelText,
|
|
5066
5043
|
labelText = _ref31$labelText === void 0 ? 'Select Cameras' : _ref31$labelText,
|
|
5067
5044
|
labelStyle = _ref31.labelStyle,
|
|
@@ -5074,8 +5051,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5074
5051
|
height = _ref31.height,
|
|
5075
5052
|
placeholder = _ref31.placeholder,
|
|
5076
5053
|
border = _ref31.border,
|
|
5077
|
-
|
|
5078
|
-
background = _ref31$background === void 0 ? colorVariables["default"].tertiary : _ref31$background,
|
|
5054
|
+
background = _ref31.background,
|
|
5079
5055
|
selectedOptionBackground = _ref31.selectedOptionBackground,
|
|
5080
5056
|
selectedOptionColor = _ref31.selectedOptionColor,
|
|
5081
5057
|
_ref31$menuBackground = _ref31.menuBackground,
|
|
@@ -5105,6 +5081,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5105
5081
|
searchBox = _ref31$searchBox === void 0 ? true : _ref31$searchBox,
|
|
5106
5082
|
_ref31$NoOptionsText = _ref31.NoOptionsText,
|
|
5107
5083
|
NoOptionsText = _ref31$NoOptionsText === void 0 ? 'No Options Available' : _ref31$NoOptionsText;
|
|
5084
|
+
var themeColors = useTheme();
|
|
5108
5085
|
var _useState = React.useState(false),
|
|
5109
5086
|
isOpen = _useState[0],
|
|
5110
5087
|
setIsOpen = _useState[1];
|
|
@@ -5138,7 +5115,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5138
5115
|
}
|
|
5139
5116
|
};
|
|
5140
5117
|
return React__default.createElement(Container$2, null, title && React__default.createElement(TitleText, {
|
|
5141
|
-
"$titleColor": titleColor,
|
|
5118
|
+
"$titleColor": titleColor || themeColors.text.dark,
|
|
5142
5119
|
"$titleSize": titleSize,
|
|
5143
5120
|
"$size": size,
|
|
5144
5121
|
"$titleWeight": titleWeight
|
|
@@ -5152,7 +5129,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5152
5129
|
"$height": height,
|
|
5153
5130
|
"$width": width,
|
|
5154
5131
|
"$border": border,
|
|
5155
|
-
"$background": background,
|
|
5132
|
+
"$background": background || themeColors["default"].tertiary,
|
|
5156
5133
|
"$borderRadius": borderRadius,
|
|
5157
5134
|
"$size": size,
|
|
5158
5135
|
"$color": labelColor,
|
|
@@ -5176,21 +5153,21 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5176
5153
|
}, React__default.createElement(Icon, {
|
|
5177
5154
|
icon: 'Close',
|
|
5178
5155
|
size: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.size) || 6,
|
|
5179
|
-
color: removeIcon !== null && removeIcon !== void 0 && removeIcon.color || type === 'remove' ?
|
|
5156
|
+
color: removeIcon !== null && removeIcon !== void 0 && removeIcon.color || type === 'remove' ? themeColors["default"].error : themeColors.brand.primary,
|
|
5180
5157
|
weight: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.weight) || '0'
|
|
5181
5158
|
})));
|
|
5182
5159
|
})) : React__default.createElement(TextWrapper, null, icon && React__default.createElement(Icon, {
|
|
5183
5160
|
icon: icon.name || 'Tag',
|
|
5184
5161
|
size: icon.size || 14,
|
|
5185
5162
|
weight: icon.weight || '1',
|
|
5186
|
-
color: icon.color ||
|
|
5163
|
+
color: icon.color || themeColors.text.medium
|
|
5187
5164
|
}), React__default.createElement(LabelText, {
|
|
5188
5165
|
"$labelStyle": labelStyle
|
|
5189
5166
|
}, labelText)), React__default.createElement(Icon, {
|
|
5190
5167
|
icon: isOpen ? 'UpArrow' : 'DownArrow',
|
|
5191
5168
|
size: 7,
|
|
5192
5169
|
weight: '2px',
|
|
5193
|
-
color:
|
|
5170
|
+
color: themeColors.text.medium
|
|
5194
5171
|
})), isOpen && React__default.createElement(DropdownMenu, {
|
|
5195
5172
|
"$width": optionWidth,
|
|
5196
5173
|
"$menuBackground": menuBackground,
|
|
@@ -5205,7 +5182,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5205
5182
|
optionColor: optionColor,
|
|
5206
5183
|
searchIcon: searchIcon,
|
|
5207
5184
|
searchbarTextColor: searchbarTextColor,
|
|
5208
|
-
searchBoxBorder: searchBoxBorder || "1px solid " +
|
|
5185
|
+
searchBoxBorder: searchBoxBorder || "1px solid " + themeColors.border.light,
|
|
5209
5186
|
searchBoxBorderRadius: searchBoxBorderRadius || '0px',
|
|
5210
5187
|
searchBoxBackground: searchBoxBackground,
|
|
5211
5188
|
searchBox: searchBox,
|
|
@@ -5213,9 +5190,9 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
|
|
|
5213
5190
|
}))));
|
|
5214
5191
|
};
|
|
5215
5192
|
|
|
5216
|
-
var _templateObject$
|
|
5217
|
-
var SelectedOptionsWrapper$1 = styled__default.div(_templateObject$
|
|
5218
|
-
var SelectedOptionDiv$1 = styled__default.div(_templateObject2$
|
|
5193
|
+
var _templateObject$c, _templateObject2$9, _templateObject3$6;
|
|
5194
|
+
var SelectedOptionsWrapper$1 = styled__default.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n"])));
|
|
5195
|
+
var SelectedOptionDiv$1 = styled__default.div(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n background: ", ";\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n gap: 6px;\n font-family: NotoSans, sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 12px;\n color: ", ";\n"])), function (_ref) {
|
|
5219
5196
|
var $selectedOptionBackground = _ref.$selectedOptionBackground,
|
|
5220
5197
|
$type = _ref.$type,
|
|
5221
5198
|
theme = _ref.theme;
|
|
@@ -5241,6 +5218,7 @@ var SelectedOption = function SelectedOption(_ref4) {
|
|
|
5241
5218
|
removeIconColor = _ref4.removeIconColor,
|
|
5242
5219
|
onChange = _ref4.onChange,
|
|
5243
5220
|
type = _ref4.type;
|
|
5221
|
+
var themeColors = useTheme();
|
|
5244
5222
|
var selectedOptionObjects = allOptions.filter(function (opt) {
|
|
5245
5223
|
return selectedOptions.includes(opt.value);
|
|
5246
5224
|
}).sort(function (a, b) {
|
|
@@ -5273,13 +5251,13 @@ var SelectedOption = function SelectedOption(_ref4) {
|
|
|
5273
5251
|
}, React__default.createElement(Icon, {
|
|
5274
5252
|
icon: 'Close',
|
|
5275
5253
|
size: 6,
|
|
5276
|
-
color: removeIconColor || type === 'remove' ?
|
|
5254
|
+
color: removeIconColor || type === 'remove' ? themeColors["default"].error : themeColors.brand.primary
|
|
5277
5255
|
})));
|
|
5278
5256
|
}));
|
|
5279
5257
|
};
|
|
5280
5258
|
|
|
5281
|
-
var _templateObject$
|
|
5282
|
-
var TitleText$1 = styled__default.label(_templateObject$
|
|
5259
|
+
var _templateObject$d, _templateObject2$a, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$5, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3;
|
|
5260
|
+
var TitleText$1 = styled__default.label(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose(["\n position: relative;\n width: max-content;\n white-space: nowrap;\n font-weight: ", ";\n ", "\n\n color: ", ";\n"])), function (_ref) {
|
|
5283
5261
|
var $titleWeight = _ref.$titleWeight;
|
|
5284
5262
|
return $titleWeight || 500;
|
|
5285
5263
|
}, function (_ref2) {
|
|
@@ -5318,7 +5296,7 @@ var TitleText$1 = styled__default.label(_templateObject$c || (_templateObject$c
|
|
|
5318
5296
|
return $titlecolor;
|
|
5319
5297
|
}
|
|
5320
5298
|
});
|
|
5321
|
-
var DropdownContainer$1 = styled__default.div(_templateObject2$
|
|
5299
|
+
var DropdownContainer$1 = styled__default.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n width: ", ";\n max-width: 100%;\n position: relative;\n gap: 8px;\n display: flex;\n"])), function (_ref4) {
|
|
5322
5300
|
var $width = _ref4.$width;
|
|
5323
5301
|
return $width || '100%';
|
|
5324
5302
|
});
|
|
@@ -5512,8 +5490,7 @@ var SelectOption = function SelectOption(_ref36) {
|
|
|
5512
5490
|
searchIcon = _ref36.searchIcon,
|
|
5513
5491
|
_ref36$placeholderTex = _ref36.placeholderText,
|
|
5514
5492
|
placeholderText = _ref36$placeholderTex === void 0 ? 'Search...' : _ref36$placeholderTex,
|
|
5515
|
-
|
|
5516
|
-
iconColor = _ref36$iconColor === void 0 ? colorVariables.text.medium : _ref36$iconColor,
|
|
5493
|
+
iconColor = _ref36.iconColor,
|
|
5517
5494
|
placeholderColor = _ref36.placeholderColor,
|
|
5518
5495
|
inputColor = _ref36.inputColor,
|
|
5519
5496
|
_ref36$iconSize = _ref36.iconSize,
|
|
@@ -5521,6 +5498,7 @@ var SelectOption = function SelectOption(_ref36) {
|
|
|
5521
5498
|
_ref36$allowDeselect = _ref36.allowDeselect,
|
|
5522
5499
|
allowDeselect = _ref36$allowDeselect === void 0 ? true : _ref36$allowDeselect,
|
|
5523
5500
|
titleRightNode = _ref36.titleRightNode;
|
|
5501
|
+
var themeColors = useTheme();
|
|
5524
5502
|
var _useState = React.useState(false),
|
|
5525
5503
|
dropUp = _useState[0],
|
|
5526
5504
|
setDropUp = _useState[1];
|
|
@@ -5628,19 +5606,19 @@ var SelectOption = function SelectOption(_ref36) {
|
|
|
5628
5606
|
icon: icon.name,
|
|
5629
5607
|
size: icon.size || 14,
|
|
5630
5608
|
weight: icon.weight || '1px',
|
|
5631
|
-
color: icon.color ||
|
|
5609
|
+
color: icon.color || themeColors.text.medium
|
|
5632
5610
|
}), label ? React__default.createElement(LabelText$1, {
|
|
5633
5611
|
color: color,
|
|
5634
5612
|
"$disabled": disabled,
|
|
5635
5613
|
"$size": size
|
|
5636
5614
|
}, label) : React__default.createElement(LabelText$1, {
|
|
5637
5615
|
"$fontStyle": fontStyle ? fontStyle : 'italic',
|
|
5638
|
-
color:
|
|
5616
|
+
color: themeColors.text.light,
|
|
5639
5617
|
"$size": size
|
|
5640
5618
|
}, labelText), React__default.createElement(Icon, {
|
|
5641
5619
|
icon: isOpen ? 'UpArrow' : 'DownArrow',
|
|
5642
5620
|
size: 7,
|
|
5643
|
-
color:
|
|
5621
|
+
color: themeColors.text.medium
|
|
5644
5622
|
})), isOpen && React__default.createElement(DropdownMenu$1, {
|
|
5645
5623
|
"$width": width,
|
|
5646
5624
|
"$menuBackground": menuBackground,
|
|
@@ -5656,7 +5634,7 @@ var SelectOption = function SelectOption(_ref36) {
|
|
|
5656
5634
|
icon: 'Search',
|
|
5657
5635
|
size: iconSize,
|
|
5658
5636
|
weight: (searchIcon === null || searchIcon === void 0 ? void 0 : searchIcon.weight) || '0px',
|
|
5659
|
-
color: iconColor
|
|
5637
|
+
color: iconColor || themeColors.text.medium
|
|
5660
5638
|
}), React__default.createElement(SearchBar$1, {
|
|
5661
5639
|
ref: searchInputRef,
|
|
5662
5640
|
type: 'text',
|
|
@@ -5680,139 +5658,6 @@ var SelectOption = function SelectOption(_ref36) {
|
|
|
5680
5658
|
}) : React__default.createElement(NoOptions, null, NoOptionsText)))));
|
|
5681
5659
|
};
|
|
5682
5660
|
|
|
5683
|
-
var useClickOutside = function useClickOutside(elRef, elCallback) {
|
|
5684
|
-
var callbackRef = React.useRef(elCallback);
|
|
5685
|
-
callbackRef.current = elCallback;
|
|
5686
|
-
React.useEffect(function () {
|
|
5687
|
-
var handleClickOutside = function handleClickOutside(eve) {
|
|
5688
|
-
var _elRef$current;
|
|
5689
|
-
if (!(elRef !== null && elRef !== void 0 && (_elRef$current = elRef.current) !== null && _elRef$current !== void 0 && _elRef$current.contains(eve.target))) {
|
|
5690
|
-
callbackRef.current(eve);
|
|
5691
|
-
}
|
|
5692
|
-
};
|
|
5693
|
-
document.addEventListener('click', handleClickOutside, true);
|
|
5694
|
-
return function () {
|
|
5695
|
-
document.removeEventListener('click', handleClickOutside, true);
|
|
5696
|
-
};
|
|
5697
|
-
}, [elCallback, elRef]);
|
|
5698
|
-
};
|
|
5699
|
-
|
|
5700
|
-
var _templateObject$d, _templateObject2$a;
|
|
5701
|
-
var ModalOverlay = styled__default.div(_templateObject$d || (_templateObject$d = _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"])));
|
|
5702
|
-
var ModalContainer = styled__default.div(_templateObject2$a || (_templateObject2$a = _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"])), colorVariables.accent.light_1, function (_ref) {
|
|
5703
|
-
var $maxWidth = _ref.$maxWidth;
|
|
5704
|
-
return $maxWidth ? $maxWidth : '400px';
|
|
5705
|
-
});
|
|
5706
|
-
var Modal = function Modal(_ref2) {
|
|
5707
|
-
var isOpen = _ref2.isOpen,
|
|
5708
|
-
maxWidth = _ref2.maxWidth,
|
|
5709
|
-
children = _ref2.children;
|
|
5710
|
-
if (!isOpen) return null;
|
|
5711
|
-
return React__default.createElement(ModalOverlay, null, React__default.createElement(ModalContainer, {
|
|
5712
|
-
"$maxWidth": maxWidth,
|
|
5713
|
-
onClick: function onClick(e) {
|
|
5714
|
-
return e.stopPropagation();
|
|
5715
|
-
}
|
|
5716
|
-
}, children));
|
|
5717
|
-
};
|
|
5718
|
-
var useCustomModal = function useCustomModal(_ref3) {
|
|
5719
|
-
var maxWidth = _ref3.maxWidth;
|
|
5720
|
-
var _useState = React.useState(false),
|
|
5721
|
-
isOpen = _useState[0],
|
|
5722
|
-
setIsOpen = _useState[1];
|
|
5723
|
-
var createModal = function createModal(content) {
|
|
5724
|
-
return React__default.createElement(Modal, {
|
|
5725
|
-
isOpen: isOpen,
|
|
5726
|
-
maxWidth: maxWidth
|
|
5727
|
-
}, content);
|
|
5728
|
-
};
|
|
5729
|
-
return {
|
|
5730
|
-
setIsOpen: setIsOpen,
|
|
5731
|
-
createModal: createModal
|
|
5732
|
-
};
|
|
5733
|
-
};
|
|
5734
|
-
|
|
5735
|
-
var useNotification = function useNotification() {
|
|
5736
|
-
var sendNotification = function sendNotification(_ref) {
|
|
5737
|
-
var type = _ref.type,
|
|
5738
|
-
message = _ref.message,
|
|
5739
|
-
promiseConfig = _ref.promiseConfig,
|
|
5740
|
-
customStyle = _ref.customStyle,
|
|
5741
|
-
_ref$clearCurrent = _ref.clearCurrent,
|
|
5742
|
-
clearCurrent = _ref$clearCurrent === void 0 ? false : _ref$clearCurrent;
|
|
5743
|
-
if (clearCurrent) {
|
|
5744
|
-
reactHotToast.toast.dismiss();
|
|
5745
|
-
}
|
|
5746
|
-
switch (type) {
|
|
5747
|
-
case 'success':
|
|
5748
|
-
reactHotToast.toast.success(message);
|
|
5749
|
-
break;
|
|
5750
|
-
case 'error':
|
|
5751
|
-
reactHotToast.toast.error(message);
|
|
5752
|
-
break;
|
|
5753
|
-
case 'info':
|
|
5754
|
-
reactHotToast.toast(message, {
|
|
5755
|
-
icon: React__default.createElement(Container, {
|
|
5756
|
-
"$minWidth": '20px',
|
|
5757
|
-
"$height": '20px',
|
|
5758
|
-
"$width": '20px',
|
|
5759
|
-
"$alignItems": 'center',
|
|
5760
|
-
"$justifyContent": 'center',
|
|
5761
|
-
"$borderRadius": '100%',
|
|
5762
|
-
"$background": colorVariables.disabled.info
|
|
5763
|
-
}, React__default.createElement(Icon, {
|
|
5764
|
-
icon: 'InformationFilled',
|
|
5765
|
-
weight: '0px',
|
|
5766
|
-
size: 20,
|
|
5767
|
-
color: colorVariables["default"].info
|
|
5768
|
-
})),
|
|
5769
|
-
style: {
|
|
5770
|
-
borderRadius: '8px',
|
|
5771
|
-
background: colorVariables.text.white,
|
|
5772
|
-
color: '#363636',
|
|
5773
|
-
maxWidth: '648px'
|
|
5774
|
-
}
|
|
5775
|
-
});
|
|
5776
|
-
break;
|
|
5777
|
-
case 'promise':
|
|
5778
|
-
if (promiseConfig) {
|
|
5779
|
-
reactHotToast.toast.promise(promiseConfig.promise, {
|
|
5780
|
-
loading: promiseConfig.loading,
|
|
5781
|
-
success: promiseConfig.success,
|
|
5782
|
-
error: promiseConfig.error
|
|
5783
|
-
}, {
|
|
5784
|
-
style: {
|
|
5785
|
-
minWidth: '300px'
|
|
5786
|
-
}
|
|
5787
|
-
});
|
|
5788
|
-
}
|
|
5789
|
-
break;
|
|
5790
|
-
case 'custom':
|
|
5791
|
-
reactHotToast.toast(message, {
|
|
5792
|
-
icon: React__default.createElement(Icon, {
|
|
5793
|
-
icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
|
|
5794
|
-
size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
|
|
5795
|
-
weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
|
|
5796
|
-
}),
|
|
5797
|
-
style: {
|
|
5798
|
-
background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
|
|
5799
|
-
color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
|
|
5800
|
-
}
|
|
5801
|
-
});
|
|
5802
|
-
break;
|
|
5803
|
-
default:
|
|
5804
|
-
console.error('Invalid notification type or missing configuration!');
|
|
5805
|
-
}
|
|
5806
|
-
};
|
|
5807
|
-
return {
|
|
5808
|
-
sendNotification: sendNotification
|
|
5809
|
-
};
|
|
5810
|
-
};
|
|
5811
|
-
|
|
5812
|
-
var useTheme = function useTheme() {
|
|
5813
|
-
return styled.useTheme();
|
|
5814
|
-
};
|
|
5815
|
-
|
|
5816
5661
|
var _templateObject$e, _templateObject2$b;
|
|
5817
5662
|
var SearchContainer$2 = styled__default.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%;\n background: ", ";\n border: ", ";\n border-radius: ", ";\n padding: 5.5px 8px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n // cursor: ", ";\n transition: all 0.3s ease;\n\n &:focus-within {\n border: ", ";\n }\n"])), function (_ref) {
|
|
5818
5663
|
var $background = _ref.$background,
|
|
@@ -5851,13 +5696,13 @@ var SearchBox = function SearchBox(_ref9) {
|
|
|
5851
5696
|
placeholder = _ref9$placeholder === void 0 ? 'Search...' : _ref9$placeholder,
|
|
5852
5697
|
border = _ref9.border,
|
|
5853
5698
|
borderRadius = _ref9.borderRadius,
|
|
5854
|
-
|
|
5855
|
-
iconColor = _ref9$iconColor === void 0 ? colorVariables.text.medium : _ref9$iconColor,
|
|
5699
|
+
iconColor = _ref9.iconColor,
|
|
5856
5700
|
placeholderColor = _ref9.placeholderColor,
|
|
5857
5701
|
inputColor = _ref9.inputColor,
|
|
5858
5702
|
_ref9$iconSize = _ref9.iconSize,
|
|
5859
5703
|
iconSize = _ref9$iconSize === void 0 ? 16 : _ref9$iconSize,
|
|
5860
5704
|
background = _ref9.background;
|
|
5705
|
+
var themeColors = useTheme();
|
|
5861
5706
|
var _useState = React.useState(false),
|
|
5862
5707
|
isFocused = _useState[0],
|
|
5863
5708
|
setIsFocused = _useState[1];
|
|
@@ -5869,7 +5714,7 @@ var SearchBox = function SearchBox(_ref9) {
|
|
|
5869
5714
|
}, React__default.createElement(Icon, {
|
|
5870
5715
|
icon: 'Search',
|
|
5871
5716
|
size: iconSize,
|
|
5872
|
-
color: iconColor,
|
|
5717
|
+
color: iconColor || themeColors.text.medium,
|
|
5873
5718
|
weight: '0px'
|
|
5874
5719
|
}), React__default.createElement(SearchBar$2, {
|
|
5875
5720
|
type: 'text',
|
|
@@ -6005,12 +5850,10 @@ var TextField = function TextField(_ref14) {
|
|
|
6005
5850
|
onChange = _ref14.onChange,
|
|
6006
5851
|
_ref14$size = _ref14.size,
|
|
6007
5852
|
size = _ref14$size === void 0 ? 'medium' : _ref14$size,
|
|
6008
|
-
|
|
6009
|
-
color = _ref14$color === void 0 ? colorVariables.text.dark : _ref14$color,
|
|
5853
|
+
color = _ref14.color,
|
|
6010
5854
|
_ref14$padding = _ref14.padding,
|
|
6011
5855
|
padding = _ref14$padding === void 0 ? '0px' : _ref14$padding,
|
|
6012
|
-
|
|
6013
|
-
titlecolor = _ref14$titlecolor === void 0 ? colorVariables.text.dark : _ref14$titlecolor,
|
|
5856
|
+
titlecolor = _ref14.titlecolor,
|
|
6014
5857
|
icon = _ref14.icon,
|
|
6015
5858
|
_ref14$iconsize = _ref14.iconsize,
|
|
6016
5859
|
iconsize = _ref14$iconsize === void 0 ? 18 : _ref14$iconsize,
|
|
@@ -6018,10 +5861,10 @@ var TextField = function TextField(_ref14) {
|
|
|
6018
5861
|
iconcolor = _ref14.iconcolor,
|
|
6019
5862
|
_ref14$required = _ref14.required,
|
|
6020
5863
|
required = _ref14$required === void 0 ? false : _ref14$required,
|
|
6021
|
-
|
|
6022
|
-
background = _ref14$background === void 0 ? colorVariables["default"].tertiary : _ref14$background,
|
|
5864
|
+
background = _ref14.background,
|
|
6023
5865
|
onEnter = _ref14.onEnter,
|
|
6024
5866
|
titleRightNode = _ref14.titleRightNode;
|
|
5867
|
+
var themeColors = useTheme();
|
|
6025
5868
|
var _useState = React.useState(disabled),
|
|
6026
5869
|
isDisabled = _useState[0],
|
|
6027
5870
|
setIsDisabled = _useState[1];
|
|
@@ -6052,7 +5895,7 @@ var TextField = function TextField(_ref14) {
|
|
|
6052
5895
|
"$size": size,
|
|
6053
5896
|
"$fontWeight": titleWeight,
|
|
6054
5897
|
htmlFor: title,
|
|
6055
|
-
"$titlecolor": titlecolor
|
|
5898
|
+
"$titlecolor": titlecolor || themeColors.text.dark
|
|
6056
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, {
|
|
6057
5900
|
type: inputType || 'text',
|
|
6058
5901
|
"$type": type,
|
|
@@ -6063,8 +5906,8 @@ var TextField = function TextField(_ref14) {
|
|
|
6063
5906
|
"$disabled": isDisabled,
|
|
6064
5907
|
onChange: onChange,
|
|
6065
5908
|
"$size": size,
|
|
6066
|
-
"$color": color,
|
|
6067
|
-
"$background": background,
|
|
5909
|
+
"$color": color || themeColors.text.dark,
|
|
5910
|
+
"$background": background || themeColors["default"].tertiary,
|
|
6068
5911
|
readOnly: onChange === undefined || isDisabled ? true : false,
|
|
6069
5912
|
onKeyDown: function onKeyDown(e) {
|
|
6070
5913
|
if (e.key === 'Enter') {
|
|
@@ -6080,14 +5923,14 @@ var TextField = function TextField(_ref14) {
|
|
|
6080
5923
|
icon: inputType === 'password' ? 'CloseEye' : 'OpenEye',
|
|
6081
5924
|
size: iconsize,
|
|
6082
5925
|
weight: iconweight,
|
|
6083
|
-
color: iconcolor ||
|
|
5926
|
+
color: iconcolor || themeColors["default"].primary
|
|
6084
5927
|
})), icon && type !== 'password' && React__default.createElement(IconWrapper$1, {
|
|
6085
5928
|
onClick: handleToggleDisabled
|
|
6086
5929
|
}, React__default.createElement(Icon, {
|
|
6087
5930
|
icon: icon,
|
|
6088
5931
|
size: iconsize,
|
|
6089
5932
|
weight: iconweight,
|
|
6090
|
-
color: iconcolor ||
|
|
5933
|
+
color: iconcolor || themeColors["default"].primary
|
|
6091
5934
|
}))));
|
|
6092
5935
|
};
|
|
6093
5936
|
|
|
@@ -6160,16 +6003,14 @@ var TextArea = function TextArea(_ref12) {
|
|
|
6160
6003
|
onChange = _ref12.onChange,
|
|
6161
6004
|
_ref12$size = _ref12.size,
|
|
6162
6005
|
size = _ref12$size === void 0 ? 'medium' : _ref12$size,
|
|
6163
|
-
|
|
6164
|
-
color = _ref12$color === void 0 ? colorVariables.text.dark : _ref12$color,
|
|
6006
|
+
color = _ref12.color,
|
|
6165
6007
|
_ref12$padding = _ref12.padding,
|
|
6166
6008
|
padding = _ref12$padding === void 0 ? '0px' : _ref12$padding,
|
|
6167
|
-
|
|
6168
|
-
titlecolor = _ref12$titlecolor === void 0 ? colorVariables.text.dark : _ref12$titlecolor,
|
|
6009
|
+
titlecolor = _ref12.titlecolor,
|
|
6169
6010
|
_ref12$required = _ref12.required,
|
|
6170
6011
|
required = _ref12$required === void 0 ? false : _ref12$required,
|
|
6171
|
-
|
|
6172
|
-
|
|
6012
|
+
background = _ref12.background;
|
|
6013
|
+
var themeColors = useTheme();
|
|
6173
6014
|
var _useState = React.useState(disabled),
|
|
6174
6015
|
isDisabled = _useState[0],
|
|
6175
6016
|
setIsDisabled = _useState[1];
|
|
@@ -6182,7 +6023,7 @@ var TextArea = function TextArea(_ref12) {
|
|
|
6182
6023
|
"$size": size,
|
|
6183
6024
|
"$fontWeight": titleWeight,
|
|
6184
6025
|
htmlFor: title,
|
|
6185
|
-
"$titlecolor": titlecolor
|
|
6026
|
+
"$titlecolor": titlecolor || themeColors.text.dark
|
|
6186
6027
|
}, title, required && React__default.createElement(Asterisk$1, null, "*")), React__default.createElement(TextAreaComponent, {
|
|
6187
6028
|
name: title,
|
|
6188
6029
|
id: title,
|
|
@@ -6191,8 +6032,8 @@ var TextArea = function TextArea(_ref12) {
|
|
|
6191
6032
|
"$disabled": isDisabled,
|
|
6192
6033
|
onChange: onChange,
|
|
6193
6034
|
"$size": size,
|
|
6194
|
-
"$color": color,
|
|
6195
|
-
"$background": background
|
|
6035
|
+
"$color": color || themeColors.text.dark,
|
|
6036
|
+
"$background": background || themeColors["default"].tertiary
|
|
6196
6037
|
}));
|
|
6197
6038
|
};
|
|
6198
6039
|
|
|
@@ -6330,6 +6171,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
|
|
|
6330
6171
|
_ref16$searchBox = _ref16.searchBox,
|
|
6331
6172
|
searchBox = _ref16$searchBox === void 0 ? true : _ref16$searchBox,
|
|
6332
6173
|
NoOptionsText = _ref16.NoOptionsText;
|
|
6174
|
+
var themeColors = useTheme();
|
|
6333
6175
|
var _useTranslation = reactI18next.useTranslation(),
|
|
6334
6176
|
t = _useTranslation.t;
|
|
6335
6177
|
var searchBoxRef = React.useRef(null);
|
|
@@ -6361,7 +6203,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
|
|
|
6361
6203
|
"$position": 'relative'
|
|
6362
6204
|
}, searchBox && React__default.createElement(SearchContainer$3, {
|
|
6363
6205
|
"$borderBottom": searchBoxBorder,
|
|
6364
|
-
"$background": isSearchBarEnabled ?
|
|
6206
|
+
"$background": isSearchBarEnabled ? themeColors.text.white : themeColors.accent.light_1,
|
|
6365
6207
|
"$borderRadius": searchBoxBorderRadius,
|
|
6366
6208
|
ref: searchBoxRef
|
|
6367
6209
|
}, React__default.createElement(Container, {
|
|
@@ -6381,7 +6223,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
|
|
|
6381
6223
|
value: internalSearchQuery,
|
|
6382
6224
|
onChange: handleSearchChange,
|
|
6383
6225
|
"$inputColor": searchbarTextColor,
|
|
6384
|
-
"$placeholderColor": isSearchBarEnabled ?
|
|
6226
|
+
"$placeholderColor": isSearchBarEnabled ? themeColors.text.light : themeColors.text.medium,
|
|
6385
6227
|
disabled: !!searchQuery
|
|
6386
6228
|
})), (internalSearchQuery || searchQuery) && React__default.createElement(Icon, {
|
|
6387
6229
|
icon: 'Close',
|
|
@@ -6398,7 +6240,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref16) {
|
|
|
6398
6240
|
}, React__default.createElement(TotalOptionsHeader, null, React__default.createElement(Span, {
|
|
6399
6241
|
"$fontSize": '12px',
|
|
6400
6242
|
"$fontWeight": '400',
|
|
6401
|
-
"$color":
|
|
6243
|
+
"$color": themeColors.text.light
|
|
6402
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) {
|
|
6403
6245
|
return React__default.createElement(OptionItem$1, {
|
|
6404
6246
|
key: option.value,
|
|
@@ -6477,10 +6319,10 @@ var CheckBox = function CheckBox(_ref11) {
|
|
|
6477
6319
|
fontSize = _ref11$fontSize === void 0 ? '14px' : _ref11$fontSize,
|
|
6478
6320
|
_ref11$fontWeight = _ref11.fontWeight,
|
|
6479
6321
|
fontWeight = _ref11$fontWeight === void 0 ? '500' : _ref11$fontWeight,
|
|
6480
|
-
|
|
6481
|
-
color = _ref11$color === void 0 ? colorVariables.text.medium : _ref11$color,
|
|
6322
|
+
color = _ref11.color,
|
|
6482
6323
|
_ref11$borderSize = _ref11.borderSize,
|
|
6483
6324
|
borderSize = _ref11$borderSize === void 0 ? 1 : _ref11$borderSize;
|
|
6325
|
+
var themeColors = useTheme();
|
|
6484
6326
|
var safeId = React.useId();
|
|
6485
6327
|
return React__default.createElement(Container, {
|
|
6486
6328
|
"$gap": gap,
|
|
@@ -6507,7 +6349,7 @@ var CheckBox = function CheckBox(_ref11) {
|
|
|
6507
6349
|
"$borderSize": borderSize
|
|
6508
6350
|
})), label && React__default.createElement(LabelSpan, {
|
|
6509
6351
|
"$fontSize": fontSize,
|
|
6510
|
-
"$color": color,
|
|
6352
|
+
"$color": color || themeColors.text.medium,
|
|
6511
6353
|
"$fontWeight": fontWeight,
|
|
6512
6354
|
onClick: function onClick() {
|
|
6513
6355
|
if (!disabled) _onChange(!checked);
|
|
@@ -6613,10 +6455,10 @@ var Loader = function Loader(_ref4) {
|
|
|
6613
6455
|
var title = _ref4.title,
|
|
6614
6456
|
_ref4$size = _ref4.size,
|
|
6615
6457
|
size = _ref4$size === void 0 ? 32 : _ref4$size,
|
|
6616
|
-
|
|
6617
|
-
color = _ref4$color === void 0 ? colorVariables["default"].primary : _ref4$color,
|
|
6458
|
+
color = _ref4.color,
|
|
6618
6459
|
titleColor = _ref4.titleColor,
|
|
6619
6460
|
titleSize = _ref4.titleSize;
|
|
6461
|
+
var themeColors = useTheme();
|
|
6620
6462
|
return React__default.createElement(Container, {
|
|
6621
6463
|
"$alignItems": 'center',
|
|
6622
6464
|
"$justifyContent": 'center',
|
|
@@ -6626,7 +6468,7 @@ var Loader = function Loader(_ref4) {
|
|
|
6626
6468
|
"$gap": '12px'
|
|
6627
6469
|
}, React__default.createElement(Container, null, React__default.createElement(Spinner$1, {
|
|
6628
6470
|
"$size": size,
|
|
6629
|
-
"$color": color
|
|
6471
|
+
"$color": color || themeColors["default"].primary
|
|
6630
6472
|
})), title && React__default.createElement(Container, {
|
|
6631
6473
|
"$flexDirection": 'column',
|
|
6632
6474
|
"$gap": '12px'
|
|
@@ -6657,6 +6499,7 @@ var Pagination = function Pagination(_ref4) {
|
|
|
6657
6499
|
itemsPerPage = _ref4.itemsPerPage,
|
|
6658
6500
|
onPageChange = _ref4.onPageChange,
|
|
6659
6501
|
onItemsPerPageChange = _ref4.onItemsPerPageChange;
|
|
6502
|
+
var themeColors = useTheme();
|
|
6660
6503
|
var _useTranslation = reactI18next.useTranslation(),
|
|
6661
6504
|
t = _useTranslation.t;
|
|
6662
6505
|
var _useNotification = useNotification(),
|
|
@@ -6739,7 +6582,7 @@ var Pagination = function Pagination(_ref4) {
|
|
|
6739
6582
|
padding: '7px',
|
|
6740
6583
|
variant: 'secondary',
|
|
6741
6584
|
borderRadius: '4px',
|
|
6742
|
-
color:
|
|
6585
|
+
color: themeColors.text.white
|
|
6743
6586
|
}), React__default.createElement(ButtonComponent, {
|
|
6744
6587
|
onClick: function onClick() {
|
|
6745
6588
|
return handlePageChange(currentPage + 1);
|
|
@@ -6751,7 +6594,7 @@ var Pagination = function Pagination(_ref4) {
|
|
|
6751
6594
|
padding: '7px',
|
|
6752
6595
|
variant: 'secondary',
|
|
6753
6596
|
borderRadius: '4px',
|
|
6754
|
-
color:
|
|
6597
|
+
color: themeColors.text.white
|
|
6755
6598
|
}))), React__default.createElement(Container, {
|
|
6756
6599
|
"$gap": '16px',
|
|
6757
6600
|
"$justifyContent": 'center',
|
|
@@ -6790,12 +6633,11 @@ var CircularProgress = function CircularProgress(_ref) {
|
|
|
6790
6633
|
var threshold = _ref.threshold,
|
|
6791
6634
|
totalCapacity = _ref.totalCapacity,
|
|
6792
6635
|
usedCapacity = _ref.usedCapacity,
|
|
6793
|
-
|
|
6794
|
-
progressColor = _ref$progressColor === void 0 ? colorVariables["default"].primary : _ref$progressColor,
|
|
6636
|
+
progressColor = _ref.progressColor,
|
|
6795
6637
|
_ref$thresholdColor = _ref.thresholdColor,
|
|
6796
6638
|
thresholdColor = _ref$thresholdColor === void 0 ? 'rgba(255, 0, 0, 0.2)' : _ref$thresholdColor,
|
|
6797
|
-
|
|
6798
|
-
|
|
6639
|
+
trackColor = _ref.trackColor;
|
|
6640
|
+
var themeColors = useTheme();
|
|
6799
6641
|
var radius = (viewBoxSize - strokeWidth) / 2;
|
|
6800
6642
|
var circumference = 2 * Math.PI * radius;
|
|
6801
6643
|
var parseVolumeData = function parseVolumeData(threshold, totalCapacity, usedCapacity) {
|
|
@@ -6825,7 +6667,7 @@ var CircularProgress = function CircularProgress(_ref) {
|
|
|
6825
6667
|
cx: viewBoxSize / 2,
|
|
6826
6668
|
cy: viewBoxSize / 2,
|
|
6827
6669
|
r: radius,
|
|
6828
|
-
stroke: trackColor,
|
|
6670
|
+
stroke: trackColor || themeColors.accent.softBlue,
|
|
6829
6671
|
strokeWidth: strokeWidth,
|
|
6830
6672
|
fill: 'none'
|
|
6831
6673
|
}), processedThreshold > progress && React__default.createElement("circle", {
|
|
@@ -6843,7 +6685,7 @@ var CircularProgress = function CircularProgress(_ref) {
|
|
|
6843
6685
|
cx: viewBoxSize / 2,
|
|
6844
6686
|
cy: viewBoxSize / 2,
|
|
6845
6687
|
r: radius,
|
|
6846
|
-
stroke: progressColor,
|
|
6688
|
+
stroke: progressColor || themeColors["default"].primary,
|
|
6847
6689
|
strokeWidth: strokeWidth,
|
|
6848
6690
|
fill: 'none',
|
|
6849
6691
|
strokeDasharray: circumference,
|
|
@@ -6854,7 +6696,7 @@ var CircularProgress = function CircularProgress(_ref) {
|
|
|
6854
6696
|
"$position": 'absolute',
|
|
6855
6697
|
"$fontSize": '12px',
|
|
6856
6698
|
"$fontWeight": '500',
|
|
6857
|
-
"$color": progressColor
|
|
6699
|
+
"$color": progressColor || themeColors["default"].primary
|
|
6858
6700
|
}, progress + "%"));
|
|
6859
6701
|
};
|
|
6860
6702
|
|
|
@@ -6865,6 +6707,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
6865
6707
|
progressColor = _ref.progressColor,
|
|
6866
6708
|
thresholdColor = _ref.thresholdColor,
|
|
6867
6709
|
trackColor = _ref.trackColor;
|
|
6710
|
+
var themeColors = useTheme();
|
|
6868
6711
|
var parseVolumeData = function parseVolumeData(threshold, totalCapacity, usedCapacity) {
|
|
6869
6712
|
var totalCapacityGB = totalCapacity;
|
|
6870
6713
|
var usedCapacityGB = usedCapacity;
|
|
@@ -6883,13 +6726,13 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
6883
6726
|
"$width": '100%',
|
|
6884
6727
|
"$height": '100%',
|
|
6885
6728
|
"$borderRadius": '100px',
|
|
6886
|
-
"$background": trackColor != null ? trackColor :
|
|
6729
|
+
"$background": trackColor != null ? trackColor : themeColors.accent.softBlue,
|
|
6887
6730
|
"$overflow": 'hidden',
|
|
6888
6731
|
"$position": 'relative'
|
|
6889
6732
|
}, React__default.createElement(Container, {
|
|
6890
6733
|
"$width": progress + "%",
|
|
6891
6734
|
"$height": '100%',
|
|
6892
|
-
"$background": progressColor != null ? progressColor :
|
|
6735
|
+
"$background": progressColor != null ? progressColor : themeColors["default"].primary,
|
|
6893
6736
|
"$transition": 'width 0.5s ease-in-out'
|
|
6894
6737
|
}), Processed_threshold !== undefined && Processed_threshold > progress && React__default.createElement(Container, {
|
|
6895
6738
|
"$width": thresholdWidth + "%",
|
|
@@ -7222,6 +7065,7 @@ var Table = function Table(_ref6) {
|
|
|
7222
7065
|
loading = _ref6.loading,
|
|
7223
7066
|
_ref6$noDataText = _ref6.noDataText,
|
|
7224
7067
|
noDataText = _ref6$noDataText === void 0 ? 'No Data Found!' : _ref6$noDataText;
|
|
7068
|
+
var themeColors = useTheme();
|
|
7225
7069
|
var rowconfig = tableObject.rowconfig,
|
|
7226
7070
|
tableheaderconfig = tableObject.tableheaderconfig;
|
|
7227
7071
|
var _useState = React.useState(new Set()),
|
|
@@ -7342,14 +7186,14 @@ var Table = function Table(_ref6) {
|
|
|
7342
7186
|
"$padding": '9px 12px',
|
|
7343
7187
|
"$minHeight": '30px',
|
|
7344
7188
|
"$alignItems": 'center',
|
|
7345
|
-
"$background":
|
|
7189
|
+
"$background": themeColors.accent.light_1,
|
|
7346
7190
|
onClick: function onClick() {
|
|
7347
7191
|
return toggleRoleVisibility(role);
|
|
7348
7192
|
},
|
|
7349
7193
|
"$cursor": 'pointer',
|
|
7350
|
-
"$border": "1px solid " +
|
|
7194
|
+
"$border": "1px solid " + themeColors.border.extraLight
|
|
7351
7195
|
}, React__default.createElement(Span, {
|
|
7352
|
-
"$color":
|
|
7196
|
+
"$color": themeColors.text.medium,
|
|
7353
7197
|
"$fontSize": '12px',
|
|
7354
7198
|
"$lineHeight": '100%'
|
|
7355
7199
|
}, role, " (", rows.length, ")"), React__default.createElement(Icon, {
|
|
@@ -7443,6 +7287,7 @@ var Tabs = function Tabs(_ref14) {
|
|
|
7443
7287
|
overflow = _ref14.overflow,
|
|
7444
7288
|
bordeBottom = _ref14.bordeBottom,
|
|
7445
7289
|
tabRightNode = _ref14.tabRightNode;
|
|
7290
|
+
var themeColors = useTheme();
|
|
7446
7291
|
return React__default.createElement(Container$4, {
|
|
7447
7292
|
"$gap": gap,
|
|
7448
7293
|
"$border": border,
|
|
@@ -7462,7 +7307,7 @@ var Tabs = function Tabs(_ref14) {
|
|
|
7462
7307
|
"$active": activeTab === tab.title,
|
|
7463
7308
|
"$headerHeight": headerHeight
|
|
7464
7309
|
}, tab.icon && React__default.createElement(Icon, {
|
|
7465
|
-
color: activeTab === tab.title ? tab.activeColor :
|
|
7310
|
+
color: activeTab === tab.title ? tab.activeColor : themeColors.text.medium,
|
|
7466
7311
|
icon: tab.icon,
|
|
7467
7312
|
size: tab.iconSize,
|
|
7468
7313
|
weight: tab.iconWeight
|
|
@@ -7480,16 +7325,14 @@ var Tabs = function Tabs(_ref14) {
|
|
|
7480
7325
|
var InternalTabs = function InternalTabs(_ref) {
|
|
7481
7326
|
var tabs = _ref.tabs,
|
|
7482
7327
|
activeTab = _ref.activeTab,
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
activeTabBg = _ref$activeTabBg === void 0 ? colorVariables.accent.softBlue : _ref$activeTabBg,
|
|
7487
|
-
_ref$textColor = _ref.textColor,
|
|
7488
|
-
textColor = _ref$textColor === void 0 ? colorVariables["default"].primary : _ref$textColor,
|
|
7328
|
+
backgroundColor = _ref.backgroundColor,
|
|
7329
|
+
activeTabBg = _ref.activeTabBg,
|
|
7330
|
+
textColor = _ref.textColor,
|
|
7489
7331
|
_ref$disabled = _ref.disabled,
|
|
7490
7332
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
7333
|
+
var themeColors = useTheme();
|
|
7491
7334
|
return React__default.createElement(Container, {
|
|
7492
|
-
"$background": backgroundColor,
|
|
7335
|
+
"$background": backgroundColor || themeColors.text.white,
|
|
7493
7336
|
"$padding": '3px',
|
|
7494
7337
|
"$borderRadius": '4px',
|
|
7495
7338
|
"$justifyContent": 'space-between',
|
|
@@ -7503,11 +7346,11 @@ var InternalTabs = function InternalTabs(_ref) {
|
|
|
7503
7346
|
"$alignItems": 'center',
|
|
7504
7347
|
"$cursor": disabled ? 'not-allowed' : 'pointer',
|
|
7505
7348
|
onClick: disabled ? undefined : tab.onClick,
|
|
7506
|
-
"$background": activeTab === tab.value ? activeTabBg :
|
|
7507
|
-
"$color": activeTab === tab.value ? textColor :
|
|
7349
|
+
"$background": activeTab === tab.value ? activeTabBg || themeColors.accent.softBlue : themeColors["default"].tertiary,
|
|
7350
|
+
"$color": activeTab === tab.value ? textColor || themeColors["default"].primary : themeColors.text.medium
|
|
7508
7351
|
}, React__default.createElement(Span, {
|
|
7509
7352
|
"$fontSize": '14px',
|
|
7510
|
-
"$color": activeTab === tab.value ? textColor :
|
|
7353
|
+
"$color": activeTab === tab.value ? textColor || themeColors["default"].primary : themeColors.text.medium
|
|
7511
7354
|
}, tab.title));
|
|
7512
7355
|
}));
|
|
7513
7356
|
};
|
|
@@ -7551,7 +7394,6 @@ exports.formatDate = formatDate;
|
|
|
7551
7394
|
exports.formatEpochToIST = formatEpochToIST;
|
|
7552
7395
|
exports.formatTimestamp = formatTimestamp;
|
|
7553
7396
|
exports.getSystemTimezoneAbbreviation = getSystemTimezoneAbbreviation;
|
|
7554
|
-
exports.themes = themes;
|
|
7555
7397
|
exports.timeAgo = timeAgo;
|
|
7556
7398
|
exports.timeStringToSeconds = timeStringToSeconds;
|
|
7557
7399
|
exports.useClickOutside = useClickOutside;
|