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