@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
package/dist/index.es.js
CHANGED
|
@@ -1138,6 +1138,7 @@ var inputStatesStyle = {
|
|
|
1138
1138
|
color: deepPurpleColorPalette.black
|
|
1139
1139
|
},
|
|
1140
1140
|
hover: {
|
|
1141
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1141
1142
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1142
1143
|
color: deepPurpleColorPalette.black
|
|
1143
1144
|
},
|
|
@@ -5623,28 +5624,10 @@ function InputPressable(_ref) {
|
|
|
5623
5624
|
}
|
|
5624
5625
|
|
|
5625
5626
|
function InputTextContainer(_ref) {
|
|
5626
|
-
var children = _ref.children
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
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
|
-
})
|
|
5627
|
+
var children = _ref.children;
|
|
5628
|
+
return /*#__PURE__*/jsx(View, {
|
|
5629
|
+
position: "relative",
|
|
5630
|
+
children: children
|
|
5648
5631
|
});
|
|
5649
5632
|
}
|
|
5650
5633
|
|
|
@@ -5675,47 +5658,41 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5675
5658
|
base: 'body-m'
|
|
5676
5659
|
});
|
|
5677
5660
|
var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
|
|
5678
|
-
return /*#__PURE__*/
|
|
5679
|
-
children:
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
justifyContent: "center",
|
|
5714
|
-
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5715
|
-
children: right
|
|
5716
|
-
}) : null]
|
|
5717
|
-
});
|
|
5718
|
-
}
|
|
5661
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5662
|
+
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
5663
|
+
ref: ref,
|
|
5664
|
+
multiline: multiline,
|
|
5665
|
+
id: id,
|
|
5666
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5667
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5668
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5669
|
+
inputMode: inputMode,
|
|
5670
|
+
autoComplete: autoComplete,
|
|
5671
|
+
autoCorrect: autoCorrect,
|
|
5672
|
+
textContentType: textContentType,
|
|
5673
|
+
fontSize: fontSizeForNativeBase,
|
|
5674
|
+
lineHeight:
|
|
5675
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5676
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5677
|
+
shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
|
|
5678
|
+
fontWeight: "bodies.regular",
|
|
5679
|
+
fontFamily: "bodies.regular",
|
|
5680
|
+
py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
|
|
5681
|
+
variant: variant
|
|
5682
|
+
}, props), {}, {
|
|
5683
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5684
|
+
onSubmitEditing: multiline ? function () {
|
|
5685
|
+
return null;
|
|
5686
|
+
} : onSubmitEditing
|
|
5687
|
+
})), right ? /*#__PURE__*/jsx(View, {
|
|
5688
|
+
position: "absolute",
|
|
5689
|
+
right: 0,
|
|
5690
|
+
top: 0,
|
|
5691
|
+
bottom: 0,
|
|
5692
|
+
justifyContent: "center",
|
|
5693
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5694
|
+
children: right
|
|
5695
|
+
}) : null]
|
|
5719
5696
|
});
|
|
5720
5697
|
});
|
|
5721
5698
|
|