@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.
- package/CHANGELOG.md +3 -13
- package/dist/definitions/Button/AnimatedContainer.d.ts +2 -1
- package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts +2 -17
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts +10 -8
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonPadding.d.ts +1 -1
- package/dist/definitions/Button/ButtonPadding.d.ts.map +1 -1
- package/dist/definitions/Button/FocusBorder.d.ts +1 -4
- package/dist/definitions/Button/FocusBorder.d.ts.map +1 -1
- package/dist/definitions/Button/hooks/useNativeAnimation.d.ts +1 -1
- package/dist/definitions/Button/hooks/useNativeAnimation.d.ts.map +1 -1
- package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts +12 -3
- package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts.map +1 -1
- package/dist/definitions/Button/utils/getCurrentBackgroundColorForNativeBaseTheme.d.ts +3 -2
- package/dist/definitions/Button/utils/getCurrentBackgroundColorForNativeBaseTheme.d.ts.map +1 -1
- package/dist/definitions/ButtonBadge/ButtonBadge.d.ts +2 -1
- package/dist/definitions/ButtonBadge/ButtonBadge.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +30 -23
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryBlock.d.ts +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +26 -52
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/buttonBadge.d.ts +4 -1
- package/dist/definitions/themes/late-ocean/buttonBadge.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +0 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +7 -19
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +238 -306
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +238 -306
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +232 -300
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +231 -284
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +232 -300
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +231 -284
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +352 -414
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +322 -370
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +130 -116
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +130 -116
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +130 -116
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +130 -116
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +130 -116
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +130 -116
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +131 -117
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +131 -117
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +28 -28
- package/dist/definitions/Button/DisabledBorder.d.ts +0 -3
- package/dist/definitions/Button/DisabledBorder.d.ts.map +0 -1
- package/dist/definitions/Button/getVariantValuesIfExist.d.ts +0 -5
- package/dist/definitions/Button/getVariantValuesIfExist.d.ts.map +0 -1
- package/dist/definitions/Button/utils/getButtonSize.d.ts +0 -3
- 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:
|
|
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
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
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:
|
|
541
|
+
vertical: 8
|
|
540
542
|
},
|
|
541
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
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
|
-
|
|
585
|
-
backgroundColor:
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
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
|
-
|
|
587
|
+
secondary: {
|
|
603
588
|
default: {
|
|
604
|
-
backgroundColor:
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
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
|
-
|
|
610
|
-
backgroundColor:
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
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
|
-
|
|
621
|
+
tertiary: {
|
|
642
622
|
default: {
|
|
643
|
-
backgroundColor:
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
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
|
-
|
|
655
|
+
'tertiary-danger': {
|
|
653
656
|
default: {
|
|
654
|
-
backgroundColor:
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
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:
|
|
676
|
+
backgroundColor: {
|
|
677
|
+
default: colors.danger,
|
|
678
|
+
disabled: colors.blackLight
|
|
679
|
+
},
|
|
665
680
|
dimensions: {
|
|
666
681
|
withBadge: {
|
|
667
|
-
width:
|
|
668
|
-
height:
|
|
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.
|
|
1866
|
-
borderColor: button.disabled.default.borderColor
|
|
1880
|
+
backgroundColor: button.primary.default.backgroundColor.disabled
|
|
1867
1881
|
},
|
|
1868
1882
|
default: {
|
|
1869
|
-
pressedBackgroundColor: button.
|
|
1883
|
+
pressedBackgroundColor: button.primary.default.backgroundColor.disabled
|
|
1870
1884
|
},
|
|
1871
1885
|
ghost: {
|
|
1872
|
-
pressedBackgroundColor: button.default.
|
|
1886
|
+
pressedBackgroundColor: button.primary.default.backgroundColor.disabled
|
|
1873
1887
|
},
|
|
1874
1888
|
primary: {
|
|
1875
1889
|
pressedBackgroundColor: deepPurpleColorPalette['beige.1']
|