@ornikar/kitt-universal 6.0.0 → 7.0.1

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.
Files changed (80) hide show
  1. package/dist/definitions/Avatar/Avatar.d.ts +5 -4
  2. package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
  3. package/dist/definitions/Button/AnimatedButtonPressable.d.ts +2 -1
  4. package/dist/definitions/Button/AnimatedButtonPressable.d.ts.map +1 -1
  5. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +2 -1
  6. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts.map +1 -1
  7. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +2 -1
  8. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -1
  9. package/dist/definitions/Button/Button.d.ts +2 -0
  10. package/dist/definitions/Button/Button.d.ts.map +1 -1
  11. package/dist/definitions/Button/ButtonContent.d.ts +3 -2
  12. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  13. package/dist/definitions/Button/getVariantValuesIfExist.d.ts +5 -0
  14. package/dist/definitions/Button/getVariantValuesIfExist.d.ts.map +1 -0
  15. package/dist/definitions/ExternalLink/ExternalLink.d.ts +3 -3
  16. package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -1
  17. package/dist/definitions/Icon/Icon.d.ts +1 -1
  18. package/dist/definitions/Icon/Icon.d.ts.map +1 -1
  19. package/dist/definitions/Icon/SpinningIcon.d.ts +4 -3
  20. package/dist/definitions/Icon/SpinningIcon.d.ts.map +1 -1
  21. package/dist/definitions/Icon/SpinningIcon.web.d.ts +1 -1
  22. package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
  23. package/dist/definitions/LoaderIcon/LoaderIcon.d.ts +7 -0
  24. package/dist/definitions/LoaderIcon/LoaderIcon.d.ts.map +1 -0
  25. package/dist/definitions/Overlay/Overlay.d.ts +1 -1
  26. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  27. package/dist/definitions/PageLoader/PageLoader.d.ts +4 -0
  28. package/dist/definitions/PageLoader/PageLoader.d.ts.map +1 -0
  29. package/dist/definitions/PageLoader/PageLoader.web.d.ts +3 -0
  30. package/dist/definitions/PageLoader/PageLoader.web.d.ts.map +1 -0
  31. package/dist/definitions/index.d.ts +5 -6
  32. package/dist/definitions/index.d.ts.map +1 -1
  33. package/dist/definitions/themes/default.d.ts +37 -36
  34. package/dist/definitions/themes/default.d.ts.map +1 -1
  35. package/dist/definitions/themes/late-ocean/avatar.d.ts +7 -3
  36. package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
  37. package/dist/definitions/themes/late-ocean/button.d.ts +26 -9
  38. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  39. package/dist/definitions/themes/late-ocean/pageLoader.d.ts +5 -0
  40. package/dist/definitions/themes/late-ocean/pageLoader.d.ts.map +1 -0
  41. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts +4 -2
  42. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts.map +1 -1
  43. package/dist/index-browser-all.es.android.js +202 -181
  44. package/dist/index-browser-all.es.android.js.map +1 -1
  45. package/dist/index-browser-all.es.ios.js +202 -181
  46. package/dist/index-browser-all.es.ios.js.map +1 -1
  47. package/dist/index-browser-all.es.js +202 -181
  48. package/dist/index-browser-all.es.js.map +1 -1
  49. package/dist/index-browser-all.es.web.js +222 -194
  50. package/dist/index-browser-all.es.web.js.map +1 -1
  51. package/dist/index-node-14.17.cjs.js +156 -134
  52. package/dist/index-node-14.17.cjs.js.map +1 -1
  53. package/dist/index-node-14.17.cjs.web.css +1 -1
  54. package/dist/index-node-14.17.cjs.web.js +188 -156
  55. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  56. package/dist/linaria-themes-browser-all.es.android.js +69 -40
  57. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  58. package/dist/linaria-themes-browser-all.es.ios.js +69 -40
  59. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  60. package/dist/linaria-themes-browser-all.es.js +69 -40
  61. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  62. package/dist/linaria-themes-browser-all.es.web.js +69 -40
  63. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  64. package/dist/linaria-themes-node-14.17.cjs.js +69 -40
  65. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  66. package/dist/linaria-themes-node-14.17.cjs.web.js +69 -40
  67. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  68. package/dist/styles.css +1 -1
  69. package/dist/tsbuildinfo +1 -1
  70. package/package.json +5 -5
  71. package/dist/definitions/Loader/LargeLoader.d.ts +0 -7
  72. package/dist/definitions/Loader/LargeLoader.d.ts.map +0 -1
  73. package/dist/definitions/Loader/LargeLoader.web.d.ts +0 -3
  74. package/dist/definitions/Loader/LargeLoader.web.d.ts.map +0 -1
  75. package/dist/definitions/Loader/Loader.d.ts +0 -8
  76. package/dist/definitions/Loader/Loader.d.ts.map +0 -1
  77. package/dist/definitions/Loader/Loader.web.d.ts +0 -8
  78. package/dist/definitions/Loader/Loader.web.d.ts.map +0 -1
  79. package/dist/definitions/typography/TypographySpinningIcon.d.ts +0 -9
  80. package/dist/definitions/typography/TypographySpinningIcon.d.ts.map +0 -1
@@ -2,6 +2,6 @@
2
2
  .kitt-u_InputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_InputTextContainer_i1encr9g > [data-focusvisible-polyfill]{outline:none;}.kitt-u_InputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_InputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_InputTextContainer_i1encr9g,.kitt-u_InputTextContainer_i1encr9g > *{cursor:var(--i1encr9g-0);}.kitt-u_InputTextContainer_i1encr9g > *{-webkit-transition:var(--i1encr9g-1);transition:var(--i1encr9g-1);}.kitt-u_InputTextContainer_i1encr9g:hover > *,.kitt-hover .kitt-u_InputTextContainer_i1encr9g > *{border-color:var(--i1encr9g-2);}.kitt-u_InputTextContainer_i1encr9g:focus > *,.kitt-u_InputTextContainer_i1encr9g > *:focus,.kitt-focus .kitt-u_InputTextContainer_i1encr9g > *{border-color:var(--i1encr9g-3);}
3
3
  .kitt-u_StyledSpinningIconContainer_ssn8o83{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}.kitt-u_StyledSpinningIconContainer_ssn8o83 > svg{-webkit-animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;}@-webkit-keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}@keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}
4
4
  @media (hover:none) and (pointer:coarse){.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-0));-ms-transform:scale(var(--p1nlccvg-0));transform:scale(var(--p1nlccvg-0));}}@media (min-width:768px){.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-2));-ms-transform:scale(var(--p1nlccvg-2));transform:scale(var(--p1nlccvg-2));}}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:active,.kitt-active .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-3));-ms-transform:scale(var(--p1nlccvg-3));transform:scale(var(--p1nlccvg-3));}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > [data-focusvisible-polyfill]{outline:none;}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:focus,.kitt-focus .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > [data-focusvisible-polyfill],.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:active,.kitt-active .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{background-color:var(--p1nlccvg-4);}
5
- .kitt-u_LargeLoaderContainer_l2im3sa{width:60px;height:60px;-webkit-transform:scale(-1) rotate(90deg);-ms-transform:scale(-1) rotate(90deg);transform:scale(-1) rotate(90deg);}@-webkit-keyframes LargeLoaderInit-kitt-u_LargeLoaderContainer_l2im3sa{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:0;}}@keyframes LargeLoaderInit-kitt-u_LargeLoaderContainer_l2im3sa{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:0;}}@-webkit-keyframes LargeLoaderOffset-kitt-u_LargeLoaderContainer_l2im3sa{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:34px;}}@keyframes LargeLoaderOffset-kitt-u_LargeLoaderContainer_l2im3sa{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:34px;}}@-webkit-keyframes LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}.kitt-u_LargeLoaderContainer_l2im3sa circle,.kitt-u_LargeLoaderContainer_l2im3sa g{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;}.kitt-u_LargeLoaderContainer_l2im3sa circle{stroke-width:3px;stroke-dasharray:169.64px;stroke-dashoffset:169.64px;stroke-linecap:round;}.kitt-u_LargeLoaderContainer_l2im3sa g[data-large-loader='base'] circle{stroke:var(--l2im3sa-0);-webkit-animation:LargeLoaderInit-kitt-u_LargeLoaderContainer_l2im3sa 1s cubic-bezier(0.39,0.575,0.565,1) 0.5s forwards;animation:LargeLoaderInit-kitt-u_LargeLoaderContainer_l2im3sa 1s cubic-bezier(0.39,0.575,0.565,1) 0.5s forwards;}.kitt-u_LargeLoaderContainer_l2im3sa g[data-large-loader='fill']{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;-webkit-animation:LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa 1.8s linear 0.5s infinite;animation:LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa 1.8s linear 0.5s infinite;}.kitt-u_LargeLoaderContainer_l2im3sa g[data-large-loader='fill'] circle{stroke:var(--l2im3sa-1);-webkit-animation:LargeLoaderOffset-kitt-u_LargeLoaderContainer_l2im3sa 1.8s cubic-bezier(0.39,0.575,0.565,1) 0.5s infinite alternate,LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa 2.16s linear 0.5s infinite;animation:LargeLoaderOffset-kitt-u_LargeLoaderContainer_l2im3sa 1.8s cubic-bezier(0.39,0.575,0.565,1) 0.5s infinite alternate,LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa 2.16s linear 0.5s infinite;}
5
+ .kitt-u_PageLoaderContainer_ptkwz2j{width:60px;height:60px;-webkit-transform:scale(-1) rotate(90deg);-ms-transform:scale(-1) rotate(90deg);transform:scale(-1) rotate(90deg);}@-webkit-keyframes PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:0;}}@keyframes PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:0;}}@-webkit-keyframes PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:34px;}}@keyframes PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:34px;}}@-webkit-keyframes PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}.kitt-u_PageLoaderContainer_ptkwz2j circle,.kitt-u_PageLoaderContainer_ptkwz2j g{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;}.kitt-u_PageLoaderContainer_ptkwz2j circle{stroke-width:3px;stroke-dasharray:169.64px;stroke-dashoffset:169.64px;stroke-linecap:round;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='base'] circle{stroke:var(--ptkwz2j-0);-webkit-animation:PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j 1s cubic-bezier(0.39,0.575,0.565,1) 0.5s forwards;animation:PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j 1s cubic-bezier(0.39,0.575,0.565,1) 0.5s forwards;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='fill']{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;-webkit-animation:PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j 1.8s linear 0.5s infinite;animation:PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j 1.8s linear 0.5s infinite;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='fill'] circle{stroke:var(--ptkwz2j-1);-webkit-animation:PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j 1.8s cubic-bezier(0.39,0.575,0.565,1) 0.5s infinite alternate,PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j 2.16s linear 0.5s infinite;animation:PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j 1.8s cubic-bezier(0.39,0.575,0.565,1) 0.5s infinite alternate,PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j 2.16s linear 0.5s infinite;}
6
6
  .kitt-u_StyledSkeleton_sc3upcl{background-color:var(--sc3upcl-0);position:relative;overflow:hidden;height:100%;width:100%;}@-webkit-keyframes flareTranslate-kitt-u_StyledSkeleton_sc3upcl{from{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);}to{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}}@keyframes flareTranslate-kitt-u_StyledSkeleton_sc3upcl{from{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);}to{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}}.kitt-u_StyledSkeleton_sc3upcl::after{content:'';position:absolute;width:100%;height:100%;top:0;left:0;background-image:var(--sc3upcl-1);-webkit-animation:var(--sc3upcl-2);animation:var(--sc3upcl-2);-webkit-animation-name:flareTranslate-kitt-u_StyledSkeleton_sc3upcl;animation-name:flareTranslate-kitt-u_StyledSkeleton_sc3upcl;}
7
7
  .kitt-u_TypographyLinkWebWrapper_tcwz3nt > *:hover,.kitt-u_TypographyLinkWebWrapper_tcwz3nt > *:active,.kitt-hover .kitt-u_TypographyLinkWebWrapper_tcwz3nt > *{-webkit-text-decoration:none;text-decoration:none;}.kitt-u_TypographyLinkWebWrapper_tcwz3nt > *:hover,.kitt-u_TypographyLinkWebWrapper_tcwz3nt > *:active,.kitt-hover .kitt-u_TypographyLinkWebWrapper_tcwz3nt > *{-webkit-text-decoration:var(--tcwz3nt-0);text-decoration:var(--tcwz3nt-0);}
@@ -283,10 +283,11 @@ const StyledAvatarView = /*#__PURE__*/styled__default(BabelPluginStyledComponent
283
283
  })(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], ({
284
284
  theme,
285
285
  $isRound,
286
- $size
286
+ $size,
287
+ $sizeVariant
287
288
  }) => {
288
289
  if ($isRound) return `${$size / 2}px`;
289
- return `${theme.kitt.avatar.borderRadius}px`;
290
+ return `${$sizeVariant === 'large' ? theme.kitt.avatar.large.borderRadius : theme.kitt.avatar.borderRadius}px`;
290
291
  }, ({
291
292
  theme,
292
293
  $isLight
@@ -302,8 +303,8 @@ function AvatarContent({
302
303
  firstname,
303
304
  lastname,
304
305
  alt,
305
- base,
306
- isLight
306
+ isLight,
307
+ sizeVariant
307
308
  }) {
308
309
  if (src) {
309
310
  return /*#__PURE__*/jsxRuntime.jsx(BabelPluginStyledComponentsReactNative.Image, {
@@ -320,8 +321,8 @@ function AvatarContent({
320
321
 
321
322
  if (firstname && lastname) {
322
323
  return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
323
- base: base,
324
- variant: "bold",
324
+ base: sizeVariant === 'large' ? 'body-large' : 'body',
325
+ variant: sizeVariant === 'large' ? 'bold' : 'regular',
325
326
  color: isLight ? 'black' : 'white',
326
327
  children: getInitials(firstname, lastname)
327
328
  });
@@ -336,19 +337,20 @@ function AvatarContent({
336
337
 
337
338
  function Avatar({
338
339
  size = 40,
339
- base = 'body-small',
340
340
  round,
341
341
  light,
342
+ sizeVariant,
342
343
  ...props
343
344
  }) {
344
345
  return /*#__PURE__*/jsxRuntime.jsx(StyledAvatarView, {
345
346
  $size: size,
346
347
  $isRound: round,
347
348
  $isLight: light,
349
+ $sizeVariant: sizeVariant,
348
350
  children: /*#__PURE__*/jsxRuntime.jsx(AvatarContent, {
349
351
  size: size,
350
- base: base,
351
352
  isLight: light,
353
+ sizeVariant: sizeVariant,
352
354
  ...props
353
355
  })
354
356
  });
@@ -376,6 +378,20 @@ function withTheme(WrappedComponent) {
376
378
  });
377
379
  }
378
380
 
381
+ const hasVariant = (button, variant) => {
382
+ return variant in button;
383
+ };
384
+
385
+ function getVariantValuesIfExist(theme, type, variant) {
386
+ const button = theme.kitt.button[type];
387
+
388
+ if (hasVariant(button, variant)) {
389
+ return button[variant];
390
+ }
391
+
392
+ return theme.kitt.button[type].default;
393
+ }
394
+
379
395
  function isSubtle(type) {
380
396
  return type.startsWith('subtle');
381
397
  }
@@ -400,10 +416,11 @@ const AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/react$1.styled(
400
416
  "a1vkj3mh-5": [({
401
417
  theme,
402
418
  $type,
419
+ $variant,
403
420
  $isDisabled
404
421
  }) => {
405
- if ($isDisabled) return theme.kitt.button.disabled.hoverBackgroundColor;
406
- return theme.kitt.button[$type].hoverBackgroundColor;
422
+ if ($isDisabled) return theme.kitt.button.disabled.default.hoverBackgroundColor;
423
+ return getVariantValuesIfExist(theme, $type, $variant).hoverBackgroundColor;
407
424
  }],
408
425
  "a1vkj3mh-6": [({
409
426
  theme
@@ -431,11 +448,12 @@ const AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/react$1.styled(
431
448
  }) => `calc(100% - ${theme.kitt.button.borderWidth.disabled * 0.5}px)`],
432
449
  "a1vkj3mh-14": [({
433
450
  theme
434
- }) => `${theme.kitt.button.borderWidth.disabled}px solid ${theme.kitt.button.disabled.borderColor}`],
451
+ }) => `${theme.kitt.button.borderWidth.disabled}px solid ${theme.kitt.button.disabled.default.borderColor}`],
435
452
  "a1vkj3mh-15": [({
436
453
  theme,
437
- $type
438
- }) => `${theme.kitt.button.borderWidth.focus}px solid ${theme.kitt.button[$type].focusBorderColor}`],
454
+ $type,
455
+ $variant
456
+ }) => `${theme.kitt.button.borderWidth.focus}px solid ${getVariantValuesIfExist(theme, $type, $variant).focusBorderColor}`],
439
457
  "a1vkj3mh-16": [({
440
458
  theme
441
459
  }) => `-${theme.kitt.button.borderWidth.focus}px`],
@@ -445,8 +463,12 @@ const AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/react$1.styled(
445
463
  $isDisabled
446
464
  }) => {
447
465
  if ($isDisabled) return theme.kitt.typography.colors['black-light'];
448
- if (!isSubtle($type)) return 'inherit';
449
- return theme.kitt.button[$type].color;
466
+
467
+ if (isSubtle($type)) {
468
+ return theme.kitt.button[$type].default.color;
469
+ }
470
+
471
+ return 'inherit';
450
472
  }],
451
473
  "a1vkj3mh-19": [({
452
474
  theme,
@@ -454,8 +476,12 @@ const AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/react$1.styled(
454
476
  $isDisabled
455
477
  }) => {
456
478
  if ($isDisabled) return theme.kitt.typography.colors['black-light'];
457
- if (!isSubtle($type)) return 'inherit';
458
- return theme.kitt.button[$type].hoverColor;
479
+
480
+ if (isSubtle($type)) {
481
+ return theme.kitt.button[$type].default.hoverColor;
482
+ }
483
+
484
+ return 'inherit';
459
485
  }],
460
486
  "a1vkj3mh-20": [({
461
487
  theme,
@@ -463,13 +489,18 @@ const AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/react$1.styled(
463
489
  $isDisabled
464
490
  }) => {
465
491
  if ($isDisabled) return theme.kitt.typography.colors['black-light'];
466
- if (!isSubtle($type)) return 'inherit';
467
- return theme.kitt.button[$type].activeColor;
492
+
493
+ if (isSubtle($type)) {
494
+ return theme.kitt.button[$type].default.activeColor;
495
+ }
496
+
497
+ return 'inherit';
468
498
  }]
469
499
  }
470
500
  }));
471
501
  const AnimatedButtonPressable = /*#__PURE__*/react.forwardRef(({
472
502
  $type,
503
+ $variant,
473
504
  $isStretch,
474
505
  disabled,
475
506
  ...props
@@ -477,6 +508,7 @@ const AnimatedButtonPressable = /*#__PURE__*/react.forwardRef(({
477
508
  return /*#__PURE__*/jsxRuntime.jsx(AnimatedButtonPressableContainer, {
478
509
  ref: ref,
479
510
  $type: $type,
511
+ $variant: $variant,
480
512
  $isDisabled: !!disabled,
481
513
  $isStretch: $isStretch,
482
514
  children: /*#__PURE__*/jsxRuntime.jsx(BabelPluginStyledComponentsReactNative.Pressable, {
@@ -503,10 +535,11 @@ const BaseStyledButtonPressable = /*#__PURE__*/styled__default(BabelPluginStyled
503
535
  }) => theme.kitt.button.borderRadius, ({
504
536
  theme,
505
537
  $isDisabled,
506
- $type
538
+ $type,
539
+ $variant
507
540
  }) => {
508
- if ($isDisabled) return theme.kitt.button.disabled.backgroundColor;
509
- return theme.kitt.button[$type].backgroundColor;
541
+ if ($isDisabled) return theme.kitt.button.disabled.default.backgroundColor;
542
+ return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
510
543
  }, ({
511
544
  theme,
512
545
  $isLarge,
@@ -555,10 +588,10 @@ function TypographyIcon({
555
588
  });
556
589
  }
557
590
 
558
- const getTextColorByType = type => {
591
+ const getTextColorByType = (type, variant) => {
559
592
  switch (type) {
560
593
  case 'primary':
561
- return 'white';
594
+ return variant === 'ghost' ? 'primary' : 'white';
562
595
 
563
596
  case 'white':
564
597
  return 'white';
@@ -693,13 +726,14 @@ const ButtonContentContainer = /*#__PURE__*/styled__default(BabelPluginStyledCom
693
726
  });
694
727
  function ButtonContent({
695
728
  type,
729
+ variant,
696
730
  isDisabled,
697
731
  $isStretch,
698
732
  icon,
699
733
  children,
700
734
  ...props
701
735
  }) {
702
- const color = isDisabled ? 'black-light' : getTextColorByType(type);
736
+ const color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
703
737
  return /*#__PURE__*/jsxRuntime.jsx(ButtonContentContainer, {
704
738
  $isSubtle: isSubtle(type),
705
739
  $isStretch: $isStretch,
@@ -718,6 +752,7 @@ function ButtonContent({
718
752
  const Button = /*#__PURE__*/react.forwardRef(({
719
753
  children,
720
754
  type = 'default',
755
+ variant = 'default',
721
756
  disabled,
722
757
  stretch,
723
758
  large,
@@ -729,6 +764,10 @@ const Button = /*#__PURE__*/react.forwardRef(({
729
764
  accessibilityRole = 'button',
730
765
  onPress
731
766
  }, ref) => {
767
+ if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && type !== 'primary') {
768
+ throw new Error('variant=ghost is only allowed with type=primary');
769
+ }
770
+
732
771
  return /*#__PURE__*/jsxRuntime.jsx(AnimatedButtonPressable, {
733
772
  ref: ref,
734
773
  accessibilityRole: accessibilityRole,
@@ -738,14 +777,17 @@ const Button = /*#__PURE__*/react.forwardRef(({
738
777
  disabled: disabled,
739
778
  $isStretch: stretch,
740
779
  $type: type,
780
+ $variant: variant,
741
781
  onPress: onPress,
742
782
  children: /*#__PURE__*/jsxRuntime.jsxs(BaseStyledButtonPressable, {
743
783
  $type: type,
784
+ $variant: variant,
744
785
  $isStretch: stretch,
745
786
  $isLarge: large,
746
787
  $isDisabled: disabled,
747
788
  children: [/*#__PURE__*/jsxRuntime.jsx(ButtonContent, {
748
789
  type: type,
790
+ variant: variant,
749
791
  $isStretch: stretch,
750
792
  isDisabled: disabled,
751
793
  icon: icon,
@@ -887,6 +929,9 @@ const avatar = {
887
929
  },
888
930
  light: {
889
931
  backgroundColor: lateOceanColorPalette.black100
932
+ },
933
+ large: {
934
+ borderRadius: 30
890
935
  }
891
936
  };
892
937
 
@@ -919,47 +964,68 @@ const button = {
919
964
  timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
920
965
  },
921
966
  default: {
922
- backgroundColor: 'rgba(0, 0, 0, 0.05)',
923
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
924
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
925
- focusBorderColor: 'rgba(0, 0, 0, 0.1)'
967
+ default: {
968
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
969
+ pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
970
+ hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
971
+ focusBorderColor: 'rgba(0, 0, 0, 0.1)'
972
+ }
926
973
  },
927
974
  primary: {
928
- backgroundColor: colors.primary,
929
- pressedBackgroundColor: colors.primaryLight,
930
- hoverBackgroundColor: colors.primaryLight,
931
- focusBorderColor: 'rgba(76, 52, 224, 0.2)'
975
+ default: {
976
+ backgroundColor: colors.primary,
977
+ pressedBackgroundColor: colors.primaryLight,
978
+ hoverBackgroundColor: colors.primaryLight,
979
+ focusBorderColor: 'rgba(76, 52, 224, 0.2)'
980
+ },
981
+ ghost: {
982
+ backgroundColor: colors.uiBackgroundLight,
983
+ pressedBackgroundColor: colors.uiBackground,
984
+ hoverBackgroundColor: colors.hover,
985
+ focusBorderColor: 'rgba(255,255,255, 0.4)',
986
+ color: colors.primary,
987
+ hoverColor: colors.hover,
988
+ activeColor: colors.hover
989
+ }
932
990
  },
933
991
  white: {
934
- backgroundColor: 'rgba(255, 255, 255, 0.05)',
935
- pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
936
- hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
937
- focusBorderColor: 'rgba(255, 255, 255, 0.1)'
992
+ default: {
993
+ backgroundColor: 'rgba(255, 255, 255, 0.05)',
994
+ pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
995
+ hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
996
+ focusBorderColor: 'rgba(255, 255, 255, 0.1)'
997
+ }
938
998
  },
939
999
  subtle: {
940
- backgroundColor: colors.transparent,
941
- pressedBackgroundColor: colors.transparent,
942
- hoverBackgroundColor: colors.transparent,
943
- focusBorderColor: 'rgba(76, 52, 224, 0.2)',
944
- color: colors.primary,
945
- hoverColor: 'rgba(76, 52, 224, 0.8)',
946
- activeColor: 'rgba(76, 52, 224, 0.8)'
1000
+ default: {
1001
+ backgroundColor: colors.transparent,
1002
+ pressedBackgroundColor: colors.transparent,
1003
+ hoverBackgroundColor: colors.transparent,
1004
+ focusBorderColor: 'rgba(76, 52, 224, 0.2)',
1005
+ color: colors.primary,
1006
+ hoverColor: 'rgba(76, 52, 224, 0.8)',
1007
+ activeColor: 'rgba(76, 52, 224, 0.8)'
1008
+ }
947
1009
  },
948
1010
  'subtle-dark': {
949
- backgroundColor: colors.transparent,
950
- pressedBackgroundColor: colors.transparent,
951
- hoverBackgroundColor: colors.transparent,
952
- focusBorderColor: 'rgba(0, 0, 0, 0.1)',
953
- color: colors.black,
954
- hoverColor: 'rgba(0, 0, 0, 0.8)',
955
- activeColor: 'rgba(0, 0, 0, 0.8)'
1011
+ default: {
1012
+ backgroundColor: colors.transparent,
1013
+ pressedBackgroundColor: colors.transparent,
1014
+ hoverBackgroundColor: colors.transparent,
1015
+ focusBorderColor: 'rgba(0, 0, 0, 0.1)',
1016
+ color: colors.black,
1017
+ hoverColor: 'rgba(0, 0, 0, 0.8)',
1018
+ activeColor: 'rgba(0, 0, 0, 0.8)'
1019
+ }
956
1020
  },
957
1021
  disabled: {
958
- backgroundColor: colors.disabled,
959
- pressedBackgroundColor: colors.disabled,
960
- hoverBackgroundColor: colors.disabled,
961
- focusBorderColor: lateOceanColorPalette.black100,
962
- borderColor: lateOceanColorPalette.black100
1022
+ default: {
1023
+ backgroundColor: colors.disabled,
1024
+ pressedBackgroundColor: colors.disabled,
1025
+ hoverBackgroundColor: colors.disabled,
1026
+ focusBorderColor: lateOceanColorPalette.black100,
1027
+ borderColor: lateOceanColorPalette.black100
1028
+ }
963
1029
  }
964
1030
  };
965
1031
 
@@ -1235,14 +1301,14 @@ const iconButton = {
1235
1301
  },
1236
1302
  disabled: {
1237
1303
  scale: 1,
1238
- backgroundColor: button.disabled.backgroundColor,
1239
- borderColor: button.disabled.borderColor
1304
+ backgroundColor: button.disabled.default.backgroundColor,
1305
+ borderColor: button.disabled.default.borderColor
1240
1306
  },
1241
1307
  default: {
1242
- pressedBackgroundColor: button.default.pressedBackgroundColor
1308
+ pressedBackgroundColor: button.default.default.pressedBackgroundColor
1243
1309
  },
1244
1310
  white: {
1245
- pressedBackgroundColor: button.white.hoverBackgroundColor
1311
+ pressedBackgroundColor: button.white.default.hoverBackgroundColor
1246
1312
  }
1247
1313
  };
1248
1314
 
@@ -1253,6 +1319,10 @@ const listItem = {
1253
1319
  innerMargin: 8
1254
1320
  };
1255
1321
 
1322
+ const pageLoader = {
1323
+ size: 60
1324
+ };
1325
+
1256
1326
  const shadows = {
1257
1327
  medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
1258
1328
  };
@@ -1343,19 +1413,20 @@ const theme = {
1343
1413
  lateOcean: lateOceanColorPalette
1344
1414
  },
1345
1415
  avatar,
1416
+ breakpoints,
1346
1417
  button,
1347
1418
  card,
1348
1419
  feedbackMessage,
1349
1420
  forms,
1350
- typography,
1351
- tag,
1352
- shadows,
1353
1421
  fullScreenModal,
1354
1422
  iconButton,
1355
1423
  listItem,
1356
- tooltip,
1424
+ pageLoader,
1425
+ shadows,
1357
1426
  skeleton,
1358
- breakpoints
1427
+ tag,
1428
+ tooltip,
1429
+ typography
1359
1430
  };
1360
1431
 
1361
1432
  function matchWindowSize({
@@ -2216,20 +2287,13 @@ const StyledSpinningIconContainer = withTheme( /*#__PURE__*/react$1.styled("div"
2216
2287
  }));
2217
2288
  function SpinningIcon({
2218
2289
  icon,
2219
- size = defaultIconSize,
2220
- align,
2221
2290
  color
2222
2291
  }) {
2223
2292
  const clonedIcon = /*#__PURE__*/react.cloneElement(icon, {
2224
2293
  color
2225
2294
  });
2226
- return /*#__PURE__*/jsxRuntime.jsx(IconContainer$1, {
2227
- $align: align,
2228
- $size: size,
2229
- $color: color,
2230
- children: /*#__PURE__*/jsxRuntime.jsx(StyledSpinningIconContainer, {
2231
- children: clonedIcon
2232
- })
2295
+ return /*#__PURE__*/jsxRuntime.jsx(StyledSpinningIconContainer, {
2296
+ children: clonedIcon
2233
2297
  });
2234
2298
  }
2235
2299
 
@@ -2511,85 +2575,12 @@ ListItem.Content = ListItemContent;
2511
2575
  ListItem.SideContent = ListItemSideContent;
2512
2576
  ListItem.SideContainer = ListItemSideContainer;
2513
2577
 
2514
- const LargeLoaderContainer = withTheme( /*#__PURE__*/react$1.styled("div")({
2515
- name: "LargeLoaderContainer",
2516
- class: "kitt-u_LargeLoaderContainer_l2im3sa",
2517
- vars: {
2518
- "l2im3sa-0": [({
2519
- theme
2520
- }) => theme.kitt.colors.separator],
2521
- "l2im3sa-1": [({
2522
- theme
2523
- }) => theme.kitt.colors.primary]
2524
- }
2525
- }));
2526
- function LargeLoader() {
2527
- return /*#__PURE__*/jsxRuntime.jsx(LargeLoaderContainer, {
2528
- children: /*#__PURE__*/jsxRuntime.jsxs("svg", {
2529
- width: "60",
2530
- height: "60",
2531
- children: [/*#__PURE__*/jsxRuntime.jsx("g", {
2532
- "data-large-loader": "base",
2533
- children: /*#__PURE__*/jsxRuntime.jsx("circle", {
2534
- cx: "30",
2535
- cy: "30",
2536
- r: "27",
2537
- fill: "none"
2538
- })
2539
- }), /*#__PURE__*/jsxRuntime.jsx("g", {
2540
- "data-large-loader": "fill",
2541
- children: /*#__PURE__*/jsxRuntime.jsx("circle", {
2542
- cx: "30",
2543
- cy: "30",
2544
- r: "27",
2545
- fill: "none"
2546
- })
2547
- })]
2548
- })
2549
- });
2550
- }
2551
-
2552
- function TypographySpinningIconSpecifiedColor({
2553
- color,
2554
- ...props
2555
- }) {
2556
- const theme = /*#__PURE__*/styled.useTheme();
2557
- return /*#__PURE__*/jsxRuntime.jsx(SpinningIcon, { ...props,
2558
- color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
2559
- });
2560
- }
2561
-
2562
- function TypographySpinningIconInheritColor(props) {
2563
- const color = useTypographyColor();
2564
- return /*#__PURE__*/jsxRuntime.jsx(TypographySpinningIconSpecifiedColor, {
2565
- color: color,
2566
- ...props
2567
- });
2568
- }
2569
-
2570
- function TypographySpinningIcon({
2571
- color,
2572
- ...props
2573
- }) {
2574
- if (color) {
2575
- return /*#__PURE__*/jsxRuntime.jsx(TypographySpinningIconSpecifiedColor, {
2576
- color: color,
2577
- ...props
2578
- });
2579
- }
2580
-
2581
- return /*#__PURE__*/jsxRuntime.jsx(TypographySpinningIconInheritColor, { ...props
2582
- });
2583
- }
2584
-
2585
- function Loader({
2586
- color = 'primary',
2587
- size = 20
2578
+ function LoaderIcon({
2579
+ color
2588
2580
  }) {
2589
- return /*#__PURE__*/jsxRuntime.jsx(TypographySpinningIcon, {
2581
+ return /*#__PURE__*/jsxRuntime.jsx(SpinningIcon, {
2590
2582
  color: color,
2591
- size: size,
2592
- icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.LoaderIcon, {})
2583
+ icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.ArcIcon, {})
2593
2584
  });
2594
2585
  }
2595
2586
 
@@ -2766,8 +2757,7 @@ function Overlay({
2766
2757
  }) {
2767
2758
  return /*#__PURE__*/jsxRuntime.jsx(OverlayPressable, {
2768
2759
  accessibilityRole: "none",
2769
- onPress: onPress,
2770
- children: /*#__PURE__*/jsxRuntime.jsx(BabelPluginStyledComponentsReactNative.View, {})
2760
+ onPress: onPress
2771
2761
  });
2772
2762
  }
2773
2763
 
@@ -2926,6 +2916,48 @@ function Notification({
2926
2916
  });
2927
2917
  }
2928
2918
 
2919
+ const PageLoaderContainer = withTheme( /*#__PURE__*/react$1.styled("div")({
2920
+ name: "PageLoaderContainer",
2921
+ class: "kitt-u_PageLoaderContainer_ptkwz2j",
2922
+ vars: {
2923
+ "ptkwz2j-0": [({
2924
+ theme
2925
+ }) => theme.kitt.colors.separator],
2926
+ "ptkwz2j-1": [({
2927
+ theme
2928
+ }) => theme.kitt.colors.primary]
2929
+ }
2930
+ }));
2931
+ function PageLoader() {
2932
+ const theme = /*#__PURE__*/styled.useTheme();
2933
+ const {
2934
+ size
2935
+ } = theme.kitt.pageLoader;
2936
+ return /*#__PURE__*/jsxRuntime.jsx(PageLoaderContainer, {
2937
+ children: /*#__PURE__*/jsxRuntime.jsxs("svg", {
2938
+ width: size,
2939
+ height: size,
2940
+ children: [/*#__PURE__*/jsxRuntime.jsx("g", {
2941
+ "data-large-loader": "base",
2942
+ children: /*#__PURE__*/jsxRuntime.jsx("circle", {
2943
+ cx: "30",
2944
+ cy: "30",
2945
+ r: "27",
2946
+ fill: "none"
2947
+ })
2948
+ }), /*#__PURE__*/jsxRuntime.jsx("g", {
2949
+ "data-large-loader": "fill",
2950
+ children: /*#__PURE__*/jsxRuntime.jsx("circle", {
2951
+ cx: "30",
2952
+ cy: "30",
2953
+ r: "27",
2954
+ fill: "none"
2955
+ })
2956
+ })]
2957
+ })
2958
+ });
2959
+ }
2960
+
2929
2961
  const StyledSkeleton = withTheme( /*#__PURE__*/react$1.styled("div")({
2930
2962
  name: "StyledSkeleton",
2931
2963
  class: "kitt-u_StyledSkeleton_sc3upcl",
@@ -3746,13 +3778,14 @@ exports.KittBreakpointsMax = KittBreakpointsMax;
3746
3778
  exports.KittThemeDecorator = KittThemeDecorator;
3747
3779
  exports.KittThemeProvider = KittThemeProvider;
3748
3780
  exports.Label = Label;
3749
- exports.LargeLoader = LargeLoader;
3750
3781
  exports.ListItem = ListItem;
3751
- exports.Loader = Loader;
3782
+ exports.LoaderIcon = LoaderIcon;
3752
3783
  exports.MatchWindowSize = MatchWindowSize;
3753
3784
  exports.Message = Message;
3754
3785
  exports.Modal = Modal;
3755
3786
  exports.Notification = Notification;
3787
+ exports.Overlay = Overlay;
3788
+ exports.PageLoader = PageLoader;
3756
3789
  exports.Radio = Radio;
3757
3790
  exports.Section = DeprecatedSection;
3758
3791
  exports.Skeleton = Skeleton;
@@ -3773,7 +3806,6 @@ exports.Typography = Typography;
3773
3806
  exports.TypographyEmoji = TypographyEmoji;
3774
3807
  exports.TypographyIcon = TypographyIcon;
3775
3808
  exports.TypographyLink = TypographyLink;
3776
- exports.TypographySpinningIcon = TypographySpinningIcon;
3777
3809
  exports.createWindowSizeHelper = createWindowSizeHelper;
3778
3810
  exports.hex2rgba = hex2rgba;
3779
3811
  exports.matchWindowSize = matchWindowSize;