@ornikar/kitt-universal 27.9.0 → 27.9.1-canary.e79ce5a70db58d281f30a0e111ad7cf70d64cdb1.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 +24 -0
- package/dist/definitions/typography/Typography.d.ts +18 -6
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index.es.js +90 -90
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +61 -61
- 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 +28 -28
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;
|
|
@@ -3643,7 +3643,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3643
3643
|
onHoverOut: onHoverOut,
|
|
3644
3644
|
onFocus: onFocus,
|
|
3645
3645
|
onBlur: onBlur,
|
|
3646
|
-
children: function
|
|
3646
|
+
children: function (_ref2) {
|
|
3647
3647
|
var isHovered = _ref2.isHovered,
|
|
3648
3648
|
isPressed = _ref2.isPressed,
|
|
3649
3649
|
isFocused = _ref2.isFocused;
|
|
@@ -3740,7 +3740,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3740
3740
|
stretch: stretch,
|
|
3741
3741
|
disabled: isLoading ? true : disabled,
|
|
3742
3742
|
icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
|
|
3743
|
-
onPress: function
|
|
3743
|
+
onPress: function (e) {
|
|
3744
3744
|
var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
|
|
3745
3745
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
3746
3746
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
@@ -4069,7 +4069,7 @@ function CloseButton$1(_ref) {
|
|
|
4069
4069
|
onPress = _ref.onPress;
|
|
4070
4070
|
var onCloseContextCallback = useOnCloseModalBehaviour();
|
|
4071
4071
|
return /*#__PURE__*/cloneElement(children, {
|
|
4072
|
-
onPress: function
|
|
4072
|
+
onPress: function () {
|
|
4073
4073
|
if (onPress) onPress();
|
|
4074
4074
|
onCloseContextCallback();
|
|
4075
4075
|
}
|
|
@@ -4219,7 +4219,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4219
4219
|
onClose: onClose,
|
|
4220
4220
|
children: /*#__PURE__*/jsx(CardModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4221
4221
|
visible: visible,
|
|
4222
|
-
onExited: function
|
|
4222
|
+
onExited: function () {
|
|
4223
4223
|
if (onExited) onExited();
|
|
4224
4224
|
setIsModalBehaviourVisible(false);
|
|
4225
4225
|
},
|
|
@@ -4427,8 +4427,8 @@ function AnimatedChoiceItemView(_ref) {
|
|
|
4427
4427
|
|
|
4428
4428
|
var useNativeAnimation$3 = function () {
|
|
4429
4429
|
return {
|
|
4430
|
-
onPressIn: function
|
|
4431
|
-
onPressOut: function
|
|
4430
|
+
onPressIn: function () {},
|
|
4431
|
+
onPressOut: function () {},
|
|
4432
4432
|
backgroundStyles: undefined
|
|
4433
4433
|
};
|
|
4434
4434
|
};
|
|
@@ -4485,7 +4485,7 @@ function ChoiceItem(_ref) {
|
|
|
4485
4485
|
style: style,
|
|
4486
4486
|
onBlur: onBlur,
|
|
4487
4487
|
onFocus: onFocus,
|
|
4488
|
-
onPress: function
|
|
4488
|
+
onPress: function (e) {
|
|
4489
4489
|
if (onFocus) onFocus(e);
|
|
4490
4490
|
if (onPress) onPress();
|
|
4491
4491
|
handleChange();
|
|
@@ -4493,7 +4493,7 @@ function ChoiceItem(_ref) {
|
|
|
4493
4493
|
},
|
|
4494
4494
|
onPressIn: onPressIn,
|
|
4495
4495
|
onPressOut: onPressOut,
|
|
4496
|
-
children: function
|
|
4496
|
+
children: function (_ref2) {
|
|
4497
4497
|
var isHovered = _ref2.isHovered,
|
|
4498
4498
|
isPressed = _ref2.isPressed;
|
|
4499
4499
|
var textColor = getCurrentTextColor$1({
|
|
@@ -4597,7 +4597,7 @@ function Choices(_ref2) {
|
|
|
4597
4597
|
type: type,
|
|
4598
4598
|
disabled: disabled,
|
|
4599
4599
|
onPress: !isForm ? onPress : undefined,
|
|
4600
|
-
onChange: isForm ? function
|
|
4600
|
+
onChange: isForm ? function (newValue) {
|
|
4601
4601
|
setCurrentValue(newValue);
|
|
4602
4602
|
if (onChange) onChange(newValue);
|
|
4603
4603
|
} : undefined,
|
|
@@ -4734,7 +4734,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
4734
4734
|
},
|
|
4735
4735
|
children: /*#__PURE__*/jsx(DialogModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4736
4736
|
visible: visible,
|
|
4737
|
-
onExited: function
|
|
4737
|
+
onExited: function () {
|
|
4738
4738
|
if (onExited) onExited();
|
|
4739
4739
|
setIsModalBehaviourVisible(false);
|
|
4740
4740
|
},
|
|
@@ -5181,7 +5181,7 @@ function isReactElement(element) {
|
|
|
5181
5181
|
return _typeof(element) === 'object' && element !== null && 'type' in element && 'props' in element;
|
|
5182
5182
|
}
|
|
5183
5183
|
function Autocomplete(_ref) {
|
|
5184
|
-
var
|
|
5184
|
+
var children = _ref.children,
|
|
5185
5185
|
name = _ref.name,
|
|
5186
5186
|
disabled = _ref.disabled,
|
|
5187
5187
|
placeholder = _ref.placeholder,
|
|
@@ -5208,7 +5208,7 @@ function Autocomplete(_ref) {
|
|
|
5208
5208
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5209
5209
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5210
5210
|
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5211
|
-
var childrenArray = Children.toArray(
|
|
5211
|
+
var childrenArray = Children.toArray(children);
|
|
5212
5212
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5213
5213
|
return {
|
|
5214
5214
|
child: child,
|
|
@@ -5219,12 +5219,12 @@ function Autocomplete(_ref) {
|
|
|
5219
5219
|
defaultIsOpen: isInitialOpen,
|
|
5220
5220
|
initialSelectedItem: initialValue,
|
|
5221
5221
|
initialInputValue: initialValue ? itemToString(initialValue) : undefined,
|
|
5222
|
-
itemToString: function
|
|
5222
|
+
itemToString: function (item) {
|
|
5223
5223
|
// Prevents returning null values
|
|
5224
5224
|
if (!itemToString) return '';
|
|
5225
5225
|
return itemToString(item || undefined);
|
|
5226
5226
|
},
|
|
5227
|
-
stateReducer: function
|
|
5227
|
+
stateReducer: function (state, changes) {
|
|
5228
5228
|
switch (changes.type) {
|
|
5229
5229
|
case Downshift.stateChangeTypes.changeInput:
|
|
5230
5230
|
return _objectSpread(_objectSpread({}, changes), {}, {
|
|
@@ -5234,7 +5234,7 @@ function Autocomplete(_ref) {
|
|
|
5234
5234
|
return changes;
|
|
5235
5235
|
}
|
|
5236
5236
|
},
|
|
5237
|
-
onChange: function
|
|
5237
|
+
onChange: function (selectedItem, stateAndHelpers) {
|
|
5238
5238
|
if (_onChange) {
|
|
5239
5239
|
_onChange(selectedItem, stateAndHelpers);
|
|
5240
5240
|
}
|
|
@@ -5242,7 +5242,7 @@ function Autocomplete(_ref) {
|
|
|
5242
5242
|
onSelect: onSelectItem,
|
|
5243
5243
|
onOuterClick: onOuterPress,
|
|
5244
5244
|
onInputValueChange: onInputChange,
|
|
5245
|
-
children: function
|
|
5245
|
+
children: function (_ref2) {
|
|
5246
5246
|
var getRootProps = _ref2.getRootProps,
|
|
5247
5247
|
getInputProps = _ref2.getInputProps,
|
|
5248
5248
|
getMenuProps = _ref2.getMenuProps,
|
|
@@ -5294,20 +5294,20 @@ function Autocomplete(_ref) {
|
|
|
5294
5294
|
right: right || (canDisplayCollapseButton ? /*#__PURE__*/jsx(InputPressable, _objectSpread(_objectSpread({}, toggleProps), {}, {
|
|
5295
5295
|
testID: "kitt.Autocomplete.listToggle",
|
|
5296
5296
|
hitSlop: 40,
|
|
5297
|
-
onPress: function
|
|
5297
|
+
onPress: function (e) {
|
|
5298
5298
|
onClickToggle(e);
|
|
5299
5299
|
},
|
|
5300
5300
|
children: /*#__PURE__*/jsx(InputIcon, {
|
|
5301
5301
|
icon: isCurrentlyOpen ? /*#__PURE__*/jsx(CaretUpFillIcon, {}) : /*#__PURE__*/jsx(CaretDownFillIcon, {})
|
|
5302
5302
|
})
|
|
5303
5303
|
})) : null),
|
|
5304
|
-
onFocus: function
|
|
5304
|
+
onFocus: function (e) {
|
|
5305
5305
|
openMenu();
|
|
5306
5306
|
/** @ts-expect-error onFocus wants web events */
|
|
5307
5307
|
if (onSearchInputFocus) onSearchInputFocus(e);
|
|
5308
5308
|
if (_onFocus) _onFocus(e);
|
|
5309
5309
|
},
|
|
5310
|
-
onBlur: function
|
|
5310
|
+
onBlur: function (e) {
|
|
5311
5311
|
/** @ts-expect-error onBlur wants web events */
|
|
5312
5312
|
if (onSearchInputBlur) onSearchInputBlur(e);
|
|
5313
5313
|
|
|
@@ -5343,10 +5343,10 @@ function Autocomplete(_ref) {
|
|
|
5343
5343
|
selected: ariaSelected
|
|
5344
5344
|
},
|
|
5345
5345
|
disabled: disabled,
|
|
5346
|
-
onPress: function
|
|
5346
|
+
onPress: function (e) {
|
|
5347
5347
|
if (onClick) onClick(e);
|
|
5348
5348
|
},
|
|
5349
|
-
children: function
|
|
5349
|
+
children: function (_ref5) {
|
|
5350
5350
|
var isHovered = _ref5.isHovered,
|
|
5351
5351
|
isFocused = _ref5.isFocused,
|
|
5352
5352
|
isPressed = _ref5.isPressed;
|
|
@@ -5436,12 +5436,12 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5436
5436
|
disabled: disabled
|
|
5437
5437
|
},
|
|
5438
5438
|
disabled: disabled,
|
|
5439
|
-
onPress: function
|
|
5439
|
+
onPress: function (e) {
|
|
5440
5440
|
if (onFocus) onFocus();
|
|
5441
5441
|
if (onChange) onChange(!checked, e);
|
|
5442
5442
|
if (onBlur) onBlur();
|
|
5443
5443
|
},
|
|
5444
|
-
children: function
|
|
5444
|
+
children: function (_ref2) {
|
|
5445
5445
|
var isHovered = _ref2.isHovered,
|
|
5446
5446
|
isPressed = _ref2.isPressed,
|
|
5447
5447
|
isFocused = _ref2.isFocused;
|
|
@@ -6250,10 +6250,10 @@ var GoogleMapsAutocompleteContext = /*#__PURE__*/createContext({
|
|
|
6250
6250
|
isLoadingResultDetails: false,
|
|
6251
6251
|
shouldDisplayEmptyStateWhenNoResults: false
|
|
6252
6252
|
},
|
|
6253
|
-
onInputChange: function
|
|
6253
|
+
onInputChange: function () {
|
|
6254
6254
|
return Promise.resolve();
|
|
6255
6255
|
},
|
|
6256
|
-
onSelectItem: function
|
|
6256
|
+
onSelectItem: function () {}
|
|
6257
6257
|
});
|
|
6258
6258
|
function GoogleMapsAutocompleteProvider(_ref) {
|
|
6259
6259
|
var children = _ref.children,
|
|
@@ -6504,7 +6504,7 @@ function InputAddress(_ref) {
|
|
|
6504
6504
|
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
6505
6505
|
itemToString: itemToString,
|
|
6506
6506
|
initialValue: formattedInitialValue,
|
|
6507
|
-
checkSelectedItem: function
|
|
6507
|
+
checkSelectedItem: function (selectedItem, item) {
|
|
6508
6508
|
return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.place_id) === item.place_id;
|
|
6509
6509
|
},
|
|
6510
6510
|
right: state.isLoadingSearch || state.isLoadingResultDetails ? /*#__PURE__*/jsx(Icon, {
|
|
@@ -6513,10 +6513,10 @@ function InputAddress(_ref) {
|
|
|
6513
6513
|
}) : undefined,
|
|
6514
6514
|
errorElement: state.hasSearchError || state.hasSelectResultError ? errorElement : null,
|
|
6515
6515
|
emptyResultsElement: state.items.length === 0 ? emptyResultsElement : null,
|
|
6516
|
-
onInputChange: function
|
|
6516
|
+
onInputChange: function (v) {
|
|
6517
6517
|
_onInputChange(v);
|
|
6518
6518
|
},
|
|
6519
|
-
onChange: function
|
|
6519
|
+
onChange: function (v) {
|
|
6520
6520
|
onSelectItem(v, _onChange);
|
|
6521
6521
|
},
|
|
6522
6522
|
children: state.items.map(function (item) {
|
|
@@ -6598,7 +6598,7 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6598
6598
|
ref: ref
|
|
6599
6599
|
}, props), {}, {
|
|
6600
6600
|
inputMode: "numeric",
|
|
6601
|
-
onChange: function
|
|
6601
|
+
onChange: function (event) {
|
|
6602
6602
|
if (!onChange) return;
|
|
6603
6603
|
var value = parseFloat(event.nativeEvent.text);
|
|
6604
6604
|
|
|
@@ -6630,7 +6630,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6630
6630
|
testID: "kitt.InputPassword.passwordToggle",
|
|
6631
6631
|
hitSlop: 20,
|
|
6632
6632
|
accessibilityRole: "button",
|
|
6633
|
-
onPress: function
|
|
6633
|
+
onPress: function () {
|
|
6634
6634
|
return setIsVisible(function (prev) {
|
|
6635
6635
|
return !prev;
|
|
6636
6636
|
});
|
|
@@ -6665,7 +6665,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6665
6665
|
enterKeyHint: currentEnterKeyHint,
|
|
6666
6666
|
autoComplete: autoComplete,
|
|
6667
6667
|
textContentType: "telephoneNumber",
|
|
6668
|
-
onChange: function
|
|
6668
|
+
onChange: function (event) {
|
|
6669
6669
|
var number = parseNumber(event.nativeEvent.text);
|
|
6670
6670
|
|
|
6671
6671
|
// When intl phone number is valid :
|
|
@@ -6857,14 +6857,14 @@ function Radio(_ref, ref) {
|
|
|
6857
6857
|
focusable: checked && !disabled,
|
|
6858
6858
|
flexDirection: "row",
|
|
6859
6859
|
alignItems: "center",
|
|
6860
|
-
onPress: function
|
|
6860
|
+
onPress: function (event) {
|
|
6861
6861
|
if (onFocus) onFocus();
|
|
6862
6862
|
if (onChange) onChange(value, event);
|
|
6863
6863
|
if (onBlur) onBlur();
|
|
6864
6864
|
},
|
|
6865
6865
|
onFocus: onFocus,
|
|
6866
6866
|
onBlur: onBlur,
|
|
6867
|
-
children: function
|
|
6867
|
+
children: function (_ref2) {
|
|
6868
6868
|
var isHovered = _ref2.isHovered,
|
|
6869
6869
|
isPressed = _ref2.isPressed,
|
|
6870
6870
|
isFocused = _ref2.isFocused;
|
|
@@ -7040,7 +7040,7 @@ function RadioButton(_ref) {
|
|
|
7040
7040
|
flexShrink: createResponsiveStyleFromProp(stretch, 1, undefined),
|
|
7041
7041
|
flexBasis: createResponsiveStyleFromProp(stretch, 0),
|
|
7042
7042
|
disabled: disabled,
|
|
7043
|
-
onPress: function
|
|
7043
|
+
onPress: function (e) {
|
|
7044
7044
|
if (onFocus) onFocus(e);
|
|
7045
7045
|
if (onChange) onChange(value);
|
|
7046
7046
|
if (onBlur) onBlur(e);
|
|
@@ -7049,7 +7049,7 @@ function RadioButton(_ref) {
|
|
|
7049
7049
|
onPressOut: onPressOut,
|
|
7050
7050
|
onFocus: onFocus,
|
|
7051
7051
|
onBlur: onBlur,
|
|
7052
|
-
children: function
|
|
7052
|
+
children: function (_ref2) {
|
|
7053
7053
|
var isHovered = _ref2.isHovered,
|
|
7054
7054
|
isPressed = _ref2.isPressed,
|
|
7055
7055
|
isFocused = _ref2.isFocused;
|
|
@@ -7168,7 +7168,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7168
7168
|
textAlignVertical: "top",
|
|
7169
7169
|
minHeight: "kitt.forms.textArea.minHeight"
|
|
7170
7170
|
}, props), {}, {
|
|
7171
|
-
onChange: function
|
|
7171
|
+
onChange: function (e) {
|
|
7172
7172
|
if (!limit || e.nativeEvent.text.length <= limit) {
|
|
7173
7173
|
var _props$onChange;
|
|
7174
7174
|
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, e);
|
|
@@ -7331,10 +7331,10 @@ function Toggle(_ref) {
|
|
|
7331
7331
|
children: [/*#__PURE__*/jsx(Pressable, {
|
|
7332
7332
|
accessibilityRole: "togglebutton",
|
|
7333
7333
|
disabled: isDisabled,
|
|
7334
|
-
onPress: function
|
|
7334
|
+
onPress: function () {
|
|
7335
7335
|
onChange(!value);
|
|
7336
7336
|
},
|
|
7337
|
-
children: function
|
|
7337
|
+
children: function (_ref2) {
|
|
7338
7338
|
var isHovered = _ref2.isHovered,
|
|
7339
7339
|
isPressed = _ref2.isPressed,
|
|
7340
7340
|
isFocused = _ref2.isFocused;
|
|
@@ -7499,7 +7499,7 @@ function FullscreenModalBehaviour(_ref) {
|
|
|
7499
7499
|
onClose: onClose,
|
|
7500
7500
|
children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
7501
7501
|
visible: visible,
|
|
7502
|
-
onExited: function
|
|
7502
|
+
onExited: function () {
|
|
7503
7503
|
if (onExited) onExited();
|
|
7504
7504
|
setIsModalBehaviourVisible(false);
|
|
7505
7505
|
},
|
|
@@ -7798,13 +7798,13 @@ function Highlight(_ref) {
|
|
|
7798
7798
|
});
|
|
7799
7799
|
}
|
|
7800
7800
|
return /*#__PURE__*/jsx(Pressable, {
|
|
7801
|
-
onPress: function
|
|
7801
|
+
onPress: function () {
|
|
7802
7802
|
setIsExpanded(!isExpanded);
|
|
7803
7803
|
setIsInitialRender(false);
|
|
7804
7804
|
},
|
|
7805
7805
|
onPressIn: onPressIn,
|
|
7806
7806
|
onPressOut: onPressOut,
|
|
7807
|
-
children: function
|
|
7807
|
+
children: function (_ref2) {
|
|
7808
7808
|
var isHovered = _ref2.isHovered;
|
|
7809
7809
|
return /*#__PURE__*/jsxs(AnimatedContainer, {
|
|
7810
7810
|
isHovered: isHovered,
|
|
@@ -8279,7 +8279,7 @@ function MapMarker(_ref2) {
|
|
|
8279
8279
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
8280
8280
|
testID: testID,
|
|
8281
8281
|
onPress: onPress,
|
|
8282
|
-
children: function
|
|
8282
|
+
children: function (_ref3) {
|
|
8283
8283
|
var isHovered = _ref3.isHovered;
|
|
8284
8284
|
return /*#__PURE__*/jsx(StaticMapMarker$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
8285
8285
|
isHovered: isHovered
|
|
@@ -11028,19 +11028,19 @@ function NavigationModalBehaviour(_ref) {
|
|
|
11028
11028
|
children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
11029
11029
|
appear: shouldAppear,
|
|
11030
11030
|
visible: visible,
|
|
11031
|
-
onEnter: function
|
|
11031
|
+
onEnter: function () {
|
|
11032
11032
|
if (onEnter) onEnter();
|
|
11033
11033
|
|
|
11034
11034
|
// Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
|
|
11035
11035
|
setShouldAppear(false);
|
|
11036
11036
|
},
|
|
11037
|
-
onExit: function
|
|
11037
|
+
onExit: function () {
|
|
11038
11038
|
if (onExit) onExit();
|
|
11039
11039
|
|
|
11040
11040
|
// Reset appear value to its original value for future modal display
|
|
11041
11041
|
setShouldAppear(appear);
|
|
11042
11042
|
},
|
|
11043
|
-
onExited: function
|
|
11043
|
+
onExited: function () {
|
|
11044
11044
|
if (onExited) onExited();
|
|
11045
11045
|
setIsModalBehaviourVisible(false);
|
|
11046
11046
|
},
|
|
@@ -11306,18 +11306,18 @@ function Picker(_ref) {
|
|
|
11306
11306
|
items: items,
|
|
11307
11307
|
initialSelectedItem: initialValueIndex > -1 ? items[initialValueIndex] : undefined,
|
|
11308
11308
|
initialIsOpen: isInitialOpen,
|
|
11309
|
-
stateReducer: function
|
|
11309
|
+
stateReducer: function (state, actionAndChanges) {
|
|
11310
11310
|
return webUseSelectReducer(state, actionAndChanges, {
|
|
11311
11311
|
keepOpenOnChange: keepOpenOnChange
|
|
11312
11312
|
});
|
|
11313
11313
|
},
|
|
11314
11314
|
selectedItem: syncStateWithSourceValue ? sourceValue : undefined,
|
|
11315
|
-
onIsOpenChange: function
|
|
11315
|
+
onIsOpenChange: function (changes) {
|
|
11316
11316
|
if (changes.isOpen === false) {
|
|
11317
11317
|
if (onClose) onClose();
|
|
11318
11318
|
}
|
|
11319
11319
|
},
|
|
11320
|
-
onSelectedItemChange: function
|
|
11320
|
+
onSelectedItemChange: function (changes) {
|
|
11321
11321
|
if (!onChange) return;
|
|
11322
11322
|
if (changes.selectedItem === null) {
|
|
11323
11323
|
onChange(undefined);
|
|
@@ -11537,7 +11537,7 @@ function Skeleton(_ref) {
|
|
|
11537
11537
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
11538
11538
|
overflow: "hidden",
|
|
11539
11539
|
style: style,
|
|
11540
|
-
onLayout: function
|
|
11540
|
+
onLayout: function (_ref2) {
|
|
11541
11541
|
var nativeEvent = _ref2.nativeEvent;
|
|
11542
11542
|
return setWidth(nativeEvent.layout.width);
|
|
11543
11543
|
},
|
|
@@ -11763,7 +11763,7 @@ function StaticMap(_ref) {
|
|
|
11763
11763
|
position: "relative",
|
|
11764
11764
|
maxWidth: mapBoxMaxPictureWidth,
|
|
11765
11765
|
height: height,
|
|
11766
|
-
onLayout: function
|
|
11766
|
+
onLayout: function (event) {
|
|
11767
11767
|
var nativeEvent = event.nativeEvent;
|
|
11768
11768
|
var rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
|
|
11769
11769
|
setCurrentWidth(rangedMapWidth);
|
|
@@ -11775,11 +11775,11 @@ function StaticMap(_ref) {
|
|
|
11775
11775
|
width: currentWidth,
|
|
11776
11776
|
height: height,
|
|
11777
11777
|
alt: alt,
|
|
11778
|
-
onLoadEnd: function
|
|
11778
|
+
onLoadEnd: function () {
|
|
11779
11779
|
setIsLoading(false);
|
|
11780
11780
|
if (onLoaded) onLoaded();
|
|
11781
11781
|
},
|
|
11782
|
-
onError: function
|
|
11782
|
+
onError: function () {
|
|
11783
11783
|
setHasError(true);
|
|
11784
11784
|
if (onError) onError();
|
|
11785
11785
|
}
|
|
@@ -11804,7 +11804,7 @@ function StaticMap(_ref) {
|
|
|
11804
11804
|
width: "100%",
|
|
11805
11805
|
height: "100%",
|
|
11806
11806
|
children: /*#__PURE__*/jsx(StaticMapError, {
|
|
11807
|
-
onReload: function
|
|
11807
|
+
onReload: function () {
|
|
11808
11808
|
setHasError(false);
|
|
11809
11809
|
setIsLoading(true);
|
|
11810
11810
|
setCurrentMapKey(function (prev) {
|
|
@@ -12046,7 +12046,7 @@ function StoryContainer(_ref) {
|
|
|
12046
12046
|
var StoryDecorator = makeDecorator({
|
|
12047
12047
|
name: 'StoryDecorator',
|
|
12048
12048
|
parameterName: 'storyDecorator',
|
|
12049
|
-
wrapper: function
|
|
12049
|
+
wrapper: function (storyFn, context) {
|
|
12050
12050
|
var story = storyFn(context);
|
|
12051
12051
|
if (context.parameters.disableStoryContainer) {
|
|
12052
12052
|
return story;
|
|
@@ -12150,7 +12150,7 @@ function TabBarItem(_ref) {
|
|
|
12150
12150
|
disabled: disabled,
|
|
12151
12151
|
testID: testID,
|
|
12152
12152
|
onPress: onPress,
|
|
12153
|
-
children: function
|
|
12153
|
+
children: function (_ref2) {
|
|
12154
12154
|
var isHovered = _ref2.isHovered,
|
|
12155
12155
|
isPressed = _ref2.isPressed,
|
|
12156
12156
|
isFocused = _ref2.isFocused;
|
|
@@ -12239,7 +12239,7 @@ function TabBar(_ref) {
|
|
|
12239
12239
|
color: color,
|
|
12240
12240
|
variant: definedVariant,
|
|
12241
12241
|
type: type,
|
|
12242
|
-
onPress: function
|
|
12242
|
+
onPress: function (event) {
|
|
12243
12243
|
var _child$props$onPress, _child$props;
|
|
12244
12244
|
onChangeTab({
|
|
12245
12245
|
tab: tab,
|
|
@@ -12418,7 +12418,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12418
12418
|
isFocusedInternal: isFocusedInternal,
|
|
12419
12419
|
isPressedInternal: isPressedInternal
|
|
12420
12420
|
}),
|
|
12421
|
-
onChange: function
|
|
12421
|
+
onChange: function (event) {
|
|
12422
12422
|
var currentValue = event.nativeEvent.text;
|
|
12423
12423
|
if (currentValue.length === 0) {
|
|
12424
12424
|
setInputValue(currentValue);
|
|
@@ -12469,7 +12469,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12469
12469
|
setInputValue(sanitizedValue);
|
|
12470
12470
|
handleChange(sanitizedValue);
|
|
12471
12471
|
},
|
|
12472
|
-
onBlur: function
|
|
12472
|
+
onBlur: function () {
|
|
12473
12473
|
if (inputValue.indexOf(':') === 1) {
|
|
12474
12474
|
setInputValue("0".concat(inputValue));
|
|
12475
12475
|
}
|
|
@@ -13106,7 +13106,7 @@ function KittThemeProvider(_ref) {
|
|
|
13106
13106
|
var KittThemeDecorator = makeDecorator({
|
|
13107
13107
|
name: 'ThemeDecorator',
|
|
13108
13108
|
parameterName: 'theme',
|
|
13109
|
-
wrapper: function
|
|
13109
|
+
wrapper: function (storyFn, context, _ref2) {
|
|
13110
13110
|
var _parameters$isSSR;
|
|
13111
13111
|
var _ref2$options = _ref2.options,
|
|
13112
13112
|
options = _ref2$options === void 0 ? {} : _ref2$options,
|