@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;
|
|
@@ -1127,6 +1127,7 @@ const inputStatesStyle = {
|
|
|
1127
1127
|
color: deepPurpleColorPalette.black
|
|
1128
1128
|
},
|
|
1129
1129
|
hover: {
|
|
1130
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1130
1131
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1131
1132
|
color: deepPurpleColorPalette.black
|
|
1132
1133
|
},
|
|
@@ -5368,30 +5369,11 @@ function InputPressable({
|
|
|
5368
5369
|
});
|
|
5369
5370
|
}
|
|
5370
5371
|
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
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
|
-
})
|
|
5372
|
+
const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
|
|
5373
|
+
function InputTextContainer(props) {
|
|
5374
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
5375
|
+
className: inputTextContainer,
|
|
5376
|
+
...props
|
|
5395
5377
|
});
|
|
5396
5378
|
}
|
|
5397
5379
|
|
|
@@ -5415,44 +5397,39 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
5415
5397
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5416
5398
|
base: 'body-m'
|
|
5417
5399
|
});
|
|
5418
|
-
return /*#__PURE__*/jsxRuntime.
|
|
5419
|
-
children: ({
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
justifyContent: "center",
|
|
5452
|
-
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5453
|
-
children: right
|
|
5454
|
-
}) : null]
|
|
5455
|
-
})
|
|
5400
|
+
return /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
|
|
5401
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
|
|
5402
|
+
ref: ref,
|
|
5403
|
+
multiline: multiline,
|
|
5404
|
+
id: id,
|
|
5405
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5406
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5407
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5408
|
+
inputMode: inputMode,
|
|
5409
|
+
autoComplete: autoComplete,
|
|
5410
|
+
autoCorrect: autoCorrect,
|
|
5411
|
+
textContentType: textContentType,
|
|
5412
|
+
fontSize: fontSizeForNativeBase,
|
|
5413
|
+
lineHeight:
|
|
5414
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5415
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5416
|
+
fontSizeForNativeBase,
|
|
5417
|
+
fontWeight: "bodies.regular",
|
|
5418
|
+
fontFamily: "bodies.regular",
|
|
5419
|
+
py: !multiline && "web" !== 'web' ? 0 : undefined,
|
|
5420
|
+
variant: variant,
|
|
5421
|
+
...props,
|
|
5422
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5423
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5424
|
+
}), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5425
|
+
position: "absolute",
|
|
5426
|
+
right: 0,
|
|
5427
|
+
top: 0,
|
|
5428
|
+
bottom: 0,
|
|
5429
|
+
justifyContent: "center",
|
|
5430
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5431
|
+
children: right
|
|
5432
|
+
}) : null]
|
|
5456
5433
|
});
|
|
5457
5434
|
});
|
|
5458
5435
|
|