@ornikar/kitt-universal 32.3.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 +11 -0
- 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/input.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +60 -38
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +60 -38
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +60 -38
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +0 -1
- package/dist/index-node-22.17.cjs.web.js +62 -39
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +60 -38
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +0 -1
- package/dist/index-node-22.17.es.web.mjs +62 -39
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +63 -40
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +65 -41
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +0 -1
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +0 -1
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +0 -1
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +0 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +0 -1
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +0 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +0 -1
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +0 -1
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +0 -1
- 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
|
@@ -1144,7 +1144,6 @@ const inputStatesStyle = {
|
|
|
1144
1144
|
color: deepPurpleColorPalette.black
|
|
1145
1145
|
},
|
|
1146
1146
|
hover: {
|
|
1147
|
-
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1148
1147
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1149
1148
|
color: deepPurpleColorPalette.black
|
|
1150
1149
|
},
|
|
@@ -5550,11 +5549,29 @@ function InputPressable({
|
|
|
5550
5549
|
}
|
|
5551
5550
|
|
|
5552
5551
|
function InputTextContainer({
|
|
5553
|
-
children
|
|
5552
|
+
children,
|
|
5553
|
+
isHovered
|
|
5554
5554
|
}) {
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5555
|
+
const theme = useTheme();
|
|
5556
|
+
const sx = nativeBase.useSx();
|
|
5557
|
+
const styles = sx({
|
|
5558
|
+
borderRadius: input.borderRadius
|
|
5559
|
+
});
|
|
5560
|
+
const animatedBackground = Animated.useAnimatedStyle(() => {
|
|
5561
|
+
const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5562
|
+
const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5563
|
+
return {
|
|
5564
|
+
backgroundColor: Animated.withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5565
|
+
duration: 200
|
|
5566
|
+
})
|
|
5567
|
+
};
|
|
5568
|
+
}, [isHovered, theme]);
|
|
5569
|
+
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
5570
|
+
style: [styles, animatedBackground],
|
|
5571
|
+
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5572
|
+
position: "relative",
|
|
5573
|
+
children: children
|
|
5574
|
+
})
|
|
5558
5575
|
});
|
|
5559
5576
|
}
|
|
5560
5577
|
|
|
@@ -5579,39 +5596,44 @@ const InputText = /*#__PURE__*/React.forwardRef(({
|
|
|
5579
5596
|
base: 'body-m'
|
|
5580
5597
|
});
|
|
5581
5598
|
const shouldHandleSingleLineOnIOS = reactNative.Platform.OS === 'ios' && !multiline;
|
|
5582
|
-
return /*#__PURE__*/jsxRuntime.
|
|
5583
|
-
children:
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5599
|
+
return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
|
|
5600
|
+
children: ({
|
|
5601
|
+
isHovered
|
|
5602
|
+
}) => /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
|
|
5603
|
+
isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
|
|
5604
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
|
|
5605
|
+
ref: ref,
|
|
5606
|
+
multiline: multiline,
|
|
5607
|
+
id: id,
|
|
5608
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5609
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5610
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5611
|
+
inputMode: inputMode,
|
|
5612
|
+
autoComplete: autoComplete,
|
|
5613
|
+
autoCorrect: autoCorrect,
|
|
5614
|
+
textContentType: textContentType,
|
|
5615
|
+
fontSize: fontSizeForNativeBase,
|
|
5616
|
+
lineHeight:
|
|
5617
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5618
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5619
|
+
shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
|
|
5620
|
+
fontWeight: "bodies.regular",
|
|
5621
|
+
fontFamily: "bodies.regular",
|
|
5622
|
+
py: !multiline && reactNative.Platform.OS !== 'web' ? 0 : undefined,
|
|
5623
|
+
variant: variant,
|
|
5624
|
+
...props,
|
|
5625
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5626
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5627
|
+
}), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5628
|
+
position: "absolute",
|
|
5629
|
+
right: 0,
|
|
5630
|
+
top: 0,
|
|
5631
|
+
bottom: 0,
|
|
5632
|
+
justifyContent: "center",
|
|
5633
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5634
|
+
children: right
|
|
5635
|
+
}) : null]
|
|
5636
|
+
})
|
|
5615
5637
|
});
|
|
5616
5638
|
});
|
|
5617
5639
|
|