@ornikar/kitt-universal 26.3.1-canary.8efcf8dd518741ed7fec0d06cb12e3d6d3fbdbd0.0 → 26.3.1-canary.94272652b7530b8140a0a413e97f350bbbdf57db.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 +9 -1
- package/dist/definitions/typography/Typography.d.ts +33 -11
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index.es.js +94 -94
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +65 -65
- 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 +25 -25
package/dist/index.es.js
CHANGED
|
@@ -2533,7 +2533,7 @@ var breakpoints = {
|
|
|
2533
2533
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
2534
2534
|
var theme = {
|
|
2535
2535
|
spacing: spacing,
|
|
2536
|
-
getSpacing: function
|
|
2536
|
+
getSpacing: function (multiplier) {
|
|
2537
2537
|
return spacing * multiplier;
|
|
2538
2538
|
},
|
|
2539
2539
|
colors: colors,
|
|
@@ -2720,7 +2720,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
2720
2720
|
onPress: onPress,
|
|
2721
2721
|
onHoverIn: onHoverIn,
|
|
2722
2722
|
onHoverOut: onHoverOut,
|
|
2723
|
-
children: function
|
|
2723
|
+
children: function (_ref3) {
|
|
2724
2724
|
var isHovered = _ref3.isHovered,
|
|
2725
2725
|
isPressed = _ref3.isPressed,
|
|
2726
2726
|
isFocused = _ref3.isFocused;
|
|
@@ -3460,11 +3460,11 @@ var useNativeAnimation$5 = function (_ref) {
|
|
|
3460
3460
|
};
|
|
3461
3461
|
});
|
|
3462
3462
|
return {
|
|
3463
|
-
onPressIn: function
|
|
3463
|
+
onPressIn: function () {
|
|
3464
3464
|
color.value = withSpring(1);
|
|
3465
3465
|
pressed.value = 1;
|
|
3466
3466
|
},
|
|
3467
|
-
onPressOut: function
|
|
3467
|
+
onPressOut: function () {
|
|
3468
3468
|
color.value = withSpring(0);
|
|
3469
3469
|
pressed.value = 0;
|
|
3470
3470
|
},
|
|
@@ -3551,7 +3551,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3551
3551
|
onHoverOut: onHoverOut,
|
|
3552
3552
|
onFocus: onFocus,
|
|
3553
3553
|
onBlur: onBlur,
|
|
3554
|
-
children: function
|
|
3554
|
+
children: function (_ref2) {
|
|
3555
3555
|
var isHovered = _ref2.isHovered,
|
|
3556
3556
|
isPressed = _ref2.isPressed,
|
|
3557
3557
|
isFocused = _ref2.isFocused;
|
|
@@ -3673,7 +3673,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3673
3673
|
stretch: stretch,
|
|
3674
3674
|
disabled: isLoading ? true : disabled,
|
|
3675
3675
|
icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
|
|
3676
|
-
onPress: function
|
|
3676
|
+
onPress: function (e) {
|
|
3677
3677
|
var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
|
|
3678
3678
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
3679
3679
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
@@ -3945,10 +3945,10 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3945
3945
|
borderRadius: 4,
|
|
3946
3946
|
backgroundColor: theme.kitt.bottomSheet.handle.backgroundColor
|
|
3947
3947
|
},
|
|
3948
|
-
handleComponent: function
|
|
3948
|
+
handleComponent: function (props) {
|
|
3949
3949
|
return hasHandle ? /*#__PURE__*/jsx(BottomSheetHandle, _objectSpread({}, props)) : null;
|
|
3950
3950
|
},
|
|
3951
|
-
backdropComponent: function
|
|
3951
|
+
backdropComponent: function (props) {
|
|
3952
3952
|
return hasBackdrop ? /*#__PURE__*/jsx(BottomSheetBackdrop, _objectSpread(_objectSpread({}, props), {}, {
|
|
3953
3953
|
opacity: 0.25,
|
|
3954
3954
|
appearsOnIndex: 0,
|
|
@@ -3957,7 +3957,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3957
3957
|
}
|
|
3958
3958
|
}, rest), {}, {
|
|
3959
3959
|
topInset: top,
|
|
3960
|
-
children: function
|
|
3960
|
+
children: function (props) {
|
|
3961
3961
|
return /*#__PURE__*/jsx(Wrapper, {
|
|
3962
3962
|
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
3963
3963
|
});
|
|
@@ -4033,7 +4033,7 @@ function CloseButton(_ref) {
|
|
|
4033
4033
|
onPress = _ref.onPress;
|
|
4034
4034
|
var onCloseContextCallback = useOnCloseModalBehaviour();
|
|
4035
4035
|
return /*#__PURE__*/cloneElement(children, {
|
|
4036
|
-
onPress: function
|
|
4036
|
+
onPress: function () {
|
|
4037
4037
|
if (onPress) onPress();
|
|
4038
4038
|
onCloseContextCallback();
|
|
4039
4039
|
}
|
|
@@ -4211,11 +4211,11 @@ function CardModalAnimation(_ref) {
|
|
|
4211
4211
|
transparent: true,
|
|
4212
4212
|
supportedOrientations: ['landscape', 'portrait'],
|
|
4213
4213
|
visible: isModalVisible,
|
|
4214
|
-
onShow: function
|
|
4214
|
+
onShow: function () {
|
|
4215
4215
|
if (onEnter) onEnter();
|
|
4216
4216
|
setIsContentVisible(true);
|
|
4217
4217
|
},
|
|
4218
|
-
onDismiss: function
|
|
4218
|
+
onDismiss: function () {
|
|
4219
4219
|
if (onExited) onExited();
|
|
4220
4220
|
},
|
|
4221
4221
|
children: /*#__PURE__*/jsxs(View, {
|
|
@@ -4262,7 +4262,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4262
4262
|
onClose: onClose,
|
|
4263
4263
|
children: /*#__PURE__*/jsx(CardModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4264
4264
|
visible: visible,
|
|
4265
|
-
onExited: function
|
|
4265
|
+
onExited: function () {
|
|
4266
4266
|
if (onExited) onExited();
|
|
4267
4267
|
setIsModalBehaviourVisible(false);
|
|
4268
4268
|
},
|
|
@@ -4484,10 +4484,10 @@ var useNativeAnimation$4 = function (_ref) {
|
|
|
4484
4484
|
};
|
|
4485
4485
|
});
|
|
4486
4486
|
return {
|
|
4487
|
-
onPressIn: function
|
|
4487
|
+
onPressIn: function () {
|
|
4488
4488
|
pressed.value = true;
|
|
4489
4489
|
},
|
|
4490
|
-
onPressOut: function
|
|
4490
|
+
onPressOut: function () {
|
|
4491
4491
|
pressed.value = false;
|
|
4492
4492
|
},
|
|
4493
4493
|
backgroundStyles: backgroundStyles
|
|
@@ -4550,7 +4550,7 @@ function ChoiceItem(_ref) {
|
|
|
4550
4550
|
style: style,
|
|
4551
4551
|
onBlur: onBlur,
|
|
4552
4552
|
onFocus: onFocus,
|
|
4553
|
-
onPress: function
|
|
4553
|
+
onPress: function (e) {
|
|
4554
4554
|
if (onFocus) onFocus(e);
|
|
4555
4555
|
if (onPress) onPress();
|
|
4556
4556
|
handleChange();
|
|
@@ -4558,7 +4558,7 @@ function ChoiceItem(_ref) {
|
|
|
4558
4558
|
},
|
|
4559
4559
|
onPressIn: onPressIn,
|
|
4560
4560
|
onPressOut: onPressOut,
|
|
4561
|
-
children: function
|
|
4561
|
+
children: function (_ref2) {
|
|
4562
4562
|
var isHovered = _ref2.isHovered,
|
|
4563
4563
|
isPressed = _ref2.isPressed;
|
|
4564
4564
|
return /*#__PURE__*/jsxs(AnimatedChoiceItemView, {
|
|
@@ -4654,7 +4654,7 @@ function Choices(_ref2) {
|
|
|
4654
4654
|
disabled: disabled,
|
|
4655
4655
|
variant: variant,
|
|
4656
4656
|
onPress: !isForm ? onPress : undefined,
|
|
4657
|
-
onChange: isForm ? function
|
|
4657
|
+
onChange: isForm ? function (newValue) {
|
|
4658
4658
|
setCurrentValue(newValue);
|
|
4659
4659
|
if (onChange) onChange(newValue);
|
|
4660
4660
|
} : undefined,
|
|
@@ -4812,11 +4812,11 @@ function DialogModalAnimation(_ref) {
|
|
|
4812
4812
|
transparent: true,
|
|
4813
4813
|
supportedOrientations: ['landscape', 'portrait'],
|
|
4814
4814
|
visible: isModalVisible,
|
|
4815
|
-
onShow: function
|
|
4815
|
+
onShow: function () {
|
|
4816
4816
|
if (onEnter) onEnter();
|
|
4817
4817
|
setIsContentVisible(true);
|
|
4818
4818
|
},
|
|
4819
|
-
onDismiss: function
|
|
4819
|
+
onDismiss: function () {
|
|
4820
4820
|
if (onExited) onExited();
|
|
4821
4821
|
},
|
|
4822
4822
|
children: /*#__PURE__*/jsxs(View, {
|
|
@@ -4870,7 +4870,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
4870
4870
|
},
|
|
4871
4871
|
children: /*#__PURE__*/jsx(DialogModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4872
4872
|
visible: visible,
|
|
4873
|
-
onExited: function
|
|
4873
|
+
onExited: function () {
|
|
4874
4874
|
if (onExited) onExited();
|
|
4875
4875
|
setIsModalBehaviourVisible(false);
|
|
4876
4876
|
},
|
|
@@ -5133,7 +5133,7 @@ function ExternalLink(_ref) {
|
|
|
5133
5133
|
var openExternalLink = useOpenExternalLink();
|
|
5134
5134
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5135
5135
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
5136
|
-
onPress: function
|
|
5136
|
+
onPress: function (e) {
|
|
5137
5137
|
if (onPress) {
|
|
5138
5138
|
onPress(e);
|
|
5139
5139
|
if (e.defaultPrevented) return;
|
|
@@ -5357,14 +5357,14 @@ var _excluded$z = ["children", "name", "disabled", "placeholder", "isInitialOpen
|
|
|
5357
5357
|
function patchNativeEvent(event) {
|
|
5358
5358
|
return event || {
|
|
5359
5359
|
preventDownshiftDefault: false,
|
|
5360
|
-
preventDefault: function
|
|
5360
|
+
preventDefault: function () {}
|
|
5361
5361
|
};
|
|
5362
5362
|
}
|
|
5363
5363
|
function isReactElement(element) {
|
|
5364
5364
|
return _typeof(element) === 'object' && element !== null && 'type' in element && 'props' in element;
|
|
5365
5365
|
}
|
|
5366
5366
|
function Autocomplete(_ref) {
|
|
5367
|
-
var
|
|
5367
|
+
var children = _ref.children,
|
|
5368
5368
|
name = _ref.name,
|
|
5369
5369
|
disabled = _ref.disabled,
|
|
5370
5370
|
placeholder = _ref.placeholder,
|
|
@@ -5391,7 +5391,7 @@ function Autocomplete(_ref) {
|
|
|
5391
5391
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5392
5392
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5393
5393
|
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5394
|
-
var childrenArray = Children.toArray(
|
|
5394
|
+
var childrenArray = Children.toArray(children);
|
|
5395
5395
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5396
5396
|
return {
|
|
5397
5397
|
child: child,
|
|
@@ -5402,12 +5402,12 @@ function Autocomplete(_ref) {
|
|
|
5402
5402
|
defaultIsOpen: isInitialOpen,
|
|
5403
5403
|
initialSelectedItem: initialValue,
|
|
5404
5404
|
initialInputValue: initialValue ? itemToString(initialValue) : undefined,
|
|
5405
|
-
itemToString: function
|
|
5405
|
+
itemToString: function (item) {
|
|
5406
5406
|
// Prevents returning null values
|
|
5407
5407
|
if (!itemToString) return '';
|
|
5408
5408
|
return itemToString(item || undefined);
|
|
5409
5409
|
},
|
|
5410
|
-
stateReducer: function
|
|
5410
|
+
stateReducer: function (state, changes) {
|
|
5411
5411
|
switch (changes.type) {
|
|
5412
5412
|
case Downshift.stateChangeTypes.changeInput:
|
|
5413
5413
|
return _objectSpread(_objectSpread({}, changes), {}, {
|
|
@@ -5417,7 +5417,7 @@ function Autocomplete(_ref) {
|
|
|
5417
5417
|
return changes;
|
|
5418
5418
|
}
|
|
5419
5419
|
},
|
|
5420
|
-
onChange: function
|
|
5420
|
+
onChange: function (selectedItem, stateAndHelpers) {
|
|
5421
5421
|
if (_onChange) {
|
|
5422
5422
|
_onChange(selectedItem, stateAndHelpers);
|
|
5423
5423
|
}
|
|
@@ -5425,7 +5425,7 @@ function Autocomplete(_ref) {
|
|
|
5425
5425
|
onSelect: onSelectItem,
|
|
5426
5426
|
onOuterClick: onOuterPress,
|
|
5427
5427
|
onInputValueChange: onInputChange,
|
|
5428
|
-
children: function
|
|
5428
|
+
children: function (_ref2) {
|
|
5429
5429
|
var getRootProps = _ref2.getRootProps,
|
|
5430
5430
|
getInputProps = _ref2.getInputProps,
|
|
5431
5431
|
getMenuProps = _ref2.getMenuProps,
|
|
@@ -5477,7 +5477,7 @@ function Autocomplete(_ref) {
|
|
|
5477
5477
|
right: right || (canDisplayCollapseButton ? /*#__PURE__*/jsx(InputPressable, _objectSpread(_objectSpread({}, toggleProps), {}, {
|
|
5478
5478
|
testID: "kitt.Autocomplete.listToggle",
|
|
5479
5479
|
hitSlop: 40,
|
|
5480
|
-
onPress: function
|
|
5480
|
+
onPress: function (e) {
|
|
5481
5481
|
if (Platform.OS === 'web') {
|
|
5482
5482
|
onClickToggle(e);
|
|
5483
5483
|
return;
|
|
@@ -5488,13 +5488,13 @@ function Autocomplete(_ref) {
|
|
|
5488
5488
|
icon: isCurrentlyOpen ? /*#__PURE__*/jsx(CaretUpFillIcon, {}) : /*#__PURE__*/jsx(CaretDownFillIcon, {})
|
|
5489
5489
|
})
|
|
5490
5490
|
})) : null),
|
|
5491
|
-
onFocus: function
|
|
5491
|
+
onFocus: function (e) {
|
|
5492
5492
|
openMenu();
|
|
5493
5493
|
/** @ts-expect-error onFocus wants web events */
|
|
5494
5494
|
if (Platform.OS !== 'android' && onSearchInputFocus) onSearchInputFocus(e);
|
|
5495
5495
|
if (_onFocus) _onFocus(e);
|
|
5496
5496
|
},
|
|
5497
|
-
onBlur: function
|
|
5497
|
+
onBlur: function (e) {
|
|
5498
5498
|
/** @ts-expect-error onBlur wants web events */
|
|
5499
5499
|
if (Platform.OS === 'web' && onSearchInputBlur) onSearchInputBlur(e);
|
|
5500
5500
|
|
|
@@ -5530,14 +5530,14 @@ function Autocomplete(_ref) {
|
|
|
5530
5530
|
selected: ariaSelected
|
|
5531
5531
|
},
|
|
5532
5532
|
disabled: disabled,
|
|
5533
|
-
onPress: function
|
|
5533
|
+
onPress: function (e) {
|
|
5534
5534
|
if (Platform.OS === 'web') {
|
|
5535
5535
|
if (onClick) onClick(e);
|
|
5536
5536
|
return;
|
|
5537
5537
|
}
|
|
5538
5538
|
if (_onPress) _onPress(patchNativeEvent(e));
|
|
5539
5539
|
},
|
|
5540
|
-
children: function
|
|
5540
|
+
children: function (_ref5) {
|
|
5541
5541
|
var isHovered = _ref5.isHovered,
|
|
5542
5542
|
isFocused = _ref5.isFocused,
|
|
5543
5543
|
isPressed = _ref5.isPressed;
|
|
@@ -5627,12 +5627,12 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5627
5627
|
disabled: disabled
|
|
5628
5628
|
},
|
|
5629
5629
|
disabled: disabled,
|
|
5630
|
-
onPress: function
|
|
5630
|
+
onPress: function (e) {
|
|
5631
5631
|
if (onFocus) onFocus();
|
|
5632
5632
|
if (onChange) onChange(!checked, e);
|
|
5633
5633
|
if (onBlur) onBlur();
|
|
5634
5634
|
},
|
|
5635
|
-
children: function
|
|
5635
|
+
children: function (_ref2) {
|
|
5636
5636
|
var isHovered = _ref2.isHovered,
|
|
5637
5637
|
isPressed = _ref2.isPressed,
|
|
5638
5638
|
isFocused = _ref2.isFocused;
|
|
@@ -6187,7 +6187,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6187
6187
|
DateTimePickerAndroid.open({
|
|
6188
6188
|
testID: pickerUITestID,
|
|
6189
6189
|
value: currentValue || pickerDefaultDate || new Date(Date.now()),
|
|
6190
|
-
onChange: function
|
|
6190
|
+
onChange: function (e) {
|
|
6191
6191
|
setIsFocused(false);
|
|
6192
6192
|
var timestamp = e.nativeEvent.timestamp;
|
|
6193
6193
|
if (timestamp) {
|
|
@@ -6239,7 +6239,7 @@ function PlatformDateTimePicker(_ref) {
|
|
|
6239
6239
|
minimumDate: minimuDate,
|
|
6240
6240
|
display: displayMode
|
|
6241
6241
|
}, iosProps), {}, {
|
|
6242
|
-
onChange: function
|
|
6242
|
+
onChange: function (_event, date) {
|
|
6243
6243
|
return _onChange(date);
|
|
6244
6244
|
}
|
|
6245
6245
|
}));
|
|
@@ -6273,7 +6273,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6273
6273
|
|
|
6274
6274
|
return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
|
|
6275
6275
|
visible: Boolean(isVisible),
|
|
6276
|
-
onClose: function
|
|
6276
|
+
onClose: function () {
|
|
6277
6277
|
setCurrentValue(value);
|
|
6278
6278
|
onClose();
|
|
6279
6279
|
},
|
|
@@ -6284,7 +6284,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6284
6284
|
}) : null, /*#__PURE__*/jsx(CardModal.Body, {
|
|
6285
6285
|
children: /*#__PURE__*/jsx(PlatformDateTimePicker, _objectSpread(_objectSpread({}, props), {}, {
|
|
6286
6286
|
value: currentValue,
|
|
6287
|
-
onChange: function
|
|
6287
|
+
onChange: function (newDate) {
|
|
6288
6288
|
setCurrentValue(function (prev) {
|
|
6289
6289
|
return newDate || prev;
|
|
6290
6290
|
});
|
|
@@ -6294,7 +6294,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6294
6294
|
children: /*#__PURE__*/jsx(Button, {
|
|
6295
6295
|
stretch: true,
|
|
6296
6296
|
type: "primary",
|
|
6297
|
-
onPress: function
|
|
6297
|
+
onPress: function () {
|
|
6298
6298
|
onChange(currentValue);
|
|
6299
6299
|
},
|
|
6300
6300
|
children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
|
|
@@ -6348,7 +6348,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6348
6348
|
isFocusedInternal: isFocused || isFocusedInternal,
|
|
6349
6349
|
isHoveredInternal: isHoveredInternal,
|
|
6350
6350
|
isPressedInternal: isPressedInternal,
|
|
6351
|
-
onPress: function
|
|
6351
|
+
onPress: function () {
|
|
6352
6352
|
if (onFocus) onFocus();
|
|
6353
6353
|
setIsPickerUIVisible(true);
|
|
6354
6354
|
setIsFocused(true);
|
|
@@ -6361,7 +6361,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6361
6361
|
validateButtonLabel: pickerUIValidateButtonLabel,
|
|
6362
6362
|
defaultDate: pickerDefaultDate,
|
|
6363
6363
|
onClose: handleModalClose,
|
|
6364
|
-
onChange: function
|
|
6364
|
+
onChange: function (newDate) {
|
|
6365
6365
|
setCurrentValue(newDate);
|
|
6366
6366
|
onChange(newDate);
|
|
6367
6367
|
handleModalClose();
|
|
@@ -6677,7 +6677,7 @@ function FilePicker(_ref) {
|
|
|
6677
6677
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
6678
6678
|
children: [/*#__PURE__*/cloneElement(childElement, {
|
|
6679
6679
|
// ensure that the press event is not prevented by Button component
|
|
6680
|
-
onPress: function
|
|
6680
|
+
onPress: function () {
|
|
6681
6681
|
var _childElement$props$o, _childElement$props, _bottomSheetRef$curre;
|
|
6682
6682
|
if (disabled) return;
|
|
6683
6683
|
(_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
|
|
@@ -6978,10 +6978,10 @@ var GoogleMapsAutocompleteContext = /*#__PURE__*/createContext({
|
|
|
6978
6978
|
isLoadingResultDetails: false,
|
|
6979
6979
|
shouldDisplayEmptyStateWhenNoResults: false
|
|
6980
6980
|
},
|
|
6981
|
-
onInputChange: function
|
|
6981
|
+
onInputChange: function () {
|
|
6982
6982
|
return Promise.resolve();
|
|
6983
6983
|
},
|
|
6984
|
-
onSelectItem: function
|
|
6984
|
+
onSelectItem: function () {}
|
|
6985
6985
|
});
|
|
6986
6986
|
function GoogleMapsAutocompleteProvider(_ref) {
|
|
6987
6987
|
var children = _ref.children,
|
|
@@ -7234,7 +7234,7 @@ function InputAddress(_ref) {
|
|
|
7234
7234
|
return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
|
|
7235
7235
|
itemToString: itemToString,
|
|
7236
7236
|
initialValue: formattedInitialValue,
|
|
7237
|
-
checkSelectedItem: function
|
|
7237
|
+
checkSelectedItem: function (selectedItem, item) {
|
|
7238
7238
|
return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.place_id) === item.place_id;
|
|
7239
7239
|
},
|
|
7240
7240
|
right: state.isLoadingSearch || state.isLoadingResultDetails ? /*#__PURE__*/jsx(Icon, {
|
|
@@ -7243,10 +7243,10 @@ function InputAddress(_ref) {
|
|
|
7243
7243
|
}) : undefined,
|
|
7244
7244
|
errorElement: state.hasSearchError || state.hasSelectResultError ? errorElement : null,
|
|
7245
7245
|
emptyResultsElement: state.items.length === 0 ? emptyResultsElement : null,
|
|
7246
|
-
onInputChange: function
|
|
7246
|
+
onInputChange: function (v) {
|
|
7247
7247
|
_onInputChange(v);
|
|
7248
7248
|
},
|
|
7249
|
-
onChange: function
|
|
7249
|
+
onChange: function (v) {
|
|
7250
7250
|
onSelectItem(v, _onChange);
|
|
7251
7251
|
},
|
|
7252
7252
|
children: state.items.map(function (item) {
|
|
@@ -7328,7 +7328,7 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7328
7328
|
ref: ref
|
|
7329
7329
|
}, props), {}, {
|
|
7330
7330
|
inputMode: "numeric",
|
|
7331
|
-
onChange: function
|
|
7331
|
+
onChange: function (event) {
|
|
7332
7332
|
if (!onChange) return;
|
|
7333
7333
|
var value = parseFloat(event.nativeEvent.text);
|
|
7334
7334
|
|
|
@@ -7360,7 +7360,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7360
7360
|
testID: "kitt.InputPassword.passwordToggle",
|
|
7361
7361
|
hitSlop: 20,
|
|
7362
7362
|
accessibilityRole: "button",
|
|
7363
|
-
onPress: function
|
|
7363
|
+
onPress: function () {
|
|
7364
7364
|
return setIsVisible(function (prev) {
|
|
7365
7365
|
return !prev;
|
|
7366
7366
|
});
|
|
@@ -7395,7 +7395,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7395
7395
|
enterKeyHint: currentEnterKeyHint,
|
|
7396
7396
|
autoComplete: autoComplete,
|
|
7397
7397
|
textContentType: "telephoneNumber",
|
|
7398
|
-
onChange: function
|
|
7398
|
+
onChange: function (event) {
|
|
7399
7399
|
var number = parseNumber(event.nativeEvent.text);
|
|
7400
7400
|
|
|
7401
7401
|
// When intl phone number is valid :
|
|
@@ -7587,14 +7587,14 @@ function Radio(_ref, ref) {
|
|
|
7587
7587
|
focusable: checked && !disabled,
|
|
7588
7588
|
flexDirection: "row",
|
|
7589
7589
|
alignItems: "center",
|
|
7590
|
-
onPress: function
|
|
7590
|
+
onPress: function (event) {
|
|
7591
7591
|
if (onFocus) onFocus();
|
|
7592
7592
|
if (onChange) onChange(value, event);
|
|
7593
7593
|
if (onBlur) onBlur();
|
|
7594
7594
|
},
|
|
7595
7595
|
onFocus: onFocus,
|
|
7596
7596
|
onBlur: onBlur,
|
|
7597
|
-
children: function
|
|
7597
|
+
children: function (_ref2) {
|
|
7598
7598
|
var isHovered = _ref2.isHovered,
|
|
7599
7599
|
isPressed = _ref2.isPressed,
|
|
7600
7600
|
isFocused = _ref2.isFocused;
|
|
@@ -7712,11 +7712,11 @@ var useNativeAnimation$3 = function (_ref) {
|
|
|
7712
7712
|
};
|
|
7713
7713
|
});
|
|
7714
7714
|
return {
|
|
7715
|
-
onPressIn: function
|
|
7715
|
+
onPressIn: function () {
|
|
7716
7716
|
color.value = withSpring(1);
|
|
7717
7717
|
pressed.value = 1;
|
|
7718
7718
|
},
|
|
7719
|
-
onPressOut: function
|
|
7719
|
+
onPressOut: function () {
|
|
7720
7720
|
color.value = withSpring(0);
|
|
7721
7721
|
pressed.value = 0;
|
|
7722
7722
|
},
|
|
@@ -7769,7 +7769,7 @@ function RadioButton(_ref) {
|
|
|
7769
7769
|
flexShrink: createResponsiveStyleFromProp(stretch, 1, undefined),
|
|
7770
7770
|
flexBasis: createResponsiveStyleFromProp(stretch, 0),
|
|
7771
7771
|
disabled: disabled,
|
|
7772
|
-
onPress: function
|
|
7772
|
+
onPress: function (e) {
|
|
7773
7773
|
if (onFocus) onFocus(e);
|
|
7774
7774
|
if (onChange) onChange(value);
|
|
7775
7775
|
if (onBlur) onBlur(e);
|
|
@@ -7778,7 +7778,7 @@ function RadioButton(_ref) {
|
|
|
7778
7778
|
onPressOut: onPressOut,
|
|
7779
7779
|
onFocus: onFocus,
|
|
7780
7780
|
onBlur: onBlur,
|
|
7781
|
-
children: function
|
|
7781
|
+
children: function (_ref2) {
|
|
7782
7782
|
var isHovered = _ref2.isHovered,
|
|
7783
7783
|
isPressed = _ref2.isPressed,
|
|
7784
7784
|
isFocused = _ref2.isFocused;
|
|
@@ -7897,7 +7897,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7897
7897
|
textAlignVertical: "top",
|
|
7898
7898
|
minHeight: "kitt.forms.textArea.minHeight"
|
|
7899
7899
|
}, props), {}, {
|
|
7900
|
-
onChange: function
|
|
7900
|
+
onChange: function (e) {
|
|
7901
7901
|
if (!limit || e.nativeEvent.text.length <= limit) {
|
|
7902
7902
|
var _props$onChange;
|
|
7903
7903
|
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, e);
|
|
@@ -8060,10 +8060,10 @@ function Toggle(_ref) {
|
|
|
8060
8060
|
children: [/*#__PURE__*/jsx(Pressable, {
|
|
8061
8061
|
accessibilityRole: "togglebutton",
|
|
8062
8062
|
disabled: isDisabled,
|
|
8063
|
-
onPress: function
|
|
8063
|
+
onPress: function () {
|
|
8064
8064
|
onChange(!value);
|
|
8065
8065
|
},
|
|
8066
|
-
children: function
|
|
8066
|
+
children: function (_ref2) {
|
|
8067
8067
|
var isHovered = _ref2.isHovered,
|
|
8068
8068
|
isPressed = _ref2.isPressed,
|
|
8069
8069
|
isFocused = _ref2.isFocused;
|
|
@@ -8252,11 +8252,11 @@ function FullscreenModalAnimation(_ref) {
|
|
|
8252
8252
|
transparent: true,
|
|
8253
8253
|
supportedOrientations: ['landscape', 'portrait'],
|
|
8254
8254
|
visible: isModalVisible,
|
|
8255
|
-
onShow: function
|
|
8255
|
+
onShow: function () {
|
|
8256
8256
|
if (onEnter) onEnter();
|
|
8257
8257
|
setIsContentVisible(true);
|
|
8258
8258
|
},
|
|
8259
|
-
onDismiss: function
|
|
8259
|
+
onDismiss: function () {
|
|
8260
8260
|
if (onExited) onExited();
|
|
8261
8261
|
},
|
|
8262
8262
|
children: /*#__PURE__*/jsxs(View, {
|
|
@@ -8303,7 +8303,7 @@ function FullscreenModalBehaviour(_ref) {
|
|
|
8303
8303
|
onClose: onClose,
|
|
8304
8304
|
children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
8305
8305
|
visible: visible,
|
|
8306
|
-
onExited: function
|
|
8306
|
+
onExited: function () {
|
|
8307
8307
|
if (onExited) onExited();
|
|
8308
8308
|
setIsModalBehaviourVisible(false);
|
|
8309
8309
|
},
|
|
@@ -8530,11 +8530,11 @@ var useNativeAnimation$2 = function (_ref) {
|
|
|
8530
8530
|
};
|
|
8531
8531
|
});
|
|
8532
8532
|
return {
|
|
8533
|
-
onPressIn: function
|
|
8533
|
+
onPressIn: function () {
|
|
8534
8534
|
color.value = withTiming(1, withTimingConfig);
|
|
8535
8535
|
translate.value = withTiming(2, withTimingConfig);
|
|
8536
8536
|
},
|
|
8537
|
-
onPressOut: function
|
|
8537
|
+
onPressOut: function () {
|
|
8538
8538
|
color.value = withTiming(0, withTimingConfig);
|
|
8539
8539
|
translate.value = withTiming(0, withTimingConfig);
|
|
8540
8540
|
},
|
|
@@ -8626,13 +8626,13 @@ function Highlight(_ref) {
|
|
|
8626
8626
|
});
|
|
8627
8627
|
}
|
|
8628
8628
|
return /*#__PURE__*/jsx(Pressable, {
|
|
8629
|
-
onPress: function
|
|
8629
|
+
onPress: function () {
|
|
8630
8630
|
setIsExpanded(!isExpanded);
|
|
8631
8631
|
setIsInitialRender(false);
|
|
8632
8632
|
},
|
|
8633
8633
|
onPressIn: onPressIn,
|
|
8634
8634
|
onPressOut: onPressOut,
|
|
8635
|
-
children: function
|
|
8635
|
+
children: function (_ref2) {
|
|
8636
8636
|
var isHovered = _ref2.isHovered;
|
|
8637
8637
|
return /*#__PURE__*/jsxs(AnimatedContainer, {
|
|
8638
8638
|
isHovered: isHovered,
|
|
@@ -8781,10 +8781,10 @@ function useNativeAnimation$1(_ref) {
|
|
|
8781
8781
|
return {
|
|
8782
8782
|
opacityStyles: opacityStyles,
|
|
8783
8783
|
scaleStyles: scaleStyles,
|
|
8784
|
-
onPressIn: function
|
|
8784
|
+
onPressIn: function () {
|
|
8785
8785
|
pressed.value = true;
|
|
8786
8786
|
},
|
|
8787
|
-
onPressOut: function
|
|
8787
|
+
onPressOut: function () {
|
|
8788
8788
|
pressed.value = false;
|
|
8789
8789
|
}
|
|
8790
8790
|
};
|
|
@@ -8863,7 +8863,7 @@ function IconButton(_ref) {
|
|
|
8863
8863
|
onPress: onPress,
|
|
8864
8864
|
onPressIn: onPressIn,
|
|
8865
8865
|
onPressOut: onPressOut,
|
|
8866
|
-
children: function
|
|
8866
|
+
children: function (_ref2) {
|
|
8867
8867
|
var isHovered = _ref2.isHovered,
|
|
8868
8868
|
isPressed = _ref2.isPressed,
|
|
8869
8869
|
isFocused = _ref2.isFocused;
|
|
@@ -9192,7 +9192,7 @@ function MapMarker(_ref2) {
|
|
|
9192
9192
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
9193
9193
|
testID: testID,
|
|
9194
9194
|
onPress: onPress,
|
|
9195
|
-
children: function
|
|
9195
|
+
children: function (_ref3) {
|
|
9196
9196
|
var isHovered = _ref3.isHovered;
|
|
9197
9197
|
return /*#__PURE__*/jsx(StaticMapMarker$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
9198
9198
|
isHovered: isHovered
|
|
@@ -11930,19 +11930,19 @@ function NavigationModalBehaviour(_ref) {
|
|
|
11930
11930
|
children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
11931
11931
|
appear: shouldAppear,
|
|
11932
11932
|
visible: visible,
|
|
11933
|
-
onEnter: function
|
|
11933
|
+
onEnter: function () {
|
|
11934
11934
|
if (onEnter) onEnter();
|
|
11935
11935
|
|
|
11936
11936
|
// Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
|
|
11937
11937
|
setShouldAppear(false);
|
|
11938
11938
|
},
|
|
11939
|
-
onExit: function
|
|
11939
|
+
onExit: function () {
|
|
11940
11940
|
if (onExit) onExit();
|
|
11941
11941
|
|
|
11942
11942
|
// Reset appear value to its original value for future modal display
|
|
11943
11943
|
setShouldAppear(appear);
|
|
11944
11944
|
},
|
|
11945
|
-
onExited: function
|
|
11945
|
+
onExited: function () {
|
|
11946
11946
|
if (onExited) onExited();
|
|
11947
11947
|
setIsModalBehaviourVisible(false);
|
|
11948
11948
|
},
|
|
@@ -12303,7 +12303,7 @@ function Picker(_ref) {
|
|
|
12303
12303
|
isOpen: state.isOpen,
|
|
12304
12304
|
selectedItem: state.currentValue,
|
|
12305
12305
|
disabled: disabled,
|
|
12306
|
-
onPress: function
|
|
12306
|
+
onPress: function () {
|
|
12307
12307
|
if (syncStateWithSourceValue) {
|
|
12308
12308
|
dispatch({
|
|
12309
12309
|
type: 'open-modal-with-value',
|
|
@@ -12357,7 +12357,7 @@ function Picker(_ref) {
|
|
|
12357
12357
|
accessibilityState: {
|
|
12358
12358
|
selected: isSelected
|
|
12359
12359
|
},
|
|
12360
|
-
onPress: function
|
|
12360
|
+
onPress: function () {
|
|
12361
12361
|
handleInternalChange(item.props.value);
|
|
12362
12362
|
},
|
|
12363
12363
|
children: function (_ref2) {
|
|
@@ -12378,7 +12378,7 @@ function Picker(_ref) {
|
|
|
12378
12378
|
children: /*#__PURE__*/jsx(Button, {
|
|
12379
12379
|
stretch: true,
|
|
12380
12380
|
type: "primary",
|
|
12381
|
-
onPress: function
|
|
12381
|
+
onPress: function () {
|
|
12382
12382
|
if (onChange) onChange(state.internalValue);
|
|
12383
12383
|
dispatch({
|
|
12384
12384
|
type: 'change-value'
|
|
@@ -12514,7 +12514,7 @@ function Skeleton(_ref) {
|
|
|
12514
12514
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
12515
12515
|
overflow: "hidden",
|
|
12516
12516
|
style: style,
|
|
12517
|
-
onLayout: function
|
|
12517
|
+
onLayout: function (_ref2) {
|
|
12518
12518
|
var nativeEvent = _ref2.nativeEvent;
|
|
12519
12519
|
return setWidth(nativeEvent.layout.width);
|
|
12520
12520
|
},
|
|
@@ -12736,7 +12736,7 @@ function StaticMap(_ref) {
|
|
|
12736
12736
|
position: "relative",
|
|
12737
12737
|
maxWidth: mapBoxMaxPictureWidth,
|
|
12738
12738
|
height: height,
|
|
12739
|
-
onLayout: function
|
|
12739
|
+
onLayout: function (event) {
|
|
12740
12740
|
var nativeEvent = event.nativeEvent;
|
|
12741
12741
|
var rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
|
|
12742
12742
|
setCurrentWidth(rangedMapWidth);
|
|
@@ -12748,11 +12748,11 @@ function StaticMap(_ref) {
|
|
|
12748
12748
|
width: currentWidth,
|
|
12749
12749
|
height: height,
|
|
12750
12750
|
alt: alt,
|
|
12751
|
-
onLoadEnd: function
|
|
12751
|
+
onLoadEnd: function () {
|
|
12752
12752
|
setIsLoading(false);
|
|
12753
12753
|
if (onLoaded) onLoaded();
|
|
12754
12754
|
},
|
|
12755
|
-
onError: function
|
|
12755
|
+
onError: function () {
|
|
12756
12756
|
setHasError(true);
|
|
12757
12757
|
if (onError) onError();
|
|
12758
12758
|
}
|
|
@@ -12777,7 +12777,7 @@ function StaticMap(_ref) {
|
|
|
12777
12777
|
width: "100%",
|
|
12778
12778
|
height: "100%",
|
|
12779
12779
|
children: /*#__PURE__*/jsx(StaticMapError, {
|
|
12780
|
-
onReload: function
|
|
12780
|
+
onReload: function () {
|
|
12781
12781
|
setHasError(false);
|
|
12782
12782
|
setIsLoading(true);
|
|
12783
12783
|
setCurrentMapKey(function (prev) {
|
|
@@ -13024,7 +13024,7 @@ function StoryContainer(_ref) {
|
|
|
13024
13024
|
var StoryDecorator = makeDecorator({
|
|
13025
13025
|
name: 'StoryDecorator',
|
|
13026
13026
|
parameterName: 'storyDecorator',
|
|
13027
|
-
wrapper: function
|
|
13027
|
+
wrapper: function (storyFn, context) {
|
|
13028
13028
|
var story = storyFn(context);
|
|
13029
13029
|
if (context.parameters.disableStoryContainer) {
|
|
13030
13030
|
return story;
|
|
@@ -13209,7 +13209,7 @@ function TabBar(_ref) {
|
|
|
13209
13209
|
return /*#__PURE__*/jsx(View, {
|
|
13210
13210
|
children: /*#__PURE__*/cloneElement(child, {
|
|
13211
13211
|
color: color,
|
|
13212
|
-
onPress: function
|
|
13212
|
+
onPress: function (event) {
|
|
13213
13213
|
var _child$props$onPress, _child$props;
|
|
13214
13214
|
onChangeTab({
|
|
13215
13215
|
tab: tabs[index],
|
|
@@ -13275,7 +13275,7 @@ function Tag(_ref) {
|
|
|
13275
13275
|
height: "kitt.tag.".concat(size, ".height"),
|
|
13276
13276
|
paddingLeft: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingLeft"),
|
|
13277
13277
|
paddingRight: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingRight"),
|
|
13278
|
-
backgroundColor: variant === 'fill' || variant === 'contrast' ? function
|
|
13278
|
+
backgroundColor: variant === 'fill' || variant === 'contrast' ? function () {
|
|
13279
13279
|
if (variant === 'subtle') {
|
|
13280
13280
|
return 'transparent';
|
|
13281
13281
|
}
|
|
@@ -13284,7 +13284,7 @@ function Tag(_ref) {
|
|
|
13284
13284
|
}
|
|
13285
13285
|
return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".4")];
|
|
13286
13286
|
}() : 'kitt.transparent',
|
|
13287
|
-
borderColor: withWhiteBorder ? 'kitt.white' : function
|
|
13287
|
+
borderColor: withWhiteBorder ? 'kitt.white' : function () {
|
|
13288
13288
|
return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".6")];
|
|
13289
13289
|
}(),
|
|
13290
13290
|
borderWidth: withWhiteBorder ? 1 : "kitt.tag.variant.".concat(variant, ".borderWidth"),
|
|
@@ -13366,7 +13366,7 @@ function ModalDateTimePicker(_ref) {
|
|
|
13366
13366
|
stretch: true,
|
|
13367
13367
|
testID: "timePicker.ModalDateTimePicker.submitButton",
|
|
13368
13368
|
type: "primary",
|
|
13369
|
-
onPress: function
|
|
13369
|
+
onPress: function () {
|
|
13370
13370
|
onChange(currentValue);
|
|
13371
13371
|
},
|
|
13372
13372
|
children: buttonContent
|
|
@@ -13413,7 +13413,7 @@ var TimePickerPressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13413
13413
|
width: createResponsiveStyleFromProp(stretch, '100%', 'kitt.forms.timePicker.minWidth'),
|
|
13414
13414
|
pointerEvents: "box-only",
|
|
13415
13415
|
onPress: onPress,
|
|
13416
|
-
children: function
|
|
13416
|
+
children: function (_ref2) {
|
|
13417
13417
|
var isHovered = _ref2.isHovered,
|
|
13418
13418
|
isFocused = _ref2.isFocused,
|
|
13419
13419
|
isPressed = _ref2.isPressed;
|
|
@@ -13490,7 +13490,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13490
13490
|
isHoveredInternal: isHoveredInternal,
|
|
13491
13491
|
isFocusedInternal: isFocusedInternal,
|
|
13492
13492
|
isPressedInternal: isPressedInternal,
|
|
13493
|
-
onPress: function
|
|
13493
|
+
onPress: function () {
|
|
13494
13494
|
setIsPickerVisible(true);
|
|
13495
13495
|
}
|
|
13496
13496
|
}), Platform.OS === 'android' && isPickerVisible ? /*#__PURE__*/jsx(DateTimePicker, {
|
|
@@ -13514,7 +13514,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13514
13514
|
value: pickerValue,
|
|
13515
13515
|
validateButtonLabel: validateButtonLabel,
|
|
13516
13516
|
onChange: handleChange,
|
|
13517
|
-
onClose: function
|
|
13517
|
+
onClose: function () {
|
|
13518
13518
|
setIsPickerVisible(false);
|
|
13519
13519
|
}
|
|
13520
13520
|
}) : null]
|
|
@@ -13877,7 +13877,7 @@ function Tooltip(_ref) {
|
|
|
13877
13877
|
ref: reference,
|
|
13878
13878
|
children: renderPressable({
|
|
13879
13879
|
ref: getPressableRect,
|
|
13880
|
-
onPress: function
|
|
13880
|
+
onPress: function () {
|
|
13881
13881
|
if (onToggle) onToggle(!!pressed.value);
|
|
13882
13882
|
pressed.value = !pressed.value;
|
|
13883
13883
|
},
|
|
@@ -13896,7 +13896,7 @@ function Tooltip(_ref) {
|
|
|
13896
13896
|
left: customShiftData.left,
|
|
13897
13897
|
right: customShiftData.right,
|
|
13898
13898
|
zIndex: zIndex,
|
|
13899
|
-
onLayout: function
|
|
13899
|
+
onLayout: function (_ref2) {
|
|
13900
13900
|
var nativeEvent = _ref2.nativeEvent;
|
|
13901
13901
|
return setFloatingWidth(nativeEvent.layout.width);
|
|
13902
13902
|
},
|
|
@@ -14059,7 +14059,7 @@ function KittThemeProvider(_ref) {
|
|
|
14059
14059
|
var KittThemeDecorator = makeDecorator({
|
|
14060
14060
|
name: 'ThemeDecorator',
|
|
14061
14061
|
parameterName: 'theme',
|
|
14062
|
-
wrapper: function
|
|
14062
|
+
wrapper: function (storyFn, context, _ref2) {
|
|
14063
14063
|
var _parameters$isSSR;
|
|
14064
14064
|
var _ref2$options = _ref2.options,
|
|
14065
14065
|
options = _ref2$options === void 0 ? {} : _ref2$options,
|