@ornikar/kitt-universal 32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0 → 32.3.1-canary.6b90c05af1040921f0d857fd4a69c684619f4975.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 +3 -5
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts +1 -2
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +4 -0
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/input.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 +38 -60
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +38 -60
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +38 -60
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +1 -0
- package/dist/index-node-22.17.cjs.web.js +39 -62
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +38 -60
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +1 -0
- package/dist/index-node-22.17.es.web.mjs +39 -62
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +40 -63
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +41 -65
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +1 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +1 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +1 -0
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +1 -0
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +1 -0
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +1 -0
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +1 -0
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +1 -0
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1123,6 +1123,7 @@ const inputStatesStyle = {
|
|
|
1123
1123
|
color: deepPurpleColorPalette.black
|
|
1124
1124
|
},
|
|
1125
1125
|
hover: {
|
|
1126
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1126
1127
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1127
1128
|
color: deepPurpleColorPalette.black
|
|
1128
1129
|
},
|
|
@@ -5525,29 +5526,11 @@ function InputPressable(_ref) {
|
|
|
5525
5526
|
}
|
|
5526
5527
|
|
|
5527
5528
|
function InputTextContainer({
|
|
5528
|
-
children
|
|
5529
|
-
isHovered
|
|
5529
|
+
children
|
|
5530
5530
|
}) {
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
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
|
-
})
|
|
5531
|
+
return /*#__PURE__*/jsx(View, {
|
|
5532
|
+
position: "relative",
|
|
5533
|
+
children: children
|
|
5551
5534
|
});
|
|
5552
5535
|
}
|
|
5553
5536
|
|
|
@@ -5574,44 +5557,39 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5574
5557
|
base: 'body-m'
|
|
5575
5558
|
});
|
|
5576
5559
|
const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
|
|
5577
|
-
return /*#__PURE__*/
|
|
5578
|
-
children: ({
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
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
|
-
justifyContent: "center",
|
|
5611
|
-
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5612
|
-
children: right
|
|
5613
|
-
}) : null]
|
|
5614
|
-
})
|
|
5560
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5561
|
+
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
5562
|
+
ref: ref,
|
|
5563
|
+
multiline: multiline,
|
|
5564
|
+
id: id,
|
|
5565
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5566
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5567
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5568
|
+
inputMode: inputMode,
|
|
5569
|
+
autoComplete: autoComplete,
|
|
5570
|
+
autoCorrect: autoCorrect,
|
|
5571
|
+
textContentType: textContentType,
|
|
5572
|
+
fontSize: fontSizeForNativeBase,
|
|
5573
|
+
lineHeight:
|
|
5574
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5575
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5576
|
+
shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
|
|
5577
|
+
fontWeight: "bodies.regular",
|
|
5578
|
+
fontFamily: "bodies.regular",
|
|
5579
|
+
py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
|
|
5580
|
+
variant: variant
|
|
5581
|
+
}, props), {}, {
|
|
5582
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5583
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5584
|
+
})), right ? /*#__PURE__*/jsx(View, {
|
|
5585
|
+
position: "absolute",
|
|
5586
|
+
right: 0,
|
|
5587
|
+
top: 0,
|
|
5588
|
+
bottom: 0,
|
|
5589
|
+
justifyContent: "center",
|
|
5590
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5591
|
+
children: right
|
|
5592
|
+
}) : null]
|
|
5615
5593
|
});
|
|
5616
5594
|
});
|
|
5617
5595
|
|