@ornikar/kitt-universal 7.0.2 → 7.1.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/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +12 -5
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +12 -5
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +12 -5
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +11 -4
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +8 -3
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +8 -3
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { UserIcon, CheckboxMark, XIcon, EyeOffIcon, EyeIcon, ArcIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
4
4
|
export * from '@ornikar/kitt-icons';
|
|
5
|
-
import { useWindowDimensions,
|
|
5
|
+
import { useWindowDimensions, Platform, Image, Linking, Pressable, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1, TextInput, View, Animated as Animated$1, Easing, ActivityIndicator } from 'react-native';
|
|
6
6
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
7
7
|
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
8
|
import { cloneElement, useContext, createContext, forwardRef, useMemo, useState, useRef, useEffect, Fragment as Fragment$1, Children } from 'react';
|
|
@@ -220,8 +220,9 @@ function TypographyText(props) {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
function TypographyParagraph(props) {
|
|
223
|
+
// role 'paragraph' does not exist in native, it's a web feature only.
|
|
223
224
|
return /*#__PURE__*/jsx(Typography, _objectSpread({
|
|
224
|
-
accessibilityRole:
|
|
225
|
+
accessibilityRole: Platform.OS === 'web' ? 'paragraph' : null
|
|
225
226
|
}, props));
|
|
226
227
|
}
|
|
227
228
|
|
|
@@ -315,7 +316,7 @@ function AvatarContent(_ref5) {
|
|
|
315
316
|
|
|
316
317
|
if (firstname && lastname) {
|
|
317
318
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
318
|
-
base: sizeVariant === 'large' ? 'body-large' : 'body',
|
|
319
|
+
base: sizeVariant === 'large' ? 'body-large' : 'body-small',
|
|
319
320
|
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
320
321
|
color: isLight ? 'black' : 'white',
|
|
321
322
|
children: getInitials(firstname, lastname)
|
|
@@ -2326,7 +2327,7 @@ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
|
|
|
2326
2327
|
displayName: "InputTextContainer"
|
|
2327
2328
|
})(["position:relative;"]);
|
|
2328
2329
|
|
|
2329
|
-
var _excluded$7 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
2330
|
+
var _excluded$7 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
|
|
2330
2331
|
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
2331
2332
|
displayName: "InputText__StyledTextInput"
|
|
2332
2333
|
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
@@ -2368,6 +2369,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
2368
2369
|
autoCompleteType = _ref4$autoCompleteTyp === void 0 ? 'off' : _ref4$autoCompleteTyp,
|
|
2369
2370
|
_ref4$keyboardType = _ref4.keyboardType,
|
|
2370
2371
|
keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
|
|
2372
|
+
multiline = _ref4.multiline,
|
|
2373
|
+
onSubmitEditing = _ref4.onSubmitEditing,
|
|
2371
2374
|
_onFocus = _ref4.onFocus,
|
|
2372
2375
|
_onBlur = _ref4.onBlur,
|
|
2373
2376
|
props = _objectWithoutProperties(_ref4, _excluded$7);
|
|
@@ -2388,6 +2391,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
2388
2391
|
$isDisabled: disabled,
|
|
2389
2392
|
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread(_objectSpread({
|
|
2390
2393
|
ref: ref,
|
|
2394
|
+
multiline: multiline,
|
|
2391
2395
|
nativeID: id,
|
|
2392
2396
|
editable: !disabled,
|
|
2393
2397
|
keyboardType: keyboardType,
|
|
@@ -2406,7 +2410,10 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
2406
2410
|
onBlur: function onBlur(e) {
|
|
2407
2411
|
setIsFocused(false);
|
|
2408
2412
|
if (_onBlur) _onBlur(e);
|
|
2409
|
-
}
|
|
2413
|
+
},
|
|
2414
|
+
onSubmitEditing: multiline ? function () {
|
|
2415
|
+
return null;
|
|
2416
|
+
} : onSubmitEditing
|
|
2410
2417
|
})), right ? /*#__PURE__*/jsx(RightInputContainer, {
|
|
2411
2418
|
children: right
|
|
2412
2419
|
}) : null]
|