@ornikar/kitt-universal 26.3.1-canary.81585ea2fab81405b6eb9b1acf0ccef10dcfb94a.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.
@@ -2529,7 +2529,7 @@ var breakpoints = {
2529
2529
  // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
2530
2530
  var theme = {
2531
2531
  spacing: spacing,
2532
- getSpacing: function getSpacing(multiplier) {
2532
+ getSpacing: function (multiplier) {
2533
2533
  return spacing * multiplier;
2534
2534
  },
2535
2535
  colors: colors,
@@ -2716,7 +2716,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
2716
2716
  onPress: onPress,
2717
2717
  onHoverIn: onHoverIn,
2718
2718
  onHoverOut: onHoverOut,
2719
- children: function children(_ref3) {
2719
+ children: function (_ref3) {
2720
2720
  var isHovered = _ref3.isHovered,
2721
2721
  isPressed = _ref3.isPressed,
2722
2722
  isFocused = _ref3.isFocused;
@@ -3550,7 +3550,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3550
3550
  onHoverOut: onHoverOut,
3551
3551
  onFocus: onFocus,
3552
3552
  onBlur: onBlur,
3553
- children: function children(_ref2) {
3553
+ children: function (_ref2) {
3554
3554
  var isHovered = _ref2.isHovered,
3555
3555
  isPressed = _ref2.isPressed,
3556
3556
  isFocused = _ref2.isFocused;
@@ -3646,7 +3646,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3646
3646
  stretch: stretch,
3647
3647
  disabled: isLoading ? true : disabled,
3648
3648
  icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
3649
- onPress: function handlePress(e) {
3649
+ onPress: function (e) {
3650
3650
  var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
3651
3651
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3652
3652
  return _regeneratorRuntime().wrap(function (_context) {
@@ -3975,7 +3975,7 @@ function CloseButton(_ref) {
3975
3975
  onPress = _ref.onPress;
3976
3976
  var onCloseContextCallback = useOnCloseModalBehaviour();
3977
3977
  return /*#__PURE__*/cloneElement(children, {
3978
- onPress: function handleClose() {
3978
+ onPress: function () {
3979
3979
  if (onPress) onPress();
3980
3980
  onCloseContextCallback();
3981
3981
  }
@@ -4125,7 +4125,7 @@ function CardModalBehaviour(_ref) {
4125
4125
  onClose: onClose,
4126
4126
  children: /*#__PURE__*/jsx(CardModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
4127
4127
  visible: visible,
4128
- onExited: function handleExitAnimationDone() {
4128
+ onExited: function () {
4129
4129
  if (onExited) onExited();
4130
4130
  setIsModalBehaviourVisible(false);
4131
4131
  },
@@ -4324,8 +4324,8 @@ function AnimatedChoiceItemView(_ref) {
4324
4324
 
4325
4325
  var useNativeAnimation$4 = function () {
4326
4326
  return {
4327
- onPressIn: function onPressIn() {},
4328
- onPressOut: function onPressOut() {},
4327
+ onPressIn: function () {},
4328
+ onPressOut: function () {},
4329
4329
  backgroundStyles: undefined
4330
4330
  };
4331
4331
  };
@@ -4382,7 +4382,7 @@ function ChoiceItem(_ref) {
4382
4382
  style: style,
4383
4383
  onBlur: onBlur,
4384
4384
  onFocus: onFocus,
4385
- onPress: function handlePress(e) {
4385
+ onPress: function (e) {
4386
4386
  if (onFocus) onFocus(e);
4387
4387
  if (onPress) onPress();
4388
4388
  handleChange();
@@ -4390,7 +4390,7 @@ function ChoiceItem(_ref) {
4390
4390
  },
4391
4391
  onPressIn: onPressIn,
4392
4392
  onPressOut: onPressOut,
4393
- children: function children(_ref2) {
4393
+ children: function (_ref2) {
4394
4394
  var isHovered = _ref2.isHovered,
4395
4395
  isPressed = _ref2.isPressed;
4396
4396
  return /*#__PURE__*/jsxs(AnimatedChoiceItemView, {
@@ -4486,7 +4486,7 @@ function Choices(_ref2) {
4486
4486
  disabled: disabled,
4487
4487
  variant: variant,
4488
4488
  onPress: !isForm ? onPress : undefined,
4489
- onChange: isForm ? function handleChange(newValue) {
4489
+ onChange: isForm ? function (newValue) {
4490
4490
  setCurrentValue(newValue);
4491
4491
  if (onChange) onChange(newValue);
4492
4492
  } : undefined,
@@ -4623,7 +4623,7 @@ function DialogModalBehaviour(_ref) {
4623
4623
  },
4624
4624
  children: /*#__PURE__*/jsx(DialogModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
4625
4625
  visible: visible,
4626
- onExited: function handleExitAnimationDone() {
4626
+ onExited: function () {
4627
4627
  if (onExited) onExited();
4628
4628
  setIsModalBehaviourVisible(false);
4629
4629
  },
@@ -5070,7 +5070,7 @@ function isReactElement(element) {
5070
5070
  return _typeof(element) === 'object' && element !== null && 'type' in element && 'props' in element;
5071
5071
  }
5072
5072
  function Autocomplete(_ref) {
5073
- var _children = _ref.children,
5073
+ var children = _ref.children,
5074
5074
  name = _ref.name,
5075
5075
  disabled = _ref.disabled,
5076
5076
  placeholder = _ref.placeholder,
@@ -5097,7 +5097,7 @@ function Autocomplete(_ref) {
5097
5097
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
5098
5098
  maxItemContainerHeight = _ref.maxItemContainerHeight,
5099
5099
  props = _objectWithoutProperties(_ref, _excluded$x);
5100
- var childrenArray = Children.toArray(_children);
5100
+ var childrenArray = Children.toArray(children);
5101
5101
  var items = childrenArray.filter(isReactElement).map(function (child) {
5102
5102
  return {
5103
5103
  child: child,
@@ -5108,12 +5108,12 @@ function Autocomplete(_ref) {
5108
5108
  defaultIsOpen: isInitialOpen,
5109
5109
  initialSelectedItem: initialValue,
5110
5110
  initialInputValue: initialValue ? itemToString(initialValue) : undefined,
5111
- itemToString: function handleItemToString(item) {
5111
+ itemToString: function (item) {
5112
5112
  // Prevents returning null values
5113
5113
  if (!itemToString) return '';
5114
5114
  return itemToString(item || undefined);
5115
5115
  },
5116
- stateReducer: function stateReducer(state, changes) {
5116
+ stateReducer: function (state, changes) {
5117
5117
  switch (changes.type) {
5118
5118
  case Downshift.stateChangeTypes.changeInput:
5119
5119
  return _objectSpread(_objectSpread({}, changes), {}, {
@@ -5123,7 +5123,7 @@ function Autocomplete(_ref) {
5123
5123
  return changes;
5124
5124
  }
5125
5125
  },
5126
- onChange: function onChange(selectedItem, stateAndHelpers) {
5126
+ onChange: function (selectedItem, stateAndHelpers) {
5127
5127
  if (_onChange) {
5128
5128
  _onChange(selectedItem, stateAndHelpers);
5129
5129
  }
@@ -5131,7 +5131,7 @@ function Autocomplete(_ref) {
5131
5131
  onSelect: onSelectItem,
5132
5132
  onOuterClick: onOuterPress,
5133
5133
  onInputValueChange: onInputChange,
5134
- children: function children(_ref2) {
5134
+ children: function (_ref2) {
5135
5135
  var getRootProps = _ref2.getRootProps,
5136
5136
  getInputProps = _ref2.getInputProps,
5137
5137
  getMenuProps = _ref2.getMenuProps,
@@ -5183,20 +5183,20 @@ function Autocomplete(_ref) {
5183
5183
  right: right || (canDisplayCollapseButton ? /*#__PURE__*/jsx(InputPressable, _objectSpread(_objectSpread({}, toggleProps), {}, {
5184
5184
  testID: "kitt.Autocomplete.listToggle",
5185
5185
  hitSlop: 40,
5186
- onPress: function handleTogglePress(e) {
5186
+ onPress: function (e) {
5187
5187
  onClickToggle(e);
5188
5188
  },
5189
5189
  children: /*#__PURE__*/jsx(InputIcon, {
5190
5190
  icon: isCurrentlyOpen ? /*#__PURE__*/jsx(CaretUpFillIcon, {}) : /*#__PURE__*/jsx(CaretDownFillIcon, {})
5191
5191
  })
5192
5192
  })) : null),
5193
- onFocus: function onFocus(e) {
5193
+ onFocus: function (e) {
5194
5194
  openMenu();
5195
5195
  /** @ts-expect-error onFocus wants web events */
5196
5196
  if (onSearchInputFocus) onSearchInputFocus(e);
5197
5197
  if (_onFocus) _onFocus(e);
5198
5198
  },
5199
- onBlur: function onBlur(e) {
5199
+ onBlur: function (e) {
5200
5200
  /** @ts-expect-error onBlur wants web events */
5201
5201
  if (onSearchInputBlur) onSearchInputBlur(e);
5202
5202
 
@@ -5232,10 +5232,10 @@ function Autocomplete(_ref) {
5232
5232
  selected: ariaSelected
5233
5233
  },
5234
5234
  disabled: disabled,
5235
- onPress: function onPress(e) {
5235
+ onPress: function (e) {
5236
5236
  if (onClick) onClick(e);
5237
5237
  },
5238
- children: function children(_ref5) {
5238
+ children: function (_ref5) {
5239
5239
  var isHovered = _ref5.isHovered,
5240
5240
  isFocused = _ref5.isFocused,
5241
5241
  isPressed = _ref5.isPressed;
@@ -5325,12 +5325,12 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5325
5325
  disabled: disabled
5326
5326
  },
5327
5327
  disabled: disabled,
5328
- onPress: function handlePress(e) {
5328
+ onPress: function (e) {
5329
5329
  if (onFocus) onFocus();
5330
5330
  if (onChange) onChange(!checked, e);
5331
5331
  if (onBlur) onBlur();
5332
5332
  },
5333
- children: function children(_ref2) {
5333
+ children: function (_ref2) {
5334
5334
  var isHovered = _ref2.isHovered,
5335
5335
  isPressed = _ref2.isPressed,
5336
5336
  isFocused = _ref2.isFocused;
@@ -6139,10 +6139,10 @@ var GoogleMapsAutocompleteContext = /*#__PURE__*/createContext({
6139
6139
  isLoadingResultDetails: false,
6140
6140
  shouldDisplayEmptyStateWhenNoResults: false
6141
6141
  },
6142
- onInputChange: function onInputChange() {
6142
+ onInputChange: function () {
6143
6143
  return Promise.resolve();
6144
6144
  },
6145
- onSelectItem: function onSelectItem() {}
6145
+ onSelectItem: function () {}
6146
6146
  });
6147
6147
  function GoogleMapsAutocompleteProvider(_ref) {
6148
6148
  var children = _ref.children,
@@ -6395,7 +6395,7 @@ function InputAddress(_ref) {
6395
6395
  return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
6396
6396
  itemToString: itemToString,
6397
6397
  initialValue: formattedInitialValue,
6398
- checkSelectedItem: function checkSelectedItem(selectedItem, item) {
6398
+ checkSelectedItem: function (selectedItem, item) {
6399
6399
  return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.place_id) === item.place_id;
6400
6400
  },
6401
6401
  right: state.isLoadingSearch || state.isLoadingResultDetails ? /*#__PURE__*/jsx(Icon, {
@@ -6404,10 +6404,10 @@ function InputAddress(_ref) {
6404
6404
  }) : undefined,
6405
6405
  errorElement: state.hasSearchError || state.hasSelectResultError ? errorElement : null,
6406
6406
  emptyResultsElement: state.items.length === 0 ? emptyResultsElement : null,
6407
- onInputChange: function onInputChange(v) {
6407
+ onInputChange: function (v) {
6408
6408
  _onInputChange(v);
6409
6409
  },
6410
- onChange: function onChange(v) {
6410
+ onChange: function (v) {
6411
6411
  onSelectItem(v, _onChange);
6412
6412
  },
6413
6413
  children: state.items.map(function (item) {
@@ -6489,7 +6489,7 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
6489
6489
  ref: ref
6490
6490
  }, props), {}, {
6491
6491
  inputMode: "numeric",
6492
- onChange: function handleChange(event) {
6492
+ onChange: function (event) {
6493
6493
  if (!onChange) return;
6494
6494
  var value = parseFloat(event.nativeEvent.text);
6495
6495
 
@@ -6521,7 +6521,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
6521
6521
  testID: "kitt.InputPassword.passwordToggle",
6522
6522
  hitSlop: 20,
6523
6523
  accessibilityRole: "button",
6524
- onPress: function onPress() {
6524
+ onPress: function () {
6525
6525
  return setIsVisible(function (prev) {
6526
6526
  return !prev;
6527
6527
  });
@@ -6556,7 +6556,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
6556
6556
  enterKeyHint: currentEnterKeyHint,
6557
6557
  autoComplete: autoComplete,
6558
6558
  textContentType: "telephoneNumber",
6559
- onChange: function handleChange(event) {
6559
+ onChange: function (event) {
6560
6560
  var number = parseNumber(event.nativeEvent.text);
6561
6561
 
6562
6562
  // When intl phone number is valid :
@@ -6747,14 +6747,14 @@ function Radio(_ref, ref) {
6747
6747
  focusable: checked && !disabled,
6748
6748
  flexDirection: "row",
6749
6749
  alignItems: "center",
6750
- onPress: function handlePress(event) {
6750
+ onPress: function (event) {
6751
6751
  if (onFocus) onFocus();
6752
6752
  if (onChange) onChange(value, event);
6753
6753
  if (onBlur) onBlur();
6754
6754
  },
6755
6755
  onFocus: onFocus,
6756
6756
  onBlur: onBlur,
6757
- children: function children(_ref2) {
6757
+ children: function (_ref2) {
6758
6758
  var isHovered = _ref2.isHovered,
6759
6759
  isPressed = _ref2.isPressed,
6760
6760
  isFocused = _ref2.isFocused;
@@ -6929,7 +6929,7 @@ function RadioButton(_ref) {
6929
6929
  flexShrink: createResponsiveStyleFromProp(stretch, 1, undefined),
6930
6930
  flexBasis: createResponsiveStyleFromProp(stretch, 0),
6931
6931
  disabled: disabled,
6932
- onPress: function handlePress(e) {
6932
+ onPress: function (e) {
6933
6933
  if (onFocus) onFocus(e);
6934
6934
  if (onChange) onChange(value);
6935
6935
  if (onBlur) onBlur(e);
@@ -6938,7 +6938,7 @@ function RadioButton(_ref) {
6938
6938
  onPressOut: onPressOut,
6939
6939
  onFocus: onFocus,
6940
6940
  onBlur: onBlur,
6941
- children: function children(_ref2) {
6941
+ children: function (_ref2) {
6942
6942
  var isHovered = _ref2.isHovered,
6943
6943
  isPressed = _ref2.isPressed,
6944
6944
  isFocused = _ref2.isFocused;
@@ -7057,7 +7057,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
7057
7057
  textAlignVertical: "top",
7058
7058
  minHeight: "kitt.forms.textArea.minHeight"
7059
7059
  }, props), {}, {
7060
- onChange: function handleOnChange(e) {
7060
+ onChange: function (e) {
7061
7061
  if (!limit || e.nativeEvent.text.length <= limit) {
7062
7062
  var _props$onChange;
7063
7063
  (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, e);
@@ -7220,10 +7220,10 @@ function Toggle(_ref) {
7220
7220
  children: [/*#__PURE__*/jsx(Pressable, {
7221
7221
  accessibilityRole: "togglebutton",
7222
7222
  disabled: isDisabled,
7223
- onPress: function handlePress() {
7223
+ onPress: function () {
7224
7224
  onChange(!value);
7225
7225
  },
7226
- children: function children(_ref2) {
7226
+ children: function (_ref2) {
7227
7227
  var isHovered = _ref2.isHovered,
7228
7228
  isPressed = _ref2.isPressed,
7229
7229
  isFocused = _ref2.isFocused;
@@ -7388,7 +7388,7 @@ function FullscreenModalBehaviour(_ref) {
7388
7388
  onClose: onClose,
7389
7389
  children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
7390
7390
  visible: visible,
7391
- onExited: function handleExitAnimationDone() {
7391
+ onExited: function () {
7392
7392
  if (onExited) onExited();
7393
7393
  setIsModalBehaviourVisible(false);
7394
7394
  },
@@ -7683,13 +7683,13 @@ function Highlight(_ref) {
7683
7683
  });
7684
7684
  }
7685
7685
  return /*#__PURE__*/jsx(Pressable, {
7686
- onPress: function handlePress() {
7686
+ onPress: function () {
7687
7687
  setIsExpanded(!isExpanded);
7688
7688
  setIsInitialRender(false);
7689
7689
  },
7690
7690
  onPressIn: onPressIn,
7691
7691
  onPressOut: onPressOut,
7692
- children: function children(_ref2) {
7692
+ children: function (_ref2) {
7693
7693
  var isHovered = _ref2.isHovered;
7694
7694
  return /*#__PURE__*/jsxs(AnimatedContainer, {
7695
7695
  isHovered: isHovered,
@@ -7852,8 +7852,8 @@ function useNativeAnimation$1() {
7852
7852
  return {
7853
7853
  opacityStyles: undefined,
7854
7854
  scaleStyles: undefined,
7855
- onPressIn: function onPressIn() {},
7856
- onPressOut: function onPressOut() {}
7855
+ onPressIn: function () {},
7856
+ onPressOut: function () {}
7857
7857
  };
7858
7858
  }
7859
7859
 
@@ -7927,7 +7927,7 @@ function IconButton(_ref) {
7927
7927
  onPress: onPress,
7928
7928
  onPressIn: onPressIn,
7929
7929
  onPressOut: onPressOut,
7930
- children: function children(_ref2) {
7930
+ children: function (_ref2) {
7931
7931
  var isHovered = _ref2.isHovered,
7932
7932
  isPressed = _ref2.isPressed,
7933
7933
  isFocused = _ref2.isFocused;
@@ -8339,7 +8339,7 @@ function MapMarker(_ref2) {
8339
8339
  return /*#__PURE__*/jsx(Pressable$1, {
8340
8340
  testID: testID,
8341
8341
  onPress: onPress,
8342
- children: function children(_ref3) {
8342
+ children: function (_ref3) {
8343
8343
  var isHovered = _ref3.isHovered;
8344
8344
  return /*#__PURE__*/jsx(StaticMapMarker$1, _objectSpread(_objectSpread({}, props), {}, {
8345
8345
  isHovered: isHovered
@@ -11054,19 +11054,19 @@ function NavigationModalBehaviour(_ref) {
11054
11054
  children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
11055
11055
  appear: shouldAppear,
11056
11056
  visible: visible,
11057
- onEnter: function handleEnter() {
11057
+ onEnter: function () {
11058
11058
  if (onEnter) onEnter();
11059
11059
 
11060
11060
  // Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
11061
11061
  setShouldAppear(false);
11062
11062
  },
11063
- onExit: function handleExit() {
11063
+ onExit: function () {
11064
11064
  if (onExit) onExit();
11065
11065
 
11066
11066
  // Reset appear value to its original value for future modal display
11067
11067
  setShouldAppear(appear);
11068
11068
  },
11069
- onExited: function handleExitAnimationDone() {
11069
+ onExited: function () {
11070
11070
  if (onExited) onExited();
11071
11071
  setIsModalBehaviourVisible(false);
11072
11072
  },
@@ -11332,18 +11332,18 @@ function Picker(_ref) {
11332
11332
  items: items,
11333
11333
  initialSelectedItem: initialValueIndex > -1 ? items[initialValueIndex] : undefined,
11334
11334
  initialIsOpen: isInitialOpen,
11335
- stateReducer: function stateReducer(state, actionAndChanges) {
11335
+ stateReducer: function (state, actionAndChanges) {
11336
11336
  return webUseSelectReducer(state, actionAndChanges, {
11337
11337
  keepOpenOnChange: keepOpenOnChange
11338
11338
  });
11339
11339
  },
11340
11340
  selectedItem: syncStateWithSourceValue ? sourceValue : undefined,
11341
- onIsOpenChange: function onIsOpenChange(changes) {
11341
+ onIsOpenChange: function (changes) {
11342
11342
  if (changes.isOpen === false) {
11343
11343
  if (onClose) onClose();
11344
11344
  }
11345
11345
  },
11346
- onSelectedItemChange: function onSelectedItemChange(changes) {
11346
+ onSelectedItemChange: function (changes) {
11347
11347
  if (!onChange) return;
11348
11348
  if (changes.selectedItem === null) {
11349
11349
  onChange(undefined);
@@ -11561,7 +11561,7 @@ function Skeleton(_ref) {
11561
11561
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
11562
11562
  overflow: "hidden",
11563
11563
  style: style,
11564
- onLayout: function onLayout(_ref2) {
11564
+ onLayout: function (_ref2) {
11565
11565
  var nativeEvent = _ref2.nativeEvent;
11566
11566
  return setWidth(nativeEvent.layout.width);
11567
11567
  },
@@ -11787,7 +11787,7 @@ function StaticMap(_ref) {
11787
11787
  position: "relative",
11788
11788
  maxWidth: mapBoxMaxPictureWidth,
11789
11789
  height: height,
11790
- onLayout: function handleParentLayout(event) {
11790
+ onLayout: function (event) {
11791
11791
  var nativeEvent = event.nativeEvent;
11792
11792
  var rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
11793
11793
  setCurrentWidth(rangedMapWidth);
@@ -11799,11 +11799,11 @@ function StaticMap(_ref) {
11799
11799
  width: currentWidth,
11800
11800
  height: height,
11801
11801
  alt: alt,
11802
- onLoadEnd: function handleImageLoadEnd() {
11802
+ onLoadEnd: function () {
11803
11803
  setIsLoading(false);
11804
11804
  if (onLoaded) onLoaded();
11805
11805
  },
11806
- onError: function handleError() {
11806
+ onError: function () {
11807
11807
  setHasError(true);
11808
11808
  if (onError) onError();
11809
11809
  }
@@ -11828,7 +11828,7 @@ function StaticMap(_ref) {
11828
11828
  width: "100%",
11829
11829
  height: "100%",
11830
11830
  children: /*#__PURE__*/jsx(StaticMapError, {
11831
- onReload: function handleReload() {
11831
+ onReload: function () {
11832
11832
  setHasError(false);
11833
11833
  setIsLoading(true);
11834
11834
  setCurrentMapKey(function (prev) {
@@ -12076,7 +12076,7 @@ function StoryContainer(_ref) {
12076
12076
  var StoryDecorator = makeDecorator({
12077
12077
  name: 'StoryDecorator',
12078
12078
  parameterName: 'storyDecorator',
12079
- wrapper: function wrapper(storyFn, context) {
12079
+ wrapper: function (storyFn, context) {
12080
12080
  var story = storyFn(context);
12081
12081
  if (context.parameters.disableStoryContainer) {
12082
12082
  return story;
@@ -12257,7 +12257,7 @@ function TabBar(_ref) {
12257
12257
  return /*#__PURE__*/jsx(View, {
12258
12258
  children: /*#__PURE__*/cloneElement(child, {
12259
12259
  color: color,
12260
- onPress: function onPress(event) {
12260
+ onPress: function (event) {
12261
12261
  var _child$props$onPress, _child$props;
12262
12262
  onChangeTab({
12263
12263
  tab: tabs[index],
@@ -12323,7 +12323,7 @@ function Tag(_ref) {
12323
12323
  height: "kitt.tag.".concat(size, ".height"),
12324
12324
  paddingLeft: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingLeft"),
12325
12325
  paddingRight: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingRight"),
12326
- backgroundColor: variant === 'fill' || variant === 'contrast' ? function getBackgroundColor() {
12326
+ backgroundColor: variant === 'fill' || variant === 'contrast' ? function () {
12327
12327
  if (variant === 'subtle') {
12328
12328
  return 'transparent';
12329
12329
  }
@@ -12332,7 +12332,7 @@ function Tag(_ref) {
12332
12332
  }
12333
12333
  return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".4")];
12334
12334
  }() : 'kitt.transparent',
12335
- borderColor: withWhiteBorder ? 'kitt.white' : function getBorderColor() {
12335
+ borderColor: withWhiteBorder ? 'kitt.white' : function () {
12336
12336
  return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".6")];
12337
12337
  }(),
12338
12338
  borderWidth: withWhiteBorder ? 1 : "kitt.tag.variant.".concat(variant, ".borderWidth"),
@@ -12443,7 +12443,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12443
12443
  isFocusedInternal: isFocusedInternal,
12444
12444
  isPressedInternal: isPressedInternal
12445
12445
  }),
12446
- onChange: function handleInputChange(event) {
12446
+ onChange: function (event) {
12447
12447
  var currentValue = event.nativeEvent.text;
12448
12448
  if (currentValue.length === 0) {
12449
12449
  setInputValue(currentValue);
@@ -12493,7 +12493,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12493
12493
  setInputValue(sanitizedValue);
12494
12494
  handleChange(sanitizedValue);
12495
12495
  },
12496
- onBlur: function handleBlur() {
12496
+ onBlur: function () {
12497
12497
  if (inputValue.indexOf(':') === 1) {
12498
12498
  setInputValue("0".concat(inputValue));
12499
12499
  }
@@ -13048,7 +13048,7 @@ function KittThemeProvider(_ref) {
13048
13048
  var KittThemeDecorator = makeDecorator({
13049
13049
  name: 'ThemeDecorator',
13050
13050
  parameterName: 'theme',
13051
- wrapper: function wrapper(storyFn, context, _ref2) {
13051
+ wrapper: function (storyFn, context, _ref2) {
13052
13052
  var _parameters$isSSR;
13053
13053
  var _ref2$options = _ref2.options,
13054
13054
  options = _ref2$options === void 0 ? {} : _ref2$options,