@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.web.js
CHANGED
|
@@ -1136,6 +1136,7 @@ var inputStatesStyle = {
|
|
|
1136
1136
|
color: deepPurpleColorPalette.black
|
|
1137
1137
|
},
|
|
1138
1138
|
hover: {
|
|
1139
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1139
1140
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1140
1141
|
color: deepPurpleColorPalette.black
|
|
1141
1142
|
},
|
|
@@ -5433,30 +5434,11 @@ function InputPressable(_ref) {
|
|
|
5433
5434
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread({}, props));
|
|
5434
5435
|
}
|
|
5435
5436
|
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
var styles = sx({
|
|
5442
|
-
borderRadius: input.borderRadius
|
|
5443
|
-
});
|
|
5444
|
-
var animatedBackground = useAnimatedStyle(function () {
|
|
5445
|
-
var baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5446
|
-
var hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5447
|
-
return {
|
|
5448
|
-
backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5449
|
-
duration: 200
|
|
5450
|
-
})
|
|
5451
|
-
};
|
|
5452
|
-
}, [isHovered, theme]);
|
|
5453
|
-
return /*#__PURE__*/jsx(Animated$1.View, {
|
|
5454
|
-
style: [styles, animatedBackground],
|
|
5455
|
-
children: /*#__PURE__*/jsx(View, {
|
|
5456
|
-
position: "relative",
|
|
5457
|
-
children: children
|
|
5458
|
-
})
|
|
5459
|
-
});
|
|
5437
|
+
var inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
|
|
5438
|
+
function InputTextContainer(props) {
|
|
5439
|
+
return /*#__PURE__*/jsx("div", _objectSpread({
|
|
5440
|
+
className: inputTextContainer
|
|
5441
|
+
}, props));
|
|
5460
5442
|
}
|
|
5461
5443
|
|
|
5462
5444
|
var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
@@ -5485,47 +5467,41 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5485
5467
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5486
5468
|
base: 'body-m'
|
|
5487
5469
|
});
|
|
5488
|
-
return /*#__PURE__*/
|
|
5489
|
-
children:
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
justifyContent: "center",
|
|
5524
|
-
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5525
|
-
children: right
|
|
5526
|
-
}) : null]
|
|
5527
|
-
});
|
|
5528
|
-
}
|
|
5470
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5471
|
+
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
5472
|
+
ref: ref,
|
|
5473
|
+
multiline: multiline,
|
|
5474
|
+
id: id,
|
|
5475
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5476
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5477
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5478
|
+
inputMode: inputMode,
|
|
5479
|
+
autoComplete: autoComplete,
|
|
5480
|
+
autoCorrect: autoCorrect,
|
|
5481
|
+
textContentType: textContentType,
|
|
5482
|
+
fontSize: fontSizeForNativeBase,
|
|
5483
|
+
lineHeight:
|
|
5484
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5485
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5486
|
+
fontSizeForNativeBase,
|
|
5487
|
+
fontWeight: "bodies.regular",
|
|
5488
|
+
fontFamily: "bodies.regular",
|
|
5489
|
+
py: !multiline && "web" !== 'web' ? 0 : undefined,
|
|
5490
|
+
variant: variant
|
|
5491
|
+
}, props), {}, {
|
|
5492
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5493
|
+
onSubmitEditing: multiline ? function () {
|
|
5494
|
+
return null;
|
|
5495
|
+
} : onSubmitEditing
|
|
5496
|
+
})), right ? /*#__PURE__*/jsx(View, {
|
|
5497
|
+
position: "absolute",
|
|
5498
|
+
right: 0,
|
|
5499
|
+
top: 0,
|
|
5500
|
+
bottom: 0,
|
|
5501
|
+
justifyContent: "center",
|
|
5502
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5503
|
+
children: right
|
|
5504
|
+
}) : null]
|
|
5529
5505
|
});
|
|
5530
5506
|
});
|
|
5531
5507
|
|