@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.3.0...@ornikar/kitt-universal@32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0) (2025-12-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* deleted web only version ([1be7cd6](https://github.com/ornikar/kitt/commit/1be7cd6cfd53fd51f336e900488f437e52401b67))
|
|
12
|
+
* replaced with universal version ([8d4925f](https://github.com/ornikar/kitt/commit/8d4925ff832fc7b52dd19136aed67262a952f896))
|
|
13
|
+
* updated snapshots ([282229f](https://github.com/ornikar/kitt/commit/282229fbcb79b0e70662d8927eccac40f40e40d3))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [32.3.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.2.0...@ornikar/kitt-universal@32.3.0) (2025-12-11)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputText.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputText.tsx"],"names":[],"mapp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UAAU,CAAC;AAG7D,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,gBAAgB,EAAE,IAAI,CAAC;IACpE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,eAAe,CAAC,SAAS,GAAG,UAAU,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,YAAY,CAAC;CACnC;AAED,eAAO,MAAM,SAAS,wGAsErB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
export interface InputTextContainerProps {
|
|
3
3
|
children: NonNullable<ReactNode>;
|
|
4
|
+
isHovered?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare function InputTextContainer({ children }: InputTextContainerProps): ReactNode;
|
|
6
|
+
export declare function InputTextContainer({ children, isHovered }: InputTextContainerProps): ReactNode;
|
|
6
7
|
//# sourceMappingURL=InputTextContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputTextContainer.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputTextContainer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InputTextContainer.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputTextContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,uBAAuB,GAAG,SAAS,CAwB9F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;AAqCpE,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,OAAO,EAAE;QACP,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,cAAc,EAAE;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAC5C,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AACxD,eAAO,MAAM,sBAAsB,UAAuC,CAAC;AAE3E,eAAO,MAAM,KAAK,EAAE,UAwBnB,CAAC"}
|
|
@@ -1123,7 +1123,6 @@ const inputStatesStyle = {
|
|
|
1123
1123
|
color: deepPurpleColorPalette.black
|
|
1124
1124
|
},
|
|
1125
1125
|
hover: {
|
|
1126
|
-
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1127
1126
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1128
1127
|
color: deepPurpleColorPalette.black
|
|
1129
1128
|
},
|
|
@@ -5526,11 +5525,29 @@ function InputPressable(_ref) {
|
|
|
5526
5525
|
}
|
|
5527
5526
|
|
|
5528
5527
|
function InputTextContainer({
|
|
5529
|
-
children
|
|
5528
|
+
children,
|
|
5529
|
+
isHovered
|
|
5530
5530
|
}) {
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5531
|
+
const theme = useTheme();
|
|
5532
|
+
const sx = useSx();
|
|
5533
|
+
const styles = sx({
|
|
5534
|
+
borderRadius: input.borderRadius
|
|
5535
|
+
});
|
|
5536
|
+
const animatedBackground = useAnimatedStyle(() => {
|
|
5537
|
+
const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5538
|
+
const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5539
|
+
return {
|
|
5540
|
+
backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5541
|
+
duration: 200
|
|
5542
|
+
})
|
|
5543
|
+
};
|
|
5544
|
+
}, [isHovered, theme]);
|
|
5545
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
5546
|
+
style: [styles, animatedBackground],
|
|
5547
|
+
children: /*#__PURE__*/jsx(View, {
|
|
5548
|
+
position: "relative",
|
|
5549
|
+
children: children
|
|
5550
|
+
})
|
|
5534
5551
|
});
|
|
5535
5552
|
}
|
|
5536
5553
|
|
|
@@ -5557,39 +5574,44 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5557
5574
|
base: 'body-m'
|
|
5558
5575
|
});
|
|
5559
5576
|
const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
|
|
5560
|
-
return /*#__PURE__*/
|
|
5561
|
-
children:
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5577
|
+
return /*#__PURE__*/jsx(Pressable, {
|
|
5578
|
+
children: ({
|
|
5579
|
+
isHovered
|
|
5580
|
+
}) => /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5581
|
+
isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
|
|
5582
|
+
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
5583
|
+
ref: ref,
|
|
5584
|
+
multiline: multiline,
|
|
5585
|
+
id: id,
|
|
5586
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5587
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5588
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5589
|
+
inputMode: inputMode,
|
|
5590
|
+
autoComplete: autoComplete,
|
|
5591
|
+
autoCorrect: autoCorrect,
|
|
5592
|
+
textContentType: textContentType,
|
|
5593
|
+
fontSize: fontSizeForNativeBase,
|
|
5594
|
+
lineHeight:
|
|
5595
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5596
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5597
|
+
shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
|
|
5598
|
+
fontWeight: "bodies.regular",
|
|
5599
|
+
fontFamily: "bodies.regular",
|
|
5600
|
+
py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
|
|
5601
|
+
variant: variant
|
|
5602
|
+
}, props), {}, {
|
|
5603
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5604
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5605
|
+
})), right ? /*#__PURE__*/jsx(View, {
|
|
5606
|
+
position: "absolute",
|
|
5607
|
+
right: 0,
|
|
5608
|
+
top: 0,
|
|
5609
|
+
bottom: 0,
|
|
5610
|
+
justifyContent: "center",
|
|
5611
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5612
|
+
children: right
|
|
5613
|
+
}) : null]
|
|
5614
|
+
})
|
|
5593
5615
|
});
|
|
5594
5616
|
});
|
|
5595
5617
|
|