@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
|
@@ -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
|
},
|
|
@@ -5526,11 +5525,29 @@ function InputPressable({
|
|
|
5526
5525
|
}
|
|
5527
5526
|
|
|
5528
5527
|
function InputTextContainer({
|
|
5529
|
-
children
|
|
5528
|
+
children,
|
|
5529
|
+
isHovered
|
|
5530
5530
|
}) {
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
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
|
+
})
|
|
5534
5551
|
});
|
|
5535
5552
|
}
|
|
5536
5553
|
|
|
@@ -5555,39 +5572,44 @@ const InputText = /*#__PURE__*/forwardRef(({
|
|
|
5555
5572
|
base: 'body-m'
|
|
5556
5573
|
});
|
|
5557
5574
|
const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
|
|
5558
|
-
return /*#__PURE__*/
|
|
5559
|
-
children:
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
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
|
-
|
|
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
|
+
})
|
|
5591
5613
|
});
|
|
5592
5614
|
});
|
|
5593
5615
|
|