labsense-ui-kit 1.0.21 → 1.0.22

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.
@@ -1957,6 +1957,77 @@ var Zapper = function Zapper(_ref) {
1957
1957
  }));
1958
1958
  };
1959
1959
 
1960
+ var Profile_3 = function Profile_3(_ref) {
1961
+ var size = _ref.size,
1962
+ color = _ref.color,
1963
+ weight = _ref.weight;
1964
+ return React.createElement("svg", {
1965
+ width: size,
1966
+ height: size,
1967
+ strokeWidth: weight,
1968
+ viewBox: "0 0 14 16",
1969
+ fill: "none",
1970
+ xmlns: "http://www.w3.org/2000/svg"
1971
+ }, React.createElement("path", {
1972
+ d: "M7 9.5C6.10999 9.5 5.23996 9.23608 4.49994 8.74162C3.75991 8.24715 3.18314 7.54434 2.84254 6.72208C2.50195 5.89981 2.41283 4.99501 2.58647 4.1221C2.7601 3.24918 3.18869 2.44736 3.81802 1.81802C4.44736 1.18869 5.24918 0.760102 6.1221 0.586468C6.99501 0.412835 7.89981 0.50195 8.72208 0.842544C9.54434 1.18314 10.2471 1.75991 10.7416 2.49994C11.2361 3.23996 11.5 4.10999 11.5 5C11.5 6.19348 11.0259 7.33807 10.182 8.18198C9.33807 9.0259 8.19348 9.5 7 9.5ZM7 1.25C6.25832 1.25 5.5333 1.46994 4.91661 1.88199C4.29993 2.29405 3.81928 2.87972 3.53545 3.56494C3.25163 4.25016 3.17736 5.00416 3.32206 5.73159C3.46675 6.45902 3.8239 7.12721 4.34835 7.65165C4.8728 8.1761 5.54098 8.53325 6.26841 8.67795C6.99584 8.82264 7.74984 8.74838 8.43506 8.46455C9.12029 8.18072 9.70596 7.70007 10.118 7.08339C10.5301 6.46671 10.75 5.74168 10.75 5C10.75 4.00544 10.3549 3.05161 9.65165 2.34835C8.94839 1.64509 7.99456 1.25 7 1.25Z",
1973
+ fill: color
1974
+ }), React.createElement("path", {
1975
+ d: "M13.375 15.5002H0.643752C0.592607 15.5005 0.541937 15.4904 0.49486 15.4704C0.447782 15.4504 0.405292 15.421 0.370002 15.384C0.334743 15.3465 0.30756 15.3022 0.290142 15.2539C0.272724 15.2055 0.265443 15.154 0.268752 15.1027C0.395611 13.4043 1.15985 11.8165 2.40823 10.6579C3.6566 9.49933 5.29682 8.85547 7 8.85547C8.70318 8.85547 10.3434 9.49933 11.5918 10.6579C12.8402 11.8165 13.6044 13.4043 13.7313 15.1027C13.7346 15.154 13.7273 15.2055 13.7099 15.2539C13.6924 15.3022 13.6653 15.3465 13.63 15.384C13.5632 15.4542 13.4718 15.4959 13.375 15.5002ZM1.05625 14.7502H12.9438C12.7458 13.3145 12.0348 11.9989 10.9422 11.0467C9.84964 10.0945 8.44931 9.56986 7 9.56986C5.55069 9.56986 4.15037 10.0945 3.05779 11.0467C1.96521 11.9989 1.25424 13.3145 1.05625 14.7502Z",
1976
+ fill: color
1977
+ }), React.createElement("path", {
1978
+ opacity: "0.35",
1979
+ d: "M9.51625 1.7334C10.1235 2.52742 10.4218 3.51495 10.3556 4.51238C10.2894 5.50982 9.86332 6.44928 9.15648 7.15613C8.44964 7.86297 7.51017 8.28909 6.51274 8.35526C5.51531 8.42144 4.52778 8.12316 3.73375 7.5159C4.09079 7.98275 4.54348 8.36791 5.06147 8.64558C5.57947 8.92326 6.15083 9.08703 6.73727 9.12594C7.32371 9.16485 7.91169 9.07799 8.46183 8.87118C9.01197 8.66437 9.51157 8.34239 9.92716 7.9268C10.3427 7.51122 10.6647 7.01162 10.8715 6.46148C11.0783 5.91134 11.1652 5.32335 11.1263 4.73691C11.0874 4.15047 10.9236 3.57912 10.6459 3.06112C10.3683 2.54312 9.9831 2.09044 9.51625 1.7334ZM10 9.87465C10.9934 10.8678 11.628 12.1634 11.8038 13.5571C11.8119 13.6109 11.8083 13.6658 11.7931 13.718C11.778 13.7702 11.7516 13.8185 11.716 13.8595C11.6803 13.9005 11.6361 13.9333 11.5865 13.9555C11.537 13.9778 11.4831 13.989 11.4288 13.9884H0.816253C0.724208 14.3573 0.666462 14.7339 0.643753 15.1134H13.375C13.3078 14.0243 12.9622 12.9708 12.3713 12.0535C11.7803 11.1363 10.9639 10.386 10 9.87465Z",
1980
+ fill: color
1981
+ }));
1982
+ };
1983
+
1984
+ var Maps = function Maps(_ref) {
1985
+ var size = _ref.size,
1986
+ color = _ref.color,
1987
+ weight = _ref.weight;
1988
+ return React.createElement("svg", {
1989
+ width: size,
1990
+ height: size,
1991
+ strokeWidth: weight,
1992
+ viewBox: "0 0 12 12",
1993
+ fill: "none",
1994
+ xmlns: "http://www.w3.org/2000/svg"
1995
+ }, React.createElement("path", {
1996
+ d: "M3.04688 7.26562H2.8657C2.60031 7.26562 2.35752 7.41505 2.23796 7.65198L0.632335 10.8338C0.514337 11.0676 0.684282 11.3438 0.946196 11.3438H11.0538C11.3158 11.3438 11.4856 11.0676 11.3677 10.8338L9.76205 7.65198C9.64249 7.41505 9.3997 7.26562 9.13431 7.26562H9.09376",
1997
+ stroke: color,
1998
+ strokeLinecap: "round"
1999
+ }), React.createElement("path", {
2000
+ d: "M3.15532 5.86505C2.33225 4.51803 2.54345 2.77794 3.65966 1.66171C4.98854 0.332834 7.14896 0.326956 8.47784 1.65583C9.58996 2.76795 9.79503 4.49733 8.97384 5.8387L8.63559 6.3912L8.56764 6.48186C7.90437 7.36674 7.17751 8.20474 6.39544 8.98662C6.20738 9.17463 5.9021 9.17505 5.71404 8.98704C4.9336 8.20678 4.20987 7.37178 3.54841 6.4884L3.48205 6.39978L3.15532 5.86505Z",
2001
+ stroke: color
2002
+ }), React.createElement("path", {
2003
+ d: "M6.07031 5.50781C6.7693 5.50781 7.33594 4.94117 7.33594 4.24219C7.33594 3.5432 6.7693 2.97656 6.07031 2.97656C5.37133 2.97656 4.80469 3.5432 4.80469 4.24219C4.80469 4.94117 5.37133 5.50781 6.07031 5.50781Z",
2004
+ stroke: color
2005
+ }));
2006
+ };
2007
+
2008
+ var Hazard = function Hazard(_ref) {
2009
+ var size = _ref.size,
2010
+ color = _ref.color,
2011
+ weight = _ref.weight;
2012
+ return React.createElement("svg", {
2013
+ width: size,
2014
+ height: size,
2015
+ strokeWidth: weight,
2016
+ viewBox: "0 0 14 14",
2017
+ fill: "none",
2018
+ xmlns: "http://www.w3.org/2000/svg"
2019
+ }, React.createElement("path", {
2020
+ d: "M6.94531 8.77734C7.24609 8.77734 7.49219 8.53125 7.49219 8.23047V4.40234C7.49219 4.10156 7.24609 3.85547 6.94531 3.85547C6.64453 3.85547 6.39844 4.10156 6.39844 4.40234V8.23047C6.39844 8.53125 6.64453 8.77734 6.94531 8.77734Z",
2021
+ fill: color
2022
+ }), React.createElement("path", {
2023
+ d: "M6.94531 11.4926C7.38174 11.4926 7.73554 11.1388 7.73554 10.7023C7.73554 10.2659 7.38174 9.91211 6.94531 9.91211C6.50887 9.91211 6.15508 10.2659 6.15508 10.7023C6.15508 11.1388 6.50887 11.4926 6.94531 11.4926Z",
2024
+ fill: color
2025
+ }), React.createElement("path", {
2026
+ d: "M13.8359 11.5443L8.2168 0.970508C7.94337 0.453711 7.45118 0.147461 6.89884 0.147461H6.88516C6.33009 0.15293 5.8379 0.467383 5.56993 0.992383L0.199616 11.5553C-0.0710867 12.0885 -0.0464773 12.7365 0.265241 13.2451C0.546882 13.7045 1.01993 13.9834 1.53126 13.9834L12.5234 13.9998H12.5262C13.043 13.9998 13.516 13.7182 13.7949 13.2533C14.1039 12.7365 14.1203 12.0803 13.8359 11.5443ZM12.857 12.69C12.8106 12.7693 12.7039 12.9061 12.5262 12.9061L1.53399 12.8896C1.35626 12.8896 1.24962 12.7557 1.2004 12.6764C1.11016 12.5287 1.05821 12.2881 1.17579 12.0529L6.54884 1.48457C6.62813 1.32871 6.75665 1.23027 6.89884 1.23027H6.90157C7.04376 1.23027 7.17227 1.32324 7.2543 1.4791L12.8707 12.0584C12.9965 12.2936 12.9445 12.5424 12.857 12.69Z",
2027
+ fill: color
2028
+ }));
2029
+ };
2030
+
1960
2031
  var _templateObject, _templateObject2, _templateObject3;
1961
2032
  var wrapperCss = css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n svg {\n overflow: visible;\n vector-effect: non-scaling-stroke;\n line,\n path,\n circle,\n ellipse,\n foreignObject,\n polygon,\n polyline,\n rect,\n text,\n textPath,\n tspan {\n vector-effect: non-scaling-stroke;\n }\n }\n"])));
1962
2033
  var IconWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n width: max-content;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n ", ";\n"])), function (_ref) {
@@ -2001,6 +2072,7 @@ var IconSVGs = {
2001
2072
  Grid_3x3: Grid_3x3,
2002
2073
  Grid_4x4: Grid_4x4,
2003
2074
  Grid_5x5: Grid_5x5,
2075
+ Hazard: Hazard,
2004
2076
  History: History,
2005
2077
  Information: Information,
2006
2078
  Key: Key,
@@ -2010,6 +2082,7 @@ var IconSVGs = {
2010
2082
  Live: Live,
2011
2083
  Lock: Lock,
2012
2084
  Logout: Logout,
2085
+ Maps: Maps,
2013
2086
  MediumVolume: MediumVolume,
2014
2087
  Mute: Mute,
2015
2088
  MuteVolume: MuteVolume,
@@ -2022,6 +2095,7 @@ var IconSVGs = {
2022
2095
  Play: Play,
2023
2096
  Profile_1: Profile_1,
2024
2097
  Profile_2: Profile_2,
2098
+ Profile_3: Profile_3,
2025
2099
  Recording: Recording,
2026
2100
  Return: Return,
2027
2101
  Rewind_10_Sec: Rewind_10_Sec,
@@ -2125,6 +2199,14 @@ var colorVariables = {
2125
2199
  error: "#B71C1C",
2126
2200
  info: "#0D30A1",
2127
2201
  warning: "#E65100"
2202
+ },
2203
+ badge: {
2204
+ lavender: '#E8DAFF',
2205
+ papayaWhip: '#FFEDD5',
2206
+ water: '#C7E3FF',
2207
+ paleBlue: '#B0F0E4',
2208
+ teaGreen: '#D5F7C2',
2209
+ lightBlue: '#ADD8E6'
2128
2210
  }
2129
2211
  };
2130
2212
 
@@ -2165,7 +2247,7 @@ var Container = styled.div(_templateObject4 || (_templateObject4 = _taggedTempla
2165
2247
  var gap = _ref8.gap;
2166
2248
  return gap || '4px';
2167
2249
  });
2168
- var StyledButton = styled.button(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n pointer-events: ", ";\n cursor: ", ";\n height: max-content;\n min-height: max-content;\n width: max-content;\n box-sizing: border-box;\n border-radius: ", ";\n outline: none;\n transition: all 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: ", ";\n\n &:focus {\n outline: none;\n }\n\n\n ", "\n"])), function (_ref9) {
2250
+ var StyledButton = styled.button(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n pointer-events: ", ";\n cursor: ", ";\n height: max-content;\n min-height: max-content;\n width: max-content;\n box-sizing: border-box;\n border-radius: ", ";\n outline: none;\n transition: all 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: ", ";\n\n &:focus {\n outline: none;\n }\n\n ", "\n color: ", "; \n"])), function (_ref9) {
2169
2251
  var disabled = _ref9.disabled;
2170
2252
  return disabled ? 'none' : 'auto';
2171
2253
  }, function (_ref10) {
@@ -2199,53 +2281,55 @@ var StyledButton = styled.button(_templateObject5 || (_templateObject5 = _tagged
2199
2281
  default:
2200
2282
  return '';
2201
2283
  }
2284
+ }, function (_ref14) {
2285
+ var color = _ref14.color;
2286
+ return color;
2202
2287
  });
2203
- var ButtonText = styled.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n white-space: nowrap;\n"])), function (_ref14) {
2204
- var fontFamily = _ref14.fontFamily;
2288
+ var ButtonText = styled.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n white-space: nowrap;\n"])), function (_ref15) {
2289
+ var fontFamily = _ref15.fontFamily;
2205
2290
  return fontFamily ? fontFamily : GlobalFonts.bold;
2206
- }, function (_ref15) {
2207
- var size = _ref15.size,
2208
- fontSize = _ref15.fontSize;
2209
- return size === 'small' ? '14px' : size === 'medium' ? '16px' : size === 'large' ? '18px' : size === 'custom' ? fontSize : '16px';
2210
2291
  }, function (_ref16) {
2211
- var fontWeight = _ref16.fontWeight,
2212
- size = _ref16.size;
2213
- return size === 'custom' && fontWeight || '500';
2292
+ var size = _ref16.size,
2293
+ fontSize = _ref16.fontSize;
2294
+ return size === 'small' ? '14px' : size === 'medium' ? '16px' : size === 'large' ? '18px' : size === 'custom' ? fontSize : '16px';
2214
2295
  }, function (_ref17) {
2215
- var size = _ref17.size,
2216
- fontSize = _ref17.fontSize;
2296
+ var fontWeight = _ref17.fontWeight,
2297
+ size = _ref17.size;
2298
+ return size === 'custom' && fontWeight || '500';
2299
+ }, function (_ref18) {
2300
+ var size = _ref18.size,
2301
+ fontSize = _ref18.fontSize;
2217
2302
  return size === 'small' ? '14px' : size === 'medium' ? '16px' : size === 'large' ? '18px' : size === 'custom' ? fontSize : '16px';
2218
2303
  });
2219
- var ButtonComponent = function ButtonComponent(_ref18) {
2220
- var onClick = _ref18.onClick,
2221
- text = _ref18.text,
2222
- size = _ref18.size,
2223
- background = _ref18.background,
2224
- _ref18$color = _ref18.color,
2225
- color = _ref18$color === void 0 ? colorVariables.text.white : _ref18$color,
2226
- border = _ref18.border,
2227
- borderRadius = _ref18.borderRadius,
2228
- fontWeight = _ref18.fontWeight,
2229
- fontSize = _ref18.fontSize,
2230
- fontFamily = _ref18.fontFamily,
2231
- padding = _ref18.padding,
2232
- icon = _ref18.icon,
2233
- gap = _ref18.gap,
2234
- _ref18$variant = _ref18.variant,
2235
- variant = _ref18$variant === void 0 ? 'primary' : _ref18$variant,
2236
- _ref18$iconPosition = _ref18.iconPosition,
2237
- iconPosition = _ref18$iconPosition === void 0 ? 'right' : _ref18$iconPosition,
2238
- _ref18$iconWeight = _ref18.iconWeight,
2239
- iconWeight = _ref18$iconWeight === void 0 ? '2' : _ref18$iconWeight,
2240
- iconSize = _ref18.iconSize,
2241
- _ref18$disabled = _ref18.disabled,
2242
- disabled = _ref18$disabled === void 0 ? false : _ref18$disabled,
2243
- _ref18$loaderProps = _ref18.loaderProps,
2244
- loaderProps = _ref18$loaderProps === void 0 ? {
2304
+ var ButtonComponent = function ButtonComponent(_ref19) {
2305
+ var onClick = _ref19.onClick,
2306
+ text = _ref19.text,
2307
+ size = _ref19.size,
2308
+ background = _ref19.background,
2309
+ color = _ref19.color,
2310
+ border = _ref19.border,
2311
+ borderRadius = _ref19.borderRadius,
2312
+ fontWeight = _ref19.fontWeight,
2313
+ fontSize = _ref19.fontSize,
2314
+ fontFamily = _ref19.fontFamily,
2315
+ padding = _ref19.padding,
2316
+ icon = _ref19.icon,
2317
+ gap = _ref19.gap,
2318
+ _ref19$variant = _ref19.variant,
2319
+ variant = _ref19$variant === void 0 ? 'primary' : _ref19$variant,
2320
+ _ref19$iconPosition = _ref19.iconPosition,
2321
+ iconPosition = _ref19$iconPosition === void 0 ? 'right' : _ref19$iconPosition,
2322
+ _ref19$iconWeight = _ref19.iconWeight,
2323
+ iconWeight = _ref19$iconWeight === void 0 ? '2' : _ref19$iconWeight,
2324
+ iconSize = _ref19.iconSize,
2325
+ _ref19$disabled = _ref19.disabled,
2326
+ disabled = _ref19$disabled === void 0 ? false : _ref19$disabled,
2327
+ _ref19$loaderProps = _ref19.loaderProps,
2328
+ loaderProps = _ref19$loaderProps === void 0 ? {
2245
2329
  loading: false,
2246
2330
  loaderPosition: 'right',
2247
2331
  loaderColor: colorVariables.text.white
2248
- } : _ref18$loaderProps;
2332
+ } : _ref19$loaderProps;
2249
2333
  var _useState = useState(false),
2250
2334
  isHovered = _useState[0],
2251
2335
  setIsHovered = _useState[1];
@@ -2274,7 +2358,7 @@ var ButtonComponent = function ButtonComponent(_ref18) {
2274
2358
  icon: icon,
2275
2359
  weight: iconWeight,
2276
2360
  size: iconSize ? iconSize : size === 'small' ? 6 : size === 'medium' ? 8 : 10,
2277
- 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
2361
+ 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
2278
2362
  }), text && React.createElement(ButtonText, {
2279
2363
  size: size,
2280
2364
  color: color,
@@ -2285,7 +2369,7 @@ var ButtonComponent = function ButtonComponent(_ref18) {
2285
2369
  loaderPosition: loaderPos
2286
2370
  }, React.createElement(Spinner, {
2287
2371
  size: size === 'small' ? 12 : size === 'medium' ? 16 : 18,
2288
- color: loaderProps.loaderColor || color
2372
+ color: loaderProps.loaderColor || 'color'
2289
2373
  })));
2290
2374
  };
2291
2375