@ornikar/kitt-universal 16.4.1 → 16.4.2

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.
@@ -1878,7 +1878,7 @@ var isTypographyHeader = function (type, isHeaderTypographyInContext) {
1878
1878
  throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1879
1879
  };
1880
1880
 
1881
- var _excluded$L = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1881
+ var _excluded$K = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1882
1882
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
1883
1883
  var TypographyColorContext = /*#__PURE__*/createContext('black');
1884
1884
  function useTypographyColor() {
@@ -1928,7 +1928,7 @@ function Typography(_ref) {
1928
1928
  } : _ref$type,
1929
1929
  variant = _ref.variant,
1930
1930
  color = _ref.color,
1931
- otherProps = _objectWithoutProperties(_ref, _excluded$L);
1931
+ otherProps = _objectWithoutProperties(_ref, _excluded$K);
1932
1932
  var sx = useSx();
1933
1933
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
1934
1934
  var defaultColor = useTypographyDefaultColor();
@@ -2033,11 +2033,11 @@ function Icon(_ref) {
2033
2033
  });
2034
2034
  }
2035
2035
 
2036
- var _excluded$K = ["color"],
2036
+ var _excluded$J = ["color"],
2037
2037
  _excluded2$7 = ["color"];
2038
2038
  function TypographyIconSpecifiedColor(_ref) {
2039
2039
  var color = _ref.color,
2040
- props = _objectWithoutProperties(_ref, _excluded$K);
2040
+ props = _objectWithoutProperties(_ref, _excluded$J);
2041
2041
  var sx = useSx();
2042
2042
  var colorStyle = sx({
2043
2043
  color: getTypographyColorValue(color)
@@ -2081,7 +2081,7 @@ var getTextColorByType = function (type, variant, isHovered, isPressed) {
2081
2081
  }
2082
2082
  };
2083
2083
 
2084
- var _excluded$J = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
2084
+ var _excluded$I = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
2085
2085
  function ButtonIcon(_ref) {
2086
2086
  var icon = _ref.icon,
2087
2087
  color = _ref.color,
@@ -2156,7 +2156,7 @@ function ButtonContent(_ref3) {
2156
2156
  isHovered = _ref3.isHovered,
2157
2157
  isPressed = _ref3.isPressed;
2158
2158
  _ref3.isFocused;
2159
- var props = _objectWithoutProperties(_ref3, _excluded$J);
2159
+ var props = _objectWithoutProperties(_ref3, _excluded$I);
2160
2160
  var color = isDisabled ? 'black-light' : getTextColorByType(type, variant, isHovered, isPressed);
2161
2161
  return /*#__PURE__*/jsx(View, {
2162
2162
  _web: {
@@ -2377,7 +2377,7 @@ function LoaderIcon(_ref) {
2377
2377
  });
2378
2378
  }
2379
2379
 
2380
- var _excluded$I = ["as", "onPress", "disabled", "icon", "stretch"];
2380
+ var _excluded$H = ["as", "onPress", "disabled", "icon", "stretch"];
2381
2381
  function ActionsItem(_ref) {
2382
2382
  var as = _ref.as,
2383
2383
  onPress = _ref.onPress,
@@ -2388,7 +2388,7 @@ function ActionsItem(_ref) {
2388
2388
  base: true,
2389
2389
  medium: false
2390
2390
  } : _ref$stretch,
2391
- props = _objectWithoutProperties(_ref, _excluded$I);
2391
+ props = _objectWithoutProperties(_ref, _excluded$H);
2392
2392
  var _useState = useState(false),
2393
2393
  _useState2 = _slicedToArray(_useState, 2),
2394
2394
  isLoading = _useState2[0],
@@ -2459,7 +2459,7 @@ function ActionsButton(_ref) {
2459
2459
  }, props));
2460
2460
  }
2461
2461
 
2462
- var _excluded$H = ["children", "layout", "reversed"];
2462
+ var _excluded$G = ["children", "layout", "reversed"];
2463
2463
  function getCurrentLayout(layout) {
2464
2464
  if (!layout) return {
2465
2465
  base: 'stretch',
@@ -2488,7 +2488,7 @@ function Actions(_ref) {
2488
2488
  var children = _ref.children,
2489
2489
  layout = _ref.layout,
2490
2490
  reversed = _ref.reversed,
2491
- props = _objectWithoutProperties(_ref, _excluded$H);
2491
+ props = _objectWithoutProperties(_ref, _excluded$G);
2492
2492
  var currentAlignItems = getCurrentLayout(layout);
2493
2493
  var currentDirection = getCurrentDirection(layout);
2494
2494
  var currentAlignSelf = getCurrentAlignSelf(layout);
@@ -2537,7 +2537,7 @@ function getInitials(firstname, lastname) {
2537
2537
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
2538
2538
  }
2539
2539
 
2540
- var _excluded$G = ["size", "round", "light", "sizeVariant"];
2540
+ var _excluded$F = ["size", "round", "light", "sizeVariant"];
2541
2541
  function AvatarContent(_ref) {
2542
2542
  var size = _ref.size,
2543
2543
  src = _ref.src,
@@ -2576,7 +2576,7 @@ function Avatar(_ref2) {
2576
2576
  round = _ref2.round,
2577
2577
  light = _ref2.light,
2578
2578
  sizeVariant = _ref2.sizeVariant,
2579
- props = _objectWithoutProperties(_ref2, _excluded$G);
2579
+ props = _objectWithoutProperties(_ref2, _excluded$F);
2580
2580
  var currentSize = getCurrentSize({
2581
2581
  size: size,
2582
2582
  sizeVariant: sizeVariant
@@ -2727,7 +2727,7 @@ function CardModalRotationContainer(props) {
2727
2727
  }, props));
2728
2728
  }
2729
2729
 
2730
- var _excluded$F = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
2730
+ var _excluded$E = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
2731
2731
  var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
2732
2732
  var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
2733
2733
  var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
@@ -2766,7 +2766,7 @@ function CardModalAnimation(_ref) {
2766
2766
  onExit = _ref.onExit,
2767
2767
  onExited = _ref.onExited,
2768
2768
  onClose = _ref.onClose,
2769
- props = _objectWithoutProperties(_ref, _excluded$F);
2769
+ props = _objectWithoutProperties(_ref, _excluded$E);
2770
2770
  var theme = useTheme();
2771
2771
  var animation = theme.kitt.cardModal.animation;
2772
2772
  var sharedProps = {
@@ -2799,11 +2799,11 @@ function CardModalAnimation(_ref) {
2799
2799
  }));
2800
2800
  }
2801
2801
 
2802
- var _excluded$E = ["children"],
2802
+ var _excluded$D = ["children"],
2803
2803
  _excluded2$6 = ["children", "visible", "onClose", "onExited"];
2804
2804
  function CardModalScrollContainer(_ref) {
2805
2805
  var children = _ref.children,
2806
- props = _objectWithoutProperties(_ref, _excluded$E);
2806
+ props = _objectWithoutProperties(_ref, _excluded$D);
2807
2807
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({}, props), {}, {
2808
2808
  children: children
2809
2809
  }));
@@ -2844,7 +2844,7 @@ function CardModalBehaviour(_ref2) {
2844
2844
  });
2845
2845
  }
2846
2846
 
2847
- var _excluded$D = ["children", "paddingX", "paddingY"];
2847
+ var _excluded$C = ["children", "paddingX", "paddingY"];
2848
2848
  function CardModalBody(_ref) {
2849
2849
  var children = _ref.children,
2850
2850
  _ref$paddingX = _ref.paddingX,
@@ -2854,7 +2854,7 @@ function CardModalBody(_ref) {
2854
2854
  } : _ref$paddingX,
2855
2855
  _ref$paddingY = _ref.paddingY,
2856
2856
  paddingY = _ref$paddingY === void 0 ? 'kitt.4' : _ref$paddingY,
2857
- props = _objectWithoutProperties(_ref, _excluded$D);
2857
+ props = _objectWithoutProperties(_ref, _excluded$C);
2858
2858
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
2859
2859
  paddingX: paddingX,
2860
2860
  paddingY: paddingY
@@ -2863,7 +2863,7 @@ function CardModalBody(_ref) {
2863
2863
  }));
2864
2864
  }
2865
2865
 
2866
- var _excluded$C = ["children", "padding", "hasSeparator"];
2866
+ var _excluded$B = ["children", "padding", "hasSeparator"];
2867
2867
  function CardModalFooter(_ref) {
2868
2868
  var children = _ref.children,
2869
2869
  _ref$padding = _ref.padding,
@@ -2873,7 +2873,7 @@ function CardModalFooter(_ref) {
2873
2873
  } : _ref$padding,
2874
2874
  _ref$hasSeparator = _ref.hasSeparator,
2875
2875
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
2876
- props = _objectWithoutProperties(_ref, _excluded$C);
2876
+ props = _objectWithoutProperties(_ref, _excluded$B);
2877
2877
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2878
2878
  marginTop: "kitt.2",
2879
2879
  padding: padding,
@@ -2887,7 +2887,7 @@ function CardModalFooter(_ref) {
2887
2887
  }));
2888
2888
  }
2889
2889
 
2890
- var _excluded$B = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
2890
+ var _excluded$A = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
2891
2891
  function CardModalHeader(_ref) {
2892
2892
  var children = _ref.children,
2893
2893
  title = _ref.title,
@@ -2900,7 +2900,7 @@ function CardModalHeader(_ref) {
2900
2900
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
2901
2901
  right = _ref.right,
2902
2902
  left = _ref.left,
2903
- props = _objectWithoutProperties(_ref, _excluded$B);
2903
+ props = _objectWithoutProperties(_ref, _excluded$A);
2904
2904
  var defaultContainerPadding = {
2905
2905
  base: 'kitt.4',
2906
2906
  medium: 'kitt.6'
@@ -2938,7 +2938,7 @@ function CardModalHeader(_ref) {
2938
2938
  }));
2939
2939
  }
2940
2940
 
2941
- var _excluded$A = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
2941
+ var _excluded$z = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
2942
2942
  function CardModal(_ref) {
2943
2943
  var _ref$backgroundColor = _ref.backgroundColor,
2944
2944
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -2949,7 +2949,7 @@ function CardModal(_ref) {
2949
2949
  header = _ref.header,
2950
2950
  body = _ref.body,
2951
2951
  footer = _ref.footer,
2952
- props = _objectWithoutProperties(_ref, _excluded$A);
2952
+ props = _objectWithoutProperties(_ref, _excluded$z);
2953
2953
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2954
2954
  overflow: "hidden",
2955
2955
  backgroundColor: backgroundColor,
@@ -3134,10 +3134,10 @@ function ChoiceItemContainer(_ref) {
3134
3134
  });
3135
3135
  }
3136
3136
 
3137
- var _excluded$z = ["direction"];
3137
+ var _excluded$y = ["direction"];
3138
3138
  function ChoicesContainer(_ref) {
3139
3139
  var direction = _ref.direction,
3140
- props = _objectWithoutProperties(_ref, _excluded$z);
3140
+ props = _objectWithoutProperties(_ref, _excluded$y);
3141
3141
  if (direction === 'row') {
3142
3142
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
3143
3143
  horizontal: true
@@ -3209,7 +3209,7 @@ var ChoicesElements = {
3209
3209
  ButtonChoices: ButtonChoices
3210
3210
  };
3211
3211
 
3212
- var _excluded$y = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
3212
+ var _excluded$x = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
3213
3213
  var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
3214
3214
  var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
3215
3215
  var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
@@ -3248,7 +3248,7 @@ function DialogModalAnimation(_ref) {
3248
3248
  onExit = _ref.onExit,
3249
3249
  onExited = _ref.onExited,
3250
3250
  onClose = _ref.onClose,
3251
- props = _objectWithoutProperties(_ref, _excluded$y);
3251
+ props = _objectWithoutProperties(_ref, _excluded$x);
3252
3252
  var theme = useTheme();
3253
3253
  var animation = theme.kitt.dialogModal.animation;
3254
3254
  var sharedProps = {
@@ -3283,13 +3283,13 @@ function DialogModalAnimation(_ref) {
3283
3283
  }));
3284
3284
  }
3285
3285
 
3286
- var _excluded$x = ["children", "visible", "onClose", "onExited"];
3286
+ var _excluded$w = ["children", "visible", "onClose", "onExited"];
3287
3287
  function DialogModalBehaviour(_ref) {
3288
3288
  var children = _ref.children,
3289
3289
  visible = _ref.visible,
3290
3290
  onClose = _ref.onClose,
3291
3291
  onExited = _ref.onExited,
3292
- props = _objectWithoutProperties(_ref, _excluded$x);
3292
+ props = _objectWithoutProperties(_ref, _excluded$w);
3293
3293
  var _useState = useState(visible),
3294
3294
  _useState2 = _slicedToArray(_useState, 2),
3295
3295
  isModalBehaviourVisible = _useState2[0],
@@ -3320,7 +3320,7 @@ function DialogModalBehaviour(_ref) {
3320
3320
  });
3321
3321
  }
3322
3322
 
3323
- var _excluded$w = ["stretch"];
3323
+ var _excluded$v = ["stretch"];
3324
3324
  function DialogModal(_ref) {
3325
3325
  var illustration = _ref.illustration,
3326
3326
  title = _ref.title,
@@ -3361,7 +3361,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
3361
3361
  function DialogModalButton(_ref2) {
3362
3362
  var _ref2$stretch = _ref2.stretch,
3363
3363
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
3364
- props = _objectWithoutProperties(_ref2, _excluded$w);
3364
+ props = _objectWithoutProperties(_ref2, _excluded$v);
3365
3365
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
3366
3366
  stretch: stretch
3367
3367
  }, props));
@@ -3398,7 +3398,7 @@ function Emoji(_ref) {
3398
3398
  });
3399
3399
  }
3400
3400
 
3401
- var _excluded$v = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
3401
+ var _excluded$u = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
3402
3402
  _excluded2$5 = ["phoneNumber", "children"],
3403
3403
  _excluded3$4 = ["phoneNumber", "children"],
3404
3404
  _excluded4$3 = ["emailAddress", "children"];
@@ -3408,7 +3408,7 @@ function ExternalAppLink(_ref) {
3408
3408
  appValue = _ref.appValue,
3409
3409
  onPress = _ref.onPress,
3410
3410
  onOpenAppError = _ref.onOpenAppError,
3411
- rest = _objectWithoutProperties(_ref, _excluded$v);
3411
+ rest = _objectWithoutProperties(_ref, _excluded$u);
3412
3412
  var href = "".concat(appScheme, ":").concat(appValue);
3413
3413
  var handleOnPress = /*#__PURE__*/function () {
3414
3414
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -3503,14 +3503,14 @@ var defaultOpenLinkBehavior = {
3503
3503
  web: 'targetBlank'
3504
3504
  };
3505
3505
 
3506
- var _excluded$u = ["as", "href", "openLinkBehavior", "onPress"];
3506
+ var _excluded$t = ["as", "href", "openLinkBehavior", "onPress"];
3507
3507
  function ExternalLink(_ref) {
3508
3508
  var Component = _ref.as,
3509
3509
  href = _ref.href,
3510
3510
  _ref$openLinkBehavior = _ref.openLinkBehavior,
3511
3511
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
3512
3512
  onPress = _ref.onPress,
3513
- rest = _objectWithoutProperties(_ref, _excluded$u);
3513
+ rest = _objectWithoutProperties(_ref, _excluded$t);
3514
3514
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
3515
3515
  href: href,
3516
3516
  hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
@@ -3557,7 +3557,7 @@ function InputTextContainer(props) {
3557
3557
  }, props));
3558
3558
  }
3559
3559
 
3560
- var _excluded$t = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
3560
+ var _excluded$s = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
3561
3561
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
3562
3562
  var id = _ref.id,
3563
3563
  right = _ref.right;
@@ -3577,7 +3577,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
3577
3577
  keyboardType = _ref$keyboardType === void 0 ? 'default' : _ref$keyboardType,
3578
3578
  multiline = _ref.multiline,
3579
3579
  onSubmitEditing = _ref.onSubmitEditing,
3580
- props = _objectWithoutProperties(_ref, _excluded$t);
3580
+ props = _objectWithoutProperties(_ref, _excluded$s);
3581
3581
  var theme = useTheme();
3582
3582
  var fontSizeForNativeBase = createNativeBaseFontSize({
3583
3583
  base: 'body'
@@ -3693,10 +3693,10 @@ function AutocompleteItemsListContainer(_ref) {
3693
3693
  });
3694
3694
  }
3695
3695
 
3696
- var _excluded$s = ["children"];
3696
+ var _excluded$r = ["children"];
3697
3697
  function AutocompleteOption(_ref) {
3698
3698
  var children = _ref.children,
3699
- props = _objectWithoutProperties(_ref, _excluded$s);
3699
+ props = _objectWithoutProperties(_ref, _excluded$r);
3700
3700
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
3701
3701
  paddingX: {
3702
3702
  base: 'kitt.2',
@@ -3708,7 +3708,7 @@ function AutocompleteOption(_ref) {
3708
3708
  }));
3709
3709
  }
3710
3710
 
3711
- var _excluded$r = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex"],
3711
+ var _excluded$q = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex"],
3712
3712
  _excluded2$4 = ["onClick", "onPress"],
3713
3713
  _excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
3714
3714
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
@@ -3741,7 +3741,7 @@ function Autocomplete(_ref) {
3741
3741
  listContainerTestID = _ref$listContainerTes === void 0 ? 'kitt.Autocomplete.listContainer' : _ref$listContainerTes,
3742
3742
  _ref$zIndex = _ref.zIndex,
3743
3743
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
3744
- props = _objectWithoutProperties(_ref, _excluded$r);
3744
+ props = _objectWithoutProperties(_ref, _excluded$q);
3745
3745
  var childrenArray = Children.toArray(_children);
3746
3746
  var items = childrenArray.filter(isReactElement).map(function (child) {
3747
3747
  return {
@@ -4255,7 +4255,7 @@ function PartContainer(_ref) {
4255
4255
  });
4256
4256
  }
4257
4257
 
4258
- var _excluded$q = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
4258
+ var _excluded$p = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
4259
4259
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4260
4260
  var id = _ref.id,
4261
4261
  value = _ref.value,
@@ -4273,7 +4273,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4273
4273
  onBlur = _ref.onBlur,
4274
4274
  onFocus = _ref.onFocus,
4275
4275
  onSubmitEditing = _ref.onSubmitEditing;
4276
- _objectWithoutProperties(_ref, _excluded$q);
4276
+ _objectWithoutProperties(_ref, _excluded$p);
4277
4277
  var monthRef = useRef(null);
4278
4278
  var yearRef = useRef(null);
4279
4279
  var defaultValue = value;
@@ -4416,10 +4416,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4416
4416
  });
4417
4417
  });
4418
4418
 
4419
- var _excluded$p = ["value"];
4419
+ var _excluded$o = ["value"];
4420
4420
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4421
4421
  var value = _ref.value,
4422
- props = _objectWithoutProperties(_ref, _excluded$p);
4422
+ props = _objectWithoutProperties(_ref, _excluded$o);
4423
4423
  // in apps, final-form can give a string value that will break the component
4424
4424
  var currentValue = value || undefined;
4425
4425
  return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
@@ -4867,7 +4867,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
4867
4867
  };
4868
4868
  }
4869
4869
 
4870
- var _excluded$o = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
4870
+ var _excluded$n = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
4871
4871
  function InputAddress(_ref) {
4872
4872
  var initialValue = _ref.initialValue,
4873
4873
  _ref$itemToString = _ref.itemToString,
@@ -4875,7 +4875,7 @@ function InputAddress(_ref) {
4875
4875
  errorElement = _ref.errorElement,
4876
4876
  emptyResultsElement = _ref.emptyResultsElement,
4877
4877
  _onChange = _ref.onChange;
4878
- _objectWithoutProperties(_ref, _excluded$o);
4878
+ _objectWithoutProperties(_ref, _excluded$n);
4879
4879
  var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
4880
4880
  state = _useGoogleMapsAutocom.state,
4881
4881
  _onInputChange = _useGoogleMapsAutocom.onInputChange,
@@ -4965,11 +4965,11 @@ function InputField(_ref) {
4965
4965
  });
4966
4966
  }
4967
4967
 
4968
- var _excluded$n = ["isPasswordDefaultVisible", "right"];
4968
+ var _excluded$m = ["isPasswordDefaultVisible", "right"];
4969
4969
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
4970
4970
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
4971
4971
  right = _ref.right,
4972
- props = _objectWithoutProperties(_ref, _excluded$n);
4972
+ props = _objectWithoutProperties(_ref, _excluded$m);
4973
4973
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
4974
4974
  _useState2 = _slicedToArray(_useState, 2),
4975
4975
  isVisible = _useState2[0],
@@ -4997,7 +4997,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
4997
4997
  }));
4998
4998
  });
4999
4999
 
5000
- var _excluded$m = ["returnKeyType", "autoComplete", "phoneNumberLength", "value", "onChange"];
5000
+ var _excluded$l = ["returnKeyType", "autoComplete", "phoneNumberLength", "value", "onChange"];
5001
5001
  function isPhoneNumberValid(number) {
5002
5002
  return isValidNumber(number);
5003
5003
  }
@@ -5012,7 +5012,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
5012
5012
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
5013
5013
  value = _ref.value,
5014
5014
  onChange = _ref.onChange,
5015
- props = _objectWithoutProperties(_ref, _excluded$m);
5015
+ props = _objectWithoutProperties(_ref, _excluded$l);
5016
5016
  var _useState = useState(value),
5017
5017
  _useState2 = _slicedToArray(_useState, 2),
5018
5018
  currentValue = _useState2[0],
@@ -5451,7 +5451,7 @@ function RadioButton(_ref) {
5451
5451
  });
5452
5452
  }
5453
5453
 
5454
- var _excluded$l = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
5454
+ var _excluded$k = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
5455
5455
  function RadioButtonGroupItem(_ref) {
5456
5456
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
5457
5457
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -5464,7 +5464,7 @@ function RadioButtonGroup(_ref2) {
5464
5464
  onFocus = _ref2.onFocus,
5465
5465
  onBlur = _ref2.onBlur,
5466
5466
  onChange = _ref2.onChange,
5467
- props = _objectWithoutProperties(_ref2, _excluded$l);
5467
+ props = _objectWithoutProperties(_ref2, _excluded$k);
5468
5468
  var _useState = useState(value),
5469
5469
  _useState2 = _slicedToArray(_useState, 2),
5470
5470
  currentValue = _useState2[0],
@@ -5506,13 +5506,13 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
5506
5506
  }, props));
5507
5507
  });
5508
5508
 
5509
- var _excluded$k = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
5509
+ var _excluded$j = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
5510
5510
  function FullscreenModalBody(_ref) {
5511
5511
  var children = _ref.children,
5512
5512
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
5513
5513
  style = _ref.style,
5514
5514
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
5515
- props = _objectWithoutProperties(_ref, _excluded$k);
5515
+ props = _objectWithoutProperties(_ref, _excluded$j);
5516
5516
  var _useSafeAreaInsets = useSafeAreaInsets(),
5517
5517
  bottom = _useSafeAreaInsets.bottom,
5518
5518
  top = _useSafeAreaInsets.top;
@@ -5529,14 +5529,14 @@ function FullscreenModalBody(_ref) {
5529
5529
  }));
5530
5530
  }
5531
5531
 
5532
- var _excluded$j = ["shouldHandleBottomNotch", "hasSeparator", "children"];
5532
+ var _excluded$i = ["shouldHandleBottomNotch", "hasSeparator", "children"];
5533
5533
  function FullscreenModalFooter(_ref) {
5534
5534
  var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
5535
5535
  shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
5536
5536
  _ref$hasSeparator = _ref.hasSeparator,
5537
5537
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
5538
5538
  children = _ref.children,
5539
- props = _objectWithoutProperties(_ref, _excluded$j);
5539
+ props = _objectWithoutProperties(_ref, _excluded$i);
5540
5540
  var _useSafeAreaInsets = useSafeAreaInsets(),
5541
5541
  bottom = _useSafeAreaInsets.bottom;
5542
5542
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
@@ -5553,7 +5553,7 @@ function FullscreenModalFooter(_ref) {
5553
5553
  }));
5554
5554
  }
5555
5555
 
5556
- var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
5556
+ var _excluded$h = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
5557
5557
  var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
5558
5558
  var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
5559
5559
  var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
@@ -5592,7 +5592,7 @@ function FullscreenModalAnimation(_ref) {
5592
5592
  onExit = _ref.onExit,
5593
5593
  onExited = _ref.onExited,
5594
5594
  onClose = _ref.onClose,
5595
- props = _objectWithoutProperties(_ref, _excluded$i);
5595
+ props = _objectWithoutProperties(_ref, _excluded$h);
5596
5596
  var theme = useTheme();
5597
5597
  var animation = theme.kitt.fullscreenModal.animation;
5598
5598
  var sharedProps = {
@@ -5619,13 +5619,13 @@ function FullscreenModalAnimation(_ref) {
5619
5619
  }));
5620
5620
  }
5621
5621
 
5622
- var _excluded$h = ["children", "visible", "onClose", "onExited"];
5622
+ var _excluded$g = ["children", "visible", "onClose", "onExited"];
5623
5623
  function FullscreenModalBehaviour(_ref) {
5624
5624
  var children = _ref.children,
5625
5625
  visible = _ref.visible,
5626
5626
  onClose = _ref.onClose,
5627
5627
  onExited = _ref.onExited,
5628
- props = _objectWithoutProperties(_ref, _excluded$h);
5628
+ props = _objectWithoutProperties(_ref, _excluded$g);
5629
5629
  var _useState = useState(visible),
5630
5630
  _useState2 = _slicedToArray(_useState, 2),
5631
5631
  isModalBehaviourVisible = _useState2[0],
@@ -5669,7 +5669,7 @@ function FullscreenModalContainer(_ref) {
5669
5669
  });
5670
5670
  }
5671
5671
 
5672
- var _excluded$g = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
5672
+ var _excluded$f = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
5673
5673
  function FullscreenModalHeader(_ref) {
5674
5674
  var _ref$hasSeparator = _ref.hasSeparator,
5675
5675
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
@@ -5680,7 +5680,7 @@ function FullscreenModalHeader(_ref) {
5680
5680
  left = _ref.left,
5681
5681
  _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
5682
5682
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
5683
- props = _objectWithoutProperties(_ref, _excluded$g);
5683
+ props = _objectWithoutProperties(_ref, _excluded$f);
5684
5684
  var _useSafeAreaInsets = useSafeAreaInsets(),
5685
5685
  top = _useSafeAreaInsets.top;
5686
5686
  var hasRight = Boolean(right);
@@ -5768,7 +5768,7 @@ function Highlight(_ref) {
5768
5768
  });
5769
5769
  }
5770
5770
 
5771
- var _excluded$f = ["color", "isDisabled"];
5771
+ var _excluded$e = ["color", "isDisabled"];
5772
5772
  function getBackgroundColor$1(color, isDisabled) {
5773
5773
  if (isDisabled) {
5774
5774
  return 'kitt.iconButton.disabled.backgroundColor';
@@ -5786,7 +5786,7 @@ function getBackgroundColor$1(color, isDisabled) {
5786
5786
  function Background(_ref) {
5787
5787
  var color = _ref.color,
5788
5788
  isDisabled = _ref.isDisabled,
5789
- props = _objectWithoutProperties(_ref, _excluded$f);
5789
+ props = _objectWithoutProperties(_ref, _excluded$e);
5790
5790
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
5791
5791
  width: "100%",
5792
5792
  height: "100%",
@@ -5977,10 +5977,10 @@ function useKittMapConfig() {
5977
5977
  return context;
5978
5978
  }
5979
5979
 
5980
- var _excluded$e = ["children"];
5980
+ var _excluded$d = ["children"];
5981
5981
  function ListItemContent(_ref) {
5982
5982
  var children = _ref.children,
5983
- rest = _objectWithoutProperties(_ref, _excluded$e);
5983
+ rest = _objectWithoutProperties(_ref, _excluded$d);
5984
5984
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5985
5985
  alignSelf: "center",
5986
5986
  flexBasis: "0%",
@@ -5991,14 +5991,14 @@ function ListItemContent(_ref) {
5991
5991
  }));
5992
5992
  }
5993
5993
 
5994
- var _excluded$d = ["children", "side"],
5994
+ var _excluded$c = ["children", "side"],
5995
5995
  _excluded2$3 = ["children", "align"];
5996
5996
  // Handles the vertical alignment of the side elements of the list item
5997
5997
  function ListItemSideContainer(_ref) {
5998
5998
  var children = _ref.children,
5999
5999
  _ref$side = _ref.side,
6000
6000
  side = _ref$side === void 0 ? 'left' : _ref$side,
6001
- rest = _objectWithoutProperties(_ref, _excluded$d);
6001
+ rest = _objectWithoutProperties(_ref, _excluded$c);
6002
6002
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6003
6003
  flexDirection: "row",
6004
6004
  marginLeft: side === 'right' ? 'kitt.2' : undefined,
@@ -6019,7 +6019,7 @@ function ListItemSideContent(_ref2) {
6019
6019
  }));
6020
6020
  }
6021
6021
 
6022
- var _excluded$c = ["children", "withPadding", "borders", "left", "right", "onPress"];
6022
+ var _excluded$b = ["children", "withPadding", "borders", "left", "right", "onPress"];
6023
6023
  function ListItem(_ref) {
6024
6024
  var children = _ref.children,
6025
6025
  withPadding = _ref.withPadding,
@@ -6027,7 +6027,7 @@ function ListItem(_ref) {
6027
6027
  left = _ref.left,
6028
6028
  right = _ref.right,
6029
6029
  onPress = _ref.onPress,
6030
- rest = _objectWithoutProperties(_ref, _excluded$c);
6030
+ rest = _objectWithoutProperties(_ref, _excluded$b);
6031
6031
  var Wrapper = onPress ? Pressable$2 : Fragment$1;
6032
6032
  var wrapperProps = onPress ? _objectSpread({
6033
6033
  accessibilityRole: 'button',
@@ -7744,6 +7744,21 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7744
7744
  shadowRadius: theme.dialogModal.shadow.radius
7745
7745
  }
7746
7746
  },
7747
+ picker: {
7748
+ web: {
7749
+ optionsContainer: {
7750
+ shadow: {
7751
+ shadowColor: theme.picker.web.optionsContainer.shadow.color,
7752
+ shadowOffset: {
7753
+ width: theme.picker.web.optionsContainer.shadow.offsetX,
7754
+ height: theme.picker.web.optionsContainer.shadow.offsetY
7755
+ },
7756
+ shadowOpacity: theme.picker.web.optionsContainer.shadow.opacity,
7757
+ shadowRadius: theme.picker.web.optionsContainer.shadow.radius
7758
+ }
7759
+ }
7760
+ }
7761
+ },
7747
7762
  forms: {
7748
7763
  autocomplete: {
7749
7764
  optionsContainer: {
@@ -7909,7 +7924,7 @@ function KittNativeBaseProvider(_ref) {
7909
7924
  });
7910
7925
  }
7911
7926
 
7912
- var _excluded$b = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
7927
+ var _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
7913
7928
  function SimpleContainer(_ref) {
7914
7929
  var children = _ref.children;
7915
7930
  return children;
@@ -7923,7 +7938,7 @@ function NavigationModalBehaviour(_ref2) {
7923
7938
  onEnter = _ref2.onEnter,
7924
7939
  onExit = _ref2.onExit,
7925
7940
  onClose = _ref2.onClose,
7926
- props = _objectWithoutProperties(_ref2, _excluded$b);
7941
+ props = _objectWithoutProperties(_ref2, _excluded$a);
7927
7942
  var AnimationComponent = useBreakpointValue({
7928
7943
  base: FullscreenModalAnimation,
7929
7944
  small: CardModalAnimation
@@ -8130,16 +8145,19 @@ function PickerItem(_ref2) {
8130
8145
  });
8131
8146
  }
8132
8147
 
8133
- var _excluded$a = ["children", "testID"];
8134
8148
  // This item is for Android only, iOS uses its own implementation and web is not supported yet
8135
8149
  function PickerOption(_ref) {
8136
8150
  var children = _ref.children,
8137
- testID = _ref.testID;
8138
- _objectWithoutProperties(_ref, _excluded$a);
8151
+ testID = _ref.testID,
8152
+ isHighlighted = _ref.isHighlighted,
8153
+ isSelected = _ref.isSelected;
8139
8154
  return /*#__PURE__*/jsx(Typography.Text, {
8140
8155
  testID: testID,
8141
8156
  base: "body",
8142
- children: children
8157
+ children: typeof children === 'function' ? children({
8158
+ isHighlighted: isHighlighted,
8159
+ isSelected: isSelected
8160
+ }) : children
8143
8161
  });
8144
8162
  }
8145
8163
 
@@ -8160,6 +8178,10 @@ function webUseSelectReducer(state, actionAndChanges, options) {
8160
8178
  var _excluded$9 = ["onClick"],
8161
8179
  _excluded2$2 = ["ref"],
8162
8180
  _excluded3$2 = ["onClick", "aria-selected"];
8181
+ var enter = "kitt-u_enter_ereraf";
8182
+ var enterActive = "kitt-u_enterActive_e1jmsjrm";
8183
+ var exit = "kitt-u_exit_e1mwnccz";
8184
+ var exitActive = "kitt-u_exitActive_e1004d1h";
8163
8185
  function Picker(_ref) {
8164
8186
  var children = _ref.children,
8165
8187
  renderTrigger = _ref.renderTrigger,
@@ -8191,13 +8213,13 @@ function Picker(_ref) {
8191
8213
  if (onClose) onClose();
8192
8214
  }
8193
8215
  },
8194
- onStateChange: function onStateChange() {
8216
+ onSelectedItemChange: function onSelectedItemChange(changes) {
8195
8217
  if (!onChange) return;
8196
- if (selectedItem === null) {
8218
+ if (changes.selectedItem === null) {
8197
8219
  onChange(undefined);
8198
8220
  return;
8199
8221
  }
8200
- onChange(selectedItem);
8222
+ onChange(changes.selectedItem);
8201
8223
  }
8202
8224
  }),
8203
8225
  isOpen = _useSelect.isOpen,
@@ -8251,52 +8273,76 @@ function Picker(_ref) {
8251
8273
  maxWidth: {
8252
8274
  base: 350
8253
8275
  },
8254
- opacity: isOpen ? 1 : 0,
8255
- backgroundColor: "kitt.picker.web.optionsContainer.backgroundColor",
8256
- borderRadius: "kitt.picker.web.optionsContainer.borderRadius",
8257
- shadow: "kitt.picker.web.optionsContainer.shadow",
8258
8276
  paddingY: "kitt.2",
8259
8277
  _web: {
8260
8278
  style: {
8261
8279
  transform: [{
8262
8280
  translate3d: "".concat(tooltipX, "px, ").concat(tooltipY, "px, 0")
8263
8281
  }],
8264
- visibility: isOpen ? 'visible' : 'hidden',
8265
8282
  transitionDuration: '300ms',
8266
8283
  transitionProperty: 'opacity',
8267
8284
  transitionTimingFunction: 'ease-in-out'
8268
8285
  }
8269
8286
  },
8270
- children: isOpen ? childrenArray.map(function (child, index) {
8271
- var currentValue = items[index];
8272
- var _getItemProps = getItemProps({
8273
- item: currentValue,
8274
- index: index,
8275
- disabled: disabled
8276
- }),
8277
- onClick = _getItemProps.onClick,
8278
- ariaSelected = _getItemProps['aria-selected'],
8279
- itemProps = _objectWithoutProperties(_getItemProps, _excluded3$2);
8280
- return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({}, itemProps), {}, {
8281
- accessibilityState: {
8282
- selected: ariaSelected
8283
- },
8284
- onPress: onClick,
8285
- children: function (_ref2) {
8286
- var isHovered = _ref2.isHovered,
8287
- isFocused = _ref2.isFocused,
8288
- isPressed = _ref2.isPressed;
8289
- return /*#__PURE__*/jsx(PickerItem, {
8290
- isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
8291
- isHighlighted: highlightedIndex === index,
8292
- isHovered: isHovered,
8293
- isFocused: isFocused,
8294
- isPressed: isPressed,
8295
- children: child
8296
- });
8287
+ children: /*#__PURE__*/jsx(View, {
8288
+ opacity: isOpen ? 1 : 0,
8289
+ backgroundColor: "kitt.picker.web.optionsContainer.backgroundColor",
8290
+ borderRadius: "kitt.picker.web.optionsContainer.borderRadius",
8291
+ shadow: "kitt.picker.web.optionsContainer.shadow",
8292
+ _web: {
8293
+ style: {
8294
+ transform: [{
8295
+ translateY: isOpen ? 0 : 8
8296
+ }],
8297
+ visibility: isOpen ? 'visible' : 'hidden',
8298
+ transitionDuration: '300ms',
8299
+ transitionTimingFunction: 'ease-in-out'
8297
8300
  }
8298
- }), itemProps.id);
8299
- }) : null
8301
+ },
8302
+ children: /*#__PURE__*/jsx(CSSTransition, {
8303
+ unmountOnExit: true,
8304
+ timeout: 300,
8305
+ "in": isOpen,
8306
+ classNames: {
8307
+ enter: enter,
8308
+ enterActive: enterActive,
8309
+ exit: exit,
8310
+ exitActive: exitActive
8311
+ },
8312
+ children: /*#__PURE__*/jsx(View, {
8313
+ children: childrenArray.map(function (child, index) {
8314
+ var currentValue = items[index];
8315
+ var _getItemProps = getItemProps({
8316
+ item: currentValue,
8317
+ index: index,
8318
+ disabled: disabled
8319
+ }),
8320
+ onClick = _getItemProps.onClick,
8321
+ ariaSelected = _getItemProps['aria-selected'],
8322
+ itemProps = _objectWithoutProperties(_getItemProps, _excluded3$2);
8323
+ return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({}, itemProps), {}, {
8324
+ accessibilityState: {
8325
+ selected: ariaSelected
8326
+ },
8327
+ onPress: onClick,
8328
+ children: function (_ref2) {
8329
+ var isHovered = _ref2.isHovered,
8330
+ isFocused = _ref2.isFocused,
8331
+ isPressed = _ref2.isPressed;
8332
+ return /*#__PURE__*/jsx(PickerItem, {
8333
+ isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
8334
+ isHighlighted: highlightedIndex === index,
8335
+ isHovered: isHovered,
8336
+ isFocused: isFocused,
8337
+ isPressed: isPressed,
8338
+ children: child
8339
+ });
8340
+ }
8341
+ }), itemProps.id);
8342
+ })
8343
+ })
8344
+ })
8345
+ })
8300
8346
  }))
8301
8347
  })]
8302
8348
  });