@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.
- package/CHANGELOG.md +14 -0
- 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 +1 -1
- 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 +260 -322
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +259 -307
- 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 +130 -116
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +130 -116
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- 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
|
@@ -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:
|
|
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
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
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:
|
|
551
|
+
vertical: 8
|
|
550
552
|
},
|
|
551
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
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
|
-
|
|
595
|
-
backgroundColor:
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
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
|
-
|
|
597
|
+
secondary: {
|
|
613
598
|
"default": {
|
|
614
|
-
backgroundColor:
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
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
|
-
|
|
620
|
-
backgroundColor:
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
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
|
-
|
|
631
|
+
tertiary: {
|
|
652
632
|
"default": {
|
|
653
|
-
backgroundColor:
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
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
|
-
|
|
665
|
+
'tertiary-danger': {
|
|
663
666
|
"default": {
|
|
664
|
-
backgroundColor:
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
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:
|
|
686
|
+
backgroundColor: {
|
|
687
|
+
"default": colors.danger,
|
|
688
|
+
disabled: colors.blackLight
|
|
689
|
+
},
|
|
675
690
|
dimensions: {
|
|
676
691
|
withBadge: {
|
|
677
|
-
width:
|
|
678
|
-
height:
|
|
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.
|
|
1876
|
-
borderColor: button.disabled["default"].borderColor
|
|
1890
|
+
backgroundColor: button.primary["default"].backgroundColor.disabled
|
|
1877
1891
|
},
|
|
1878
1892
|
"default": {
|
|
1879
|
-
pressedBackgroundColor: button["default"]
|
|
1893
|
+
pressedBackgroundColor: button.primary["default"].backgroundColor.disabled
|
|
1880
1894
|
},
|
|
1881
1895
|
ghost: {
|
|
1882
|
-
pressedBackgroundColor: button["default"].
|
|
1896
|
+
pressedBackgroundColor: button.primary["default"].backgroundColor.disabled
|
|
1883
1897
|
},
|
|
1884
1898
|
primary: {
|
|
1885
1899
|
pressedBackgroundColor: deepPurpleColorPalette['beige.1']
|