@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;
|
|
@@ -1118,7 +1118,6 @@ const inputStatesStyle = {
|
|
|
1118
1118
|
color: deepPurpleColorPalette.black
|
|
1119
1119
|
},
|
|
1120
1120
|
hover: {
|
|
1121
|
-
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1122
1121
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1123
1122
|
color: deepPurpleColorPalette.black
|
|
1124
1123
|
},
|
|
@@ -5360,11 +5359,30 @@ function InputPressable({
|
|
|
5360
5359
|
});
|
|
5361
5360
|
}
|
|
5362
5361
|
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5362
|
+
function InputTextContainer({
|
|
5363
|
+
children,
|
|
5364
|
+
isHovered
|
|
5365
|
+
}) {
|
|
5366
|
+
const theme = useTheme();
|
|
5367
|
+
const sx = useSx();
|
|
5368
|
+
const styles = sx({
|
|
5369
|
+
borderRadius: input.borderRadius
|
|
5370
|
+
});
|
|
5371
|
+
const animatedBackground = useAnimatedStyle(() => {
|
|
5372
|
+
const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5373
|
+
const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5374
|
+
return {
|
|
5375
|
+
backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5376
|
+
duration: 200
|
|
5377
|
+
})
|
|
5378
|
+
};
|
|
5379
|
+
}, [isHovered, theme]);
|
|
5380
|
+
return /*#__PURE__*/jsx(Animated$1.View, {
|
|
5381
|
+
style: [styles, animatedBackground],
|
|
5382
|
+
children: /*#__PURE__*/jsx(View, {
|
|
5383
|
+
position: "relative",
|
|
5384
|
+
children: children
|
|
5385
|
+
})
|
|
5368
5386
|
});
|
|
5369
5387
|
}
|
|
5370
5388
|
|
|
@@ -5388,39 +5406,44 @@ const InputText = /*#__PURE__*/forwardRef(({
|
|
|
5388
5406
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5389
5407
|
base: 'body-m'
|
|
5390
5408
|
});
|
|
5391
|
-
return /*#__PURE__*/
|
|
5392
|
-
children:
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5409
|
+
return /*#__PURE__*/jsx(Pressable, {
|
|
5410
|
+
children: ({
|
|
5411
|
+
isHovered
|
|
5412
|
+
}) => /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5413
|
+
isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
|
|
5414
|
+
children: [/*#__PURE__*/jsx(Input, {
|
|
5415
|
+
ref: ref,
|
|
5416
|
+
multiline: multiline,
|
|
5417
|
+
id: id,
|
|
5418
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5419
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5420
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5421
|
+
inputMode: inputMode,
|
|
5422
|
+
autoComplete: autoComplete,
|
|
5423
|
+
autoCorrect: autoCorrect,
|
|
5424
|
+
textContentType: textContentType,
|
|
5425
|
+
fontSize: fontSizeForNativeBase,
|
|
5426
|
+
lineHeight:
|
|
5427
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5428
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5429
|
+
fontSizeForNativeBase,
|
|
5430
|
+
fontWeight: "bodies.regular",
|
|
5431
|
+
fontFamily: "bodies.regular",
|
|
5432
|
+
py: !multiline && "web" !== 'web' ? 0 : undefined,
|
|
5433
|
+
variant: variant,
|
|
5434
|
+
...props,
|
|
5435
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5436
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5437
|
+
}), right ? /*#__PURE__*/jsx(View, {
|
|
5438
|
+
position: "absolute",
|
|
5439
|
+
right: 0,
|
|
5440
|
+
top: 0,
|
|
5441
|
+
bottom: 0,
|
|
5442
|
+
justifyContent: "center",
|
|
5443
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5444
|
+
children: right
|
|
5445
|
+
}) : null]
|
|
5446
|
+
})
|
|
5424
5447
|
});
|
|
5425
5448
|
});
|
|
5426
5449
|
|