@ornikar/kitt-universal 27.0.1-canary.01819bc93ab006bfbaa4e1335cd8afa2380068a0.0 → 27.1.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
@@ -515,15 +515,18 @@ var bottomSheet = {
515
515
  }
516
516
  };
517
517
 
518
+ // Strongly typed theme so every new type/variant/size can't be added
519
+ // without defined color & backgroundColor or icon size
520
+
518
521
  var button = {
519
- borderRadius: 30,
522
+ borderRadius: 4,
520
523
  borderWidth: {
521
- disabled: 2,
522
524
  focus: 3
523
525
  },
524
526
  minHeight: 40,
525
527
  minWidth: 40,
526
528
  maxWidth: 335,
529
+ maxHeight: 48,
527
530
  scale: {
528
531
  base: {
529
532
  "default": 1,
@@ -534,148 +537,160 @@ var button = {
534
537
  hover: 1.05
535
538
  }
536
539
  },
537
- contentPadding: {
538
- "default": '7px 16px 7px',
539
- large: '11px 24px 11px',
540
- xLarge: '15px 24px 15px',
541
- disabled: '5px 14px 5px'
540
+ icon: {
541
+ medium: {
542
+ size: 24
543
+ },
544
+ "default": {
545
+ size: 20
546
+ }
542
547
  },
543
548
  padding: {
544
549
  "default": {
545
- hasBadge: {
546
- right: 8
547
- },
548
550
  horizontal: 16,
549
- vertical: 7
551
+ vertical: 8
550
552
  },
551
- large: {
552
- hasBadge: {
553
- right: 12
554
- },
555
- horizontal: 24,
556
- vertical: 11
557
- },
558
- xLarge: {
559
- hasBadge: {
560
- right: 12
561
- },
553
+ medium: {
562
554
  horizontal: 24,
563
- vertical: 15
555
+ vertical: 12
564
556
  }
565
557
  },
566
558
  transition: {
567
559
  duration: '200ms',
568
560
  timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
569
561
  },
570
- "default": {
571
- "default": {
572
- backgroundColor: 'rgba(0, 0, 0, 0.05)',
573
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
574
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
575
- focusBorderColor: 'rgba(0, 0, 0, 0.1)'
576
- },
577
- ghost: {
578
- backgroundColor: 'rgba(255, 255, 255, 0.1)',
579
- pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
580
- hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
581
- focusBorderColor: 'rgba(255, 255, 255, 0.4)',
582
- color: deepPurpleColorPalette.white,
583
- hoverColor: deepPurpleColorPalette.white,
584
- activeColor: deepPurpleColorPalette.white
585
- }
586
- },
562
+ focusBorderColor: deepPurpleColorPalette['blue.2'],
587
563
  primary: {
588
564
  "default": {
589
- backgroundColor: colors.primary,
590
- pressedBackgroundColor: colors.primaryLight,
591
- hoverBackgroundColor: colors.primaryLight,
592
- focusBorderColor: 'rgba(76, 52, 224, 0.2)'
565
+ backgroundColor: {
566
+ "default": colors.primary,
567
+ hover: deepPurpleColorPalette['deepPurple.7'],
568
+ pressed: deepPurpleColorPalette['deepPurple.7'],
569
+ disabled: deepPurpleColorPalette['grey.3'],
570
+ focus: colors.primary
571
+ },
572
+ color: {
573
+ "default": colors.white,
574
+ hover: colors.white,
575
+ pressed: colors.white,
576
+ disabled: colors.disabled,
577
+ focus: colors.white
578
+ }
593
579
  },
594
- ghost: {
595
- backgroundColor: colors.uiBackgroundLight,
596
- pressedBackgroundColor: colors.uiBackground,
597
- hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
598
- focusBorderColor: 'rgba(255,255,255, 0.4)',
599
- color: colors.primary,
600
- hoverColor: deepPurpleColorPalette['beige.2'],
601
- activeColor: deepPurpleColorPalette['beige.2']
602
- }
603
- },
604
- dark: {
605
- "default": {
606
- backgroundColor: colors.black,
607
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.8)',
608
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.8)',
609
- focusBorderColor: 'rgba(0, 0, 0, 0.8)'
580
+ revert: {
581
+ backgroundColor: {
582
+ "default": colors.white,
583
+ hover: deepPurpleColorPalette['white-alpha.80'],
584
+ pressed: deepPurpleColorPalette['white-alpha.80'],
585
+ disabled: deepPurpleColorPalette['grey.3'],
586
+ focus: colors.white
587
+ },
588
+ color: {
589
+ "default": colors.black,
590
+ hover: colors.black,
591
+ pressed: colors.black,
592
+ disabled: colors.disabled,
593
+ focus: colors.black
594
+ }
610
595
  }
611
596
  },
612
- danger: {
597
+ secondary: {
613
598
  "default": {
614
- backgroundColor: deepPurpleColorPalette['red.1'],
615
- pressedBackgroundColor: deepPurpleColorPalette['red.2'],
616
- hoverBackgroundColor: deepPurpleColorPalette['red.2'],
617
- focusBorderColor: deepPurpleColorPalette['red.2']
599
+ backgroundColor: {
600
+ "default": deepPurpleColorPalette['beige-alpha.25'],
601
+ hover: deepPurpleColorPalette['beige-alpha.40'],
602
+ pressed: deepPurpleColorPalette['beige-alpha.40'],
603
+ disabled: colors.disabled,
604
+ focus: deepPurpleColorPalette['beige-alpha.25']
605
+ },
606
+ color: {
607
+ "default": colors.black,
608
+ hover: colors.black,
609
+ pressed: colors.black,
610
+ disabled: deepPurpleColorPalette['grey.3'],
611
+ focus: colors.black
612
+ }
618
613
  },
619
- ghost: {
620
- backgroundColor: colors.uiBackgroundLight,
621
- pressedBackgroundColor: colors.uiBackground,
622
- hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
623
- focusBorderColor: 'rgba(255, 255, 255, 0.4)',
624
- color: deepPurpleColorPalette['red.6'],
625
- hoverColor: deepPurpleColorPalette['red.6'],
626
- activeColor: deepPurpleColorPalette['red.6']
627
- }
628
- },
629
- subtle: {
630
- "default": {
631
- backgroundColor: colors.transparent,
632
- pressedBackgroundColor: colors.transparent,
633
- hoverBackgroundColor: colors.transparent,
634
- focusBorderColor: 'rgba(76, 52, 224, 0.2)',
635
- color: colors.primary,
636
- hoverColor: 'rgba(76, 52, 224, 0.8)',
637
- activeColor: 'rgba(76, 52, 224, 0.8)'
638
- }
639
- },
640
- 'subtle-dark': {
641
- "default": {
642
- backgroundColor: colors.transparent,
643
- pressedBackgroundColor: colors.transparent,
644
- hoverBackgroundColor: colors.transparent,
645
- focusBorderColor: 'rgba(0, 0, 0, 0.1)',
646
- color: colors.black,
647
- hoverColor: 'rgba(0, 0, 0, 0.8)',
648
- activeColor: 'rgba(0, 0, 0, 0.8)'
614
+ revert: {
615
+ backgroundColor: {
616
+ "default": deepPurpleColorPalette['white-alpha.10'],
617
+ hover: deepPurpleColorPalette['white-alpha.20'],
618
+ pressed: deepPurpleColorPalette['white-alpha.20'],
619
+ disabled: colors.disabled,
620
+ focus: deepPurpleColorPalette['white-alpha.10']
621
+ },
622
+ color: {
623
+ "default": colors.white,
624
+ hover: deepPurpleColorPalette['white-alpha.80'],
625
+ pressed: deepPurpleColorPalette['white-alpha.80'],
626
+ disabled: deepPurpleColorPalette['grey.3'],
627
+ focus: colors.white
628
+ }
649
629
  }
650
630
  },
651
- 'subtle-revert': {
631
+ tertiary: {
652
632
  "default": {
653
- backgroundColor: colors.transparent,
654
- pressedBackgroundColor: colors.transparent,
655
- hoverBackgroundColor: colors.transparent,
656
- focusBorderColor: colors.white,
657
- color: colors.white,
658
- hoverColor: colors.white,
659
- activeColor: colors.white
633
+ backgroundColor: {
634
+ "default": 'transparent',
635
+ hover: 'transparent',
636
+ pressed: 'transparent',
637
+ disabled: 'transparent',
638
+ focus: 'transparent'
639
+ },
640
+ color: {
641
+ "default": colors.black,
642
+ hover: colors.blackAnthracite,
643
+ pressed: colors.blackAnthracite,
644
+ disabled: deepPurpleColorPalette['grey.3'],
645
+ focus: colors.black
646
+ }
647
+ },
648
+ revert: {
649
+ backgroundColor: {
650
+ "default": 'transparent',
651
+ hover: 'transparent',
652
+ pressed: 'transparent',
653
+ disabled: 'transparent',
654
+ focus: 'transparent'
655
+ },
656
+ color: {
657
+ "default": colors.white,
658
+ hover: deepPurpleColorPalette['white-alpha.80'],
659
+ pressed: deepPurpleColorPalette['white-alpha.80'],
660
+ disabled: deepPurpleColorPalette['white-alpha.20'],
661
+ focus: colors.white
662
+ }
660
663
  }
661
664
  },
662
- disabled: {
665
+ 'tertiary-danger': {
663
666
  "default": {
664
- backgroundColor: colors.disabled,
665
- pressedBackgroundColor: colors.disabled,
666
- hoverBackgroundColor: colors.disabled,
667
- focusBorderColor: deepPurpleColorPalette['beige.2'],
668
- borderColor: deepPurpleColorPalette['beige.2']
667
+ backgroundColor: {
668
+ "default": 'transparent',
669
+ hover: 'transparent',
670
+ pressed: 'transparent',
671
+ disabled: 'transparent',
672
+ focus: 'transparent'
673
+ },
674
+ color: {
675
+ "default": colors.danger,
676
+ hover: deepPurpleColorPalette['red.2'],
677
+ pressed: deepPurpleColorPalette['red.2'],
678
+ disabled: deepPurpleColorPalette['grey.3'],
679
+ focus: colors.danger
680
+ }
669
681
  }
670
682
  }
671
683
  };
672
684
 
673
685
  var buttonBadge = {
674
- backgroundColor: deepPurpleColorPalette['red.6'],
686
+ backgroundColor: {
687
+ "default": colors.danger,
688
+ disabled: colors.blackLight
689
+ },
675
690
  dimensions: {
676
691
  withBadge: {
677
- width: 10,
678
- height: 10
692
+ width: 8,
693
+ height: 8
679
694
  },
680
695
  badgeCount: {
681
696
  width: 20,
@@ -1872,14 +1887,13 @@ var iconButton = {
1872
1887
  },
1873
1888
  disabled: {
1874
1889
  scale: 1,
1875
- backgroundColor: button.disabled["default"].backgroundColor,
1876
- borderColor: button.disabled["default"].borderColor
1890
+ backgroundColor: button.primary["default"].backgroundColor.disabled
1877
1891
  },
1878
1892
  "default": {
1879
- pressedBackgroundColor: button["default"]["default"].pressedBackgroundColor
1893
+ pressedBackgroundColor: button.primary["default"].backgroundColor.disabled
1880
1894
  },
1881
1895
  ghost: {
1882
- pressedBackgroundColor: button["default"].ghost.pressedBackgroundColor
1896
+ pressedBackgroundColor: button.primary["default"].backgroundColor.disabled
1883
1897
  },
1884
1898
  primary: {
1885
1899
  pressedBackgroundColor: deepPurpleColorPalette['beige.1']
@@ -2423,7 +2437,7 @@ var breakpoints = {
2423
2437
  // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
2424
2438
  var theme = {
2425
2439
  spacing: spacing,
2426
- getSpacing: function (multiplier) {
2440
+ getSpacing: function getSpacing(multiplier) {
2427
2441
  return spacing * multiplier;
2428
2442
  },
2429
2443
  colors: colors,