@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;
|
|
@@ -5398,10 +5398,11 @@ function InputPressable({
|
|
|
5398
5398
|
});
|
|
5399
5399
|
}
|
|
5400
5400
|
|
|
5401
|
-
const
|
|
5401
|
+
const styles$3 = {"inputTextContainer":"InputTextContainer-module_inputTextContainer__gzH8Q"};
|
|
5402
|
+
|
|
5402
5403
|
function InputTextContainer(props) {
|
|
5403
5404
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
5404
|
-
className: inputTextContainer,
|
|
5405
|
+
className: styles$3.inputTextContainer,
|
|
5405
5406
|
...props
|
|
5406
5407
|
});
|
|
5407
5408
|
}
|
|
@@ -6314,10 +6315,11 @@ const DatePicker = /*#__PURE__*/react.forwardRef(({
|
|
|
6314
6315
|
});
|
|
6315
6316
|
|
|
6316
6317
|
function DocumentPicker({
|
|
6317
|
-
onDocumentUpload,
|
|
6318
6318
|
children,
|
|
6319
6319
|
disabled,
|
|
6320
|
-
documentPickerOptions
|
|
6320
|
+
documentPickerOptions,
|
|
6321
|
+
onDocumentUpload,
|
|
6322
|
+
onGetDocumentAsyncError
|
|
6321
6323
|
}) {
|
|
6322
6324
|
const childElement = react.Children.only(children);
|
|
6323
6325
|
return /*#__PURE__*/react.cloneElement(childElement, {
|
|
@@ -6326,12 +6328,22 @@ function DocumentPicker({
|
|
|
6326
6328
|
onPress: async () => {
|
|
6327
6329
|
if (disabled) return;
|
|
6328
6330
|
childElement.props.onPress?.();
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6331
|
+
let result;
|
|
6332
|
+
try {
|
|
6333
|
+
result = await expoDocumentPicker.getDocumentAsync({
|
|
6334
|
+
...documentPickerOptions,
|
|
6335
|
+
multiple: false
|
|
6336
|
+
});
|
|
6337
|
+
} catch (error) {
|
|
6338
|
+
onGetDocumentAsyncError?.();
|
|
6339
|
+
result = {
|
|
6340
|
+
canceled: true,
|
|
6341
|
+
assets: null
|
|
6342
|
+
};
|
|
6343
|
+
}
|
|
6344
|
+
const file = result.assets?.at(0)?.file;
|
|
6345
|
+
if (!result.canceled && file) {
|
|
6346
|
+
onDocumentUpload(file);
|
|
6335
6347
|
}
|
|
6336
6348
|
},
|
|
6337
6349
|
disabled
|
|
@@ -6984,6 +6996,9 @@ const InputPassword = /*#__PURE__*/react.forwardRef(({
|
|
|
6984
6996
|
right: right || /*#__PURE__*/jsxRuntime.jsx(InputPressable, {
|
|
6985
6997
|
testID: "kitt.InputPassword.passwordToggle",
|
|
6986
6998
|
hitSlop: 20,
|
|
6999
|
+
style: {
|
|
7000
|
+
top: 15
|
|
7001
|
+
},
|
|
6987
7002
|
accessibilityRole: "button",
|
|
6988
7003
|
onPress: () => setIsVisible(prev => !prev),
|
|
6989
7004
|
children: /*#__PURE__*/jsxRuntime.jsx(InputIcon, {
|
|
@@ -7528,6 +7543,7 @@ const TextArea = /*#__PURE__*/react.forwardRef(({
|
|
|
7528
7543
|
multiline: true,
|
|
7529
7544
|
textAlignVertical: "top",
|
|
7530
7545
|
minHeight: "kitt.forms.textArea.minHeight",
|
|
7546
|
+
height: "100%",
|
|
7531
7547
|
...props,
|
|
7532
7548
|
onChange: e => {
|
|
7533
7549
|
if (!limit || e.nativeEvent.text.length <= limit) {
|