@ornikar/kitt-universal 28.0.1 → 29.0.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 +23 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +4 -4
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +392 -1114
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +2 -1
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +20 -13
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +20 -13
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +22 -15
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +22 -15
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +22 -15
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +22 -15
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +110 -103
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +81 -74
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes.es.js +1 -1
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +1 -1
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +26 -26
package/dist/index.es.web.js
CHANGED
|
@@ -2624,7 +2624,7 @@ var breakpoints = {
|
|
|
2624
2624
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
2625
2625
|
var theme = {
|
|
2626
2626
|
spacing: spacing,
|
|
2627
|
-
getSpacing: function
|
|
2627
|
+
getSpacing: function (multiplier) {
|
|
2628
2628
|
return spacing * multiplier;
|
|
2629
2629
|
},
|
|
2630
2630
|
colors: colors,
|
|
@@ -2812,7 +2812,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
2812
2812
|
onPress: onPress,
|
|
2813
2813
|
onHoverIn: onHoverIn,
|
|
2814
2814
|
onHoverOut: onHoverOut,
|
|
2815
|
-
children: function
|
|
2815
|
+
children: function (_ref3) {
|
|
2816
2816
|
var isHovered = _ref3.isHovered,
|
|
2817
2817
|
isPressed = _ref3.isPressed,
|
|
2818
2818
|
isFocused = _ref3.isFocused;
|
|
@@ -3202,7 +3202,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
|
3202
3202
|
nativeFontFamily: nativeFontFamily
|
|
3203
3203
|
};
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
3206
3206
|
var _typographyType$base;
|
|
3207
3207
|
var accessibilityRole = _ref2.accessibilityRole,
|
|
3208
3208
|
legacyBase = _ref2.base,
|
|
@@ -3254,6 +3254,7 @@ function Typography(_ref2) {
|
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
3256
3256
|
var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
|
|
3257
|
+
ref: ref,
|
|
3257
3258
|
accessibilityRole: accessibilityRole || undefined,
|
|
3258
3259
|
fontSize: fontSizeForNativeBase,
|
|
3259
3260
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
@@ -3272,31 +3273,35 @@ function Typography(_ref2) {
|
|
|
3272
3273
|
value: color,
|
|
3273
3274
|
children: content
|
|
3274
3275
|
}) : content;
|
|
3275
|
-
}
|
|
3276
|
-
|
|
3277
|
-
return /*#__PURE__*/jsx(
|
|
3276
|
+
});
|
|
3277
|
+
var TypographyText = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3278
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
|
|
3279
|
+
ref: ref,
|
|
3278
3280
|
accessibilityRole: null
|
|
3279
3281
|
}, props));
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
|
+
});
|
|
3283
|
+
var TypographyParagraph = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3282
3284
|
// role 'paragraph' does not exist in native, it's a web feature only.
|
|
3283
|
-
return /*#__PURE__*/jsx(
|
|
3285
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
|
|
3286
|
+
ref: ref,
|
|
3284
3287
|
accessibilityRole: 'paragraph'
|
|
3285
3288
|
}, props));
|
|
3286
|
-
}
|
|
3289
|
+
});
|
|
3287
3290
|
var createHeading = function (level, defaultBase) {
|
|
3288
3291
|
// https://github.com/necolas/react-native-web/issues/401
|
|
3289
|
-
|
|
3290
|
-
return /*#__PURE__*/jsx(
|
|
3292
|
+
var TypographyHeading = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3293
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread(_objectSpread({
|
|
3294
|
+
ref: ref,
|
|
3291
3295
|
accessibilityRole: "header",
|
|
3292
3296
|
base: defaultBase
|
|
3293
3297
|
}, props), {}, {
|
|
3294
3298
|
"aria-level": level
|
|
3295
3299
|
}));
|
|
3296
|
-
}
|
|
3300
|
+
});
|
|
3297
3301
|
TypographyHeading.displayName = "TypographyHeading".concat(level);
|
|
3298
3302
|
return TypographyHeading;
|
|
3299
3303
|
};
|
|
3304
|
+
var Typography = TypographyBase;
|
|
3300
3305
|
Typography.SetDefaultColor = TypographyDefaultColorContext.Provider;
|
|
3301
3306
|
Typography.Text = TypographyText;
|
|
3302
3307
|
Typography.Paragraph = TypographyParagraph;
|
|
@@ -3643,7 +3648,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3643
3648
|
onHoverOut: onHoverOut,
|
|
3644
3649
|
onFocus: onFocus,
|
|
3645
3650
|
onBlur: onBlur,
|
|
3646
|
-
children: function
|
|
3651
|
+
children: function (_ref2) {
|
|
3647
3652
|
var isHovered = _ref2.isHovered,
|
|
3648
3653
|
isPressed = _ref2.isPressed,
|
|
3649
3654
|
isFocused = _ref2.isFocused;
|
|
@@ -3740,7 +3745,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3740
3745
|
stretch: stretch,
|
|
3741
3746
|
disabled: isLoading ? true : disabled,
|
|
3742
3747
|
icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
|
|
3743
|
-
onPress: function
|
|
3748
|
+
onPress: function (e) {
|
|
3744
3749
|
var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
|
|
3745
3750
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
3746
3751
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
@@ -4069,7 +4074,7 @@ function CloseButton$1(_ref) {
|
|
|
4069
4074
|
onPress = _ref.onPress;
|
|
4070
4075
|
var onCloseContextCallback = useOnCloseModalBehaviour();
|
|
4071
4076
|
return /*#__PURE__*/cloneElement(children, {
|
|
4072
|
-
onPress: function
|
|
4077
|
+
onPress: function () {
|
|
4073
4078
|
if (onPress) onPress();
|
|
4074
4079
|
onCloseContextCallback();
|
|
4075
4080
|
}
|
|
@@ -4219,7 +4224,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4219
4224
|
onClose: onClose,
|
|
4220
4225
|
children: /*#__PURE__*/jsx(CardModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4221
4226
|
visible: visible,
|
|
4222
|
-
onExited: function
|
|
4227
|
+
onExited: function () {
|
|
4223
4228
|
if (onExited) onExited();
|
|
4224
4229
|
setIsModalBehaviourVisible(false);
|
|
4225
4230
|
},
|
|
@@ -4513,8 +4518,8 @@ function AnimatedChoiceItemView(_ref) {
|
|
|
4513
4518
|
|
|
4514
4519
|
var useNativeAnimation$3 = function () {
|
|
4515
4520
|
return {
|
|
4516
|
-
onPressIn: function
|
|
4517
|
-
onPressOut: function
|
|
4521
|
+
onPressIn: function () {},
|
|
4522
|
+
onPressOut: function () {},
|
|
4518
4523
|
backgroundStyles: undefined
|
|
4519
4524
|
};
|
|
4520
4525
|
};
|
|
@@ -4571,7 +4576,7 @@ function ChoiceItem(_ref) {
|
|
|
4571
4576
|
style: style,
|
|
4572
4577
|
onBlur: onBlur,
|
|
4573
4578
|
onFocus: onFocus,
|
|
4574
|
-
onPress: function
|
|
4579
|
+
onPress: function (e) {
|
|
4575
4580
|
if (onFocus) onFocus(e);
|
|
4576
4581
|
if (onPress) onPress();
|
|
4577
4582
|
handleChange();
|
|
@@ -4579,7 +4584,7 @@ function ChoiceItem(_ref) {
|
|
|
4579
4584
|
},
|
|
4580
4585
|
onPressIn: onPressIn,
|
|
4581
4586
|
onPressOut: onPressOut,
|
|
4582
|
-
children: function
|
|
4587
|
+
children: function (_ref2) {
|
|
4583
4588
|
var isHovered = _ref2.isHovered,
|
|
4584
4589
|
isPressed = _ref2.isPressed;
|
|
4585
4590
|
var textColor = getCurrentTextColor$1({
|
|
@@ -4683,7 +4688,7 @@ function Choices(_ref2) {
|
|
|
4683
4688
|
type: type,
|
|
4684
4689
|
disabled: disabled,
|
|
4685
4690
|
onPress: !isForm ? onPress : undefined,
|
|
4686
|
-
onChange: isForm ? function
|
|
4691
|
+
onChange: isForm ? function (newValue) {
|
|
4687
4692
|
setCurrentValue(newValue);
|
|
4688
4693
|
if (onChange) onChange(newValue);
|
|
4689
4694
|
} : undefined,
|
|
@@ -4820,7 +4825,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
4820
4825
|
},
|
|
4821
4826
|
children: /*#__PURE__*/jsx(DialogModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4822
4827
|
visible: visible,
|
|
4823
|
-
onExited: function
|
|
4828
|
+
onExited: function () {
|
|
4824
4829
|
if (onExited) onExited();
|
|
4825
4830
|
setIsModalBehaviourVisible(false);
|
|
4826
4831
|
},
|
|
@@ -5267,7 +5272,7 @@ function isReactElement(element) {
|
|
|
5267
5272
|
return _typeof(element) === 'object' && element !== null && 'type' in element && 'props' in element;
|
|
5268
5273
|
}
|
|
5269
5274
|
function Autocomplete(_ref) {
|
|
5270
|
-
var
|
|
5275
|
+
var children = _ref.children,
|
|
5271
5276
|
name = _ref.name,
|
|
5272
5277
|
disabled = _ref.disabled,
|
|
5273
5278
|
placeholder = _ref.placeholder,
|
|
@@ -5294,7 +5299,7 @@ function Autocomplete(_ref) {
|
|
|
5294
5299
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5295
5300
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5296
5301
|
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
5297
|
-
var childrenArray = Children.toArray(
|
|
5302
|
+
var childrenArray = Children.toArray(children);
|
|
5298
5303
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5299
5304
|
return {
|
|
5300
5305
|
child: child,
|
|
@@ -5305,12 +5310,12 @@ function Autocomplete(_ref) {
|
|
|
5305
5310
|
defaultIsOpen: isInitialOpen,
|
|
5306
5311
|
initialSelectedItem: initialValue,
|
|
5307
5312
|
initialInputValue: initialValue ? itemToString(initialValue) : undefined,
|
|
5308
|
-
itemToString: function
|
|
5313
|
+
itemToString: function (item) {
|
|
5309
5314
|
// Prevents returning null values
|
|
5310
5315
|
if (!itemToString) return '';
|
|
5311
5316
|
return itemToString(item || undefined);
|
|
5312
5317
|
},
|
|
5313
|
-
stateReducer: function
|
|
5318
|
+
stateReducer: function (state, changes) {
|
|
5314
5319
|
switch (changes.type) {
|
|
5315
5320
|
case Downshift.stateChangeTypes.changeInput:
|
|
5316
5321
|
return _objectSpread(_objectSpread({}, changes), {}, {
|
|
@@ -5320,7 +5325,7 @@ function Autocomplete(_ref) {
|
|
|
5320
5325
|
return changes;
|
|
5321
5326
|
}
|
|
5322
5327
|
},
|
|
5323
|
-
onChange: function
|
|
5328
|
+
onChange: function (selectedItem, stateAndHelpers) {
|
|
5324
5329
|
if (_onChange) {
|
|
5325
5330
|
_onChange(selectedItem, stateAndHelpers);
|
|
5326
5331
|
}
|
|
@@ -5328,7 +5333,7 @@ function Autocomplete(_ref) {
|
|
|
5328
5333
|
onSelect: onSelectItem,
|
|
5329
5334
|
onOuterClick: onOuterPress,
|
|
5330
5335
|
onInputValueChange: onInputChange,
|
|
5331
|
-
children: function
|
|
5336
|
+
children: function (_ref2) {
|
|
5332
5337
|
var getRootProps = _ref2.getRootProps,
|
|
5333
5338
|
getInputProps = _ref2.getInputProps,
|
|
5334
5339
|
getMenuProps = _ref2.getMenuProps,
|
|
@@ -5380,20 +5385,20 @@ function Autocomplete(_ref) {
|
|
|
5380
5385
|
right: right || (canDisplayCollapseButton ? /*#__PURE__*/jsx(InputPressable, _objectSpread(_objectSpread({}, toggleProps), {}, {
|
|
5381
5386
|
testID: "kitt.Autocomplete.listToggle",
|
|
5382
5387
|
hitSlop: 40,
|
|
5383
|
-
onPress: function
|
|
5388
|
+
onPress: function (e) {
|
|
5384
5389
|
onClickToggle(e);
|
|
5385
5390
|
},
|
|
5386
5391
|
children: /*#__PURE__*/jsx(InputIcon, {
|
|
5387
5392
|
icon: isCurrentlyOpen ? /*#__PURE__*/jsx(CaretUpFillIcon, {}) : /*#__PURE__*/jsx(CaretDownFillIcon, {})
|
|
5388
5393
|
})
|
|
5389
5394
|
})) : null),
|
|
5390
|
-
onFocus: function
|
|
5395
|
+
onFocus: function (e) {
|
|
5391
5396
|
openMenu();
|
|
5392
5397
|
/** @ts-expect-error onFocus wants web events */
|
|
5393
5398
|
if (onSearchInputFocus) onSearchInputFocus(e);
|
|
5394
5399
|
if (_onFocus) _onFocus(e);
|
|
5395
5400
|
},
|
|
5396
|
-
onBlur: function
|
|
5401
|
+
onBlur: function (e) {
|
|
5397
5402
|
/** @ts-expect-error onBlur wants web events */
|
|
5398
5403
|
if (onSearchInputBlur) onSearchInputBlur(e);
|
|
5399
5404
|
|
|
@@ -5429,10 +5434,10 @@ function Autocomplete(_ref) {
|
|
|
5429
5434
|
selected: ariaSelected
|
|
5430
5435
|
},
|
|
5431
5436
|
disabled: disabled,
|
|
5432
|
-
onPress: function
|
|
5437
|
+
onPress: function (e) {
|
|
5433
5438
|
if (onClick) onClick(e);
|
|
5434
5439
|
},
|
|
5435
|
-
children: function
|
|
5440
|
+
children: function (_ref5) {
|
|
5436
5441
|
var isHovered = _ref5.isHovered,
|
|
5437
5442
|
isFocused = _ref5.isFocused,
|
|
5438
5443
|
isPressed = _ref5.isPressed;
|
|
@@ -5522,12 +5527,12 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5522
5527
|
disabled: disabled
|
|
5523
5528
|
},
|
|
5524
5529
|
disabled: disabled,
|
|
5525
|
-
onPress: function
|
|
5530
|
+
onPress: function (e) {
|
|
5526
5531
|
if (onFocus) onFocus();
|
|
5527
5532
|
if (onChange) onChange(!checked, e);
|
|
5528
5533
|
if (onBlur) onBlur();
|
|
5529
5534
|
},
|
|
5530
|
-
children: function
|
|
5535
|
+
children: function (_ref2) {
|
|
5531
5536
|
var isHovered = _ref2.isHovered,
|
|
5532
5537
|
isPressed = _ref2.isPressed,
|
|
5533
5538
|
isFocused = _ref2.isFocused;
|
|
@@ -6336,10 +6341,10 @@ var GoogleMapsAutocompleteContext = /*#__PURE__*/createContext({
|
|
|
6336
6341
|
isLoadingResultDetails: false,
|
|
6337
6342
|
shouldDisplayEmptyStateWhenNoResults: false
|
|
6338
6343
|
},
|
|
6339
|
-
onInputChange: function
|
|
6344
|
+
onInputChange: function () {
|
|
6340
6345
|
return Promise.resolve();
|
|
6341
6346
|
},
|
|
6342
|
-
onSelectItem: function
|
|
6347
|
+
onSelectItem: function () {}
|
|
6343
6348
|
});
|
|
6344
6349
|
function GoogleMapsAutocompleteProvider(_ref) {
|
|
6345
6350
|
var children = _ref.children,
|
|
@@ -6590,7 +6595,7 @@ function InputAddress(_ref) {
|
|
|
6590
6595
|
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
6591
6596
|
itemToString: itemToString,
|
|
6592
6597
|
initialValue: formattedInitialValue,
|
|
6593
|
-
checkSelectedItem: function
|
|
6598
|
+
checkSelectedItem: function (selectedItem, item) {
|
|
6594
6599
|
return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.place_id) === item.place_id;
|
|
6595
6600
|
},
|
|
6596
6601
|
right: state.isLoadingSearch || state.isLoadingResultDetails ? /*#__PURE__*/jsx(Icon, {
|
|
@@ -6599,10 +6604,10 @@ function InputAddress(_ref) {
|
|
|
6599
6604
|
}) : undefined,
|
|
6600
6605
|
errorElement: state.hasSearchError || state.hasSelectResultError ? errorElement : null,
|
|
6601
6606
|
emptyResultsElement: state.items.length === 0 ? emptyResultsElement : null,
|
|
6602
|
-
onInputChange: function
|
|
6607
|
+
onInputChange: function (v) {
|
|
6603
6608
|
_onInputChange(v);
|
|
6604
6609
|
},
|
|
6605
|
-
onChange: function
|
|
6610
|
+
onChange: function (v) {
|
|
6606
6611
|
onSelectItem(v, _onChange);
|
|
6607
6612
|
},
|
|
6608
6613
|
children: state.items.map(function (item) {
|
|
@@ -6684,7 +6689,7 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6684
6689
|
ref: ref
|
|
6685
6690
|
}, props), {}, {
|
|
6686
6691
|
inputMode: "numeric",
|
|
6687
|
-
onChange: function
|
|
6692
|
+
onChange: function (event) {
|
|
6688
6693
|
if (!onChange) return;
|
|
6689
6694
|
var value = parseFloat(event.nativeEvent.text);
|
|
6690
6695
|
|
|
@@ -6716,7 +6721,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6716
6721
|
testID: "kitt.InputPassword.passwordToggle",
|
|
6717
6722
|
hitSlop: 20,
|
|
6718
6723
|
accessibilityRole: "button",
|
|
6719
|
-
onPress: function
|
|
6724
|
+
onPress: function () {
|
|
6720
6725
|
return setIsVisible(function (prev) {
|
|
6721
6726
|
return !prev;
|
|
6722
6727
|
});
|
|
@@ -6751,7 +6756,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6751
6756
|
enterKeyHint: currentEnterKeyHint,
|
|
6752
6757
|
autoComplete: autoComplete,
|
|
6753
6758
|
textContentType: "telephoneNumber",
|
|
6754
|
-
onChange: function
|
|
6759
|
+
onChange: function (event) {
|
|
6755
6760
|
var number = parseNumber(event.nativeEvent.text);
|
|
6756
6761
|
|
|
6757
6762
|
// When intl phone number is valid :
|
|
@@ -6943,14 +6948,14 @@ function Radio(_ref, ref) {
|
|
|
6943
6948
|
focusable: checked && !disabled,
|
|
6944
6949
|
flexDirection: "row",
|
|
6945
6950
|
alignItems: "center",
|
|
6946
|
-
onPress: function
|
|
6951
|
+
onPress: function (event) {
|
|
6947
6952
|
if (onFocus) onFocus();
|
|
6948
6953
|
if (onChange) onChange(value, event);
|
|
6949
6954
|
if (onBlur) onBlur();
|
|
6950
6955
|
},
|
|
6951
6956
|
onFocus: onFocus,
|
|
6952
6957
|
onBlur: onBlur,
|
|
6953
|
-
children: function
|
|
6958
|
+
children: function (_ref2) {
|
|
6954
6959
|
var isHovered = _ref2.isHovered,
|
|
6955
6960
|
isPressed = _ref2.isPressed,
|
|
6956
6961
|
isFocused = _ref2.isFocused;
|
|
@@ -7126,7 +7131,7 @@ function RadioButton(_ref) {
|
|
|
7126
7131
|
flexShrink: createResponsiveStyleFromProp(stretch, 1, undefined),
|
|
7127
7132
|
flexBasis: createResponsiveStyleFromProp(stretch, 0),
|
|
7128
7133
|
disabled: disabled,
|
|
7129
|
-
onPress: function
|
|
7134
|
+
onPress: function (e) {
|
|
7130
7135
|
if (onFocus) onFocus(e);
|
|
7131
7136
|
if (onChange) onChange(value);
|
|
7132
7137
|
if (onBlur) onBlur(e);
|
|
@@ -7135,7 +7140,7 @@ function RadioButton(_ref) {
|
|
|
7135
7140
|
onPressOut: onPressOut,
|
|
7136
7141
|
onFocus: onFocus,
|
|
7137
7142
|
onBlur: onBlur,
|
|
7138
|
-
children: function
|
|
7143
|
+
children: function (_ref2) {
|
|
7139
7144
|
var isHovered = _ref2.isHovered,
|
|
7140
7145
|
isPressed = _ref2.isPressed,
|
|
7141
7146
|
isFocused = _ref2.isFocused;
|
|
@@ -7254,7 +7259,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7254
7259
|
textAlignVertical: "top",
|
|
7255
7260
|
minHeight: "kitt.forms.textArea.minHeight"
|
|
7256
7261
|
}, props), {}, {
|
|
7257
|
-
onChange: function
|
|
7262
|
+
onChange: function (e) {
|
|
7258
7263
|
if (!limit || e.nativeEvent.text.length <= limit) {
|
|
7259
7264
|
var _props$onChange;
|
|
7260
7265
|
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, e);
|
|
@@ -7417,10 +7422,10 @@ function Toggle(_ref) {
|
|
|
7417
7422
|
children: [/*#__PURE__*/jsx(Pressable, {
|
|
7418
7423
|
accessibilityRole: "togglebutton",
|
|
7419
7424
|
disabled: isDisabled,
|
|
7420
|
-
onPress: function
|
|
7425
|
+
onPress: function () {
|
|
7421
7426
|
onChange(!value);
|
|
7422
7427
|
},
|
|
7423
|
-
children: function
|
|
7428
|
+
children: function (_ref2) {
|
|
7424
7429
|
var isHovered = _ref2.isHovered,
|
|
7425
7430
|
isPressed = _ref2.isPressed,
|
|
7426
7431
|
isFocused = _ref2.isFocused;
|
|
@@ -7585,7 +7590,7 @@ function FullscreenModalBehaviour(_ref) {
|
|
|
7585
7590
|
onClose: onClose,
|
|
7586
7591
|
children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
7587
7592
|
visible: visible,
|
|
7588
|
-
onExited: function
|
|
7593
|
+
onExited: function () {
|
|
7589
7594
|
if (onExited) onExited();
|
|
7590
7595
|
setIsModalBehaviourVisible(false);
|
|
7591
7596
|
},
|
|
@@ -7837,13 +7842,13 @@ function Highlight(_ref) {
|
|
|
7837
7842
|
});
|
|
7838
7843
|
}
|
|
7839
7844
|
return /*#__PURE__*/jsx(Pressable, {
|
|
7840
|
-
onPress: function
|
|
7845
|
+
onPress: function () {
|
|
7841
7846
|
setIsExpanded(!isExpanded);
|
|
7842
7847
|
setIsInitialRender(false);
|
|
7843
7848
|
},
|
|
7844
7849
|
onPressIn: onPressIn,
|
|
7845
7850
|
onPressOut: onPressOut,
|
|
7846
|
-
children: function
|
|
7851
|
+
children: function (_ref2) {
|
|
7847
7852
|
var isHovered = _ref2.isHovered;
|
|
7848
7853
|
return /*#__PURE__*/jsxs(AnimatedContainer, {
|
|
7849
7854
|
isHovered: isHovered,
|
|
@@ -8264,7 +8269,7 @@ function MapMarker(_ref2) {
|
|
|
8264
8269
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
8265
8270
|
testID: testID,
|
|
8266
8271
|
onPress: onPress,
|
|
8267
|
-
children: function
|
|
8272
|
+
children: function (_ref3) {
|
|
8268
8273
|
var isHovered = _ref3.isHovered;
|
|
8269
8274
|
return /*#__PURE__*/jsx(StaticMapMarker$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
8270
8275
|
isHovered: isHovered
|
|
@@ -9680,6 +9685,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9680
9685
|
button: {
|
|
9681
9686
|
minWidth: theme.button.minWidth,
|
|
9682
9687
|
maxWidth: theme.button.maxWidth,
|
|
9688
|
+
maxHeight: theme.button.maxHeight,
|
|
9683
9689
|
height: {
|
|
9684
9690
|
"default": theme.button.height["default"],
|
|
9685
9691
|
medium: theme.button.height.medium
|
|
@@ -11005,19 +11011,19 @@ function NavigationModalBehaviour(_ref) {
|
|
|
11005
11011
|
children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
11006
11012
|
appear: shouldAppear,
|
|
11007
11013
|
visible: visible,
|
|
11008
|
-
onEnter: function
|
|
11014
|
+
onEnter: function () {
|
|
11009
11015
|
if (onEnter) onEnter();
|
|
11010
11016
|
|
|
11011
11017
|
// Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
|
|
11012
11018
|
setShouldAppear(false);
|
|
11013
11019
|
},
|
|
11014
|
-
onExit: function
|
|
11020
|
+
onExit: function () {
|
|
11015
11021
|
if (onExit) onExit();
|
|
11016
11022
|
|
|
11017
11023
|
// Reset appear value to its original value for future modal display
|
|
11018
11024
|
setShouldAppear(appear);
|
|
11019
11025
|
},
|
|
11020
|
-
onExited: function
|
|
11026
|
+
onExited: function () {
|
|
11021
11027
|
if (onExited) onExited();
|
|
11022
11028
|
setIsModalBehaviourVisible(false);
|
|
11023
11029
|
},
|
|
@@ -11277,18 +11283,18 @@ function Picker(_ref) {
|
|
|
11277
11283
|
items: items,
|
|
11278
11284
|
initialSelectedItem: initialValueIndex > -1 ? items[initialValueIndex] : undefined,
|
|
11279
11285
|
initialIsOpen: isInitialOpen,
|
|
11280
|
-
stateReducer: function
|
|
11286
|
+
stateReducer: function (state, actionAndChanges) {
|
|
11281
11287
|
return webUseSelectReducer(state, actionAndChanges, {
|
|
11282
11288
|
keepOpenOnChange: keepOpenOnChange
|
|
11283
11289
|
});
|
|
11284
11290
|
},
|
|
11285
11291
|
selectedItem: syncStateWithSourceValue ? sourceValue : undefined,
|
|
11286
|
-
onIsOpenChange: function
|
|
11292
|
+
onIsOpenChange: function (changes) {
|
|
11287
11293
|
if (changes.isOpen === false) {
|
|
11288
11294
|
if (onClose) onClose();
|
|
11289
11295
|
}
|
|
11290
11296
|
},
|
|
11291
|
-
onSelectedItemChange: function
|
|
11297
|
+
onSelectedItemChange: function (changes) {
|
|
11292
11298
|
if (!onChange) return;
|
|
11293
11299
|
if (changes.selectedItem === null) {
|
|
11294
11300
|
onChange(undefined);
|
|
@@ -11508,7 +11514,7 @@ function Skeleton(_ref) {
|
|
|
11508
11514
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
11509
11515
|
overflow: "hidden",
|
|
11510
11516
|
style: style,
|
|
11511
|
-
onLayout: function
|
|
11517
|
+
onLayout: function (_ref2) {
|
|
11512
11518
|
var nativeEvent = _ref2.nativeEvent;
|
|
11513
11519
|
return setWidth(nativeEvent.layout.width);
|
|
11514
11520
|
},
|
|
@@ -11734,7 +11740,7 @@ function StaticMap(_ref) {
|
|
|
11734
11740
|
position: "relative",
|
|
11735
11741
|
maxWidth: mapBoxMaxPictureWidth,
|
|
11736
11742
|
height: height,
|
|
11737
|
-
onLayout: function
|
|
11743
|
+
onLayout: function (event) {
|
|
11738
11744
|
var nativeEvent = event.nativeEvent;
|
|
11739
11745
|
var rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
|
|
11740
11746
|
setCurrentWidth(rangedMapWidth);
|
|
@@ -11746,11 +11752,11 @@ function StaticMap(_ref) {
|
|
|
11746
11752
|
width: currentWidth,
|
|
11747
11753
|
height: height,
|
|
11748
11754
|
alt: alt,
|
|
11749
|
-
onLoadEnd: function
|
|
11755
|
+
onLoadEnd: function () {
|
|
11750
11756
|
setIsLoading(false);
|
|
11751
11757
|
if (onLoaded) onLoaded();
|
|
11752
11758
|
},
|
|
11753
|
-
onError: function
|
|
11759
|
+
onError: function () {
|
|
11754
11760
|
setHasError(true);
|
|
11755
11761
|
if (onError) onError();
|
|
11756
11762
|
}
|
|
@@ -11775,7 +11781,7 @@ function StaticMap(_ref) {
|
|
|
11775
11781
|
width: "100%",
|
|
11776
11782
|
height: "100%",
|
|
11777
11783
|
children: /*#__PURE__*/jsx(StaticMapError, {
|
|
11778
|
-
onReload: function
|
|
11784
|
+
onReload: function () {
|
|
11779
11785
|
setHasError(false);
|
|
11780
11786
|
setIsLoading(true);
|
|
11781
11787
|
setCurrentMapKey(function (prev) {
|
|
@@ -12017,7 +12023,7 @@ function StoryContainer(_ref) {
|
|
|
12017
12023
|
var StoryDecorator = makeDecorator({
|
|
12018
12024
|
name: 'StoryDecorator',
|
|
12019
12025
|
parameterName: 'storyDecorator',
|
|
12020
|
-
wrapper: function
|
|
12026
|
+
wrapper: function (storyFn, context) {
|
|
12021
12027
|
var story = storyFn(context);
|
|
12022
12028
|
if (context.parameters.disableStoryContainer) {
|
|
12023
12029
|
return story;
|
|
@@ -12121,7 +12127,7 @@ function TabBarItem(_ref) {
|
|
|
12121
12127
|
disabled: disabled,
|
|
12122
12128
|
testID: testID,
|
|
12123
12129
|
onPress: onPress,
|
|
12124
|
-
children: function
|
|
12130
|
+
children: function (_ref2) {
|
|
12125
12131
|
var isHovered = _ref2.isHovered,
|
|
12126
12132
|
isPressed = _ref2.isPressed,
|
|
12127
12133
|
isFocused = _ref2.isFocused;
|
|
@@ -12210,7 +12216,7 @@ function TabBar(_ref) {
|
|
|
12210
12216
|
color: color,
|
|
12211
12217
|
variant: definedVariant,
|
|
12212
12218
|
type: type,
|
|
12213
|
-
onPress: function
|
|
12219
|
+
onPress: function (event) {
|
|
12214
12220
|
var _child$props$onPress, _child$props;
|
|
12215
12221
|
onChangeTab({
|
|
12216
12222
|
tab: tab,
|
|
@@ -12389,7 +12395,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12389
12395
|
isFocusedInternal: isFocusedInternal,
|
|
12390
12396
|
isPressedInternal: isPressedInternal
|
|
12391
12397
|
}),
|
|
12392
|
-
onChange: function
|
|
12398
|
+
onChange: function (event) {
|
|
12393
12399
|
var currentValue = event.nativeEvent.text;
|
|
12394
12400
|
if (currentValue.length === 0) {
|
|
12395
12401
|
setInputValue(currentValue);
|
|
@@ -12440,7 +12446,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12440
12446
|
setInputValue(sanitizedValue);
|
|
12441
12447
|
handleChange(sanitizedValue);
|
|
12442
12448
|
},
|
|
12443
|
-
onBlur: function
|
|
12449
|
+
onBlur: function () {
|
|
12444
12450
|
if (inputValue.indexOf(':') === 1) {
|
|
12445
12451
|
setInputValue("0".concat(inputValue));
|
|
12446
12452
|
}
|
|
@@ -12938,7 +12944,7 @@ function TypographyLinkWebWrapper(_ref) {
|
|
|
12938
12944
|
}
|
|
12939
12945
|
|
|
12940
12946
|
var _excluded$3 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
12941
|
-
|
|
12947
|
+
var TypographyLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
12942
12948
|
var children = _ref.children,
|
|
12943
12949
|
disabled = _ref.disabled,
|
|
12944
12950
|
noUnderline = _ref.noUnderline,
|
|
@@ -12949,6 +12955,7 @@ function TypographyLink(_ref) {
|
|
|
12949
12955
|
return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
|
|
12950
12956
|
hasNoUnderline: noUnderline,
|
|
12951
12957
|
children: /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
|
|
12958
|
+
ref: ref,
|
|
12952
12959
|
underline: !noUnderline,
|
|
12953
12960
|
color: disabled ? 'black-disabled' : undefined,
|
|
12954
12961
|
href: href,
|
|
@@ -12978,7 +12985,7 @@ function TypographyLink(_ref) {
|
|
|
12978
12985
|
children: children
|
|
12979
12986
|
}))
|
|
12980
12987
|
});
|
|
12981
|
-
}
|
|
12988
|
+
});
|
|
12982
12989
|
|
|
12983
12990
|
function KittThemeProvider(_ref) {
|
|
12984
12991
|
var isSSR = _ref.isSSR,
|
|
@@ -12995,7 +13002,7 @@ function KittThemeProvider(_ref) {
|
|
|
12995
13002
|
var KittThemeDecorator = makeDecorator({
|
|
12996
13003
|
name: 'ThemeDecorator',
|
|
12997
13004
|
parameterName: 'theme',
|
|
12998
|
-
wrapper: function
|
|
13005
|
+
wrapper: function (storyFn, context, _ref2) {
|
|
12999
13006
|
var _parameters$isSSR;
|
|
13000
13007
|
var _ref2$options = _ref2.options,
|
|
13001
13008
|
options = _ref2$options === void 0 ? {} : _ref2$options,
|