labsense-ui-kit 1.0.35 → 1.0.36
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/Buttons/Button.d.ts +2 -1
- package/dist/Icons/SVGs/FilledPin.d.ts +4 -0
- package/dist/Icons/SVGs/Pin.d.ts +4 -0
- package/dist/Icons/SVGs/index.d.ts +2 -0
- package/dist/Icons/index.d.ts +2 -2
- package/dist/index.js +56 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +56 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -699,6 +699,23 @@ var FilledCircle = function FilledCircle(_ref) {
|
|
|
699
699
|
}));
|
|
700
700
|
};
|
|
701
701
|
|
|
702
|
+
var FilledPin = function FilledPin(_ref) {
|
|
703
|
+
var size = _ref.size,
|
|
704
|
+
color = _ref.color,
|
|
705
|
+
weight = _ref.weight;
|
|
706
|
+
return React.createElement("svg", {
|
|
707
|
+
width: size,
|
|
708
|
+
height: size,
|
|
709
|
+
strokeWidth: weight,
|
|
710
|
+
viewBox: "0 0 12 12",
|
|
711
|
+
fill: "none",
|
|
712
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
713
|
+
}, React.createElement("path", {
|
|
714
|
+
d: "M11.6872 4.86874L8.48645 8.06946C8.73564 8.76288 8.83892 9.9228 7.76515 11.3499C7.68996 11.4499 7.59419 11.5325 7.4843 11.5922C7.37442 11.6519 7.25299 11.6874 7.12823 11.6961C7.10772 11.6975 7.08723 11.6983 7.06676 11.6983C6.95178 11.6983 6.83794 11.6756 6.73172 11.6316C6.62551 11.5876 6.52901 11.523 6.44773 11.4417L3.81221 8.80622L1.93409 10.6843C1.85205 10.7664 1.74077 10.8125 1.62473 10.8125C1.5087 10.8125 1.39741 10.7664 1.31536 10.6844C1.23331 10.6023 1.18721 10.491 1.1872 10.375C1.1872 10.259 1.23329 10.1477 1.31533 10.0656L3.19348 8.18748L0.547145 5.54115C0.460319 5.45422 0.392756 5.34999 0.348848 5.23524C0.30494 5.12049 0.285669 4.99779 0.292287 4.8751C0.298906 4.75242 0.331266 4.6325 0.387264 4.52314C0.443262 4.41378 0.521646 4.31743 0.61732 4.24034C2.00779 3.11861 3.33866 3.33955 3.92121 3.52225L7.13095 0.312483L7.13101 0.312428C7.29525 0.148626 7.51775 0.0566406 7.74972 0.0566406C7.98168 0.0566406 8.20418 0.148626 8.36842 0.312428L11.6872 3.63128C11.7685 3.71253 11.8329 3.80899 11.8769 3.91516C11.9209 4.02132 11.9435 4.13511 11.9435 4.25002C11.9435 4.36493 11.9209 4.47872 11.8769 4.58488C11.8329 4.69104 11.7684 4.7875 11.6872 4.86874Z",
|
|
715
|
+
fill: color
|
|
716
|
+
}));
|
|
717
|
+
};
|
|
718
|
+
|
|
702
719
|
var Filter_1 = function Filter_1(_ref) {
|
|
703
720
|
var size = _ref.size,
|
|
704
721
|
color = _ref.color,
|
|
@@ -1714,6 +1731,30 @@ var Phone = function Phone(_ref) {
|
|
|
1714
1731
|
}));
|
|
1715
1732
|
};
|
|
1716
1733
|
|
|
1734
|
+
var Pin = function Pin(_ref) {
|
|
1735
|
+
var size = _ref.size,
|
|
1736
|
+
color = _ref.color,
|
|
1737
|
+
weight = _ref.weight;
|
|
1738
|
+
return React.createElement("svg", {
|
|
1739
|
+
width: size,
|
|
1740
|
+
height: size,
|
|
1741
|
+
strokeWidth: weight,
|
|
1742
|
+
viewBox: "0 0 12 12",
|
|
1743
|
+
fill: "none",
|
|
1744
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1745
|
+
}, React.createElement("path", {
|
|
1746
|
+
d: "M3.8125 8.1875L1.625 10.375",
|
|
1747
|
+
stroke: color,
|
|
1748
|
+
strokeLinecap: "round",
|
|
1749
|
+
strokeLinejoin: "round"
|
|
1750
|
+
}), React.createElement("path", {
|
|
1751
|
+
d: "M7.44034 0.621793L4.03095 4.03118C4.03095 4.03118 2.5137 3.27256 0.891958 4.58082C0.844068 4.61937 0.804824 4.66757 0.776778 4.72228C0.748731 4.77699 0.732509 4.83698 0.729164 4.89837C0.72582 4.95976 0.735429 5.02117 0.757367 5.0786C0.779305 5.13603 0.81308 5.18821 0.856499 5.23173L6.75709 11.1323C6.80128 11.1766 6.85447 11.2109 6.91305 11.2329C6.97164 11.2549 7.03426 11.264 7.09668 11.2597C7.15911 11.2554 7.21988 11.2377 7.27489 11.2079C7.3299 11.1781 7.37786 11.1368 7.41554 11.0868C7.87454 10.4768 8.59547 9.22272 7.96845 7.96868L11.3778 4.55929C11.4599 4.47725 11.506 4.36597 11.506 4.24993C11.506 4.1339 11.4599 4.02262 11.3778 3.94057L8.05906 0.621793C7.97701 0.539746 7.86573 0.493652 7.7497 0.493652C7.63367 0.493652 7.52239 0.539746 7.44034 0.621793Z",
|
|
1752
|
+
stroke: color,
|
|
1753
|
+
strokeLinecap: "round",
|
|
1754
|
+
strokeLinejoin: "round"
|
|
1755
|
+
}));
|
|
1756
|
+
};
|
|
1757
|
+
|
|
1717
1758
|
var Play = function Play(_ref) {
|
|
1718
1759
|
var size = _ref.size,
|
|
1719
1760
|
color = _ref.color,
|
|
@@ -2453,6 +2494,7 @@ var IconSVGs = {
|
|
|
2453
2494
|
FaceRecognition: FaceRecognition,
|
|
2454
2495
|
FilesBox: FilesBox,
|
|
2455
2496
|
FilledCircle: FilledCircle,
|
|
2497
|
+
FilledPin: FilledPin,
|
|
2456
2498
|
Filter_1: Filter_1,
|
|
2457
2499
|
Filter_2: Filter_2,
|
|
2458
2500
|
Forward_10_Sec: Forward_10_Sec,
|
|
@@ -2490,6 +2532,7 @@ var IconSVGs = {
|
|
|
2490
2532
|
OpenEye: OpenEye,
|
|
2491
2533
|
PasswordLock: PasswordLock,
|
|
2492
2534
|
Phone: Phone,
|
|
2535
|
+
Pin: Pin,
|
|
2493
2536
|
Play: Play,
|
|
2494
2537
|
Playback: Playback,
|
|
2495
2538
|
PremiumBadge: PremiumBadge,
|
|
@@ -2744,7 +2787,9 @@ var StyledButton = styled.button(_templateObject5 || (_templateObject5 = _tagged
|
|
|
2744
2787
|
var variant = _ref14.variant,
|
|
2745
2788
|
disabled = _ref14.disabled,
|
|
2746
2789
|
borderHover = _ref14.borderHover,
|
|
2747
|
-
borderDefault = _ref14.borderDefault
|
|
2790
|
+
borderDefault = _ref14.borderDefault,
|
|
2791
|
+
background = _ref14.background,
|
|
2792
|
+
color = _ref14.color;
|
|
2748
2793
|
switch (variant) {
|
|
2749
2794
|
case 'primary':
|
|
2750
2795
|
return "\n background: " + (disabled ? colorVariables.disabled.primary : colorVariables["default"].primary) + ";\n color: " + colorVariables.text.white + ";\n border: " + (disabled ? "1px solid " + colorVariables.disabled.primary : "1px solid " + colorVariables["default"].primary) + ";\n &:hover {\n background: " + colorVariables.hover.primary + ";\n border: 1px solid " + colorVariables.hover.primary + ";\n }\n ";
|
|
@@ -2760,6 +2805,8 @@ var StyledButton = styled.button(_templateObject5 || (_templateObject5 = _tagged
|
|
|
2760
2805
|
return "\n background: " + colorVariables["default"].tertiary + ";\n color: " + (disabled ? colorVariables.disabled.secondary : colorVariables["default"].secondary) + ";\n border: " + (disabled ? "1px solid " + colorVariables.disabled.secondary : "1px solid " + colorVariables["default"].secondary) + ";\n &:hover{\n border: 1px solid " + colorVariables.hover.secondary + ";\n color: " + colorVariables.text.white + ";\n background: " + colorVariables.hover.secondary + ";\n }\n ";
|
|
2761
2806
|
case 'outline-error':
|
|
2762
2807
|
return "\n background: " + colorVariables["default"].tertiary + ";\n color: " + (disabled ? colorVariables.disabled.error : colorVariables["default"].error) + ";\n border: " + (disabled ? "1px solid " + colorVariables.disabled.error : "1px solid " + colorVariables["default"].error) + ";\n &:hover{\n border: 1px solid " + colorVariables.hover.error + ";\n color: " + colorVariables.text.white + ";\n background: " + colorVariables.hover.error + ";\n }\n ";
|
|
2808
|
+
case 'custom':
|
|
2809
|
+
return "\n background: " + background + ";\n color: " + color + ";\n border: " + ("1px solid " + borderDefault) + ";\n &:hover{\n border: 1px solid " + borderHover + ";\n color: " + color + ";\n background: " + borderHover + ";\n }\n ";
|
|
2763
2810
|
default:
|
|
2764
2811
|
return '';
|
|
2765
2812
|
}
|
|
@@ -2796,10 +2843,11 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
2796
2843
|
fontSize = _ref20.fontSize,
|
|
2797
2844
|
fontFamily = _ref20.fontFamily,
|
|
2798
2845
|
padding = _ref20.padding,
|
|
2799
|
-
icon = _ref20.icon,
|
|
2800
2846
|
gap = _ref20.gap,
|
|
2801
2847
|
_ref20$variant = _ref20.variant,
|
|
2802
2848
|
variant = _ref20$variant === void 0 ? 'primary' : _ref20$variant,
|
|
2849
|
+
icon = _ref20.icon,
|
|
2850
|
+
iconClick = _ref20.iconClick,
|
|
2803
2851
|
_ref20$iconPosition = _ref20.iconPosition,
|
|
2804
2852
|
iconPosition = _ref20$iconPosition === void 0 ? 'right' : _ref20$iconPosition,
|
|
2805
2853
|
_ref20$iconWeight = _ref20.iconWeight,
|
|
@@ -2843,6 +2891,12 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
2843
2891
|
icon: icon,
|
|
2844
2892
|
weight: iconWeight,
|
|
2845
2893
|
size: iconSize ? iconSize : size === 'small' ? 6 : size === 'medium' ? 8 : 10,
|
|
2894
|
+
onClick: function onClick(e) {
|
|
2895
|
+
if (iconClick) {
|
|
2896
|
+
e.stopPropagation();
|
|
2897
|
+
iconClick();
|
|
2898
|
+
}
|
|
2899
|
+
},
|
|
2846
2900
|
color: variant === 'tertiary' && isHovered ? colorVariables.hover.primary : variant === 'tertiary' && disabled ? colorVariables.disabled.primary : variant === 'tertiary' ? colorVariables["default"].primary : variant === 'outline-primary' && isHovered ? colorVariables.text.white : variant === 'outline-primary' && disabled ? colorVariables.disabled.primary : variant === 'outline-primary' ? colorVariables["default"].primary : variant === 'outline-secondary' && isHovered ? colorVariables.text.white : variant === 'outline-secondary' && disabled ? colorVariables.disabled.secondary : variant === 'outline-secondary' ? colorVariables["default"].secondary : variant === 'outline-error' && isHovered ? colorVariables.text.white : variant === 'outline-error' && disabled ? colorVariables.disabled.error : variant === 'outline-error' ? colorVariables["default"].error : color ? color : colorVariables.text.white
|
|
2847
2901
|
}), text && React.createElement(ButtonText, {
|
|
2848
2902
|
size: size,
|