labsense-ui-kit 1.0.13 → 1.0.14
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/Icons/SVGs/AddProfile.d.ts +4 -0
- package/dist/Icons/SVGs/CloseEye.d.ts +4 -0
- package/dist/Icons/SVGs/OpenEye.d.ts +4 -0
- package/dist/Icons/SVGs/Return.d.ts +4 -0
- package/dist/Icons/SVGs/index.d.ts +4 -1
- package/dist/Icons/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/useCustomModal.d.ts +9 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +135 -24
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +135 -25
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/Icons/SVGs/Eye.d.ts +0 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as Add } from './Add';
|
|
2
|
+
export { default as AddProfile } from './AddProfile';
|
|
2
3
|
export { default as Back } from './Back';
|
|
3
4
|
export { default as Bin } from './Bin';
|
|
4
5
|
export { default as Business } from './Business';
|
|
@@ -13,13 +14,13 @@ export { default as CircularWarning } from './CircularWarning';
|
|
|
13
14
|
export { default as Client } from './Client';
|
|
14
15
|
export { default as Close } from './Close';
|
|
15
16
|
export { default as CloseCircle } from './CloseCircle';
|
|
17
|
+
export { default as CloseEye } from './CloseEye';
|
|
16
18
|
export { default as Copy } from './Copy';
|
|
17
19
|
export { default as Cyber } from './Cyber';
|
|
18
20
|
export { default as DownArrow } from './/DownArrow';
|
|
19
21
|
export { default as Download } from './Download';
|
|
20
22
|
export { default as Email } from './Email';
|
|
21
23
|
export { default as ExitFullScreen } from './ExitFullScreen';
|
|
22
|
-
export { default as Eye } from './Eye';
|
|
23
24
|
export { default as FilesBox } from './FilesBox';
|
|
24
25
|
export { default as FilledCircle } from './FilledCircle';
|
|
25
26
|
export { default as Filter_1 } from './Filter_1';
|
|
@@ -49,11 +50,13 @@ export { default as MuteVolume } from './MuteVolume';
|
|
|
49
50
|
export { default as NoCam } from './NoCam';
|
|
50
51
|
export { default as Notifications } from './Notifications';
|
|
51
52
|
export { default as OpenBin } from './OpenBin';
|
|
53
|
+
export { default as OpenEye } from './OpenEye';
|
|
52
54
|
export { default as Phone } from './Phone';
|
|
53
55
|
export { default as Play } from './Play';
|
|
54
56
|
export { default as Profile_1 } from './Profile_1';
|
|
55
57
|
export { default as Profile_2 } from './Profile_2';
|
|
56
58
|
export { default as Recording } from './Recording';
|
|
59
|
+
export { default as Return } from './Return';
|
|
57
60
|
export { default as Rewind_10_Sec } from './Rewind_10_Sec';
|
|
58
61
|
export { default as RightArrow } from './RightArrow';
|
|
59
62
|
export { default as RunAway } from './RunAway';
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface SVGProps {
|
|
|
9
9
|
color: string;
|
|
10
10
|
weight: string;
|
|
11
11
|
}
|
|
12
|
-
export declare type IconNames = 'Add' | 'Back' | 'Bin' | 'Business' | 'Calendar' | 'CCTV_1' | 'CCTV_2' | 'Circle' | 'CircularEdit' | 'CircularPause' | 'CircularPlay' | 'CircularWarning' | 'Client' | 'Close' | 'CloseCircle' | 'Copy' | 'Cyber' | 'DownArrow' | 'Download' | 'Email' | 'ExitFullScreen' | '
|
|
12
|
+
export declare type IconNames = 'Add' | 'AddProfile' | 'Back' | 'Bin' | 'Business' | 'Calendar' | 'CCTV_1' | 'CCTV_2' | 'Circle' | 'CircularEdit' | 'CircularPause' | 'CircularPlay' | 'CircularWarning' | 'Client' | 'Close' | 'CloseCircle' | 'CloseEye' | 'Copy' | 'Cyber' | 'DownArrow' | 'Download' | 'Email' | 'ExitFullScreen' | 'OpenEye' | 'FilesBox' | 'FilledCircle' | 'Filter_1' | 'Filter_2' | 'Forward_10_Sec' | 'Forward' | 'FullScreen' | 'Grid_2x2_Hollow' | 'Grid_2x2' | 'Grid_3x3' | 'Grid_4x4' | 'Grid_5x5' | 'History' | 'Information' | 'Key' | 'KeyDown' | 'LeftArrow' | 'Letter' | 'Live' | 'Lock' | 'Logout' | 'MediumVolume' | 'Mute' | 'MuteVolume' | 'Menu' | 'NoCam' | 'Notifications' | 'OpenBin' | 'OpenEye' | 'Phone' | 'Play' | 'Profile_1' | 'Profile_2' | 'Recording' | 'Return' | 'Rewind_10_Sec' | 'RightArrow' | 'RunAway' | 'SandTimer' | 'Search' | 'Settings' | 'Shield' | 'SquareEdit' | 'SquareTick' | 'Tag' | 'Team' | 'ThreeDots' | 'ThumbsUp' | 'Tick' | 'UpArrow' | 'Video' | 'FullVolume' | 'Wallet' | 'WiFiCam' | 'Zapper';
|
|
13
13
|
export interface IconProps {
|
|
14
14
|
icon: IconNames;
|
|
15
15
|
size?: number;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface UseModalProps {
|
|
3
|
+
maxWidth?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const useCustomModal: ({ maxWidth }: UseModalProps) => {
|
|
6
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
createModal: (content: React.ReactNode) => React.JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
export default useCustomModal;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { Tabs } from './Tabs';
|
|
|
5
5
|
import { ProgressBar } from './ProgressBar';
|
|
6
6
|
import { colorVariables } from "./Themes/Colors";
|
|
7
7
|
import { CircularLoader } from './Loader';
|
|
8
|
-
import { useClickOutside } from './hooks';
|
|
8
|
+
import { useClickOutside, useCustomModal } from './hooks';
|
|
9
9
|
export { Button, Input, Icon, Tabs, ProgressBar, colorVariables };
|
|
10
10
|
export { CircularLoader };
|
|
11
11
|
export { IconNames, ButtonProps };
|
|
12
|
-
export { useClickOutside };
|
|
12
|
+
export { useClickOutside, useCustomModal };
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,23 @@ var Add = function Add(_ref) {
|
|
|
32
32
|
}));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
+
var AddProfile = function AddProfile(_ref) {
|
|
36
|
+
var size = _ref.size,
|
|
37
|
+
color = _ref.color,
|
|
38
|
+
weight = _ref.weight;
|
|
39
|
+
return React__default.createElement("svg", {
|
|
40
|
+
width: size,
|
|
41
|
+
height: size,
|
|
42
|
+
strokeWidth: weight,
|
|
43
|
+
viewBox: "0 0 16 17",
|
|
44
|
+
fill: "none",
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
46
|
+
}, React__default.createElement("path", {
|
|
47
|
+
d: "M3.52362 0.125C1.64937 0.125 0.125 1.79675 0.125 3.85213V10.2804C0.125 12.2188 1.55375 13.625 3.52362 13.625H8.15862C8.45604 14.3444 8.95991 14.9595 9.60663 15.3928C10.2533 15.8261 11.0139 16.0581 11.7924 16.0595C13.9636 16.0595 15.7299 14.2932 15.7299 12.122C15.7299 10.6156 14.8693 9.31962 13.6228 8.657V3.85213C13.6239 1.90138 11.8745 0.125 9.953 0.125H3.52362ZM3.52362 1.25H9.953C11.2625 1.25 12.5 2.51338 12.5 3.85213V8.25537C12.2675 8.21063 12.0314 8.18691 11.7946 8.1845C10.9643 8.18702 10.1564 8.45421 9.48837 8.94725C8.67138 8.47396 7.74807 8.21469 6.80412 8.1935C7.53157 8.17246 8.22228 7.86914 8.73001 7.34776C9.23774 6.82638 9.52263 6.12788 9.52437 5.40013C9.52318 4.65696 9.22743 3.94457 8.70193 3.41907C8.17643 2.89357 7.46404 2.59782 6.72087 2.59663C5.97821 2.59752 5.26622 2.89294 4.74108 3.41808C4.21594 3.94322 3.92052 4.65521 3.91963 5.39787C3.92113 6.1213 4.20245 6.81609 4.70468 7.33677C5.20691 7.85745 5.8911 8.16365 6.614 8.19125C5.5486 8.20137 4.50814 8.5149 3.61453 9.09511C2.72091 9.67531 2.01114 10.4982 1.56837 11.4672C1.35581 11.1081 1.24569 10.6977 1.25 10.2804V3.85213C1.25 2.6 2.1185 1.25 3.52362 1.25ZM6.72087 3.72163C7.64563 3.72163 8.39937 4.47312 8.39937 5.39787C8.39937 6.32262 7.64563 7.0775 6.72087 7.0775C5.79612 7.0775 5.04463 6.32375 5.04463 5.399C5.04463 4.47425 5.79612 3.72163 6.72087 3.72163ZM6.686 9.3095C7.37675 9.3095 8.04725 9.467 8.65925 9.764C8.14055 10.4409 7.858 11.2692 7.85487 12.122C7.85487 12.2514 7.88188 12.374 7.89425 12.5H3.52362C3.1265 12.5 2.771 12.4111 2.45825 12.2649C2.77357 11.3973 3.34867 10.6481 4.10521 10.1193C4.86175 9.5904 5.76294 9.30764 6.686 9.3095ZM11.7946 9.3095C13.3449 9.3095 14.6071 10.5706 14.6071 12.122C14.6071 13.6722 13.3449 14.9345 11.7946 14.9345C11.049 14.9336 10.3341 14.637 9.80687 14.1098C9.27962 13.5825 8.98302 12.8676 8.98213 12.122C8.98213 10.5717 10.2444 9.3095 11.7946 9.3095ZM11.2096 10.4345V11.555H10.0869V12.68H11.2108V13.8005H12.3358V12.68H13.4563V11.555H12.3358V10.4345H11.2108H11.2096Z",
|
|
48
|
+
fill: color
|
|
49
|
+
}));
|
|
50
|
+
};
|
|
51
|
+
|
|
35
52
|
var Back = function Back(_ref) {
|
|
36
53
|
var size = _ref.size,
|
|
37
54
|
color = _ref.color,
|
|
@@ -368,7 +385,6 @@ var CloseCircle = function CloseCircle(_ref) {
|
|
|
368
385
|
return React__default.createElement("svg", {
|
|
369
386
|
width: size,
|
|
370
387
|
height: size,
|
|
371
|
-
stroke: color,
|
|
372
388
|
strokeWidth: weight,
|
|
373
389
|
viewBox: "0 0 20 20",
|
|
374
390
|
fill: "none",
|
|
@@ -379,6 +395,45 @@ var CloseCircle = function CloseCircle(_ref) {
|
|
|
379
395
|
}));
|
|
380
396
|
};
|
|
381
397
|
|
|
398
|
+
var CloseEye = function CloseEye(_ref) {
|
|
399
|
+
var size = _ref.size,
|
|
400
|
+
color = _ref.color,
|
|
401
|
+
weight = _ref.weight;
|
|
402
|
+
return React__default.createElement("svg", {
|
|
403
|
+
width: size,
|
|
404
|
+
height: size,
|
|
405
|
+
strokeWidth: weight,
|
|
406
|
+
viewBox: "0 0 14 7",
|
|
407
|
+
fill: "none",
|
|
408
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
409
|
+
}, React__default.createElement("path", {
|
|
410
|
+
d: "M11.5718 1.95703L12.9974 4.42628",
|
|
411
|
+
stroke: color,
|
|
412
|
+
strokeLinecap: "round",
|
|
413
|
+
strokeLinejoin: "round"
|
|
414
|
+
}), React__default.createElement("path", {
|
|
415
|
+
d: "M8.63647 3.3291L9.0811 5.8506",
|
|
416
|
+
stroke: color,
|
|
417
|
+
strokeLinecap: "round",
|
|
418
|
+
strokeLinejoin: "round"
|
|
419
|
+
}), React__default.createElement("path", {
|
|
420
|
+
d: "M5.35802 3.32812L4.91333 5.85",
|
|
421
|
+
stroke: color,
|
|
422
|
+
strokeLinecap: "round",
|
|
423
|
+
strokeLinejoin: "round"
|
|
424
|
+
}), React__default.createElement("path", {
|
|
425
|
+
d: "M2.42566 1.9541L0.993164 4.43529",
|
|
426
|
+
stroke: color,
|
|
427
|
+
strokeLinecap: "round",
|
|
428
|
+
strokeLinejoin: "round"
|
|
429
|
+
}), React__default.createElement("path", {
|
|
430
|
+
d: "M1 0.554688C2.05078 1.85534 3.97713 3.49999 7.00004 3.49999C10.0229 3.49999 11.9493 1.85535 13.0001 0.554702",
|
|
431
|
+
stroke: color,
|
|
432
|
+
strokeLinecap: "round",
|
|
433
|
+
strokeLinejoin: "round"
|
|
434
|
+
}));
|
|
435
|
+
};
|
|
436
|
+
|
|
382
437
|
var Copy = function Copy(_ref) {
|
|
383
438
|
var size = _ref.size,
|
|
384
439
|
color = _ref.color,
|
|
@@ -501,26 +556,6 @@ var ExitFullScreen = function ExitFullScreen(_ref) {
|
|
|
501
556
|
}));
|
|
502
557
|
};
|
|
503
558
|
|
|
504
|
-
var Eye = function Eye(_ref) {
|
|
505
|
-
var size = _ref.size,
|
|
506
|
-
color = _ref.color,
|
|
507
|
-
weight = _ref.weight;
|
|
508
|
-
return React__default.createElement("svg", {
|
|
509
|
-
width: size,
|
|
510
|
-
height: size,
|
|
511
|
-
strokeWidth: weight,
|
|
512
|
-
viewBox: "0 0 14 10",
|
|
513
|
-
fill: "none",
|
|
514
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
515
|
-
}, React__default.createElement("path", {
|
|
516
|
-
d: "M6.99995 9.10156C6.16323 9.10156 5.29917 8.89375 4.42964 8.48633C3.74878 8.16641 3.06245 7.72344 2.3898 7.16836C1.25503 6.23047 0.555029 5.30078 0.524951 5.2625C0.407373 5.10664 0.407373 4.89336 0.524951 4.7375C0.555029 4.69922 1.25503 3.76953 2.3898 2.83164C3.06245 2.27656 3.74878 1.83359 4.42964 1.51367C5.29917 1.10625 6.16323 0.898438 6.99995 0.898438C7.83667 0.898438 8.70073 1.10625 9.57026 1.51367C10.2511 1.83359 10.9375 2.27656 11.6101 2.83164C12.7449 3.76953 13.4476 4.69922 13.475 4.7375C13.5925 4.89336 13.5925 5.10664 13.475 5.2625C13.4449 5.30078 12.7449 6.23047 11.6101 7.16836C10.9375 7.72344 10.2511 8.16641 9.57026 8.48633C8.70073 8.89375 7.83667 9.10156 6.99995 9.10156ZM1.43823 5C2.12456 5.81211 4.39136 8.22656 6.99995 8.22656C9.61401 8.22656 11.8753 5.81211 12.5617 5C11.8753 4.18789 9.60854 1.77344 6.99995 1.77344C4.38589 1.77344 2.12456 4.18789 1.43823 5Z",
|
|
517
|
-
fill: color
|
|
518
|
-
}), React__default.createElement("path", {
|
|
519
|
-
d: "M7 6.96875C5.91445 6.96875 5.03125 6.08555 5.03125 5C5.03125 3.91445 5.91445 3.03125 7 3.03125C8.08555 3.03125 8.96875 3.91445 8.96875 5C8.96875 6.08555 8.08555 6.96875 7 6.96875ZM7 3.90625C6.3957 3.90625 5.90625 4.3957 5.90625 5C5.90625 5.6043 6.3957 6.09375 7 6.09375C7.6043 6.09375 8.09375 5.6043 8.09375 5C8.09375 4.3957 7.6043 3.90625 7 3.90625Z",
|
|
520
|
-
fill: color
|
|
521
|
-
}));
|
|
522
|
-
};
|
|
523
|
-
|
|
524
559
|
var FilesBox = function FilesBox(_ref) {
|
|
525
560
|
var size = _ref.size,
|
|
526
561
|
color = _ref.color,
|
|
@@ -1358,6 +1393,26 @@ var OpenBin = function OpenBin(_ref) {
|
|
|
1358
1393
|
}));
|
|
1359
1394
|
};
|
|
1360
1395
|
|
|
1396
|
+
var OpenEye = function OpenEye(_ref) {
|
|
1397
|
+
var size = _ref.size,
|
|
1398
|
+
color = _ref.color,
|
|
1399
|
+
weight = _ref.weight;
|
|
1400
|
+
return React__default.createElement("svg", {
|
|
1401
|
+
width: size,
|
|
1402
|
+
height: size,
|
|
1403
|
+
strokeWidth: weight,
|
|
1404
|
+
viewBox: "0 0 14 10",
|
|
1405
|
+
fill: "none",
|
|
1406
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1407
|
+
}, React__default.createElement("path", {
|
|
1408
|
+
d: "M6.99995 9.10156C6.16323 9.10156 5.29917 8.89375 4.42964 8.48633C3.74878 8.16641 3.06245 7.72344 2.3898 7.16836C1.25503 6.23047 0.555029 5.30078 0.524951 5.2625C0.407373 5.10664 0.407373 4.89336 0.524951 4.7375C0.555029 4.69922 1.25503 3.76953 2.3898 2.83164C3.06245 2.27656 3.74878 1.83359 4.42964 1.51367C5.29917 1.10625 6.16323 0.898438 6.99995 0.898438C7.83667 0.898438 8.70073 1.10625 9.57026 1.51367C10.2511 1.83359 10.9375 2.27656 11.6101 2.83164C12.7449 3.76953 13.4476 4.69922 13.475 4.7375C13.5925 4.89336 13.5925 5.10664 13.475 5.2625C13.4449 5.30078 12.7449 6.23047 11.6101 7.16836C10.9375 7.72344 10.2511 8.16641 9.57026 8.48633C8.70073 8.89375 7.83667 9.10156 6.99995 9.10156ZM1.43823 5C2.12456 5.81211 4.39136 8.22656 6.99995 8.22656C9.61401 8.22656 11.8753 5.81211 12.5617 5C11.8753 4.18789 9.60854 1.77344 6.99995 1.77344C4.38589 1.77344 2.12456 4.18789 1.43823 5Z",
|
|
1409
|
+
fill: color
|
|
1410
|
+
}), React__default.createElement("path", {
|
|
1411
|
+
d: "M7 6.96875C5.91445 6.96875 5.03125 6.08555 5.03125 5C5.03125 3.91445 5.91445 3.03125 7 3.03125C8.08555 3.03125 8.96875 3.91445 8.96875 5C8.96875 6.08555 8.08555 6.96875 7 6.96875ZM7 3.90625C6.3957 3.90625 5.90625 4.3957 5.90625 5C5.90625 5.6043 6.3957 6.09375 7 6.09375C7.6043 6.09375 8.09375 5.6043 8.09375 5C8.09375 4.3957 7.6043 3.90625 7 3.90625Z",
|
|
1412
|
+
fill: color
|
|
1413
|
+
}));
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1361
1416
|
var Phone = function Phone(_ref) {
|
|
1362
1417
|
var size = _ref.size,
|
|
1363
1418
|
color = _ref.color,
|
|
@@ -1467,6 +1522,23 @@ var Recording = function Recording(_ref) {
|
|
|
1467
1522
|
}));
|
|
1468
1523
|
};
|
|
1469
1524
|
|
|
1525
|
+
var Return = function Return(_ref) {
|
|
1526
|
+
var size = _ref.size,
|
|
1527
|
+
color = _ref.color,
|
|
1528
|
+
weight = _ref.weight;
|
|
1529
|
+
return React__default.createElement("svg", {
|
|
1530
|
+
width: size,
|
|
1531
|
+
height: size,
|
|
1532
|
+
strokeWidth: weight,
|
|
1533
|
+
viewBox: "0 0 12 10",
|
|
1534
|
+
fill: "none",
|
|
1535
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1536
|
+
}, React__default.createElement("path", {
|
|
1537
|
+
d: "M11.248 5.97521C11.2474 6.92784 10.8688 7.8413 10.1954 8.51511C9.522 9.18893 8.60877 9.56805 7.65614 9.56927H1.18945C1.07342 9.56927 0.962141 9.52317 0.880094 9.44113C0.798047 9.35908 0.751953 9.2478 0.751953 9.13177C0.751953 9.01574 0.798047 8.90446 0.880094 8.82241C0.962141 8.74036 1.07342 8.69427 1.18945 8.69427H7.65614C8.37274 8.68784 9.0578 8.39866 9.56225 7.88966C10.0667 7.38066 10.3497 6.69304 10.3497 5.97641C10.3497 5.25978 10.0667 4.57215 9.56225 4.06315C9.0578 3.55416 8.37274 3.26498 7.65614 3.25855H2.41052L3.84223 4.43564C3.8869 4.47203 3.92394 4.51689 3.95122 4.56763C3.9785 4.61838 3.99549 4.67401 4.00122 4.73134C4.00695 4.78866 4.00129 4.84656 3.98458 4.90169C3.96788 4.95683 3.94044 5.00812 3.90386 5.05263C3.86727 5.09714 3.82226 5.13398 3.7714 5.16104C3.72054 5.18811 3.66483 5.20486 3.60748 5.21033C3.55013 5.21581 3.49226 5.20991 3.4372 5.19296C3.38213 5.17601 3.33096 5.14836 3.28661 5.11158L0.911641 3.1588C0.906391 3.15442 0.902453 3.14917 0.897422 3.14458C0.886033 3.13425 0.875225 3.12329 0.865047 3.11177L0.861547 3.10849C0.858484 3.10499 0.854547 3.10236 0.851484 3.09886V3.09755C0.846891 3.09208 0.843609 3.08574 0.839453 3.08005C0.830849 3.06862 0.822888 3.05671 0.815609 3.04439C0.813859 3.04155 0.811453 3.03892 0.809922 3.03586C0.808391 3.0328 0.804453 3.02864 0.802484 3.02471C0.800516 3.02077 0.797891 3.01289 0.795266 3.00721C0.789434 2.99447 0.784179 2.98148 0.779516 2.96827L0.777984 2.96433C0.768954 2.93933 0.762575 2.91345 0.758953 2.88711C0.757641 2.87902 0.755016 2.87136 0.75436 2.86327C0.753703 2.85517 0.75436 2.84774 0.75436 2.84008C0.75436 2.83242 0.752391 2.82761 0.752391 2.82105C0.752391 2.81449 0.754141 2.80836 0.75436 2.8018V2.77883C0.75436 2.77117 0.757641 2.76286 0.758953 2.75477C0.762562 2.72843 0.768942 2.70255 0.777984 2.67755L0.779516 2.67361C0.784328 2.66027 0.789359 2.64736 0.795266 2.63467C0.797891 2.62899 0.799422 2.62286 0.802484 2.61717C0.805547 2.61149 0.807734 2.60996 0.809922 2.60602C0.812109 2.60208 0.813859 2.60033 0.815609 2.59749C0.822746 2.58518 0.83056 2.57327 0.839016 2.56183C0.843172 2.55614 0.846453 2.5498 0.851047 2.54433V2.54324C0.855422 2.53777 0.860891 2.53405 0.865484 2.5288C0.875547 2.51786 0.885828 2.50692 0.896984 2.4973C0.902016 2.49271 0.905953 2.48746 0.911203 2.48308L0.913391 2.48111L3.28748 0.5303C3.33183 0.493523 3.38301 0.465867 3.43807 0.448921C3.49313 0.431974 3.551 0.42607 3.60835 0.431547C3.66571 0.437025 3.72141 0.453776 3.77227 0.480839C3.82313 0.507902 3.86815 0.544744 3.90473 0.58925C3.94132 0.633756 3.96875 0.68505 3.98546 0.740187C4.00217 0.795324 4.00782 0.853218 4.00209 0.910545C3.99637 0.967873 3.97938 1.0235 3.95209 1.07425C3.92481 1.12499 3.88777 1.16985 3.84311 1.20624L2.41139 2.38355H7.65702C8.60913 2.38482 9.52188 2.76366 10.1951 3.43697C10.8682 4.11028 11.2469 5.02309 11.248 5.97521Z",
|
|
1538
|
+
fill: color
|
|
1539
|
+
}));
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1470
1542
|
var Rewind_10_Sec = function Rewind_10_Sec(_ref) {
|
|
1471
1543
|
var size = _ref.size,
|
|
1472
1544
|
color = _ref.color,
|
|
@@ -1898,6 +1970,7 @@ var IconWrapper = styled__default.div(_templateObject2 || (_templateObject2 = _t
|
|
|
1898
1970
|
var IconWrapperForSVG = styled__default.g(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), wrapperCss);
|
|
1899
1971
|
var IconSVGs = {
|
|
1900
1972
|
Add: Add,
|
|
1973
|
+
AddProfile: AddProfile,
|
|
1901
1974
|
Back: Back,
|
|
1902
1975
|
Bin: Bin,
|
|
1903
1976
|
Business: Business,
|
|
@@ -1912,13 +1985,13 @@ var IconSVGs = {
|
|
|
1912
1985
|
Client: Client,
|
|
1913
1986
|
Close: Close,
|
|
1914
1987
|
CloseCircle: CloseCircle,
|
|
1988
|
+
CloseEye: CloseEye,
|
|
1915
1989
|
Copy: Copy,
|
|
1916
1990
|
Cyber: Cyber,
|
|
1917
1991
|
DownArrow: DownArrow,
|
|
1918
1992
|
Download: Download,
|
|
1919
1993
|
Email: Email,
|
|
1920
1994
|
ExitFullScreen: ExitFullScreen,
|
|
1921
|
-
Eye: Eye,
|
|
1922
1995
|
FilesBox: FilesBox,
|
|
1923
1996
|
FilledCircle: FilledCircle,
|
|
1924
1997
|
Filter_1: Filter_1,
|
|
@@ -1948,11 +2021,13 @@ var IconSVGs = {
|
|
|
1948
2021
|
NoCam: NoCam,
|
|
1949
2022
|
Notifications: Notifications,
|
|
1950
2023
|
OpenBin: OpenBin,
|
|
2024
|
+
OpenEye: OpenEye,
|
|
1951
2025
|
Phone: Phone,
|
|
1952
2026
|
Play: Play,
|
|
1953
2027
|
Profile_1: Profile_1,
|
|
1954
2028
|
Profile_2: Profile_2,
|
|
1955
2029
|
Recording: Recording,
|
|
2030
|
+
Return: Return,
|
|
1956
2031
|
Rewind_10_Sec: Rewind_10_Sec,
|
|
1957
2032
|
RightArrow: RightArrow,
|
|
1958
2033
|
RunAway: RunAway,
|
|
@@ -2077,14 +2152,14 @@ var StyledButton = styled__default.button(_templateObject$2 || (_templateObject$
|
|
|
2077
2152
|
return gap || '10px';
|
|
2078
2153
|
}, function (_ref4) {
|
|
2079
2154
|
var borderRadius = _ref4.borderRadius;
|
|
2080
|
-
return borderRadius || '
|
|
2155
|
+
return borderRadius || '8px';
|
|
2081
2156
|
}, function (_ref5) {
|
|
2082
2157
|
var iconPosition = _ref5.iconPosition;
|
|
2083
2158
|
return iconPosition === 'right' ? 'row-reverse' : 'row';
|
|
2084
2159
|
}, function (_ref6) {
|
|
2085
2160
|
var size = _ref6.size,
|
|
2086
2161
|
padding = _ref6.padding;
|
|
2087
|
-
return size === 'small' ? '8px
|
|
2162
|
+
return size === 'small' ? '8px 12.2px' : size === 'medium' ? '10px 19px' : size === 'large' ? '12px 24.5px' : size === 'custom' ? padding : '10px 16px';
|
|
2088
2163
|
}, function (_ref7) {
|
|
2089
2164
|
var variant = _ref7.variant,
|
|
2090
2165
|
disabled = _ref7.disabled;
|
|
@@ -2434,6 +2509,41 @@ var useClickOutside = function useClickOutside(elRef, elCallback) {
|
|
|
2434
2509
|
}, [elCallback, elRef]);
|
|
2435
2510
|
};
|
|
2436
2511
|
|
|
2512
|
+
var _templateObject$5, _templateObject2$4;
|
|
2513
|
+
var ModalOverlay = styled__default.div(_templateObject$5 || (_templateObject$5 = _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: Noto Sans, sans-serif;\n z-index: 99999;\n"])));
|
|
2514
|
+
var ModalContainer = styled__default.div(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-width: ", ";\n"])), colorVariables.accent.light, function (_ref) {
|
|
2515
|
+
var maxWidth = _ref.maxWidth;
|
|
2516
|
+
return maxWidth ? maxWidth : '400px';
|
|
2517
|
+
});
|
|
2518
|
+
var Modal = function Modal(_ref2) {
|
|
2519
|
+
var isOpen = _ref2.isOpen,
|
|
2520
|
+
maxWidth = _ref2.maxWidth,
|
|
2521
|
+
children = _ref2.children;
|
|
2522
|
+
if (!isOpen) return null;
|
|
2523
|
+
return React__default.createElement(ModalOverlay, null, React__default.createElement(ModalContainer, {
|
|
2524
|
+
maxWidth: maxWidth,
|
|
2525
|
+
onClick: function onClick(e) {
|
|
2526
|
+
return e.stopPropagation();
|
|
2527
|
+
}
|
|
2528
|
+
}, children));
|
|
2529
|
+
};
|
|
2530
|
+
var useCustomModal = function useCustomModal(_ref3) {
|
|
2531
|
+
var maxWidth = _ref3.maxWidth;
|
|
2532
|
+
var _useState = React.useState(false),
|
|
2533
|
+
isOpen = _useState[0],
|
|
2534
|
+
setIsOpen = _useState[1];
|
|
2535
|
+
var createModal = function createModal(content) {
|
|
2536
|
+
return React__default.createElement(Modal, {
|
|
2537
|
+
isOpen: isOpen,
|
|
2538
|
+
maxWidth: maxWidth
|
|
2539
|
+
}, content);
|
|
2540
|
+
};
|
|
2541
|
+
return {
|
|
2542
|
+
setIsOpen: setIsOpen,
|
|
2543
|
+
createModal: createModal
|
|
2544
|
+
};
|
|
2545
|
+
};
|
|
2546
|
+
|
|
2437
2547
|
exports.Button = ButtonComponent;
|
|
2438
2548
|
exports.CircularLoader = CircularLoader;
|
|
2439
2549
|
exports.Icon = Icon;
|
|
@@ -2442,4 +2552,5 @@ exports.ProgressBar = ProgressBar;
|
|
|
2442
2552
|
exports.Tabs = Tabs;
|
|
2443
2553
|
exports.colorVariables = colorVariables;
|
|
2444
2554
|
exports.useClickOutside = useClickOutside;
|
|
2555
|
+
exports.useCustomModal = useCustomModal;
|
|
2445
2556
|
//# sourceMappingURL=index.js.map
|