@ornikar/kitt-universal 27.1.0 → 27.2.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 +16 -0
- package/dist/definitions/Button/AnimatedContainer.d.ts +3 -1
- package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedContainer.web.d.ts +1 -1
- package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonPadding.d.ts +2 -2
- package/dist/definitions/Button/ButtonPadding.d.ts.map +1 -1
- package/dist/definitions/Button/hooks/useNativeAnimation.d.ts.map +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +3 -3
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItem.d.ts +6 -4
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/Choices/Choices.d.ts +2 -2
- package/dist/definitions/Choices/Choices.d.ts.map +1 -1
- package/dist/definitions/Choices/utils/getBorderColor.d.ts +8 -0
- package/dist/definitions/Choices/utils/getBorderColor.d.ts.map +1 -0
- package/dist/definitions/Choices/utils/getCurrentTextColor.d.ts +1 -5
- package/dist/definitions/Choices/utils/getCurrentTextColor.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +8 -16
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/IconButton/utils/getButtonTypeAndVariant.d.ts +9 -0
- package/dist/definitions/IconButton/utils/getButtonTypeAndVariant.d.ts.map +1 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +19 -43
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +5 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +3 -11
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/choices.d.ts +20 -2
- package/dist/definitions/themes/late-ocean/choices.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +0 -35
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/typography.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 +228 -405
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +228 -405
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +223 -400
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +225 -439
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +223 -400
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +225 -439
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +228 -398
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +231 -437
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +38 -64
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +38 -64
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +38 -64
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +38 -64
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +38 -64
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +38 -64
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +38 -64
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +38 -64
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/Button/utils/getCurrentScale.d.ts +0 -10
- package/dist/definitions/Button/utils/getCurrentScale.d.ts.map +0 -1
- package/dist/definitions/Choices/utils/getBorderRadius.d.ts +0 -3
- package/dist/definitions/Choices/utils/getBorderRadius.d.ts.map +0 -1
- package/dist/definitions/IconButton/AnimatedBackground.d.ts +0 -13
- package/dist/definitions/IconButton/AnimatedBackground.d.ts.map +0 -1
- package/dist/definitions/IconButton/AnimatedBackground.web.d.ts +0 -4
- package/dist/definitions/IconButton/AnimatedBackground.web.d.ts.map +0 -1
- package/dist/definitions/IconButton/AnimatedScale.d.ts +0 -12
- package/dist/definitions/IconButton/AnimatedScale.d.ts.map +0 -1
- package/dist/definitions/IconButton/AnimatedScale.web.d.ts +0 -4
- package/dist/definitions/IconButton/AnimatedScale.web.d.ts.map +0 -1
- package/dist/definitions/IconButton/Background.d.ts +0 -11
- package/dist/definitions/IconButton/Background.d.ts.map +0 -1
- package/dist/definitions/IconButton/hooks/useNativeAnimation.d.ts +0 -18
- package/dist/definitions/IconButton/hooks/useNativeAnimation.d.ts.map +0 -1
- package/dist/definitions/IconButton/hooks/useNativeAnimation.web.d.ts +0 -3
- package/dist/definitions/IconButton/hooks/useNativeAnimation.web.d.ts.map +0 -1
- package/dist/definitions/IconButton/utils/getIconButtonBackgroundColor.d.ts +0 -3
- package/dist/definitions/IconButton/utils/getIconButtonBackgroundColor.d.ts.map +0 -1
- package/dist/definitions/IconButton/utils/getIconButtonTextColorByColor.d.ts +0 -4
- package/dist/definitions/IconButton/utils/getIconButtonTextColorByColor.d.ts.map +0 -1
|
@@ -513,20 +513,13 @@ const button = {
|
|
|
513
513
|
borderWidth: {
|
|
514
514
|
focus: 3
|
|
515
515
|
},
|
|
516
|
-
minHeight: 40,
|
|
517
516
|
minWidth: 40,
|
|
518
517
|
maxWidth: 335,
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
default: 1,
|
|
523
|
-
hover: 0.95,
|
|
524
|
-
active: 0.95
|
|
525
|
-
},
|
|
526
|
-
medium: {
|
|
527
|
-
hover: 1.05
|
|
528
|
-
}
|
|
518
|
+
height: {
|
|
519
|
+
default: 40,
|
|
520
|
+
medium: 48
|
|
529
521
|
},
|
|
522
|
+
maxHeight: 48,
|
|
530
523
|
icon: {
|
|
531
524
|
medium: {
|
|
532
525
|
size: 24
|
|
@@ -759,23 +752,35 @@ const choices = {
|
|
|
759
752
|
column: 12
|
|
760
753
|
},
|
|
761
754
|
item: {
|
|
762
|
-
borderRadius:
|
|
755
|
+
borderRadius: 4,
|
|
763
756
|
padding: {
|
|
764
757
|
base: 16,
|
|
765
758
|
small: 24
|
|
766
759
|
},
|
|
767
760
|
backgroundColor: {
|
|
768
761
|
default: deepPurpleColorPalette['beige.1'],
|
|
769
|
-
disabled:
|
|
770
|
-
selected:
|
|
771
|
-
pressed: deepPurpleColorPalette['
|
|
762
|
+
disabled: deepPurpleColorPalette['grey.1'],
|
|
763
|
+
selected: deepPurpleColorPalette['beige.3'],
|
|
764
|
+
pressed: deepPurpleColorPalette['beige.2'],
|
|
772
765
|
hover: deepPurpleColorPalette['beige.2'],
|
|
773
|
-
hoverWhenSelected: deepPurpleColorPalette['
|
|
766
|
+
hoverWhenSelected: deepPurpleColorPalette['beige.3']
|
|
774
767
|
},
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
768
|
+
color: {
|
|
769
|
+
default: deepPurpleColorPalette['grey.9'],
|
|
770
|
+
disabled: deepPurpleColorPalette['grey.3']
|
|
771
|
+
},
|
|
772
|
+
border: {
|
|
773
|
+
default: {
|
|
774
|
+
width: 1,
|
|
775
|
+
color: deepPurpleColorPalette['deepPurple.7']
|
|
776
|
+
},
|
|
777
|
+
disabled: {
|
|
778
|
+
width: 1,
|
|
779
|
+
color: deepPurpleColorPalette['grey.2']
|
|
780
|
+
},
|
|
781
|
+
error: {
|
|
782
|
+
width: 1,
|
|
783
|
+
color: deepPurpleColorPalette['red.6']
|
|
779
784
|
}
|
|
780
785
|
},
|
|
781
786
|
transition: {
|
|
@@ -783,6 +788,12 @@ const choices = {
|
|
|
783
788
|
duration: 300,
|
|
784
789
|
timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
|
|
785
790
|
}
|
|
791
|
+
},
|
|
792
|
+
description: {
|
|
793
|
+
color: {
|
|
794
|
+
default: deepPurpleColorPalette['grey.5'],
|
|
795
|
+
error: deepPurpleColorPalette['red.6']
|
|
796
|
+
}
|
|
786
797
|
}
|
|
787
798
|
};
|
|
788
799
|
|
|
@@ -1852,50 +1863,8 @@ const icon = {
|
|
|
1852
1863
|
};
|
|
1853
1864
|
|
|
1854
1865
|
const iconButton = {
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
height: 40,
|
|
1858
|
-
borderRadius: 20,
|
|
1859
|
-
borderWidth: 2,
|
|
1860
|
-
borderColor: 'transparent',
|
|
1861
|
-
transition: {
|
|
1862
|
-
property: 'all',
|
|
1863
|
-
duration: '200ms',
|
|
1864
|
-
timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
|
|
1865
|
-
},
|
|
1866
|
-
scale: {
|
|
1867
|
-
base: {
|
|
1868
|
-
default: 1,
|
|
1869
|
-
hover: 0.95,
|
|
1870
|
-
active: 0.95
|
|
1871
|
-
},
|
|
1872
|
-
medium: {
|
|
1873
|
-
default: 1,
|
|
1874
|
-
hover: 1.05,
|
|
1875
|
-
active: 0.95
|
|
1876
|
-
}
|
|
1877
|
-
},
|
|
1878
|
-
disabled: {
|
|
1879
|
-
scale: 1,
|
|
1880
|
-
backgroundColor: button.primary.default.backgroundColor.disabled
|
|
1881
|
-
},
|
|
1882
|
-
default: {
|
|
1883
|
-
pressedBackgroundColor: button.primary.default.backgroundColor.disabled
|
|
1884
|
-
},
|
|
1885
|
-
ghost: {
|
|
1886
|
-
pressedBackgroundColor: button.primary.default.backgroundColor.disabled
|
|
1887
|
-
},
|
|
1888
|
-
primary: {
|
|
1889
|
-
pressedBackgroundColor: deepPurpleColorPalette['beige.1']
|
|
1890
|
-
},
|
|
1891
|
-
'primary-plain': {
|
|
1892
|
-
pressedBackgroundColor: colors.primaryLight,
|
|
1893
|
-
backgroundColor: colors.primary
|
|
1894
|
-
},
|
|
1895
|
-
secondary: {
|
|
1896
|
-
pressedBackgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
1897
|
-
backgroundColor: 'rgba(0, 0, 0, 0.1)'
|
|
1898
|
-
}
|
|
1866
|
+
width: button.height.medium,
|
|
1867
|
+
height: button.height.medium
|
|
1899
1868
|
};
|
|
1900
1869
|
|
|
1901
1870
|
const listItem = {
|
|
@@ -2099,6 +2068,11 @@ const typography = {
|
|
|
2099
2068
|
fontSize: 14,
|
|
2100
2069
|
lineHeight: 20,
|
|
2101
2070
|
allowedFontWeights: ['semibold']
|
|
2071
|
+
},
|
|
2072
|
+
'label-small': {
|
|
2073
|
+
fontSize: 12,
|
|
2074
|
+
lineHeight: 16,
|
|
2075
|
+
allowedFontWeights: ['semibold']
|
|
2102
2076
|
}
|
|
2103
2077
|
}
|
|
2104
2078
|
},
|