@ornikar/kitt-universal 27.0.1-canary.01819bc93ab006bfbaa4e1335cd8afa2380068a0.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 +3 -13
  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 +7 -19
  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 +352 -414
  44. package/dist/index.es.js.map +1 -1
  45. package/dist/index.es.web.js +322 -370
  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 +131 -117
  60. package/dist/linaria-themes.es.js.map +1 -1
  61. package/dist/linaria-themes.es.web.js +131 -117
  62. package/dist/linaria-themes.es.web.js.map +1 -1
  63. package/dist/tsbuildinfo +1 -1
  64. package/package.json +28 -28
  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
@@ -505,15 +505,18 @@ const bottomSheet = {
505
505
  }
506
506
  };
507
507
 
508
+ // Strongly typed theme so every new type/variant/size can't be added
509
+ // without defined color & backgroundColor or icon size
510
+
508
511
  const button = {
509
- borderRadius: 30,
512
+ borderRadius: 4,
510
513
  borderWidth: {
511
- disabled: 2,
512
514
  focus: 3
513
515
  },
514
516
  minHeight: 40,
515
517
  minWidth: 40,
516
518
  maxWidth: 335,
519
+ maxHeight: 48,
517
520
  scale: {
518
521
  base: {
519
522
  default: 1,
@@ -524,148 +527,160 @@ const button = {
524
527
  hover: 1.05
525
528
  }
526
529
  },
527
- contentPadding: {
528
- default: '7px 16px 7px',
529
- large: '11px 24px 11px',
530
- xLarge: '15px 24px 15px',
531
- disabled: '5px 14px 5px'
530
+ icon: {
531
+ medium: {
532
+ size: 24
533
+ },
534
+ default: {
535
+ size: 20
536
+ }
532
537
  },
533
538
  padding: {
534
539
  default: {
535
- hasBadge: {
536
- right: 8
537
- },
538
540
  horizontal: 16,
539
- vertical: 7
541
+ vertical: 8
540
542
  },
541
- large: {
542
- hasBadge: {
543
- right: 12
544
- },
545
- horizontal: 24,
546
- vertical: 11
547
- },
548
- xLarge: {
549
- hasBadge: {
550
- right: 12
551
- },
543
+ medium: {
552
544
  horizontal: 24,
553
- vertical: 15
545
+ vertical: 12
554
546
  }
555
547
  },
556
548
  transition: {
557
549
  duration: '200ms',
558
550
  timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
559
551
  },
560
- default: {
561
- default: {
562
- backgroundColor: 'rgba(0, 0, 0, 0.05)',
563
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
564
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
565
- focusBorderColor: 'rgba(0, 0, 0, 0.1)'
566
- },
567
- ghost: {
568
- backgroundColor: 'rgba(255, 255, 255, 0.1)',
569
- pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
570
- hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
571
- focusBorderColor: 'rgba(255, 255, 255, 0.4)',
572
- color: deepPurpleColorPalette.white,
573
- hoverColor: deepPurpleColorPalette.white,
574
- activeColor: deepPurpleColorPalette.white
575
- }
576
- },
552
+ focusBorderColor: deepPurpleColorPalette['blue.2'],
577
553
  primary: {
578
554
  default: {
579
- backgroundColor: colors.primary,
580
- pressedBackgroundColor: colors.primaryLight,
581
- hoverBackgroundColor: colors.primaryLight,
582
- focusBorderColor: 'rgba(76, 52, 224, 0.2)'
555
+ backgroundColor: {
556
+ default: colors.primary,
557
+ hover: deepPurpleColorPalette['deepPurple.7'],
558
+ pressed: deepPurpleColorPalette['deepPurple.7'],
559
+ disabled: deepPurpleColorPalette['grey.3'],
560
+ focus: colors.primary
561
+ },
562
+ color: {
563
+ default: colors.white,
564
+ hover: colors.white,
565
+ pressed: colors.white,
566
+ disabled: colors.disabled,
567
+ focus: colors.white
568
+ }
583
569
  },
584
- ghost: {
585
- backgroundColor: colors.uiBackgroundLight,
586
- pressedBackgroundColor: colors.uiBackground,
587
- hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
588
- focusBorderColor: 'rgba(255,255,255, 0.4)',
589
- color: colors.primary,
590
- hoverColor: deepPurpleColorPalette['beige.2'],
591
- activeColor: deepPurpleColorPalette['beige.2']
592
- }
593
- },
594
- dark: {
595
- default: {
596
- backgroundColor: colors.black,
597
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.8)',
598
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.8)',
599
- focusBorderColor: 'rgba(0, 0, 0, 0.8)'
570
+ revert: {
571
+ backgroundColor: {
572
+ default: colors.white,
573
+ hover: deepPurpleColorPalette['white-alpha.80'],
574
+ pressed: deepPurpleColorPalette['white-alpha.80'],
575
+ disabled: deepPurpleColorPalette['grey.3'],
576
+ focus: colors.white
577
+ },
578
+ color: {
579
+ default: colors.black,
580
+ hover: colors.black,
581
+ pressed: colors.black,
582
+ disabled: colors.disabled,
583
+ focus: colors.black
584
+ }
600
585
  }
601
586
  },
602
- danger: {
587
+ secondary: {
603
588
  default: {
604
- backgroundColor: deepPurpleColorPalette['red.1'],
605
- pressedBackgroundColor: deepPurpleColorPalette['red.2'],
606
- hoverBackgroundColor: deepPurpleColorPalette['red.2'],
607
- focusBorderColor: deepPurpleColorPalette['red.2']
589
+ backgroundColor: {
590
+ default: deepPurpleColorPalette['beige-alpha.25'],
591
+ hover: deepPurpleColorPalette['beige-alpha.40'],
592
+ pressed: deepPurpleColorPalette['beige-alpha.40'],
593
+ disabled: colors.disabled,
594
+ focus: deepPurpleColorPalette['beige-alpha.25']
595
+ },
596
+ color: {
597
+ default: colors.black,
598
+ hover: colors.black,
599
+ pressed: colors.black,
600
+ disabled: deepPurpleColorPalette['grey.3'],
601
+ focus: colors.black
602
+ }
608
603
  },
609
- ghost: {
610
- backgroundColor: colors.uiBackgroundLight,
611
- pressedBackgroundColor: colors.uiBackground,
612
- hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
613
- focusBorderColor: 'rgba(255, 255, 255, 0.4)',
614
- color: deepPurpleColorPalette['red.6'],
615
- hoverColor: deepPurpleColorPalette['red.6'],
616
- activeColor: deepPurpleColorPalette['red.6']
617
- }
618
- },
619
- subtle: {
620
- default: {
621
- backgroundColor: colors.transparent,
622
- pressedBackgroundColor: colors.transparent,
623
- hoverBackgroundColor: colors.transparent,
624
- focusBorderColor: 'rgba(76, 52, 224, 0.2)',
625
- color: colors.primary,
626
- hoverColor: 'rgba(76, 52, 224, 0.8)',
627
- activeColor: 'rgba(76, 52, 224, 0.8)'
628
- }
629
- },
630
- 'subtle-dark': {
631
- default: {
632
- backgroundColor: colors.transparent,
633
- pressedBackgroundColor: colors.transparent,
634
- hoverBackgroundColor: colors.transparent,
635
- focusBorderColor: 'rgba(0, 0, 0, 0.1)',
636
- color: colors.black,
637
- hoverColor: 'rgba(0, 0, 0, 0.8)',
638
- activeColor: 'rgba(0, 0, 0, 0.8)'
604
+ revert: {
605
+ backgroundColor: {
606
+ default: deepPurpleColorPalette['white-alpha.10'],
607
+ hover: deepPurpleColorPalette['white-alpha.20'],
608
+ pressed: deepPurpleColorPalette['white-alpha.20'],
609
+ disabled: colors.disabled,
610
+ focus: deepPurpleColorPalette['white-alpha.10']
611
+ },
612
+ color: {
613
+ default: colors.white,
614
+ hover: deepPurpleColorPalette['white-alpha.80'],
615
+ pressed: deepPurpleColorPalette['white-alpha.80'],
616
+ disabled: deepPurpleColorPalette['grey.3'],
617
+ focus: colors.white
618
+ }
639
619
  }
640
620
  },
641
- 'subtle-revert': {
621
+ tertiary: {
642
622
  default: {
643
- backgroundColor: colors.transparent,
644
- pressedBackgroundColor: colors.transparent,
645
- hoverBackgroundColor: colors.transparent,
646
- focusBorderColor: colors.white,
647
- color: colors.white,
648
- hoverColor: colors.white,
649
- activeColor: colors.white
623
+ backgroundColor: {
624
+ default: 'transparent',
625
+ hover: 'transparent',
626
+ pressed: 'transparent',
627
+ disabled: 'transparent',
628
+ focus: 'transparent'
629
+ },
630
+ color: {
631
+ default: colors.black,
632
+ hover: colors.blackAnthracite,
633
+ pressed: colors.blackAnthracite,
634
+ disabled: deepPurpleColorPalette['grey.3'],
635
+ focus: colors.black
636
+ }
637
+ },
638
+ revert: {
639
+ backgroundColor: {
640
+ default: 'transparent',
641
+ hover: 'transparent',
642
+ pressed: 'transparent',
643
+ disabled: 'transparent',
644
+ focus: 'transparent'
645
+ },
646
+ color: {
647
+ default: colors.white,
648
+ hover: deepPurpleColorPalette['white-alpha.80'],
649
+ pressed: deepPurpleColorPalette['white-alpha.80'],
650
+ disabled: deepPurpleColorPalette['white-alpha.20'],
651
+ focus: colors.white
652
+ }
650
653
  }
651
654
  },
652
- disabled: {
655
+ 'tertiary-danger': {
653
656
  default: {
654
- backgroundColor: colors.disabled,
655
- pressedBackgroundColor: colors.disabled,
656
- hoverBackgroundColor: colors.disabled,
657
- focusBorderColor: deepPurpleColorPalette['beige.2'],
658
- borderColor: deepPurpleColorPalette['beige.2']
657
+ backgroundColor: {
658
+ default: 'transparent',
659
+ hover: 'transparent',
660
+ pressed: 'transparent',
661
+ disabled: 'transparent',
662
+ focus: 'transparent'
663
+ },
664
+ color: {
665
+ default: colors.danger,
666
+ hover: deepPurpleColorPalette['red.2'],
667
+ pressed: deepPurpleColorPalette['red.2'],
668
+ disabled: deepPurpleColorPalette['grey.3'],
669
+ focus: colors.danger
670
+ }
659
671
  }
660
672
  }
661
673
  };
662
674
 
663
675
  const buttonBadge = {
664
- backgroundColor: deepPurpleColorPalette['red.6'],
676
+ backgroundColor: {
677
+ default: colors.danger,
678
+ disabled: colors.blackLight
679
+ },
665
680
  dimensions: {
666
681
  withBadge: {
667
- width: 10,
668
- height: 10
682
+ width: 8,
683
+ height: 8
669
684
  },
670
685
  badgeCount: {
671
686
  width: 20,
@@ -1862,14 +1877,13 @@ const iconButton = {
1862
1877
  },
1863
1878
  disabled: {
1864
1879
  scale: 1,
1865
- backgroundColor: button.disabled.default.backgroundColor,
1866
- borderColor: button.disabled.default.borderColor
1880
+ backgroundColor: button.primary.default.backgroundColor.disabled
1867
1881
  },
1868
1882
  default: {
1869
- pressedBackgroundColor: button.default.default.pressedBackgroundColor
1883
+ pressedBackgroundColor: button.primary.default.backgroundColor.disabled
1870
1884
  },
1871
1885
  ghost: {
1872
- pressedBackgroundColor: button.default.ghost.pressedBackgroundColor
1886
+ pressedBackgroundColor: button.primary.default.backgroundColor.disabled
1873
1887
  },
1874
1888
  primary: {
1875
1889
  pressedBackgroundColor: deepPurpleColorPalette['beige.1']