@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
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
.kitt-u_opacityEnterActive_o1t4vl7b{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
|
|
7
7
|
.kitt-u_opacityExit_ogyytm1{opacity:1;}
|
|
8
8
|
.kitt-u_opacityExitActive_o18xvk52{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
|
|
9
|
-
.kitt-u_inputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_inputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_inputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_inputTextContainer_i1encr9g > *{-webkit-transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;}
|
|
10
9
|
/* Overlay animation styles - uses CSS variables for theme values */
|
|
11
10
|
.FullscreenModalAnimation-module_overlay-enter__L1J1X {
|
|
12
11
|
opacity: 0;
|
|
@@ -1127,7 +1127,6 @@ const inputStatesStyle = {
|
|
|
1127
1127
|
color: deepPurpleColorPalette.black
|
|
1128
1128
|
},
|
|
1129
1129
|
hover: {
|
|
1130
|
-
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1131
1130
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1132
1131
|
color: deepPurpleColorPalette.black
|
|
1133
1132
|
},
|
|
@@ -5369,11 +5368,30 @@ function InputPressable({
|
|
|
5369
5368
|
});
|
|
5370
5369
|
}
|
|
5371
5370
|
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5371
|
+
function InputTextContainer({
|
|
5372
|
+
children,
|
|
5373
|
+
isHovered
|
|
5374
|
+
}) {
|
|
5375
|
+
const theme = useTheme();
|
|
5376
|
+
const sx = nativeBase.useSx();
|
|
5377
|
+
const styles = sx({
|
|
5378
|
+
borderRadius: input.borderRadius
|
|
5379
|
+
});
|
|
5380
|
+
const animatedBackground = Animated.useAnimatedStyle(() => {
|
|
5381
|
+
const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5382
|
+
const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5383
|
+
return {
|
|
5384
|
+
backgroundColor: Animated.withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5385
|
+
duration: 200
|
|
5386
|
+
})
|
|
5387
|
+
};
|
|
5388
|
+
}, [isHovered, theme]);
|
|
5389
|
+
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
5390
|
+
style: [styles, animatedBackground],
|
|
5391
|
+
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5392
|
+
position: "relative",
|
|
5393
|
+
children: children
|
|
5394
|
+
})
|
|
5377
5395
|
});
|
|
5378
5396
|
}
|
|
5379
5397
|
|
|
@@ -5397,39 +5415,44 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
5397
5415
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5398
5416
|
base: 'body-m'
|
|
5399
5417
|
});
|
|
5400
|
-
return /*#__PURE__*/jsxRuntime.
|
|
5401
|
-
children:
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5418
|
+
return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
|
|
5419
|
+
children: ({
|
|
5420
|
+
isHovered
|
|
5421
|
+
}) => /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
|
|
5422
|
+
isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
|
|
5423
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
|
|
5424
|
+
ref: ref,
|
|
5425
|
+
multiline: multiline,
|
|
5426
|
+
id: id,
|
|
5427
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5428
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5429
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5430
|
+
inputMode: inputMode,
|
|
5431
|
+
autoComplete: autoComplete,
|
|
5432
|
+
autoCorrect: autoCorrect,
|
|
5433
|
+
textContentType: textContentType,
|
|
5434
|
+
fontSize: fontSizeForNativeBase,
|
|
5435
|
+
lineHeight:
|
|
5436
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5437
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5438
|
+
fontSizeForNativeBase,
|
|
5439
|
+
fontWeight: "bodies.regular",
|
|
5440
|
+
fontFamily: "bodies.regular",
|
|
5441
|
+
py: !multiline && "web" !== 'web' ? 0 : undefined,
|
|
5442
|
+
variant: variant,
|
|
5443
|
+
...props,
|
|
5444
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5445
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5446
|
+
}), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5447
|
+
position: "absolute",
|
|
5448
|
+
right: 0,
|
|
5449
|
+
top: 0,
|
|
5450
|
+
bottom: 0,
|
|
5451
|
+
justifyContent: "center",
|
|
5452
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5453
|
+
children: right
|
|
5454
|
+
}) : null]
|
|
5455
|
+
})
|
|
5433
5456
|
});
|
|
5434
5457
|
});
|
|
5435
5458
|
|