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