@ornikar/kitt-universal 32.5.1 → 32.5.3-canary.00bf1c2f290a49f97769efc35573c95654f3a672.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 +28 -0
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts +3 -2
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts.map +1 -1
- package/dist/definitions/forms/InputPassword/InputPassword.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +24 -9
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +24 -9
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +23 -8
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +5 -1
- package/dist/index-node-22.17.cjs.web.js +26 -10
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +23 -8
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +5 -1
- package/dist/index-node-22.17.es.web.mjs +26 -10
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +30 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +33 -14
- package/dist/index.es.web.js.map +1 -1
- package/dist/styles.css +5 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,11 @@
|
|
|
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
|
-
.
|
|
9
|
+
.InputTextContainer-module_inputTextContainer__gzH8Q > * {
|
|
10
|
+
transition: 200ms ease-in-out;
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
/* Overlay animation styles - uses CSS variables for theme values */
|
|
11
15
|
.FullscreenModalAnimation-module_overlay-enter__L1J1X {
|
|
12
16
|
opacity: 0;
|
|
@@ -5389,10 +5389,11 @@ function InputPressable({
|
|
|
5389
5389
|
});
|
|
5390
5390
|
}
|
|
5391
5391
|
|
|
5392
|
-
const
|
|
5392
|
+
const styles$3 = {"inputTextContainer":"InputTextContainer-module_inputTextContainer__gzH8Q"};
|
|
5393
|
+
|
|
5393
5394
|
function InputTextContainer(props) {
|
|
5394
5395
|
return /*#__PURE__*/jsx("div", {
|
|
5395
|
-
className: inputTextContainer,
|
|
5396
|
+
className: styles$3.inputTextContainer,
|
|
5396
5397
|
...props
|
|
5397
5398
|
});
|
|
5398
5399
|
}
|
|
@@ -6305,10 +6306,11 @@ const DatePicker = /*#__PURE__*/forwardRef(({
|
|
|
6305
6306
|
});
|
|
6306
6307
|
|
|
6307
6308
|
function DocumentPicker({
|
|
6308
|
-
onDocumentUpload,
|
|
6309
6309
|
children,
|
|
6310
6310
|
disabled,
|
|
6311
|
-
documentPickerOptions
|
|
6311
|
+
documentPickerOptions,
|
|
6312
|
+
onDocumentUpload,
|
|
6313
|
+
onGetDocumentAsyncError
|
|
6312
6314
|
}) {
|
|
6313
6315
|
const childElement = Children.only(children);
|
|
6314
6316
|
return /*#__PURE__*/cloneElement(childElement, {
|
|
@@ -6317,12 +6319,22 @@ function DocumentPicker({
|
|
|
6317
6319
|
onPress: async () => {
|
|
6318
6320
|
if (disabled) return;
|
|
6319
6321
|
childElement.props.onPress?.();
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6322
|
+
let result;
|
|
6323
|
+
try {
|
|
6324
|
+
result = await getDocumentAsync({
|
|
6325
|
+
...documentPickerOptions,
|
|
6326
|
+
multiple: false
|
|
6327
|
+
});
|
|
6328
|
+
} catch (error) {
|
|
6329
|
+
onGetDocumentAsyncError?.();
|
|
6330
|
+
result = {
|
|
6331
|
+
canceled: true,
|
|
6332
|
+
assets: null
|
|
6333
|
+
};
|
|
6334
|
+
}
|
|
6335
|
+
const file = result.assets?.at(0)?.file;
|
|
6336
|
+
if (!result.canceled && file) {
|
|
6337
|
+
onDocumentUpload(file);
|
|
6326
6338
|
}
|
|
6327
6339
|
},
|
|
6328
6340
|
disabled
|
|
@@ -6975,6 +6987,9 @@ const InputPassword = /*#__PURE__*/forwardRef(({
|
|
|
6975
6987
|
right: right || /*#__PURE__*/jsx(InputPressable, {
|
|
6976
6988
|
testID: "kitt.InputPassword.passwordToggle",
|
|
6977
6989
|
hitSlop: 20,
|
|
6990
|
+
style: {
|
|
6991
|
+
top: 15
|
|
6992
|
+
},
|
|
6978
6993
|
accessibilityRole: "button",
|
|
6979
6994
|
onPress: () => setIsVisible(prev => !prev),
|
|
6980
6995
|
children: /*#__PURE__*/jsx(InputIcon, {
|
|
@@ -7519,6 +7534,7 @@ const TextArea = /*#__PURE__*/forwardRef(({
|
|
|
7519
7534
|
multiline: true,
|
|
7520
7535
|
textAlignVertical: "top",
|
|
7521
7536
|
minHeight: "kitt.forms.textArea.minHeight",
|
|
7537
|
+
height: "100%",
|
|
7522
7538
|
...props,
|
|
7523
7539
|
onChange: e => {
|
|
7524
7540
|
if (!limit || e.nativeEvent.text.length <= limit) {
|