@ornikar/kitt-universal 29.2.0 → 29.3.1-canary.6b7ecf37244f3cc0cd184aea4070cfbc57961bfd.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/dist/index.es.js CHANGED
@@ -6444,24 +6444,20 @@ function PlatformDateTimePicker(_ref) {
6444
6444
  minimuDate = _ref.minimuDate,
6445
6445
  testID = _ref.testID,
6446
6446
  _onChange = _ref.onChange;
6447
- var theme = useTheme();
6448
6447
  var displayMode = getDatePickerDisplayMode();
6449
- var iosProps = Platform.OS === 'ios' ? {
6450
- textColor: theme.kitt.colors.primary
6451
- } : {};
6452
- return /*#__PURE__*/jsx(DateTimePicker, _objectSpread(_objectSpread({
6448
+ return /*#__PURE__*/jsx(DateTimePicker, {
6453
6449
  is24Hour: true,
6454
6450
  testID: testID,
6455
6451
  value: value || defaultDate,
6456
6452
  mode: "date",
6453
+ themeVariant: "light",
6457
6454
  maximumDate: maximumDate,
6458
6455
  minimumDate: minimuDate,
6459
- display: displayMode
6460
- }, iosProps), {}, {
6456
+ display: displayMode,
6461
6457
  onChange: function (_event, date) {
6462
6458
  return _onChange(date);
6463
6459
  }
6464
- }));
6460
+ });
6465
6461
  }
6466
6462
 
6467
6463
  var _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
@@ -12431,7 +12427,6 @@ function SegmentedProgressBar(_ref) {
12431
12427
  });
12432
12428
  }
12433
12429
 
12434
- var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
12435
12430
  function SkeletonContent(_ref) {
12436
12431
  var isLoading = _ref.isLoading,
12437
12432
  width = _ref.width;
@@ -12451,24 +12446,27 @@ function SkeletonContent(_ref) {
12451
12446
  translateX: interpolate(sharedX.value, [0, 1], [-width, width])
12452
12447
  }]
12453
12448
  };
12454
- });
12449
+ }, [sharedX, width]);
12455
12450
  return /*#__PURE__*/jsx(View, {
12456
12451
  height: "100%",
12457
12452
  width: "100%",
12458
12453
  backgroundColor: "kitt.skeleton.backgroundColor",
12459
12454
  borderColor: "kitt.skeleton.flareColor",
12460
- children: /*#__PURE__*/jsx(AnimatedLinearGradient, {
12461
- colors: [theme.kitt.skeleton.backgroundColor, theme.kitt.skeleton.flareColor, theme.kitt.skeleton.backgroundColor],
12462
- locations: [0.1, 0.5, 0.9],
12463
- start: {
12464
- x: 0,
12465
- y: 0
12466
- },
12467
- end: {
12468
- x: 1,
12469
- y: 0
12470
- },
12471
- style: [StyleSheet.absoluteFill, linearGradientStyle]
12455
+ children: /*#__PURE__*/jsx(Animated.View, {
12456
+ style: [StyleSheet.absoluteFill, linearGradientStyle],
12457
+ children: /*#__PURE__*/jsx(LinearGradient, {
12458
+ colors: [theme.kitt.skeleton.backgroundColor, theme.kitt.skeleton.flareColor, theme.kitt.skeleton.backgroundColor],
12459
+ locations: [0.1, 0.5, 0.9],
12460
+ start: {
12461
+ x: 0,
12462
+ y: 0
12463
+ },
12464
+ end: {
12465
+ x: 1,
12466
+ y: 0
12467
+ },
12468
+ style: StyleSheet.absoluteFill
12469
+ })
12472
12470
  })
12473
12471
  });
12474
12472
  }
@@ -13421,6 +13419,7 @@ function ModalDateTimePicker(_ref) {
13421
13419
  minuteInterval: minuteInterval,
13422
13420
  testID: pickerTestID,
13423
13421
  value: currentValue,
13422
+ themeVariant: "light",
13424
13423
  mode: "time",
13425
13424
  display: Platform.OS === 'ios' ? 'spinner' : 'default',
13426
13425
  onChange: function (event, date) {