@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
|
@@ -857,15 +857,15 @@ const card = {
|
|
|
857
857
|
}
|
|
858
858
|
};
|
|
859
859
|
|
|
860
|
-
const webAnimationContentDuration$
|
|
861
|
-
const webAnimationContentEasing$
|
|
860
|
+
const webAnimationContentDuration$1 = 400;
|
|
861
|
+
const webAnimationContentEasing$1 = {
|
|
862
862
|
x1: 0.77,
|
|
863
863
|
y1: 0,
|
|
864
864
|
x2: 0.175,
|
|
865
865
|
y2: 1
|
|
866
866
|
};
|
|
867
|
-
const webAnimationOverlayDuration$
|
|
868
|
-
const webAnimationOverlayEasing$
|
|
867
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
868
|
+
const webAnimationOverlayEasing$1 = {
|
|
869
869
|
x1: 0.42,
|
|
870
870
|
y1: 0,
|
|
871
871
|
x2: 1,
|
|
@@ -900,12 +900,12 @@ const cardModal = {
|
|
|
900
900
|
},
|
|
901
901
|
animation: {
|
|
902
902
|
overlay: {
|
|
903
|
-
duration: webAnimationOverlayDuration$
|
|
904
|
-
easing: webAnimationOverlayEasing$
|
|
903
|
+
duration: webAnimationOverlayDuration$1,
|
|
904
|
+
easing: webAnimationOverlayEasing$1
|
|
905
905
|
},
|
|
906
906
|
content: {
|
|
907
|
-
duration: webAnimationContentDuration$
|
|
908
|
-
easing: webAnimationContentEasing$
|
|
907
|
+
duration: webAnimationContentDuration$1,
|
|
908
|
+
easing: webAnimationContentEasing$1
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
};
|
|
@@ -961,15 +961,15 @@ const choices = {
|
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
963
|
|
|
964
|
-
const webAnimationContentDuration
|
|
965
|
-
const webAnimationContentEasing
|
|
964
|
+
const webAnimationContentDuration = 400;
|
|
965
|
+
const webAnimationContentEasing = {
|
|
966
966
|
x1: 0.77,
|
|
967
967
|
y1: 0,
|
|
968
968
|
x2: 0.175,
|
|
969
969
|
y2: 1
|
|
970
970
|
};
|
|
971
|
-
const webAnimationOverlayDuration
|
|
972
|
-
const webAnimationOverlayEasing
|
|
971
|
+
const webAnimationOverlayDuration = 250;
|
|
972
|
+
const webAnimationOverlayEasing = {
|
|
973
973
|
x1: 0.42,
|
|
974
974
|
y1: 0,
|
|
975
975
|
x2: 1,
|
|
@@ -991,12 +991,12 @@ const dialogModal = {
|
|
|
991
991
|
},
|
|
992
992
|
animation: {
|
|
993
993
|
overlay: {
|
|
994
|
-
duration: webAnimationOverlayDuration
|
|
995
|
-
easing: webAnimationOverlayEasing
|
|
994
|
+
duration: webAnimationOverlayDuration,
|
|
995
|
+
easing: webAnimationOverlayEasing
|
|
996
996
|
},
|
|
997
997
|
content: {
|
|
998
|
-
duration: webAnimationContentDuration
|
|
999
|
-
easing: webAnimationContentEasing
|
|
998
|
+
duration: webAnimationContentDuration,
|
|
999
|
+
easing: webAnimationContentEasing
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
@@ -1054,10 +1054,10 @@ const autocomplete = {
|
|
|
1054
1054
|
};
|
|
1055
1055
|
|
|
1056
1056
|
const checkbox = {
|
|
1057
|
-
borderWidth:
|
|
1058
|
-
borderRadius:
|
|
1059
|
-
height:
|
|
1060
|
-
width:
|
|
1057
|
+
borderWidth: 2,
|
|
1058
|
+
borderRadius: 5,
|
|
1059
|
+
height: 20,
|
|
1060
|
+
width: 20,
|
|
1061
1061
|
iconSize: 14,
|
|
1062
1062
|
markColor: colors.uiBackgroundLight,
|
|
1063
1063
|
textSpacing: 10,
|
|
@@ -1120,7 +1120,6 @@ const inputStatesStyle = {
|
|
|
1120
1120
|
color: deepPurpleColorPalette.black
|
|
1121
1121
|
},
|
|
1122
1122
|
hover: {
|
|
1123
|
-
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1124
1123
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1125
1124
|
color: deepPurpleColorPalette.black
|
|
1126
1125
|
},
|
|
@@ -1905,20 +1904,6 @@ const forms = {
|
|
|
1905
1904
|
timePicker
|
|
1906
1905
|
};
|
|
1907
1906
|
|
|
1908
|
-
const webAnimationContentDuration = 600;
|
|
1909
|
-
const webAnimationContentEasing = {
|
|
1910
|
-
x1: 0.77,
|
|
1911
|
-
y1: 0,
|
|
1912
|
-
x2: 0.175,
|
|
1913
|
-
y2: 1
|
|
1914
|
-
};
|
|
1915
|
-
const webAnimationOverlayDuration = 250;
|
|
1916
|
-
const webAnimationOverlayEasing = {
|
|
1917
|
-
x1: 0.42,
|
|
1918
|
-
y1: 0,
|
|
1919
|
-
x2: 1,
|
|
1920
|
-
y2: 1
|
|
1921
|
-
};
|
|
1922
1907
|
const fullscreenModal = {
|
|
1923
1908
|
header: {
|
|
1924
1909
|
height: 56
|
|
@@ -1932,12 +1917,22 @@ const fullscreenModal = {
|
|
|
1932
1917
|
},
|
|
1933
1918
|
animation: {
|
|
1934
1919
|
overlay: {
|
|
1935
|
-
duration:
|
|
1936
|
-
easing:
|
|
1920
|
+
duration: 250,
|
|
1921
|
+
easing: {
|
|
1922
|
+
x1: 0.42,
|
|
1923
|
+
y1: 0,
|
|
1924
|
+
x2: 1,
|
|
1925
|
+
y2: 1
|
|
1926
|
+
}
|
|
1937
1927
|
},
|
|
1938
1928
|
content: {
|
|
1939
|
-
duration:
|
|
1940
|
-
easing:
|
|
1929
|
+
duration: 600,
|
|
1930
|
+
easing: {
|
|
1931
|
+
x1: 0.77,
|
|
1932
|
+
y1: 0,
|
|
1933
|
+
x2: 0.175,
|
|
1934
|
+
y2: 1
|
|
1935
|
+
}
|
|
1941
1936
|
}
|
|
1942
1937
|
}
|
|
1943
1938
|
};
|
|
@@ -5530,11 +5525,29 @@ function InputPressable({
|
|
|
5530
5525
|
}
|
|
5531
5526
|
|
|
5532
5527
|
function InputTextContainer({
|
|
5533
|
-
children
|
|
5528
|
+
children,
|
|
5529
|
+
isHovered
|
|
5534
5530
|
}) {
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5531
|
+
const theme = useTheme();
|
|
5532
|
+
const sx = useSx();
|
|
5533
|
+
const styles = sx({
|
|
5534
|
+
borderRadius: input.borderRadius
|
|
5535
|
+
});
|
|
5536
|
+
const animatedBackground = useAnimatedStyle(() => {
|
|
5537
|
+
const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5538
|
+
const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5539
|
+
return {
|
|
5540
|
+
backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5541
|
+
duration: 200
|
|
5542
|
+
})
|
|
5543
|
+
};
|
|
5544
|
+
}, [isHovered, theme]);
|
|
5545
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
5546
|
+
style: [styles, animatedBackground],
|
|
5547
|
+
children: /*#__PURE__*/jsx(View, {
|
|
5548
|
+
position: "relative",
|
|
5549
|
+
children: children
|
|
5550
|
+
})
|
|
5538
5551
|
});
|
|
5539
5552
|
}
|
|
5540
5553
|
|
|
@@ -5559,39 +5572,44 @@ const InputText = /*#__PURE__*/forwardRef(({
|
|
|
5559
5572
|
base: 'body-m'
|
|
5560
5573
|
});
|
|
5561
5574
|
const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
|
|
5562
|
-
return /*#__PURE__*/
|
|
5563
|
-
children:
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5575
|
+
return /*#__PURE__*/jsx(Pressable, {
|
|
5576
|
+
children: ({
|
|
5577
|
+
isHovered
|
|
5578
|
+
}) => /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5579
|
+
isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
|
|
5580
|
+
children: [/*#__PURE__*/jsx(Input, {
|
|
5581
|
+
ref: ref,
|
|
5582
|
+
multiline: multiline,
|
|
5583
|
+
id: id,
|
|
5584
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5585
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5586
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5587
|
+
inputMode: inputMode,
|
|
5588
|
+
autoComplete: autoComplete,
|
|
5589
|
+
autoCorrect: autoCorrect,
|
|
5590
|
+
textContentType: textContentType,
|
|
5591
|
+
fontSize: fontSizeForNativeBase,
|
|
5592
|
+
lineHeight:
|
|
5593
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5594
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5595
|
+
shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
|
|
5596
|
+
fontWeight: "bodies.regular",
|
|
5597
|
+
fontFamily: "bodies.regular",
|
|
5598
|
+
py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
|
|
5599
|
+
variant: variant,
|
|
5600
|
+
...props,
|
|
5601
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5602
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5603
|
+
}), right ? /*#__PURE__*/jsx(View, {
|
|
5604
|
+
position: "absolute",
|
|
5605
|
+
right: 0,
|
|
5606
|
+
top: 0,
|
|
5607
|
+
bottom: 0,
|
|
5608
|
+
justifyContent: "center",
|
|
5609
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5610
|
+
children: right
|
|
5611
|
+
}) : null]
|
|
5612
|
+
})
|
|
5595
5613
|
});
|
|
5596
5614
|
});
|
|
5597
5615
|
|