@ornikar/kitt-universal 32.2.1-canary.b6a558c2a534e5d22cad1dfac7725ddeca489e44.0 → 32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.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 +13 -2
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +94 -76
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +94 -76
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +94 -76
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +38 -9
- package/dist/index-node-22.17.cjs.web.js +161 -135
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +94 -76
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +38 -9
- package/dist/index-node-22.17.es.web.mjs +161 -135
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +97 -78
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +162 -135
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +34 -39
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +34 -39
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +34 -39
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +34 -39
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +34 -39
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +34 -39
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +34 -39
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +34 -39
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +38 -9
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +0 -4
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -875,15 +875,15 @@ var card = {
|
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
877
|
|
|
878
|
-
var webAnimationContentDuration$
|
|
879
|
-
var webAnimationContentEasing$
|
|
878
|
+
var webAnimationContentDuration$1 = 400;
|
|
879
|
+
var webAnimationContentEasing$1 = {
|
|
880
880
|
x1: 0.77,
|
|
881
881
|
y1: 0,
|
|
882
882
|
x2: 0.175,
|
|
883
883
|
y2: 1
|
|
884
884
|
};
|
|
885
|
-
var webAnimationOverlayDuration$
|
|
886
|
-
var webAnimationOverlayEasing$
|
|
885
|
+
var webAnimationOverlayDuration$1 = 250;
|
|
886
|
+
var webAnimationOverlayEasing$1 = {
|
|
887
887
|
x1: 0.42,
|
|
888
888
|
y1: 0,
|
|
889
889
|
x2: 1,
|
|
@@ -918,12 +918,12 @@ var cardModal = {
|
|
|
918
918
|
},
|
|
919
919
|
animation: {
|
|
920
920
|
overlay: {
|
|
921
|
-
duration: webAnimationOverlayDuration$
|
|
922
|
-
easing: webAnimationOverlayEasing$
|
|
921
|
+
duration: webAnimationOverlayDuration$1,
|
|
922
|
+
easing: webAnimationOverlayEasing$1
|
|
923
923
|
},
|
|
924
924
|
content: {
|
|
925
|
-
duration: webAnimationContentDuration$
|
|
926
|
-
easing: webAnimationContentEasing$
|
|
925
|
+
duration: webAnimationContentDuration$1,
|
|
926
|
+
easing: webAnimationContentEasing$1
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
};
|
|
@@ -979,15 +979,15 @@ var choices = {
|
|
|
979
979
|
}
|
|
980
980
|
};
|
|
981
981
|
|
|
982
|
-
var webAnimationContentDuration
|
|
983
|
-
var webAnimationContentEasing
|
|
982
|
+
var webAnimationContentDuration = 400;
|
|
983
|
+
var webAnimationContentEasing = {
|
|
984
984
|
x1: 0.77,
|
|
985
985
|
y1: 0,
|
|
986
986
|
x2: 0.175,
|
|
987
987
|
y2: 1
|
|
988
988
|
};
|
|
989
|
-
var webAnimationOverlayDuration
|
|
990
|
-
var webAnimationOverlayEasing
|
|
989
|
+
var webAnimationOverlayDuration = 250;
|
|
990
|
+
var webAnimationOverlayEasing = {
|
|
991
991
|
x1: 0.42,
|
|
992
992
|
y1: 0,
|
|
993
993
|
x2: 1,
|
|
@@ -1009,12 +1009,12 @@ var dialogModal = {
|
|
|
1009
1009
|
},
|
|
1010
1010
|
animation: {
|
|
1011
1011
|
overlay: {
|
|
1012
|
-
duration: webAnimationOverlayDuration
|
|
1013
|
-
easing: webAnimationOverlayEasing
|
|
1012
|
+
duration: webAnimationOverlayDuration,
|
|
1013
|
+
easing: webAnimationOverlayEasing
|
|
1014
1014
|
},
|
|
1015
1015
|
content: {
|
|
1016
|
-
duration: webAnimationContentDuration
|
|
1017
|
-
easing: webAnimationContentEasing
|
|
1016
|
+
duration: webAnimationContentDuration,
|
|
1017
|
+
easing: webAnimationContentEasing
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
@@ -1072,10 +1072,10 @@ var autocomplete = {
|
|
|
1072
1072
|
};
|
|
1073
1073
|
|
|
1074
1074
|
var checkbox = {
|
|
1075
|
-
borderWidth:
|
|
1076
|
-
borderRadius:
|
|
1077
|
-
height:
|
|
1078
|
-
width:
|
|
1075
|
+
borderWidth: 2,
|
|
1076
|
+
borderRadius: 5,
|
|
1077
|
+
height: 20,
|
|
1078
|
+
width: 20,
|
|
1079
1079
|
iconSize: 14,
|
|
1080
1080
|
markColor: colors.uiBackgroundLight,
|
|
1081
1081
|
textSpacing: 10,
|
|
@@ -1138,7 +1138,6 @@ var inputStatesStyle = {
|
|
|
1138
1138
|
color: deepPurpleColorPalette.black
|
|
1139
1139
|
},
|
|
1140
1140
|
hover: {
|
|
1141
|
-
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1142
1141
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1143
1142
|
color: deepPurpleColorPalette.black
|
|
1144
1143
|
},
|
|
@@ -1923,20 +1922,6 @@ var forms = {
|
|
|
1923
1922
|
timePicker: timePicker
|
|
1924
1923
|
};
|
|
1925
1924
|
|
|
1926
|
-
var webAnimationContentDuration = 600;
|
|
1927
|
-
var webAnimationContentEasing = {
|
|
1928
|
-
x1: 0.77,
|
|
1929
|
-
y1: 0,
|
|
1930
|
-
x2: 0.175,
|
|
1931
|
-
y2: 1
|
|
1932
|
-
};
|
|
1933
|
-
var webAnimationOverlayDuration = 250;
|
|
1934
|
-
var webAnimationOverlayEasing = {
|
|
1935
|
-
x1: 0.42,
|
|
1936
|
-
y1: 0,
|
|
1937
|
-
x2: 1,
|
|
1938
|
-
y2: 1
|
|
1939
|
-
};
|
|
1940
1925
|
var fullscreenModal = {
|
|
1941
1926
|
header: {
|
|
1942
1927
|
height: 56
|
|
@@ -1950,12 +1935,22 @@ var fullscreenModal = {
|
|
|
1950
1935
|
},
|
|
1951
1936
|
animation: {
|
|
1952
1937
|
overlay: {
|
|
1953
|
-
duration:
|
|
1954
|
-
easing:
|
|
1938
|
+
duration: 250,
|
|
1939
|
+
easing: {
|
|
1940
|
+
x1: 0.42,
|
|
1941
|
+
y1: 0,
|
|
1942
|
+
x2: 1,
|
|
1943
|
+
y2: 1
|
|
1944
|
+
}
|
|
1955
1945
|
},
|
|
1956
1946
|
content: {
|
|
1957
|
-
duration:
|
|
1958
|
-
easing:
|
|
1947
|
+
duration: 600,
|
|
1948
|
+
easing: {
|
|
1949
|
+
x1: 0.77,
|
|
1950
|
+
y1: 0,
|
|
1951
|
+
x2: 0.175,
|
|
1952
|
+
y2: 1
|
|
1953
|
+
}
|
|
1959
1954
|
}
|
|
1960
1955
|
}
|
|
1961
1956
|
};
|
|
@@ -5628,10 +5623,28 @@ function InputPressable(_ref) {
|
|
|
5628
5623
|
}
|
|
5629
5624
|
|
|
5630
5625
|
function InputTextContainer(_ref) {
|
|
5631
|
-
var children = _ref.children
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5626
|
+
var children = _ref.children,
|
|
5627
|
+
isHovered = _ref.isHovered;
|
|
5628
|
+
var theme = useTheme();
|
|
5629
|
+
var sx = useSx();
|
|
5630
|
+
var styles = sx({
|
|
5631
|
+
borderRadius: input.borderRadius
|
|
5632
|
+
});
|
|
5633
|
+
var animatedBackground = useAnimatedStyle(function () {
|
|
5634
|
+
var baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5635
|
+
var hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5636
|
+
return {
|
|
5637
|
+
backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5638
|
+
duration: 200
|
|
5639
|
+
})
|
|
5640
|
+
};
|
|
5641
|
+
}, [isHovered, theme]);
|
|
5642
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
5643
|
+
style: [styles, animatedBackground],
|
|
5644
|
+
children: /*#__PURE__*/jsx(View, {
|
|
5645
|
+
position: "relative",
|
|
5646
|
+
children: children
|
|
5647
|
+
})
|
|
5635
5648
|
});
|
|
5636
5649
|
}
|
|
5637
5650
|
|
|
@@ -5662,41 +5675,47 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5662
5675
|
base: 'body-m'
|
|
5663
5676
|
});
|
|
5664
5677
|
var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
|
|
5665
|
-
return /*#__PURE__*/
|
|
5666
|
-
children:
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5678
|
+
return /*#__PURE__*/jsx(Pressable, {
|
|
5679
|
+
children: function (_ref2) {
|
|
5680
|
+
var isHovered = _ref2.isHovered;
|
|
5681
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5682
|
+
isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
|
|
5683
|
+
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
5684
|
+
ref: ref,
|
|
5685
|
+
multiline: multiline,
|
|
5686
|
+
id: id,
|
|
5687
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5688
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5689
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5690
|
+
inputMode: inputMode,
|
|
5691
|
+
autoComplete: autoComplete,
|
|
5692
|
+
autoCorrect: autoCorrect,
|
|
5693
|
+
textContentType: textContentType,
|
|
5694
|
+
fontSize: fontSizeForNativeBase,
|
|
5695
|
+
lineHeight:
|
|
5696
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5697
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5698
|
+
shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
|
|
5699
|
+
fontWeight: "bodies.regular",
|
|
5700
|
+
fontFamily: "bodies.regular",
|
|
5701
|
+
py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
|
|
5702
|
+
variant: variant
|
|
5703
|
+
}, props), {}, {
|
|
5704
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5705
|
+
onSubmitEditing: multiline ? function () {
|
|
5706
|
+
return null;
|
|
5707
|
+
} : onSubmitEditing
|
|
5708
|
+
})), right ? /*#__PURE__*/jsx(View, {
|
|
5709
|
+
position: "absolute",
|
|
5710
|
+
right: 0,
|
|
5711
|
+
top: 0,
|
|
5712
|
+
bottom: 0,
|
|
5713
|
+
justifyContent: "center",
|
|
5714
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5715
|
+
children: right
|
|
5716
|
+
}) : null]
|
|
5717
|
+
});
|
|
5718
|
+
}
|
|
5700
5719
|
});
|
|
5701
5720
|
});
|
|
5702
5721
|
|