@ornikar/kitt-universal 27.0.0 → 27.0.1-canary.e2bc67122aa41f65986d23f21317b442b05d8963.0

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 (70) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/definitions/Button/AnimatedContainer.d.ts +2 -1
  3. package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
  4. package/dist/definitions/Button/Button.d.ts +2 -17
  5. package/dist/definitions/Button/Button.d.ts.map +1 -1
  6. package/dist/definitions/Button/ButtonContent.d.ts +10 -8
  7. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  8. package/dist/definitions/Button/ButtonPadding.d.ts +1 -1
  9. package/dist/definitions/Button/ButtonPadding.d.ts.map +1 -1
  10. package/dist/definitions/Button/FocusBorder.d.ts +1 -4
  11. package/dist/definitions/Button/FocusBorder.d.ts.map +1 -1
  12. package/dist/definitions/Button/hooks/useNativeAnimation.d.ts +1 -1
  13. package/dist/definitions/Button/hooks/useNativeAnimation.d.ts.map +1 -1
  14. package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts +12 -3
  15. package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts.map +1 -1
  16. package/dist/definitions/Button/utils/getCurrentBackgroundColorForNativeBaseTheme.d.ts +3 -2
  17. package/dist/definitions/Button/utils/getCurrentBackgroundColorForNativeBaseTheme.d.ts.map +1 -1
  18. package/dist/definitions/ButtonBadge/ButtonBadge.d.ts +2 -1
  19. package/dist/definitions/ButtonBadge/ButtonBadge.d.ts.map +1 -1
  20. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +30 -23
  21. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  22. package/dist/definitions/story-components/StoryBlock.d.ts +1 -1
  23. package/dist/definitions/themes/late-ocean/button.d.ts +26 -52
  24. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  25. package/dist/definitions/themes/late-ocean/buttonBadge.d.ts +4 -1
  26. package/dist/definitions/themes/late-ocean/buttonBadge.d.ts.map +1 -1
  27. package/dist/definitions/themes/late-ocean/iconButton.d.ts +0 -1
  28. package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -1
  29. package/dist/definitions/typography/Typography.d.ts +1 -1
  30. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  31. package/dist/index-metro.es.android.js +238 -306
  32. package/dist/index-metro.es.android.js.map +1 -1
  33. package/dist/index-metro.es.ios.js +238 -306
  34. package/dist/index-metro.es.ios.js.map +1 -1
  35. package/dist/index-node-22.17.cjs.js +232 -300
  36. package/dist/index-node-22.17.cjs.js.map +1 -1
  37. package/dist/index-node-22.17.cjs.web.js +231 -284
  38. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  39. package/dist/index-node-22.17.es.mjs +232 -300
  40. package/dist/index-node-22.17.es.mjs.map +1 -1
  41. package/dist/index-node-22.17.es.web.mjs +231 -284
  42. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  43. package/dist/index.es.js +260 -322
  44. package/dist/index.es.js.map +1 -1
  45. package/dist/index.es.web.js +259 -307
  46. package/dist/index.es.web.js.map +1 -1
  47. package/dist/linaria-themes-metro.es.android.js +130 -116
  48. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  49. package/dist/linaria-themes-metro.es.ios.js +130 -116
  50. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  51. package/dist/linaria-themes-node-22.17.cjs.js +130 -116
  52. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  53. package/dist/linaria-themes-node-22.17.cjs.web.js +130 -116
  54. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  55. package/dist/linaria-themes-node-22.17.es.mjs +130 -116
  56. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  57. package/dist/linaria-themes-node-22.17.es.web.mjs +130 -116
  58. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  59. package/dist/linaria-themes.es.js +130 -116
  60. package/dist/linaria-themes.es.js.map +1 -1
  61. package/dist/linaria-themes.es.web.js +130 -116
  62. package/dist/linaria-themes.es.web.js.map +1 -1
  63. package/dist/tsbuildinfo +1 -1
  64. package/package.json +1 -1
  65. package/dist/definitions/Button/DisabledBorder.d.ts +0 -3
  66. package/dist/definitions/Button/DisabledBorder.d.ts.map +0 -1
  67. package/dist/definitions/Button/getVariantValuesIfExist.d.ts +0 -5
  68. package/dist/definitions/Button/getVariantValuesIfExist.d.ts.map +0 -1
  69. package/dist/definitions/Button/utils/getButtonSize.d.ts +0 -3
  70. package/dist/definitions/Button/utils/getButtonSize.d.ts.map +0 -1
@@ -508,15 +508,18 @@ const bottomSheet = {
508
508
  }
509
509
  };
510
510
 
511
+ // Strongly typed theme so every new type/variant/size can't be added
512
+ // without defined color & backgroundColor or icon size
513
+
511
514
  const button = {
512
- borderRadius: 30,
515
+ borderRadius: 4,
513
516
  borderWidth: {
514
- disabled: 2,
515
517
  focus: 3
516
518
  },
517
519
  minHeight: 40,
518
520
  minWidth: 40,
519
521
  maxWidth: 335,
522
+ maxHeight: 48,
520
523
  scale: {
521
524
  base: {
522
525
  default: 1,
@@ -527,148 +530,160 @@ const button = {
527
530
  hover: 1.05
528
531
  }
529
532
  },
530
- contentPadding: {
531
- default: '7px 16px 7px',
532
- large: '11px 24px 11px',
533
- xLarge: '15px 24px 15px',
534
- disabled: '5px 14px 5px'
533
+ icon: {
534
+ medium: {
535
+ size: 24
536
+ },
537
+ default: {
538
+ size: 20
539
+ }
535
540
  },
536
541
  padding: {
537
542
  default: {
538
- hasBadge: {
539
- right: 8
540
- },
541
543
  horizontal: 16,
542
- vertical: 7
544
+ vertical: 8
543
545
  },
544
- large: {
545
- hasBadge: {
546
- right: 12
547
- },
548
- horizontal: 24,
549
- vertical: 11
550
- },
551
- xLarge: {
552
- hasBadge: {
553
- right: 12
554
- },
546
+ medium: {
555
547
  horizontal: 24,
556
- vertical: 15
548
+ vertical: 12
557
549
  }
558
550
  },
559
551
  transition: {
560
552
  duration: '200ms',
561
553
  timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
562
554
  },
563
- default: {
564
- default: {
565
- backgroundColor: 'rgba(0, 0, 0, 0.05)',
566
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
567
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
568
- focusBorderColor: 'rgba(0, 0, 0, 0.1)'
569
- },
570
- ghost: {
571
- backgroundColor: 'rgba(255, 255, 255, 0.1)',
572
- pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
573
- hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
574
- focusBorderColor: 'rgba(255, 255, 255, 0.4)',
575
- color: deepPurpleColorPalette.white,
576
- hoverColor: deepPurpleColorPalette.white,
577
- activeColor: deepPurpleColorPalette.white
578
- }
579
- },
555
+ focusBorderColor: deepPurpleColorPalette['blue.2'],
580
556
  primary: {
581
557
  default: {
582
- backgroundColor: colors.primary,
583
- pressedBackgroundColor: colors.primaryLight,
584
- hoverBackgroundColor: colors.primaryLight,
585
- focusBorderColor: 'rgba(76, 52, 224, 0.2)'
558
+ backgroundColor: {
559
+ default: colors.primary,
560
+ hover: deepPurpleColorPalette['deepPurple.7'],
561
+ pressed: deepPurpleColorPalette['deepPurple.7'],
562
+ disabled: deepPurpleColorPalette['grey.3'],
563
+ focus: colors.primary
564
+ },
565
+ color: {
566
+ default: colors.white,
567
+ hover: colors.white,
568
+ pressed: colors.white,
569
+ disabled: colors.disabled,
570
+ focus: colors.white
571
+ }
586
572
  },
587
- ghost: {
588
- backgroundColor: colors.uiBackgroundLight,
589
- pressedBackgroundColor: colors.uiBackground,
590
- hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
591
- focusBorderColor: 'rgba(255,255,255, 0.4)',
592
- color: colors.primary,
593
- hoverColor: deepPurpleColorPalette['beige.2'],
594
- activeColor: deepPurpleColorPalette['beige.2']
595
- }
596
- },
597
- dark: {
598
- default: {
599
- backgroundColor: colors.black,
600
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.8)',
601
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.8)',
602
- focusBorderColor: 'rgba(0, 0, 0, 0.8)'
573
+ revert: {
574
+ backgroundColor: {
575
+ default: colors.white,
576
+ hover: deepPurpleColorPalette['white-alpha.80'],
577
+ pressed: deepPurpleColorPalette['white-alpha.80'],
578
+ disabled: deepPurpleColorPalette['grey.3'],
579
+ focus: colors.white
580
+ },
581
+ color: {
582
+ default: colors.black,
583
+ hover: colors.black,
584
+ pressed: colors.black,
585
+ disabled: colors.disabled,
586
+ focus: colors.black
587
+ }
603
588
  }
604
589
  },
605
- danger: {
590
+ secondary: {
606
591
  default: {
607
- backgroundColor: deepPurpleColorPalette['red.1'],
608
- pressedBackgroundColor: deepPurpleColorPalette['red.2'],
609
- hoverBackgroundColor: deepPurpleColorPalette['red.2'],
610
- focusBorderColor: deepPurpleColorPalette['red.2']
592
+ backgroundColor: {
593
+ default: deepPurpleColorPalette['beige-alpha.25'],
594
+ hover: deepPurpleColorPalette['beige-alpha.40'],
595
+ pressed: deepPurpleColorPalette['beige-alpha.40'],
596
+ disabled: colors.disabled,
597
+ focus: deepPurpleColorPalette['beige-alpha.25']
598
+ },
599
+ color: {
600
+ default: colors.black,
601
+ hover: colors.black,
602
+ pressed: colors.black,
603
+ disabled: deepPurpleColorPalette['grey.3'],
604
+ focus: colors.black
605
+ }
611
606
  },
612
- ghost: {
613
- backgroundColor: colors.uiBackgroundLight,
614
- pressedBackgroundColor: colors.uiBackground,
615
- hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
616
- focusBorderColor: 'rgba(255, 255, 255, 0.4)',
617
- color: deepPurpleColorPalette['red.6'],
618
- hoverColor: deepPurpleColorPalette['red.6'],
619
- activeColor: deepPurpleColorPalette['red.6']
620
- }
621
- },
622
- subtle: {
623
- default: {
624
- backgroundColor: colors.transparent,
625
- pressedBackgroundColor: colors.transparent,
626
- hoverBackgroundColor: colors.transparent,
627
- focusBorderColor: 'rgba(76, 52, 224, 0.2)',
628
- color: colors.primary,
629
- hoverColor: 'rgba(76, 52, 224, 0.8)',
630
- activeColor: 'rgba(76, 52, 224, 0.8)'
631
- }
632
- },
633
- 'subtle-dark': {
634
- default: {
635
- backgroundColor: colors.transparent,
636
- pressedBackgroundColor: colors.transparent,
637
- hoverBackgroundColor: colors.transparent,
638
- focusBorderColor: 'rgba(0, 0, 0, 0.1)',
639
- color: colors.black,
640
- hoverColor: 'rgba(0, 0, 0, 0.8)',
641
- activeColor: 'rgba(0, 0, 0, 0.8)'
607
+ revert: {
608
+ backgroundColor: {
609
+ default: deepPurpleColorPalette['white-alpha.10'],
610
+ hover: deepPurpleColorPalette['white-alpha.20'],
611
+ pressed: deepPurpleColorPalette['white-alpha.20'],
612
+ disabled: colors.disabled,
613
+ focus: deepPurpleColorPalette['white-alpha.10']
614
+ },
615
+ color: {
616
+ default: colors.white,
617
+ hover: deepPurpleColorPalette['white-alpha.80'],
618
+ pressed: deepPurpleColorPalette['white-alpha.80'],
619
+ disabled: deepPurpleColorPalette['grey.3'],
620
+ focus: colors.white
621
+ }
642
622
  }
643
623
  },
644
- 'subtle-revert': {
624
+ tertiary: {
645
625
  default: {
646
- backgroundColor: colors.transparent,
647
- pressedBackgroundColor: colors.transparent,
648
- hoverBackgroundColor: colors.transparent,
649
- focusBorderColor: colors.white,
650
- color: colors.white,
651
- hoverColor: colors.white,
652
- activeColor: colors.white
626
+ backgroundColor: {
627
+ default: 'transparent',
628
+ hover: 'transparent',
629
+ pressed: 'transparent',
630
+ disabled: 'transparent',
631
+ focus: 'transparent'
632
+ },
633
+ color: {
634
+ default: colors.black,
635
+ hover: colors.blackAnthracite,
636
+ pressed: colors.blackAnthracite,
637
+ disabled: deepPurpleColorPalette['grey.3'],
638
+ focus: colors.black
639
+ }
640
+ },
641
+ revert: {
642
+ backgroundColor: {
643
+ default: 'transparent',
644
+ hover: 'transparent',
645
+ pressed: 'transparent',
646
+ disabled: 'transparent',
647
+ focus: 'transparent'
648
+ },
649
+ color: {
650
+ default: colors.white,
651
+ hover: deepPurpleColorPalette['white-alpha.80'],
652
+ pressed: deepPurpleColorPalette['white-alpha.80'],
653
+ disabled: deepPurpleColorPalette['white-alpha.20'],
654
+ focus: colors.white
655
+ }
653
656
  }
654
657
  },
655
- disabled: {
658
+ 'tertiary-danger': {
656
659
  default: {
657
- backgroundColor: colors.disabled,
658
- pressedBackgroundColor: colors.disabled,
659
- hoverBackgroundColor: colors.disabled,
660
- focusBorderColor: deepPurpleColorPalette['beige.2'],
661
- borderColor: deepPurpleColorPalette['beige.2']
660
+ backgroundColor: {
661
+ default: 'transparent',
662
+ hover: 'transparent',
663
+ pressed: 'transparent',
664
+ disabled: 'transparent',
665
+ focus: 'transparent'
666
+ },
667
+ color: {
668
+ default: colors.danger,
669
+ hover: deepPurpleColorPalette['red.2'],
670
+ pressed: deepPurpleColorPalette['red.2'],
671
+ disabled: deepPurpleColorPalette['grey.3'],
672
+ focus: colors.danger
673
+ }
662
674
  }
663
675
  }
664
676
  };
665
677
 
666
678
  const buttonBadge = {
667
- backgroundColor: deepPurpleColorPalette['red.6'],
679
+ backgroundColor: {
680
+ default: colors.danger,
681
+ disabled: colors.blackLight
682
+ },
668
683
  dimensions: {
669
684
  withBadge: {
670
- width: 10,
671
- height: 10
685
+ width: 8,
686
+ height: 8
672
687
  },
673
688
  badgeCount: {
674
689
  width: 20,
@@ -1865,14 +1880,13 @@ const iconButton = {
1865
1880
  },
1866
1881
  disabled: {
1867
1882
  scale: 1,
1868
- backgroundColor: button.disabled.default.backgroundColor,
1869
- borderColor: button.disabled.default.borderColor
1883
+ backgroundColor: button.primary.default.backgroundColor.disabled
1870
1884
  },
1871
1885
  default: {
1872
- pressedBackgroundColor: button.default.default.pressedBackgroundColor
1886
+ pressedBackgroundColor: button.primary.default.backgroundColor.disabled
1873
1887
  },
1874
1888
  ghost: {
1875
- pressedBackgroundColor: button.default.ghost.pressedBackgroundColor
1889
+ pressedBackgroundColor: button.primary.default.backgroundColor.disabled
1876
1890
  },
1877
1891
  primary: {
1878
1892
  pressedBackgroundColor: deepPurpleColorPalette['beige.1']